@kizmann/nano-ui 1.1.4 → 2.0.0

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 +65 -52
  31. package/src/draggable/src/draglist/draglist.jsx +11 -11
  32. package/src/draggable/src/draglist-item/draglist-item.jsx +2 -0
  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 +6 -6
  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 +18 -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 { Arr, Any, Obj, Event, UUID } from "@kizmann/pico-js";
1
+ import { Arr, Mix, Obj, Event, Hash, Run } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -61,7 +61,7 @@ export default {
61
61
  data()
62
62
  {
63
63
  return {
64
- uid: UUID(),
64
+ uid: Hash.uuid(),
65
65
  elements: [],
66
66
  options: [],
67
67
  tempValue: this.item,
@@ -91,7 +91,7 @@ export default {
91
91
 
92
92
  updated()
93
93
  {
94
- Any.delay(() => {
94
+ Run.delay(() => {
95
95
  if ( this.$refs.scrollbar ) {
96
96
  // this.$refs.scrollbar.adaptHeight();
97
97
  }
@@ -108,7 +108,7 @@ export default {
108
108
 
109
109
  this.options = this.syncEvent;
110
110
 
111
- if ( Any.isFunction(this.options) ) {
111
+ if ( Mix.isFunction(this.options) ) {
112
112
  this.options = this.options(this);
113
113
  }
114
114
 
@@ -165,7 +165,7 @@ export default {
165
165
 
166
166
  renderBody()
167
167
  {
168
- if ( Any.isEmpty(this.tempValue) ) {
168
+ if ( Mix.isEmpty(this.tempValue) ) {
169
169
  return this.ctor('renderEmpty')();
170
170
  }
171
171
 
@@ -180,7 +180,7 @@ export default {
180
180
 
181
181
  return (
182
182
  <div class="n-info__body">
183
- {Any.vals(elements)}
183
+ {Mix.vals(elements)}
184
184
  </div>
185
185
  );
186
186
  },
@@ -1,4 +1,4 @@
1
- import { UUID, Obj, Locale, Str } from "@kizmann/pico-js";
1
+ import { Hash, Obj, Locale, Str } from "@kizmann/pico-js";
2
2
  import { h, resolveComponent } from "vue";
3
3
 
4
4
  export default {
@@ -115,7 +115,7 @@ export default {
115
115
  data()
116
116
  {
117
117
  return {
118
- uid: UUID()
118
+ uid: Hash.uuid()
119
119
  };
120
120
  },
121
121
 
@@ -1,4 +1,4 @@
1
- import { Any } from "@kizmann/pico-js";
1
+ import { Str } from "@kizmann/pico-js";
2
2
  import InfoField from "../info-field.jsx";
3
3
 
4
4
  export default {
@@ -17,7 +17,7 @@ export default {
17
17
 
18
18
  return (
19
19
  <div>
20
- <span>{ Any.convertBoolean(this.input, this.column.trueText, this.column.falseText) }</span>
20
+ <span>{ Str.boolean(this.input, this.column.trueText, this.column.falseText) }</span>
21
21
  </div>
22
22
  );
23
23
  }
@@ -1,4 +1,4 @@
1
- import { Any } from "@kizmann/pico-js";
1
+ import { Str } from "@kizmann/pico-js";
2
2
  import InfoField from "../info-field.jsx";
3
3
 
4
4
  export default {
@@ -17,7 +17,7 @@ export default {
17
17
 
18
18
  return (
19
19
  <div>
20
- <span>{ Any.convertDatetime(this.input, this.column.datetimeFormat, this.column.emptyText) }</span>
20
+ <span>{ Str.datetime(this.input, this.column.datetimeFormat, this.column.emptyText) }</span>
21
21
  </div>
22
22
  );
23
23
  }
@@ -1,4 +1,4 @@
1
- import { Arr, Obj, Any } from "@kizmann/pico-js";
1
+ import { Arr, Obj, Mix } from "@kizmann/pico-js";
2
2
  import InfoField from "../info-field.jsx";
3
3
 
4
4
  export default {
@@ -11,7 +11,7 @@ export default {
11
11
  {
12
12
  let options = this.column.options;
13
13
 
14
- if ( Any.isFunction(options) ) {
14
+ if ( Mix.isFunction(options) ) {
15
15
  options = this.column.options(this);
16
16
  }
17
17
 
@@ -41,7 +41,7 @@ export default {
41
41
  );
42
42
  }
43
43
 
44
- let input = ! Any.isObject(this.input) ?
44
+ let input = ! Mix.isRef(this.input) ?
45
45
  [this.input] : this.input;
46
46
 
47
47
  return (
@@ -1,4 +1,4 @@
1
- import { Any } from "@kizmann/pico-js";
1
+ import { Str } from "@kizmann/pico-js";
2
2
  import InfoField from "../info-field.jsx";
3
3
 
4
4
  export default {
@@ -17,7 +17,7 @@ export default {
17
17
 
18
18
  return (
19
19
  <div>
20
- <span>{ Any.convertString(this.input, this.column.emptyText) }</span>
20
+ <span>{ Str.string(this.input, this.column.emptyText) }</span>
21
21
  </div>
22
22
  );
23
23
  }
@@ -1,4 +1,4 @@
1
- import { Arr, Obj, Num, Now, Any, Dom, Locale } from "@kizmann/pico-js";
1
+ import { Str, Obj, Num, Now, Mix, Dom, Locale } from "@kizmann/pico-js";
2
2
  import { h } from "vue";
3
3
 
4
4
  export default {
@@ -159,11 +159,11 @@ export default {
159
159
 
160
160
  getValue(value = null)
161
161
  {
162
- if ( Any.isNull(value) ) {
162
+ if ( Mix.isNull(value) ) {
163
163
  value = this.modelValue;
164
164
  }
165
165
 
166
- if ( Any.isEmpty(value) ) {
166
+ if ( Mix.isEmpty(value) ) {
167
167
  return this.min;
168
168
  }
169
169
 
@@ -172,12 +172,11 @@ export default {
172
172
 
173
173
  getDisplayValue()
174
174
  {
175
- if ( Any.isEmpty(this.tempValue) ) {
175
+ if ( Mix.isEmpty(this.tempValue) ) {
176
176
  return null;
177
177
  }
178
178
 
179
- let value = Num.format(this.tempValue,
180
- this.decimals, ' ', this.precision);
179
+ let value = Str.number(this.tempValue, this.precision);
181
180
 
182
181
  return Locale.trans(this.format, { count: value });
183
182
  },
@@ -388,7 +387,7 @@ export default {
388
387
 
389
388
  renderClear()
390
389
  {
391
- if ( !this.clearable || Any.isEmpty(this.tempValue) ) {
390
+ if ( !this.clearable || Mix.isEmpty(this.tempValue) ) {
392
391
  return null;
393
392
  }
394
393
 
@@ -413,7 +412,7 @@ export default {
413
412
  'n-input-number--' + this.size,
414
413
  ];
415
414
 
416
- if ( Any.isEmpty(this.modelValue) ) {
415
+ if ( Mix.isEmpty(this.modelValue) ) {
417
416
  classList.push('n-empty');
418
417
  }
419
418
 
@@ -1,4 +1,4 @@
1
- import { UUID, Num, Obj, Any, Dom, Locale } from "@kizmann/pico-js";
1
+ import { Run } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -91,12 +91,12 @@ export default {
91
91
  return this.restartTimer(timing);
92
92
  }
93
93
 
94
- this.timeout = setTimeout(() => this.tempVisible = false,
94
+ this.timeout = setTimeout(() => this.tempVisible = false,
95
95
  this.debounce);
96
96
  },
97
97
 
98
98
  restartTimer(timing = 0) {
99
- Any.delay(this.startTimer, this.minimum - timing + 10);
99
+ Run.delay(this.startTimer, this.minimum - timing + 10);
100
100
  }
101
101
 
102
102
  },
@@ -1,4 +1,4 @@
1
- import { Arr, Map, Any } from "@kizmann/pico-js";
1
+ import { Arr, Map, Run } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -48,12 +48,12 @@ export default {
48
48
 
49
49
  lat()
50
50
  {
51
- Any.delay(() => this.tempMap.focusMarkers(), 100);
51
+ Run.delay(() => this.tempMap.focusMarkers(), 100);
52
52
  },
53
53
 
54
54
  lng()
55
55
  {
56
- Any.delay(() => this.tempMap.focusMarkers(), 100);
56
+ Run.delay(() => this.tempMap.focusMarkers(), 100);
57
57
  }
58
58
 
59
59
  },
@@ -1,4 +1,4 @@
1
- import { UUID, Obj, Num, Any } from "@kizmann/pico-js";
1
+ import { Hash, Obj, Num, Mix, Run } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -51,7 +51,7 @@ export default {
51
51
  data()
52
52
  {
53
53
  return {
54
- id: UUID(), tempMarker: null
54
+ id: Hash.uuid(), tempMarker: null
55
55
  };
56
56
  },
57
57
 
@@ -76,14 +76,14 @@ export default {
76
76
  lat: Num.float(this.lat), lng: Num.float(this.lng), draggable: this.drag
77
77
  }, this.options);
78
78
 
79
- if ( ! Any.isEmpty(this.$slots.default) ) {
79
+ if ( ! Mix.isEmpty(this.$slots.default) ) {
80
80
  options.html = this.$el.innerHTML;
81
81
  }
82
82
 
83
83
  this.tempMarker = this.NMap.getMap().createMarker(this.id, options);
84
84
 
85
85
  this.tempMarker.marker.addListener('position_changed',
86
- Any.debounce(this.updateMarkerPosition));
86
+ Run.debounce(this.updateMarkerPosition));
87
87
 
88
88
  this.tempMarker.marker.addListener('dragstart',
89
89
  () => this.$emit('dragstart', this.tempMarker));
@@ -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
 
@@ -6,27 +6,27 @@ export default {
6
6
  {
7
7
  let attrsList = {};
8
8
 
9
- if ( Any.isString(classList) ) {
9
+ if ( Mix.isString(classList) ) {
10
10
  attrsList[classList] = true;
11
11
  }
12
12
 
13
- if ( Any.isArray(classList) ) {
13
+ if ( Mix.isArray(classList) ) {
14
14
  Arr.each(classList, (value) => attrsList[value] = true);
15
15
  }
16
16
 
17
- if ( Any.isPlain(classList) ) {
17
+ if ( Mix.isObj(classList) ) {
18
18
  Obj.assign(attrsList, classList);
19
19
  }
20
20
 
21
- if ( Any.isString(this.$attrs.class) ) {
21
+ if ( Mix.isString(this.$attrs.class) ) {
22
22
  attrsList[this.$attrs.class] = true;
23
23
  }
24
24
 
25
- if ( Any.isArray(this.$attrs.class) ) {
25
+ if ( Mix.isArray(this.$attrs.class) ) {
26
26
  Arr.each(this.$attrs.class, (value) => attrsList[value] = true);
27
27
  }
28
28
 
29
- if ( Any.isPlain(this.$attrs.class) ) {
29
+ if ( Mix.isObj(this.$attrs.class) ) {
30
30
  Obj.assign(attrsList, this.$attrs.class);
31
31
  }
32
32
 
@@ -1,4 +1,4 @@
1
- import { Arr, Obj, Any } from "@kizmann/pico-js";
1
+ import { Arr, Obj, Mix } from "@kizmann/pico-js";
2
2
  import { Comment } from "vue";
3
3
 
4
4
  export default {
@@ -1,4 +1,4 @@
1
- import { UUID, Num, Arr, Obj, Any, Dom, Locale } from "@kizmann/pico-js";
1
+ import { Run, Arr, Obj, Mix, Dom, Locale } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -152,7 +152,7 @@ export default {
152
152
  mounted()
153
153
  {
154
154
  this.target = Dom.find(this.selector || this.$el)
155
- .previous().get(0);
155
+ .prev().get(0);
156
156
 
157
157
  Dom.find(document.body).on('mousedown',
158
158
  this.eventClick, this._.uid);
@@ -165,7 +165,7 @@ export default {
165
165
  };
166
166
 
167
167
  if ( this.modelValue ) {
168
- Any.delay(showModal, 100);
168
+ Run.delay(showModal, 100);
169
169
  }
170
170
 
171
171
  Dom.find(document.body).append(this.$el);
@@ -221,7 +221,7 @@ export default {
221
221
  {
222
222
  clearTimeout(this.refresh);
223
223
 
224
- Dom.find(this.$el).removeClass('n-ready');
224
+ Dom.find(this.$el).remClass('n-ready');
225
225
  },
226
226
 
227
227
  startRefreshTimeout()
@@ -235,7 +235,7 @@ export default {
235
235
  Dom.find(this.$el).attr('data-modal',
236
236
  window.zIndex);
237
237
 
238
- Dom.find(this.$el).css({
238
+ Dom.find(this.$el).style({
239
239
  'z-index': window.zIndex
240
240
  });
241
241
 
@@ -1,4 +1,4 @@
1
- import { UUID, Str, Obj, Dom, Any } from "@kizmann/pico-js";
1
+ import { Hash, Str, Run, Dom, Mix } from "@kizmann/pico-js";
2
2
  import NotificationElement from "./notification-element.mjs";
3
3
 
4
4
  window.NotificationBag = {};
@@ -20,14 +20,14 @@ export class NotificationHandler
20
20
  window.NotificationBag[uid].append(wrapper);
21
21
 
22
22
  // Queue remove
23
- Any.delay(() => {
23
+ Run.delay(() => {
24
24
  NotificationHandler.remove(uid);
25
25
  }, el.options.duration);
26
26
 
27
27
  return uid;
28
28
  }
29
29
 
30
- static create(uid = UUID(), ...args)
30
+ static create(uid = Hash.uuid(), ...args)
31
31
  {
32
32
  window.NotificationBag[uid] = new NotificationElement(...args);
33
33
 
@@ -1,4 +1,4 @@
1
- import { Str, Num, Arr, Any } from "@kizmann/pico-js";
1
+ import { Str, Num, Arr, Mix } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -82,7 +82,7 @@ export default {
82
82
 
83
83
  pageOptions()
84
84
  {
85
- return Arr.make(this.pages || 1);
85
+ return Arr.make(this.pages || 1, (i) => i+1);
86
86
  }
87
87
 
88
88
  },
@@ -390,7 +390,7 @@ export default {
390
390
  let renderFunction = this.ctor('render' +
391
391
  Str.ucfirst(view));
392
392
 
393
- if ( Any.isFunction(renderFunction) ) {
393
+ if ( Mix.isFunction(renderFunction) ) {
394
394
  return renderFunction();
395
395
  }
396
396
 
@@ -1,4 +1,4 @@
1
- import { Any, Dom, Arr, Obj, UUID } from "@kizmann/pico-js";
1
+ import { Mix, Dom, Arr, Obj, Run, Hash } from "@kizmann/pico-js";
2
2
  import { PopoverHelper } from "./popover-helper.mjs";
3
3
  import PopoverHandler from "./popover-handler.mjs";
4
4
 
@@ -34,7 +34,7 @@ export class PopoverElement
34
34
  });
35
35
 
36
36
  if ( ! options.uid ) {
37
- options.uid = UUID()
37
+ options.uid = Hash.uuid()
38
38
  }
39
39
 
40
40
  this.bind();
@@ -46,17 +46,17 @@ export class PopoverElement
46
46
 
47
47
  if ( trigger === 'hover' ) {
48
48
  Dom.find(document.body).on(PopoverHelper.getHoverEvent(),
49
- Any.framerate((e) => this.onHover(e), 30), { uid });
49
+ Run.framerate((e) => this.onHover(e), 15), { uid });
50
50
  }
51
51
 
52
52
  if ( trigger === 'click' ) {
53
53
  Dom.find(document.body).on(PopoverHelper.getClickEvent(),
54
- Any.throttle((e) => this.onClick(e), 30), { uid });
54
+ Run.throttle((e) => this.onClick(e), 30), { uid });
55
55
  }
56
56
 
57
57
  if ( trigger === 'context' ) {
58
58
  Dom.find(document.body).on(PopoverHelper.getContextEvent(),
59
- Any.throttle((e) => this.onContext(e), 30), { uid });
59
+ Run.throttle((e) => this.onContext(e), 30), { uid });
60
60
  }
61
61
  }
62
62
 
@@ -84,7 +84,7 @@ export class PopoverElement
84
84
  {
85
85
  let { parent } = this.options;
86
86
 
87
- if ( Any.isEmpty(parent) ) {
87
+ if ( Mix.isEmpty(parent) ) {
88
88
  return [];
89
89
  }
90
90
 
@@ -135,7 +135,7 @@ export class PopoverElement
135
135
 
136
136
  Dom.find(el).attr('data-ready', 'true');
137
137
 
138
- if ( Any.isFunction(this.events['open']) ) {
138
+ if ( Mix.isFunction(this.events['open']) ) {
139
139
  this.events['open'].apply({}, [event]);
140
140
  }
141
141
 
@@ -169,7 +169,7 @@ export class PopoverElement
169
169
 
170
170
  Dom.find(el).attr('data-ready', null);
171
171
 
172
- if ( Any.isFunction(this.events['close']) ) {
172
+ if ( Mix.isFunction(this.events['close']) ) {
173
173
  this.events['close'].apply({}, [event]);
174
174
  }
175
175
 
@@ -288,7 +288,7 @@ export class PopoverElement
288
288
  window.zIndex = 9000;
289
289
  }
290
290
 
291
- let style = Obj.assign(Dom.find(el).css(), {
291
+ let style = Obj.assign(Dom.find(el).style(), {
292
292
  'z-index': window.zIndex++,
293
293
  'top': Math.round(offset.y + scroll.top) + 'px',
294
294
  'left': Math.round(offset.x + scroll.left) + 'px',
@@ -300,7 +300,7 @@ export class PopoverElement
300
300
  style.width = Math.round(rect.width) + 'px';
301
301
  }
302
302
 
303
- Dom.find(el).css(style);
303
+ Dom.find(el).style(style);
304
304
 
305
305
  if ( ! style['--n-parent-width'] ) {
306
306
  style['--n-parent-width'] = `${rect.width}px`;
@@ -318,7 +318,7 @@ export class PopoverElement
318
318
  style['--n-node-height'] = `${el.clientHeight}px`;
319
319
  }
320
320
 
321
- Dom.find(el).css(style);
321
+ Dom.find(el).style(style);
322
322
  }
323
323
 
324
324
  getTargetHorizontal(position, fallback = null)
@@ -555,7 +555,7 @@ export class PopoverElement
555
555
 
556
556
 
557
557
  if ( width > 0 ) {
558
- Dom.find(el).css({ width: `${width}px`});
558
+ Dom.find(el).style({ width: `${width}px`});
559
559
  }
560
560
 
561
561
  if ( position.match(/^(top|bottom)\-/) ) {
@@ -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
 
@@ -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