@ajaxjs/ui 1.1.2 → 1.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 (84) hide show
  1. package/README.md +4 -24
  2. package/dist/css/app.11ca79dd.css +1 -0
  3. package/dist/index.d.ts +31 -0
  4. package/dist/index.html +1 -0
  5. package/dist/index.js +56 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/js/app.44da9bce.js +2 -0
  8. package/dist/js/app.44da9bce.js.map +1 -0
  9. package/dist/js/chunk-vendors.0d9e9c3a.js +8 -0
  10. package/dist/js/chunk-vendors.0d9e9c3a.js.map +1 -0
  11. package/dist/main.d.ts +1 -0
  12. package/dist/main.js +14 -9
  13. package/dist/main.js.map +1 -1
  14. package/dist/router/index.d.ts +3 -0
  15. package/dist/router/index.js +36 -28
  16. package/dist/router/index.js.map +1 -1
  17. package/dist/shims-vue.d.ts +4 -0
  18. package/dist/util/cookies.d.ts +18 -0
  19. package/dist/util/cookies.js +46 -0
  20. package/dist/util/cookies.js.map +1 -0
  21. package/dist/util/dom.d.ts +17 -0
  22. package/dist/util/dom.js +44 -0
  23. package/dist/util/dom.js.map +1 -0
  24. package/dist/util/system/config.d.ts +13 -0
  25. package/dist/util/system/config.js +84 -0
  26. package/dist/util/system/config.js.map +1 -0
  27. package/dist/util/utils.d.ts +44 -0
  28. package/dist/util/utils.js +140 -0
  29. package/dist/util/utils.js.map +1 -0
  30. package/dist/util/xhr-config.d.ts +22 -0
  31. package/dist/util/xhr-config.js +3 -0
  32. package/dist/util/xhr-config.js.map +1 -0
  33. package/dist/util/xhr.d.ts +71 -0
  34. package/dist/util/xhr.js +262 -0
  35. package/dist/util/xhr.js.map +1 -0
  36. package/dist/{components/widgets → widget}/AccordionMenu.vue +139 -137
  37. package/dist/{components/widgets → widget}/AdjustFontSize.vue +65 -65
  38. package/dist/{components/widgets → widget}/Article.vue +58 -48
  39. package/dist/{components/widgets → widget}/BaiduSearch.vue +49 -49
  40. package/dist/widget/EmptyContent.d.ts +5 -0
  41. package/dist/widget/EmptyContent.js +7 -0
  42. package/dist/widget/EmptyContent.js.map +1 -0
  43. package/dist/{components/widgets → widget}/Expander.vue +64 -64
  44. package/dist/widget/FileUploader/FileUploader.d.ts +70 -0
  45. package/dist/{components/form → widget}/FileUploader/FileUploader.js +40 -5
  46. package/dist/widget/FileUploader/FileUploader.js.map +1 -0
  47. package/dist/{components/form → widget}/FileUploader/FileUploader.less +67 -54
  48. package/dist/{components/form → widget}/FileUploader/FileUploader.ts +155 -120
  49. package/dist/widget/FileUploader/FileUploader.vue +43 -0
  50. package/dist/widget/HtmlEditor/HtmlEditor.d.ts +70 -0
  51. package/dist/{components/form → widget}/HtmlEditor/HtmlEditor.js +10 -7
  52. package/dist/widget/HtmlEditor/HtmlEditor.js.map +1 -0
  53. package/dist/{components/form → widget}/HtmlEditor/HtmlEditor.less +344 -344
  54. package/dist/{components/form → widget}/HtmlEditor/HtmlEditor.ts +338 -336
  55. package/dist/{components/form → widget}/HtmlEditor/HtmlEditor.vue +69 -69
  56. package/dist/{components/form → widget}/HtmlEditor/html-editor-HtmlSanitizer.js +102 -102
  57. package/dist/{components/widgets → widget}/ImageEnlarger.vue +104 -98
  58. package/dist/{components/widgets → widget}/OpacityBanner.vue +124 -123
  59. package/dist/{components/widgets → widget}/ProcessLine.vue +132 -132
  60. package/dist/widget/Resize.d.ts +51 -0
  61. package/dist/widget/Resize.js +133 -0
  62. package/dist/widget/Resize.js.map +1 -0
  63. package/dist/widget/Resize.ts +152 -0
  64. package/dist/widget/Resize.vue +104 -0
  65. package/dist/widget/TreeSelector.vue +4 -0
  66. package/dist/widget/calendar/BetweenDate.vue +63 -0
  67. package/dist/widget/calendar/Calendar.d.ts +55 -0
  68. package/dist/widget/calendar/Calendar.js +145 -0
  69. package/dist/widget/calendar/Calendar.js.map +1 -0
  70. package/dist/widget/calendar/Calendar.less +208 -0
  71. package/dist/widget/calendar/Calendar.ts +167 -0
  72. package/dist/widget/calendar/Calendar.vue +52 -0
  73. package/dist/widget/calendar/CalendarInput.vue +71 -0
  74. package/dist/widget/form/validator.d.ts +72 -0
  75. package/dist/widget/form/validator.js +222 -0
  76. package/dist/widget/form/validator.js.map +1 -0
  77. package/dist/widget/form/validator.ts +290 -0
  78. package/dist/widget/play-ground/sku.vue +93 -0
  79. package/package.json +36 -33
  80. package/dist/components/form/AjSelect.vue +0 -33
  81. package/dist/components/form/FileUploader/FileUploader.js.map +0 -1
  82. package/dist/components/form/FileUploader/FileUploader.vue +0 -26
  83. package/dist/components/form/HtmlEditor/HtmlEditor.js.map +0 -1
  84. package/dist/components/form/TreeLikeSelect.vue +0 -125
@@ -1,345 +1,345 @@
1
- .aj-form-html-editor {
2
- ul.toolbar {
3
- border : 1px solid #C5C5C5;
4
- border-radius : 4px 4px 0 0;
5
- border-bottom : 0;
6
- background-color: #E8E7E4;
7
- width : 100%;
8
- min-height : 30px;
9
- margin : 0;
10
- box-sizing : border-box;
11
- padding : 3px 4px;
12
-
13
- &>li {
14
- list-style: none;
15
- float : left;
16
- cursor : pointer;
17
-
18
- &>i {
19
- border : 1px solid transparent;
20
- min-width : 25px;
21
- height : 20px;
22
- line-height: 20px;
23
- text-align : center;
24
- display : block;
25
-
26
- &.text-icon{
27
- font-family:Times New Roman;font-weight: bold;font-style: normal;
28
- }
29
-
30
- &.fontAwesome{
31
- padding-top: 2px;
32
- font : normal normal normal 18px/1 FontAwesome;
33
- }
34
-
35
- &:hover {
36
- border-right-color : #aaa;
37
- border-bottom-color: #aaa;
38
- border-top-color : #fff;
39
- border-left-color : #fff;
40
- }
41
-
42
- &:active {
43
- border-right-color : #f3f8fc;
44
- border-bottom-color: #f3f8fc;
45
- border-top-color : #ccc;
46
- border-left-color : #ccc;
47
- }
48
- }
49
-
50
- ul li {
51
- padding: 3px;
52
- cursor : pointer;
53
-
54
- &:hover {
55
- background-color: lightgray;
56
- }
57
- }
58
-
59
- .cleanHTML {
60
- background-size: 16px 16px;
61
- }
62
-
63
- .noBg {
64
- background-image: none;
65
- }
66
- }
67
- }
68
-
69
- .editorBody {
70
- iframe,
71
- textarea {
72
- border : 1px solid #C5C5C5;
73
- border-radius : 0 0 4px 4px;
74
- border-top-width: 0;
75
- box-sizing : border-box;
76
- background-color: white;
77
- min-height : 300px;
78
- width : 100%;
79
- }
80
-
81
- iframe.hide{
82
- display: none;
83
- }
84
- textarea {
85
- resize: none;
86
- display: none;
87
- &.show{
88
- display: block;
89
- }
90
- }
91
- }
92
-
93
- .colorPicker {
94
- width : 210px;
95
- border : 1px solid #D3D3D3;
96
- position: absolute;
97
-
98
- table {
99
- border-collapse: collapse;
100
- }
101
-
102
- .colorhead {
103
- height : 23px;
104
- line-height: 23px;
105
- font-weight: bold;
106
- width : 100%;
107
- }
108
-
109
- .colortitle {
110
- margin-left: 6px;
111
- font-size : 12px;
112
- }
113
-
114
- .colorpanel td {
115
- border : 1px solid #000;
116
- height : 10px;
117
- width : 10px;
118
- overflow : hidden;
119
- font-size: 1px;
120
- cursor : pointer;
121
- }
122
- }
123
-
124
- // 字体演示
125
- .fontfamilyChoser,
126
- .fontsizeChoser {
127
- a {
128
- padding-right : 2px;
129
- display : block;
130
- padding-left : 2px;
131
- padding-bottom : 2px;
132
- color : #000;
133
- line-height : 120%;
134
- padding-top : 2px;
135
- text-decoration: none;
136
-
137
- &:hover {
138
- background: #e5e5e5
139
- }
140
- }
141
- }
142
-
143
- // 登录面板 和忘记密码
144
- .dorpdown {
145
- position: relative;
146
-
147
- &:hover .fontfamilyChoser,
148
- .fontfamilyChoser:hover,
149
- &:hover .fontsizeChoser,
150
- .fontsizeChoser:hover,
151
- &:hover .colorPicker,
152
- .colorPicker:hover {
153
- display: block;
154
- }
155
-
156
- &>div {
157
- display : none;
158
- position : absolute;
159
- top : 22px;
160
- left : 0;
161
- background-color: #f5f5f5;
162
- border : 1px solid lightgray;
163
- border-top : 0;
164
- padding : 5px;
165
- width : 230px;
166
- }
167
-
168
- .fontsizeChoser {
169
- top : inherit;
170
- right: 0;
171
- }
172
- }
173
- }.aj-form-html-editor {
174
- ul.toolbar {
175
- border : 1px solid #C5C5C5;
176
- border-radius : 4px 4px 0 0;
177
- border-bottom : 0;
178
- background-color: #E8E7E4;
179
- width : 100%;
180
- min-height : 30px;
181
- margin : 0;
182
- box-sizing : border-box;
183
- padding : 3px 4px;
184
-
185
- &>li {
186
- list-style: none;
187
- float : left;
188
- cursor : pointer;
189
-
190
- &>i {
191
- border : 1px solid transparent;
192
- min-width : 25px;
193
- height : 20px;
194
- line-height: 20px;
195
- text-align : center;
196
- display : block;
197
-
198
- &.text-icon{
199
- font-family:Times New Roman;font-weight: bold;font-style: normal;
200
- }
201
-
202
- &.fontAwesome{
203
- padding-top: 2px;
204
- font : normal normal normal 18px/1 FontAwesome;
205
- }
206
-
207
- &:hover {
208
- border-right-color : #aaa;
209
- border-bottom-color: #aaa;
210
- border-top-color : #fff;
211
- border-left-color : #fff;
212
- }
213
-
214
- &:active {
215
- border-right-color : #f3f8fc;
216
- border-bottom-color: #f3f8fc;
217
- border-top-color : #ccc;
218
- border-left-color : #ccc;
219
- }
220
- }
221
-
222
- ul li {
223
- padding: 3px;
224
- cursor : pointer;
225
-
226
- &:hover {
227
- background-color: lightgray;
228
- }
229
- }
230
-
231
- .cleanHTML {
232
- background-size: 16px 16px;
233
- }
234
-
235
- .noBg {
236
- background-image: none;
237
- }
238
- }
239
- }
240
-
241
- .editorBody {
242
- iframe,
243
- textarea {
244
- border : 1px solid #C5C5C5;
245
- border-radius : 0 0 4px 4px;
246
- border-top-width: 0;
247
- box-sizing : border-box;
248
- background-color: white;
249
- min-height : 300px;
250
- width : 100%;
251
- }
252
-
253
- iframe.hide{
254
- display: none;
255
- }
256
- textarea {
257
- resize: none;
258
- display: none;
259
- &.show{
260
- display: block;
261
- }
262
- }
263
- }
264
-
265
- .colorPicker {
266
- width : 210px;
267
- border : 1px solid #D3D3D3;
268
- position: absolute;
269
-
270
- table {
271
- border-collapse: collapse;
272
- }
273
-
274
- .colorhead {
275
- height : 23px;
276
- line-height: 23px;
277
- font-weight: bold;
278
- width : 100%;
279
- }
280
-
281
- .colortitle {
282
- margin-left: 6px;
283
- font-size : 12px;
284
- }
285
-
286
- .colorpanel td {
287
- border : 1px solid #000;
288
- height : 10px;
289
- width : 10px;
290
- overflow : hidden;
291
- font-size: 1px;
292
- cursor : pointer;
293
- }
294
- }
295
-
296
- // 字体演示
297
- .fontfamilyChoser,
298
- .fontsizeChoser {
299
- a {
300
- padding-right : 2px;
301
- display : block;
302
- padding-left : 2px;
303
- padding-bottom : 2px;
304
- color : #000;
305
- line-height : 120%;
306
- padding-top : 2px;
307
- text-decoration: none;
308
-
309
- &:hover {
310
- background: #e5e5e5
311
- }
312
- }
313
- }
314
-
315
- // 登录面板 和忘记密码
316
- .dorpdown {
317
- position: relative;
318
-
319
- &:hover .fontfamilyChoser,
320
- .fontfamilyChoser:hover,
321
- &:hover .fontsizeChoser,
322
- .fontsizeChoser:hover,
323
- &:hover .colorPicker,
324
- .colorPicker:hover {
325
- display: block;
326
- }
327
-
328
- &>div {
329
- display : none;
330
- position : absolute;
331
- top : 22px;
332
- left : 0;
333
- background-color: #f5f5f5;
334
- border : 1px solid lightgray;
335
- border-top : 0;
336
- padding : 5px;
337
- width : 230px;
338
- }
339
-
340
- .fontsizeChoser {
341
- top : inherit;
342
- right: 0;
343
- }
344
- }
1
+ .aj-form-html-editor {
2
+ ul.toolbar {
3
+ border : 1px solid #C5C5C5;
4
+ border-radius : 4px 4px 0 0;
5
+ border-bottom : 0;
6
+ background-color: #E8E7E4;
7
+ width : 100%;
8
+ min-height : 30px;
9
+ margin : 0;
10
+ box-sizing : border-box;
11
+ padding : 3px 4px;
12
+
13
+ &>li {
14
+ list-style: none;
15
+ float : left;
16
+ cursor : pointer;
17
+
18
+ &>i {
19
+ border : 1px solid transparent;
20
+ min-width : 25px;
21
+ height : 20px;
22
+ line-height: 20px;
23
+ text-align : center;
24
+ display : block;
25
+
26
+ &.text-icon{
27
+ font-family:Times New Roman;font-weight: bold;font-style: normal;
28
+ }
29
+
30
+ &.fontAwesome{
31
+ padding-top: 2px;
32
+ font : normal normal normal 18px/1 FontAwesome;
33
+ }
34
+
35
+ &:hover {
36
+ border-right-color : #aaa;
37
+ border-bottom-color: #aaa;
38
+ border-top-color : #fff;
39
+ border-left-color : #fff;
40
+ }
41
+
42
+ &:active {
43
+ border-right-color : #f3f8fc;
44
+ border-bottom-color: #f3f8fc;
45
+ border-top-color : #ccc;
46
+ border-left-color : #ccc;
47
+ }
48
+ }
49
+
50
+ ul li {
51
+ padding: 3px;
52
+ cursor : pointer;
53
+
54
+ &:hover {
55
+ background-color: lightgray;
56
+ }
57
+ }
58
+
59
+ .cleanHTML {
60
+ background-size: 16px 16px;
61
+ }
62
+
63
+ .noBg {
64
+ background-image: none;
65
+ }
66
+ }
67
+ }
68
+
69
+ .editorBody {
70
+ iframe,
71
+ textarea {
72
+ border : 1px solid #C5C5C5;
73
+ border-radius : 0 0 4px 4px;
74
+ border-top-width: 0;
75
+ box-sizing : border-box;
76
+ background-color: white;
77
+ min-height : 300px;
78
+ width : 100%;
79
+ }
80
+
81
+ iframe.hide{
82
+ display: none;
83
+ }
84
+ textarea {
85
+ resize: none;
86
+ display: none;
87
+ &.show{
88
+ display: block;
89
+ }
90
+ }
91
+ }
92
+
93
+ .colorPicker {
94
+ width : 210px;
95
+ border : 1px solid #D3D3D3;
96
+ position: absolute;
97
+
98
+ table {
99
+ border-collapse: collapse;
100
+ }
101
+
102
+ .colorhead {
103
+ height : 23px;
104
+ line-height: 23px;
105
+ font-weight: bold;
106
+ width : 100%;
107
+ }
108
+
109
+ .colortitle {
110
+ margin-left: 6px;
111
+ font-size : 12px;
112
+ }
113
+
114
+ .colorpanel td {
115
+ border : 1px solid #000;
116
+ height : 10px;
117
+ width : 10px;
118
+ overflow : hidden;
119
+ font-size: 1px;
120
+ cursor : pointer;
121
+ }
122
+ }
123
+
124
+ // 字体演示
125
+ .fontfamilyChoser,
126
+ .fontsizeChoser {
127
+ a {
128
+ padding-right : 2px;
129
+ display : block;
130
+ padding-left : 2px;
131
+ padding-bottom : 2px;
132
+ color : #000;
133
+ line-height : 120%;
134
+ padding-top : 2px;
135
+ text-decoration: none;
136
+
137
+ &:hover {
138
+ background: #e5e5e5
139
+ }
140
+ }
141
+ }
142
+
143
+ // 登录面板 和忘记密码
144
+ .dorpdown {
145
+ position: relative;
146
+
147
+ &:hover .fontfamilyChoser,
148
+ .fontfamilyChoser:hover,
149
+ &:hover .fontsizeChoser,
150
+ .fontsizeChoser:hover,
151
+ &:hover .colorPicker,
152
+ .colorPicker:hover {
153
+ display: block;
154
+ }
155
+
156
+ &>div {
157
+ display : none;
158
+ position : absolute;
159
+ top : 22px;
160
+ left : 0;
161
+ background-color: #f5f5f5;
162
+ border : 1px solid lightgray;
163
+ border-top : 0;
164
+ padding : 5px;
165
+ width : 230px;
166
+ }
167
+
168
+ .fontsizeChoser {
169
+ top : inherit;
170
+ right: 0;
171
+ }
172
+ }
173
+ }.aj-form-html-editor {
174
+ ul.toolbar {
175
+ border : 1px solid #C5C5C5;
176
+ border-radius : 4px 4px 0 0;
177
+ border-bottom : 0;
178
+ background-color: #E8E7E4;
179
+ width : 100%;
180
+ min-height : 30px;
181
+ margin : 0;
182
+ box-sizing : border-box;
183
+ padding : 3px 4px;
184
+
185
+ &>li {
186
+ list-style: none;
187
+ float : left;
188
+ cursor : pointer;
189
+
190
+ &>i {
191
+ border : 1px solid transparent;
192
+ min-width : 25px;
193
+ height : 20px;
194
+ line-height: 20px;
195
+ text-align : center;
196
+ display : block;
197
+
198
+ &.text-icon{
199
+ font-family:Times New Roman;font-weight: bold;font-style: normal;
200
+ }
201
+
202
+ &.fontAwesome{
203
+ padding-top: 2px;
204
+ font : normal normal normal 18px/1 FontAwesome;
205
+ }
206
+
207
+ &:hover {
208
+ border-right-color : #aaa;
209
+ border-bottom-color: #aaa;
210
+ border-top-color : #fff;
211
+ border-left-color : #fff;
212
+ }
213
+
214
+ &:active {
215
+ border-right-color : #f3f8fc;
216
+ border-bottom-color: #f3f8fc;
217
+ border-top-color : #ccc;
218
+ border-left-color : #ccc;
219
+ }
220
+ }
221
+
222
+ ul li {
223
+ padding: 3px;
224
+ cursor : pointer;
225
+
226
+ &:hover {
227
+ background-color: lightgray;
228
+ }
229
+ }
230
+
231
+ .cleanHTML {
232
+ background-size: 16px 16px;
233
+ }
234
+
235
+ .noBg {
236
+ background-image: none;
237
+ }
238
+ }
239
+ }
240
+
241
+ .editorBody {
242
+ iframe,
243
+ textarea {
244
+ border : 1px solid #C5C5C5;
245
+ border-radius : 0 0 4px 4px;
246
+ border-top-width: 0;
247
+ box-sizing : border-box;
248
+ background-color: white;
249
+ min-height : 300px;
250
+ width : 100%;
251
+ }
252
+
253
+ iframe.hide{
254
+ display: none;
255
+ }
256
+ textarea {
257
+ resize: none;
258
+ display: none;
259
+ &.show{
260
+ display: block;
261
+ }
262
+ }
263
+ }
264
+
265
+ .colorPicker {
266
+ width : 210px;
267
+ border : 1px solid #D3D3D3;
268
+ position: absolute;
269
+
270
+ table {
271
+ border-collapse: collapse;
272
+ }
273
+
274
+ .colorhead {
275
+ height : 23px;
276
+ line-height: 23px;
277
+ font-weight: bold;
278
+ width : 100%;
279
+ }
280
+
281
+ .colortitle {
282
+ margin-left: 6px;
283
+ font-size : 12px;
284
+ }
285
+
286
+ .colorpanel td {
287
+ border : 1px solid #000;
288
+ height : 10px;
289
+ width : 10px;
290
+ overflow : hidden;
291
+ font-size: 1px;
292
+ cursor : pointer;
293
+ }
294
+ }
295
+
296
+ // 字体演示
297
+ .fontfamilyChoser,
298
+ .fontsizeChoser {
299
+ a {
300
+ padding-right : 2px;
301
+ display : block;
302
+ padding-left : 2px;
303
+ padding-bottom : 2px;
304
+ color : #000;
305
+ line-height : 120%;
306
+ padding-top : 2px;
307
+ text-decoration: none;
308
+
309
+ &:hover {
310
+ background: #e5e5e5
311
+ }
312
+ }
313
+ }
314
+
315
+ // 登录面板 和忘记密码
316
+ .dorpdown {
317
+ position: relative;
318
+
319
+ &:hover .fontfamilyChoser,
320
+ .fontfamilyChoser:hover,
321
+ &:hover .fontsizeChoser,
322
+ .fontsizeChoser:hover,
323
+ &:hover .colorPicker,
324
+ .colorPicker:hover {
325
+ display: block;
326
+ }
327
+
328
+ &>div {
329
+ display : none;
330
+ position : absolute;
331
+ top : 22px;
332
+ left : 0;
333
+ background-color: #f5f5f5;
334
+ border : 1px solid lightgray;
335
+ border-top : 0;
336
+ padding : 5px;
337
+ width : 230px;
338
+ }
339
+
340
+ .fontsizeChoser {
341
+ top : inherit;
342
+ right: 0;
343
+ }
344
+ }
345
345
  }