@opentinyvue/vue-date-table 2.21.0 → 3.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/lib/mobile-first.js +129 -91
- package/lib/pc.js +121 -78
- package/package.json +2 -2
- package/src/index.d.ts +82 -1
- package/src/mobile-first.vue.d.ts +70 -1
- package/src/pc.vue.d.ts +73 -1
package/lib/index.js
CHANGED
package/lib/mobile-first.js
CHANGED
|
@@ -1,35 +1,39 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/date-table/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
+
import { openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList } from 'vue';
|
|
3
4
|
|
|
4
|
-
function
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
6
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
8
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
9
|
+
t && (r = t);
|
|
10
|
+
var o = 0;
|
|
11
|
+
return function() {
|
|
12
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
13
|
+
};
|
|
10
14
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var originalRender = options.render;
|
|
19
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
20
|
-
hook.call(context);
|
|
21
|
-
return originalRender(h, context);
|
|
22
|
-
};
|
|
23
|
-
} else {
|
|
24
|
-
var existing = options.beforeCreate;
|
|
25
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
26
|
-
}
|
|
15
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
|
+
}
|
|
17
|
+
function _unsupportedIterableToArray(r, a) {
|
|
18
|
+
if (r) {
|
|
19
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
20
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
21
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
27
22
|
}
|
|
28
|
-
return {
|
|
29
|
-
exports: scriptExports,
|
|
30
|
-
options
|
|
31
|
-
};
|
|
32
23
|
}
|
|
24
|
+
function _arrayLikeToArray(r, a) {
|
|
25
|
+
(null == a || a > r.length) && (a = r.length);
|
|
26
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
30
|
+
var target = sfc.__vccOpts || sfc;
|
|
31
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
32
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
33
|
+
target[key] = val;
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
33
37
|
|
|
34
38
|
function _extends() {
|
|
35
39
|
return _extends = Object.assign ? Object.assign.bind() : function(n) {
|
|
@@ -60,62 +64,7 @@ var classes = _extends({}, common, {
|
|
|
60
64
|
"end-date": common["start-date"],
|
|
61
65
|
"token": ""
|
|
62
66
|
});
|
|
63
|
-
var
|
|
64
|
-
var _vm = this;
|
|
65
|
-
var _h = _vm.$createElement;
|
|
66
|
-
var _c = _vm._self._c || _h;
|
|
67
|
-
return _c("table", {
|
|
68
|
-
class: ["table-fixed w-full"],
|
|
69
|
-
attrs: {
|
|
70
|
-
"cellpadding": "0",
|
|
71
|
-
"cellspacing": "0",
|
|
72
|
-
"data-tag": "tiny-date-table"
|
|
73
|
-
},
|
|
74
|
-
on: {
|
|
75
|
-
"mousemove": _vm.handleMouseMove,
|
|
76
|
-
"click": _vm.handleClick
|
|
77
|
-
}
|
|
78
|
-
}, [_c("tbody", [_c("tr", [_vm.showWeekNumber ? _c("th", [_c("div", {
|
|
79
|
-
class: _vm.gcls("th")
|
|
80
|
-
}, [_vm._v(_vm._s(_vm.t("ui.datepicker.week")))])]) : _vm._e(), _vm._l(_vm.state.weeks, function(week, weekIdx) {
|
|
81
|
-
return _c("th", {
|
|
82
|
-
key: weekIdx
|
|
83
|
-
}, [_c("div", {
|
|
84
|
-
class: _vm.gcls("th")
|
|
85
|
-
}, [_vm._v(_vm._s(_vm.t("ui.datepicker.weeks." + week)))])]);
|
|
86
|
-
})], 2), _vm._l(_vm.state.rows, function(row, trIdx) {
|
|
87
|
-
return _c("tr", {
|
|
88
|
-
key: trIdx,
|
|
89
|
-
class: {
|
|
90
|
-
current: _vm.isWeekActive(row[1])
|
|
91
|
-
},
|
|
92
|
-
attrs: {
|
|
93
|
-
"data-tag": "tiny-date-table__row"
|
|
94
|
-
}
|
|
95
|
-
}, _vm._l(row, function(cell, tdIdx) {
|
|
96
|
-
return _c("td", {
|
|
97
|
-
key: tdIdx,
|
|
98
|
-
class: _vm.gcls("td"),
|
|
99
|
-
attrs: {
|
|
100
|
-
"data-tag": _vm.getCellClasses(cell)
|
|
101
|
-
}
|
|
102
|
-
}, [_c("div", {
|
|
103
|
-
class: _vm.m(_vm.gcls("cell"), _vm.gcls(_vm.getCssToken(cell, "cell-")), {
|
|
104
|
-
"rounded-l": tdIdx === 0
|
|
105
|
-
}, {
|
|
106
|
-
"rounded-r": tdIdx === 6
|
|
107
|
-
})
|
|
108
|
-
}, [_c("span", {
|
|
109
|
-
class: _vm.m(_vm.gcls("text"), _vm.gcls(_vm.getCellClasses(cell).split(" "))),
|
|
110
|
-
domProps: {
|
|
111
|
-
"textContent": _vm._s(cell.text)
|
|
112
|
-
}
|
|
113
|
-
})])]);
|
|
114
|
-
}), 0);
|
|
115
|
-
})], 2)]);
|
|
116
|
-
};
|
|
117
|
-
var staticRenderFns = [];
|
|
118
|
-
var __vue2_script = defineComponent({
|
|
67
|
+
var _sfc_main = defineComponent({
|
|
119
68
|
props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks"]),
|
|
120
69
|
setup: function setup$1(props2, context) {
|
|
121
70
|
return setup({
|
|
@@ -127,15 +76,104 @@ var __vue2_script = defineComponent({
|
|
|
127
76
|
});
|
|
128
77
|
}
|
|
129
78
|
});
|
|
130
|
-
var
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
79
|
+
var _hoisted_1 = {
|
|
80
|
+
key: 0
|
|
81
|
+
};
|
|
82
|
+
var _hoisted_2 = ["data-tag"];
|
|
83
|
+
var _hoisted_3 = ["textContent"];
|
|
84
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
85
|
+
return openBlock(), createElementBlock(
|
|
86
|
+
"table",
|
|
87
|
+
{
|
|
88
|
+
cellpadding: "0",
|
|
89
|
+
cellspacing: "0",
|
|
90
|
+
"data-tag": "tiny-date-table",
|
|
91
|
+
class: normalizeClass(["table-fixed w-full"]),
|
|
92
|
+
onMousemove: _cache[0] || (_cache[0] = function() {
|
|
93
|
+
return _ctx.handleMouseMove && _ctx.handleMouseMove.apply(_ctx, arguments);
|
|
94
|
+
}),
|
|
95
|
+
onClick: _cache[1] || (_cache[1] = function() {
|
|
96
|
+
return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
|
|
97
|
+
})
|
|
98
|
+
},
|
|
99
|
+
[createElementVNode("tbody", null, [createElementVNode("tr", null, [_ctx.showWeekNumber ? (openBlock(), createElementBlock("th", _hoisted_1, [createElementVNode(
|
|
100
|
+
"div",
|
|
101
|
+
{
|
|
102
|
+
class: normalizeClass(_ctx.gcls("th"))
|
|
103
|
+
},
|
|
104
|
+
toDisplayString(_ctx.t("ui.datepicker.week")),
|
|
105
|
+
3
|
|
106
|
+
/* TEXT, CLASS */
|
|
107
|
+
)])) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(
|
|
108
|
+
Fragment,
|
|
109
|
+
null,
|
|
110
|
+
renderList(_ctx.state.weeks, function(week, weekIdx) {
|
|
111
|
+
return openBlock(), createElementBlock("th", {
|
|
112
|
+
key: weekIdx
|
|
113
|
+
}, [createElementVNode(
|
|
114
|
+
"div",
|
|
115
|
+
{
|
|
116
|
+
class: normalizeClass(_ctx.gcls("th"))
|
|
117
|
+
},
|
|
118
|
+
toDisplayString(_ctx.t("ui.datepicker.weeks." + week)),
|
|
119
|
+
3
|
|
120
|
+
/* TEXT, CLASS */
|
|
121
|
+
)]);
|
|
122
|
+
}),
|
|
123
|
+
128
|
|
124
|
+
/* KEYED_FRAGMENT */
|
|
125
|
+
))]), (openBlock(true), createElementBlock(
|
|
126
|
+
Fragment,
|
|
127
|
+
null,
|
|
128
|
+
renderList(_ctx.state.rows, function(row, trIdx) {
|
|
129
|
+
return openBlock(), createElementBlock(
|
|
130
|
+
"tr",
|
|
131
|
+
{
|
|
132
|
+
"data-tag": "tiny-date-table__row",
|
|
133
|
+
key: trIdx,
|
|
134
|
+
class: normalizeClass({
|
|
135
|
+
current: _ctx.isWeekActive(row[1])
|
|
136
|
+
})
|
|
137
|
+
},
|
|
138
|
+
[(openBlock(true), createElementBlock(
|
|
139
|
+
Fragment,
|
|
140
|
+
null,
|
|
141
|
+
renderList(row, function(cell, tdIdx) {
|
|
142
|
+
return openBlock(), createElementBlock("td", {
|
|
143
|
+
key: tdIdx,
|
|
144
|
+
"data-tag": _ctx.getCellClasses(cell),
|
|
145
|
+
class: normalizeClass(_ctx.gcls("td"))
|
|
146
|
+
}, [createElementVNode(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
class: normalizeClass(_ctx.m(_ctx.gcls("cell"), _ctx.gcls(_ctx.getCssToken(cell, "cell-")), {
|
|
150
|
+
"rounded-l": tdIdx === 0
|
|
151
|
+
}, {
|
|
152
|
+
"rounded-r": tdIdx === 6
|
|
153
|
+
}))
|
|
154
|
+
},
|
|
155
|
+
[createElementVNode("span", {
|
|
156
|
+
textContent: toDisplayString(cell.text),
|
|
157
|
+
class: normalizeClass(_ctx.m(_ctx.gcls("text"), _ctx.gcls(_ctx.getCellClasses(cell).split(" "))))
|
|
158
|
+
}, null, 10, _hoisted_3)],
|
|
159
|
+
2
|
|
160
|
+
/* CLASS */
|
|
161
|
+
)], 10, _hoisted_2);
|
|
162
|
+
}),
|
|
163
|
+
128
|
|
164
|
+
/* KEYED_FRAGMENT */
|
|
165
|
+
))],
|
|
166
|
+
2
|
|
167
|
+
/* CLASS */
|
|
168
|
+
);
|
|
169
|
+
}),
|
|
170
|
+
128
|
|
171
|
+
/* KEYED_FRAGMENT */
|
|
172
|
+
))])],
|
|
173
|
+
32
|
|
174
|
+
/* NEED_HYDRATION */
|
|
175
|
+
);
|
|
136
176
|
}
|
|
137
|
-
var mobileFirst = /* @__PURE__ */
|
|
138
|
-
return __component__.exports;
|
|
139
|
-
}();
|
|
177
|
+
var mobileFirst = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
140
178
|
|
|
141
179
|
export { mobileFirst as default };
|
package/lib/pc.js
CHANGED
|
@@ -1,37 +1,41 @@
|
|
|
1
1
|
import { renderless, api } from '@opentinyvue/vue-renderless/date-table/vue';
|
|
2
2
|
import { defineComponent, props, setup } from '@opentinyvue/vue-common';
|
|
3
|
+
import { openBlock, createElementBlock, normalizeClass, withModifiers, createElementVNode, toDisplayString, createCommentVNode, Fragment, renderList } from 'vue';
|
|
3
4
|
|
|
4
|
-
function
|
|
5
|
-
var
|
|
6
|
-
if (
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
function _createForOfIteratorHelperLoose(r, e) {
|
|
6
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
7
|
+
if (t) return (t = t.call(r)).next.bind(t);
|
|
8
|
+
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
9
|
+
t && (r = t);
|
|
10
|
+
var o = 0;
|
|
11
|
+
return function() {
|
|
12
|
+
return o >= r.length ? { done: true } : { done: false, value: r[o++] };
|
|
13
|
+
};
|
|
10
14
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var originalRender = options.render;
|
|
19
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
20
|
-
hook.call(context);
|
|
21
|
-
return originalRender(h, context);
|
|
22
|
-
};
|
|
23
|
-
} else {
|
|
24
|
-
var existing = options.beforeCreate;
|
|
25
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
26
|
-
}
|
|
15
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
16
|
+
}
|
|
17
|
+
function _unsupportedIterableToArray(r, a) {
|
|
18
|
+
if (r) {
|
|
19
|
+
if ("string" == typeof r) return _arrayLikeToArray(r, a);
|
|
20
|
+
var t = {}.toString.call(r).slice(8, -1);
|
|
21
|
+
return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0;
|
|
27
22
|
}
|
|
28
|
-
return {
|
|
29
|
-
exports: scriptExports,
|
|
30
|
-
options
|
|
31
|
-
};
|
|
32
23
|
}
|
|
24
|
+
function _arrayLikeToArray(r, a) {
|
|
25
|
+
(null == a || a > r.length) && (a = r.length);
|
|
26
|
+
for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];
|
|
27
|
+
return n;
|
|
28
|
+
}
|
|
29
|
+
var _export_sfc = function _export_sfc2(sfc, props) {
|
|
30
|
+
var target = sfc.__vccOpts || sfc;
|
|
31
|
+
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) {
|
|
32
|
+
var _step$value = _step.value, key = _step$value[0], val = _step$value[1];
|
|
33
|
+
target[key] = val;
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
33
37
|
|
|
34
|
-
var
|
|
38
|
+
var _sfc_main = defineComponent({
|
|
35
39
|
emits: ["changerange", "pick"],
|
|
36
40
|
props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks"]),
|
|
37
41
|
setup: function setup$1(props2, context) {
|
|
@@ -44,58 +48,97 @@ var __vue2_script = defineComponent({
|
|
|
44
48
|
});
|
|
45
49
|
}
|
|
46
50
|
});
|
|
47
|
-
var
|
|
48
|
-
|
|
49
|
-
var _h = _vm.$createElement;
|
|
50
|
-
var _c = _vm._self._c || _h;
|
|
51
|
-
return _c("table", {
|
|
52
|
-
class: ["tiny-date-table", {
|
|
53
|
-
"is-week-mode": _vm.selectionMode === "week"
|
|
54
|
-
}],
|
|
55
|
-
attrs: {
|
|
56
|
-
"cellspacing": "0",
|
|
57
|
-
"cellpadding": "0"
|
|
58
|
-
},
|
|
59
|
-
on: {
|
|
60
|
-
"mousemove": function mousemove($event) {
|
|
61
|
-
$event.stopPropagation();
|
|
62
|
-
return _vm.handleMouseMove.apply(null, arguments);
|
|
63
|
-
},
|
|
64
|
-
"click": function click($event) {
|
|
65
|
-
$event.stopPropagation();
|
|
66
|
-
return _vm.handleClick.apply(null, arguments);
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
}, [_c("tbody", [_c("tr", {
|
|
70
|
-
staticClass: "tiny-date-table__week"
|
|
71
|
-
}, [_vm.showWeekNumber ? _c("th", [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.week")) + " ")]) : _vm._e(), _vm._l(_vm.state.weeks, function(weekDay, key) {
|
|
72
|
-
return _c("th", {
|
|
73
|
-
key
|
|
74
|
-
}, [_vm._v(" " + _vm._s(_vm.t("ui.datepicker.weeks." + weekDay)) + " ")]);
|
|
75
|
-
})], 2), _vm._l(_vm.state.rows, function(row, key) {
|
|
76
|
-
return _c("tr", {
|
|
77
|
-
key,
|
|
78
|
-
class: ["tiny-date-table__row", {
|
|
79
|
-
current: _vm.isWeekActive(row[1])
|
|
80
|
-
}]
|
|
81
|
-
}, _vm._l(row, function(cellValue, key2) {
|
|
82
|
-
return _c("td", {
|
|
83
|
-
key: key2,
|
|
84
|
-
class: _vm.getCellClasses(cellValue)
|
|
85
|
-
}, [_c("div", [_c("span", [_vm._v(" " + _vm._s(cellValue.text) + " ")])])]);
|
|
86
|
-
}), 0);
|
|
87
|
-
})], 2)]);
|
|
51
|
+
var _hoisted_1 = {
|
|
52
|
+
class: "tiny-date-table__week"
|
|
88
53
|
};
|
|
89
|
-
var
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
function
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
54
|
+
var _hoisted_2 = {
|
|
55
|
+
key: 0
|
|
56
|
+
};
|
|
57
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
58
|
+
return openBlock(), createElementBlock(
|
|
59
|
+
"table",
|
|
60
|
+
{
|
|
61
|
+
class: normalizeClass(["tiny-date-table", {
|
|
62
|
+
"is-week-mode": _ctx.selectionMode === "week"
|
|
63
|
+
}]),
|
|
64
|
+
cellspacing: "0",
|
|
65
|
+
onMousemove: _cache[0] || (_cache[0] = withModifiers(function() {
|
|
66
|
+
return _ctx.handleMouseMove && _ctx.handleMouseMove.apply(_ctx, arguments);
|
|
67
|
+
}, ["stop"])),
|
|
68
|
+
cellpadding: "0",
|
|
69
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(function() {
|
|
70
|
+
return _ctx.handleClick && _ctx.handleClick.apply(_ctx, arguments);
|
|
71
|
+
}, ["stop"]))
|
|
72
|
+
},
|
|
73
|
+
[createElementVNode("tbody", null, [createElementVNode("tr", _hoisted_1, [_ctx.showWeekNumber ? (openBlock(), createElementBlock(
|
|
74
|
+
"th",
|
|
75
|
+
_hoisted_2,
|
|
76
|
+
toDisplayString(_ctx.t("ui.datepicker.week")),
|
|
77
|
+
1
|
|
78
|
+
/* TEXT */
|
|
79
|
+
)) : createCommentVNode("v-if", true), (openBlock(true), createElementBlock(
|
|
80
|
+
Fragment,
|
|
81
|
+
null,
|
|
82
|
+
renderList(_ctx.state.weeks, function(weekDay, key) {
|
|
83
|
+
return openBlock(), createElementBlock(
|
|
84
|
+
"th",
|
|
85
|
+
{
|
|
86
|
+
key
|
|
87
|
+
},
|
|
88
|
+
toDisplayString(_ctx.t("ui.datepicker.weeks." + weekDay)),
|
|
89
|
+
1
|
|
90
|
+
/* TEXT */
|
|
91
|
+
);
|
|
92
|
+
}),
|
|
93
|
+
128
|
|
94
|
+
/* KEYED_FRAGMENT */
|
|
95
|
+
))]), (openBlock(true), createElementBlock(
|
|
96
|
+
Fragment,
|
|
97
|
+
null,
|
|
98
|
+
renderList(_ctx.state.rows, function(row, key) {
|
|
99
|
+
return openBlock(), createElementBlock(
|
|
100
|
+
"tr",
|
|
101
|
+
{
|
|
102
|
+
class: normalizeClass(["tiny-date-table__row", {
|
|
103
|
+
current: _ctx.isWeekActive(row[1])
|
|
104
|
+
}]),
|
|
105
|
+
key
|
|
106
|
+
},
|
|
107
|
+
[(openBlock(true), createElementBlock(
|
|
108
|
+
Fragment,
|
|
109
|
+
null,
|
|
110
|
+
renderList(row, function(cellValue, key2) {
|
|
111
|
+
return openBlock(), createElementBlock(
|
|
112
|
+
"td",
|
|
113
|
+
{
|
|
114
|
+
key: key2,
|
|
115
|
+
class: normalizeClass(_ctx.getCellClasses(cellValue))
|
|
116
|
+
},
|
|
117
|
+
[createElementVNode("div", null, [createElementVNode(
|
|
118
|
+
"span",
|
|
119
|
+
null,
|
|
120
|
+
toDisplayString(cellValue.text),
|
|
121
|
+
1
|
|
122
|
+
/* TEXT */
|
|
123
|
+
)])],
|
|
124
|
+
2
|
|
125
|
+
/* CLASS */
|
|
126
|
+
);
|
|
127
|
+
}),
|
|
128
|
+
128
|
|
129
|
+
/* KEYED_FRAGMENT */
|
|
130
|
+
))],
|
|
131
|
+
2
|
|
132
|
+
/* CLASS */
|
|
133
|
+
);
|
|
134
|
+
}),
|
|
135
|
+
128
|
|
136
|
+
/* KEYED_FRAGMENT */
|
|
137
|
+
))])],
|
|
138
|
+
34
|
|
139
|
+
/* CLASS, NEED_HYDRATION */
|
|
140
|
+
);
|
|
96
141
|
}
|
|
97
|
-
var pc = /* @__PURE__ */
|
|
98
|
-
return __component__.exports;
|
|
99
|
-
}();
|
|
142
|
+
var pc = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]);
|
|
100
143
|
|
|
101
144
|
export { pc as default };
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentinyvue/vue-date-table",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "3.21.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib/index.js",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"type": "module",
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@opentinyvue/vue-common": "~
|
|
10
|
+
"@opentinyvue/vue-common": "~3.21.0",
|
|
11
11
|
"@opentinyvue/vue-renderless": "~3.21.0",
|
|
12
12
|
"@opentinyvue/vue-theme": "~3.21.0"
|
|
13
13
|
},
|
package/src/index.d.ts
CHANGED
|
@@ -1,2 +1,83 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{
|
|
2
|
+
cellClassName: {};
|
|
3
|
+
date: {};
|
|
4
|
+
defaultValue: {
|
|
5
|
+
validator(val: unknown): boolean;
|
|
6
|
+
};
|
|
7
|
+
disabledDate: {};
|
|
8
|
+
firstDayOfWeek: {
|
|
9
|
+
default: number;
|
|
10
|
+
type: NumberConstructor;
|
|
11
|
+
validator: (val: unknown) => boolean;
|
|
12
|
+
};
|
|
13
|
+
maxDate: {};
|
|
14
|
+
minDate: {};
|
|
15
|
+
rangeState: {
|
|
16
|
+
default: () => {
|
|
17
|
+
endDate: null;
|
|
18
|
+
selecting: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
selectionMode: {
|
|
22
|
+
default: () => "day";
|
|
23
|
+
};
|
|
24
|
+
showWeekNumber: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: () => false;
|
|
27
|
+
};
|
|
28
|
+
value: {};
|
|
29
|
+
formatWeeks: FunctionConstructor;
|
|
30
|
+
tiny_mode: StringConstructor;
|
|
31
|
+
tiny_mode_root: BooleanConstructor;
|
|
32
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
33
|
+
tiny_renderless: FunctionConstructor;
|
|
34
|
+
tiny_theme: StringConstructor;
|
|
35
|
+
tiny_chart_theme: ObjectConstructor;
|
|
36
|
+
}, () => import("@vue/runtime-core").VNode<import("@vue/runtime-core").RendererNode, import("@vue/runtime-core").RendererElement, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{
|
|
39
|
+
cellClassName: {};
|
|
40
|
+
date: {};
|
|
41
|
+
defaultValue: {
|
|
42
|
+
validator(val: unknown): boolean;
|
|
43
|
+
};
|
|
44
|
+
disabledDate: {};
|
|
45
|
+
firstDayOfWeek: {
|
|
46
|
+
default: number;
|
|
47
|
+
type: NumberConstructor;
|
|
48
|
+
validator: (val: unknown) => boolean;
|
|
49
|
+
};
|
|
50
|
+
maxDate: {};
|
|
51
|
+
minDate: {};
|
|
52
|
+
rangeState: {
|
|
53
|
+
default: () => {
|
|
54
|
+
endDate: null;
|
|
55
|
+
selecting: boolean;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
selectionMode: {
|
|
59
|
+
default: () => "day";
|
|
60
|
+
};
|
|
61
|
+
showWeekNumber: {
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
default: () => false;
|
|
64
|
+
};
|
|
65
|
+
value: {};
|
|
66
|
+
formatWeeks: FunctionConstructor;
|
|
67
|
+
tiny_mode: StringConstructor;
|
|
68
|
+
tiny_mode_root: BooleanConstructor;
|
|
69
|
+
tiny_template: (ObjectConstructor | FunctionConstructor)[];
|
|
70
|
+
tiny_renderless: FunctionConstructor;
|
|
71
|
+
tiny_theme: StringConstructor;
|
|
72
|
+
tiny_chart_theme: ObjectConstructor;
|
|
73
|
+
}>>, {
|
|
74
|
+
tiny_mode_root: boolean;
|
|
75
|
+
showWeekNumber: boolean;
|
|
76
|
+
firstDayOfWeek: number;
|
|
77
|
+
rangeState: {
|
|
78
|
+
endDate: null;
|
|
79
|
+
selecting: boolean;
|
|
80
|
+
};
|
|
81
|
+
selectionMode: "day";
|
|
82
|
+
}, {}>;
|
|
2
83
|
export default _default;
|
|
@@ -1,2 +1,71 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
value?: any;
|
|
3
|
+
date?: any;
|
|
4
|
+
tiny_mode?: any;
|
|
5
|
+
tiny_mode_root?: any;
|
|
6
|
+
tiny_template?: any;
|
|
7
|
+
tiny_renderless?: any;
|
|
8
|
+
_constants?: any;
|
|
9
|
+
tiny_theme?: any;
|
|
10
|
+
tiny_chart_theme?: any;
|
|
11
|
+
defaultValue?: any;
|
|
12
|
+
minDate?: any;
|
|
13
|
+
maxDate?: any;
|
|
14
|
+
showWeekNumber?: any;
|
|
15
|
+
formatWeeks?: any;
|
|
16
|
+
disabledDate?: any;
|
|
17
|
+
cellClassName?: any;
|
|
18
|
+
firstDayOfWeek?: any;
|
|
19
|
+
rangeState?: any;
|
|
20
|
+
selectionMode?: any;
|
|
21
|
+
}>, {
|
|
22
|
+
t: (this: any, path: any, options?: any) => any;
|
|
23
|
+
vm: any;
|
|
24
|
+
f: (props: any, attrs?: {}) => {};
|
|
25
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
26
|
+
d: (props: any) => void;
|
|
27
|
+
dp: (props: any) => void;
|
|
28
|
+
gcls: (key: any) => any;
|
|
29
|
+
m: (...cssClasses: any[]) => string;
|
|
30
|
+
}, any, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
31
|
+
value?: any;
|
|
32
|
+
date?: any;
|
|
33
|
+
tiny_mode?: any;
|
|
34
|
+
tiny_mode_root?: any;
|
|
35
|
+
tiny_template?: any;
|
|
36
|
+
tiny_renderless?: any;
|
|
37
|
+
_constants?: any;
|
|
38
|
+
tiny_theme?: any;
|
|
39
|
+
tiny_chart_theme?: any;
|
|
40
|
+
defaultValue?: any;
|
|
41
|
+
minDate?: any;
|
|
42
|
+
maxDate?: any;
|
|
43
|
+
showWeekNumber?: any;
|
|
44
|
+
formatWeeks?: any;
|
|
45
|
+
disabledDate?: any;
|
|
46
|
+
cellClassName?: any;
|
|
47
|
+
firstDayOfWeek?: any;
|
|
48
|
+
rangeState?: any;
|
|
49
|
+
selectionMode?: any;
|
|
50
|
+
}>>>, {
|
|
51
|
+
readonly value?: any;
|
|
52
|
+
readonly date?: any;
|
|
53
|
+
readonly tiny_mode?: any;
|
|
54
|
+
readonly tiny_mode_root?: any;
|
|
55
|
+
readonly tiny_template?: any;
|
|
56
|
+
readonly tiny_renderless?: any;
|
|
57
|
+
readonly _constants?: any;
|
|
58
|
+
readonly tiny_theme?: any;
|
|
59
|
+
readonly tiny_chart_theme?: any;
|
|
60
|
+
readonly defaultValue?: any;
|
|
61
|
+
readonly minDate?: any;
|
|
62
|
+
readonly maxDate?: any;
|
|
63
|
+
readonly showWeekNumber?: any;
|
|
64
|
+
readonly formatWeeks?: any;
|
|
65
|
+
readonly disabledDate?: any;
|
|
66
|
+
readonly cellClassName?: any;
|
|
67
|
+
readonly firstDayOfWeek?: any;
|
|
68
|
+
readonly rangeState?: any;
|
|
69
|
+
readonly selectionMode?: any;
|
|
70
|
+
}, {}>;
|
|
2
71
|
export default _default;
|
package/src/pc.vue.d.ts
CHANGED
|
@@ -1,2 +1,74 @@
|
|
|
1
|
-
declare const _default:
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
|
|
2
|
+
value?: any;
|
|
3
|
+
date?: any;
|
|
4
|
+
tiny_mode?: any;
|
|
5
|
+
tiny_mode_root?: any;
|
|
6
|
+
tiny_template?: any;
|
|
7
|
+
tiny_renderless?: any;
|
|
8
|
+
_constants?: any;
|
|
9
|
+
tiny_theme?: any;
|
|
10
|
+
tiny_chart_theme?: any;
|
|
11
|
+
defaultValue?: any;
|
|
12
|
+
minDate?: any;
|
|
13
|
+
maxDate?: any;
|
|
14
|
+
showWeekNumber?: any;
|
|
15
|
+
formatWeeks?: any;
|
|
16
|
+
disabledDate?: any;
|
|
17
|
+
cellClassName?: any;
|
|
18
|
+
firstDayOfWeek?: any;
|
|
19
|
+
rangeState?: any;
|
|
20
|
+
selectionMode?: any;
|
|
21
|
+
}>, {
|
|
22
|
+
t: (this: any, path: any, options?: any) => any;
|
|
23
|
+
vm: any;
|
|
24
|
+
f: (props: any, attrs?: {}) => {};
|
|
25
|
+
a: (attrs: any, filters: any, include: any) => {};
|
|
26
|
+
d: (props: any) => void;
|
|
27
|
+
dp: (props: any) => void;
|
|
28
|
+
gcls: (key: any) => any;
|
|
29
|
+
m: (...cssClasses: any[]) => string;
|
|
30
|
+
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("pick" | "changerange")[], "pick" | "changerange", import("@vue/runtime-core").PublicProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<Readonly<{
|
|
31
|
+
value?: any;
|
|
32
|
+
date?: any;
|
|
33
|
+
tiny_mode?: any;
|
|
34
|
+
tiny_mode_root?: any;
|
|
35
|
+
tiny_template?: any;
|
|
36
|
+
tiny_renderless?: any;
|
|
37
|
+
_constants?: any;
|
|
38
|
+
tiny_theme?: any;
|
|
39
|
+
tiny_chart_theme?: any;
|
|
40
|
+
defaultValue?: any;
|
|
41
|
+
minDate?: any;
|
|
42
|
+
maxDate?: any;
|
|
43
|
+
showWeekNumber?: any;
|
|
44
|
+
formatWeeks?: any;
|
|
45
|
+
disabledDate?: any;
|
|
46
|
+
cellClassName?: any;
|
|
47
|
+
firstDayOfWeek?: any;
|
|
48
|
+
rangeState?: any;
|
|
49
|
+
selectionMode?: any;
|
|
50
|
+
}>>> & {
|
|
51
|
+
onPick?: ((...args: any[]) => any) | undefined;
|
|
52
|
+
onChangerange?: ((...args: any[]) => any) | undefined;
|
|
53
|
+
}, {
|
|
54
|
+
readonly value?: any;
|
|
55
|
+
readonly date?: any;
|
|
56
|
+
readonly tiny_mode?: any;
|
|
57
|
+
readonly tiny_mode_root?: any;
|
|
58
|
+
readonly tiny_template?: any;
|
|
59
|
+
readonly tiny_renderless?: any;
|
|
60
|
+
readonly _constants?: any;
|
|
61
|
+
readonly tiny_theme?: any;
|
|
62
|
+
readonly tiny_chart_theme?: any;
|
|
63
|
+
readonly defaultValue?: any;
|
|
64
|
+
readonly minDate?: any;
|
|
65
|
+
readonly maxDate?: any;
|
|
66
|
+
readonly showWeekNumber?: any;
|
|
67
|
+
readonly formatWeeks?: any;
|
|
68
|
+
readonly disabledDate?: any;
|
|
69
|
+
readonly cellClassName?: any;
|
|
70
|
+
readonly firstDayOfWeek?: any;
|
|
71
|
+
readonly rangeState?: any;
|
|
72
|
+
readonly selectionMode?: any;
|
|
73
|
+
}, {}>;
|
|
2
74
|
export default _default;
|