@jetlinks-web/components 2.5.5 → 2.6.1

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 (38) hide show
  1. package/es/DragModal/style/index.less +97 -97
  2. package/es/EditTable/components/Search/sort.js +1 -1
  3. package/es/FlameGraph/index.js +5 -0
  4. package/es/FullPage/FullPage.js +1 -1
  5. package/es/ProTable/style/ProTable.less +139 -0
  6. package/es/RadioButton/style/index.css +20 -0
  7. package/es/RadioButton/style/index.less +1 -0
  8. package/es/Scrollbar/style/index.css +65 -0
  9. package/es/Scrollbar/style/index.less +83 -0
  10. package/es/Search/Advanced/SaveHistory.js +1 -1
  11. package/es/Search/Item.js +1 -1
  12. package/es/Search/style/Item.less +33 -0
  13. package/es/Search/style/Search.less +179 -0
  14. package/es/Title/style/index.css +23 -0
  15. package/es/Title/style/index.less +25 -0
  16. package/es/components.js +2 -1
  17. package/es/locale/en-US.js +4 -0
  18. package/es/locale/zh-CN.js +4 -0
  19. package/lib/DragModal/style/index.less +97 -97
  20. package/lib/EditTable/components/Search/sort.js +1 -1
  21. package/lib/FlameGraph/index.js +12 -0
  22. package/lib/FullPage/FullPage.js +1 -1
  23. package/lib/ProTable/style/ProTable.less +139 -0
  24. package/lib/RadioButton/style/index.css +20 -0
  25. package/lib/RadioButton/style/index.less +1 -0
  26. package/lib/Scrollbar/style/index.css +65 -0
  27. package/lib/Scrollbar/style/index.less +83 -0
  28. package/lib/Search/Advanced/SaveHistory.js +1 -1
  29. package/lib/Search/Item.js +1 -1
  30. package/lib/Search/style/Item.less +33 -0
  31. package/lib/Search/style/Search.less +179 -0
  32. package/lib/Title/style/index.css +23 -0
  33. package/lib/Title/style/index.less +25 -0
  34. package/lib/components.js +7 -0
  35. package/lib/locale/en-US.js +4 -0
  36. package/lib/locale/zh-CN.js +4 -0
  37. package/lib/style/components.less +9 -0
  38. package/package.json +5 -3
@@ -0,0 +1,65 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .j-scrollbar {
6
+ overflow: hidden;
7
+ position: relative;
8
+ height: 100%;
9
+ }
10
+ .j-scrollbar__wrap {
11
+ overflow: auto;
12
+ height: 100%;
13
+ }
14
+ .j-scrollbar__wrap--hidden-default {
15
+ scrollbar-width: none;
16
+ }
17
+ .j-scrollbar__wrap--hidden-default::-webkit-scrollbar {
18
+ display: none;
19
+ }
20
+ .j-scrollbar__thumb {
21
+ position: relative;
22
+ display: block;
23
+ width: 0;
24
+ height: 0;
25
+ cursor: pointer;
26
+ border-radius: inherit;
27
+ background-color: #909399;
28
+ transition: 0.3s background-color;
29
+ opacity: 0.3;
30
+ }
31
+ .j-scrollbar__thumb:hover {
32
+ background-color: #909399;
33
+ opacity: 0.5;
34
+ }
35
+ .j-scrollbar__bar {
36
+ position: absolute;
37
+ right: 2px;
38
+ bottom: 2px;
39
+ z-index: 1;
40
+ border-radius: 4px;
41
+ }
42
+ .j-scrollbar__bar--vertical {
43
+ width: 6px;
44
+ top: 2px;
45
+ }
46
+ .j-scrollbar__bar--vertical > div {
47
+ width: 100%;
48
+ }
49
+ .j-scrollbar__bar--horizontal {
50
+ height: 6px;
51
+ left: 2px;
52
+ }
53
+ .j-scrollbar__bar--horizontal > div {
54
+ height: 100%;
55
+ }
56
+ .j-scrollbar-fade-enter-active {
57
+ transition: opacity 340ms ease-out;
58
+ }
59
+ .j-scrollbar-fade-leave-active {
60
+ transition: opacity 120ms ease-out;
61
+ }
62
+ .j-scrollbar-fade-enter-from,
63
+ .j-scrollbar-fade-leave-active {
64
+ opacity: 0;
65
+ }
@@ -0,0 +1,83 @@
1
+ @import '../../style/variable.less';
2
+ @scrollbar-bg-color: #909399;
3
+ @scrollbar-hover-bg-color: #909399;
4
+ @scrollbar-hover-opacity: 0.5;
5
+ @scrollbar-opacity: 0.3;
6
+ @transition-duration: 0.3s;
7
+
8
+ .j-scrollbar {
9
+ overflow: hidden;
10
+ position: relative;
11
+ height: 100%;
12
+
13
+ &__wrap {
14
+ overflow: auto;
15
+ height: 100%;
16
+
17
+ &--hidden-default {
18
+ scrollbar-width: none;
19
+
20
+ &::-webkit-scrollbar {
21
+ display: none;
22
+ }
23
+ }
24
+ }
25
+
26
+ &__thumb {
27
+ position: relative;
28
+ display: block;
29
+ width: 0;
30
+ height: 0;
31
+ cursor: pointer;
32
+ border-radius: inherit;
33
+ background-color: @scrollbar-bg-color;
34
+ transition: @transition-duration background-color;
35
+ opacity: @scrollbar-opacity;
36
+
37
+ &:hover {
38
+ background-color: @scrollbar-hover-bg-color;
39
+ opacity: @scrollbar-hover-opacity;
40
+ }
41
+ }
42
+
43
+ &__bar {
44
+ position: absolute;
45
+ right: 2px;
46
+ bottom: 2px;
47
+ z-index: 1;
48
+ border-radius: 4px;
49
+
50
+ &--vertical {
51
+ width: 6px;
52
+ top: 2px;
53
+
54
+ > div {
55
+ width: 100%;
56
+ }
57
+ }
58
+
59
+ &--horizontal {
60
+ height: 6px;
61
+ left: 2px;
62
+
63
+ > div {
64
+ height: 100%;
65
+ }
66
+ }
67
+ }
68
+ }
69
+
70
+ .j-scrollbar-fade {
71
+ &-enter-active {
72
+ transition: opacity 340ms ease-out;
73
+ }
74
+
75
+ &-leave-active {
76
+ transition: opacity 120ms ease-out;
77
+ }
78
+
79
+ &-enter-from,
80
+ &-leave-active {
81
+ opacity: 0;
82
+ }
83
+ }
@@ -23,7 +23,7 @@
23
23
  } */
24
24
  import { defineComponent as _defineComponent } from 'vue';
25
25
  import { unref as _unref, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
26
- const _withScopeId = n => (_pushScopeId("data-v-1743503004249"), n = n(), _popScopeId(), n);
26
+ const _withScopeId = n => (_pushScopeId("data-v-1744096039397"), n = n(), _popScopeId(), n);
27
27
  const _hoisted_1 = {
28
28
  key: 0,
29
29
  style: { "width": "240px" }
@@ -80,7 +80,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
80
80
  } */
81
81
  import { defineComponent as _defineComponent } from 'vue';
82
82
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementBlock as _createElementBlock, createVNode as _createVNode, Fragment as _Fragment, normalizeStyle as _normalizeStyle, mergeProps as _mergeProps, resolveDynamicComponent as _resolveDynamicComponent, withCtx as _withCtx, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
83
- const _withScopeId = n => (_pushScopeId("data-v-1743503003588"), n = n(), _popScopeId(), n);
83
+ const _withScopeId = n => (_pushScopeId("data-v-1744096038571"), n = n(), _popScopeId(), n);
84
84
  const _hoisted_1 = { class: "JSearch-item" };
85
85
  const _hoisted_2 = {
86
86
  key: 0,
@@ -0,0 +1,33 @@
1
+ .JSearch-item {
2
+ display: flex;
3
+ gap: 16px;
4
+ align-items: center;
5
+
6
+ .JSearch-item--type {
7
+ width: 90px;
8
+ min-width: 0;
9
+ > span {
10
+ line-height: 34px;
11
+ font-weight: bold;
12
+ }
13
+ }
14
+
15
+ .JSearch-item--column {
16
+ width: 130px;
17
+ min-width: 0;
18
+ }
19
+
20
+ .JSearch-item--termType {
21
+ width: 110px;
22
+ min-width: 0;
23
+ }
24
+ .JSearch-item--label {
25
+ min-width: 40px;
26
+ }
27
+
28
+ .JSearch-item--value {
29
+ display: flex;
30
+ width: 0;
31
+ flex-grow: 1;
32
+ }
33
+ }
@@ -0,0 +1,179 @@
1
+ @import '../../style/variable.less';
2
+ .JSearch-warp {
3
+ padding: 24px;
4
+ background-color: #fff;
5
+ margin-bottom: 24px;
6
+
7
+ .pack-up {
8
+ .JSearch-items {
9
+ flex: 1 1 auto;
10
+
11
+ .left {
12
+ min-width: 380px;
13
+ max-width: 580px;
14
+ }
15
+ }
16
+ }
17
+
18
+ &.senior {
19
+ > .JSearch-content {
20
+ display: flex;
21
+ .JSearch-footer {
22
+ display: flex;
23
+ gap: 64px;
24
+ position: relative;
25
+
26
+ .more-btn {
27
+ .more-text {
28
+ padding-right: 24px;
29
+ }
30
+ .more-icon {
31
+ transition: transform 0.3s;
32
+ transform: rotateZ(90deg);
33
+ font-size: 14px;
34
+
35
+ &.more-up {
36
+ transform: rotateZ(-90deg);
37
+ }
38
+ }
39
+ }
40
+
41
+ &.expand {
42
+ margin-top: 16px;
43
+ width: 100%;
44
+ justify-content: space-between;
45
+ }
46
+
47
+ .JSearch-footer--btns {
48
+ display: flex;
49
+ gap: 12px;
50
+ }
51
+ }
52
+
53
+ .items-expand {
54
+ display: flex;
55
+ gap: 16px;
56
+
57
+ .left,
58
+ & .right {
59
+ min-width: 0;
60
+ flex: 1 1 0;
61
+ }
62
+
63
+ .left-items,
64
+ & .right-items {
65
+ display: flex;
66
+ gap: 16px;
67
+ flex-direction: column;
68
+ }
69
+
70
+ .center {
71
+ display: flex;
72
+ flex-direction: column;
73
+ justify-content: center;
74
+ }
75
+
76
+ &.vertical {
77
+ flex-direction: column;
78
+ .center {
79
+ flex-direction: row;
80
+ justify-content: center;
81
+ }
82
+ }
83
+ }
84
+
85
+ &.senior-expand {
86
+ flex-direction: column;
87
+ }
88
+
89
+ &.small {
90
+ gap: 12px;
91
+ .JSearch-footer {
92
+ gap: 4px;
93
+ }
94
+ }
95
+ }
96
+ }
97
+
98
+ .JSearch-content {
99
+ &.simple {
100
+ .JSearch-footer--btns {
101
+ display: flex;
102
+ gap: 12px;
103
+ }
104
+
105
+ .JSearch-item {
106
+ gap: 8px;
107
+
108
+ .JSearch-item--label {
109
+ text-align: right;
110
+ }
111
+ }
112
+ }
113
+ }
114
+
115
+ .no-radius {
116
+ border-radius: 0;
117
+ border-color: #f1f1f1;
118
+ }
119
+
120
+ .search-history-warp {
121
+ position: relative;
122
+
123
+ .search-history-button {
124
+ padding-right: 32px;
125
+ }
126
+
127
+ .search-history-button-icon {
128
+ position: absolute;
129
+ width: 24px;
130
+ height: 18px;
131
+ right: 6px;
132
+ top: 8px;
133
+ color: #fff;
134
+ line-height: 18px;
135
+ text-align: center;
136
+ font-weight: bold;
137
+ > span {
138
+ font-size: 14px;
139
+ }
140
+ }
141
+ }
142
+ }
143
+
144
+ .search-history-empty {
145
+ padding: 12px 12px 6px 12px;
146
+ background-color: #fff;
147
+ }
148
+
149
+ .search-history-items {
150
+ width: 120px;
151
+ max-height: 300px;
152
+ overflow-y: auto;
153
+ .search-history-item {
154
+ display: flex;
155
+ padding: 4px 0px 4px 4px;
156
+ align-items: center;
157
+ gap: 4px;
158
+
159
+ &:hover {
160
+ background-color: #f1f1f1;
161
+ }
162
+
163
+ .history-item--title {
164
+ width: calc(100% - 30px);
165
+ cursor: pointer;
166
+ }
167
+
168
+ .delete {
169
+ padding: 0 6px;
170
+ flex: 0 0 28px;
171
+ }
172
+ }
173
+ }
174
+
175
+ .search-history-list-pop {
176
+ .ant-popover-inner-content {
177
+ padding: 0;
178
+ }
179
+ }
@@ -0,0 +1,23 @@
1
+ .j-title {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 100%;
5
+ margin-bottom: 16px;
6
+ }
7
+ .j-title .j-title-content {
8
+ position: relative;
9
+ padding-left: 10px;
10
+ color: rgba(0, 0, 0, 0.8);
11
+ font-weight: 600;
12
+ line-height: 1;
13
+ }
14
+ .j-title .j-title-content::before {
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 4px;
19
+ height: 100%;
20
+ background-color: #1890ff;
21
+ border-radius: 0 3px 3px 0;
22
+ content: ' ';
23
+ }
@@ -0,0 +1,25 @@
1
+ .j-title {
2
+ display: flex;
3
+ align-items: center;
4
+ width: 100%;
5
+ margin-bottom: 16px;
6
+
7
+ .j-title-content {
8
+ position: relative;
9
+ padding-left: 10px;
10
+ color: rgba(0, 0, 0, 0.8);
11
+ font-weight: 600;
12
+ line-height: 1;
13
+
14
+ &::before {
15
+ position: absolute;
16
+ top: 0;
17
+ left: 0;
18
+ width: 4px;
19
+ height: 100%;
20
+ background-color: #1890ff;
21
+ border-radius: 0 3px 3px 0;
22
+ content: ' ';
23
+ }
24
+ }
25
+ }
package/lib/components.js CHANGED
@@ -77,6 +77,12 @@ Object.defineProperty(exports, "Empty", {
77
77
  return _Empty.default;
78
78
  }
79
79
  });
80
+ Object.defineProperty(exports, "FlameGraph", {
81
+ enumerable: true,
82
+ get: function get() {
83
+ return _FlameGraph.default;
84
+ }
85
+ });
80
86
  Object.defineProperty(exports, "FullPage", {
81
87
  enumerable: true,
82
88
  get: function get() {
@@ -178,5 +184,6 @@ var _EditTable = _interopRequireDefault(require("./EditTable"));
178
184
  var _Markdown = _interopRequireDefault(require("./Markdown"));
179
185
  var _AutoComplete = _interopRequireDefault(require("./AutoComplete"));
180
186
  var _Title = _interopRequireDefault(require("./Title"));
187
+ var _FlameGraph = _interopRequireDefault(require("./FlameGraph"));
181
188
  function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
182
189
  function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
@@ -120,5 +120,9 @@ var _default = exports.default = {
120
120
  },
121
121
  PermissionButton: {
122
122
  hasPermission: 'No permission, please contact the administrator'
123
+ },
124
+ FlameGraph: {
125
+ placeholder: 'Please input',
126
+ revert: 'Revert'
123
127
  }
124
128
  };
@@ -120,5 +120,9 @@ var _default = exports.default = {
120
120
  },
121
121
  PermissionButton: {
122
122
  hasPermission: '暂无权限,请联系管理员'
123
+ },
124
+ FlameGraph: {
125
+ placeholder: '请输入',
126
+ revert: '反转'
123
127
  }
124
128
  };
@@ -0,0 +1,9 @@
1
+ @import "../CardSelect/style/index-pure.less";
2
+ @import "../CheckButton/style/index-pure.less";
3
+ @import "../DragModal/style/index-pure.less";
4
+ @import "../EditTable/style/index-pure.less";
5
+ @import "../Ellipsis/style/index-pure.less";
6
+ @import "../MonacoEditor/style/index-pure.less";
7
+ @import "../RadioButton/style/index-pure.less";
8
+ @import "../Scrollbar/style/index-pure.less";
9
+ @import "../Title/style/index-pure.less";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jetlinks-web/components",
3
- "version": "2.5.5",
3
+ "version": "2.6.1",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -25,6 +25,8 @@
25
25
  "@vueuse/core": "^10.2.1",
26
26
  "@vueuse/router": "^12.1.0",
27
27
  "async-validator": "^4.2.5",
28
+ "d3": "^7.9.0",
29
+ "d3-flame-graph": "^4.1.3",
28
30
  "echarts": "^5.4.3",
29
31
  "markdown-it": "^14.1.0",
30
32
  "markdown-it-abbr": "^2.0.0",
@@ -157,8 +159,8 @@
157
159
  "webpack-merge": "^5.0.0",
158
160
  "webpackbar": "^5.0.2",
159
161
  "@jetlinks-web/constants": "^1.0.9",
160
- "@jetlinks-web/hooks": "^1.0.25",
161
- "@jetlinks-web/utils": "^1.2.8"
162
+ "@jetlinks-web/utils": "^1.2.8",
163
+ "@jetlinks-web/hooks": "^1.0.25"
162
164
  },
163
165
  "publishConfig": {
164
166
  "registry": "https://registry.npmjs.org/",