@pnkx-lib/ui 1.9.467 → 1.9.469

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.
Files changed (37) hide show
  1. package/dist/style.css +1 -1
  2. package/es/chunks/{AntdIcon-KP2HuB_x.js → AntdIcon--fhhlrN2.js} +55 -3
  3. package/es/chunks/{CloseCircleFilled-4jnV3XJV.js → CloseCircleFilled-CFf9JuKT.js} +1 -1
  4. package/es/chunks/{CloseOutlined-DdLJZQvZ.js → CloseOutlined-Dr0OzVF3.js} +1 -1
  5. package/es/chunks/{DownOutlined-Cl95zPIN.js → DownOutlined-DeqIkZcf.js} +1 -1
  6. package/es/chunks/ExportFile-HZ8zFqRV.js +64 -0
  7. package/es/chunks/GenericUploadModal-ClzfSP57.js +11605 -0
  8. package/es/chunks/{InboxOutlined-W7xl_mLq.js → InboxOutlined-BSPALM_S.js} +1 -1
  9. package/es/chunks/Layout-CRPluSOs.js +598 -0
  10. package/es/chunks/{LoadingOutlined-C5-PNVpb.js → LoadingOutlined-RxqeOpLJ.js} +1 -1
  11. package/es/chunks/PlusOutlined-BTNAWDVD.js +20 -0
  12. package/es/chunks/SearchFilterForm-dvW624w0.js +88 -0
  13. package/es/chunks/createForOfIteratorHelper-DEc7rz3b.js +52 -0
  14. package/es/chunks/{createSuper-CnOp-EUR.js → createSuper-DsoUqJ1E.js} +2 -2
  15. package/es/chunks/{defineProperty-CTLrw71t.js → defineProperty-CnMPreZi.js} +1 -1
  16. package/es/chunks/{index-xdC7i8zM.js → index-BLRvgOFN.js} +1 -1
  17. package/es/chunks/index-ClFSxOLW.js +655 -0
  18. package/es/chunks/{toArray-GtzhUyP3.js → toArray-DA_RJdbk.js} +186 -8
  19. package/es/constants/index.js +1 -0
  20. package/es/fields/DatePicker.js +4 -52
  21. package/es/fields/Select.js +2 -2
  22. package/es/fields/Upload.js +1 -18
  23. package/es/index.js +5 -5
  24. package/es/ui/BreadcrumbHeading.js +1 -1
  25. package/es/ui/ExportFile.js +6 -64
  26. package/es/ui/GenericUploadModal.js +7 -11585
  27. package/es/ui/Heading.js +1 -1
  28. package/es/ui/ImportFile.js +2 -2
  29. package/es/ui/Layout.js +2 -598
  30. package/es/ui/SearchFilterForm.js +4 -88
  31. package/es/ui/Sidebar/index.js +1 -655
  32. package/es/ui/UploadComponent.js +1 -1
  33. package/es/ui/UploadMultiple.js +1 -1
  34. package/es/ui/index.js +131806 -149
  35. package/package.json +1 -1
  36. package/types/components/ui/Table/ActionRowTable/index.d.ts +3 -1
  37. package/types/constants/table.d.ts +2 -1
@@ -1,8 +1,8 @@
1
1
  import * as React from 'react';
2
2
  import React__default, { useContext, createContext } from 'react';
3
- import { _ as _typeof, c as _arrayLikeToArray, a as _unsupportedIterableToArray, b as _defineProperty } from './defineProperty-CTLrw71t.js';
4
- import { w as warningOnce, a as _slicedToArray, b as warning$1, c as canUseDom, d as _objectSpread2, u as updateCSS, _ as _extends, r as removeCSS, e as _arrayWithHoles, f as _nonIterableRest, g as resetWarned$1, F as FastColor, h as generate, p as presetPrimaryColors, i as presetPalettes, j as _objectWithoutProperties, k as IconContext } from './AntdIcon-KP2HuB_x.js';
5
- import { _ as _createClass, a as _classCallCheck, b as _inherits, c as _createSuper, d as _assertThisInitialized } from './createSuper-CnOp-EUR.js';
3
+ import { a as _typeof, c as _arrayLikeToArray, _ as _unsupportedIterableToArray, b as _defineProperty } from './defineProperty-CnMPreZi.js';
4
+ import { w as warningOnce, a as _objectWithoutProperties, b as _objectSpread2, c as _slicedToArray, d as warning$1, e as canUseDom, u as updateCSS, r as removeCSS, _ as _extends, f as _arrayWithHoles, g as _nonIterableRest, h as resetWarned$1, F as FastColor, i as generate, p as presetPrimaryColors, j as presetPalettes, k as IconContext } from './AntdIcon--fhhlrN2.js';
5
+ import { _ as _createClass, a as _classCallCheck, b as _inherits, c as _createSuper, d as _assertThisInitialized } from './createSuper-DsoUqJ1E.js';
6
6
 
7
7
  function useMemo(getValue, condition, shouldUpdate) {
8
8
  var cacheRef = React.useRef({});
@@ -214,6 +214,7 @@ var Entity = /*#__PURE__*/function () {
214
214
  return Entity;
215
215
  }();
216
216
 
217
+ var _excluded$1 = ["children"];
217
218
  var ATTR_TOKEN = 'data-token-hash';
218
219
  var ATTR_MARK = 'data-css-hash';
219
220
  var ATTR_CACHE_PATH = 'data-cache-path';
@@ -258,6 +259,29 @@ var StyleContext = /*#__PURE__*/React.createContext({
258
259
  cache: createCache(),
259
260
  defaultCache: true
260
261
  });
262
+ var StyleProvider = function StyleProvider(props) {
263
+ var children = props.children,
264
+ restProps = _objectWithoutProperties(props, _excluded$1);
265
+ var parentContext = React.useContext(StyleContext);
266
+ var context = useMemo(function () {
267
+ var mergedContext = _objectSpread2({}, parentContext);
268
+ Object.keys(restProps).forEach(function (key) {
269
+ var value = restProps[key];
270
+ if (restProps[key] !== undefined) {
271
+ mergedContext[key] = value;
272
+ }
273
+ });
274
+ var cache = restProps.cache;
275
+ mergedContext.cache = mergedContext.cache || createCache();
276
+ mergedContext.defaultCache = !cache && parentContext.defaultCache;
277
+ return mergedContext;
278
+ }, [parentContext, restProps], function (prev, next) {
279
+ return !isEqual(prev[0], next[0], true) || !isEqual(prev[1], next[1], true);
280
+ });
281
+ return /*#__PURE__*/React.createElement(StyleContext.Provider, {
282
+ value: context
283
+ }, children);
284
+ };
261
285
 
262
286
  // ================================== Cache ==================================
263
287
 
@@ -499,6 +523,51 @@ function flattenToken(token) {
499
523
  function token2key(token, salt) {
500
524
  return murmur2("".concat(salt, "_").concat(flattenToken(token)));
501
525
  }
526
+ var randomSelectorKey = "random-".concat(Date.now(), "-").concat(Math.random()).replace(/\./g, '');
527
+
528
+ // Magic `content` for detect selector support
529
+ var checkContent = '_bAmBoO_';
530
+ function supportSelector(styleStr, handleElement, supportCheck) {
531
+ if (canUseDom()) {
532
+ var _getComputedStyle$con, _ele$parentNode;
533
+ updateCSS(styleStr, randomSelectorKey);
534
+ var _ele = document.createElement('div');
535
+ _ele.style.position = 'fixed';
536
+ _ele.style.left = '0';
537
+ _ele.style.top = '0';
538
+ handleElement === null || handleElement === void 0 || handleElement(_ele);
539
+ document.body.appendChild(_ele);
540
+ if (process.env.NODE_ENV !== 'production') {
541
+ _ele.innerHTML = 'Test';
542
+ _ele.style.zIndex = '9999999';
543
+ }
544
+ var support = supportCheck ? supportCheck(_ele) : (_getComputedStyle$con = getComputedStyle(_ele).content) === null || _getComputedStyle$con === void 0 ? void 0 : _getComputedStyle$con.includes(checkContent);
545
+ (_ele$parentNode = _ele.parentNode) === null || _ele$parentNode === void 0 || _ele$parentNode.removeChild(_ele);
546
+ removeCSS(randomSelectorKey);
547
+ return support;
548
+ }
549
+ return false;
550
+ }
551
+ var canWhere = undefined;
552
+ function supportWhere() {
553
+ if (canWhere === undefined) {
554
+ canWhere = supportSelector(":where(.".concat(randomSelectorKey, ") { content: \"").concat(checkContent, "\"!important; }"), function (ele) {
555
+ ele.className = randomSelectorKey;
556
+ });
557
+ }
558
+ return canWhere;
559
+ }
560
+ var canLogic = undefined;
561
+ function supportLogicProps() {
562
+ if (canLogic === undefined) {
563
+ canLogic = supportSelector(".".concat(randomSelectorKey, " { inset-block: 93px !important; }"), function (ele) {
564
+ ele.className = randomSelectorKey;
565
+ }, function (ele) {
566
+ return getComputedStyle(ele).bottom === '93px';
567
+ });
568
+ }
569
+ return canLogic;
570
+ }
502
571
  var isClientSide = canUseDom();
503
572
  function unit$1(num) {
504
573
  if (typeof num === 'number') {
@@ -506,6 +575,21 @@ function unit$1(num) {
506
575
  }
507
576
  return num;
508
577
  }
578
+ function toStyleStr(style, tokenKey, styleId) {
579
+ var customizeAttrs = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
580
+ var plain = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : false;
581
+ if (plain) {
582
+ return style;
583
+ }
584
+ var attrs = _objectSpread2(_objectSpread2({}, customizeAttrs), {}, _defineProperty(_defineProperty({}, ATTR_TOKEN, tokenKey), ATTR_MARK, styleId));
585
+ var attrStr = Object.keys(attrs).map(function (attr) {
586
+ var val = attrs[attr];
587
+ return val ? "".concat(attr, "=\"").concat(val, "\"") : null;
588
+ }).filter(function (v) {
589
+ return v;
590
+ }).join(' ');
591
+ return "<style ".concat(attrStr, ">").concat(style, "</style>");
592
+ }
509
593
 
510
594
  var token2CSSVar = function token2CSSVar(token) {
511
595
  var prefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
@@ -886,6 +970,28 @@ function useCacheToken(theme, tokens) {
886
970
  });
887
971
  return cachedToken;
888
972
  }
973
+ var extract$2 = function extract(cache, effectStyles, options) {
974
+ var _cache = _slicedToArray(cache, 5),
975
+ realToken = _cache[2],
976
+ styleStr = _cache[3],
977
+ cssVarKey = _cache[4];
978
+ var _ref3 = options || {},
979
+ plain = _ref3.plain;
980
+ if (!styleStr) {
981
+ return null;
982
+ }
983
+ var styleId = realToken._tokenKey;
984
+ var order = -999;
985
+
986
+ // ====================== Style ======================
987
+ // Used for rc-util
988
+ var sharedAttrs = {
989
+ 'data-rc-order': 'prependQueue',
990
+ 'data-rc-priority': "".concat(order)
991
+ };
992
+ var styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);
993
+ return [order, styleId, styleText];
994
+ };
889
995
 
890
996
  var unitlessKeys = {
891
997
  animationIterationCount: 1,
@@ -1444,7 +1550,7 @@ function declaration (value, root, parent, length, siblings) {
1444
1550
  * @param {function} callback
1445
1551
  * @return {string}
1446
1552
  */
1447
- function serialize (children, callback) {
1553
+ function serialize$1 (children, callback) {
1448
1554
  var output = '';
1449
1555
 
1450
1556
  for (var i = 0; i < children.length; i++)
@@ -1465,11 +1571,11 @@ function stringify (element, index, children, callback) {
1465
1571
  case LAYER: if (element.children.length) break
1466
1572
  case IMPORT: case NAMESPACE: case DECLARATION: return element.return = element.return || element.value
1467
1573
  case COMMENT: return ''
1468
- case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
1574
+ case KEYFRAMES: return element.return = element.value + '{' + serialize$1(element.children, callback) + '}'
1469
1575
  case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
1470
1576
  }
1471
1577
 
1472
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
1578
+ return strlen(children = serialize$1(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
1473
1579
  }
1474
1580
 
1475
1581
  function lintWarning(message, info) {
@@ -1504,6 +1610,12 @@ var ATTR_CACHE_MAP = 'data-ant-cssinjs-cache-path';
1504
1610
  * Which means not exist in `<style />` tag.
1505
1611
  */
1506
1612
  var CSS_FILE_STYLE = '_FILE_STYLE__';
1613
+ function serialize(cachePathMap) {
1614
+ return Object.keys(cachePathMap).map(function (path) {
1615
+ var hash = cachePathMap[path];
1616
+ return "".concat(path, ":").concat(hash);
1617
+ }).join(';');
1618
+ }
1507
1619
  var cachePathMap;
1508
1620
  var fromCSSFile = true;
1509
1621
  function prepare() {
@@ -1569,7 +1681,7 @@ var MULTI_VALUE = '_multi_value_';
1569
1681
  // ============================================================================
1570
1682
  // Preprocessor style content to browser support one
1571
1683
  function normalizeStyle(styleStr) {
1572
- var serialized = serialize(compile(styleStr), stringify);
1684
+ var serialized = serialize$1(compile(styleStr), stringify);
1573
1685
  return serialized.replace(/\{%%%\:[^;];}/g, ';');
1574
1686
  }
1575
1687
  function isCompoundCSSProperty(value) {
@@ -1923,6 +2035,51 @@ function useStyleRegister(info, styleFn) {
1923
2035
  return /*#__PURE__*/React.createElement(React.Fragment, null, styleNode, node);
1924
2036
  };
1925
2037
  }
2038
+ var extract$1 = function extract(cache, effectStyles, options) {
2039
+ var _cache = _slicedToArray(cache, 6),
2040
+ styleStr = _cache[0],
2041
+ tokenKey = _cache[1],
2042
+ styleId = _cache[2],
2043
+ effectStyle = _cache[3],
2044
+ clientOnly = _cache[4],
2045
+ order = _cache[5];
2046
+ var _ref7 = options || {},
2047
+ plain = _ref7.plain;
2048
+
2049
+ // Skip client only style
2050
+ if (clientOnly) {
2051
+ return null;
2052
+ }
2053
+ var keyStyleText = styleStr;
2054
+
2055
+ // ====================== Share ======================
2056
+ // Used for rc-util
2057
+ var sharedAttrs = {
2058
+ 'data-rc-order': 'prependQueue',
2059
+ 'data-rc-priority': "".concat(order)
2060
+ };
2061
+
2062
+ // ====================== Style ======================
2063
+ keyStyleText = toStyleStr(styleStr, tokenKey, styleId, sharedAttrs, plain);
2064
+
2065
+ // =============== Create effect style ===============
2066
+ if (effectStyle) {
2067
+ Object.keys(effectStyle).forEach(function (effectKey) {
2068
+ // Effect style can be reused
2069
+ if (!effectStyles[effectKey]) {
2070
+ effectStyles[effectKey] = true;
2071
+ var effectStyleStr = normalizeStyle(effectStyle[effectKey]);
2072
+ var effectStyleHTML = toStyleStr(effectStyleStr, tokenKey, "_effect-".concat(effectKey), sharedAttrs, plain);
2073
+ if (effectKey.startsWith('@layer')) {
2074
+ keyStyleText = effectStyleHTML + keyStyleText;
2075
+ } else {
2076
+ keyStyleText += effectStyleHTML;
2077
+ }
2078
+ }
2079
+ });
2080
+ }
2081
+ return [order, styleId, keyStyleText];
2082
+ };
1926
2083
 
1927
2084
  var CSS_VAR_PREFIX = 'cssVar';
1928
2085
  var useCSSVarRegister = function useCSSVarRegister(config, fn) {
@@ -1980,6 +2137,27 @@ var useCSSVarRegister = function useCSSVarRegister(config, fn) {
1980
2137
  });
1981
2138
  return cache;
1982
2139
  };
2140
+ var extract = function extract(cache, effectStyles, options) {
2141
+ var _cache = _slicedToArray(cache, 4),
2142
+ styleStr = _cache[1],
2143
+ styleId = _cache[2],
2144
+ cssVarKey = _cache[3];
2145
+ var _ref5 = options || {},
2146
+ plain = _ref5.plain;
2147
+ if (!styleStr) {
2148
+ return null;
2149
+ }
2150
+ var order = -999;
2151
+
2152
+ // ====================== Style ======================
2153
+ // Used for rc-util
2154
+ var sharedAttrs = {
2155
+ 'data-rc-order': 'prependQueue',
2156
+ 'data-rc-priority': "".concat(order)
2157
+ };
2158
+ var styleText = toStyleStr(styleStr, cssVarKey, styleId, sharedAttrs, plain);
2159
+ return [order, styleId, styleText];
2160
+ };
1983
2161
 
1984
2162
  function _toArray(r) {
1985
2163
  return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
@@ -4559,4 +4737,4 @@ function toArray(children) {
4559
4737
  return ret;
4560
4738
  }
4561
4739
 
4562
- export { ConfigContext as C, DisabledContext as D, LocaleContext as L, SizeContext as S, _toConsumableArray as _, useComponentConfig as a, useMemo as b, useLayoutUpdateEffect as c, Context as d, clearFix as e, textEllipsis as f, genStyleHooks as g, defaultPrefixCls as h, isFragment as i, genComponentStyleHook as j, useToken as k, localeValues as l, merge as m, devUseWarning as n, omit as o, getAlphaColor as p, getLineHeight as q, resetComponent as r, genFocusStyle as s, toArray as t, unit$1 as u, resetIcon as v, warning as w, genSubStyleComponent as x, useLayoutEffect as y };
4740
+ export { get as $, toStyleStr as A, ATTR_CACHE_MAP as B, ConfigContext as C, DisabledContext as D, serialize as E, extract as F, CSS_VAR_PREFIX as G, STYLE_PREFIX as H, extract$1 as I, extract$2 as J, unitlessKeys as K, LocaleContext as L, supportWhere as M, supportLogicProps as N, StyleContext as O, StyleProvider as P, Theme as Q, createCache as R, SizeContext as S, TOKEN_PREFIX as T, createTheme as U, getComputedToken$1 as V, token2CSSVar as W, useCSSVarRegister as X, useCacheToken as Y, useStyleRegister as Z, _toConsumableArray as _, useComponentConfig as a, set as a0, genCalc as a1, genStyleUtils as a2, statistic as a3, statisticToken as a4, MotionProvider as a5, merge$1 as a6, isEqual as a7, _toArray as a8, useMemo as b, useLayoutUpdateEffect as c, Context as d, useLayoutEffect as e, clearFix as f, genStyleHooks as g, textEllipsis as h, isFragment as i, defaultPrefixCls as j, genComponentStyleHook as k, localeValues as l, merge as m, useToken as n, omit as o, devUseWarning as p, getAlphaColor as q, resetComponent as r, getLineHeight as s, toArray as t, unit$1 as u, genFocusStyle as v, warning as w, resetIcon as x, genSubStyleComponent as y, lintWarning as z };
@@ -17,6 +17,7 @@ var TypeActionRowTable = /* @__PURE__ */ ((TypeActionRowTable2) => {
17
17
  TypeActionRowTable2["PAUSE"] = "PAUSE";
18
18
  TypeActionRowTable2["DOWNLOAD"] = "DOWNLOAD";
19
19
  TypeActionRowTable2["VIEW"] = "VIEW";
20
+ TypeActionRowTable2["EDIT_FORM"] = "EDIT_FORM";
20
21
  return TypeActionRowTable2;
21
22
  })(TypeActionRowTable || {});
22
23
  var TypeBulkActions = /* @__PURE__ */ ((TypeBulkActions2) => {
@@ -1,9 +1,10 @@
1
1
  import { jsx, jsxs } from 'react/jsx-runtime';
2
2
  import * as React from 'react';
3
3
  import React__default, { createElement, Component, createRef, useRef } from 'react';
4
- import { c as classNames } from '../chunks/index-xdC7i8zM.js';
5
- import { _ as _typeof, a as _unsupportedIterableToArray, b as _defineProperty } from '../chunks/defineProperty-CTLrw71t.js';
6
- import { b as _inherits, c as _createSuper, a as _classCallCheck, d as _assertThisInitialized$1, _ as _createClass } from '../chunks/createSuper-CnOp-EUR.js';
4
+ import { c as classNames } from '../chunks/index-BLRvgOFN.js';
5
+ import { a as _typeof, b as _defineProperty } from '../chunks/defineProperty-CnMPreZi.js';
6
+ import { _ as _createForOfIteratorHelper } from '../chunks/createForOfIteratorHelper-DEc7rz3b.js';
7
+ import { b as _inherits, c as _createSuper, a as _classCallCheck, d as _assertThisInitialized$1, _ as _createClass } from '../chunks/createSuper-DsoUqJ1E.js';
7
8
  import * as ReactDOM from 'react-dom';
8
9
  import ReactDOM__default, { findDOMNode } from 'react-dom';
9
10
  import { g as getDefaultExportFromCjs } from '../chunks/_commonjsHelpers-D5KtpA0t.js';
@@ -3788,55 +3789,6 @@ function isWithinInterval(dirtyDate, interval) {
3788
3789
  return time >= startTime && time <= endTime;
3789
3790
  }
3790
3791
 
3791
- function _createForOfIteratorHelper(r, e) {
3792
- var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
3793
- if (!t) {
3794
- if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e) {
3795
- t && (r = t);
3796
- var _n = 0,
3797
- F = function F() {};
3798
- return {
3799
- s: F,
3800
- n: function n() {
3801
- return _n >= r.length ? {
3802
- done: true
3803
- } : {
3804
- done: false,
3805
- value: r[_n++]
3806
- };
3807
- },
3808
- e: function e(r) {
3809
- throw r;
3810
- },
3811
- f: F
3812
- };
3813
- }
3814
- throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
3815
- }
3816
- var o,
3817
- a = true,
3818
- u = false;
3819
- return {
3820
- s: function s() {
3821
- t = t.call(r);
3822
- },
3823
- n: function n() {
3824
- var r = t.next();
3825
- return a = r.done, r;
3826
- },
3827
- e: function e(r) {
3828
- u = true, o = r;
3829
- },
3830
- f: function f() {
3831
- try {
3832
- a || null == t["return"] || t["return"]();
3833
- } finally {
3834
- if (u) throw o;
3835
- }
3836
- }
3837
- };
3838
- }
3839
-
3840
3792
  function assign(target, object) {
3841
3793
  if (target == null) {
3842
3794
  throw new TypeError('assign requires that input parameter not be null or undefined');
@@ -4,8 +4,8 @@ import { g as get } from '../chunks/get-DPccfEM4.js';
4
4
  import { ErrorMessage } from '../ui/ErrorMessage.js';
5
5
  import { Label } from '../ui/Label.js';
6
6
  import { t as twMerge } from '../chunks/bundle-mjs-BME7zF0Z.js';
7
- import { R as RefIcon } from '../chunks/CloseOutlined-DdLJZQvZ.js';
8
- import { R as RefIcon$1 } from '../chunks/DownOutlined-Cl95zPIN.js';
7
+ import { R as RefIcon } from '../chunks/CloseOutlined-Dr0OzVF3.js';
8
+ import { R as RefIcon$1 } from '../chunks/DownOutlined-DeqIkZcf.js';
9
9
  import { useRef } from 'react';
10
10
  import { w as wrapWithTooltip } from '../chunks/wapper-Bk3PQCcg.js';
11
11
  import { M as MAX_TAG_TEXT_LENGTH, a as MAX_TAG_COUNT } from '../chunks/common-BcURBmQ-.js';
@@ -1,27 +1,10 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import * as React from 'react';
3
2
  import { useState } from 'react';
4
3
  import { Upload, Image } from 'antd';
5
4
  import { g as get } from '../chunks/get-DPccfEM4.js';
6
5
  import { ErrorMessage } from '../ui/ErrorMessage.js';
7
6
  import { Label } from '../ui/Label.js';
8
- import { I as Icon, _ as _extends } from '../chunks/AntdIcon-KP2HuB_x.js';
9
-
10
- // This icon file is generated automatically.
11
- var PlusOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z" } }, { "tag": "path", "attrs": { "d": "M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z" } }] }, "name": "plus", "theme": "outlined" };
12
-
13
- var PlusOutlined = function PlusOutlined(props, ref) {
14
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
15
- ref: ref,
16
- icon: PlusOutlined$1
17
- }));
18
- };
19
-
20
- /**![plus](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTQ4MiAxNTJoNjBxOCAwIDggOHY3MDRxMCA4LTggOGgtNjBxLTggMC04LThWMTYwcTAtOCA4LTh6IiAvPjxwYXRoIGQ9Ik0xOTIgNDc0aDY3MnE4IDAgOCA4djYwcTAgOC04IDhIMTYwcS04IDAtOC04di02MHEwLTggOC04eiIgLz48L3N2Zz4=) */
21
- var RefIcon = /*#__PURE__*/React.forwardRef(PlusOutlined);
22
- if (process.env.NODE_ENV !== 'production') {
23
- RefIcon.displayName = 'PlusOutlined';
24
- }
7
+ import { R as RefIcon } from '../chunks/PlusOutlined-BTNAWDVD.js';
25
8
 
26
9
  const getBase64 = (file) => new Promise((resolve, reject) => {
27
10
  const reader = new FileReader();
package/es/index.js CHANGED
@@ -9,7 +9,7 @@ export { Tabs } from './ui/Tabs.js';
9
9
  export { Label } from './ui/Label.js';
10
10
  export { Skeleton } from './ui/Skeleton.js';
11
11
  export { Popover } from './ui/Popover.js';
12
- export { SearchFiltersForm } from './ui/SearchFilterForm.js';
12
+ export { S as SearchFiltersForm } from './chunks/SearchFilterForm-dvW624w0.js';
13
13
  export { Container } from './ui/Container.js';
14
14
  export { Badge, typeColorMap } from './ui/Badge.js';
15
15
  export { Col } from './ui/Col.js';
@@ -17,7 +17,7 @@ export { Row } from './ui/Row.js';
17
17
  export { Dropdown } from './ui/Dropdown.js';
18
18
  export { Breadcrumb } from './ui/Breadcrumb.js';
19
19
  export { Flex } from './ui/Flex.js';
20
- export { Layout } from './ui/Layout.js';
20
+ export { L as Layout } from './chunks/Layout-CRPluSOs.js';
21
21
  export { Space } from './ui/Space.js';
22
22
  export { Splitter } from './ui/Splitter.js';
23
23
  export { Menu } from './ui/Menu.js';
@@ -58,14 +58,14 @@ export { PageNotFound } from './ui/PageNotFound.js';
58
58
  export { UploadImage } from './ui/UploadImage.js';
59
59
  export { UploadMultiple } from './ui/UploadMultiple.js';
60
60
  export { ImportFile } from './ui/ImportFile.js';
61
- export { ExportFile } from './ui/ExportFile.js';
61
+ export { E as ExportFile } from './chunks/ExportFile-HZ8zFqRV.js';
62
62
  export { UploadComponent } from './ui/UploadComponent.js';
63
63
  export { useAppMessage } from './ui/Message.js';
64
64
  export { ViewPdf } from './ui/ViewPdf.js';
65
- export { Sidebar } from './ui/Sidebar/index.js';
65
+ export { S as Sidebar } from './chunks/index-ClFSxOLW.js';
66
66
  export { SelectTable } from './ui/SelectTable.js';
67
67
  export { SelectSingleTable } from './ui/SelectSingleTable.js';
68
- export { GenericUploadModal } from './ui/GenericUploadModal.js';
68
+ export { G as GenericUploadModal } from './chunks/GenericUploadModal-ClzfSP57.js';
69
69
  export { Input } from './fields/Input.js';
70
70
  export { PnkxField } from './fields/PnkxField.js';
71
71
  export { Select } from './fields/Select.js';
@@ -1,5 +1,5 @@
1
1
  import { jsx } from 'react/jsx-runtime';
2
- import { c as classNames } from '../chunks/index-xdC7i8zM.js';
2
+ import { c as classNames } from '../chunks/index-BLRvgOFN.js';
3
3
  import { Breadcrumb } from './Breadcrumb.js';
4
4
  import { u as useBreadcrumb } from '../chunks/useBreadcrumb-DEKhv1-Z.js';
5
5
 
@@ -1,64 +1,6 @@
1
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
2
- import { Spin } from './Spin.js';
3
- import { R as RefIcon$1 } from '../chunks/LoadingOutlined-C5-PNVpb.js';
4
- import { PnkxField } from '../fields/PnkxField.js';
5
- import { RadioGroup } from '../fields/Radio.js';
6
- import { I as Icon, _ as _extends } from '../chunks/AntdIcon-KP2HuB_x.js';
7
- import * as React from 'react';
8
-
9
- // This icon file is generated automatically.
10
- var InfoCircleFilled$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z" } }] }, "name": "info-circle", "theme": "filled" };
11
-
12
- var InfoCircleFilled = function InfoCircleFilled(props, ref) {
13
- return /*#__PURE__*/React.createElement(Icon, _extends({}, props, {
14
- ref: ref,
15
- icon: InfoCircleFilled$1
16
- }));
17
- };
18
-
19
- /**![info-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTUxMiA2NEMyNjQuNiA2NCA2NCAyNjQuNiA2NCA1MTJzMjAwLjYgNDQ4IDQ0OCA0NDggNDQ4LTIwMC42IDQ0OC00NDhTNzU5LjQgNjQgNTEyIDY0em0zMiA2NjRjMCA0LjQtMy42IDgtOCA4aC00OGMtNC40IDAtOC0zLjYtOC04VjQ1NmMwLTQuNCAzLjYtOCA4LThoNDhjNC40IDAgOCAzLjYgOCA4djI3MnptLTMyLTM0NGE0OC4wMSA0OC4wMSAwIDAxMC05NiA0OC4wMSA0OC4wMSAwIDAxMCA5NnoiIC8+PC9zdmc+) */
20
- var RefIcon = /*#__PURE__*/React.forwardRef(InfoCircleFilled);
21
- if (process.env.NODE_ENV !== 'production') {
22
- RefIcon.displayName = 'InfoCircleFilled';
23
- }
24
-
25
- const ExportFile = ({
26
- loading,
27
- children,
28
- control,
29
- watch
30
- }) => {
31
- const isShowChid = watch("export");
32
- return /* @__PURE__ */ jsx("div", { children: loading ? /* @__PURE__ */ jsxs("div", { className: "text-center mt-4", children: [
33
- /* @__PURE__ */ jsx(Spin, { indicator: /* @__PURE__ */ jsx(RefIcon$1, { spin: true }), size: "large" }),
34
- /* @__PURE__ */ jsx("p", { className: "text-sm mt-2", children: "Vui lòng chờ trong giây lát. Chúng tôi đang chuẩn bị file của bạn!" })
35
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
36
- /* @__PURE__ */ jsx("p", { className: "text-sm text-[#5C657D] mt-4", children: "Chọn kiểu export file" }),
37
- /* @__PURE__ */ jsxs("div", { className: "mt-2", children: [
38
- /* @__PURE__ */ jsx(
39
- PnkxField,
40
- {
41
- name: "export",
42
- control,
43
- className: "!flex-col !flex gap-2",
44
- options: [
45
- { label: "Export toàn bộ bản ghi", value: "all" },
46
- { label: "Export theo bộ lọc", value: "filter" }
47
- ],
48
- defaultValue: "all",
49
- component: RadioGroup
50
- }
51
- ),
52
- /* @__PURE__ */ jsxs("div", { className: "mt-2", children: [
53
- " ",
54
- isShowChid === "filter" && children
55
- ] })
56
- ] }),
57
- /* @__PURE__ */ jsxs("div", { className: "mt-2 flex items-center gap-2", children: [
58
- /* @__PURE__ */ jsx(RefIcon, { className: "!text-[#1677FF] mt-1 text-[24px]" }),
59
- /* @__PURE__ */ jsx("p", { className: "text-[14px] font-[400]", children: "Lưu ý: Hệ thống sẽ xuất file dưới định dạng .xlsx (Excel). Vui lòng đảm bảo thiết bị của bạn hỗ trợ đọc định dạng này trước khi tiếp tục." })
60
- ] })
61
- ] }) });
62
- };
63
-
64
- export { ExportFile };
1
+ import 'react/jsx-runtime';
2
+ import './Spin.js';
3
+ import '../chunks/LoadingOutlined-RxqeOpLJ.js';
4
+ import '../fields/PnkxField.js';
5
+ import '../fields/Radio.js';
6
+ export { E as ExportFile } from '../chunks/ExportFile-HZ8zFqRV.js';