@arim-aisdc/public-components 2.2.6 → 2.2.7

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.
@@ -1,3 +1,9 @@
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
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(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
6
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1
7
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
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."); }
3
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); }
@@ -74,7 +80,26 @@ var SplitterPane = function SplitterPane(_ref) {
74
80
  style: {
75
81
  overflow: 'hidden'
76
82
  },
77
- children: pane.children
83
+ children: /*#__PURE__*/_jsx("div", {
84
+ style: _objectSpread({}, layout === 'horizontal' ? index == 0 ? {
85
+ width: 'var(--global-splitter-panel-left-width, 100%)',
86
+ height: 'var(--global-splitter-panel-bottom-height, 100%)',
87
+ marginRight: 'var(--global-splitter-panel-margin, 0)'
88
+ } : {
89
+ width: 'var(--global-splitter-panel-right-width, 100%)',
90
+ height: 'var(--global-splitter-panel-bottom-height, 100%)',
91
+ marginLeft: 'var(--global-splitter-panel-margin, 0)'
92
+ } : index == 0 ? {
93
+ width: 'var(--global-splitter-panel-right-width, 100%)',
94
+ height: 'var(--global-splitter-panel-top-height, 100%)',
95
+ marginBottom: 'var(--global-splitter-panel-margin, 0)'
96
+ } : {
97
+ width: 'var(--global-splitter-panel-right-width, 100%)',
98
+ height: 'var(--global-splitter-panel-bottom-height, 100%)',
99
+ marginTop: 'var(--global-splitter-panel-margin, 0)'
100
+ }),
101
+ children: pane.children
102
+ })
78
103
  }, index);
79
104
  })
80
105
  });
@@ -1,13 +1,13 @@
1
1
  import { TableMaxColumnType } from "../../type";
2
- export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
3
- export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
4
- export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
5
- export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
2
+ export declare const numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
3
+ export declare const stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
4
+ export declare const numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
5
+ export declare const timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
6
6
  declare const customSortFns: {
7
- numberSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
8
- stringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
9
- timeSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
10
- numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 1 | 0 | -1;
7
+ numberSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
8
+ stringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
9
+ timeSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
10
+ numberOrStringSortFn: (rowA: any, rowB: any, columnId: string) => 0 | 1 | -1;
11
11
  };
12
12
  export default customSortFns;
13
13
  export type SortFnType = keyof typeof customSortFns | undefined;
@@ -81,3 +81,9 @@
81
81
  @global-messageTip-content-min-height: var(--global-messageTip-content-min-height, 22px);
82
82
  @global-messageTip-content-iconSpan-padding-right: var(--global-messageTip-content-iconSpan-padding-right, 8px);
83
83
  @global-messageTip-content-iconSpan-i-fontSize: var(--global-messageTip-content-iconSpan-i-fontSize, 18);
84
+
85
+ @global-splitter-panel-left-width: var(--global-splitter-panel-left-width, 100%);
86
+ @global-splitter-panel-right-width: var(--global-splitter-panel-right-width, 100%);
87
+ @global-splitter-panel-top-height: var(--global-splitter-panel-top-height, 100%);
88
+ @global-splitter-panel-bottom-height: var(--global-splitter-panel-bottom-height, 100%);
89
+ @global-splitter-panel-margin: var(--global-splitter-panel-margin, 0);
@@ -24,7 +24,12 @@ var tableMaxCommonStyle = {
24
24
  '--global-messageTip-content-min-height': '22px',
25
25
  '--global-messageTip-content-iconSpan-padding-right': '8px',
26
26
  '--global-messageTip-content-iconSpan-i-fontSize': '18px',
27
- '--global-messageTip-font-size': '14px'
27
+ '--global-messageTip-font-size': '14px',
28
+ '--global-splitter-panel-left-width': '100%',
29
+ '--global-splitter-panel-right-width': '100%',
30
+ '--global-splitter-panel-top-height': '100%',
31
+ '--global-splitter-panel-bottom-height': '100%',
32
+ '--global-splitter-panel-margin': '0px'
28
33
  };
29
34
  var tableMaxCommonStyleTwo = {
30
35
  '--global-table-max-padding-top': '8px',
@@ -45,7 +50,12 @@ var tableMaxCommonStyleTwo = {
45
50
  '--global-messageTip-content-min-height': '26px',
46
51
  '--global-messageTip-content-iconSpan-padding-right': '12px',
47
52
  '--global-messageTip-content-iconSpan-i-fontSize': '22px',
48
- '--global-messageTip-font-size': '18px'
53
+ '--global-messageTip-font-size': '18px',
54
+ '--global-splitter-panel-left-width': 'calc(100% - 6px)',
55
+ '--global-splitter-panel-right-width': '100%',
56
+ '--global-splitter-panel-top-height': 'calc(100% - 6px)',
57
+ '--global-splitter-panel-bottom-height': '100%',
58
+ '--global-splitter-panel-margin': '5px'
49
59
  };
50
60
  export var PublicThemeVariablesConfig = {
51
61
  light: _objectSpread(_objectSpread({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arim-aisdc/public-components",
3
- "version": "2.2.6",
3
+ "version": "2.2.7",
4
4
  "description": "前端组件库",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",