@varlet/ui 1.26.0 → 1.26.1-alpha.1644652196468

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.
@@ -2,7 +2,7 @@ import Ripple from '../ripple';
2
2
  import VarLoading from '../loading';
3
3
  import { defineComponent, ref } from 'vue';
4
4
  import { props } from './props';
5
- import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
5
+ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
6
6
 
7
7
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
8
8
 
@@ -6,7 +6,7 @@ import { props } from './props';
6
6
  import { useValidation } from '../utils/components';
7
7
  import { useCheckboxGroup } from './provide';
8
8
  import { useForm } from '../form/provide';
9
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
10
10
 
11
11
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
12
12
 
@@ -25,7 +25,7 @@ export function render(_ctx, _cache) {
25
25
  onClick: _cache[0] || (_cache[0] = function () {
26
26
  return _ctx.handleClick && _ctx.handleClick(...arguments);
27
27
  })
28
- }, [_createElementVNode("div", _hoisted_1, [_withDirectives(_createElementVNode("div", {
28
+ }, [_createElementVNode("div", _hoisted_1, [_withDirectives((_openBlock(), _createElementBlock("div", {
29
29
  class: _normalizeClass(["var-checkbox__action", [_ctx.checked ? 'var-checkbox--checked' : 'var-checkbox--unchecked', _ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]]),
30
30
  style: _normalizeStyle({
31
31
  color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
@@ -50,7 +50,7 @@ export function render(_ctx, _cache) {
50
50
  /* PROPS */
51
51
  , ["class", "size"])])], 6
52
52
  /* CLASS, STYLE */
53
- ), [[_directive_ripple, {
53
+ )), [[_directive_ripple, {
54
54
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
55
55
  }]]), _createElementVNode("div", {
56
56
  class: _normalizeClass(["var-checkbox__text", [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]])
package/es/list/List.js CHANGED
@@ -9,7 +9,7 @@ import { getParentScroller, toPxNum } from '../utils/elements';
9
9
  import { props } from './props';
10
10
  import { isNumber, dt } from '../utils/shared';
11
11
  import { pack } from '../locale';
12
- import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
12
+ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
13
13
 
14
14
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
15
15
 
@@ -48,16 +48,14 @@ export function render(_ctx, _cache) {
48
48
  /* TEXT */
49
49
  )]) : _createCommentVNode("v-if", true), _ctx.error ? _renderSlot(_ctx.$slots, "error", {
50
50
  key: 2
51
- }, () => [_withDirectives(_createElementVNode("div", {
51
+ }, () => [_withDirectives((_openBlock(), _createElementBlock("div", {
52
52
  class: "var-list__error",
53
53
  onClick: _cache[0] || (_cache[0] = function () {
54
54
  return _ctx.load && _ctx.load(...arguments);
55
55
  })
56
56
  }, [_createTextVNode(_toDisplayString(_ctx.dt(_ctx.errorText, _ctx.pack.listErrorText)), 1
57
57
  /* TEXT */
58
- )], 512
59
- /* NEED_PATCH */
60
- ), [[_directive_ripple]])]) : _createCommentVNode("v-if", true), _createElementVNode("div", _hoisted_5, null, 512
58
+ )])), [[_directive_ripple]])]) : _createCommentVNode("v-if", true), _createElementVNode("div", _hoisted_5, null, 512
61
59
  /* NEED_PATCH */
62
60
  )], 512
63
61
  /* NEED_PATCH */
@@ -3,7 +3,7 @@ import Ripple from '../ripple';
3
3
  import { defineComponent, computed, ref, watch } from 'vue';
4
4
  import { useSelect } from './provide';
5
5
  import { props } from './props';
6
- import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
6
+ import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, withModifiers as _withModifiers, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
7
7
 
8
8
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
9
9
 
@@ -7,7 +7,7 @@ import { defineComponent, ref, computed, watch } from 'vue';
7
7
  import { props } from './porps';
8
8
  import { isNumber, toNumber } from '../utils/shared';
9
9
  import { pack } from '../locale';
10
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, withKeys as _withKeys, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
10
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, createVNode as _createVNode, normalizeClass as _normalizeClass, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, withKeys as _withKeys, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, withCtx as _withCtx, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
11
11
 
12
12
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
13
13
 
@@ -30,7 +30,7 @@ export function render(_ctx, _cache) {
30
30
 
31
31
  var _directive_ripple = _resolveDirective("ripple");
32
32
 
33
- return _openBlock(), _createElementBlock("ul", _hoisted_1, [_withDirectives(_createElementVNode("li", {
33
+ return _openBlock(), _createElementBlock("ul", _hoisted_1, [_withDirectives((_openBlock(), _createElementBlock("li", {
34
34
  class: _normalizeClass(["var-pagination__item var-pagination__prev", {
35
35
  'var-pagination__item-disabled': _ctx.current <= 1 || _ctx.disabled,
36
36
  'var-pagination__item-hover': _ctx.simple,
@@ -41,7 +41,7 @@ export function render(_ctx, _cache) {
41
41
  name: "chevron-left"
42
42
  })])], 2
43
43
  /* CLASS */
44
- ), [[_directive_ripple, {
44
+ )), [[_directive_ripple, {
45
45
  disabled: _ctx.current <= 1 || _ctx.disabled
46
46
  }]]), _ctx.simple ? (_openBlock(), _createElementBlock("li", {
47
47
  key: 0,
@@ -83,7 +83,7 @@ export function render(_ctx, _cache) {
83
83
  }]]);
84
84
  }), 128
85
85
  /* KEYED_FRAGMENT */
86
- )), _withDirectives(_createElementVNode("li", {
86
+ )), _withDirectives((_openBlock(), _createElementBlock("li", {
87
87
  class: _normalizeClass(["var-pagination__item var-pagination__next", {
88
88
  'var-pagination__item-disabled': _ctx.current >= _ctx.pageCount || _ctx.disabled,
89
89
  'var-pagination__item-hover': _ctx.simple,
@@ -94,7 +94,7 @@ export function render(_ctx, _cache) {
94
94
  name: "chevron-right"
95
95
  })])], 2
96
96
  /* CLASS */
97
- ), [[_directive_ripple, {
97
+ )), [[_directive_ripple, {
98
98
  disabled: _ctx.current >= _ctx.pageCount || _ctx.disabled
99
99
  }]]), _ctx.showSizeChanger ? (_openBlock(), _createElementBlock("li", {
100
100
  key: 2,
@@ -90,6 +90,7 @@ export function render(_ctx, _cache) {
90
90
  onTouchend: $event => _ctx.handleTouchend($event, c)
91
91
  }, [_createElementVNode("div", {
92
92
  class: "var-picker__scroller",
93
+ ref_for: true,
93
94
  ref: el => _ctx.getScrollEl(el, c),
94
95
  style: _normalizeStyle({
95
96
  transform: "translateY(" + c.translate + "px)",
package/es/radio/Radio.js CHANGED
@@ -6,7 +6,7 @@ import { props } from './props';
6
6
  import { useValidation } from '../utils/components';
7
7
  import { useRadioGroup } from './provide';
8
8
  import { useForm } from '../form/provide';
9
- import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createElementVNode as _createElementVNode, withDirectives as _withDirectives, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
+ import { renderSlot as _renderSlot, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createElementVNode as _createElementVNode, mergeProps as _mergeProps, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
10
10
 
11
11
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
12
12
 
@@ -25,7 +25,7 @@ export function render(_ctx, _cache) {
25
25
  onClick: _cache[0] || (_cache[0] = function () {
26
26
  return _ctx.handleClick && _ctx.handleClick(...arguments);
27
27
  })
28
- }, _ctx.$attrs), [_withDirectives(_createElementVNode("div", {
28
+ }, _ctx.$attrs), [_withDirectives((_openBlock(), _createElementBlock("div", {
29
29
  class: _normalizeClass(["var-radio__action", [_ctx.checked ? 'var-radio--checked' : 'var-radio--unchecked', _ctx.errorMessage || _ctx.radioGroupErrorMessage ? 'var-radio--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-radio--disabled' : null]]),
30
30
  style: _normalizeStyle({
31
31
  color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
@@ -50,7 +50,7 @@ export function render(_ctx, _cache) {
50
50
  /* PROPS */
51
51
  , ["class", "size"])])], 6
52
52
  /* CLASS, STYLE */
53
- ), [[_directive_ripple, {
53
+ )), [[_directive_ripple, {
54
54
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
55
55
  }]]), _createElementVNode("div", {
56
56
  class: _normalizeClass(["var-radio__text", [_ctx.errorMessage || _ctx.radioGroupErrorMessage ? 'var-radio--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-radio--disabled' : null]])
@@ -83,7 +83,7 @@ export function render(_ctx, _cache) {
83
83
  type: _ctx.errorMessage ? 'danger' : undefined,
84
84
  key: l,
85
85
  onClick: _cache[0] || (_cache[0] = _withModifiers(() => {}, ["stop"])),
86
- onClose: e => _ctx.handleClose(l)
86
+ onClose: () => _ctx.handleClose(l)
87
87
  }, {
88
88
  default: _withCtx(() => [_createTextVNode(_toDisplayString(l), 1
89
89
  /* TEXT */
@@ -6,7 +6,7 @@ import { props } from './props';
6
6
  import VarFormDetails from '../form-details';
7
7
  import VarLoading from '../loading';
8
8
  import Ripple from '../ripple';
9
- import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDirective as _resolveDirective, withDirectives as _withDirectives, createVNode as _createVNode, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
+ import { normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, resolveDirective as _resolveDirective, createElementBlock as _createElementBlock, withDirectives as _withDirectives, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
10
10
 
11
11
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
12
12
 
@@ -31,7 +31,7 @@ export function render(_ctx, _cache) {
31
31
  class: _normalizeClass(["var-switch__track", [_ctx.modelValue === _ctx.activeValue ? 'var-switch__track-active' : null, _ctx.errorMessage ? 'var-switch__track-error' : null]])
32
32
  }, null, 6
33
33
  /* CLASS, STYLE */
34
- ), _withDirectives(_createElementVNode("div", {
34
+ ), _withDirectives((_openBlock(), _createElementBlock("div", {
35
35
  class: "var-switch__ripple",
36
36
  style: _normalizeStyle(_ctx.styleComputed.ripple)
37
37
  }, [_createElementVNode("div", {
@@ -46,7 +46,7 @@ export function render(_ctx, _cache) {
46
46
  /* CLASS, STYLE */
47
47
  )], 4
48
48
  /* STYLE */
49
- ), [[_directive_ripple, {
49
+ )), [[_directive_ripple, {
50
50
  disabled: !_ctx.ripple || _ctx.disabled || _ctx.loading || _ctx.formDisabled
51
51
  }]])], 6
52
52
  /* CLASS, STYLE */
package/es/tab/Tab.js CHANGED
@@ -2,7 +2,7 @@ import Ripple from '../ripple';
2
2
  import { defineComponent, ref, computed, watch } from 'vue';
3
3
  import { props } from './props';
4
4
  import { useTabs } from './provide';
5
- import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
5
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, openBlock as _openBlock, createElementBlock as _createElementBlock, withDirectives as _withDirectives } from "vue";
6
6
  export function render(_ctx, _cache) {
7
7
  var _directive_ripple = _resolveDirective("ripple");
8
8
 
@@ -4,7 +4,7 @@ import Clock from './clock.js'
4
4
  import { props, hoursAmpm, hours24 } from './props';
5
5
  import { toNumber } from '../utils/shared';
6
6
  import { getNumberTime, getIsDisableMinute, getIsDisableSecond } from './utils';
7
- import { toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveComponent as _resolveComponent, createVNode as _createVNode, Transition as _Transition, withCtx as _withCtx, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
7
+ import { toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, normalizeStyle as _normalizeStyle, resolveComponent as _resolveComponent, createBlock as _createBlock, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
8
8
 
9
9
  var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
10
10
 
@@ -80,7 +80,7 @@ export function render(_ctx, _cache) {
80
80
  }, [_createVNode(_Transition, {
81
81
  name: "var-time-picker-panel-fade"
82
82
  }, {
83
- default: _withCtx(() => [_createVNode(_component_clock, {
83
+ default: _withCtx(() => [(_openBlock(), _createBlock(_component_clock, {
84
84
  key: _ctx.type,
85
85
  ref: "inner",
86
86
  type: _ctx.type,
@@ -99,7 +99,7 @@ export function render(_ctx, _cache) {
99
99
  onChangePreventUpdate: _ctx.changePreventUpdate
100
100
  }, null, 8
101
101
  /* PROPS */
102
- , ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"])]),
102
+ , ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"]))]),
103
103
  _: 1
104
104
  /* STABLE */
105
105
 
package/es/varlet.esm.js CHANGED
@@ -2368,7 +2368,7 @@ function render$N(_ctx, _cache) {
2368
2368
  onClick: _cache[0] || (_cache[0] = function() {
2369
2369
  return _ctx.handleClick && _ctx.handleClick(...arguments);
2370
2370
  })
2371
- }, [createElementVNode("div", _hoisted_1$A, [withDirectives(createElementVNode("div", {
2371
+ }, [createElementVNode("div", _hoisted_1$A, [withDirectives((openBlock(), createElementBlock("div", {
2372
2372
  class: normalizeClass(["var-checkbox__action", [_ctx.checked ? "var-checkbox--checked" : "var-checkbox--unchecked", _ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? "var-checkbox--error" : null, _ctx.formDisabled || _ctx.disabled ? "var-checkbox--disabled" : null]]),
2373
2373
  style: normalizeStyle({
2374
2374
  color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
@@ -2387,7 +2387,7 @@ function render$N(_ctx, _cache) {
2387
2387
  name: "checkbox-blank-outline",
2388
2388
  size: _ctx.iconSize,
2389
2389
  "var-checkbox-cover": ""
2390
- }, null, 8, ["class", "size"])])], 6), [[_directive_ripple, {
2390
+ }, null, 8, ["class", "size"])])], 6)), [[_directive_ripple, {
2391
2391
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
2392
2392
  }]]), createElementVNode("div", {
2393
2393
  class: normalizeClass(["var-checkbox__text", [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? "var-checkbox--error" : null, _ctx.formDisabled || _ctx.disabled ? "var-checkbox--disabled" : null]])
@@ -6050,7 +6050,7 @@ var padZoneStr = function padZoneStr2(instance) {
6050
6050
  var minutes = Math.abs(negMinutes);
6051
6051
  var hourOffset = Math.floor(minutes / 60);
6052
6052
  var minuteOffset = minutes % 60;
6053
- return "" + (negMinutes <= 0 ? "+" : "-") + padStart(hourOffset, 2, "0") + ":" + padStart(minuteOffset, 2, "0");
6053
+ return (negMinutes <= 0 ? "+" : "-") + padStart(hourOffset, 2, "0") + ":" + padStart(minuteOffset, 2, "0");
6054
6054
  };
6055
6055
  var monthDiff = function monthDiff2(a, b) {
6056
6056
  if (a.date() < b.date())
@@ -10324,12 +10324,12 @@ function render$p(_ctx, _cache) {
10324
10324
  key: 1
10325
10325
  }, () => [createElementVNode("div", _hoisted_4$6, toDisplayString(_ctx.dt(_ctx.finishedText, _ctx.pack.listFinishedText)), 1)]) : createCommentVNode("v-if", true), _ctx.error ? renderSlot(_ctx.$slots, "error", {
10326
10326
  key: 2
10327
- }, () => [withDirectives(createElementVNode("div", {
10327
+ }, () => [withDirectives((openBlock(), createElementBlock("div", {
10328
10328
  class: "var-list__error",
10329
10329
  onClick: _cache[0] || (_cache[0] = function() {
10330
10330
  return _ctx.load && _ctx.load(...arguments);
10331
10331
  })
10332
- }, [createTextVNode(toDisplayString(_ctx.dt(_ctx.errorText, _ctx.pack.listErrorText)), 1)], 512), [[_directive_ripple]])]) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_5$6, null, 512)], 512);
10332
+ }, [createTextVNode(toDisplayString(_ctx.dt(_ctx.errorText, _ctx.pack.listErrorText)), 1)])), [[_directive_ripple]])]) : createCommentVNode("v-if", true), createElementVNode("div", _hoisted_5$6, null, 512)], 512);
10333
10333
  }
10334
10334
  var List = defineComponent({
10335
10335
  render: render$p,
@@ -10772,7 +10772,7 @@ function render$n(_ctx, _cache) {
10772
10772
  var _component_var_cell = resolveComponent("var-cell");
10773
10773
  var _component_var_menu = resolveComponent("var-menu");
10774
10774
  var _directive_ripple = resolveDirective("ripple");
10775
- return openBlock(), createElementBlock("ul", _hoisted_1$f, [withDirectives(createElementVNode("li", {
10775
+ return openBlock(), createElementBlock("ul", _hoisted_1$f, [withDirectives((openBlock(), createElementBlock("li", {
10776
10776
  class: normalizeClass(["var-pagination__item var-pagination__prev", {
10777
10777
  "var-pagination__item-disabled": _ctx.current <= 1 || _ctx.disabled,
10778
10778
  "var-pagination__item-hover": _ctx.simple,
@@ -10781,7 +10781,7 @@ function render$n(_ctx, _cache) {
10781
10781
  onClick: _cache[0] || (_cache[0] = ($event) => _ctx.clickItem("prev"))
10782
10782
  }, [renderSlot(_ctx.$slots, "prev", {}, () => [createVNode(_component_var_icon, {
10783
10783
  name: "chevron-left"
10784
- })])], 2), [[_directive_ripple, {
10784
+ })])], 2)), [[_directive_ripple, {
10785
10785
  disabled: _ctx.current <= 1 || _ctx.disabled
10786
10786
  }]]), _ctx.simple ? (openBlock(), createElementBlock("li", {
10787
10787
  key: 0,
@@ -10811,7 +10811,7 @@ function render$n(_ctx, _cache) {
10811
10811
  }, [createTextVNode(toDisplayString(item), 1)], 10, _hoisted_2$b)), [[_directive_ripple, {
10812
10812
  disabled: _ctx.disabled
10813
10813
  }]]);
10814
- }), 128)), withDirectives(createElementVNode("li", {
10814
+ }), 128)), withDirectives((openBlock(), createElementBlock("li", {
10815
10815
  class: normalizeClass(["var-pagination__item var-pagination__next", {
10816
10816
  "var-pagination__item-disabled": _ctx.current >= _ctx.pageCount || _ctx.disabled,
10817
10817
  "var-pagination__item-hover": _ctx.simple,
@@ -10820,7 +10820,7 @@ function render$n(_ctx, _cache) {
10820
10820
  onClick: _cache[4] || (_cache[4] = ($event) => _ctx.clickItem("next"))
10821
10821
  }, [renderSlot(_ctx.$slots, "next", {}, () => [createVNode(_component_var_icon, {
10822
10822
  name: "chevron-right"
10823
- })])], 2), [[_directive_ripple, {
10823
+ })])], 2)), [[_directive_ripple, {
10824
10824
  disabled: _ctx.current >= _ctx.pageCount || _ctx.disabled
10825
10825
  }]]), _ctx.showSizeChanger ? (openBlock(), createElementBlock("li", {
10826
10826
  key: 2,
@@ -11185,6 +11185,7 @@ function render$m(_ctx, _cache) {
11185
11185
  onTouchend: ($event) => _ctx.handleTouchend($event, c)
11186
11186
  }, [createElementVNode("div", {
11187
11187
  class: "var-picker__scroller",
11188
+ ref_for: true,
11188
11189
  ref: (el) => _ctx.getScrollEl(el, c),
11189
11190
  style: normalizeStyle({
11190
11191
  transform: "translateY(" + c.translate + "px)",
@@ -11949,7 +11950,7 @@ function render$j(_ctx, _cache) {
11949
11950
  onClick: _cache[0] || (_cache[0] = function() {
11950
11951
  return _ctx.handleClick && _ctx.handleClick(...arguments);
11951
11952
  })
11952
- }, _ctx.$attrs), [withDirectives(createElementVNode("div", {
11953
+ }, _ctx.$attrs), [withDirectives((openBlock(), createElementBlock("div", {
11953
11954
  class: normalizeClass(["var-radio__action", [_ctx.checked ? "var-radio--checked" : "var-radio--unchecked", _ctx.errorMessage || _ctx.radioGroupErrorMessage ? "var-radio--error" : null, _ctx.formDisabled || _ctx.disabled ? "var-radio--disabled" : null]]),
11954
11955
  style: normalizeStyle({
11955
11956
  color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
@@ -11968,7 +11969,7 @@ function render$j(_ctx, _cache) {
11968
11969
  "var-radio-cover": "",
11969
11970
  name: "radio-blank",
11970
11971
  size: _ctx.iconSize
11971
- }, null, 8, ["class", "size"])])], 6), [[_directive_ripple, {
11972
+ }, null, 8, ["class", "size"])])], 6)), [[_directive_ripple, {
11972
11973
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
11973
11974
  }]]), createElementVNode("div", {
11974
11975
  class: normalizeClass(["var-radio__text", [_ctx.errorMessage || _ctx.radioGroupErrorMessage ? "var-radio--error" : null, _ctx.formDisabled || _ctx.disabled ? "var-radio--disabled" : null]])
@@ -12682,7 +12683,7 @@ function render$f(_ctx, _cache) {
12682
12683
  key: l,
12683
12684
  onClick: _cache[0] || (_cache[0] = withModifiers(() => {
12684
12685
  }, ["stop"])),
12685
- onClose: (e) => _ctx.handleClose(l)
12686
+ onClose: () => _ctx.handleClose(l)
12686
12687
  }, {
12687
12688
  default: withCtx(() => [createTextVNode(toDisplayString(l), 1)]),
12688
12689
  _: 2
@@ -14379,7 +14380,7 @@ function render$8(_ctx, _cache) {
14379
14380
  }, [createElementVNode("div", {
14380
14381
  style: normalizeStyle(_ctx.styleComputed.track),
14381
14382
  class: normalizeClass(["var-switch__track", [_ctx.modelValue === _ctx.activeValue ? "var-switch__track-active" : null, _ctx.errorMessage ? "var-switch__track-error" : null]])
14382
- }, null, 6), withDirectives(createElementVNode("div", {
14383
+ }, null, 6), withDirectives((openBlock(), createElementBlock("div", {
14383
14384
  class: "var-switch__ripple",
14384
14385
  style: normalizeStyle(_ctx.styleComputed.ripple)
14385
14386
  }, [createElementVNode("div", {
@@ -14388,7 +14389,7 @@ function render$8(_ctx, _cache) {
14388
14389
  }, [_ctx.loading ? (openBlock(), createBlock(_component_var_loading, {
14389
14390
  key: 0,
14390
14391
  radius: _ctx.toNumber(_ctx.size) / 2 - 2
14391
- }, null, 8, ["radius"])) : createCommentVNode("v-if", true)], 6)], 4), [[_directive_ripple, {
14392
+ }, null, 8, ["radius"])) : createCommentVNode("v-if", true)], 6)], 4)), [[_directive_ripple, {
14392
14393
  disabled: !_ctx.ripple || _ctx.disabled || _ctx.loading || _ctx.formDisabled
14393
14394
  }]])], 6), createVNode(_component_var_form_details, {
14394
14395
  "error-message": _ctx.errorMessage
@@ -15547,7 +15548,7 @@ var Clock = defineComponent({
15547
15548
  } = allowedTime;
15548
15549
  var _disableAmpmHours3 = hoursAmpm.filter((hour) => !hours(toNumber(hour)));
15549
15550
  var _disable24Hours3 = hours24.filter((hour) => !hours(toNumber(hour)));
15550
- disableHour.value = [...new Set([...disableHour.value, ..._disableAmpmHours3, ..._disable24Hours3])];
15551
+ disableHour.value = [.../* @__PURE__ */ new Set([...disableHour.value, ..._disableAmpmHours3, ..._disable24Hours3])];
15551
15552
  }
15552
15553
  disable24HourIndex.value = disableHour.value.map((hour) => hours24.findIndex((hour24) => hour === hour24)).filter((hour) => hour >= 0);
15553
15554
  }, {
@@ -15623,7 +15624,7 @@ function render$1(_ctx, _cache) {
15623
15624
  }, [createVNode(Transition, {
15624
15625
  name: "var-time-picker-panel-fade"
15625
15626
  }, {
15626
- default: withCtx(() => [createVNode(_component_clock, {
15627
+ default: withCtx(() => [(openBlock(), createBlock(_component_clock, {
15627
15628
  key: _ctx.type,
15628
15629
  ref: "inner",
15629
15630
  type: _ctx.type,
@@ -15640,7 +15641,7 @@ function render$1(_ctx, _cache) {
15640
15641
  min: _ctx.min,
15641
15642
  onUpdate: _ctx.update,
15642
15643
  onChangePreventUpdate: _ctx.changePreventUpdate
15643
- }, null, 8, ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"])]),
15644
+ }, null, 8, ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"]))]),
15644
15645
  _: 1
15645
15646
  })], 544)])], 2);
15646
15647
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "framework": "vue",
4
- "version": "1.25.1",
4
+ "version": "1.26.0",
5
5
  "name": "VARLET",
6
6
  "contributions": {
7
7
  "html": {
@@ -40,7 +40,7 @@ function render(_ctx, _cache) {
40
40
  onClick: _cache[0] || (_cache[0] = function () {
41
41
  return _ctx.handleClick && _ctx.handleClick(...arguments);
42
42
  })
43
- }, [(0, _vue.createElementVNode)("div", _hoisted_1, [(0, _vue.withDirectives)((0, _vue.createElementVNode)("div", {
43
+ }, [(0, _vue.createElementVNode)("div", _hoisted_1, [(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
44
44
  class: (0, _vue.normalizeClass)(["var-checkbox__action", [_ctx.checked ? 'var-checkbox--checked' : 'var-checkbox--unchecked', _ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]]),
45
45
  style: (0, _vue.normalizeStyle)({
46
46
  color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
@@ -65,7 +65,7 @@ function render(_ctx, _cache) {
65
65
  /* PROPS */
66
66
  , ["class", "size"])])], 6
67
67
  /* CLASS, STYLE */
68
- ), [[_directive_ripple, {
68
+ )), [[_directive_ripple, {
69
69
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
70
70
  }]]), (0, _vue.createElementVNode)("div", {
71
71
  class: (0, _vue.normalizeClass)(["var-checkbox__text", [_ctx.errorMessage || _ctx.checkboxGroupErrorMessage ? 'var-checkbox--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-checkbox--disabled' : null]])
package/lib/list/List.js CHANGED
@@ -62,16 +62,14 @@ function render(_ctx, _cache) {
62
62
  /* TEXT */
63
63
  )]) : (0, _vue.createCommentVNode)("v-if", true), _ctx.error ? (0, _vue.renderSlot)(_ctx.$slots, "error", {
64
64
  key: 2
65
- }, () => [(0, _vue.withDirectives)((0, _vue.createElementVNode)("div", {
65
+ }, () => [(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
66
66
  class: "var-list__error",
67
67
  onClick: _cache[0] || (_cache[0] = function () {
68
68
  return _ctx.load && _ctx.load(...arguments);
69
69
  })
70
70
  }, [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(_ctx.dt(_ctx.errorText, _ctx.pack.listErrorText)), 1
71
71
  /* TEXT */
72
- )], 512
73
- /* NEED_PATCH */
74
- ), [[_directive_ripple]])]) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", _hoisted_5, null, 512
72
+ )])), [[_directive_ripple]])]) : (0, _vue.createCommentVNode)("v-if", true), (0, _vue.createElementVNode)("div", _hoisted_5, null, 512
75
73
  /* NEED_PATCH */
76
74
  )], 512
77
75
  /* NEED_PATCH */
@@ -46,7 +46,7 @@ function render(_ctx, _cache) {
46
46
 
47
47
  var _directive_ripple = (0, _vue.resolveDirective)("ripple");
48
48
 
49
- return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("ul", _hoisted_1, [(0, _vue.withDirectives)((0, _vue.createElementVNode)("li", {
49
+ return (0, _vue.openBlock)(), (0, _vue.createElementBlock)("ul", _hoisted_1, [(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
50
50
  class: (0, _vue.normalizeClass)(["var-pagination__item var-pagination__prev", {
51
51
  'var-pagination__item-disabled': _ctx.current <= 1 || _ctx.disabled,
52
52
  'var-pagination__item-hover': _ctx.simple,
@@ -57,7 +57,7 @@ function render(_ctx, _cache) {
57
57
  name: "chevron-left"
58
58
  })])], 2
59
59
  /* CLASS */
60
- ), [[_directive_ripple, {
60
+ )), [[_directive_ripple, {
61
61
  disabled: _ctx.current <= 1 || _ctx.disabled
62
62
  }]]), _ctx.simple ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
63
63
  key: 0,
@@ -99,7 +99,7 @@ function render(_ctx, _cache) {
99
99
  }]]);
100
100
  }), 128
101
101
  /* KEYED_FRAGMENT */
102
- )), (0, _vue.withDirectives)((0, _vue.createElementVNode)("li", {
102
+ )), (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
103
103
  class: (0, _vue.normalizeClass)(["var-pagination__item var-pagination__next", {
104
104
  'var-pagination__item-disabled': _ctx.current >= _ctx.pageCount || _ctx.disabled,
105
105
  'var-pagination__item-hover': _ctx.simple,
@@ -110,7 +110,7 @@ function render(_ctx, _cache) {
110
110
  name: "chevron-right"
111
111
  })])], 2
112
112
  /* CLASS */
113
- ), [[_directive_ripple, {
113
+ )), [[_directive_ripple, {
114
114
  disabled: _ctx.current >= _ctx.pageCount || _ctx.disabled
115
115
  }]]), _ctx.showSizeChanger ? ((0, _vue.openBlock)(), (0, _vue.createElementBlock)("li", {
116
116
  key: 2,
@@ -105,6 +105,7 @@ function render(_ctx, _cache) {
105
105
  onTouchend: $event => _ctx.handleTouchend($event, c)
106
106
  }, [(0, _vue.createElementVNode)("div", {
107
107
  class: "var-picker__scroller",
108
+ ref_for: true,
108
109
  ref: el => _ctx.getScrollEl(el, c),
109
110
  style: (0, _vue.normalizeStyle)({
110
111
  transform: "translateY(" + c.translate + "px)",
@@ -40,7 +40,7 @@ function render(_ctx, _cache) {
40
40
  onClick: _cache[0] || (_cache[0] = function () {
41
41
  return _ctx.handleClick && _ctx.handleClick(...arguments);
42
42
  })
43
- }, _ctx.$attrs), [(0, _vue.withDirectives)((0, _vue.createElementVNode)("div", {
43
+ }, _ctx.$attrs), [(0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
44
44
  class: (0, _vue.normalizeClass)(["var-radio__action", [_ctx.checked ? 'var-radio--checked' : 'var-radio--unchecked', _ctx.errorMessage || _ctx.radioGroupErrorMessage ? 'var-radio--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-radio--disabled' : null]]),
45
45
  style: (0, _vue.normalizeStyle)({
46
46
  color: _ctx.checked ? _ctx.checkedColor : _ctx.uncheckedColor
@@ -65,7 +65,7 @@ function render(_ctx, _cache) {
65
65
  /* PROPS */
66
66
  , ["class", "size"])])], 6
67
67
  /* CLASS, STYLE */
68
- ), [[_directive_ripple, {
68
+ )), [[_directive_ripple, {
69
69
  disabled: _ctx.formReadonly || _ctx.readonly || _ctx.formDisabled || _ctx.disabled || !_ctx.ripple
70
70
  }]]), (0, _vue.createElementVNode)("div", {
71
71
  class: (0, _vue.normalizeClass)(["var-radio__text", [_ctx.errorMessage || _ctx.radioGroupErrorMessage ? 'var-radio--error' : null, _ctx.formDisabled || _ctx.disabled ? 'var-radio--disabled' : null]])
@@ -101,7 +101,7 @@ function render(_ctx, _cache) {
101
101
  type: _ctx.errorMessage ? 'danger' : undefined,
102
102
  key: l,
103
103
  onClick: _cache[0] || (_cache[0] = (0, _vue.withModifiers)(() => {}, ["stop"])),
104
- onClose: e => _ctx.handleClose(l)
104
+ onClose: () => _ctx.handleClose(l)
105
105
  }, {
106
106
  default: (0, _vue.withCtx)(() => [(0, _vue.createTextVNode)((0, _vue.toDisplayString)(l), 1
107
107
  /* TEXT */
@@ -46,7 +46,7 @@ function render(_ctx, _cache) {
46
46
  class: (0, _vue.normalizeClass)(["var-switch__track", [_ctx.modelValue === _ctx.activeValue ? 'var-switch__track-active' : null, _ctx.errorMessage ? 'var-switch__track-error' : null]])
47
47
  }, null, 6
48
48
  /* CLASS, STYLE */
49
- ), (0, _vue.withDirectives)((0, _vue.createElementVNode)("div", {
49
+ ), (0, _vue.withDirectives)(((0, _vue.openBlock)(), (0, _vue.createElementBlock)("div", {
50
50
  class: "var-switch__ripple",
51
51
  style: (0, _vue.normalizeStyle)(_ctx.styleComputed.ripple)
52
52
  }, [(0, _vue.createElementVNode)("div", {
@@ -61,7 +61,7 @@ function render(_ctx, _cache) {
61
61
  /* CLASS, STYLE */
62
62
  )], 4
63
63
  /* STYLE */
64
- ), [[_directive_ripple, {
64
+ )), [[_directive_ripple, {
65
65
  disabled: !_ctx.ripple || _ctx.disabled || _ctx.loading || _ctx.formDisabled
66
66
  }]])], 6
67
67
  /* CLASS, STYLE */
@@ -93,7 +93,7 @@ function render(_ctx, _cache) {
93
93
  }, [(0, _vue.createVNode)(_vue.Transition, {
94
94
  name: "var-time-picker-panel-fade"
95
95
  }, {
96
- default: (0, _vue.withCtx)(() => [(0, _vue.createVNode)(_component_clock, {
96
+ default: (0, _vue.withCtx)(() => [((0, _vue.openBlock)(), (0, _vue.createBlock)(_component_clock, {
97
97
  key: _ctx.type,
98
98
  ref: "inner",
99
99
  type: _ctx.type,
@@ -112,7 +112,7 @@ function render(_ctx, _cache) {
112
112
  onChangePreventUpdate: _ctx.changePreventUpdate
113
113
  }, null, 8
114
114
  /* PROPS */
115
- , ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"])]),
115
+ , ["type", "ampm", "color", "is-inner", "format", "allowed-time", "rad", "time", "prevent-next-update", "use-seconds", "max", "min", "onUpdate", "onChangePreventUpdate"]))]),
116
116
  _: 1
117
117
  /* STABLE */
118
118
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@varlet/ui",
3
- "version": "1.26.0",
3
+ "version": "1.26.1-alpha.1644652196468",
4
4
  "description": "A material like components library",
5
5
  "module": "es/index.js",
6
6
  "main": "lib/index.js",
@@ -39,19 +39,19 @@
39
39
  },
40
40
  "gitHead": "ee9c3866bedad96c86365b0f9888a3a6bb781b1f",
41
41
  "dependencies": {
42
- "@varlet/icons": "1.26.0",
42
+ "@varlet/icons": "1.26.1-alpha.1644652196468",
43
43
  "dayjs": "^1.10.4",
44
44
  "decimal.js": "^10.2.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@varlet/cli": "1.26.0",
48
- "@varlet/touch-emulator": "1.26.0",
47
+ "@varlet/cli": "1.26.1-alpha.1644652196468",
48
+ "@varlet/touch-emulator": "1.26.1-alpha.1644652196468",
49
49
  "@vue/test-utils": "2.0.0-rc.6",
50
- "@vue/runtime-core": "^3.2.16",
50
+ "@vue/runtime-core": "3.2.25",
51
51
  "typescript": "^4.4.4",
52
52
  "lodash-es": "^4.17.21",
53
53
  "clipboard": "^2.0.6",
54
- "vue": "3.2.16",
54
+ "vue": "3.2.25",
55
55
  "vue-router": "4.0.12",
56
56
  "live-server": "^1.2.1"
57
57
  },