ep-craft 0.1.2 → 0.1.3

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 (154) hide show
  1. package/dist/components/button/EpButton.vue.d.ts +4 -4
  2. package/dist/components/button/EpButton.vue.js +19 -19
  3. package/dist/components/button/button.d.ts +2 -2
  4. package/dist/components/button/button.js +1 -1
  5. package/dist/components/button/index.d.ts +2 -1
  6. package/dist/components/button/index.js +4 -3
  7. package/dist/index.css +2 -2
  8. package/dist/resolver.js +9 -12
  9. package/package.json +4 -2
  10. package/theme-chalk/src/affix.scss +7 -0
  11. package/theme-chalk/src/alert.scss +115 -0
  12. package/theme-chalk/src/anchor-link.scss +45 -0
  13. package/theme-chalk/src/anchor.scss +93 -0
  14. package/theme-chalk/src/aside.scss +8 -0
  15. package/theme-chalk/src/autocomplete.scss +95 -0
  16. package/theme-chalk/src/avatar-group.scss +25 -0
  17. package/theme-chalk/src/avatar.scss +55 -0
  18. package/theme-chalk/src/backtop.scss +29 -0
  19. package/theme-chalk/src/badge.scss +58 -0
  20. package/theme-chalk/src/base.scss +3 -0
  21. package/theme-chalk/src/breadcrumb-item.scss +58 -0
  22. package/theme-chalk/src/breadcrumb.scss +9 -0
  23. package/theme-chalk/src/button-group.scss +133 -0
  24. package/theme-chalk/src/button.scss +325 -0
  25. package/theme-chalk/src/calendar.scss +94 -0
  26. package/theme-chalk/src/card.scss +49 -0
  27. package/theme-chalk/src/carousel-item.scss +58 -0
  28. package/theme-chalk/src/carousel.scss +195 -0
  29. package/theme-chalk/src/cascader-panel.scss +150 -0
  30. package/theme-chalk/src/cascader.scss +289 -0
  31. package/theme-chalk/src/check-tag.scss +60 -0
  32. package/theme-chalk/src/checkbox-button.scss +142 -0
  33. package/theme-chalk/src/checkbox-group.scss +7 -0
  34. package/theme-chalk/src/checkbox.scss +300 -0
  35. package/theme-chalk/src/col.scss +56 -0
  36. package/theme-chalk/src/collapse-item.scss +72 -0
  37. package/theme-chalk/src/collapse-transition.scss +1 -0
  38. package/theme-chalk/src/collapse.scss +29 -0
  39. package/theme-chalk/src/color/index.scss +20 -0
  40. package/theme-chalk/src/color-picker-panel.scss +294 -0
  41. package/theme-chalk/src/color-picker.scss +165 -0
  42. package/theme-chalk/src/common/popup.scss +47 -0
  43. package/theme-chalk/src/common/transition.scss +125 -0
  44. package/theme-chalk/src/common/var.scss +1730 -0
  45. package/theme-chalk/src/config-provider.scss +0 -0
  46. package/theme-chalk/src/container.scss +14 -0
  47. package/theme-chalk/src/dark/css-vars.scss +45 -0
  48. package/theme-chalk/src/dark/var.scss +224 -0
  49. package/theme-chalk/src/date-picker/date-picker.scss +121 -0
  50. package/theme-chalk/src/date-picker/date-range-picker.scss +165 -0
  51. package/theme-chalk/src/date-picker/date-table.scss +164 -0
  52. package/theme-chalk/src/date-picker/month-table.scss +112 -0
  53. package/theme-chalk/src/date-picker/picker-panel.scss +152 -0
  54. package/theme-chalk/src/date-picker/picker.scss +217 -0
  55. package/theme-chalk/src/date-picker/time-picker.scss +90 -0
  56. package/theme-chalk/src/date-picker/time-range-picker.scss +33 -0
  57. package/theme-chalk/src/date-picker/time-spinner.scss +115 -0
  58. package/theme-chalk/src/date-picker/utils.scss +14 -0
  59. package/theme-chalk/src/date-picker/year-table.scss +108 -0
  60. package/theme-chalk/src/date-picker-panel.scss +34 -0
  61. package/theme-chalk/src/date-picker.scss +0 -0
  62. package/theme-chalk/src/descriptions-item.scss +77 -0
  63. package/theme-chalk/src/descriptions.scss +151 -0
  64. package/theme-chalk/src/dialog.scss +207 -0
  65. package/theme-chalk/src/display.scss +12 -0
  66. package/theme-chalk/src/divider.scss +48 -0
  67. package/theme-chalk/src/drawer.scss +251 -0
  68. package/theme-chalk/src/dropdown-item.scss +0 -0
  69. package/theme-chalk/src/dropdown-menu.scss +0 -0
  70. package/theme-chalk/src/dropdown.scss +208 -0
  71. package/theme-chalk/src/empty.scss +49 -0
  72. package/theme-chalk/src/footer.scss +12 -0
  73. package/theme-chalk/src/form-item.scss +246 -0
  74. package/theme-chalk/src/form.scss +28 -0
  75. package/theme-chalk/src/header.scss +12 -0
  76. package/theme-chalk/src/icon.scss +41 -0
  77. package/theme-chalk/src/image-viewer.scss +161 -0
  78. package/theme-chalk/src/image.scss +49 -0
  79. package/theme-chalk/src/index.scss +116 -0
  80. package/theme-chalk/src/infinite-scroll.scss +0 -0
  81. package/theme-chalk/src/input-number.scss +192 -0
  82. package/theme-chalk/src/input-otp.scss +191 -0
  83. package/theme-chalk/src/input-tag.scss +249 -0
  84. package/theme-chalk/src/input.scss +541 -0
  85. package/theme-chalk/src/link.scss +90 -0
  86. package/theme-chalk/src/loading.scss +104 -0
  87. package/theme-chalk/src/main.scss +14 -0
  88. package/theme-chalk/src/mention.scss +88 -0
  89. package/theme-chalk/src/menu-item-group.scss +0 -0
  90. package/theme-chalk/src/menu-item.scss +0 -0
  91. package/theme-chalk/src/menu.scss +376 -0
  92. package/theme-chalk/src/message-box.scss +220 -0
  93. package/theme-chalk/src/message.scss +123 -0
  94. package/theme-chalk/src/mixins/_button.scss +240 -0
  95. package/theme-chalk/src/mixins/_col.scss +41 -0
  96. package/theme-chalk/src/mixins/_var.scss +67 -0
  97. package/theme-chalk/src/mixins/config.scss +5 -0
  98. package/theme-chalk/src/mixins/function.scss +99 -0
  99. package/theme-chalk/src/mixins/mixins.scss +257 -0
  100. package/theme-chalk/src/mixins/utils.scss +39 -0
  101. package/theme-chalk/src/notification.scss +109 -0
  102. package/theme-chalk/src/option-group.scss +33 -0
  103. package/theme-chalk/src/option.scss +71 -0
  104. package/theme-chalk/src/overlay.scss +17 -0
  105. package/theme-chalk/src/page-header.scss +60 -0
  106. package/theme-chalk/src/pagination.scss +235 -0
  107. package/theme-chalk/src/popconfirm.scss +17 -0
  108. package/theme-chalk/src/popover.scss +61 -0
  109. package/theme-chalk/src/popper.scss +117 -0
  110. package/theme-chalk/src/progress.scss +179 -0
  111. package/theme-chalk/src/radio-button.scss +165 -0
  112. package/theme-chalk/src/radio-group.scss +9 -0
  113. package/theme-chalk/src/radio.scss +220 -0
  114. package/theme-chalk/src/rate.scss +121 -0
  115. package/theme-chalk/src/reset.scss +99 -0
  116. package/theme-chalk/src/result.scss +57 -0
  117. package/theme-chalk/src/row.scss +34 -0
  118. package/theme-chalk/src/scrollbar.scss +97 -0
  119. package/theme-chalk/src/segmented.scss +186 -0
  120. package/theme-chalk/src/select-dropdown-v2.scss +1 -0
  121. package/theme-chalk/src/select-dropdown.scss +57 -0
  122. package/theme-chalk/src/select-v2.scss +4 -0
  123. package/theme-chalk/src/select.scss +269 -0
  124. package/theme-chalk/src/skeleton-item.scss +83 -0
  125. package/theme-chalk/src/skeleton.scss +44 -0
  126. package/theme-chalk/src/slider.scss +212 -0
  127. package/theme-chalk/src/space.scss +20 -0
  128. package/theme-chalk/src/spinner.scss +43 -0
  129. package/theme-chalk/src/splitter-panel.scss +8 -0
  130. package/theme-chalk/src/splitter.scss +148 -0
  131. package/theme-chalk/src/statistic.scss +35 -0
  132. package/theme-chalk/src/step.scss +320 -0
  133. package/theme-chalk/src/steps.scss +22 -0
  134. package/theme-chalk/src/sub-menu.scss +0 -0
  135. package/theme-chalk/src/switch.scss +294 -0
  136. package/theme-chalk/src/tab-pane.scss +0 -0
  137. package/theme-chalk/src/table-column.scss +100 -0
  138. package/theme-chalk/src/table-v2.scss +239 -0
  139. package/theme-chalk/src/table.scss +698 -0
  140. package/theme-chalk/src/tabs.scss +699 -0
  141. package/theme-chalk/src/tag.scss +195 -0
  142. package/theme-chalk/src/text.scss +51 -0
  143. package/theme-chalk/src/time-picker.scss +5 -0
  144. package/theme-chalk/src/time-select.scss +37 -0
  145. package/theme-chalk/src/timeline-item.scss +135 -0
  146. package/theme-chalk/src/timeline.scss +101 -0
  147. package/theme-chalk/src/tooltip.scss +0 -0
  148. package/theme-chalk/src/tour.scss +187 -0
  149. package/theme-chalk/src/transfer.scss +201 -0
  150. package/theme-chalk/src/tree-select.scss +41 -0
  151. package/theme-chalk/src/tree.scss +134 -0
  152. package/theme-chalk/src/upload.scss +660 -0
  153. package/theme-chalk/src/var.scss +87 -0
  154. package/theme-chalk/src/virtual-list.scss +40 -0
@@ -0,0 +1,100 @@
1
+ @use 'sass:map';
2
+
3
+ @use 'mixins/mixins' as *;
4
+ @use 'common/var' as *;
5
+
6
+ @include b(table-column) {
7
+ @include m(selection) {
8
+ .cell {
9
+ padding-left: 14px;
10
+ padding-right: 14px;
11
+ }
12
+ }
13
+ }
14
+
15
+ @include b(table-filter) {
16
+ border: solid 1px getCssVar('border-color-lighter');
17
+ border-radius: 2px;
18
+ background-color: $color-white;
19
+ box-shadow: map.get($dropdown, 'menu-box-shadow');
20
+ box-sizing: border-box;
21
+
22
+ /** used for dropdown mode */
23
+ @include e(list) {
24
+ padding: 5px 0;
25
+ margin: 0;
26
+ list-style: none;
27
+ min-width: 100px;
28
+ outline: none;
29
+ }
30
+
31
+ @include e(list-item) {
32
+ line-height: 36px;
33
+ padding: 0 10px;
34
+ cursor: pointer;
35
+ font-size: getCssVar('font-size', 'base');
36
+ outline: none;
37
+
38
+ &:hover,
39
+ &:focus {
40
+ background-color: map.get($dropdown, 'menuItem-hover-fill');
41
+ color: map.get($dropdown, 'menuItem-hover-color');
42
+ }
43
+
44
+ @include when(active) {
45
+ background-color: getCssVar('color-primary');
46
+ color: $color-white;
47
+ }
48
+ }
49
+
50
+ @include e(multiple) {
51
+ outline: none;
52
+ }
53
+
54
+ @include e(content) {
55
+ min-width: 100px;
56
+ }
57
+
58
+ @include e(bottom) {
59
+ border-top: 1px solid getCssVar('border-color-lighter');
60
+ padding: 8px;
61
+
62
+ button {
63
+ @include reset-button();
64
+
65
+ color: getCssVar('text-color', 'regular');
66
+ font-size: getCssVar('font-size-small');
67
+ padding: 0 3px;
68
+
69
+ &:hover {
70
+ color: getCssVar('color-primary');
71
+ }
72
+
73
+ &.is-disabled {
74
+ color: getCssVar('disabled-text-color');
75
+ cursor: not-allowed;
76
+ }
77
+ }
78
+ }
79
+
80
+ @include e(wrap) {
81
+ max-height: 280px;
82
+ }
83
+
84
+ @include e(checkbox-group) {
85
+ padding: 10px;
86
+
87
+ label.#{$namespace}-checkbox {
88
+ display: flex;
89
+ align-items: center;
90
+ margin-right: 5px;
91
+ margin-bottom: 12px;
92
+ margin-left: 5px;
93
+ height: unset;
94
+ }
95
+
96
+ .#{$namespace}-checkbox:last-child {
97
+ margin-bottom: 0;
98
+ }
99
+ }
100
+ }
@@ -0,0 +1,239 @@
1
+ @use 'mixins/mixins' as *;
2
+ @use 'mixins/var' as *;
3
+ @use 'common/var' as *;
4
+
5
+ @mixin center-flex() {
6
+ display: flex;
7
+ align-items: center;
8
+ }
9
+
10
+ @mixin cell-padding() {
11
+ padding: 0 8px;
12
+ }
13
+
14
+ @mixin safe-padding() {
15
+ padding-inline-end: getCssVar('table-scrollbar-size');
16
+ }
17
+
18
+ @mixin cell-alignment() {
19
+ @include when('align-center') {
20
+ justify-content: center;
21
+ text-align: center;
22
+ }
23
+
24
+ @include when('align-right') {
25
+ justify-content: flex-end;
26
+ text-align: right;
27
+ }
28
+ }
29
+
30
+ @mixin table-root() {
31
+ display: flex;
32
+ flex-direction: column-reverse;
33
+ position: absolute;
34
+ overflow: hidden;
35
+ top: 0;
36
+ background-color: getCssVar('bg', 'color');
37
+ }
38
+
39
+ @mixin hidden-scrollbar {
40
+ .#{$namespace}-virtual-scrollbar {
41
+ opacity: 0;
42
+ }
43
+
44
+ .#{$namespace}-vl__vertical,
45
+ .#{$namespace}-vl__horizontal {
46
+ z-index: -1;
47
+ }
48
+ }
49
+
50
+ @include b('table-v2') {
51
+ @include set-component-css-var('table', $table);
52
+ }
53
+
54
+ @include b('table-v2') {
55
+ font-size: getCssVar('font-size', 'base');
56
+
57
+ * {
58
+ box-sizing: border-box;
59
+ }
60
+
61
+ @include e('root') {
62
+ position: relative;
63
+
64
+ // for showing the scrollbar when mouse is on the root table
65
+ &:hover {
66
+ @include e('main') {
67
+ .#{$namespace}-virtual-scrollbar {
68
+ opacity: 1;
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ @include e('main') {
75
+ @include table-root;
76
+ left: 0;
77
+
78
+ .#{$namespace}-vl__horizontal,
79
+ .#{$namespace}-vl__vertical {
80
+ z-index: 2;
81
+ }
82
+ }
83
+
84
+ @include e('left') {
85
+ @include table-root;
86
+ left: 0;
87
+ box-shadow: 2px 0 4px 0 rgb(0 0 0 / 6%);
88
+ @include hidden-scrollbar;
89
+ }
90
+
91
+ @include e('right') {
92
+ @include table-root;
93
+ right: 0;
94
+ box-shadow: -2px 0 4px 0 rgb(0 0 0 / 6%);
95
+ @include hidden-scrollbar;
96
+
97
+ @include e('header-row') {
98
+ @include safe-padding;
99
+ }
100
+
101
+ @include e('row') {
102
+ @include safe-padding;
103
+ }
104
+ }
105
+
106
+ @include e('header-wrapper') {
107
+ overflow: hidden;
108
+ }
109
+
110
+ @include e('header') {
111
+ position: relative;
112
+ overflow: hidden;
113
+
114
+ .#{$namespace}-checkbox {
115
+ z-index: 0;
116
+ }
117
+ }
118
+
119
+ @include e('footer') {
120
+ position: absolute;
121
+ left: 0;
122
+ right: 0;
123
+ bottom: 0;
124
+ overflow: hidden;
125
+ }
126
+
127
+ @include e('empty') {
128
+ position: absolute;
129
+ left: 0;
130
+ }
131
+
132
+ @include e('overlay') {
133
+ position: absolute;
134
+ left: 0;
135
+ right: 0;
136
+ top: 0;
137
+ bottom: 0;
138
+ z-index: 9999;
139
+ }
140
+
141
+ @include e('header-row') {
142
+ display: flex;
143
+ border-bottom: getCssVar('table', 'border');
144
+
145
+ @include e('header-cell') {
146
+ height: 100%;
147
+ user-select: none;
148
+ overflow: hidden;
149
+ background-color: getCssVar('table-header', 'bg-color');
150
+ color: getCssVar('table-header', 'text-color');
151
+ font-weight: bold;
152
+ @include center-flex;
153
+ @include cell-padding;
154
+ @include cell-alignment;
155
+
156
+ @include when(sortable) {
157
+ cursor: pointer;
158
+ }
159
+
160
+ &:hover {
161
+ .#{$namespace}-icon {
162
+ display: block;
163
+ }
164
+ }
165
+ }
166
+
167
+ @include e('sort-icon') {
168
+ @include reset-button();
169
+ transition:
170
+ opacity,
171
+ display getCssVar('transition-duration', '');
172
+ opacity: 0.6;
173
+ display: none;
174
+
175
+ @include when(sorting) {
176
+ display: flex;
177
+ opacity: 1;
178
+ }
179
+ }
180
+ }
181
+
182
+ @include e('row') {
183
+ border-bottom: getCssVar('table', 'border');
184
+
185
+ @include center-flex;
186
+ transition: background-color getCssVar('transition-duration', '');
187
+
188
+ @include when('hovered') {
189
+ background-color: getCssVar('table-row', 'hover-bg-color');
190
+ }
191
+
192
+ &:hover {
193
+ background-color: getCssVar('table-row', 'hover-bg-color');
194
+ }
195
+
196
+ @include e('row-cell') {
197
+ height: 100%;
198
+ overflow: hidden;
199
+ @include center-flex;
200
+ @include cell-padding;
201
+ @include cell-alignment;
202
+ }
203
+
204
+ @include e('expand-icon') {
205
+ @include reset-button();
206
+ margin: 0 4px;
207
+ user-select: none;
208
+
209
+ svg {
210
+ transition: transform getCssVar('transition-duration', '');
211
+ }
212
+
213
+ @include when(expanded) {
214
+ svg {
215
+ transform: rotate(90deg);
216
+ }
217
+ }
218
+ }
219
+ }
220
+
221
+ &:not(.is-dynamic) {
222
+ @include e('cell-text') {
223
+ overflow: hidden;
224
+ text-overflow: ellipsis;
225
+ white-space: nowrap;
226
+ }
227
+ }
228
+
229
+ @include when(dynamic) {
230
+ @include e('row') {
231
+ overflow: hidden;
232
+ align-items: stretch;
233
+
234
+ @include e('row-cell') {
235
+ overflow-wrap: break-word;
236
+ }
237
+ }
238
+ }
239
+ }