imatrix-ui 0.0.15 → 0.1.1-up

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 (171) hide show
  1. package/.vscode/extensions.json +3 -0
  2. package/README.md +7 -0
  3. package/components/dynamic-source-select/dynamic-source-select-service.js +106 -0
  4. package/components/dynamic-source-select/dynamic-source-select.vue +673 -0
  5. package/components/dynamic-source-select/events.js +77 -0
  6. package/components/fs-preview/fs-preview.vue +287 -0
  7. package/components/index.js +26 -0
  8. package/components/plugins/export-data-new.js +623 -0
  9. package/components/plugins/export-data.js +431 -0
  10. package/components/plugins/index.js +15 -0
  11. package/components/plugins/public-method.js +47 -0
  12. package/components/rich-editor/index-bak.vue +306 -0
  13. package/components/rich-editor/index.vue +236 -0
  14. package/components/rich-editor/langs/zh-Hans.js +438 -0
  15. package/components/rich-editor/viewer.vue +105 -0
  16. package/components/super-grid/apis.js +1065 -0
  17. package/components/super-grid/columns-config.vue +430 -0
  18. package/components/super-grid/custom-formatter.js +330 -0
  19. package/components/super-grid/dynamic-input.vue +1706 -0
  20. package/components/super-grid/eventBus.js +2 -0
  21. package/components/super-grid/events.js +56 -0
  22. package/components/super-grid/formValidatorUtil.js +300 -0
  23. package/components/super-grid/formatter.js +190 -0
  24. package/components/super-grid/group-column.vue +100 -0
  25. package/components/super-grid/header-context-menu.vue +82 -0
  26. package/components/super-grid/index-column.vue +69 -0
  27. package/components/super-grid/normal-column.vue +1148 -0
  28. package/components/super-grid/public-methods.js +30 -0
  29. package/components/super-grid/row-operation.vue +193 -0
  30. package/components/super-grid/search-button.vue +74 -0
  31. package/components/super-grid/search-condition-input.vue +73 -0
  32. package/components/super-grid/search-condition-list.vue +68 -0
  33. package/components/super-grid/search-form-advancedQuery.vue +820 -0
  34. package/components/super-grid/search-form-dialog.vue +77 -0
  35. package/components/super-grid/search-form-item.vue +470 -0
  36. package/components/super-grid/search-form-number.vue +111 -0
  37. package/components/super-grid/search-form-open.vue +178 -0
  38. package/components/super-grid/search-form-ordinarySearch.vue +218 -0
  39. package/components/super-grid/search-form.vue +756 -0
  40. package/components/super-grid/search-methods.js +484 -0
  41. package/components/super-grid/selection-column.vue +46 -0
  42. package/components/super-grid/store.js +3 -0
  43. package/components/super-grid/super-grid-service.js +682 -0
  44. package/components/super-grid/super-grid.vue +2893 -0
  45. package/components/super-grid/utils.js +851 -0
  46. package/components/super-grid/view-image-dialog.vue +173 -0
  47. package/components/utils/gogocodeTransfer.js +59 -0
  48. package/components/utils/utils.js +180 -0
  49. package/components/utils/value-set.js +98 -0
  50. package/components/z-test-utton/index.vue +82 -0
  51. package/package.json +29 -40
  52. package/public/index.html +13 -0
  53. package/public/vite.svg +1 -0
  54. package/src/api/sso-service.js +172 -19
  55. package/src/api/tab.js +36 -0
  56. package/src/api/user-service.js +11 -11
  57. package/src/assets/401/401.gif +0 -0
  58. package/src/assets/404/404-cloud.png +0 -0
  59. package/src/assets/404/404.png +0 -0
  60. package/src/assets/cloud.png +0 -0
  61. package/src/directives/permission/index.js +13 -13
  62. package/src/directives/permission/permission.js +20 -15
  63. package/src/i18n/i18n.js +16 -0
  64. package/src/i18n/langs/cn.js +254 -0
  65. package/src/i18n/langs/en.js +264 -0
  66. package/src/permission.js +157 -71
  67. package/src/plugins.js +18 -18
  68. package/src/router/index.js +96 -69
  69. package/src/store/getters.js +15 -10
  70. package/src/store/index.js +19 -19
  71. package/src/store/modules/app.js +54 -42
  72. package/src/store/modules/permission.js +137 -73
  73. package/src/store/modules/tab-content.js +36 -0
  74. package/src/store/modules/user.js +293 -80
  75. package/src/styles/display-layout.scss +34 -0
  76. package/src/styles/element-ui.scss +29 -29
  77. package/src/styles/index.scss +157 -78
  78. package/src/styles/mixin.scss +27 -27
  79. package/src/styles/theme/black/font-style.scss +70 -0
  80. package/src/styles/theme/black/index.scss +306 -0
  81. package/src/styles/theme/black/sidebar.scss +189 -0
  82. package/src/styles/theme/blue/font-style.scss +46 -0
  83. package/src/styles/theme/blue/index.scss +172 -0
  84. package/src/styles/{sidebar.scss → theme/blue/sidebar.scss} +171 -141
  85. package/src/styles/theme/blue2/font-style.scss +70 -0
  86. package/src/styles/theme/blue2/index.scss +188 -0
  87. package/src/styles/theme/blue2/sidebar.scss +201 -0
  88. package/src/styles/theme/dark-blue/button.scss +9 -0
  89. package/src/styles/theme/dark-blue/card.scss +62 -0
  90. package/src/styles/theme/dark-blue/checkbox.scss +10 -0
  91. package/src/styles/theme/dark-blue/dark-blue-var.scss +8 -0
  92. package/src/styles/theme/dark-blue/dialog.scss +21 -0
  93. package/src/styles/theme/dark-blue/element-variables.scss +7 -0
  94. package/src/styles/theme/dark-blue/font.scss +71 -0
  95. package/src/styles/theme/dark-blue/form.scss +51 -0
  96. package/src/styles/theme/dark-blue/index.scss +269 -0
  97. package/src/styles/theme/dark-blue/input.scss +15 -0
  98. package/src/styles/theme/dark-blue/message.scss +8 -0
  99. package/src/styles/theme/dark-blue/pagination.scss +14 -0
  100. package/src/styles/theme/dark-blue/scrollbar-style.scss +32 -0
  101. package/src/styles/theme/dark-blue/sidebar.scss +266 -0
  102. package/src/styles/theme/dark-blue/tab.scss +83 -0
  103. package/src/styles/theme/dark-blue/table.scss +60 -0
  104. package/src/styles/theme/dark-blue/tree.scss +31 -0
  105. package/src/styles/theme/dark-blue/var.scss +1028 -0
  106. package/src/styles/theme/gray/card-style.scss +54 -0
  107. package/src/styles/theme/gray/font-style.scss +70 -0
  108. package/src/styles/theme/gray/index.scss +172 -0
  109. package/src/styles/theme/gray/input-style.scss +19 -0
  110. package/src/styles/theme/gray/scrollbar-style.scss +32 -0
  111. package/src/styles/theme/gray/sidebar.scss +231 -0
  112. package/src/styles/theme/gray/tab-style.scss +81 -0
  113. package/src/styles/transition.scss +47 -46
  114. package/src/utils/auth-api.js +159 -0
  115. package/src/utils/auth.js +61 -15
  116. package/src/utils/calculator/calculator-factory-wf.js +558 -0
  117. package/src/utils/calculator/calculator-factory.js +145 -0
  118. package/src/utils/calculator/calculator-util.js +166 -0
  119. package/src/utils/common-util.js +305 -0
  120. package/src/utils/eventBus.js +2 -0
  121. package/src/utils/iconUtils.js +28 -0
  122. package/src/utils/index.js +102 -86
  123. package/src/utils/jump-page-utils.js +814 -0
  124. package/src/utils/local-storage.js +33 -31
  125. package/src/utils/menu.js +19 -0
  126. package/src/utils/permission.js +31 -26
  127. package/src/utils/permissionAuth.js +90 -0
  128. package/src/utils/range-selector.js +188 -0
  129. package/src/utils/request.js +270 -116
  130. package/src/utils/restful-interface-utils.js +57 -0
  131. package/src/utils/util.js +698 -0
  132. package/src/utils/validate.js +34 -33
  133. package/src/utils/watermark.js +108 -0
  134. package/src/utils/workflow-util.js +93 -0
  135. package/src/views/404.vue +248 -228
  136. package/src/views/dsc-component/Sidebar/Item.vue +84 -0
  137. package/src/views/dsc-component/Sidebar/Link.vue +38 -0
  138. package/src/views/dsc-component/Sidebar/SidebarItem.vue +196 -0
  139. package/src/views/dsc-component/Sidebar/index.vue +220 -0
  140. package/src/views/dsc-component/tabs/tab-content.vue +199 -0
  141. package/src/views/error-page/401.vue +106 -91
  142. package/src/views/error-page/404.vue +248 -228
  143. package/src/views/layout/EmptyLayout.vue +3 -0
  144. package/src/views/layout/Layout.vue +81 -68
  145. package/src/views/layout/NewLayout.vue +18 -0
  146. package/src/views/layout/components/AppMain.vue +39 -29
  147. package/src/views/layout/components/Breadcrumb/index.vue +156 -0
  148. package/src/views/layout/components/Menubar/Item.vue +57 -0
  149. package/src/views/layout/components/Menubar/Link.vue +38 -0
  150. package/src/views/layout/components/Menubar/SidebarItem.vue +164 -0
  151. package/src/views/layout/components/Menubar/index.vue +210 -0
  152. package/src/views/layout/components/Sidebar/Item.vue +53 -29
  153. package/src/views/layout/components/Sidebar/Link.vue +38 -39
  154. package/src/views/layout/components/Sidebar/SidebarItem.vue +135 -100
  155. package/src/views/layout/components/Sidebar/index.vue +141 -48
  156. package/src/views/layout/components/iframe-page.vue +38 -0
  157. package/src/views/layout/components/index.js +4 -3
  158. package/src/views/layout/components/tabs/tab-content.vue +207 -0
  159. package/src/views/layout/mixin/ResizeHandler.js +41 -41
  160. package/src/views/layout/tab-content-iframe-index.vue +38 -0
  161. package/src/views/layout/tab-content-index.vue +93 -0
  162. package/src/views/login/authredirect.vue +10 -10
  163. package/src/views/login/index.vue +296 -203
  164. package/src/views/login/update-password.vue +243 -0
  165. package/src/views/redirect/index.vue +14 -12
  166. package/src/views/wf-history/tache-subprocess-history.vue +45 -0
  167. package/vite.config.js +31 -0
  168. package/lib/super-ui.css +0 -1
  169. package/lib/super-ui.umd.min.js +0 -2
  170. package/src/styles/variables.scss +0 -4
  171. package/src/views/layout/components/Navbar.vue +0 -92
@@ -0,0 +1,189 @@
1
+ .black {
2
+ $menuBgBlack:#333;
3
+ $subMenuBgBlack:#333;
4
+ $menuHoverBlack:#444444;
5
+ #app {
6
+ // $topHeight: 50px;
7
+ // 主体区域
8
+ .main-container {
9
+ height: 100%;
10
+ transition: margin-left .28s;
11
+ margin-left: 224px;
12
+ position: relative;
13
+ }
14
+ // 侧边栏
15
+ .sidebar-container {
16
+ transition: width 0.28s;
17
+ width: 224px !important;
18
+ height: 100%;
19
+ position: fixed;
20
+ top: 0;
21
+ bottom: 0;
22
+ left: 0;
23
+ z-index: 1001;
24
+ overflow: hidden;
25
+ font-size: 16px;
26
+ font-family: SourceHanSansCN-Regular, SourceHanSansCN , Arial, sans-serif;
27
+ font-weight: 400;
28
+ color: #eee;
29
+ line-height: 16px;
30
+ background: #333;
31
+ box-shadow: 0px 2px 8px 0px rgba(164, 178, 201, 0.4);
32
+ //reset element-ui css
33
+ .horizontal-collapse-transition {
34
+ transition: 0s width ease-in-out, 0s padding-left ease-in-out, 0s padding-right ease-in-out;
35
+ }
36
+ .el-scrollbar__bar.is-vertical{
37
+ right: 0px;
38
+ }
39
+ .scrollbar-wrapper {
40
+ overflow-x: hidden!important;
41
+ .el-scrollbar__view {
42
+ height: calc(100vh - 70px);
43
+ }
44
+ .system-item {
45
+ padding-left: 10px;
46
+ font-size: medium;
47
+ font-weight: 600;
48
+ opacity: 0.8;
49
+ cursor:default;
50
+ }
51
+ }
52
+ .hamburger-container {
53
+ line-height: 58px;
54
+ height: 58px;
55
+ background-color: #333;
56
+ // float: left;
57
+ padding: 0 20px;
58
+ .path{
59
+ fill:#eee;
60
+ }
61
+ }
62
+ .is-horizontal {
63
+ display: none;
64
+ }
65
+ a {
66
+ display: inline-block;
67
+ width: 100%;
68
+ overflow: hidden;
69
+ }
70
+ .svg-icon {
71
+ margin-right: 16px;
72
+ }
73
+ .el-menu {
74
+ border: none;
75
+ height: 100%;
76
+ width: 100% !important;
77
+ background-color: #333;
78
+ color:#eee
79
+ }
80
+
81
+ .is-active > .el-submenu__title{
82
+ color: #eee!important;
83
+ }
84
+ }
85
+ .hideSidebar {
86
+ .sidebar-container {
87
+ width: 54px !important;
88
+ }
89
+ .main-container {
90
+ margin-left: 54px;
91
+ }
92
+ .submenu-title-noDropdown {
93
+ padding-left: 20px !important;
94
+ position: relative;
95
+ .el-tooltip {
96
+ padding: 0 20px !important;
97
+ }
98
+ }
99
+ .el-submenu {
100
+ overflow: hidden;
101
+ &>.el-submenu__title {
102
+ padding-left: 20px !important;
103
+ .el-submenu__icon-arrow {
104
+ display: none;
105
+ }
106
+ }
107
+ }
108
+ .el-menu--collapse {
109
+ .el-submenu {
110
+ &>.el-submenu__title {
111
+ &>span {
112
+ height: 0;
113
+ width: 0;
114
+ overflow: hidden;
115
+ visibility: hidden;
116
+ display: inline-block;
117
+ }
118
+ }
119
+ }
120
+ }
121
+ }
122
+ .sidebar-container .nest-menu .el-submenu>.el-submenu__title,
123
+ .sidebar-container .el-submenu .el-menu-item {
124
+ min-width: 224px !important;
125
+ background-color: $subMenuBgBlack !important;
126
+ &:hover {
127
+ background-color: $menuHoverBlack !important;
128
+ }
129
+ }
130
+ .el-menu--collapse .el-menu .el-submenu {
131
+ min-width: 224px !important;
132
+ }
133
+ .sidebar-container .el-menu-item, .sidebar-container .el-submenu__title{
134
+ color: #eee
135
+ }
136
+ .sidebar-container .el-menu-item:hover,.sidebar-container .el-submenu:hover {
137
+ background-color: $menuHoverBlack !important;
138
+ color: #ccc
139
+ }
140
+
141
+ .sidebar-container .el-menu .menu-wrapper .is-active,.sidebar-container .el-submenu .el-menu .is-active {
142
+ background-color: #636363 !important;
143
+ color:#409EFF
144
+ }
145
+
146
+ .sidebar-container .el-menu .menu-wrapper .is-opened,.sidebar-container .el-submenu .el-menu .is-opened {
147
+ background-color: $subMenuBgBlack !important;
148
+ color: #eee
149
+ }
150
+
151
+ .sidebar-container .el-submenu__title:focus,
152
+ .sidebar-container .el-submenu__title:hover,
153
+ .sidebar-container .el-menu-item:focus,
154
+ .sidebar-container .el-menu-item:hover {
155
+ background-color: $menuHoverBlack
156
+ }
157
+
158
+ //适配移动端
159
+ .mobile {
160
+ .main-container {
161
+ margin-left: 0px;
162
+ }
163
+ .sidebar-container {
164
+ transition: transform .28s;
165
+ width: 224px !important;
166
+ }
167
+ &.hideSidebar {
168
+ .sidebar-container {
169
+ transition-duration: 0.3s;
170
+ transform: translate3d(-224px, 0, 0);
171
+ }
172
+ }
173
+ }
174
+ .withoutAnimation {
175
+ .main-container,
176
+ .sidebar-container {
177
+ transition: none;
178
+ }
179
+ }
180
+ }
181
+
182
+ .el-menu--vertical{
183
+ & >.el-menu{
184
+ .svg-icon{
185
+ margin-right: 16px;
186
+ }
187
+ }
188
+ }
189
+ }
@@ -0,0 +1,46 @@
1
+ .gray {
2
+
3
+ .list-file {
4
+ color: rgba(0, 13, 31, 0.45);
5
+ font-size: 14px;
6
+ cursor: pointer;
7
+ }
8
+
9
+ .page-layout__title {
10
+ width: 46px;
11
+ height: 16px;
12
+ font-size: 11px;
13
+ font-weight: 500;
14
+ color: #333333;
15
+ line-height: 13px;
16
+ }
17
+
18
+ .component-type-name__title {
19
+ width: 40px;
20
+ height: 14px;
21
+ font-size: 10px;
22
+ font-weight: 500;
23
+ color: #333333;
24
+ line-height: 12px;
25
+ // -webkit-background-clip: text;
26
+ // -webkit-text-fill-color: transparent;
27
+ }
28
+
29
+ .page-layout__title::before {
30
+ content: "";
31
+ text-align: center;
32
+ background: #1A6BF3;
33
+ float: left;
34
+ position: relative;
35
+ border-radius: 3px;
36
+ /** 定义成 block 元素 **/
37
+ display: block;
38
+ // height: 21px;
39
+ // width: 4px;
40
+ margin-right: 12px;
41
+
42
+ width: 2px;
43
+ height: 16px;
44
+
45
+ }
46
+ }
@@ -0,0 +1,172 @@
1
+ @import './sidebar.scss';
2
+ @import './font-style.scss';
3
+
4
+ .blue .el-dialog__header {
5
+ padding: 10px 10px 10px;
6
+ }
7
+
8
+ .blue .el-dialog__body {
9
+ padding: 10px 10px;
10
+ }
11
+
12
+ .blue {
13
+ height: 100%;
14
+ -moz-osx-font-smoothing: grayscale;
15
+ -webkit-font-smoothing: antialiased;
16
+ text-rendering: optimizeLegibility;
17
+ font-family: SourceHanSansCN-Regular, SourceHanSansCN, Arial, sans-serif;
18
+ font-size: 14px;
19
+ color: #4A4A4A;
20
+
21
+ .fl {
22
+ float: left;
23
+ }
24
+
25
+ .fr {
26
+ float: right;
27
+ }
28
+
29
+
30
+ html {
31
+ height: 100%;
32
+ box-sizing: border-box;
33
+ }
34
+
35
+ #app {
36
+ height: 100%;
37
+ }
38
+
39
+ a,
40
+ a:focus,
41
+ a:hover {
42
+ cursor: pointer;
43
+ color: inherit;
44
+ outline: none;
45
+ text-decoration: none;
46
+ }
47
+
48
+ div:focus {
49
+ outline: none;
50
+ }
51
+
52
+ a:focus,
53
+ a:active {
54
+ outline: none;
55
+ }
56
+
57
+ a,
58
+ a:focus,
59
+ a:hover {
60
+ cursor: pointer;
61
+ color: inherit;
62
+ text-decoration: none;
63
+ }
64
+
65
+ .clearfix {
66
+ &:after {
67
+ visibility: hidden;
68
+ display: block;
69
+ font-size: 0;
70
+ content: " ";
71
+ clear: both;
72
+ height: 0;
73
+ }
74
+ }
75
+
76
+ //main-container全局样式
77
+ .app-main {
78
+ min-height: 100%
79
+ }
80
+
81
+ .app-container {
82
+ padding: 20px;
83
+ border-radius: 6px;
84
+ box-shadow: 0px 1px 8px 0px #00000019;
85
+ }
86
+
87
+ .operation-area {
88
+ margin-bottom: 10px;
89
+ height: 40px;
90
+ }
91
+ .operation-area-chart {
92
+ float: right;
93
+ padding-right: 24px;
94
+ padding-top: 10px;
95
+ }
96
+
97
+
98
+ // 解决tab页签中内容多时没有滚动条问题
99
+ .el-tabs__content {
100
+ flex-grow: 1;
101
+ overflow-y: auto;
102
+ }
103
+
104
+ // 解决在edge浏览器中dialog有遮罩层 或 MessageBox的$confirm时,遮罩层偏移,导致弹框中组件元素无法操作问题。
105
+ // .el-dialog__wrapper、.el-message-box__wrapper、.v-modal默认position是relative,改为absolute就不会出现偏移了。
106
+ // dialog弹框的样式
107
+ .el-dialog__wrapper {
108
+ position: absolute;
109
+ }
110
+
111
+ // MessageBox的样式,必须这样修改,否则会导致点击确定、取消按钮不好用
112
+ .el-message-box__wrapper {
113
+ position: absolute;
114
+ }
115
+
116
+ // dialog遮罩层的样式
117
+ .v-modal {
118
+ position: absolute;
119
+ }
120
+
121
+ .el-tree-node.is-current>.el-tree-node__content {
122
+ background-color: #c2d6ea !important;
123
+ }
124
+
125
+ .el-pagination {
126
+ background: #fff;
127
+ text-align: center;
128
+ padding: 5px 0;
129
+ color: #777;
130
+ }
131
+
132
+ .el-pager li.active {
133
+ color: #4A4A4A;
134
+ background: #FBE997;
135
+ border-radius: 50px;
136
+ }
137
+
138
+ .el-table td,
139
+ .el-table th {
140
+ padding: 10px 0;
141
+ min-width: 0;
142
+ -webkit-box-sizing: border-box;
143
+ box-sizing: border-box;
144
+ text-overflow: ellipsis;
145
+ vertical-align: middle;
146
+ position: relative;
147
+ text-align: left
148
+ }
149
+
150
+ .el-table--enable-row-hover .el-table__body tr:hover>td {
151
+ background-color: #FFF3CB
152
+ }
153
+
154
+ .el-table--striped .el-table__body tr.el-table__row--striped.current-row td,
155
+ .el-table__body tr.current-row>td,
156
+ .el-table__body tr.hover-row.current-row>td,
157
+ .el-table__body tr.hover-row.el-table__row--striped.current-row>td,
158
+ .el-table__body tr.hover-row.el-table__row--striped>td,
159
+ .el-table__body tr.hover-row>td {
160
+ background-color: #FFF3CB
161
+ }
162
+
163
+ .el-table th {
164
+ background-color: #eee;
165
+ color: #555
166
+ }
167
+
168
+ // 列表表头整个都有背景色
169
+ .el-table .el-table__header-wrapper {
170
+ background: #eee;
171
+ }
172
+ }