@pnkx-lib/ui 1.9.510 → 1.9.512
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/style.css +2 -2
- package/es/chunks/{GenericUploadModal-CkhTggnS.js → GenericUploadModal-Dhv5_mhq.js} +637 -575
- package/es/chunks/{bundle-mjs-BBFHkixS.js → bundle-mjs-BME7zF0Z.js} +1 -1
- package/es/chunks/{index.esm-Ds4t-z37.js → index.esm-Dr5ZHcf7.js} +6 -3
- package/es/chunks/{toArray-DzhjhY0s.js → toArray-2LkvUaha.js} +68 -81
- package/es/fields/CascaderField.js +1 -1
- package/es/fields/Checkbox.js +1 -1
- package/es/fields/DatePicker.js +1 -1
- package/es/fields/DateRangePicker.js +1 -1
- package/es/fields/Input.js +1 -1
- package/es/fields/InputRangePicker.js +1 -1
- package/es/fields/PnkxField.js +1 -1
- package/es/fields/Select.js +1 -1
- package/es/fields/SliderRanger.js +1 -1
- package/es/fields/SliderSingle.js +1 -1
- package/es/fields/Switch.js +1 -1
- package/es/fields/Textarea.js +1 -1
- package/es/fields/TimePicker.js +1 -1
- package/es/fields/TimeRangePicker.js +1 -1
- package/es/fields/TinyMCE.js +36 -17
- package/es/index.js +1 -1
- package/es/ui/Button.js +1 -1
- package/es/ui/Cascader.js +1 -1
- package/es/ui/CategoryStatus.js +1 -1
- package/es/ui/Container.js +1 -1
- package/es/ui/Descriptions.js +1 -1
- package/es/ui/GenericUploadModal.js +2 -2
- package/es/ui/Label.js +1 -1
- package/es/ui/Layout.js +33 -30
- package/es/ui/Modal.js +1 -1
- package/es/ui/SearchFilterForm.js +1 -1
- package/es/ui/SelectSingleTable.js +1 -1
- package/es/ui/SelectTable.js +1 -1
- package/es/ui/Sidebar/index.js +9 -7
- package/es/ui/Tabs.js +2 -2
- package/es/ui/UploadComponent.js +1 -1
- package/es/ui/UploadImage.js +1 -1
- package/es/ui/index.js +3145 -3040
- package/package.json +1 -1
- package/types/components/ui/CustomeBulkActions/ConvertData.d.ts +2 -2
- package/types/components/ui/Sidebar/components/UserInfoSection.d.ts +2 -0
package/es/fields/TinyMCE.js
CHANGED
|
@@ -1281,7 +1281,7 @@ var eventPropTypes = {
|
|
|
1281
1281
|
onScriptsLoad: propTypesExports.func,
|
|
1282
1282
|
onScriptsLoadError: propTypesExports.func,
|
|
1283
1283
|
};
|
|
1284
|
-
var EditorPropTypes = __assign$2({ apiKey: propTypesExports.string, licenseKey: propTypesExports.string, id: propTypesExports.string, inline: propTypesExports.bool, init: propTypesExports.object, initialValue: propTypesExports.string, onEditorChange: propTypesExports.func, value: propTypesExports.string, tagName: propTypesExports.string, tabIndex: propTypesExports.number, cloudChannel: propTypesExports.string, plugins: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), toolbar: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), disabled: propTypesExports.bool, textareaName: propTypesExports.string, tinymceScriptSrc: propTypesExports.oneOfType([
|
|
1284
|
+
var EditorPropTypes = __assign$2({ apiKey: propTypesExports.string, licenseKey: propTypesExports.string, id: propTypesExports.string, inline: propTypesExports.bool, init: propTypesExports.object, initialValue: propTypesExports.string, onEditorChange: propTypesExports.func, value: propTypesExports.string, tagName: propTypesExports.string, tabIndex: propTypesExports.number, cloudChannel: propTypesExports.string, plugins: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), toolbar: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.array]), disabled: propTypesExports.bool, readonly: propTypesExports.bool, textareaName: propTypesExports.string, tinymceScriptSrc: propTypesExports.oneOfType([
|
|
1285
1285
|
propTypesExports.string,
|
|
1286
1286
|
propTypesExports.arrayOf(propTypesExports.string),
|
|
1287
1287
|
propTypesExports.arrayOf(propTypesExports.shape({
|
|
@@ -1295,6 +1295,11 @@ var EditorPropTypes = __assign$2({ apiKey: propTypesExports.string, licenseKey:
|
|
|
1295
1295
|
delay: propTypesExports.number
|
|
1296
1296
|
}) }, eventPropTypes);
|
|
1297
1297
|
|
|
1298
|
+
var getTinymce = function (view) {
|
|
1299
|
+
var global = view;
|
|
1300
|
+
return global && global.tinymce ? global.tinymce : null;
|
|
1301
|
+
};
|
|
1302
|
+
|
|
1298
1303
|
var isFunction = function (x) { return typeof x === 'function'; };
|
|
1299
1304
|
var isEventProp = function (name) { return name in eventPropTypes; };
|
|
1300
1305
|
var eventAttrToEventName = function (attrName) { return attrName.substr(2); };
|
|
@@ -1364,6 +1369,14 @@ var setMode = function (editor, mode) {
|
|
|
1364
1369
|
}
|
|
1365
1370
|
}
|
|
1366
1371
|
};
|
|
1372
|
+
var getTinymceOrError = function (view) {
|
|
1373
|
+
var tinymce = getTinymce(view);
|
|
1374
|
+
if (!tinymce) {
|
|
1375
|
+
throw new Error('tinymce should have been loaded into global scope');
|
|
1376
|
+
}
|
|
1377
|
+
return tinymce;
|
|
1378
|
+
};
|
|
1379
|
+
var isDisabledOptionSupported = function (editor) { return editor.options && editor.options.isRegistered('disabled'); };
|
|
1367
1380
|
|
|
1368
1381
|
var __assign$1 = (undefined && undefined.__assign) || function () {
|
|
1369
1382
|
__assign$1 = Object.assign || function(t) {
|
|
@@ -1508,11 +1521,6 @@ var createScriptLoader = function () {
|
|
|
1508
1521
|
};
|
|
1509
1522
|
var ScriptLoader = createScriptLoader();
|
|
1510
1523
|
|
|
1511
|
-
var getTinymce = function (view) {
|
|
1512
|
-
var global = view;
|
|
1513
|
-
return global && global.tinymce ? global.tinymce : null;
|
|
1514
|
-
};
|
|
1515
|
-
|
|
1516
1524
|
var __extends = (undefined && undefined.__extends) || (function () {
|
|
1517
1525
|
var extendStatics = function (d, b) {
|
|
1518
1526
|
extendStatics = Object.setPrototypeOf ||
|
|
@@ -1633,11 +1641,8 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1633
1641
|
}
|
|
1634
1642
|
return;
|
|
1635
1643
|
}
|
|
1636
|
-
var tinymce =
|
|
1637
|
-
|
|
1638
|
-
throw new Error('tinymce should have been loaded into global scope');
|
|
1639
|
-
}
|
|
1640
|
-
var finalInit = __assign(__assign(__assign(__assign({}, _this.props.init), { selector: undefined, target: target, readonly: _this.props.disabled, inline: _this.inline, plugins: mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar }), (_this.props.licenseKey ? { license_key: _this.props.licenseKey } : {})), { setup: function (editor) {
|
|
1644
|
+
var tinymce = getTinymceOrError(_this.view);
|
|
1645
|
+
var finalInit = __assign(__assign(__assign(__assign({}, _this.props.init), { selector: undefined, target: target, disabled: _this.props.disabled, readonly: _this.props.readonly, inline: _this.inline, plugins: mergePlugins((_a = _this.props.init) === null || _a === void 0 ? void 0 : _a.plugins, _this.props.plugins), toolbar: (_b = _this.props.toolbar) !== null && _b !== void 0 ? _b : (_c = _this.props.init) === null || _c === void 0 ? void 0 : _c.toolbar }), (_this.props.licenseKey ? { license_key: _this.props.licenseKey } : {})), { setup: function (editor) {
|
|
1641
1646
|
_this.editor = editor;
|
|
1642
1647
|
_this.bindHandlers({});
|
|
1643
1648
|
// When running in inline mode the editor gets the initial value
|
|
@@ -1654,8 +1659,16 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1654
1659
|
if (_this.props.init && isFunction(_this.props.init.setup)) {
|
|
1655
1660
|
_this.props.init.setup(editor);
|
|
1656
1661
|
}
|
|
1662
|
+
if (_this.props.disabled) {
|
|
1663
|
+
if (isDisabledOptionSupported(_this.editor)) {
|
|
1664
|
+
_this.editor.options.set('disabled', _this.props.disabled);
|
|
1665
|
+
}
|
|
1666
|
+
else {
|
|
1667
|
+
_this.editor.mode.set('readonly');
|
|
1668
|
+
}
|
|
1669
|
+
}
|
|
1657
1670
|
}, init_instance_callback: function (editor) {
|
|
1658
|
-
var _a
|
|
1671
|
+
var _a;
|
|
1659
1672
|
// check for changes that happened since tinymce.init() was called
|
|
1660
1673
|
var initialValue = _this.getInitialValue();
|
|
1661
1674
|
_this.currentContent = (_a = _this.currentContent) !== null && _a !== void 0 ? _a : editor.getContent();
|
|
@@ -1667,8 +1680,6 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1667
1680
|
editor.undoManager.add();
|
|
1668
1681
|
editor.setDirty(false);
|
|
1669
1682
|
}
|
|
1670
|
-
var disabled = (_b = _this.props.disabled) !== null && _b !== void 0 ? _b : false;
|
|
1671
|
-
setMode(_this.editor, disabled ? 'readonly' : 'design');
|
|
1672
1683
|
// ensure existing init_instance_callback is called
|
|
1673
1684
|
if (_this.props.init && isFunction(_this.props.init.init_instance_callback)) {
|
|
1674
1685
|
_this.props.init.init_instance_callback(editor);
|
|
@@ -1746,9 +1757,17 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1746
1757
|
}
|
|
1747
1758
|
});
|
|
1748
1759
|
}
|
|
1760
|
+
if (this.props.readonly !== prevProps.readonly) {
|
|
1761
|
+
var readonly = (_b = this.props.readonly) !== null && _b !== void 0 ? _b : false;
|
|
1762
|
+
setMode(this.editor, readonly ? 'readonly' : 'design');
|
|
1763
|
+
}
|
|
1749
1764
|
if (this.props.disabled !== prevProps.disabled) {
|
|
1750
|
-
|
|
1751
|
-
|
|
1765
|
+
if (isDisabledOptionSupported(this.editor)) {
|
|
1766
|
+
this.editor.options.set('disabled', this.props.disabled);
|
|
1767
|
+
}
|
|
1768
|
+
else {
|
|
1769
|
+
setMode(this.editor, this.props.disabled ? 'readonly' : 'design');
|
|
1770
|
+
}
|
|
1752
1771
|
}
|
|
1753
1772
|
}
|
|
1754
1773
|
}
|
|
@@ -1879,7 +1898,7 @@ var Editor = /** @class */ (function (_super) {
|
|
|
1879
1898
|
};
|
|
1880
1899
|
Editor.propTypes = EditorPropTypes;
|
|
1881
1900
|
Editor.defaultProps = {
|
|
1882
|
-
cloudChannel: '
|
|
1901
|
+
cloudChannel: '8',
|
|
1883
1902
|
};
|
|
1884
1903
|
return Editor;
|
|
1885
1904
|
}(React.Component));
|
package/es/index.js
CHANGED
|
@@ -66,7 +66,7 @@ export { ViewPdf } from './ui/ViewPdf.js';
|
|
|
66
66
|
export { Sidebar } from './ui/Sidebar/index.js';
|
|
67
67
|
export { SelectTable } from './ui/SelectTable.js';
|
|
68
68
|
export { SelectSingleTable } from './ui/SelectSingleTable.js';
|
|
69
|
-
export { G as GenericUploadModal } from './chunks/GenericUploadModal-
|
|
69
|
+
export { G as GenericUploadModal } from './chunks/GenericUploadModal-Dhv5_mhq.js';
|
|
70
70
|
export { Descriptions } from './ui/Descriptions.js';
|
|
71
71
|
export { Input } from './fields/Input.js';
|
|
72
72
|
export { PnkxField } from './fields/PnkxField.js';
|
package/es/ui/Button.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Button as Button$1 } from 'antd';
|
|
3
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
3
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
4
4
|
|
|
5
5
|
const Button = (props) => {
|
|
6
6
|
const { onClick, ...restProps } = props;
|
package/es/ui/Cascader.js
CHANGED
package/es/ui/CategoryStatus.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
2
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
2
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
3
3
|
|
|
4
4
|
var CATEGORY_LIST_ENUM = /* @__PURE__ */ ((CATEGORY_LIST_ENUM2) => {
|
|
5
5
|
CATEGORY_LIST_ENUM2[CATEGORY_LIST_ENUM2["DRAFT"] = 0] = "DRAFT";
|
package/es/ui/Container.js
CHANGED
package/es/ui/Descriptions.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Descriptions as Descriptions$1 } from 'antd';
|
|
3
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
3
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
4
4
|
|
|
5
5
|
const Descriptions = (props) => {
|
|
6
6
|
const { className } = props;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'react/jsx-runtime';
|
|
2
2
|
import 'antd';
|
|
3
|
-
export { G as GenericUploadModal } from '../chunks/GenericUploadModal-
|
|
4
|
-
import '../chunks/index.esm-
|
|
3
|
+
export { G as GenericUploadModal } from '../chunks/GenericUploadModal-Dhv5_mhq.js';
|
|
4
|
+
import '../chunks/index.esm-Dr5ZHcf7.js';
|
|
5
5
|
import 'react';
|
|
6
6
|
import '@pnkx-lib/core';
|
|
7
7
|
import '../chunks/InboxOutlined-BBuIJe6u.js';
|
package/es/ui/Label.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
2
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
3
3
|
import { Typography } from './Typography.js';
|
|
4
4
|
|
|
5
5
|
const Label = ({ label, required, classNameLabel, isSubLabel }) => {
|
package/es/ui/Layout.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-
|
|
2
|
+
import { g as genStyleHooks, u as unit, C as ConfigContext, o as omit, t as toArray, a as useComponentConfig, _ as _toConsumableArray } from '../chunks/toArray-2LkvUaha.js';
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import { useContext, useState, useEffect, useRef } from 'react';
|
|
5
5
|
import { c as classNames } from '../chunks/index-BLRvgOFN.js';
|
|
@@ -60,6 +60,23 @@ const LayoutContext = /*#__PURE__*/React.createContext({
|
|
|
60
60
|
}
|
|
61
61
|
});
|
|
62
62
|
|
|
63
|
+
const addMediaQueryListener = (mql, handler) => {
|
|
64
|
+
// Don't delete here, please keep the code compatible
|
|
65
|
+
if (typeof (mql === null || mql === void 0 ? void 0 : mql.addEventListener) !== 'undefined') {
|
|
66
|
+
mql.addEventListener('change', handler);
|
|
67
|
+
} else if (typeof (mql === null || mql === void 0 ? void 0 : mql.addListener) !== 'undefined') {
|
|
68
|
+
mql.addListener(handler);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
const removeMediaQueryListener = (mql, handler) => {
|
|
72
|
+
// Don't delete here, please keep the code compatible
|
|
73
|
+
if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeEventListener) !== 'undefined') {
|
|
74
|
+
mql.removeEventListener('change', handler);
|
|
75
|
+
} else if (typeof (mql === null || mql === void 0 ? void 0 : mql.removeListener) !== 'undefined') {
|
|
76
|
+
mql.removeListener(handler);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
63
80
|
const genLayoutStyle = token => {
|
|
64
81
|
const {
|
|
65
82
|
antCls,
|
|
@@ -168,7 +185,7 @@ const prepareComponentToken = token => {
|
|
|
168
185
|
};
|
|
169
186
|
// ============================== Export ==============================
|
|
170
187
|
const DEPRECATED_TOKENS = [['colorBgBody', 'bodyBg'], ['colorBgHeader', 'headerBg'], ['colorBgTrigger', 'triggerBg']];
|
|
171
|
-
const useStyle$1 = genStyleHooks('Layout',
|
|
188
|
+
const useStyle$1 = genStyleHooks('Layout', genLayoutStyle, prepareComponentToken, {
|
|
172
189
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
173
190
|
});
|
|
174
191
|
|
|
@@ -279,7 +296,7 @@ const genSiderStyle = token => {
|
|
|
279
296
|
}
|
|
280
297
|
};
|
|
281
298
|
};
|
|
282
|
-
const useStyle = genStyleHooks(['Layout', 'Sider'],
|
|
299
|
+
const useStyle = genStyleHooks(['Layout', 'Sider'], genSiderStyle, prepareComponentToken, {
|
|
283
300
|
deprecatedTokens: DEPRECATED_TOKENS
|
|
284
301
|
});
|
|
285
302
|
|
|
@@ -303,8 +320,7 @@ const isNumeric = value => !Number.isNaN(Number.parseFloat(value)) && isFinite(v
|
|
|
303
320
|
const SiderContext = /*#__PURE__*/React.createContext({});
|
|
304
321
|
const generateId = (() => {
|
|
305
322
|
let i = 0;
|
|
306
|
-
return
|
|
307
|
-
let prefix = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
323
|
+
return (prefix = '') => {
|
|
308
324
|
i += 1;
|
|
309
325
|
return `${prefix}${i}`;
|
|
310
326
|
};
|
|
@@ -362,29 +378,17 @@ const Sider = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
362
378
|
};
|
|
363
379
|
useEffect(() => {
|
|
364
380
|
function responsiveHandler(mql) {
|
|
365
|
-
|
|
381
|
+
var _a;
|
|
382
|
+
return (_a = responsiveHandlerRef.current) === null || _a === void 0 ? void 0 : _a.call(responsiveHandlerRef, mql);
|
|
366
383
|
}
|
|
367
384
|
let mql;
|
|
368
|
-
if (typeof window !== 'undefined') {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
if (matchMedia && breakpoint && breakpoint in dimensionMaxMap) {
|
|
373
|
-
mql = matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
|
|
374
|
-
try {
|
|
375
|
-
mql.addEventListener('change', responsiveHandler);
|
|
376
|
-
} catch (_a) {
|
|
377
|
-
mql.addListener(responsiveHandler);
|
|
378
|
-
}
|
|
379
|
-
responsiveHandler(mql);
|
|
380
|
-
}
|
|
385
|
+
if (typeof (window === null || window === void 0 ? void 0 : window.matchMedia) !== 'undefined' && breakpoint && breakpoint in dimensionMaxMap) {
|
|
386
|
+
mql = window.matchMedia(`screen and (max-width: ${dimensionMaxMap[breakpoint]})`);
|
|
387
|
+
addMediaQueryListener(mql, responsiveHandler);
|
|
388
|
+
responsiveHandler(mql);
|
|
381
389
|
}
|
|
382
390
|
return () => {
|
|
383
|
-
|
|
384
|
-
mql === null || mql === void 0 ? void 0 : mql.removeEventListener('change', responsiveHandler);
|
|
385
|
-
} catch (_a) {
|
|
386
|
-
mql === null || mql === void 0 ? void 0 : mql.removeListener(responsiveHandler);
|
|
387
|
-
}
|
|
391
|
+
removeMediaQueryListener(mql, responsiveHandler);
|
|
388
392
|
};
|
|
389
393
|
}, [breakpoint]); // in order to accept dynamic 'breakpoint' property, we need to add 'breakpoint' into dependency array.
|
|
390
394
|
useEffect(() => {
|
|
@@ -468,12 +472,11 @@ var __rest = undefined && undefined.__rest || function (s, e) {
|
|
|
468
472
|
}
|
|
469
473
|
return t;
|
|
470
474
|
};
|
|
471
|
-
function generator(
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
} = _ref;
|
|
475
|
+
function generator({
|
|
476
|
+
suffixCls,
|
|
477
|
+
tagName,
|
|
478
|
+
displayName
|
|
479
|
+
}) {
|
|
477
480
|
return BasicComponent => {
|
|
478
481
|
const Adapter = /*#__PURE__*/React.forwardRef((props, ref) => (/*#__PURE__*/React.createElement(BasicComponent, Object.assign({
|
|
479
482
|
ref: ref,
|
package/es/ui/Modal.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { u as useForm } from '../chunks/index.esm-
|
|
2
|
+
import { u as useForm } from '../chunks/index.esm-Dr5ZHcf7.js';
|
|
3
3
|
import { Button } from './Button.js';
|
|
4
4
|
import { I as Icon, _ as _extends } from '../chunks/AntdIcon-Bve8mGNz.js';
|
|
5
5
|
import * as React from 'react';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Select, Table } from 'antd';
|
|
3
3
|
import { useState, useCallback } from 'react';
|
|
4
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
4
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
5
5
|
import { get, isEmpty } from 'lodash';
|
|
6
6
|
import { ErrorMessage } from './ErrorMessage.js';
|
|
7
7
|
import { Label } from './Label.js';
|
package/es/ui/SelectTable.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Select, Table } from 'antd';
|
|
3
3
|
import { useState, useCallback } from 'react';
|
|
4
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
4
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
5
5
|
import { get } from 'lodash';
|
|
6
6
|
import { ErrorMessage } from './ErrorMessage.js';
|
|
7
7
|
import { Label } from './Label.js';
|
package/es/ui/Sidebar/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { useLocation, useNavigate } from 'react-router';
|
|
|
5
5
|
import { Flex, AutoComplete, Divider, ConfigProvider, Dropdown } from 'antd';
|
|
6
6
|
import { Layout } from '../Layout.js';
|
|
7
7
|
import { Input } from '../../fields/Input.js';
|
|
8
|
-
import { t as twMerge } from '../../chunks/bundle-mjs-
|
|
8
|
+
import { t as twMerge } from '../../chunks/bundle-mjs-BME7zF0Z.js';
|
|
9
9
|
import { R as RefIcon$2 } from '../../chunks/DownOutlined-O2mPkovb.js';
|
|
10
10
|
import { I as Icon, _ as _extends } from '../../chunks/AntdIcon-Bve8mGNz.js';
|
|
11
11
|
|
|
@@ -275,14 +275,16 @@ const userInfo = {
|
|
|
275
275
|
name: "admin",
|
|
276
276
|
avatar: "http://10.1.15.154:9000/image/logo-phenikaa-mec.webp"
|
|
277
277
|
};
|
|
278
|
-
const items = [
|
|
279
|
-
{ key: "1", label: "Hồ sơ" },
|
|
280
|
-
{ key: "4", label: "Cài đặt" },
|
|
281
|
-
{ key: "2", label: "Đăng xuất" }
|
|
282
|
-
];
|
|
283
278
|
const UserInfoSection = ({
|
|
284
|
-
hoverOpenMenu
|
|
279
|
+
hoverOpenMenu,
|
|
280
|
+
customItems
|
|
285
281
|
}) => {
|
|
282
|
+
const items = [
|
|
283
|
+
{ key: "1", label: "Hồ sơ" },
|
|
284
|
+
{ key: "4", label: "Cài đặt" },
|
|
285
|
+
{ key: "2", label: "Đăng xuất" },
|
|
286
|
+
...customItems || []
|
|
287
|
+
];
|
|
286
288
|
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
287
289
|
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsx("li", { className: "list-none cursor-pointer group flex items-center", children: /* @__PURE__ */ jsxs(
|
|
288
290
|
"div",
|
package/es/ui/Tabs.js
CHANGED
|
@@ -29,8 +29,8 @@ const identity = (arg) => arg;
|
|
|
29
29
|
function useStore(api, selector = identity) {
|
|
30
30
|
const slice = React__default.useSyncExternalStore(
|
|
31
31
|
api.subscribe,
|
|
32
|
-
() => selector(api.getState()),
|
|
33
|
-
() => selector(api.getInitialState())
|
|
32
|
+
React__default.useCallback(() => selector(api.getState()), [api, selector]),
|
|
33
|
+
React__default.useCallback(() => selector(api.getInitialState()), [api, selector])
|
|
34
34
|
);
|
|
35
35
|
React__default.useDebugValue(slice);
|
|
36
36
|
return slice;
|
package/es/ui/UploadComponent.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { Upload, Image, Tooltip } from 'antd';
|
|
3
3
|
import { Spin } from './Spin.js';
|
|
4
|
-
import { t as twMerge } from '../chunks/bundle-mjs-
|
|
4
|
+
import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
|
|
5
5
|
import { Label } from './Label.js';
|
|
6
6
|
import { R as RefIcon } from '../chunks/CloseOutlined-CZUJ_3tW.js';
|
|
7
7
|
|
package/es/ui/UploadImage.js
CHANGED