@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 { Arr, Obj, Dom, Any, Str, Event, UUID } from "@kizmann/pico-js";
1
+ import { Run, Arr, Obj, Dom, Mix, Str, Event, Hash } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -101,7 +101,7 @@ export default {
101
101
  data()
102
102
  {
103
103
  return {
104
- uid: UUID(), init: false, native: false, height: 0, width: 0
104
+ uid: Hash.uuid(), init: false, native: false, height: 0, width: 0
105
105
  };
106
106
  },
107
107
 
@@ -172,7 +172,7 @@ export default {
172
172
  width: Math.round(rect.width), height: Math.round(rect.height)
173
173
  };
174
174
 
175
- if ( Any.isEqual(this.state, now) ) {
175
+ if ( Mix.isEqual(this.state, now) ) {
176
176
  return;
177
177
  }
178
178
 
@@ -200,7 +200,7 @@ export default {
200
200
  Math.round(this.$refs.wrapper.getBoundingClientRect().height)
201
201
  ];
202
202
 
203
- Dom.find(this.$el).removeClass('is-paused');
203
+ Dom.find(this.$el).remClass('is-paused');
204
204
  });
205
205
 
206
206
  let outer = {
@@ -212,7 +212,7 @@ export default {
212
212
  width === this.width, height === this.height
213
213
  ]
214
214
 
215
- if ( ! Arr.has(rainbow, true) && Any.isEqual(this.outer, outer) ) {
215
+ if ( ! Arr.has(rainbow, true) && Mix.isEqual(this.outer, outer) ) {
216
216
  return;
217
217
  }
218
218
 
@@ -242,7 +242,7 @@ export default {
242
242
  styles.height = this.height + 'px';
243
243
  }
244
244
 
245
- Dom.find(this.$refs.spacer).css(styles);
245
+ Dom.find(this.$refs.spacer).style(styles);
246
246
 
247
247
  this.adaptScrollHeight();
248
248
  this.adaptScrollWidth();
@@ -256,11 +256,11 @@ export default {
256
256
 
257
257
  scrollTo(x = 0, y = 0, delay = 0)
258
258
  {
259
- if ( Any.isEmpty(delay) ) {
259
+ if ( Mix.isEmpty(delay) ) {
260
260
  return this.scrollTo(x, y);
261
261
  }
262
262
 
263
- Any.delay(() => this.onScrollTo(x, y), delay);
263
+ Run.delay(() => this.onScrollTo(x, y), delay);
264
264
  },
265
265
 
266
266
  onScrollTo(x = 0, y = 0)
@@ -277,7 +277,7 @@ export default {
277
277
 
278
278
  scrollIntoView(selector, delay = 0, padding = 0)
279
279
  {
280
- Any.delay(() => this.onScrollIntoView(selector, padding), delay);
280
+ Run.delay(() => this.onScrollIntoView(selector, padding), delay);
281
281
  },
282
282
 
283
283
  onScrollIntoView(selector, padding = 0)
@@ -361,7 +361,7 @@ export default {
361
361
  this.heightRatio = (maxHeight - (barHeight - height)
362
362
  - this.offsetY) / maxHeight;
363
363
 
364
- Dom.find(this.$refs.vbar).css({
364
+ Dom.find(this.$refs.vbar).style({
365
365
  height: (this.barHeight = Math.ceil(barHeight)) + 'px'
366
366
  });
367
367
 
@@ -372,7 +372,7 @@ export default {
372
372
  }
373
373
 
374
374
  if ( !this.hasVtrack ) {
375
- Dom.find(this.$el).removeClass('has-vtrack');
375
+ Dom.find(this.$el).remClass('has-vtrack');
376
376
  }
377
377
 
378
378
  this.adaptScrollPosition();
@@ -411,7 +411,7 @@ export default {
411
411
  this.widthRatio = (maxWidth - (barWidth - width)
412
412
  - this.offsetX) / maxWidth;
413
413
 
414
- Dom.find(this.$refs.hbar).css({
414
+ Dom.find(this.$refs.hbar).style({
415
415
  width: (this.barWidth = Math.ceil(barWidth)) + 'px'
416
416
  });
417
417
 
@@ -422,7 +422,7 @@ export default {
422
422
  }
423
423
 
424
424
  if ( !this.hasHtrack ) {
425
- Dom.find(this.$el).removeClass('has-htrack');
425
+ Dom.find(this.$el).remClass('has-htrack');
426
426
  }
427
427
 
428
428
  this.adaptScrollPosition();
@@ -447,7 +447,7 @@ export default {
447
447
 
448
448
  if ( !this.vbarTop || vbarTop !== this.vbarTop ) {
449
449
 
450
- Dom.find(this.$refs.vbar).css({
450
+ Dom.find(this.$refs.vbar).style({
451
451
  transform: `translateY(${vbarTop}px) translateZ(0)`
452
452
  });
453
453
 
@@ -459,7 +459,7 @@ export default {
459
459
 
460
460
  if ( !this.hbarLeft || hbarLeft !== this.hbarLeft ) {
461
461
 
462
- Dom.find(this.$refs.hbar).css({
462
+ Dom.find(this.$refs.hbar).style({
463
463
  transform: `translateX(${hbarLeft}px) translateZ(0)`
464
464
  });
465
465
 
@@ -541,7 +541,7 @@ export default {
541
541
  Dom.find(document).off(this.mouseup,
542
542
  null, this._.uid);
543
543
 
544
- Dom.find(this.$refs.vbar).removeClass('is-active');
544
+ Dom.find(this.$refs.vbar).remClass('is-active');
545
545
  },
546
546
 
547
547
  onHbarMousedown(event)
@@ -593,7 +593,7 @@ export default {
593
593
  Dom.find(document).off(this.mouseup,
594
594
  null, this._.uid);
595
595
 
596
- Dom.find(this.$refs.hbar).removeClass('is-active');
596
+ Dom.find(this.$refs.hbar).remClass('is-active');
597
597
  },
598
598
 
599
599
  },
@@ -1,4 +1,4 @@
1
- import { Str, Arr, Obj, Any, Locale, Dom, Num } from "@kizmann/pico-js";
1
+ import { Str, Arr, Obj, Mix, Locale, Dom, Num } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -184,14 +184,14 @@ export default {
184
184
 
185
185
  empty()
186
186
  {
187
- return Any.isEmpty(this.tempValue);
187
+ return Mix.isEmpty(this.tempValue);
188
188
  },
189
189
 
190
190
  custom()
191
191
  {
192
192
  let result = Arr.filter(this.elements, (element) => {
193
193
 
194
- if ( Any.isArray(this.tempValue) ) {
194
+ if ( Mix.isArray(this.tempValue) ) {
195
195
  return Arr.has(this.tempValue, element.value);
196
196
  }
197
197
 
@@ -222,11 +222,11 @@ export default {
222
222
  this.generateOptions();
223
223
  }
224
224
 
225
- if ( this.multiple && !Any.isArray(this.tempValue) ) {
225
+ if ( this.multiple && !Mix.isArray(this.tempValue) ) {
226
226
  this.tempValue = [];
227
227
  }
228
228
 
229
- if ( this.multiple && !Any.isArray(this.clearValue) ) {
229
+ if ( this.multiple && !Mix.isArray(this.clearValue) ) {
230
230
  this.tempClear = [];
231
231
  }
232
232
 
@@ -244,11 +244,11 @@ export default {
244
244
 
245
245
  modelValue(value)
246
246
  {
247
- if ( !this.multiple && Any.isArray(value) ) {
247
+ if ( !this.multiple && Mix.isArray(value) ) {
248
248
  value = null;
249
249
  }
250
250
 
251
- if ( this.multiple && !Any.isArray(value) ) {
251
+ if ( this.multiple && !Mix.isArray(value) ) {
252
252
  value = [];
253
253
  }
254
254
 
@@ -368,20 +368,20 @@ export default {
368
368
  {
369
369
  this.index = - 1;
370
370
 
371
- if ( Any.isEmpty(this.search) ) {
371
+ if ( Mix.isEmpty(this.search) ) {
372
372
  return this.searched = this.elements;
373
373
  }
374
374
 
375
375
  let searchRegex = new RegExp(this.search, 'i');
376
376
 
377
377
  this.searched = Arr.filter(this.elements, (option) => {
378
- return Any.string(option.label || '').match(searchRegex);
378
+ return Mix.string(option.label || '').match(searchRegex);
379
379
  });
380
380
  },
381
381
 
382
382
  toggleOption(value, event = null)
383
383
  {
384
- if ( Any.isEmpty(value) ) {
384
+ if ( Mix.isEmpty(value) ) {
385
385
  return;
386
386
  }
387
387
 
@@ -411,11 +411,11 @@ export default {
411
411
 
412
412
  let denyUpdate = this.tempValue === tempValue;
413
413
 
414
- if ( this.multiple && !Any.isArray(this.modelValue) ) {
414
+ if ( this.multiple && !Mix.isArray(this.modelValue) ) {
415
415
  denyUpdate = false;
416
416
  }
417
417
 
418
- if ( !this.multiple && Any.isArray(this.modelValue) ) {
418
+ if ( !this.multiple && Mix.isArray(this.modelValue) ) {
419
419
  denyUpdate = false;
420
420
  }
421
421
 
@@ -526,7 +526,7 @@ export default {
526
526
 
527
527
  let value = this.tempValue;
528
528
 
529
- if ( Any.isArray(this.tempValue) ) {
529
+ if ( Mix.isArray(this.tempValue) ) {
530
530
  value = Arr.first(this.tempValue);
531
531
  }
532
532
 
@@ -557,7 +557,7 @@ export default {
557
557
 
558
558
  renderLabelClear()
559
559
  {
560
- if ( !this.clearable || Any.isEmpty(this.tempValue) ) {
560
+ if ( !this.clearable || Mix.isEmpty(this.tempValue) ) {
561
561
  return null;
562
562
  }
563
563
 
@@ -637,7 +637,7 @@ export default {
637
637
 
638
638
  renderLabelItems()
639
639
  {
640
- if ( !Any.isArray(this.tempValue) ) {
640
+ if ( !Mix.isArray(this.tempValue) ) {
641
641
  return null;
642
642
  }
643
643
 
@@ -652,8 +652,8 @@ export default {
652
652
 
653
653
  renderMultiple()
654
654
  {
655
- let isEmptyValue = Any.isEmpty(this.tempValue) &&
656
- !Any.isNumber(this.tempValue);
655
+ let isEmptyValue = Mix.isEmpty(this.tempValue) &&
656
+ !Mix.isNumber(this.tempValue);
657
657
 
658
658
  let props = {
659
659
  value: this.search,
@@ -691,8 +691,8 @@ export default {
691
691
 
692
692
  renderSingle()
693
693
  {
694
- let isEmptyValue = Any.isEmpty(this.tempValue) &&
695
- !Any.isNumber(this.tempValue);
694
+ let isEmptyValue = Mix.isEmpty(this.tempValue) &&
695
+ !Mix.isNumber(this.tempValue);
696
696
 
697
697
  let modelLabel = this.getOptionLabel(
698
698
  this.tempValue);
@@ -780,7 +780,7 @@ export default {
780
780
 
781
781
  return (
782
782
  <NScrollbar ref="scrollbar" class="n-popover-shadow n-select__body" {...props}>
783
- {Obj.values(options)}
783
+ {Mix.vals(options)}
784
784
  </NScrollbar>
785
785
  );
786
786
  },
@@ -803,7 +803,7 @@ export default {
803
803
  classList.push('n-active');
804
804
  }
805
805
 
806
- if ( this.index === Num.int(index) ) {
806
+ if ( this.index === Mix.int(index) ) {
807
807
  classList.push('n-focus');
808
808
  }
809
809
 
@@ -877,7 +877,7 @@ export default {
877
877
  return null;
878
878
  }
879
879
 
880
- if ( Any.isEmpty(this.options) ) {
880
+ if ( Mix.isEmpty(this.options) ) {
881
881
  return this.$slots.default && this.$slots.default();
882
882
  }
883
883
 
@@ -891,7 +891,7 @@ export default {
891
891
  return (<NSelectOption {...props}></NSelectOption>);
892
892
  };
893
893
 
894
- return Obj.values(Obj.each(this.options, optionRender));
894
+ return Arr.each(this.options, optionRender);
895
895
  },
896
896
 
897
897
  render()
@@ -902,8 +902,8 @@ export default {
902
902
  'n-select--' + this.size,
903
903
  ];
904
904
 
905
- let isEmptyValue = Any.isEmpty(this.tempValue) &&
906
- !Any.isNumber(this.tempValue);
905
+ let isEmptyValue = Mix.isEmpty(this.tempValue) &&
906
+ !Mix.isNumber(this.tempValue);
907
907
 
908
908
  if ( isEmptyValue ) {
909
909
  classList.push('n-empty');
@@ -1,4 +1,4 @@
1
- import { Num, Arr, Obj, Any } from "@kizmann/pico-js";
1
+ import { Num, Arr, Obj, Mix } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -58,7 +58,7 @@ export default {
58
58
 
59
59
  tempValue()
60
60
  {
61
- if ( Any.isEmpty(this.valueProp) ) {
61
+ if ( Mix.isEmpty(this.valueProp) ) {
62
62
  return this.value;
63
63
  }
64
64
 
@@ -67,7 +67,7 @@ export default {
67
67
 
68
68
  tempLabel()
69
69
  {
70
- if ( Any.isEmpty(this.labelProp) ) {
70
+ if ( Mix.isEmpty(this.labelProp) ) {
71
71
  return this.label;
72
72
  }
73
73
 
@@ -129,7 +129,7 @@ export default {
129
129
  classList.push('n-active');
130
130
  }
131
131
 
132
- if ( this.NSelect.index === Num.int(index) ) {
132
+ if ( this.NSelect.index === Mix.int(index) ) {
133
133
  classList.push('n-focus');
134
134
  }
135
135
 
@@ -1,4 +1,4 @@
1
- import { Obj, Arr, Any, Num, Dom, Event } from "@kizmann/pico-js";
1
+ import { Obj, Arr, Mix, Num, Dom, Run } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -94,12 +94,12 @@ export default {
94
94
 
95
95
  fixmin()
96
96
  {
97
- return Any.isArray(this.steps) ? Arr.first(this.steps) : this.min;
97
+ return Mix.isArray(this.steps) ? Arr.first(this.steps) : this.min;
98
98
  },
99
99
 
100
100
  fixmax()
101
101
  {
102
- return Any.isArray(this.steps) ? Arr.last(this.steps) : this.max;
102
+ return Mix.isArray(this.steps) ? Arr.last(this.steps) : this.max;
103
103
  },
104
104
 
105
105
  minmax()
@@ -140,7 +140,7 @@ export default {
140
140
  mounted()
141
141
  {
142
142
  Dom.find(window).on('resize',
143
- Any.debounce(this.onResize, 500), this._.uid);
143
+ Run.debounce(this.onResize, 500), this._.uid);
144
144
 
145
145
  this.onResize();
146
146
  this.getPseudoValue();
@@ -163,10 +163,10 @@ export default {
163
163
  {
164
164
  let value = this.modelValue;
165
165
 
166
- if ( Any.isNull(value) ) {
166
+ if ( Mix.isNull(value) ) {
167
167
  value = this.fixmax;
168
168
  }
169
- if ( ! Any.isArray(value) ) {
169
+ if ( ! Mix.isArray(value) ) {
170
170
  value = [this.fixmin, value];
171
171
  }
172
172
 
@@ -212,8 +212,8 @@ export default {
212
212
 
213
213
  getClosestValue(width)
214
214
  {
215
- if ( Any.isNumber(this.steps) ) {
216
- return Num.round(width / this.steps) * this.steps;
215
+ if ( Mix.isNumber(this.steps) ) {
216
+ return Math.round(width / this.steps) * this.steps;
217
217
  }
218
218
 
219
219
  let range = Arr.last(this.steps) -
@@ -254,10 +254,10 @@ export default {
254
254
  Dom.find(document.body).addClass('n-move');
255
255
 
256
256
  Dom.find(document).on(this.mouseup,
257
- Any.framerate(this.onMouseup, 60), this._.uid);
257
+ this.onMouseup, this._.uid);
258
258
 
259
259
  Dom.find(document).on(this.mousemove,
260
- Any.framerate(this.onMousemove, 60), this._.uid);
260
+ this.onMousemove, this._.uid);
261
261
  },
262
262
 
263
263
  onMousemove(event)
@@ -302,8 +302,8 @@ export default {
302
302
  Dom.find(document).off(this.mouseup, null, this._.uid);
303
303
  Dom.find(document).off(this.mousemove, null, this._.uid);
304
304
 
305
- Dom.find(this.$el).find(this.selector).removeClass('n-move');
306
- Dom.find(document.body).removeClass('n-move');
305
+ Dom.find(this.$el).find(this.selector).remClass('n-move');
306
+ Dom.find(document.body).remClass('n-move');
307
307
 
308
308
  this.setModelValue();
309
309
  },
@@ -312,6 +312,12 @@ export default {
312
312
 
313
313
  renderHandle(value, index)
314
314
  {
315
+ if ( value == null ) {
316
+ return null;
317
+ }
318
+
319
+ let key = Arr.findIndex(this.steps, value);
320
+
315
321
  let handleProps = {
316
322
  'data-value': value,
317
323
  'data-index': index,
@@ -322,12 +328,12 @@ export default {
322
328
  this.onMousedown(event, this.index = index);
323
329
  };
324
330
 
325
- let [key, tooltip] = [
326
- Arr.findIndex(this.steps, value), Obj.get(this.labels, key, value)
327
- ];
331
+ handleProps = {
332
+ ...handleProps, 'data-tooltip': Obj.get(this.labels, key, value)
333
+ }
328
334
 
329
335
  return (
330
- <div class="n-slider__handle" data-tooltip={tooltip} {...handleProps}>
336
+ <div class="n-slider__handle" {...handleProps}>
331
337
  <span></span>
332
338
  </div>
333
339
  );
@@ -35,10 +35,10 @@
35
35
  display: flex;
36
36
  align-items: center;
37
37
  justify-content: center;
38
- width: size('base-hgt-inline', 'calc($ + 6px)');
39
- height: size('base-hgt-inline', 'calc($ + 6px)');
40
- margin-top: size('base-hgt-inline', 'calc(($ + 6px) * -0.5)');
41
- margin-left: size('base-hgt-inline', 'calc(($ + 6px) * -0.5)');
38
+ width: size('base-hgt-inline');
39
+ height: size('base-hgt-inline');
40
+ margin-top: size('base-hgt-inline', 'calc($ * -0.5)');
41
+ margin-left: size('base-hgt-inline', 'calc($ * -0.5)');
42
42
  border-radius: 500px;
43
43
  }
44
44
 
@@ -49,28 +49,9 @@
49
49
  .n-slider__handle span {
50
50
  position: relative;
51
51
  display: block;
52
- width: 8px;
53
- height: 8px;
54
- }
55
-
56
- .n-slider__handle span:before,
57
- .n-slider__handle span:after {
58
- content: '\00a0';
59
- position: absolute;
60
- top: 0;
61
- display: block;
62
- width: 3px;
63
- height: 100%;
52
+ width: size('base-hgt-inline', 'calc($ - 10px)');
53
+ height: size('base-hgt-inline', 'calc($ - 10px)');
64
54
  border-radius: 500px;
65
- }
66
-
67
- .n-slider__handle span:before {
68
- left: 0;
69
- background: #fff;
70
- }
71
-
72
- .n-slider__handle span:after {
73
- right: 0;
74
55
  background: #fff;
75
56
  }
76
57
 
@@ -1,4 +1,4 @@
1
- import { Obj, Any } from "@kizmann/pico-js";
1
+ import { Obj, Mix } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -1,4 +1,4 @@
1
- import { Any, Arr, Obj, Dom, Event, UUID } from "@kizmann/pico-js";
1
+ import { Mix, Arr, Obj, Dom, Event, Hash } from "@kizmann/pico-js";
2
2
 
3
3
  export default {
4
4
 
@@ -304,7 +304,7 @@ export default {
304
304
  data()
305
305
  {
306
306
  return {
307
- uid: UUID(),
307
+ uid: Hash.uuid(),
308
308
  elements: [],
309
309
  tempVisible: this.visible,
310
310
  tempVisibleProps: [],
@@ -351,7 +351,7 @@ export default {
351
351
 
352
352
  getColumnIndex(column)
353
353
  {
354
- if ( !Any.isString(column) ) {
354
+ if ( !Mix.isString(column) ) {
355
355
  column = column['prop'];
356
356
  }
357
357
 
@@ -361,7 +361,7 @@ export default {
361
361
 
362
362
  getColumnVisiblity(column)
363
363
  {
364
- if ( !Any.isString(column) ) {
364
+ if ( !Mix.isString(column) ) {
365
365
  column = column.prop;
366
366
  }
367
367
 
@@ -372,11 +372,11 @@ export default {
372
372
  {
373
373
  let prop = column;
374
374
 
375
- if ( !Any.isString(prop) ) {
375
+ if ( !Mix.isString(prop) ) {
376
376
  prop = column.sortProp;
377
377
  }
378
378
 
379
- if ( Any.isEmpty(prop) ) {
379
+ if ( Mix.isEmpty(prop) ) {
380
380
  prop = column.prop;
381
381
  }
382
382
 
@@ -391,11 +391,11 @@ export default {
391
391
  {
392
392
  let prop = column;
393
393
 
394
- if ( !Any.isString(prop) ) {
394
+ if ( !Mix.isString(prop) ) {
395
395
  prop = column.filterProp;
396
396
  }
397
397
 
398
- if ( Any.isEmpty(prop) ) {
398
+ if ( Mix.isEmpty(prop) ) {
399
399
  prop = column.prop;
400
400
  }
401
401
 
@@ -408,11 +408,11 @@ export default {
408
408
  {
409
409
  let prop = column;
410
410
 
411
- if ( !Any.isString(prop) ) {
411
+ if ( !Mix.isString(prop) ) {
412
412
  prop = column.filterProp;
413
413
  }
414
414
 
415
- if ( Any.isEmpty(prop) ) {
415
+ if ( Mix.isEmpty(prop) ) {
416
416
  prop = column.prop;
417
417
  }
418
418
 
@@ -428,8 +428,11 @@ export default {
428
428
 
429
429
  makeVisibleProps()
430
430
  {
431
- this.tempVisibleProps = Arr.intersect(
432
- Arr.extract(this.elements, 'prop'), this.tempVisible);
431
+ let args = [
432
+ Arr.extract(this.elements, 'prop'), this.tempVisible
433
+ ];
434
+
435
+ this.tempVisibleProps = Arr.isect(...args);
433
436
 
434
437
  this.$nextTick(this.$refs.scrollbar.onResize);
435
438
  },
@@ -438,11 +441,11 @@ export default {
438
441
  {
439
442
  let prop = column;
440
443
 
441
- if ( !Any.isString(prop) ) {
444
+ if ( !Mix.isString(prop) ) {
442
445
  prop = column.sortProp;
443
446
  }
444
447
 
445
- if ( Any.isEmpty(prop) ) {
448
+ if ( Mix.isEmpty(prop) ) {
446
449
  prop = column.prop;
447
450
  }
448
451
 
@@ -566,7 +569,7 @@ export default {
566
569
  return column.disabled ? null : column.ctor('renderBody')(props);
567
570
  });
568
571
 
569
- return Obj.values(columns);
572
+ return Mix.vals(columns);
570
573
  },
571
574
 
572
575
  renderContext()
@@ -590,7 +593,7 @@ export default {
590
593
  {this.trans('Toggle column visiblity')}
591
594
  </NPopoverGroup>
592
595
  <NCheckboxGroup vModel={this.tempVisible} size="sm" align="vertical">
593
- {Obj.values(columns)}
596
+ {Mix.vals(columns)}
594
597
  </NCheckboxGroup>
595
598
  </NPopover>
596
599
  );
@@ -605,13 +608,13 @@ export default {
605
608
  this.ctor('renderContext')()
606
609
  ];
607
610
 
608
- let columns = Obj.each(this.elements, (column) => {
611
+ let columns = Arr.each(this.elements, (column) => {
609
612
  return column.disabled ? null : column.ctor('renderHead')();
610
613
  });
611
614
 
612
615
  return (
613
616
  <div class="n-table__header">
614
- {defaultRender} {Obj.values(columns)}
617
+ {defaultRender} {columns}
615
618
  </div>
616
619
  );
617
620
  },
@@ -1,5 +1,5 @@
1
1
  import TableCell from "../table-cell.jsx";
2
- import { Any } from "@kizmann/pico-js";
2
+ import { Str } from "@kizmann/pico-js";
3
3
 
4
4
  export default {
5
5
 
@@ -21,7 +21,7 @@ export default {
21
21
 
22
22
  return (
23
23
  <div>
24
- <span>{ Any.convertBoolean(this.input, this.column.trueText, this.column.falseText) }</span>
24
+ <span>{ Str.boolean(this.input, this.column.trueText, this.column.falseText) }</span>
25
25
  </div>
26
26
  );
27
27
  }
@@ -1,5 +1,5 @@
1
1
  import TableCell from "../table-cell.jsx";
2
- import { Any } from "@kizmann/pico-js";
2
+ import { Str } from "@kizmann/pico-js";
3
3
 
4
4
  export default {
5
5
 
@@ -21,7 +21,7 @@ export default {
21
21
 
22
22
  return (
23
23
  <div>
24
- <span>{ Any.convertDatetime(this.input, this.column.datetimeFormat, this.column.emptyText) }</span>
24
+ <span>{ Str.datetime(this.input, this.column.datetimeFormat, this.column.emptyText) }</span>
25
25
  </div>
26
26
  );
27
27
  }
@@ -1,5 +1,5 @@
1
1
  import TableCell from "../table-cell.jsx";
2
- import { Obj, Any } from "@kizmann/pico-js";
2
+ import { Obj, Mix } from "@kizmann/pico-js";
3
3
 
4
4
  export default {
5
5