@varlet/ui 1.21.0 → 1.22.0-alpha.10

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 (65) hide show
  1. package/es/action-sheet/ActionSheet.js +15 -19
  2. package/es/app-bar/AppBar.js +14 -19
  3. package/es/back-top/BackTop.js +7 -10
  4. package/es/badge/Badge.js +7 -12
  5. package/es/button/Button.js +14 -13
  6. package/es/card/Card.js +19 -23
  7. package/es/cell/Cell.js +14 -19
  8. package/es/checkbox/Checkbox.js +14 -19
  9. package/es/checkbox-group/CheckboxGroup.js +6 -11
  10. package/es/chip/Chip.js +8 -11
  11. package/es/col/Col.js +8 -11
  12. package/es/collapse/Collapse.js +5 -10
  13. package/es/collapse-item/CollapseItem.js +16 -21
  14. package/es/countdown/Countdown.js +5 -10
  15. package/es/counter/Counter.js +18 -22
  16. package/es/date-picker/DatePicker.js +23 -28
  17. package/es/date-picker/src/day-picker-panel.js +14 -19
  18. package/es/date-picker/src/month-picker-panel.js +12 -17
  19. package/es/date-picker/src/panel-header.js +12 -17
  20. package/es/date-picker/src/year-picker-panel.js +12 -16
  21. package/es/dialog/Dialog.js +12 -17
  22. package/es/divider/Divider.js +8 -13
  23. package/es/form/Form.js +5 -10
  24. package/es/form-details/FormDetails.js +6 -11
  25. package/es/icon/Icon.js +6 -9
  26. package/es/icon/icon.less +1 -1
  27. package/es/image/Image.js +23 -21
  28. package/es/image-preview/ImagePreview.js +20 -24
  29. package/es/index-anchor/IndexAnchor.js +4 -7
  30. package/es/index-bar/IndexBar.js +15 -19
  31. package/es/input/Input.js +33 -37
  32. package/es/list/List.js +10 -15
  33. package/es/loading/Loading.js +21 -24
  34. package/es/menu/Menu.js +9 -12
  35. package/es/option/Option.js +16 -21
  36. package/es/picker/Picker.js +33 -36
  37. package/es/popup/Popup.js +14 -17
  38. package/es/progress/Progress.js +30 -32
  39. package/es/pull-refresh/PullRefresh.js +12 -15
  40. package/es/radio/Radio.js +14 -19
  41. package/es/radio-group/RadioGroup.js +6 -11
  42. package/es/rate/Rate.js +12 -16
  43. package/es/row/Row.js +7 -10
  44. package/es/select/Select.js +42 -47
  45. package/es/skeleton/Skeleton.js +41 -39
  46. package/es/slider/Slider.js +32 -36
  47. package/es/snackbar/Snackbar.js +8 -11
  48. package/es/snackbar/core.js +14 -19
  49. package/es/snackbar/style/index.js +1 -1
  50. package/es/snackbar/style/less.js +1 -1
  51. package/es/step/Step.js +23 -28
  52. package/es/steps/Steps.js +6 -9
  53. package/es/sticky/Sticky.js +10 -13
  54. package/es/swipe/Swipe.js +20 -24
  55. package/es/swipe-item/SwipeItem.js +6 -9
  56. package/es/switch/Switch.js +16 -21
  57. package/es/tab/Tab.js +8 -11
  58. package/es/tab-item/TabItem.js +5 -8
  59. package/es/tabs/Tabs.js +10 -13
  60. package/es/tabs-items/TabsItems.js +4 -7
  61. package/es/time-picker/TimePicker.js +32 -37
  62. package/es/time-picker/clock.js +15 -20
  63. package/es/uploader/Uploader.js +31 -31
  64. package/package.json +4 -4
  65. package/umd/varlet.js +3 -1
@@ -2,21 +2,16 @@ import { computed, defineComponent, nextTick, watch } from 'vue';
2
2
  import { useCollapseItem } from './provide';
3
3
  import { props } from './props';
4
4
  import { isArray } from '../utils/shared';
5
- import { renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
5
+ import { renderSlot as _renderSlot, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
6
6
 
7
- var _withId = /*#__PURE__*/_withScopeId("");
8
-
9
- _pushScopeId("");
7
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
10
8
 
11
9
  var _hoisted_1 = {
12
10
  class: "var-collapse"
13
11
  };
14
-
15
- _popScopeId();
16
-
17
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
18
- return _openBlock(), _createBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")]);
19
- });
12
+ export function render(_ctx, _cache) {
13
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default")]);
14
+ }
20
15
  export default defineComponent({
21
16
  render,
22
17
  name: 'VarCollapse',
@@ -4,11 +4,9 @@ import { isArray } from '../utils/shared';
4
4
  import { useCollapse } from './provide';
5
5
  import { props } from './props';
6
6
  import Icon from '../icon';
7
- import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createVNode as _createVNode, resolveComponent as _resolveComponent, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
7
+ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, createVNode as _createVNode, vShow as _vShow, withDirectives as _withDirectives, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
8
8
 
9
- var _withId = /*#__PURE__*/_withScopeId("");
10
-
11
- _pushScopeId("");
9
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
12
10
 
13
11
  var _hoisted_1 = {
14
12
  class: "var-collapse-item-header__title"
@@ -19,43 +17,40 @@ var _hoisted_2 = {
19
17
  var _hoisted_3 = {
20
18
  class: "var-collapse-item__wrap"
21
19
  };
22
-
23
- _popScopeId();
24
-
25
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
20
+ export function render(_ctx, _cache) {
26
21
  var _component_var_icon = _resolveComponent("var-icon");
27
22
 
28
- return _openBlock(), _createBlock("div", {
29
- class: {
23
+ return _openBlock(), _createElementBlock("div", {
24
+ class: _normalizeClass({
30
25
  'var-collapse-item': true,
31
26
  'var-collapse-item__active': _ctx.offset && _ctx.isShow,
32
27
  'var-collapse-item__disable': _ctx.disabled
33
- }
34
- }, [_createVNode("div", {
28
+ })
29
+ }, [_createElementVNode("div", {
35
30
  class: "var-collapse-item-header",
36
- onClick: _cache[1] || (_cache[1] = $event => _ctx.toggle())
37
- }, [_createVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "title", {}, () => [_createTextVNode(_toDisplayString(_ctx.title), 1
31
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.toggle())
32
+ }, [_createElementVNode("div", _hoisted_1, [_renderSlot(_ctx.$slots, "title", {}, () => [_createTextVNode(_toDisplayString(_ctx.title), 1
38
33
  /* TEXT */
39
- )])]), _createVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "icon", {}, () => [_createVNode(_component_var_icon, {
34
+ )])]), _createElementVNode("div", _hoisted_2, [_renderSlot(_ctx.$slots, "icon", {}, () => [_createVNode(_component_var_icon, {
40
35
  name: _ctx.icon,
41
36
  transition: 400,
42
- class: {
37
+ class: _normalizeClass({
43
38
  'var-collapse-item-header__icon': true,
44
39
  'var-collapse-item-header__open': _ctx.isShow && _ctx.icon === 'chevron-down',
45
40
  'var-collapse-item-header__disable': _ctx.disabled
46
- }
41
+ })
47
42
  }, null, 8
48
43
  /* PROPS */
49
- , ["name", "class"])])])]), _withDirectives(_createVNode("div", {
44
+ , ["name", "class"])])])]), _withDirectives(_createElementVNode("div", {
50
45
  class: "var-collapse-item-content",
51
46
  ref: "contentEl",
52
- onTransitionend: _cache[2] || (_cache[2] = (...args) => _ctx.transitionend && _ctx.transitionend(...args))
53
- }, [_createVNode("div", _hoisted_3, [_renderSlot(_ctx.$slots, "default")])], 544
47
+ onTransitionend: _cache[1] || (_cache[1] = (...args) => _ctx.transitionend && _ctx.transitionend(...args))
48
+ }, [_createElementVNode("div", _hoisted_3, [_renderSlot(_ctx.$slots, "default")])], 544
54
49
  /* HYDRATE_EVENTS, NEED_PATCH */
55
50
  ), [[_vShow, _ctx.show]])], 2
56
51
  /* CLASS */
57
52
  );
58
- });
53
+ }
59
54
  export default defineComponent({
60
55
  render,
61
56
  name: 'VarCollapseItem',
@@ -6,23 +6,18 @@ var SECOND = 1000;
6
6
  var MINUTE = 60 * SECOND;
7
7
  var HOUR = 60 * MINUTE;
8
8
  var DAY = 24 * HOUR;
9
- import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
+ import { normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
10
10
 
11
- var _withId = /*#__PURE__*/_withScopeId("");
12
-
13
- _pushScopeId("");
11
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
14
12
 
15
13
  var _hoisted_1 = {
16
14
  class: "var-countdown"
17
15
  };
18
-
19
- _popScopeId();
20
-
21
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
22
- return _openBlock(), _createBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default", _ctx.timeData, () => [_createTextVNode(_toDisplayString(_ctx.showTime), 1
16
+ export function render(_ctx, _cache) {
17
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_renderSlot(_ctx.$slots, "default", _normalizeProps(_guardReactiveProps(_ctx.timeData)), () => [_createTextVNode(_toDisplayString(_ctx.showTime), 1
23
18
  /* TEXT */
24
19
  )])]);
25
- });
20
+ }
26
21
  export default defineComponent({
27
22
  render,
28
23
  name: 'VarCountdown',
@@ -10,38 +10,34 @@ import { useForm } from '../form/provide';
10
10
  import { useValidation } from '../utils/components';
11
11
  var SPEED = 100;
12
12
  var DELAY = 600;
13
- import { resolveComponent as _resolveComponent, resolveDirective as _resolveDirective, createVNode as _createVNode, withDirectives as _withDirectives, vModelText as _vModelText, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
13
+ import { resolveComponent as _resolveComponent, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, resolveDirective as _resolveDirective, createVNode as _createVNode, withDirectives as _withDirectives, vModelText as _vModelText, createElementVNode as _createElementVNode, mergeProps as _mergeProps, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
14
14
 
15
- var _withId = /*#__PURE__*/_withScopeId("");
16
-
17
- _pushScopeId("");
15
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
18
16
 
19
17
  var _hoisted_1 = {
20
18
  class: "var-counter var--box"
21
19
  };
22
-
23
- _popScopeId();
24
-
25
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
20
+ var _hoisted_2 = ["inputmode", "readonly", "disabled"];
21
+ export function render(_ctx, _cache) {
26
22
  var _component_var_icon = _resolveComponent("var-icon");
27
23
 
28
24
  var _component_var_form_details = _resolveComponent("var-form-details");
29
25
 
30
26
  var _directive_ripple = _resolveDirective("ripple");
31
27
 
32
- return _openBlock(), _createBlock("div", _hoisted_1, [_createVNode("div", _mergeProps({
28
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", _mergeProps({
33
29
  class: ["var-counter__controller var-elevation--2", [_ctx.disabled || _ctx.formDisabled ? 'var-counter--disabled' : null, _ctx.errorMessage ? 'var-counter--error' : null]],
34
30
  style: {
35
31
  background: _ctx.color ? _ctx.color : null
36
32
  }
37
33
  }, _ctx.$attrs), [_withDirectives(_createVNode(_component_var_icon, {
38
- class: ["var-counter__decrement-button", [!_ctx.decrementButton ? 'var-counter--hidden' : null]],
34
+ class: _normalizeClass(["var-counter__decrement-button", [!_ctx.decrementButton ? 'var-counter--hidden' : null]]),
39
35
  "var-counter-cover": "",
40
36
  name: "minus",
41
- style: {
37
+ style: _normalizeStyle({
42
38
  width: _ctx.toSizeUnit(_ctx.buttonSize),
43
39
  height: _ctx.toSizeUnit(_ctx.buttonSize)
44
- },
40
+ }),
45
41
  onClick: _ctx.decrement,
46
42
  onTouchstart: _ctx.pressDecrement,
47
43
  onTouchend: _ctx.releaseDecrement,
@@ -50,27 +46,27 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
50
46
  /* PROPS */
51
47
  , ["class", "style", "onClick", "onTouchstart", "onTouchend", "onTouchcancel"]), [[_directive_ripple, {
52
48
  disabled: !_ctx.ripple || _ctx.disabled || _ctx.readonly || _ctx.disableDecrement || !_ctx.decrementButton || _ctx.isMin
53
- }]]), _withDirectives(_createVNode("input", {
49
+ }]]), _withDirectives(_createElementVNode("input", {
54
50
  class: "var-counter__input",
55
- style: {
51
+ style: _normalizeStyle({
56
52
  width: _ctx.toSizeUnit(_ctx.inputWidth),
57
53
  fontSize: _ctx.toSizeUnit(_ctx.inputTextSize)
58
- },
54
+ }),
59
55
  inputmode: _ctx.toNumber(_ctx.decimalLength) === 0 ? 'numeric' : 'decimal',
60
56
  readonly: _ctx.readonly || _ctx.formReadonly,
61
57
  disabled: _ctx.disabled || _ctx.formDisabled || _ctx.disableInput,
62
- "onUpdate:modelValue": _cache[1] || (_cache[1] = $event => _ctx.inputValue = $event),
63
- onChange: _cache[2] || (_cache[2] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
58
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => _ctx.inputValue = $event),
59
+ onChange: _cache[1] || (_cache[1] = (...args) => _ctx.handleChange && _ctx.handleChange(...args))
64
60
  }, null, 44
65
61
  /* STYLE, PROPS, HYDRATE_EVENTS */
66
- , ["inputmode", "readonly", "disabled"]), [[_vModelText, _ctx.inputValue]]), _withDirectives(_createVNode(_component_var_icon, {
67
- class: ["var-counter__increment-button", [!_ctx.incrementButton ? 'var-counter--hidden' : null]],
62
+ , _hoisted_2), [[_vModelText, _ctx.inputValue]]), _withDirectives(_createVNode(_component_var_icon, {
63
+ class: _normalizeClass(["var-counter__increment-button", [!_ctx.incrementButton ? 'var-counter--hidden' : null]]),
68
64
  "var-counter-cover": "",
69
65
  name: "plus",
70
- style: {
66
+ style: _normalizeStyle({
71
67
  width: _ctx.toSizeUnit(_ctx.buttonSize),
72
68
  height: _ctx.toSizeUnit(_ctx.buttonSize)
73
- },
69
+ }),
74
70
  onClick: _ctx.increment,
75
71
  onTouchstart: _ctx.pressIncrement,
76
72
  onTouchend: _ctx.releaseIncrement,
@@ -86,7 +82,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
86
82
  }, null, 8
87
83
  /* PROPS */
88
84
  , ["error-message"])]);
89
- });
85
+ }
90
86
  export default defineComponent({
91
87
  render,
92
88
  name: 'VarCounter',
@@ -1,56 +1,51 @@
1
1
  import { defineComponent, ref, computed, reactive, watch } from 'vue';
2
- import dayjs from 'dayjs';
2
+ import dayjs from 'dayjs/esm';
3
3
  import MonthPickerPanel from './src/month-picker-panel.js'
4
4
  import YearPickerPanel from './src/year-picker-panel.js'
5
5
  import DayPickerPanel from './src/day-picker-panel.js'
6
6
  import { props, MONTH_LIST, WEEK_HEADER } from './props';
7
7
  import { isArray, toNumber } from '../utils/shared';
8
8
  import { pack } from '../locale';
9
- import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createVNode as _createVNode, createCommentVNode as _createCommentVNode, openBlock as _openBlock, createBlock as _createBlock, mergeProps as _mergeProps, Transition as _Transition, resolveComponent as _resolveComponent, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
+ import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, createCommentVNode as _createCommentVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, normalizeProps as _normalizeProps, mergeProps as _mergeProps, Transition as _Transition, withCtx as _withCtx, createVNode as _createVNode, normalizeStyle as _normalizeStyle, resolveComponent as _resolveComponent, createBlock as _createBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
10
10
 
11
- var _withId = /*#__PURE__*/_withScopeId("");
12
-
13
- _pushScopeId("");
11
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
14
12
 
15
13
  var _hoisted_1 = {
16
14
  class: "var-date-picker-body"
17
15
  };
18
-
19
- _popScopeId();
20
-
21
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
16
+ export function render(_ctx, _cache) {
22
17
  var _component_year_picker_panel = _resolveComponent("year-picker-panel");
23
18
 
24
19
  var _component_month_picker_panel = _resolveComponent("month-picker-panel");
25
20
 
26
21
  var _component_day_picker_panel = _resolveComponent("day-picker-panel");
27
22
 
28
- return _openBlock(), _createBlock("div", {
29
- class: ["var-date-picker", [_ctx.shadow ? 'var-elevation--2' : null]]
30
- }, [_createVNode("div", {
23
+ return _openBlock(), _createElementBlock("div", {
24
+ class: _normalizeClass(["var-date-picker", [_ctx.shadow ? 'var-elevation--2' : null]])
25
+ }, [_createElementVNode("div", {
31
26
  class: "var-date-picker-title",
32
- style: {
27
+ style: _normalizeStyle({
33
28
  background: _ctx.headerColor || _ctx.color
34
- }
35
- }, [_createVNode("div", {
36
- class: ["var-date-picker-title__year", [_ctx.isYearPanel ? 'var-date-picker-title__year--active' : null]],
37
- onClick: _cache[1] || (_cache[1] = $event => _ctx.clickEl('year'))
29
+ })
30
+ }, [_createElementVNode("div", {
31
+ class: _normalizeClass(["var-date-picker-title__year", [_ctx.isYearPanel ? 'var-date-picker-title__year--active' : null]]),
32
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.clickEl('year'))
38
33
  }, [_renderSlot(_ctx.$slots, "year", {
39
34
  year: _ctx.previewYear
40
35
  }, () => [_createTextVNode(_toDisplayString(_ctx.previewYear), 1
41
36
  /* TEXT */
42
37
  )])], 2
43
38
  /* CLASS */
44
- ), _createVNode("div", {
45
- class: ["var-date-picker-title__date", [!_ctx.isYearPanel ? 'var-date-picker-title__date--active' : null, _ctx.range ? 'var-date-picker-title__date--range' : null]],
46
- onClick: _cache[2] || (_cache[2] = $event => _ctx.clickEl('date'))
39
+ ), _createElementVNode("div", {
40
+ class: _normalizeClass(["var-date-picker-title__date", [!_ctx.isYearPanel ? 'var-date-picker-title__date--active' : null, _ctx.range ? 'var-date-picker-title__date--range' : null]]),
41
+ onClick: _cache[1] || (_cache[1] = $event => _ctx.clickEl('date'))
47
42
  }, [_createVNode(_Transition, {
48
43
  name: _ctx.multiple ? '' : _ctx.reverse ? 'var-date-picker-reverse-translatey' : 'var-date-picker-translatey'
49
44
  }, {
50
- default: _withId(() => {
45
+ default: _withCtx(() => {
51
46
  var _ctx$chooseMonth, _ctx$chooseMonth2, _ctx$chooseMonth3;
52
47
 
53
- return [_ctx.type === 'month' ? (_openBlock(), _createBlock("div", {
48
+ return [_ctx.type === 'month' ? (_openBlock(), _createElementBlock("div", {
54
49
  key: _ctx.range || _ctx.multiple || _ctx.chooseYear + ((_ctx$chooseMonth = _ctx.chooseMonth) == null ? void 0 : _ctx$chooseMonth.index)
55
50
  }, [_ctx.range ? _renderSlot(_ctx.$slots, "range", {
56
51
  key: 0,
@@ -68,7 +63,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
68
63
  year: _ctx.chooseYear
69
64
  }, () => [_createTextVNode(_toDisplayString(_ctx.getMonthTitle), 1
70
65
  /* TEXT */
71
- )])])) : (_openBlock(), _createBlock("div", {
66
+ )])])) : (_openBlock(), _createElementBlock("div", {
72
67
  key: _ctx.chooseYear + ((_ctx$chooseMonth3 = _ctx.chooseMonth) == null ? void 0 : _ctx$chooseMonth3.index) + _ctx.chooseDay
73
68
  }, [_ctx.range ? _renderSlot(_ctx.$slots, "range", {
74
69
  key: 0,
@@ -80,9 +75,9 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
80
75
  choose: _ctx.getChoose.chooseDays
81
76
  }, () => [_createTextVNode(_toDisplayString(_ctx.getDateTitle), 1
82
77
  /* TEXT */
83
- )]) : _renderSlot(_ctx.$slots, "date", _mergeProps({
78
+ )]) : _renderSlot(_ctx.$slots, "date", _normalizeProps(_mergeProps({
84
79
  key: 2
85
- }, _ctx.slotProps), () => [_createTextVNode(_toDisplayString(_ctx.getDateTitle), 1
80
+ }, _ctx.slotProps)), () => [_createTextVNode(_toDisplayString(_ctx.getDateTitle), 1
86
81
  /* TEXT */
87
82
  )])]))];
88
83
  }),
@@ -95,10 +90,10 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
95
90
  /* CLASS */
96
91
  )], 4
97
92
  /* STYLE */
98
- ), _createVNode("div", _hoisted_1, [_createVNode(_Transition, {
93
+ ), _createElementVNode("div", _hoisted_1, [_createVNode(_Transition, {
99
94
  name: "var-date-picker-panel-fade"
100
95
  }, {
101
- default: _withId(() => [_ctx.isYearPanel ? (_openBlock(), _createBlock(_component_year_picker_panel, {
96
+ default: _withCtx(() => [_ctx.isYearPanel ? (_openBlock(), _createBlock(_component_year_picker_panel, {
102
97
  key: 0,
103
98
  "component-props": _ctx.componentProps,
104
99
  preview: _ctx.previewYear,
@@ -134,7 +129,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
134
129
  })])], 2
135
130
  /* CLASS */
136
131
  );
137
- });
132
+ }
138
133
  export default defineComponent({
139
134
  render,
140
135
  name: 'VarDatePicker',
@@ -1,9 +1,9 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import { defineComponent, ref, computed, watch, onMounted, reactive } from 'vue';
4
- import dayjs from 'dayjs';
5
- import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
6
- import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
4
+ import dayjs from 'dayjs/esm';
5
+ import isSameOrBefore from 'dayjs/esm/plugin/isSameOrBefore';
6
+ import isSameOrAfter from 'dayjs/esm/plugin/isSameOrAfter';
7
7
  import PanelHeader from './panel-header.js'
8
8
  import Button from '../../button';
9
9
  import { WEEK_HEADER } from '../props';
@@ -11,11 +11,9 @@ import { toNumber } from '../../utils/shared';
11
11
  import { pack } from '../../locale';
12
12
  dayjs.extend(isSameOrBefore);
13
13
  dayjs.extend(isSameOrAfter);
14
- import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, mergeProps as _mergeProps, Transition as _Transition, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
14
+ import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createTextVNode as _createTextVNode, mergeProps as _mergeProps, withCtx as _withCtx, Transition as _Transition, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
15
15
 
16
- var _withId = /*#__PURE__*/_withScopeId("");
17
-
18
- _pushScopeId("");
16
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
19
17
 
20
18
  var _hoisted_1 = {
21
19
  class: "var-day-picker__panel"
@@ -29,15 +27,12 @@ var _hoisted_3 = {
29
27
  var _hoisted_4 = {
30
28
  class: "var-day-picker__body"
31
29
  };
32
-
33
- _popScopeId();
34
-
35
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
30
+ export function render(_ctx, _cache) {
36
31
  var _component_panel_header = _resolveComponent("panel-header");
37
32
 
38
33
  var _component_var_button = _resolveComponent("var-button");
39
34
 
40
- return _openBlock(), _createBlock("div", _hoisted_1, [_createVNode("div", _hoisted_2, [_createVNode(_component_panel_header, {
35
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", _hoisted_2, [_createVNode(_component_panel_header, {
41
36
  type: "day",
42
37
  date: _ctx.preview,
43
38
  disabled: _ctx.panelBtnDisabled,
@@ -48,18 +43,18 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
48
43
  , ["date", "disabled", "onCheckPanel", "onCheckDate"]), _createVNode(_Transition, {
49
44
  name: _ctx.reverse ? 'var-date-picker-reverse-translatex' : 'var-date-picker-translatex'
50
45
  }, {
51
- default: _withId(() => [(_openBlock(), _createBlock("div", {
46
+ default: _withCtx(() => [(_openBlock(), _createElementBlock("div", {
52
47
  key: _ctx.panelKey
53
- }, [_createVNode("ul", _hoisted_3, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.sortWeekList, week => {
54
- return _openBlock(), _createBlock("li", {
48
+ }, [_createElementVNode("ul", _hoisted_3, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.sortWeekList, week => {
49
+ return _openBlock(), _createElementBlock("li", {
55
50
  key: week.index
56
51
  }, _toDisplayString(_ctx.getDayAbbr(week.index)), 1
57
52
  /* TEXT */
58
53
  );
59
54
  }), 128
60
55
  /* KEYED_FRAGMENT */
61
- ))]), _createVNode("ul", _hoisted_4, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.days, (day, index) => {
62
- return _openBlock(), _createBlock("li", {
56
+ ))]), _createElementVNode("ul", _hoisted_4, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.days, (day, index) => {
57
+ return _openBlock(), _createElementBlock("li", {
63
58
  key: index
64
59
  }, [_createVNode(_component_var_button, _mergeProps({
65
60
  type: "primary",
@@ -72,7 +67,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
72
67
  }, _extends({}, _ctx.buttonProps(day)), {
73
68
  onClick: $event => _ctx.chooseDay(day)
74
69
  }), {
75
- default: _withId(() => [_createTextVNode(_toDisplayString(_ctx.filterDay(day)), 1
70
+ default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.filterDay(day)), 1
76
71
  /* TEXT */
77
72
  )]),
78
73
  _: 2
@@ -90,7 +85,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
90
85
  }, 8
91
86
  /* PROPS */
92
87
  , ["name"])])]);
93
- });
88
+ }
94
89
  export default defineComponent({
95
90
  render,
96
91
  name: 'DayPickerPanel',
@@ -1,9 +1,9 @@
1
1
  function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
2
 
3
3
  import { defineComponent, ref, computed, reactive, watch } from 'vue';
4
- import dayjs from 'dayjs';
5
- import isSameOrBefore from 'dayjs/plugin/isSameOrBefore';
6
- import isSameOrAfter from 'dayjs/plugin/isSameOrAfter';
4
+ import dayjs from 'dayjs/esm';
5
+ import isSameOrBefore from 'dayjs/esm/plugin/isSameOrBefore';
6
+ import isSameOrAfter from 'dayjs/esm/plugin/isSameOrAfter';
7
7
  import { MONTH_LIST } from '../props';
8
8
  import PanelHeader from './panel-header.js'
9
9
  import Button from '../../button';
@@ -11,11 +11,9 @@ import { toNumber } from '../../utils/shared';
11
11
  import { pack } from '../../locale';
12
12
  dayjs.extend(isSameOrBefore);
13
13
  dayjs.extend(isSameOrAfter);
14
- import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, mergeProps as _mergeProps, Transition as _Transition, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
14
+ import { resolveComponent as _resolveComponent, createVNode as _createVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, mergeProps as _mergeProps, withCtx as _withCtx, Transition as _Transition, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
15
15
 
16
- var _withId = /*#__PURE__*/_withScopeId("");
17
-
18
- _pushScopeId("");
16
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
19
17
 
20
18
  var _hoisted_1 = {
21
19
  class: "var-month-picker__panel"
@@ -23,15 +21,12 @@ var _hoisted_1 = {
23
21
  var _hoisted_2 = {
24
22
  class: "var-month-picker__content"
25
23
  };
26
-
27
- _popScopeId();
28
-
29
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
24
+ export function render(_ctx, _cache) {
30
25
  var _component_panel_header = _resolveComponent("panel-header");
31
26
 
32
27
  var _component_var_button = _resolveComponent("var-button");
33
28
 
34
- return _openBlock(), _createBlock("div", _hoisted_1, [_createVNode("div", _hoisted_2, [_createVNode(_component_panel_header, {
29
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createElementVNode("div", _hoisted_2, [_createVNode(_component_panel_header, {
35
30
  type: "month",
36
31
  date: _ctx.preview,
37
32
  onCheckPanel: _ctx.clickYear,
@@ -42,10 +37,10 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
42
37
  , ["date", "onCheckPanel", "disabled", "onCheckDate"]), _createVNode(_Transition, {
43
38
  name: _ctx.reverse ? 'var-date-picker-reverse-translatex' : 'var-date-picker-translatex'
44
39
  }, {
45
- default: _withId(() => [(_openBlock(), _createBlock("ul", {
40
+ default: _withCtx(() => [(_openBlock(), _createElementBlock("ul", {
46
41
  key: _ctx.panelKey
47
- }, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.MONTH_LIST, month => {
48
- return _openBlock(), _createBlock("li", {
42
+ }, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.MONTH_LIST, month => {
43
+ return _openBlock(), _createElementBlock("li", {
49
44
  key: month.index
50
45
  }, [_createVNode(_component_var_button, _mergeProps({
51
46
  type: "primary",
@@ -55,7 +50,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
55
50
  }, _extends({}, _ctx.buttonProps(month.index)), {
56
51
  onClick: $event => _ctx.chooseMonth(month)
57
52
  }), {
58
- default: _withId(() => [_createTextVNode(_toDisplayString(_ctx.getMonthAbbr(month.index)), 1
53
+ default: _withCtx(() => [_createTextVNode(_toDisplayString(_ctx.getMonthAbbr(month.index)), 1
59
54
  /* TEXT */
60
55
  )]),
61
56
  _: 2
@@ -73,7 +68,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
73
68
  }, 8
74
69
  /* PROPS */
75
70
  , ["name"])])]);
76
- });
71
+ }
77
72
  export default defineComponent({
78
73
  render,
79
74
  name: 'MonthPickerPanel',
@@ -3,31 +3,26 @@ import Button from '../../button';
3
3
  import Icon from '../../icon';
4
4
  import { toNumber } from '../../utils/shared';
5
5
  import { pack } from '../../locale';
6
- import { resolveComponent as _resolveComponent, createVNode as _createVNode, toDisplayString as _toDisplayString, openBlock as _openBlock, createBlock as _createBlock, Transition as _Transition, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
6
+ import { resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, Transition as _Transition, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
7
7
 
8
- var _withId = /*#__PURE__*/_withScopeId("");
9
-
10
- _pushScopeId("");
8
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
11
9
 
12
10
  var _hoisted_1 = {
13
11
  class: "var-picker-header"
14
12
  };
15
-
16
- _popScopeId();
17
-
18
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
13
+ export function render(_ctx, _cache) {
19
14
  var _component_var_icon = _resolveComponent("var-icon");
20
15
 
21
16
  var _component_var_button = _resolveComponent("var-button");
22
17
 
23
- return _openBlock(), _createBlock("div", _hoisted_1, [_createVNode(_component_var_button, {
18
+ return _openBlock(), _createElementBlock("div", _hoisted_1, [_createVNode(_component_var_button, {
24
19
  round: "",
25
20
  text: "",
26
21
  "text-color": _ctx.disabled.left ? '' : 'rgba(0, 0, 0, .54)',
27
22
  disabled: _ctx.disabled.left,
28
- onClick: _cache[1] || (_cache[1] = $event => _ctx.checkDate('prev'))
23
+ onClick: _cache[0] || (_cache[0] = $event => _ctx.checkDate('prev'))
29
24
  }, {
30
- default: _withId(() => [_createVNode(_component_var_icon, {
25
+ default: _withCtx(() => [_createVNode(_component_var_icon, {
31
26
  name: "chevron-left"
32
27
  })]),
33
28
  _: 1
@@ -35,13 +30,13 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
35
30
 
36
31
  }, 8
37
32
  /* PROPS */
38
- , ["text-color", "disabled"]), _createVNode("div", {
33
+ , ["text-color", "disabled"]), _createElementVNode("div", {
39
34
  class: "var-picker-header__value",
40
- onClick: _cache[2] || (_cache[2] = $event => _ctx.$emit('check-panel'))
35
+ onClick: _cache[1] || (_cache[1] = $event => _ctx.$emit('check-panel'))
41
36
  }, [_createVNode(_Transition, {
42
37
  name: _ctx.reverse ? 'var-date-picker-reverse-translatex' : 'var-date-picker-translatex'
43
38
  }, {
44
- default: _withId(() => [(_openBlock(), _createBlock("div", {
39
+ default: _withCtx(() => [(_openBlock(), _createElementBlock("div", {
45
40
  key: _ctx.showDate
46
41
  }, _toDisplayString(_ctx.showDate), 1
47
42
  /* TEXT */
@@ -56,9 +51,9 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
56
51
  text: "",
57
52
  "text-color": _ctx.disabled.right ? '' : 'rgba(0, 0, 0, .54)',
58
53
  disabled: _ctx.disabled.right,
59
- onClick: _cache[3] || (_cache[3] = $event => _ctx.checkDate('next'))
54
+ onClick: _cache[2] || (_cache[2] = $event => _ctx.checkDate('next'))
60
55
  }, {
61
- default: _withId(() => [_createVNode(_component_var_icon, {
56
+ default: _withCtx(() => [_createVNode(_component_var_icon, {
62
57
  name: "chevron-right"
63
58
  })]),
64
59
  _: 1
@@ -67,7 +62,7 @@ export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
67
62
  }, 8
68
63
  /* PROPS */
69
64
  , ["text-color", "disabled"])]);
70
- });
65
+ }
71
66
  export default defineComponent({
72
67
  render,
73
68
  name: 'PanelHeader',
@@ -1,34 +1,30 @@
1
1
  import { defineComponent, computed, onMounted } from 'vue';
2
- import dayjs from 'dayjs';
2
+ import dayjs from 'dayjs/esm';
3
3
  import { toNumber } from '../../utils/shared';
4
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock, toDisplayString as _toDisplayString, withScopeId as _withScopeId, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
4
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
5
5
 
6
- var _withId = /*#__PURE__*/_withScopeId("");
7
-
8
- _pushScopeId("");
6
+ var _withScopeId = n => (_pushScopeId(""), n = n(), _popScopeId(), n);
9
7
 
10
8
  var _hoisted_1 = {
11
9
  class: "var-year-picker__panel"
12
10
  };
13
-
14
- _popScopeId();
15
-
16
- export var render = /*#__PURE__*/_withId((_ctx, _cache) => {
17
- return _openBlock(), _createBlock("ul", _hoisted_1, [(_openBlock(true), _createBlock(_Fragment, null, _renderList(_ctx.yearList, year => {
18
- return _openBlock(), _createBlock("li", {
11
+ var _hoisted_2 = ["onClick"];
12
+ export function render(_ctx, _cache) {
13
+ return _openBlock(), _createElementBlock("ul", _hoisted_1, [(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.yearList, year => {
14
+ return _openBlock(), _createElementBlock("li", {
19
15
  key: year,
20
- class: [year === _ctx.toNumber(_ctx.preview) ? 'var-year-picker__panel--active' : null],
21
- style: {
16
+ class: _normalizeClass([year === _ctx.toNumber(_ctx.preview) ? 'var-year-picker__panel--active' : null]),
17
+ style: _normalizeStyle({
22
18
  color: year === _ctx.toNumber(_ctx.preview) ? _ctx.componentProps.color : ''
23
- },
19
+ }),
24
20
  onClick: $event => _ctx.chooseYear(year)
25
21
  }, _toDisplayString(year), 15
26
22
  /* TEXT, CLASS, STYLE, PROPS */
27
- , ["onClick"]);
23
+ , _hoisted_2);
28
24
  }), 128
29
25
  /* KEYED_FRAGMENT */
30
26
  ))]);
31
- });
27
+ }
32
28
  export default defineComponent({
33
29
  render,
34
30
  name: 'YearPickerPanel',