@pisell/materials 1.0.713 → 1.0.714
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 +1 -1
- package/build/lowcode/preview.js +8 -16
- package/build/lowcode/render/default/view.js +23 -24
- package/build/lowcode/view.js +23 -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/TimeResourceSelector/index.js +3 -3
- package/es/components/appVersionControl/index.js +5 -5
- package/es/components/badge/index.js +5 -5
- package/es/components/browserSelect/index.js +6 -6
- package/es/components/buttonGroupEdit/index.js +7 -6
- package/es/components/buttonGroupPreview/index.js +7 -8
- package/es/components/collapse/index.js +5 -5
- package/es/components/cropPhoto/index.js +5 -5
- package/es/components/customSelect/index.js +5 -5
- package/es/components/dataSourceComponents/dataSourceForm/BaseForm.js +11 -11
- package/es/components/dataSourceComponents/dataSourceForm/formItem.js +1 -1
- package/es/components/dataSourceComponents/dataSourceForm/provider/jsonWrapper/JsonWrapperProvider.js +5 -5
- package/es/components/dataSourceComponents/dataSourceForm/serve.js +7 -7
- package/es/components/dataSourceComponents/dataSourceForm/submitButton/index.js +8 -8
- package/es/components/dataSourceComponents/dataSourceForm/utils.js +10 -10
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceMenu/Basic.js +8 -4
- package/es/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/es/components/dataSourceComponents/dataSourceMenu/index.js +2 -2
- package/es/components/dataSourceComponents/dataSourceShow/utils.js +7 -7
- package/es/components/dataSourceComponents/dataSourceTable/BaseTable.js +7 -7
- package/es/components/dataSourceComponents/dataSourceTable/filter/index.js +6 -6
- package/es/components/dataSourceComponents/dataSourceTable/filter/utils.js +14 -14
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useColumns.js +5 -5
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDesignMode.js +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useDrawerState.js +6 -6
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useFormat.js +6 -6
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.js +13 -13
- package/es/components/dataSourceComponents/dataSourceTable/hooks/useTableQuery.js +9 -9
- package/es/components/dataSourceComponents/dataSourceWrapper/BaseWrapper.js +1 -1
- package/es/components/dataSourceComponents/fields/DatePicker/WithMode.js +5 -5
- package/es/components/dataSourceComponents/fields/Input/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input.Email/WithMode.js +2 -2
- package/es/components/dataSourceComponents/fields/Input.Json/WithMode.js +1 -1
- package/es/components/dataSourceComponents/fields/Input.Mobile/WithMode.js +5 -4
- package/es/components/dataSourceComponents/fields/Input.Mobile/serve.js +8 -8
- package/es/components/dataSourceComponents/fields/Input.Password/ReadPretty.js +1 -1
- package/es/components/dataSourceComponents/fields/Input.Phone/WithMode.js +4 -4
- package/es/components/dataSourceComponents/fields/Input.Phone/serve.js +8 -8
- package/es/components/dataSourceComponents/fields/Input.Subdomain/WithMode.js +7 -7
- package/es/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/es/components/dataSourceComponents/fields/Input.Subdomain/serve.js +2 -2
- package/es/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/es/components/dataSourceComponents/fields/TimePicker/WithMode.js +5 -5
- package/es/components/dataSourceComponents/fields/Translation/BaseTranslation.js +7 -7
- package/es/components/dataSourceComponents/fields/Upload/BaseUpload.js +48 -47
- package/es/components/dataSourceComponents/fields/Upload/serve.js +4 -4
- package/es/components/dataSourceComponents/fields/Upload/shopUploadServe.js +9 -9
- package/es/components/dataSourceComponents/fields/Upload/utils.js +3 -3
- package/es/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/es/components/dataSourceComponents/fields/utils.js +4 -4
- package/es/components/dataSourceComponents/hooks/useActions.js +12 -12
- package/es/components/dataSourceComponents/hooks/useParseActionsVariable.js +6 -6
- package/es/components/dataSourceComponents/hooks/usePlatform.js +2 -2
- package/es/components/dataSourceComponents/provider/actions/ActionsProvider.js +5 -5
- package/es/components/dataSourceComponents/provider/dataSource/DataSourceProvider.js +5 -5
- package/es/components/dataSourceComponents/provider/variables/VariablesProvider.js +8 -8
- package/es/components/dataSourceComponents/provider/variables/utils.js +3 -3
- package/es/components/date-picker/datePickerCpt.js +10 -10
- package/es/components/date-picker/hooks/useMediaQuery.js +1 -1
- package/es/components/drag-sort-tree/index.d.ts +1 -0
- package/es/components/drag-sort-tree/index.js +6 -6
- package/es/components/filter/components/Dropdown/index.js +10 -10
- package/es/components/filter/components/FilterButton/index.js +7 -7
- package/es/components/form/index.js +3 -3
- package/es/components/iconSelect/index.js +2 -2
- package/es/components/iconSelect/utils.js +2 -2
- package/es/components/iconfont/index.js +1 -0
- package/es/components/login-and-register/index.js +10 -10
- package/es/components/organizationTenantSwitcher/index.js +1 -1
- package/es/components/page/index.d.ts +1 -0
- package/es/components/page/index.js +25 -60
- package/es/components/pisellAlert/index.js +2 -2
- package/es/components/pisellAnchor/index.js +6 -6
- package/es/components/pisellAvatar/index.js +5 -5
- package/es/components/pisellCard/index.js +5 -5
- package/es/components/pisellCustomCheckboxGroup/index.js +1 -1
- package/es/components/pisellDraggable/components/Action/Action.js +5 -5
- package/es/components/pisellDraggable/components/TreeItem/SortableTreeItem.js +5 -5
- package/es/components/pisellDraggable/components/TreeItem/TreeItem.js +5 -5
- package/es/components/pisellDraggable/index.js +10 -10
- package/es/components/pisellDraggable/utilities.js +5 -5
- package/es/components/pisellDropSort/PisellDropSort.js +1 -1
- package/es/components/pisellDropSort/components/SortableItem/index.js +5 -5
- package/es/components/pisellHeaderProgressBar/index.js +5 -5
- package/es/components/pisellImageCarousels/index.js +5 -5
- package/es/components/pisellInformationEntry/index.js +6 -6
- package/es/components/pisellLayout/content.js +7 -7
- package/es/components/pisellLayout/footer.js +5 -5
- package/es/components/pisellLayout/header.js +5 -5
- package/es/components/pisellLayout/sider.js +2 -2
- package/es/components/pisellList01/index.js +2 -2
- package/es/components/pisellModal/components/MobileModal/index.js +3 -3
- package/es/components/pisellNavigationMenu/PisellNavigationMenu.js +8 -8
- package/es/components/pisellQRScanner/index.js +7 -15
- package/es/components/pisellQrcode/index.js +1 -1
- package/es/components/pisellSectionHeaders/index.js +5 -5
- package/es/components/pisellTags/index.js +5 -9
- package/es/components/pisellViewGrid/index.js +5 -5
- package/es/components/pisellWalletPassCard/index.js +5 -5
- package/es/components/productCard/components/MultiDay/index.js +7 -7
- package/es/components/productCard/components/MultiDay/utils.js +5 -7
- package/es/components/productCard/components/Packages/components/collapsibleList/index.js +1 -1
- package/es/components/productCard/components/Packages/components/collapsibleList/utils.js +2 -2
- package/es/components/productCard/components/Packages/index.js +5 -5
- package/es/components/productCard/components/Sales/index.js +5 -5
- package/es/components/productCard/components/Time/components/Like/index.js +1 -1
- package/es/components/productCard/components/Time/index.js +5 -5
- package/es/components/productCard/hooks/useOpenNote.js +1 -1
- package/es/components/productCard/index.js +11 -11
- package/es/components/productCard/utils.js +3 -3
- package/es/components/profileMenu/index.js +6 -6
- package/es/components/record-view/index.js +1 -1
- package/es/components/select/index.js +6 -6
- package/es/components/sort/index.js +5 -5
- package/es/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/es/components/table/Actions/component/ExportImport/index.js +3 -3
- package/es/components/table/Gallery/index.js +1 -1
- package/es/components/table/Table/fields/index.d.ts +2 -2
- package/es/components/table/Table/index.js +11 -11
- package/es/components/table/Table/utils.d.ts +1 -1
- package/es/components/table/Table/utils.js +8 -13
- package/es/components/table/TableFilter/numberFilter.js +7 -7
- package/es/components/table/TableFilter/selectFilter.js +1 -1
- package/es/components/table/Tabs/index.js +5 -5
- package/es/components/table/hooks/useTableSetting.js +14 -13
- package/es/components/table/hooks/useTransDataSource.js +1 -1
- package/es/components/table/hooks/useTriggerValuesChange.js +2 -2
- package/es/components/table/index.js +13 -13
- package/es/components/table/model.js +5 -5
- package/es/components/table/utils.js +3 -3
- package/es/components/tabs/index.js +5 -7
- package/es/components/versionModal/index.js +1 -1
- package/es/components/versionSelect/index.js +1 -1
- package/es/components/virtual-keyboard/Time/index.js +4 -4
- package/es/components/walletCard/Guest/index.js +0 -2
- package/es/components/walletCard/index.js +8 -10
- package/es/hooks/useEngineContext.js +5 -5
- package/es/hooks/useSetRequest.js +2 -2
- package/es/hooks/useTranslationOriginal.js +2 -2
- package/es/locales/en-US.js +5 -5
- package/es/locales/index.js +1 -1
- package/es/locales/zh-CN.js +5 -5
- package/es/utils/mergeWith.js +1 -1
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceMenu/Basic.js +6 -3
- package/lib/components/dataSourceComponents/dataSourceMenu/index.d.ts +8 -2
- package/lib/components/dataSourceComponents/dataSourceTable/hooks/useTableProps.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Subdomain/index.d.ts +1 -1
- package/lib/components/dataSourceComponents/fields/Input.Url/ReadPretty.d.ts +1 -0
- package/lib/components/dataSourceComponents/fields/index.d.ts +8 -8
- package/lib/components/drag-sort-tree/index.d.ts +1 -0
- package/lib/components/form/index.js +4 -1
- package/lib/components/page/index.d.ts +1 -0
- package/lib/components/page/index.js +27 -58
- package/lib/components/table/Actions/component/ExportImport/index.d.ts +1 -0
- package/lib/components/table/Table/fields/index.d.ts +2 -2
- package/lib/components/table/Table/utils.d.ts +1 -1
- package/lib/components/table/utils.js +7 -7
- package/lib/components/tabs/index.js +62 -59
- package/lib/components/walletCard/Guest/index.js +0 -1
- package/package.json +3 -3
|
@@ -1,16 +1,16 @@
|
|
|
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
|
var _excluded = ["dataSource", "columns", "dispatch", "style", "filter", "sort", "buttons", "actionButtons", "title", "showTitle", "subTitle", "showSubTitle", "summary", "onValuesChange", "columnSetting", "dataSourceGroup", "view", "gallery", "currentSettingKey", "exportImport", "currentComponentId", "tabs"];
|
|
3
3
|
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); }
|
|
4
|
-
function ownKeys(
|
|
5
|
-
function _objectSpread(
|
|
4
|
+
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; }
|
|
5
|
+
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; }
|
|
6
6
|
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; }
|
|
7
|
-
function _toPropertyKey(
|
|
8
|
-
function _toPrimitive(
|
|
7
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
8
|
+
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); }
|
|
9
9
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
10
10
|
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."); }
|
|
11
11
|
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); }
|
|
12
12
|
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; }
|
|
13
|
-
function _iterableToArrayLimit(
|
|
13
|
+
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; } }
|
|
14
14
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
15
15
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
16
16
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
@@ -86,10 +86,10 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
86
86
|
var debouncedWidth = useDebounce(width, {
|
|
87
87
|
wait: 100
|
|
88
88
|
});
|
|
89
|
-
var utils = context === null || context === void 0
|
|
89
|
+
var utils = context === null || context === void 0 ? void 0 : (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : _context$appHelper.utils;
|
|
90
90
|
var isTerminal = useMemo(function () {
|
|
91
91
|
var _utils$isTerminal;
|
|
92
|
-
return utils === null || utils === void 0
|
|
92
|
+
return utils === null || utils === void 0 ? void 0 : (_utils$isTerminal = utils.isTerminal) === null || _utils$isTerminal === void 0 ? void 0 : _utils$isTerminal.call(utils);
|
|
93
93
|
}, [utils]);
|
|
94
94
|
var tableId = useMemo(function () {
|
|
95
95
|
if (props.__designMode === 'design') {
|
|
@@ -219,9 +219,9 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
219
219
|
var _other$pagination;
|
|
220
220
|
modal.dispatch({
|
|
221
221
|
type: 'setLocalPagination',
|
|
222
|
-
payload: other === null || other === void 0
|
|
222
|
+
payload: other === null || other === void 0 ? void 0 : (_other$pagination = other.pagination) === null || _other$pagination === void 0 ? void 0 : _other$pagination.localPagination
|
|
223
223
|
});
|
|
224
|
-
}, [other === null || other === void 0
|
|
224
|
+
}, [other === null || other === void 0 ? void 0 : (_other$pagination2 = other.pagination) === null || _other$pagination2 === void 0 ? void 0 : _other$pagination2.localPagination]);
|
|
225
225
|
useEffect(function () {
|
|
226
226
|
setTimeout(function () {
|
|
227
227
|
document.body.id = 'body';
|
|
@@ -231,7 +231,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
231
231
|
var _other$pagination3, _other$pagination4;
|
|
232
232
|
var defaultValues = ((filter === null || filter === void 0 ? void 0 : filter.list) || []).reduce(function (p, c) {
|
|
233
233
|
var _c$other;
|
|
234
|
-
return _objectSpread(_objectSpread({}, p), {}, _defineProperty({}, c.name, c === null || c === void 0
|
|
234
|
+
return _objectSpread(_objectSpread({}, p), {}, _defineProperty({}, c.name, c === null || c === void 0 ? void 0 : (_c$other = c.other) === null || _c$other === void 0 ? void 0 : _c$other.defaultValue));
|
|
235
235
|
}, {
|
|
236
236
|
pagination: {
|
|
237
237
|
page: ((_other$pagination3 = other.pagination) === null || _other$pagination3 === void 0 ? void 0 : _other$pagination3.current) || 1,
|
|
@@ -297,7 +297,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
297
297
|
if (!getIsTriggerValuesChange(cur, values)) {
|
|
298
298
|
return;
|
|
299
299
|
}
|
|
300
|
-
_onValuesChange === null || _onValuesChange === void 0
|
|
300
|
+
_onValuesChange === null || _onValuesChange === void 0 ? void 0 : _onValuesChange(omit(_cur, ['filters']), _values);
|
|
301
301
|
},
|
|
302
302
|
className: "materials-grid-form-wrap"
|
|
303
303
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -323,7 +323,7 @@ var GridView = Provider( /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
323
323
|
filter: filter,
|
|
324
324
|
sort: sort,
|
|
325
325
|
tableId: tableId,
|
|
326
|
-
localPagination: other === null || other === void 0
|
|
326
|
+
localPagination: other === null || other === void 0 ? void 0 : (_other$pagination8 = other.pagination) === null || _other$pagination8 === void 0 ? void 0 : _other$pagination8.localPagination,
|
|
327
327
|
gallery: gallery,
|
|
328
328
|
exportImport: exportImport
|
|
329
329
|
}), /*#__PURE__*/React.createElement(Summary, {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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
|
+
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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
import getContext from "../../utils/miniRedux";
|
|
8
8
|
var defaultState = {
|
|
9
9
|
// 表格id 用于缓存配置到localStorage
|
|
@@ -1,10 +1,10 @@
|
|
|
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 _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
3
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
4
4
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
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
|
var Request = /*#__PURE__*/function () {
|
|
9
9
|
function Request() {
|
|
10
10
|
_classCallCheck(this, Request);
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var _excluded = ["tab"];
|
|
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
|
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); }
|
|
4
4
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
5
5
|
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
6
|
-
function ownKeys(
|
|
7
|
-
function _objectSpread(
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
8
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
9
9
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
10
10
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
@@ -16,8 +16,8 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
16
16
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
17
17
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
18
18
|
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; }
|
|
19
|
-
function _toPropertyKey(
|
|
20
|
-
function _toPrimitive(
|
|
19
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
20
|
+
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); }
|
|
21
21
|
import React, { Component } from 'react';
|
|
22
22
|
import { Tabs as OriginalTabs } from 'antd';
|
|
23
23
|
import { warning } from "../../utils/warning";
|
|
@@ -42,7 +42,6 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
42
42
|
_defineProperty(_assertThisInitialized(_this), "_handleChange", function (key) {
|
|
43
43
|
_this.setActiveKey(key);
|
|
44
44
|
});
|
|
45
|
-
// 编辑器里可以通过 this.$(refId).setActiveKey(key) 调用
|
|
46
45
|
_defineProperty(_assertThisInitialized(_this), "setActiveKey", function (key) {
|
|
47
46
|
var _this$props$onChange = _this.props.onChange,
|
|
48
47
|
onChange = _this$props$onChange === void 0 ? function () {} : _this$props$onChange;
|
|
@@ -51,7 +50,6 @@ var Tabs = /*#__PURE__*/function (_Component) {
|
|
|
51
50
|
});
|
|
52
51
|
onChange(key);
|
|
53
52
|
});
|
|
54
|
-
// 编辑器里可以通过 this.$(refId).getActiveKey() 调用
|
|
55
53
|
_defineProperty(_assertThisInitialized(_this), "getActiveKey", function () {
|
|
56
54
|
return _this.state.activeKey;
|
|
57
55
|
});
|
|
@@ -2,7 +2,7 @@ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArra
|
|
|
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
3
|
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); }
|
|
4
4
|
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; }
|
|
5
|
-
function _iterableToArrayLimit(
|
|
5
|
+
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; } }
|
|
6
6
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
7
7
|
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import { Radio, Input, Form, Row, Col, message, InputNumber } from 'antd';
|
|
@@ -28,7 +28,7 @@ var VersionSelect = function VersionSelect(props) {
|
|
|
28
28
|
var version = versions.find(function (v) {
|
|
29
29
|
return v.value === value;
|
|
30
30
|
});
|
|
31
|
-
onChange === null || onChange === void 0
|
|
31
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(value, version);
|
|
32
32
|
};
|
|
33
33
|
return /*#__PURE__*/React.createElement(CustomSelect, _extends({}, rest, {
|
|
34
34
|
options: versions,
|
|
@@ -84,11 +84,11 @@ var VirtualKeyboardTime = function VirtualKeyboardTime(props) {
|
|
|
84
84
|
}, [value]);
|
|
85
85
|
var _onChange = function _onChange(current) {
|
|
86
86
|
if (current === "ok") {
|
|
87
|
-
onEnter === null || onEnter === void 0
|
|
87
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter(formatStringToTime(value));
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
90
90
|
if (current === "now") {
|
|
91
|
-
onEnter === null || onEnter === void 0
|
|
91
|
+
onEnter === null || onEnter === void 0 ? void 0 : onEnter(dayjs().format("HH:mm"));
|
|
92
92
|
return;
|
|
93
93
|
}
|
|
94
94
|
var _val = res.valueString + current;
|
|
@@ -98,7 +98,7 @@ var VirtualKeyboardTime = function VirtualKeyboardTime(props) {
|
|
|
98
98
|
if (document.querySelector(".virtual-keyboard-input-select")) {
|
|
99
99
|
_val = current + "";
|
|
100
100
|
}
|
|
101
|
-
_onChange2 === null || _onChange2 === void 0
|
|
101
|
+
_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(formatStringToTime(_val));
|
|
102
102
|
};
|
|
103
103
|
return /*#__PURE__*/React.createElement(VirtualKeyboard, {
|
|
104
104
|
className: className,
|
|
@@ -112,7 +112,7 @@ var VirtualKeyboardTime = function VirtualKeyboardTime(props) {
|
|
|
112
112
|
virtualKeyInputProps: {
|
|
113
113
|
value: value,
|
|
114
114
|
onChange: function onChange(e) {
|
|
115
|
-
_onChange2 === null || _onChange2 === void 0
|
|
115
|
+
_onChange2 === null || _onChange2 === void 0 ? void 0 : _onChange2(formatStringToTime(e.target.value));
|
|
116
116
|
},
|
|
117
117
|
renderInput: function renderInput() {
|
|
118
118
|
return res === null || res === void 0 ? void 0 : res.previewValueArrayDom;
|
|
@@ -8,8 +8,6 @@ var Guest = function Guest(props) {
|
|
|
8
8
|
var context = useEngineContext();
|
|
9
9
|
var _ref = context.appHelper || {},
|
|
10
10
|
utils = _ref.utils;
|
|
11
|
-
console.log('%c [ utils ]-10', 'font-size:13px; background:pink; color:#bf2c9f;', utils);
|
|
12
|
-
|
|
13
11
|
/**
|
|
14
12
|
* @title: 拉起登录
|
|
15
13
|
* @description:
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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
|
+
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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
8
8
|
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."); }
|
|
9
9
|
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); }
|
|
10
10
|
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; }
|
|
11
|
-
function _iterableToArrayLimit(
|
|
11
|
+
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; } }
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import { Card, QRCode } from 'antd';
|
|
14
14
|
import classNames from 'classnames';
|
|
@@ -24,8 +24,6 @@ import "./index.less";
|
|
|
24
24
|
|
|
25
25
|
// 添加JSX类型声明
|
|
26
26
|
|
|
27
|
-
// 类型定义
|
|
28
|
-
|
|
29
27
|
// 默认值
|
|
30
28
|
var DEFAULT_PROPS = {
|
|
31
29
|
symbol: '$',
|
|
@@ -86,7 +84,7 @@ var useCodeModal = function useCodeModal(cardNo, onCodeClick) {
|
|
|
86
84
|
}
|
|
87
85
|
};
|
|
88
86
|
var closeModal = function closeModal(e) {
|
|
89
|
-
e === null || e === void 0
|
|
87
|
+
e === null || e === void 0 ? void 0 : e.stopPropagation();
|
|
90
88
|
setIsModalOpen(false);
|
|
91
89
|
};
|
|
92
90
|
return {
|
|
@@ -319,7 +317,7 @@ var WalletCard = function WalletCard(props) {
|
|
|
319
317
|
}
|
|
320
318
|
}, [props.customBackgroundImage, mode]);
|
|
321
319
|
var goWallet = function goWallet() {
|
|
322
|
-
utils === null || utils === void 0
|
|
320
|
+
utils === null || utils === void 0 ? void 0 : utils.action({
|
|
323
321
|
type: 'pisell1.goWallet',
|
|
324
322
|
data: {},
|
|
325
323
|
callback: function callback() {}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
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
|
+
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; }
|
|
3
|
+
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; }
|
|
4
4
|
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; }
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
7
7
|
import { createContext, useContext } from "react";
|
|
8
8
|
var defaultContext = /*#__PURE__*/createContext({});
|
|
9
9
|
var useEngineContext = function useEngineContext() {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import useEngineContext from "./useEngineContext";
|
|
2
2
|
import { request } from "../components/table/utils";
|
|
3
3
|
var useSetRequest = function useSetRequest() {
|
|
4
|
-
var _context$appHelper;
|
|
4
|
+
var _context$appHelper, _context$appHelper$ut;
|
|
5
5
|
var context = useEngineContext();
|
|
6
|
-
request.setRequest((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0
|
|
6
|
+
request.setRequest((_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : (_context$appHelper$ut = _context$appHelper.utils) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.request);
|
|
7
7
|
};
|
|
8
8
|
export default useSetRequest;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import useEngineContext from "./useEngineContext";
|
|
2
2
|
import { isString } from "@pisell/utils";
|
|
3
3
|
var useTranslationOriginal = function useTranslationOriginal() {
|
|
4
|
-
var _context$appHelper;
|
|
4
|
+
var _context$appHelper, _context$appHelper$ut;
|
|
5
5
|
var context = useEngineContext();
|
|
6
|
-
return (context === null || context === void 0
|
|
6
|
+
return (context === null || context === void 0 ? void 0 : (_context$appHelper = context.appHelper) === null || _context$appHelper === void 0 ? void 0 : (_context$appHelper$ut = _context$appHelper.utils) === null || _context$appHelper$ut === void 0 ? void 0 : _context$appHelper$ut.translationOriginal) || function (val) {
|
|
7
7
|
return isString(val) ? val : val === null || val === void 0 ? void 0 : val.original;
|
|
8
8
|
};
|
|
9
9
|
};
|
package/es/locales/en-US.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _tableFilterSearch$;
|
|
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
|
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; }
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
4
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
5
|
+
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); }
|
|
6
6
|
export default (_tableFilterSearch$ = {
|
|
7
7
|
"table-filter-search": "Search",
|
|
8
8
|
"table-filter-clear": "Clear",
|
|
@@ -263,6 +263,6 @@ export default (_tableFilterSearch$ = {
|
|
|
263
263
|
'pisell-icon-select-iconfont': 'Iconfont',
|
|
264
264
|
'pisell-icon-select-search': 'Search icon',
|
|
265
265
|
'pisell-icon-select-select': 'Select icon'
|
|
266
|
-
}, _defineProperty(
|
|
266
|
+
}, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", 'Subdomain must be at least 2 characters long'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", 'Subdomain cannot exceed 60 characters'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", 'Subdomain can only contain lowercase letters, numbers and hyphens'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", 'Subdomain cannot contain only numbers'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", 'Subdomain cannot start or end with a hyphen'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", 'Subdomain cannot contain consecutive hyphens'), _defineProperty(_tableFilterSearch$, "subdomain-error-required", 'Please enter subdomain'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', 'Live'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', 'Draft'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', 'Deprecated'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', 'New version'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', 'Promote to live'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
|
|
267
267
|
return "Promote version ".concat(version || "", "?");
|
|
268
|
-
}), 'pisell-lowcode-app-version-control-promote-version-describe', 'Are you sure you want to promote this version?'), 'pisell-lowcode-app-version-control-promote-version-ok', 'Promote'), 'pisell-lowcode-app-version-control-promote-version-cancel', 'Cancel'), 'pisell-lowcode-app-version-control-version-exists', 'Version already exists'), 'pisell-lowcode-drop-sort-add', 'Add'), 'pisell-lowcode-navigation-menu-add-sub-menu', 'Add submenu'), 'pisell-lowcode-navigation-menu-add-page', 'Add page'), _defineProperty(
|
|
268
|
+
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', 'Are you sure you want to promote this version?'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', 'Promote'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', 'Cancel'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', 'Version already exists'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', 'Add'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', 'Add submenu'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', 'Add page'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page-tip', 'No navigation found. Please add a submenu or page.'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-tag-base', "Base"), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-tag-pisell1', "Pisell 1.0"), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-pattern', 'Can only contain lowercase letters, numbers, hyphens, dots, and underscores'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-start-with-letter', 'Must start with a letter'), _defineProperty(_tableFilterSearch$, 'pisell-group-permissions-rule-required', 'Required'), _defineProperty(_tableFilterSearch$, 'pisell-group-permissions-rule-limit', 'Maximum {{num}} characters'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-letters-only', 'Must start with a letter'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-alphanumeric', 'Can only contain letters, numbers, hyphens, dots, and underscores'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-special-ends', 'Cannot end with a hyphen, dot, or underscore'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-consecutive-special', 'Cannot contain consecutive hyphens, dots, or underscores'), _defineProperty(_tableFilterSearch$, "qrscanner-loading", "Recognizing QR code..."), _defineProperty(_tableFilterSearch$, "qrscanner-success", "Successfully recognized: "), _defineProperty(_tableFilterSearch$, "qrscanner-success-qrcode", "QR code successfully recognized: "), _defineProperty(_tableFilterSearch$, "qrscanner-success-barcode", "Barcode successfully recognized: "), _defineProperty(_tableFilterSearch$, "qrscanner-error-upload-image", "Please upload an image file"), _defineProperty(_tableFilterSearch$, "qrscanner-error-load-failed", "Failed to read file"), _defineProperty(_tableFilterSearch$, "qrscanner-error-no-code", "No QR code or barcode detected."), _defineProperty(_tableFilterSearch$, "qrscanner-error-camera-init", "Cannot start camera. Please make sure it's authorized."), _defineProperty(_tableFilterSearch$, "qrscanner-error-process-image", "Error processing image"), _tableFilterSearch$);
|
package/es/locales/index.js
CHANGED
|
@@ -18,5 +18,5 @@ export var getText = function getText(id) {
|
|
|
18
18
|
}
|
|
19
19
|
var locale = getCurrentLocale();
|
|
20
20
|
//@ts-ignore
|
|
21
|
-
return (langMap === null || langMap === void 0
|
|
21
|
+
return (langMap === null || langMap === void 0 ? void 0 : (_langMap$locale = langMap[locale]) === null || _langMap$locale === void 0 ? void 0 : _langMap$locale[id]) || id;
|
|
22
22
|
};
|
package/es/locales/zh-CN.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var _tableFilterSearch$;
|
|
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
|
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; }
|
|
4
|
-
function _toPropertyKey(
|
|
5
|
-
function _toPrimitive(
|
|
4
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
5
|
+
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); }
|
|
6
6
|
export default (_tableFilterSearch$ = {
|
|
7
7
|
"table-filter-search": "搜索",
|
|
8
8
|
"table-filter-clear": "清除",
|
|
@@ -260,6 +260,6 @@ export default (_tableFilterSearch$ = {
|
|
|
260
260
|
'pisell-icon-select-iconfont': 'Iconfont',
|
|
261
261
|
'pisell-icon-select-search': '搜索图标',
|
|
262
262
|
'pisell-icon-select-select': '选择图标'
|
|
263
|
-
}, _defineProperty(
|
|
263
|
+
}, _defineProperty(_tableFilterSearch$, "subdomain-error-too-short", '子域名长度不能小于2个字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-too-long", '子域名长度不能超过60个字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-pattern", '子域名只能包含小写字母、数字和连字符'), _defineProperty(_tableFilterSearch$, "subdomain-error-numbers-only", '子域名不能全为数字'), _defineProperty(_tableFilterSearch$, "subdomain-error-hyphen-ends", '子域名不能以连字符开头或结尾'), _defineProperty(_tableFilterSearch$, "subdomain-error-consecutive-hyphens", '子域名不能包含连续的连字符'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-live', '正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-draft', '草稿'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-deprecated', '已废弃'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-new-version', '新版本'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-to-live', '发布正式版'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version', function pisellLowcodeAppVersionControlPromoteVersion(version) {
|
|
264
264
|
return "\u53D1\u5E03\u7248\u672C ".concat(version || "", "?");
|
|
265
|
-
}), 'pisell-lowcode-app-version-control-promote-version-describe', '您确定要发布此版本吗?'), 'pisell-lowcode-app-version-control-promote-version-ok', '发布'), 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), 'pisell-lowcode-drop-sort-add', '添加'), 'pisell-lowcode-navigation-menu-add-sub-menu', '添加子菜单'), 'pisell-lowcode-navigation-menu-add-page', '添加页面'), 'pisell-lowcode-navigation-menu-add-page-tip', '没有找到导航,请添加子菜单或页面。'), _defineProperty(
|
|
265
|
+
}), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-describe', '您确定要发布此版本吗?'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-ok', '发布'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-promote-version-cancel', '取消'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-app-version-control-version-exists', '版本已存在'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-drop-sort-add', '添加'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-sub-menu', '添加子菜单'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page', '添加页面'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-add-page-tip', '没有找到导航,请添加子菜单或页面。'), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-tag-base', "基础"), _defineProperty(_tableFilterSearch$, 'pisell-lowcode-navigation-menu-tag-pisell1', "Pisell 1.0"), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-pattern', '只能包含小写字母、数字、连字符、点和下划线'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-start-with-letter', '必须以字母开头'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-special-ends', '不能以连字符、点或下划线结尾'), _defineProperty(_tableFilterSearch$, 'pisell-data-source-form-app-identifier-consecutive-special', '不能包含连续的连字符、点或下划线'), _defineProperty(_tableFilterSearch$, "qrscanner-loading", "正在识别二维码..."), _defineProperty(_tableFilterSearch$, "qrscanner-success", "识别成功: "), _defineProperty(_tableFilterSearch$, "qrscanner-success-qrcode", "二维码识别成功: "), _defineProperty(_tableFilterSearch$, "qrscanner-success-barcode", "条形码识别成功: "), _defineProperty(_tableFilterSearch$, "qrscanner-error-upload-image", "请上传图片文件"), _defineProperty(_tableFilterSearch$, "qrscanner-error-load-failed", "读取文件失败"), _defineProperty(_tableFilterSearch$, "qrscanner-error-no-code", "未检测到二维码或条形码"), _defineProperty(_tableFilterSearch$, "qrscanner-error-camera-init", "无法启动摄像头,请确保已授权"), _defineProperty(_tableFilterSearch$, "qrscanner-error-process-image", "处理图像时出错"), _tableFilterSearch$);
|
package/es/utils/mergeWith.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
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
|
export function mergeWith(obj, source, customizer) {
|
|
3
3
|
if (typeof customizer !== 'function') {
|
|
4
4
|
throw new Error('Customizer must be a function');
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
+
/**
|
|
4
|
+
* @title: 数据源表单组件
|
|
5
|
+
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
+
*/
|
|
7
|
+
declare const DataSourceMenu: React.ForwardRefExoticComponent<PisellMenuProps & React.RefAttributes<any>>;
|
|
8
|
+
export default DataSourceMenu;
|
|
@@ -37,7 +37,7 @@ var import_useEngineContext = __toESM(require("../../../hooks/useEngineContext")
|
|
|
37
37
|
var import_pisellMenu = __toESM(require("../../pisellMenu"));
|
|
38
38
|
var DataSourceMenu = (0, import_react.forwardRef)(
|
|
39
39
|
(props, ref) => {
|
|
40
|
-
var _a, _b, _c, _d;
|
|
40
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
41
41
|
const { appHelper } = (0, import_useEngineContext.default)();
|
|
42
42
|
const {
|
|
43
43
|
menuItems,
|
|
@@ -47,6 +47,9 @@ var DataSourceMenu = (0, import_react.forwardRef)(
|
|
|
47
47
|
getShowChildren,
|
|
48
48
|
handleClick
|
|
49
49
|
} = (_d = (_c = (_b = (_a = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _a.getApp) == null ? void 0 : _b.call(_a)) == null ? void 0 : _c.menuManager) == null ? void 0 : _d.useMenu();
|
|
50
|
+
const getText = ((_h = (_g = (_f = (_e = appHelper == null ? void 0 : appHelper.utils) == null ? void 0 : _e.getApp) == null ? void 0 : _f.call(_e)) == null ? void 0 : _g.locales) == null ? void 0 : _h.getText) || ((str) => {
|
|
51
|
+
return str;
|
|
52
|
+
});
|
|
50
53
|
const renderMenuItems = (items) => {
|
|
51
54
|
return items.map((item) => {
|
|
52
55
|
if (item.hide) {
|
|
@@ -58,14 +61,14 @@ var DataSourceMenu = (0, import_react.forwardRef)(
|
|
|
58
61
|
import_pisellMenu.default.SubMenu,
|
|
59
62
|
{
|
|
60
63
|
key: item.key,
|
|
61
|
-
title: item.label,
|
|
64
|
+
title: getText(item.label),
|
|
62
65
|
icon: item.icon,
|
|
63
66
|
router: item.path
|
|
64
67
|
},
|
|
65
68
|
renderMenuItems(_children)
|
|
66
69
|
);
|
|
67
70
|
}
|
|
68
|
-
return /* @__PURE__ */ import_react.default.createElement(import_pisellMenu.default.Item, { key: item.key, icon: item.icon, router: item.path }, item.label);
|
|
71
|
+
return /* @__PURE__ */ import_react.default.createElement(import_pisellMenu.default.Item, { key: item.key, icon: item.icon, router: item.path }, getText(item.label));
|
|
69
72
|
});
|
|
70
73
|
};
|
|
71
74
|
return /* @__PURE__ */ import_react.default.createElement(
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { PisellMenuProps } from '../../pisellMenu/types';
|
|
3
|
+
/**
|
|
4
|
+
* @title: 数据源表单组件
|
|
5
|
+
* @description: 基于数据源动态生成表单,支持编辑、查看、禁用三种模式
|
|
6
|
+
*/
|
|
7
|
+
declare const DataSourceMenu: (props: PisellMenuProps, ref: React.Ref<any>) => JSX.Element;
|
|
8
|
+
export default DataSourceMenu;
|
|
@@ -70,7 +70,7 @@ declare const useTableProps: (props: UseTablePropsProps) => {
|
|
|
70
70
|
useCustomAction: boolean;
|
|
71
71
|
actionType: string;
|
|
72
72
|
openMode: "modal" | "drawer";
|
|
73
|
-
openContentSize: "
|
|
73
|
+
openContentSize: "small" | "middle" | "large";
|
|
74
74
|
openTitle: string;
|
|
75
75
|
key: string;
|
|
76
76
|
} | undefined;
|
|
@@ -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;
|