@kizmann/nano-ui 1.1.4 → 2.0.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 (125) hide show
  1. package/README.md +4 -4
  2. package/dist/nano-ui.css +1 -1
  3. package/dist/nano-ui.esm.js +2 -0
  4. package/dist/nano-ui.esm.js.map +1 -0
  5. package/dist/themes/default.css +1 -1
  6. package/dist/themes/webservy.css +1 -1
  7. package/package.json +10 -7
  8. package/src/alert/src/alert/alert-handler.mjs +6 -6
  9. package/src/cascader/src/cascader/cascader.jsx +5 -5
  10. package/src/cascader/src/cascader-panel/cascader-panel.jsx +4 -4
  11. package/src/chart/src/chart-bar/chart-bar.jsx +3 -3
  12. package/src/chart/src/chart-donut/chart-donut.jsx +6 -6
  13. package/src/chart/src/chart-item/chart-item.jsx +3 -3
  14. package/src/checkbox/src/checkbox/checkbox.jsx +2 -2
  15. package/src/checkbox/src/checkbox-group/checkbox-group.jsx +1 -1
  16. package/src/collapse/src/collapse/collapse.jsx +2 -2
  17. package/src/collapse/src/collapse-item/collapse-item.jsx +1 -1
  18. package/src/config/index.js +6 -6
  19. package/src/config/src/builder/builder.jsx +35 -35
  20. package/src/config/src/builder/prototypes/switch/n-switch.js +3 -3
  21. package/src/config/src/config/config-next.jsx +20 -20
  22. package/src/config/src/config/config.jsx +10 -10
  23. package/src/config/src/reference-panel/reference-panel.jsx +4 -4
  24. package/src/config/src/reference-picker/reference-picker.jsx +1 -1
  25. package/src/confirm/src/confirm/confirm-handler.mjs +9 -8
  26. package/src/confirm/src/confirm/confirm.jsx +4 -4
  27. package/src/datepicker/src/datepicker-panel/datepicker-panel.jsx +16 -16
  28. package/src/datetimepicker/src/datetimepicker/datetimepicker.jsx +1 -1
  29. package/src/draggable/src/draggrid/draggrid.jsx +5 -5
  30. package/src/draggable/src/draghandler/draghandler.js +69 -75
  31. package/src/draggable/src/draglist/draglist.jsx +11 -11
  32. package/src/draggable/src/draglist-item/draglist-item.jsx +41 -38
  33. package/src/draggable/src/dropzone/dropzone.jsx +5 -5
  34. package/src/drawer/src/drawer/drawer.jsx +5 -5
  35. package/src/durationpicker/src/durationpicker/durationpicker.jsx +7 -7
  36. package/src/file/src/file/file.jsx +3 -3
  37. package/src/form/src/form/form-rules.mjs +20 -21
  38. package/src/form/src/form/form.jsx +9 -9
  39. package/src/form/src/form/form.scss +5 -3
  40. package/src/form/src/form-bag/form-bag.jsx +3 -3
  41. package/src/form/src/form-frame/form-frame.jsx +11 -11
  42. package/src/form/src/form-group/form-group.jsx +3 -3
  43. package/src/form/src/form-item/form-item.jsx +3 -3
  44. package/src/index.scss +3 -0
  45. package/src/info/src/info/info.jsx +6 -6
  46. package/src/info/src/info-column/info-column.jsx +2 -2
  47. package/src/info/src/info-field/types/info-field-boolean.jsx +2 -2
  48. package/src/info/src/info-field/types/info-field-datetime.jsx +2 -2
  49. package/src/info/src/info-field/types/info-field-option.jsx +3 -3
  50. package/src/info/src/info-field/types/info-field-string.jsx +2 -2
  51. package/src/input-number/src/input-number/input-number.jsx +7 -8
  52. package/src/loader/src/loader/loader.jsx +3 -3
  53. package/src/map/src/map/map.jsx +3 -3
  54. package/src/map/src/map-marker/map-marker.jsx +4 -4
  55. package/src/mixins/src/cmer.js +7 -7
  56. package/src/mixins/src/cslo.js +1 -1
  57. package/src/modal/src/modal/modal.jsx +5 -5
  58. package/src/notification/src/notification/notification-handler.mjs +3 -3
  59. package/src/paginator/src/paginator/paginator.jsx +3 -3
  60. package/src/popover/src/popover/popover-element.mjs +12 -12
  61. package/src/popover/src/popover/popover-handler.mjs +5 -5
  62. package/src/popover/src/popover/popover.jsx +5 -4
  63. package/src/popover/src/popover-option/popover-option.jsx +1 -1
  64. package/src/preview/src/preview/preview-handler.mjs +8 -8
  65. package/src/preview/src/preview/preview-helper.mjs +6 -6
  66. package/src/preview/src/preview/preview.jsx +3 -3
  67. package/src/preview/src/preview-image/preview-image.jsx +3 -3
  68. package/src/preview/src/preview-modal/preview-modal.jsx +3 -3
  69. package/src/preview/src/preview-plain/preview-plain.jsx +1 -1
  70. package/src/preview/src/preview-video/preview-video.jsx +2 -2
  71. package/src/radio/src/radio/radio.jsx +1 -1
  72. package/src/radio/src/radio-group/radio-group.jsx +1 -1
  73. package/src/rating/src/rating/rating.jsx +2 -2
  74. package/src/resizer/src/resizer/resizer-next.jsx +19 -19
  75. package/src/resizer/src/resizer/resizer.jsx +17 -17
  76. package/src/scrollbar/src/scrollbar/scrollbar.jsx +17 -17
  77. package/src/select/src/select/select.jsx +25 -25
  78. package/src/select/src/select-option/select-option.jsx +4 -4
  79. package/src/slider/src/slider/slider.jsx +22 -16
  80. package/src/slider/src/slider/slider.scss +6 -25
  81. package/src/switch/src/switch/switch.jsx +1 -1
  82. package/src/table/src/table/table.jsx +21 -18
  83. package/src/table/src/table-cell/types/table-cell-boolean.jsx +2 -2
  84. package/src/table/src/table-cell/types/table-cell-datetime.jsx +2 -2
  85. package/src/table/src/table-cell/types/table-cell-image.jsx +1 -1
  86. package/src/table/src/table-cell/types/table-cell-matrix.jsx +5 -5
  87. package/src/table/src/table-cell/types/table-cell-option.jsx +3 -3
  88. package/src/table/src/table-cell/types/table-cell-select.jsx +5 -5
  89. package/src/table/src/table-cell/types/table-cell-string.jsx +2 -4
  90. package/src/table/src/table-column/table-column.jsx +5 -5
  91. package/src/table/src/table-filter/table-filter.jsx +5 -5
  92. package/src/table/src/table-filter/types/table-filter-boolean.jsx +1 -1
  93. package/src/table/src/table-filter/types/table-filter-option.jsx +2 -2
  94. package/src/table/src/table-filter/types/table-filter-string.jsx +1 -1
  95. package/src/tabs/src/tabs/tabs.jsx +2 -2
  96. package/src/tags/src/tags/tags.jsx +1 -1
  97. package/src/tags/src/tags-item/tags-item.jsx +2 -2
  98. package/src/textarea/src/textarea/textarea.jsx +1 -1
  99. package/src/timepicker/src/timepicker/timepicker.jsx +4 -4
  100. package/src/timepicker/src/timepicker-panel/timepicker-panel.jsx +6 -6
  101. package/src/transfer/src/transfer/transfer.jsx +4 -4
  102. package/src/transfer/src/transfer/transfer.scss +4 -0
  103. package/src/virtualscroller/src/virtualscroller/virtualscroller.jsx +8 -5
  104. package/themes/default/datepicker/src/datepicker/datepicker.scss +1 -1
  105. package/themes/default/datepicker/src/datepicker-panel/datepicker-panel.scss +2 -2
  106. package/themes/default/datetimepicker/src/datetimepicker/datetimepicker.scss +1 -1
  107. package/themes/default/draggable/src/draglist-item/draglist-item.scss +1 -1
  108. package/themes/default/durationpicker/src/durationpicker/durationpicker.scss +1 -1
  109. package/themes/default/popover/src/popover/popover.scss +1 -1
  110. package/themes/default/preview/src/preview-modal/preview-modal.scss +1 -1
  111. package/themes/default/slider/src/slider/slider.scss +2 -3
  112. package/themes/default/timepicker/src/timepicker/timepicker.scss +1 -1
  113. package/themes/default/transfer/src/transfer/transfer.scss +1 -0
  114. package/themes/webservy/confirm/src/confirm/confirm.scss +1 -1
  115. package/themes/webservy/datepicker/src/datepicker/datepicker.scss +1 -1
  116. package/themes/webservy/datetimepicker/src/datetimepicker/datetimepicker.scss +1 -1
  117. package/themes/webservy/draggable/src/draggrid-item/draggrid-item.scss +1 -1
  118. package/themes/webservy/drawer/src/drawer/drawer.scss +1 -1
  119. package/themes/webservy/durationpicker/src/durationpicker/durationpicker.scss +1 -1
  120. package/themes/webservy/modal/src/modal/modal.scss +1 -1
  121. package/themes/webservy/preview/src/preview-modal/preview-modal.scss +1 -1
  122. package/themes/webservy/timepicker/src/timepicker/timepicker.scss +1 -1
  123. package/dist/nano-ui.js +0 -2
  124. package/dist/nano-ui.js.map +0 -1
  125. /package/src/{index.js → index.esm.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { UUID, Str, Obj, Dom, Any, Arr, Event } from "@kizmann/pico-js";
1
+ import { Run, Str, Obj, Dom, Mix, Arr, Event } from "@kizmann/pico-js";
2
2
  import PopoverElement from "./popover-element.mjs";
3
3
  import PopoverHelper from "./popover-helper.mjs";
4
4
 
@@ -12,15 +12,15 @@ export class PopoverHandler
12
12
 
13
13
  static mount()
14
14
  {
15
- Dom.find(window).on(PopoverHelper.getMouseDownEvent(), Any.throttle((e) => {
15
+ Dom.find(window).on(PopoverHelper.getMouseDownEvent(), Run.throttle((e) => {
16
16
  this.detectFadeOnCurrent(e);
17
17
  }, 30));
18
18
 
19
- Dom.find(window).on(PopoverHelper.getScrollEvent(), Any.throttle((e) => {
19
+ Dom.find(window).on(PopoverHelper.getScrollEvent(), Run.throttle((e) => {
20
20
  this.detectScrollOnCurrent(e);
21
21
  }, 30));
22
22
 
23
- Event.bind('NScrollbar:scroll', Any.throttle((e) => {
23
+ Event.bind('NScrollbar:scroll', Run.throttle((e) => {
24
24
  this.detectScrollOnCurrent(e);
25
25
  }, 30));
26
26
 
@@ -74,7 +74,7 @@ export class PopoverHandler
74
74
  {
75
75
  let current = Arr.last(this.current);
76
76
 
77
- if ( Any.isEmpty(current) ) {
77
+ if ( Mix.isEmpty(current) ) {
78
78
  return;
79
79
  }
80
80
 
@@ -1,4 +1,4 @@
1
- import { Arr, Any, Dom, Event, UUID } from "@kizmann/pico-js";
1
+ import { Arr, Mix, Dom, Event, Hash } from "@kizmann/pico-js";
2
2
 
3
3
 
4
4
  export default {
@@ -146,7 +146,7 @@ export default {
146
146
  data()
147
147
  {
148
148
  return {
149
- uid: UUID(),
149
+ uid: Hash.uuid(),
150
150
  tempValue: false,
151
151
  clientX: 0,
152
152
  clientY: 0,
@@ -171,7 +171,7 @@ export default {
171
171
 
172
172
  mounted()
173
173
  {
174
- this.target = Dom.find(this.$el).previous().get(0);
174
+ this.target = Dom.find(this.$el).prev().get(0);
175
175
 
176
176
  if ( this.trigger === 'context' ) {
177
177
  this.target = Dom.find(this.$el).parent().get(0);
@@ -187,6 +187,7 @@ export default {
187
187
  width: this.width,
188
188
  scrollClose: this.scrollClose,
189
189
  multiClose: this.multiClose,
190
+ disabled: () => this.disabled,
190
191
  };
191
192
 
192
193
  if ( this.NPopover ) {
@@ -280,7 +281,7 @@ export default {
280
281
 
281
282
  let viewBody = this.modelValue;
282
283
 
283
- if ( Any.isNull(this.modelValue) ) {
284
+ if ( Mix.isNull(this.modelValue) ) {
284
285
  viewBody = this.tempValue;
285
286
  }
286
287
 
@@ -1,4 +1,4 @@
1
- import { Obj, Arr, Any, Dom } from "@kizmann/pico-js";
1
+ import { Obj, Arr, Mix, Dom } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -1,4 +1,4 @@
1
- import { Any, Arr, Obj, Dom } from "@kizmann/pico-js";
1
+ import { Mix, Arr, Obj, Dom } from "@kizmann/pico-js";
2
2
 
3
3
  window.PreviewGroups = {};
4
4
 
@@ -33,7 +33,7 @@ export class PreviewHandler
33
33
 
34
34
  static next()
35
35
  {
36
- if ( ! Any.isObject(this.current) ) {
36
+ if ( ! Mix.isRef(this.current) ) {
37
37
  return null;
38
38
  }
39
39
 
@@ -54,7 +54,7 @@ export class PreviewHandler
54
54
 
55
55
  static prev()
56
56
  {
57
- if ( ! Any.isObject(this.current) ) {
57
+ if ( ! Mix.isRef(this.current) ) {
58
58
  return null;
59
59
  }
60
60
 
@@ -75,7 +75,7 @@ export class PreviewHandler
75
75
 
76
76
  static create()
77
77
  {
78
- el = Dom.find('.n-preview-modal');
78
+ let el = Dom.find('.n-preview-modal');
79
79
 
80
80
  if ( el.length() ) {
81
81
  return el;
@@ -88,7 +88,7 @@ export class PreviewHandler
88
88
  'n-theme--dark'
89
89
  ];
90
90
 
91
- let el = Dom.make('div', {
91
+ el = Dom.make('div', {
92
92
  classList: classList.join(' ')
93
93
  });
94
94
 
@@ -178,18 +178,18 @@ export class PreviewHandler
178
178
 
179
179
  this.switch(null);
180
180
 
181
- el.removeClass(['n-ready', 'n-multi']);
181
+ el.remClass(['n-ready', 'n-multi']);
182
182
  }
183
183
 
184
184
  static switch(item)
185
185
  {
186
- if ( Any.isObject(this.current) ) {
186
+ if ( Mix.isRef(this.current) ) {
187
187
  Obj.set(this.current, 'visible', false);
188
188
  }
189
189
 
190
190
  this.current = item;
191
191
 
192
- if ( Any.isObject(this.current) ) {
192
+ if ( Mix.isRef(this.current) ) {
193
193
  Obj.set(this.current, 'visible', true);
194
194
  }
195
195
 
@@ -1,4 +1,4 @@
1
- import { Any, Arr, Dom, Obj } from "@kizmann/pico-js";
1
+ import { Mix, Arr, Dom, Obj } from "@kizmann/pico-js";
2
2
 
3
3
  export class PreviewHelper
4
4
  {
@@ -12,7 +12,7 @@ export class PreviewHelper
12
12
  return fallback;
13
13
  }
14
14
 
15
- if ( Any.isEmpty(match[1]) ) {
15
+ if ( Mix.isEmpty(match[1]) ) {
16
16
  return fallback;
17
17
  }
18
18
 
@@ -23,7 +23,7 @@ export class PreviewHelper
23
23
  {
24
24
  let file = Obj.get(source, 'name', source);
25
25
 
26
- if ( Any.isEmpty(file) ) {
26
+ if ( Mix.isEmpty(file) ) {
27
27
  return fallback;
28
28
  }
29
29
 
@@ -48,7 +48,7 @@ export class PreviewHelper
48
48
  {
49
49
  let file = Obj.get(source, 'name', source);
50
50
 
51
- if ( Any.isEmpty(file) ) {
51
+ if ( Mix.isEmpty(file) ) {
52
52
  return fallback;
53
53
  }
54
54
 
@@ -65,7 +65,7 @@ export class PreviewHelper
65
65
 
66
66
  static getVimeoKey(source, fallback = null)
67
67
  {
68
- if ( ! Any.isString(source) ) {
68
+ if ( ! Mix.isString(source) ) {
69
69
  return fallback;
70
70
  }
71
71
 
@@ -86,7 +86,7 @@ export class PreviewHelper
86
86
 
87
87
  static getYoutubeKey(source, fallback)
88
88
  {
89
- if ( ! Any.isString(source) ) {
89
+ if ( ! Mix.isString(source) ) {
90
90
  return fallback;
91
91
  }
92
92
 
@@ -1,4 +1,4 @@
1
- import { UUID, Obj, Arr, Any, Event, Locale } from "@kizmann/pico-js";
1
+ import { Hash, Obj, Arr, Mix, Event, Locale } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -39,7 +39,7 @@ export default {
39
39
  group: {
40
40
  default()
41
41
  {
42
- return UUID();
42
+ return Hash.uuid();
43
43
  },
44
44
  type: [String]
45
45
  },
@@ -129,7 +129,7 @@ export default {
129
129
 
130
130
  renderTitle()
131
131
  {
132
- if ( Any.isEmpty(this.title) ) {
132
+ if ( Mix.isEmpty(this.title) ) {
133
133
  return null;
134
134
  }
135
135
 
@@ -1,4 +1,4 @@
1
- import { Obj, Arr, Str, Any, Dom } from "@kizmann/pico-js";
1
+ import { Obj, Arr, Run, Mix, Dom } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -58,7 +58,7 @@ export default {
58
58
 
59
59
  this.tempSrc = null;
60
60
 
61
- if ( Any.isObject(this.src) ) {
61
+ if ( Mix.isRef(this.src) ) {
62
62
  return this.resolveData();
63
63
  }
64
64
 
@@ -72,7 +72,7 @@ export default {
72
72
  /**
73
73
  * Mark image as loaded
74
74
  */
75
- Any.delay(() => this.load = false, 200);
75
+ Run.delay(() => this.load = false, 200);
76
76
  });
77
77
 
78
78
  this.laod = true;
@@ -1,4 +1,4 @@
1
- import { Any, Event, Obj, UUID } from "@kizmann/pico-js";
1
+ import { Mix, Event, Obj, Hash } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -32,7 +32,7 @@ export default {
32
32
  group: {
33
33
  default()
34
34
  {
35
- return UUID();
35
+ return Hash.uuid();
36
36
  },
37
37
  type: [String]
38
38
  },
@@ -41,7 +41,7 @@ export default {
41
41
 
42
42
  data()
43
43
  {
44
- return { uid: UUID(), visible: false };
44
+ return { uid: Hash.uuid(), visible: false };
45
45
  },
46
46
 
47
47
  computed: {
@@ -1,4 +1,4 @@
1
- import { Any, Obj, Locale } from "@kizmann/pico-js";
1
+ import { Mix, Obj, Locale } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -1,4 +1,4 @@
1
- import { Obj, Arr, Str, Any, Dom } from "@kizmann/pico-js";
1
+ import { Obj, Arr, Str, Mix, Dom } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -49,7 +49,7 @@ export default {
49
49
  return;
50
50
  }
51
51
 
52
- if ( Any.isObject(this.src) ) {
52
+ if ( Mix.isRef(this.src) ) {
53
53
  this.resolveData();
54
54
  }
55
55
 
@@ -1,4 +1,4 @@
1
- import { Arr, Obj, Any } from "@kizmann/pico-js";
1
+ import { Arr, Obj, Mix } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -1,4 +1,4 @@
1
- import { Arr, Any } from "@kizmann/pico-js";
1
+ import { Arr, Mix } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -1,4 +1,4 @@
1
- import { Num, Arr, Locale } from "@kizmann/pico-js";
1
+ import { Str, Num, Arr, Locale } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -108,7 +108,7 @@ export default {
108
108
  renderValue()
109
109
  {
110
110
  let vars = {
111
- value: Num.format(this.modelValue, '.', '', this.fixed)
111
+ value: Str.number(this.modelValue, this.fixed)
112
112
  };
113
113
 
114
114
  if ( this.$slots.default ) {
@@ -1,4 +1,4 @@
1
- import { UUID, Arr, Obj, Dom, Any, Str, Locale, Event, Num } from "@kizmann/pico-js";
1
+ import { Run, Arr, Obj, Dom, Mix, Str, Locale, Event, Num } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -178,7 +178,7 @@ export default {
178
178
 
179
179
  let now = this.$el.getBoundingClientRect();
180
180
 
181
- if ( Any.isEqual(this.last || {}, now) ) {
181
+ if ( Mix.isEqual(this.last || {}, now) ) {
182
182
  return;
183
183
  }
184
184
 
@@ -207,7 +207,7 @@ export default {
207
207
  width: this.tempValue + 'px', flex: '0 0 auto'
208
208
  };
209
209
 
210
- Dom.find(this.$el).css(style);
210
+ Dom.find(this.$el).style(style);
211
211
  },
212
212
 
213
213
  updateRemoteWidth(el)
@@ -242,7 +242,7 @@ export default {
242
242
  style.transform = `translateX(${this.tempValue - this.resizerWidth}px)`
243
243
  }
244
244
 
245
- Dom.find(this.$refs.handle).css(style);
245
+ Dom.find(this.$refs.handle).style(style);
246
246
  },
247
247
 
248
248
  getTouchEvent(event)
@@ -271,10 +271,10 @@ export default {
271
271
  Dom.find(document.body).addClass('n-move');
272
272
 
273
273
  Dom.find(document).on(this.mouseup,
274
- Any.framerate(this.onLeftMouseup, 60), this._.uid);
274
+ this.onLeftMouseup, this._.uid);
275
275
 
276
276
  Dom.find(document).on(this.mousemove,
277
- Any.framerate(this.onLeftMousemove, 60), this._.uid);
277
+ this.onLeftMousemove, this._.uid);
278
278
  },
279
279
 
280
280
  onLeftMousemove(event)
@@ -307,7 +307,7 @@ export default {
307
307
  transform: `translateX(-${targetWidth - this.resizerWidth}px)`
308
308
  };
309
309
 
310
- Dom.find(this.$refs.handle).css(style);
310
+ Dom.find(this.$refs.handle).style(style);
311
311
  },
312
312
 
313
313
  onLeftMouseup(event)
@@ -341,19 +341,19 @@ export default {
341
341
 
342
342
  this.tempValue = Math.round(targetWidth);
343
343
 
344
- Dom.find(this.$el).removeClass('n-move');
344
+ Dom.find(this.$el).remClass('n-move');
345
345
 
346
346
  let style = {
347
347
  transform: `translateX(-${targetWidth - this.resizerWidth}px)`
348
348
  };
349
349
 
350
- Dom.find(this.$refs.handle).css(style);
350
+ Dom.find(this.$refs.handle).style(style);
351
351
 
352
352
  let frameStyle = {
353
353
  width: this.tempValue + 'px', flex: '0 0 auto'
354
354
  };
355
355
 
356
- Dom.find(this.$el).css(frameStyle);
356
+ Dom.find(this.$el).style(frameStyle);
357
357
 
358
358
  delete this.clientX;
359
359
 
@@ -383,10 +383,10 @@ export default {
383
383
  Dom.find(document.body).addClass('n-move');
384
384
 
385
385
  Dom.find(document).on(this.mouseup,
386
- Any.framerate(this.onRightMouseup, 60), this._.uid);
386
+ this.onRightMouseup, this._.uid);
387
387
 
388
388
  Dom.find(document).on(this.mousemove,
389
- Any.framerate(this.onRightMousemove, 60), this._.uid);
389
+ this.onRightMousemove, this._.uid);
390
390
  },
391
391
 
392
392
  onRightMousemove(event)
@@ -416,7 +416,7 @@ export default {
416
416
  transform: `translateX(${targetWidth - this.resizerWidth}px)`
417
417
  };
418
418
 
419
- Dom.find(this.$refs.handle).css(style);
419
+ Dom.find(this.$refs.handle).style(style);
420
420
  },
421
421
 
422
422
  onRightMouseup(event)
@@ -450,19 +450,19 @@ export default {
450
450
 
451
451
  this.tempValue = Math.round(targetWidth);
452
452
 
453
- Dom.find(this.$el).removeClass('n-move');
453
+ Dom.find(this.$el).remClass('n-move');
454
454
 
455
455
  let style = {
456
456
  transform: `translateX(${targetWidth - this.resizerWidth}px)`
457
457
  };
458
458
 
459
- Dom.find(this.$refs.handle).css(style);
459
+ Dom.find(this.$refs.handle).style(style);
460
460
 
461
461
  let frameStyle = {
462
462
  width: this.tempValue + 'px', flex: '0 0 auto'
463
463
  };
464
464
 
465
- Dom.find(this.$el).css(frameStyle);
465
+ Dom.find(this.$el).style(frameStyle);
466
466
 
467
467
  delete this.clientX;
468
468
 
@@ -516,17 +516,17 @@ export default {
516
516
 
517
517
  let style = {};
518
518
 
519
- if ( !Any.isEmpty(this.flex) ) {
519
+ if ( !Mix.isEmpty(this.flex) ) {
520
520
  style['flex'] = this.flex;
521
521
  }
522
522
 
523
523
  let width = this.width;
524
524
 
525
- if ( Any.isNumber(width) ) {
525
+ if ( Mix.isNumber(width) ) {
526
526
  width = width + 'px';
527
527
  }
528
528
 
529
- if ( !Any.isEmpty(this.width) ) {
529
+ if ( !Mix.isEmpty(this.width) ) {
530
530
  style['width'] = this.width;
531
531
  }
532
532
 
@@ -1,4 +1,4 @@
1
- import { UUID, Arr, Obj, Dom, Any, Str, Locale, Event, Num } from "@kizmann/pico-js";
1
+ import { Run, Arr, Obj, Dom, Mix, Str, Locale, Event, Num } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -137,7 +137,7 @@ export default {
137
137
  this.forceWidth(...args)
138
138
  }, this._.uid);
139
139
 
140
- Dom.find(window).on('resize', Any.debounce((...args) => {
140
+ Dom.find(window).on('resize', Run.debounce((...args) => {
141
141
  this.onResize(...args)
142
142
  }, 500), this._.uid);
143
143
 
@@ -180,7 +180,7 @@ export default {
180
180
  width: this.tempValue + 'px', flex: '0 0 auto'
181
181
  };
182
182
 
183
- Dom.find(this.$el).css(style);
183
+ Dom.find(this.$el).style(style);
184
184
  },
185
185
 
186
186
  updateWidth()
@@ -210,13 +210,13 @@ export default {
210
210
  style.transform = `translateX(${this.tempValue - this.resizerWidth}px)`
211
211
  }
212
212
 
213
- Dom.find(this.$refs.handle).css(style);
213
+ Dom.find(this.$refs.handle).style(style);
214
214
  },
215
215
 
216
216
  bindSizechange()
217
217
  {
218
218
  Dom.find(this.NScrollbar.$el).on('resized',
219
- Any.debounce(this.updateWidth, 50), this._.uid);
219
+ Run.debounce(this.updateWidth, 50), this._.uid);
220
220
  },
221
221
 
222
222
  unbindSizechange()
@@ -261,10 +261,10 @@ export default {
261
261
  Dom.find(document.body).addClass('n-move');
262
262
 
263
263
  Dom.find(document).on(this.mouseup,
264
- Any.framerate(this.onLeftMouseup, 60), this._.uid);
264
+ Mix.framerate(this.onLeftMouseup, 60), this._.uid);
265
265
 
266
266
  Dom.find(document).on(this.mousemove,
267
- Any.framerate(this.onLeftMousemove, 60), this._.uid);
267
+ Mix.framerate(this.onLeftMousemove, 60), this._.uid);
268
268
  },
269
269
 
270
270
  onLeftMousemove(event)
@@ -295,7 +295,7 @@ export default {
295
295
  transform: `translateX(-${targetWidth}px)`
296
296
  };
297
297
 
298
- Dom.find(this.$refs.handle).css(style);
298
+ Dom.find(this.$refs.handle).style(style);
299
299
  },
300
300
 
301
301
  onLeftMouseup(event)
@@ -328,19 +328,19 @@ export default {
328
328
 
329
329
  this.tempValue = Math.round(targetWidth);
330
330
 
331
- Dom.find(this.$el).removeClass('n-move');
331
+ Dom.find(this.$el).remClass('n-move');
332
332
 
333
333
  let style = {
334
334
  transform: `translateX(-${targetWidth - this.resizerWidth}px)`
335
335
  };
336
336
 
337
- Dom.find(this.$refs.handle).css(style);
337
+ Dom.find(this.$refs.handle).style(style);
338
338
 
339
339
  let frameStyle = {
340
340
  width: this.tempValue + 'px', flex: '0 0 auto'
341
341
  };
342
342
 
343
- Dom.find(this.$el).css(frameStyle);
343
+ Dom.find(this.$el).style(frameStyle);
344
344
 
345
345
  delete this.clientX;
346
346
 
@@ -368,10 +368,10 @@ export default {
368
368
  Dom.find(document.body).addClass('n-move');
369
369
 
370
370
  Dom.find(document).on(this.mouseup,
371
- Any.framerate(this.onRightMouseup, 60), this._.uid);
371
+ Mix.framerate(this.onRightMouseup, 60), this._.uid);
372
372
 
373
373
  Dom.find(document).on(this.mousemove,
374
- Any.framerate(this.onRightMousemove, 60), this._.uid);
374
+ Mix.framerate(this.onRightMousemove, 60), this._.uid);
375
375
  },
376
376
 
377
377
  onRightMousemove(event)
@@ -401,7 +401,7 @@ export default {
401
401
  transform: `translateX(${targetWidth}px)`
402
402
  };
403
403
 
404
- Dom.find(this.$refs.handle).css(style);
404
+ Dom.find(this.$refs.handle).style(style);
405
405
  },
406
406
 
407
407
  onRightMouseup(event)
@@ -434,19 +434,19 @@ export default {
434
434
 
435
435
  this.tempValue = Math.round(targetWidth);
436
436
 
437
- Dom.find(this.$el).removeClass('n-move');
437
+ Dom.find(this.$el).remClass('n-move');
438
438
 
439
439
  let style = {
440
440
  transform: `translateX(${targetWidth - this.resizerWidth}px)`
441
441
  };
442
442
 
443
- Dom.find(this.$refs.handle).css(style);
443
+ Dom.find(this.$refs.handle).style(style);
444
444
 
445
445
  let frameStyle = {
446
446
  width: this.tempValue + 'px', flex: '0 0 auto'
447
447
  };
448
448
 
449
- Dom.find(this.$el).css(frameStyle);
449
+ Dom.find(this.$el).style(frameStyle);
450
450
 
451
451
  delete this.clientX;
452
452