assui 2.0.141 → 2.0.144

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/es/index.d.ts CHANGED
@@ -54,8 +54,6 @@ export type { LabelTreeSelectProps } from './label-tree-select';
54
54
  export { default as LabelTreeSelect } from './label-tree-select';
55
55
  export type { LabelCustomizeRangePickerProps } from './label-customize-range-picker';
56
56
  export { default as LabelCustomizeRangePicker } from './label-customize-range-picker';
57
- export type { LabelDescItemProps } from './label-desc-item';
58
- export { default as LabelDescItem } from './label-desc-item';
59
57
  export type { RichTextEditorProps } from './rich-text-editor';
60
58
  export { default as RichTextEditor } from './rich-text-editor';
61
59
  export { default as beautifulDnd } from './beautiful-dnd';
package/es/index.js CHANGED
@@ -27,6 +27,5 @@ export { default as LabelNumberInput } from './label-number-input';
27
27
  export { default as LabelConditionInput } from './label-condition-input';
28
28
  export { default as LabelTreeSelect } from './label-tree-select';
29
29
  export { default as LabelCustomizeRangePicker } from './label-customize-range-picker';
30
- export { default as LabelDescItem } from './label-desc-item';
31
30
  export { default as RichTextEditor } from './rich-text-editor';
32
31
  export { default as beautifulDnd } from './beautiful-dnd';
@@ -75,9 +75,9 @@ export var useDateScope = function useDateScope() {
75
75
  value: [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')]
76
76
  }, {
77
77
  key: dateTypeEnum.FUTURE_7_DAY,
78
- value: [now.clone().add(7, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')]
78
+ value: [now.clone().add(1, 'day').startOf('day'), now.clone().add(7, 'day').endOf('day')]
79
79
  }];
80
- var dateScopeMap = (_a = {}, _a[dateTypeEnum.TODAY] = [now.clone().startOf('day'), now.clone().endOf('day')], _a[dateTypeEnum.YESTERDAY] = [now.clone().subtract(1, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.WEEK] = [now.clone().startOf('week'), now.clone().endOf('week')], _a[dateTypeEnum.LAST_WEEK] = [now.clone().subtract(1, 'week').startOf('week'), now.clone().subtract(1, 'week').endOf('week')], _a[dateTypeEnum.MONTH] = [now.clone().startOf('month'), now.clone().endOf('month')], _a[dateTypeEnum.LAST_MONTH] = [now.clone().subtract(1, 'month').startOf('month'), now.clone().subtract(1, 'month').endOf('month')], _a[dateTypeEnum.QUARTER] = [now.clone().startOf('quarter'), now.clone().endOf('quarter')], _a[dateTypeEnum.LAST_QUARTER] = [now.clone().subtract(1, 'quarter').startOf('quarter'), now.clone().subtract(1, 'quarter').endOf('quarter')], _a[dateTypeEnum.BEFORE_7_DAY] = [now.clone().subtract(6, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_14_DAY] = [now.clone().subtract(13, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_30_DAY] = [now.clone().subtract(29, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_90_DAY] = [now.clone().subtract(89, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_180_DAY] = [now.clone().subtract(179, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_365_DAY] = [now.clone().subtract(364, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.PAST_7_DAY] = [now.clone().subtract(7, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.TOMORROW] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')], _a[dateTypeEnum.FUTURE_7_DAY] = [now.clone().add(7, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')], _a);
80
+ var dateScopeMap = (_a = {}, _a[dateTypeEnum.TODAY] = [now.clone().startOf('day'), now.clone().endOf('day')], _a[dateTypeEnum.YESTERDAY] = [now.clone().subtract(1, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.WEEK] = [now.clone().startOf('week'), now.clone().endOf('week')], _a[dateTypeEnum.LAST_WEEK] = [now.clone().subtract(1, 'week').startOf('week'), now.clone().subtract(1, 'week').endOf('week')], _a[dateTypeEnum.MONTH] = [now.clone().startOf('month'), now.clone().endOf('month')], _a[dateTypeEnum.LAST_MONTH] = [now.clone().subtract(1, 'month').startOf('month'), now.clone().subtract(1, 'month').endOf('month')], _a[dateTypeEnum.QUARTER] = [now.clone().startOf('quarter'), now.clone().endOf('quarter')], _a[dateTypeEnum.LAST_QUARTER] = [now.clone().subtract(1, 'quarter').startOf('quarter'), now.clone().subtract(1, 'quarter').endOf('quarter')], _a[dateTypeEnum.BEFORE_7_DAY] = [now.clone().subtract(6, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_14_DAY] = [now.clone().subtract(13, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_30_DAY] = [now.clone().subtract(29, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_90_DAY] = [now.clone().subtract(89, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_180_DAY] = [now.clone().subtract(179, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_365_DAY] = [now.clone().subtract(364, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.PAST_7_DAY] = [now.clone().subtract(7, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.TOMORROW] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')], _a[dateTypeEnum.FUTURE_7_DAY] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(7, 'day').endOf('day')], _a);
81
81
  return {
82
82
  dateScopeList: dateScopeList,
83
83
  dateScopeMap: dateScopeMap
package/lib/index.d.ts CHANGED
@@ -54,8 +54,6 @@ export type { LabelTreeSelectProps } from './label-tree-select';
54
54
  export { default as LabelTreeSelect } from './label-tree-select';
55
55
  export type { LabelCustomizeRangePickerProps } from './label-customize-range-picker';
56
56
  export { default as LabelCustomizeRangePicker } from './label-customize-range-picker';
57
- export type { LabelDescItemProps } from './label-desc-item';
58
- export { default as LabelDescItem } from './label-desc-item';
59
57
  export type { RichTextEditorProps } from './rich-text-editor';
60
58
  export { default as RichTextEditor } from './rich-text-editor';
61
59
  export { default as beautifulDnd } from './beautiful-dnd';
package/lib/index.js CHANGED
@@ -265,15 +265,6 @@ Object.defineProperty(exports, "LabelCustomizeRangePicker", {
265
265
  }
266
266
  });
267
267
 
268
- var label_desc_item_1 = require("./label-desc-item");
269
-
270
- Object.defineProperty(exports, "LabelDescItem", {
271
- enumerable: true,
272
- get: function get() {
273
- return label_desc_item_1["default"];
274
- }
275
- });
276
-
277
268
  var rich_text_editor_1 = require("./rich-text-editor");
278
269
 
279
270
  Object.defineProperty(exports, "RichTextEditor", {
@@ -89,9 +89,9 @@ exports.useDateScope = function () {
89
89
  value: [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')]
90
90
  }, {
91
91
  key: dateTypeEnum.FUTURE_7_DAY,
92
- value: [now.clone().add(7, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')]
92
+ value: [now.clone().add(1, 'day').startOf('day'), now.clone().add(7, 'day').endOf('day')]
93
93
  }];
94
- var dateScopeMap = (_a = {}, _a[dateTypeEnum.TODAY] = [now.clone().startOf('day'), now.clone().endOf('day')], _a[dateTypeEnum.YESTERDAY] = [now.clone().subtract(1, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.WEEK] = [now.clone().startOf('week'), now.clone().endOf('week')], _a[dateTypeEnum.LAST_WEEK] = [now.clone().subtract(1, 'week').startOf('week'), now.clone().subtract(1, 'week').endOf('week')], _a[dateTypeEnum.MONTH] = [now.clone().startOf('month'), now.clone().endOf('month')], _a[dateTypeEnum.LAST_MONTH] = [now.clone().subtract(1, 'month').startOf('month'), now.clone().subtract(1, 'month').endOf('month')], _a[dateTypeEnum.QUARTER] = [now.clone().startOf('quarter'), now.clone().endOf('quarter')], _a[dateTypeEnum.LAST_QUARTER] = [now.clone().subtract(1, 'quarter').startOf('quarter'), now.clone().subtract(1, 'quarter').endOf('quarter')], _a[dateTypeEnum.BEFORE_7_DAY] = [now.clone().subtract(6, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_14_DAY] = [now.clone().subtract(13, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_30_DAY] = [now.clone().subtract(29, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_90_DAY] = [now.clone().subtract(89, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_180_DAY] = [now.clone().subtract(179, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_365_DAY] = [now.clone().subtract(364, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.PAST_7_DAY] = [now.clone().subtract(7, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.TOMORROW] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')], _a[dateTypeEnum.FUTURE_7_DAY] = [now.clone().add(7, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')], _a);
94
+ var dateScopeMap = (_a = {}, _a[dateTypeEnum.TODAY] = [now.clone().startOf('day'), now.clone().endOf('day')], _a[dateTypeEnum.YESTERDAY] = [now.clone().subtract(1, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.WEEK] = [now.clone().startOf('week'), now.clone().endOf('week')], _a[dateTypeEnum.LAST_WEEK] = [now.clone().subtract(1, 'week').startOf('week'), now.clone().subtract(1, 'week').endOf('week')], _a[dateTypeEnum.MONTH] = [now.clone().startOf('month'), now.clone().endOf('month')], _a[dateTypeEnum.LAST_MONTH] = [now.clone().subtract(1, 'month').startOf('month'), now.clone().subtract(1, 'month').endOf('month')], _a[dateTypeEnum.QUARTER] = [now.clone().startOf('quarter'), now.clone().endOf('quarter')], _a[dateTypeEnum.LAST_QUARTER] = [now.clone().subtract(1, 'quarter').startOf('quarter'), now.clone().subtract(1, 'quarter').endOf('quarter')], _a[dateTypeEnum.BEFORE_7_DAY] = [now.clone().subtract(6, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_14_DAY] = [now.clone().subtract(13, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_30_DAY] = [now.clone().subtract(29, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_90_DAY] = [now.clone().subtract(89, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_180_DAY] = [now.clone().subtract(179, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.BEFORE_365_DAY] = [now.clone().subtract(364, 'day').startOf('day'), now.endOf('day')], _a[dateTypeEnum.PAST_7_DAY] = [now.clone().subtract(7, 'day').startOf('day'), now.clone().subtract(1, 'day').endOf('day')], _a[dateTypeEnum.TOMORROW] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(1, 'day').endOf('day')], _a[dateTypeEnum.FUTURE_7_DAY] = [now.clone().add(1, 'day').startOf('day'), now.clone().add(7, 'day').endOf('day')], _a);
95
95
  return {
96
96
  dateScopeList: dateScopeList,
97
97
  dateScopeMap: dateScopeMap
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "assui",
3
- "version": "2.0.141",
3
+ "version": "2.0.144",
4
4
  "description": "react ui library",
5
5
  "author": "jason <usochen@gmail.com>",
6
6
  "main": "./lib/index.js",
@@ -33,7 +33,7 @@
33
33
  "@ahooksjs/use-url-state": "^2.5.8",
34
34
  "@tinymce/tinymce-react": "^3.13.0",
35
35
  "@types/react-beautiful-dnd": "^13.1.2",
36
- "a-icons": "^1.0.64",
36
+ "a-icons": "^1.0.66",
37
37
  "ahooks": "^3.0.8",
38
38
  "bignumber.js": "^9.0.1",
39
39
  "copy-to-clipboard": "^3.3.1",
@@ -69,5 +69,5 @@
69
69
  "node": ">=10.0.0"
70
70
  },
71
71
  "license": "MIT",
72
- "gitHead": "1311c51a3fafbd718da2dc12f94b5e1b9cf1a62c"
72
+ "gitHead": "4cb9764c58c343887caf3fdcefdd6a8e96b56b46"
73
73
  }
@@ -1,9 +0,0 @@
1
- .label-desc {
2
- margin-top: 10px;
3
-
4
- :global {
5
- .desc-item-label {
6
- color: #ff6b00;
7
- }
8
- }
9
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export declare type LabelDescItemProps = {
3
- /** 自定义class */
4
- className?: string;
5
- /** label 标签的文本 */
6
- label?: React.ReactNode;
7
- /** descItem的value */
8
- value?: React.ReactNode;
9
- /** 带有后缀的 item */
10
- suffix?: React.ReactNode;
11
- };
12
- declare const LabelDescItem: React.FC<LabelDescItemProps>;
13
- export default LabelDescItem;
@@ -1,22 +0,0 @@
1
- import React from 'react';
2
- import classNames from 'classnames';
3
-
4
- var LabelDescItem = function LabelDescItem(props) {
5
- var className = props.className,
6
- label = props.label,
7
- value = props.value,
8
- suffix = props.suffix;
9
- return /*#__PURE__*/React.createElement("div", {
10
- className: classNames('desc-item', className)
11
- }, /*#__PURE__*/React.createElement("div", {
12
- className: "desc-item-left-content"
13
- }, label && /*#__PURE__*/React.createElement("div", {
14
- className: "desc-item-label"
15
- }, label), /*#__PURE__*/React.createElement("div", {
16
- className: "desc-item-value"
17
- }, value)), suffix && /*#__PURE__*/React.createElement("div", {
18
- className: "desc-item-value"
19
- }, suffix));
20
- };
21
-
22
- export default LabelDescItem;
@@ -1,23 +0,0 @@
1
- .desc-item {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- padding: 17px 16px;
6
- overflow: hidden;
7
- background-color: #f8f8f8;
8
- border-radius: 12px;
9
- }
10
- .desc-item-left-content {
11
- display: flex;
12
- flex-shrink: 0;
13
- align-items: center;
14
- }
15
- .desc-item-label {
16
- flex-shrink: 0;
17
- margin-right: 10px;
18
- color: #b3b3b3;
19
- font-weight: 500;
20
- }
21
- .desc-item-value {
22
- font-weight: 500;
23
- }
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,26 +0,0 @@
1
- .desc-item {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- padding: 17px 16px;
6
- overflow: hidden;
7
- background-color: #f8f8f8;
8
- border-radius: 12px;
9
-
10
- &-left-content {
11
- display: flex;
12
- flex-shrink: 0;
13
- align-items: center;
14
- }
15
-
16
- &-label {
17
- flex-shrink: 0;
18
- margin-right: 10px;
19
- color: #b3b3b3;
20
- font-weight: 500;
21
- }
22
-
23
- &-value {
24
- font-weight: 500;
25
- }
26
- }
@@ -1,9 +0,0 @@
1
- .label-desc {
2
- margin-top: 10px;
3
-
4
- :global {
5
- .desc-item-label {
6
- color: #ff6b00;
7
- }
8
- }
9
- }
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- export declare type LabelDescItemProps = {
3
- /** 自定义class */
4
- className?: string;
5
- /** label 标签的文本 */
6
- label?: React.ReactNode;
7
- /** descItem的value */
8
- value?: React.ReactNode;
9
- /** 带有后缀的 item */
10
- suffix?: React.ReactNode;
11
- };
12
- declare const LabelDescItem: React.FC<LabelDescItemProps>;
13
- export default LabelDescItem;
@@ -1,35 +0,0 @@
1
- "use strict";
2
-
3
- var __importDefault = this && this.__importDefault || function (mod) {
4
- return mod && mod.__esModule ? mod : {
5
- "default": mod
6
- };
7
- };
8
-
9
- Object.defineProperty(exports, "__esModule", {
10
- value: true
11
- });
12
-
13
- var react_1 = __importDefault(require("react"));
14
-
15
- var classnames_1 = __importDefault(require("classnames"));
16
-
17
- var LabelDescItem = function LabelDescItem(props) {
18
- var className = props.className,
19
- label = props.label,
20
- value = props.value,
21
- suffix = props.suffix;
22
- return react_1["default"].createElement("div", {
23
- className: classnames_1["default"]('desc-item', className)
24
- }, react_1["default"].createElement("div", {
25
- className: "desc-item-left-content"
26
- }, label && react_1["default"].createElement("div", {
27
- className: "desc-item-label"
28
- }, label), react_1["default"].createElement("div", {
29
- className: "desc-item-value"
30
- }, value)), suffix && react_1["default"].createElement("div", {
31
- className: "desc-item-value"
32
- }, suffix));
33
- };
34
-
35
- exports["default"] = LabelDescItem;
@@ -1,23 +0,0 @@
1
- .desc-item {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- padding: 17px 16px;
6
- overflow: hidden;
7
- background-color: #f8f8f8;
8
- border-radius: 12px;
9
- }
10
- .desc-item-left-content {
11
- display: flex;
12
- flex-shrink: 0;
13
- align-items: center;
14
- }
15
- .desc-item-label {
16
- flex-shrink: 0;
17
- margin-right: 10px;
18
- color: #b3b3b3;
19
- font-weight: 500;
20
- }
21
- .desc-item-value {
22
- font-weight: 500;
23
- }
@@ -1 +0,0 @@
1
- import './index.less';
@@ -1,7 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
-
7
- require("./index.less");
@@ -1,26 +0,0 @@
1
- .desc-item {
2
- display: flex;
3
- align-items: center;
4
- justify-content: space-between;
5
- padding: 17px 16px;
6
- overflow: hidden;
7
- background-color: #f8f8f8;
8
- border-radius: 12px;
9
-
10
- &-left-content {
11
- display: flex;
12
- flex-shrink: 0;
13
- align-items: center;
14
- }
15
-
16
- &-label {
17
- flex-shrink: 0;
18
- margin-right: 10px;
19
- color: #b3b3b3;
20
- font-weight: 500;
21
- }
22
-
23
- &-value {
24
- font-weight: 500;
25
- }
26
- }