renusify 1.4.2 → 1.4.4

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 (53) hide show
  1. package/components/app/index.vue +1 -10
  2. package/components/chart/worldMap.vue +293 -34
  3. package/components/chip/style.scss +0 -1
  4. package/components/codeEditor/highlightCss.vue +10 -112
  5. package/components/codeEditor/highlightHtml.vue +20 -159
  6. package/components/codeEditor/highlightJs.vue +14 -243
  7. package/components/codeEditor/index.vue +37 -57
  8. package/components/codeEditor/mixin.js +186 -0
  9. package/components/cropper/index.vue +2 -1
  10. package/components/form/camInput.vue +6 -2
  11. package/components/form/input.vue +1 -1
  12. package/components/form/json/index.vue +113 -65
  13. package/components/form/mask-input.vue +2 -2
  14. package/components/form/text-area.vue +1 -1
  15. package/components/form/text-editor/index.vue +0 -1
  16. package/components/form/timepicker/index.vue +18 -16
  17. package/components/form/unit-input.vue +1 -0
  18. package/components/formCreator/index.vue +7 -20
  19. package/components/img/index.vue +18 -18
  20. package/components/index.js +2 -2
  21. package/components/infinite/index.vue +9 -6
  22. package/components/map/index.vue +52 -20
  23. package/components/map/leaflet.css +511 -397
  24. package/components/map/route.vue +570 -560
  25. package/components/map/select.vue +64 -48
  26. package/components/message/index.vue +22 -21
  27. package/components/modal/index.vue +76 -17
  28. package/components/modal/style.scss +21 -16
  29. package/components/{app/notify → notify}/index.vue +21 -29
  30. package/components/{app/notify → notify}/notification.vue +10 -10
  31. package/components/notify/notify.js +27 -0
  32. package/components/searchBox/index.vue +30 -12
  33. package/components/slider/index.vue +16 -12
  34. package/components/table/index.vue +378 -379
  35. package/components/table/style.scss +1 -4
  36. package/components/tabs/index.vue +9 -23
  37. package/components/timeAgo/index.vue +4 -1
  38. package/components/tour/index.vue +237 -222
  39. package/components/tree/index.vue +135 -136
  40. package/components/tree/tree-element.vue +17 -3
  41. package/directive/drag/index.js +5 -5
  42. package/directive/index.js +1 -2
  43. package/directive/mask/index.js +1 -4
  44. package/directive/skeleton/index.js +27 -0
  45. package/directive/skeleton/style.scss +37 -0
  46. package/directive/sortable/index.js +3 -3
  47. package/directive/title/index.js +2 -3
  48. package/directive/touch/index.js +2 -4
  49. package/index.js +14 -9
  50. package/package.json +1 -1
  51. package/style/transitions.scss +6 -116
  52. package/tools/helper.js +1 -22
  53. package/components/app/notify/notify.js +0 -28
@@ -145,58 +145,6 @@
145
145
  }
146
146
  }
147
147
 
148
- .slide-start-full {
149
- &-enter-active {
150
- transition: all .3s ease-in-out;
151
- }
152
-
153
- &-leave-active {
154
- transition: all .3s ease-in-out;
155
- }
156
-
157
- &-enter-from, &-leave-to {
158
- @include rtl() {
159
- transform: translateX(-100%);
160
- }
161
- @include ltr() {
162
- transform: translateX(100%);
163
- }
164
-
165
- opacity: 0;
166
- }
167
-
168
- &-move {
169
- transition: transform .7s ease-in-out;
170
- }
171
- }
172
-
173
- .slide-end-full {
174
- &-enter-active {
175
- max-width: 100%;
176
- transition: all .3s ease-in-out;
177
- }
178
-
179
- &-leave-active {
180
- max-width: 100%;
181
- transition: all .3s ease-in-out;
182
- }
183
-
184
- &-enter-from, &-leave-to {
185
- @include rtl() {
186
- transform: translateX(100%);
187
- }
188
- @include ltr() {
189
- transform: translateX(-100%);
190
- }
191
-
192
- opacity: 0;
193
- }
194
-
195
- &-move {
196
- transition: transform .7s ease-in-out;
197
- }
198
- }
199
-
200
148
  .slide-start {
201
149
  &-enter-active {
202
150
  transition: all .3s ease-in-out;
@@ -208,10 +156,10 @@
208
156
 
209
157
  &-enter-from, &-leave-to {
210
158
  @include rtl() {
211
- transform: translateX(-30px);
159
+ transform: translateX(-60%);
212
160
  }
213
161
  @include ltr() {
214
- transform: translateX(30px);
162
+ transform: translateX(60%);
215
163
  }
216
164
 
217
165
  opacity: 0;
@@ -235,10 +183,10 @@
235
183
 
236
184
  &-enter-from, &-leave-to {
237
185
  @include rtl() {
238
- transform: translateX(30px);
186
+ transform: translateX(60%);
239
187
  }
240
188
  @include ltr() {
241
- transform: translateX(-30px);
189
+ transform: translateX(-60%);
242
190
  }
243
191
 
244
192
  opacity: 0;
@@ -259,7 +207,7 @@
259
207
  }
260
208
 
261
209
  &-enter-from, &-leave-to {
262
- transform: translateY(20px);
210
+ transform: translateY(60%);
263
211
  opacity: 0;
264
212
  }
265
213
 
@@ -278,7 +226,7 @@
278
226
  }
279
227
 
280
228
  &-enter-from, &-leave-to {
281
- transform: translateY(-20px);
229
+ transform: translateY(-60%);
282
230
  opacity: 0;
283
231
  }
284
232
 
@@ -305,61 +253,3 @@
305
253
  transition: transform .7s ease;
306
254
  }
307
255
  }
308
-
309
-
310
- .page-slide-right {
311
- &-enter-active, &-leave-active {
312
- min-width: 100vw;
313
- max-width: 100vw;
314
- transition: all .5s ease-in-out;
315
- z-index: 10;
316
- }
317
-
318
- &-enter-to {
319
- position: absolute;
320
- right: 0;
321
- }
322
-
323
- &-enter-from {
324
- position: absolute;
325
- right: -100%;
326
- }
327
-
328
- &-leave-to {
329
- position: absolute;
330
- left: -100%;
331
- }
332
-
333
- &-leave-from {
334
- position: absolute;
335
- left: 0;
336
- }
337
- }
338
- .page-slide-left {
339
- &-enter-active, &-leave-active {
340
- min-width: 100vw;
341
- max-width: 100vw;
342
- transition: all .5s ease-in-out;
343
- z-index: 10;
344
- }
345
-
346
- &-enter-to {
347
- position: absolute;
348
- left: 0;
349
- }
350
-
351
- &-enter-from {
352
- position: absolute;
353
- left: -100%;
354
- }
355
-
356
- &-leave-to {
357
- position: absolute;
358
- right: -100%;
359
- }
360
-
361
- &-leave-from {
362
- position: absolute;
363
- right: 0;
364
- }
365
- }
package/tools/helper.js CHANGED
@@ -121,10 +121,6 @@ export function isArray(input) {
121
121
  return input instanceof Array || Object.prototype.toString.call(input) === '[object Array]';
122
122
  }
123
123
 
124
- export function keys(o) {
125
- return Object.keys(o);
126
- }
127
-
128
124
  export function searchArray(arr, key, value) {
129
125
  if (!arr) {
130
126
  return false
@@ -186,18 +182,6 @@ export function cleanArray(actual) {
186
182
  return newArray;
187
183
  }
188
184
 
189
- export function highlightSetup(text, highlight) {
190
- if (typeof text !== 'string' || typeof highlight !== 'string') {
191
- return text;
192
- }
193
- highlight = highlight.trim();
194
- if (highlight.length === 0) {
195
- return text;
196
- }
197
- let keywords = cleanArray(highlight.split(' '));
198
- keywords = keywords.join('|');
199
- return text.replace(new RegExp(keywords, 'gi'), '<span class="color-warning-text">$&</span>');
200
- }
201
185
 
202
186
  export function htmlEncode(str) {
203
187
  return str.replace(/[\u00A0-\u9999<>]/gim, function (i) {
@@ -262,12 +246,7 @@ export function base64decode(str) {
262
246
  }
263
247
 
264
248
  export function size(obj) {
265
- let size = 0;
266
- let key;
267
- for (key in obj) {
268
- if (hasKey(obj, key)) size++;
269
- }
270
- return size;
249
+ return Object.keys(obj).length;
271
250
  }
272
251
 
273
252
  export function log(txt, type = 'log', on = 'development') {
@@ -1,28 +0,0 @@
1
- class Notify {
2
- constructor () {
3
- this._config = {
4
- handler: (msg) => {
5
- },
6
- bus: 'renusifyBus',
7
- event: 'notify'
8
- };
9
- }
10
-
11
- show (message) {
12
- const config = this._config;
13
- setTimeout(() => {
14
- window[config.bus].emit(config.event, message);
15
- }, 100);
16
- }
17
-
18
- hide () {
19
- const config = this._config;
20
- window[config.bus].emit('hide-' + config.event);
21
- }
22
-
23
- listener () {
24
- window[this._config.bus].on(this._config.event, this._config.handler);
25
- }
26
- }
27
-
28
- export default new Notify();