@qn-pandora/pandora-component 4.3.3 → 4.3.5

Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.json CHANGED
@@ -1,6 +1,43 @@
1
1
  {
2
2
  "name": "@qn-pandora/pandora-component",
3
3
  "entries": [
4
+ {
5
+ "version": "4.3.5",
6
+ "tag": "@qn-pandora/pandora-component_v4.3.5",
7
+ "date": "Thu, 28 Dec 2023 06:39:32 GMT",
8
+ "comments": {
9
+ "patch": [
10
+ {
11
+ "comment": "2023-12-28发包"
12
+ }
13
+ ],
14
+ "dependency": [
15
+ {
16
+ "comment": "Updating dependency \"@qn-pandora/pandora-component-icons\" from `^3.3.2` to `^3.3.3`"
17
+ },
18
+ {
19
+ "comment": "Updating dependency \"@qn-pandora/app-sdk\" from `^3.3.4` to `^3.3.5`"
20
+ }
21
+ ]
22
+ }
23
+ },
24
+ {
25
+ "version": "4.3.4",
26
+ "tag": "@qn-pandora/pandora-component_v4.3.4",
27
+ "date": "Mon, 18 Dec 2023 11:54:46 GMT",
28
+ "comments": {
29
+ "patch": [
30
+ {
31
+ "comment": "2023-12-18发包"
32
+ }
33
+ ],
34
+ "dependency": [
35
+ {
36
+ "comment": "Updating dependency \"@qn-pandora/app-sdk\" from `^3.3.3` to `^3.3.4`"
37
+ }
38
+ ]
39
+ }
40
+ },
4
41
  {
5
42
  "version": "4.3.3",
6
43
  "tag": "@qn-pandora/pandora-component_v4.3.3",
package/CHANGELOG.md CHANGED
@@ -1,6 +1,20 @@
1
1
  # Change Log - @qn-pandora/pandora-component
2
2
 
3
- This log was last generated on Tue, 28 Nov 2023 12:13:32 GMT and should not be manually modified.
3
+ This log was last generated on Thu, 28 Dec 2023 06:39:32 GMT and should not be manually modified.
4
+
5
+ ## 4.3.5
6
+ Thu, 28 Dec 2023 06:39:32 GMT
7
+
8
+ ### Patches
9
+
10
+ - 2023-12-28发包
11
+
12
+ ## 4.3.4
13
+ Mon, 18 Dec 2023 11:54:46 GMT
14
+
15
+ ### Patches
16
+
17
+ - 2023-12-18发包
4
18
 
5
19
  ## 4.3.3
6
20
  Tue, 28 Nov 2023 12:13:32 GMT
@@ -91,6 +91,7 @@ export declare class Drawer extends React.Component<React.PropsWithChildren<IDra
91
91
  onMouseClick(e: MouseEvent): void;
92
92
  initWidth(width?: string | number, size?: string): React.ReactText;
93
93
  handleClose(e: EventType | null): void;
94
+ getIconPopupContainer(): Element;
94
95
  componentDidMount(): void;
95
96
  UNSAFE_componentWillUpdate(nextProps: Readonly<React.PropsWithChildren<IDrawerProps>>): void;
96
97
  componentWillUnmount(): void;
@@ -88,14 +88,14 @@ var Drawer = /** @class */ (function (_super) {
88
88
  Object.defineProperty(Drawer.prototype, "extra", {
89
89
  get: function () {
90
90
  var _a = this.props, closable = _a.closable, closeIconPlacement = _a.closeIconPlacement, showFullScreen = _a.showFullScreen;
91
- var fullIcon = showFullScreen === true ? (this.isFullscreen ? (React.createElement(Tooltip, { title: formatString(ModalLocale.exit_full, this.context.locale) },
92
- React.createElement(FullscreenExitOutlined, { onClick: this.handleFull, className: SDK_PREFIX + "-drawer-header-full-icon" }))) : (React.createElement(Tooltip, { title: formatString(ModalLocale.full, this.context.locale) },
91
+ var fullIcon = showFullScreen === true ? (this.isFullscreen ? (React.createElement(Tooltip, { title: formatString(ModalLocale.exit_full, this.context.locale), getPopupContainer: this.getIconPopupContainer },
92
+ React.createElement(FullscreenExitOutlined, { onClick: this.handleFull, className: SDK_PREFIX + "-drawer-header-full-icon" }))) : (React.createElement(Tooltip, { title: formatString(ModalLocale.full, this.context.locale), getPopupContainer: this.getIconPopupContainer },
93
93
  React.createElement(FullscreenOutlined, { onClick: this.handleFull, className: SDK_PREFIX + "-drawer-header-full-icon" })))) : null;
94
94
  if (closable !== false && closeIconPlacement === 'right') {
95
95
  return (React.createElement(React.Fragment, null,
96
96
  this.props.extra,
97
97
  fullIcon,
98
- React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: this.handleClose })));
98
+ React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: this.handleClose, getPopupContainer: this.getIconPopupContainer })));
99
99
  }
100
100
  return (React.createElement(React.Fragment, null,
101
101
  fullIcon,
@@ -181,6 +181,9 @@ var Drawer = /** @class */ (function (_super) {
181
181
  }
182
182
  }
183
183
  };
184
+ Drawer.prototype.getIconPopupContainer = function () {
185
+ return document.getElementsByClassName(this.drawerId)[0] || undefined;
186
+ };
184
187
  Drawer.prototype.componentDidMount = function () {
185
188
  document.body.addEventListener('mousedown', this.onMouseClick);
186
189
  if (this.props.canDrag) {
@@ -204,7 +207,7 @@ var Drawer = /** @class */ (function (_super) {
204
207
  var _b = this.props, width = _b.width, className = _b.className, children = _b.children, canDrag = _b.canDrag, visible = _b.visible, closable = _b.closable, extra = _b.extra, size = _b.size, onClose = _b.onClose, other = __rest(_b, ["width", "className", "children", "canDrag", "visible", "closable", "extra", "size", "onClose"]);
205
208
  return (React.createElement(BaseDrawer, __assign({ className: classnames(this.drawerId, SDK_PREFIX + "-drawer", className, (_a = {},
206
209
  _a[SDK_PREFIX + "-drawer-no-mask"] = this.props.mask === false,
207
- _a)), width: this.isFullscreen ? '100%' : this.realWidth || 800, zIndex: 1200, visible: visible, closable: this.closable, extra: this.extra, closeIcon: React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: this.handleClose }), onClose: this.handleClose }, other),
210
+ _a)), width: this.isFullscreen ? '100%' : this.realWidth || 800, zIndex: 1200, visible: visible, closable: this.closable, extra: this.extra, closeIcon: React.createElement(CloseIcon, { className: SDK_PREFIX + "-drawer-close-icon", onClick: this.handleClose, getPopupContainer: this.getIconPopupContainer }), onClose: this.handleClose }, other),
208
211
  canDrag && (React.createElement("div", { className: SDK_PREFIX + "-scroll-handler", onMouseDown: this.onMouseDown })),
209
212
  children));
210
213
  };
@@ -294,6 +297,12 @@ var Drawer = /** @class */ (function (_super) {
294
297
  __metadata("design:paramtypes", [Object]),
295
298
  __metadata("design:returntype", void 0)
296
299
  ], Drawer.prototype, "handleClose", null);
300
+ __decorate([
301
+ bind,
302
+ __metadata("design:type", Function),
303
+ __metadata("design:paramtypes", []),
304
+ __metadata("design:returntype", void 0)
305
+ ], Drawer.prototype, "getIconPopupContainer", null);
297
306
  Drawer = __decorate([
298
307
  observer
299
308
  ], Drawer);
@@ -86,6 +86,10 @@ export function ColumnSetting(props) {
86
86
  React.createElement(Checkbox, { checked: !!realValues.find(function (v) { return v === item.value; }), value: item.value, className: SDK_PREFIX + "-table-column-setting-checkbox", onChange: handleChange },
87
87
  React.createElement("span", { className: SDK_PREFIX + "-table-column-setting-value" }, typeof item.label === 'string' ? (React.createElement(NameLimiter, { name: item.label })) : (item.label))))));
88
88
  }))))) },
89
- React.createElement(SettingOutlined, { className: SDK_PREFIX + "-table-column-setting-icon" })));
89
+ React.createElement(SettingOutlined, { className: SDK_PREFIX + "-table-column-setting-icon", onClick: function (e) {
90
+ e.stopPropagation();
91
+ e.preventDefault();
92
+ e.nativeEvent.stopImmediatePropagation();
93
+ } })));
90
94
  }
91
95
  export default React.memo(ColumnSetting);
@@ -1726,3 +1726,24 @@ textarea.ant-pagination-options-quick-jumper input {
1726
1726
  position: absolute;
1727
1727
  right: 12px;
1728
1728
  }
1729
+ .ant-table-thead > tr > th > .ant-table-column-sorters {
1730
+ position: relative;
1731
+ }
1732
+ .ant-table-thead > tr > th > .ant-table-column-sorters > .ant-table-column-title {
1733
+ position: static;
1734
+ }
1735
+ .ant-table-thead > tr > th > .ant-table-filter-column {
1736
+ position: relative;
1737
+ }
1738
+ .ant-table-thead > tr > th > .ant-table-filter-column > .ant-table-column-title {
1739
+ position: static;
1740
+ }
1741
+ .ant-table-thead > tr > th > .ant-table-filter-column > .ant-table-column-title > .ant-table-column-sorters {
1742
+ position: static;
1743
+ }
1744
+ .ant-table-thead > tr > th > .ant-table-filter-column > .ant-table-column-title > .ant-table-column-sorters::after {
1745
+ display: none;
1746
+ }
1747
+ .ant-table-thead > tr > th > .ant-table-filter-column > .ant-table-column-title > .ant-table-column-sorters > .ant-table-column-title {
1748
+ position: static;
1749
+ }
@@ -319,3 +319,26 @@
319
319
  right: 12px;
320
320
  }
321
321
  }
322
+
323
+ .@{ant-prefix}-table-thead > tr > th > .@{ant-prefix}-table-column-sorters {
324
+ position: relative;
325
+ & > .@{ant-prefix}-table-column-title {
326
+ position: static;
327
+ }
328
+ }
329
+
330
+ .@{ant-prefix}-table-thead > tr > th > .@{ant-prefix}-table-filter-column {
331
+ position: relative;
332
+ & > .@{ant-prefix}-table-column-title {
333
+ position: static;
334
+ > .@{ant-prefix}-table-column-sorters {
335
+ position: static;
336
+ &::after {
337
+ display: none;
338
+ }
339
+ & > .@{ant-prefix}-table-column-title {
340
+ position: static;
341
+ }
342
+ }
343
+ }
344
+ }