@opentinyvue/vue-date-table 3.21.0 → 3.22.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 CHANGED
@@ -7,10 +7,10 @@ function _extends() {
7
7
  return n;
8
8
  }, _extends.apply(null, arguments);
9
9
  }
10
- import { defineComponent, $prefix, $props, $setup } from "@opentinyvue/vue-common";
10
+ import { defineComponent, $props, $setup, $prefix } from "@opentinyvue/vue-common";
11
11
  import PcTemplate from "./pc.js";
12
12
  import MobileFirstTemplate from "./mobile-first.js";
13
- import { isDate } from "@opentinyvue/vue-renderless/common/deps/date-util";
13
+ import { isDate1 } from "@opentinyvue/utils";
14
14
  import "@opentinyvue/vue-theme/date-table/index.css";
15
15
  var template = function template2(mode) {
16
16
  var _process$env;
@@ -31,7 +31,7 @@ var DateTable = defineComponent({
31
31
  date: {},
32
32
  defaultValue: {
33
33
  validator: function validator(val) {
34
- return val === null || isDate(val) || Array.isArray(val) && val.every(isDate);
34
+ return val === null || isDate1(val) || Array.isArray(val) && val.every(isDate1);
35
35
  }
36
36
  },
37
37
  disabledDate: {},
@@ -59,9 +59,11 @@ var DateTable = defineComponent({
59
59
  },
60
60
  showWeekNumber: {
61
61
  type: Boolean,
62
- default: function _default3() {
63
- return false;
64
- }
62
+ default: false
63
+ },
64
+ readonly: {
65
+ type: Boolean,
66
+ default: false
65
67
  },
66
68
  value: {},
67
69
  formatWeeks: Function
@@ -74,7 +76,7 @@ var DateTable = defineComponent({
74
76
  });
75
77
  }
76
78
  });
77
- var version = "3.21.0";
79
+ var version = "3.22.0";
78
80
  DateTable.install = function(Vue) {
79
81
  Vue.component(DateTable.name, DateTable);
80
82
  };
package/lib/pc.js CHANGED
@@ -37,7 +37,7 @@ var _export_sfc = function _export_sfc2(sfc, props) {
37
37
 
38
38
  var _sfc_main = defineComponent({
39
39
  emits: ["changerange", "pick"],
40
- props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks"]),
40
+ props: [].concat(props, ["cellClassName", "date", "defaultValue", "disabledDate", "firstDayOfWeek", "maxDate", "minDate", "rangeState", "selectionMode", "showWeekNumber", "value", "formatWeeks", "readonly"]),
41
41
  setup: function setup$1(props2, context) {
42
42
  return setup({
43
43
  props: props2,
package/package.json CHANGED
@@ -1,17 +1,18 @@
1
1
  {
2
2
  "name": "@opentinyvue/vue-date-table",
3
- "version": "3.21.0",
3
+ "type": "module",
4
+ "version": "3.22.0",
4
5
  "description": "",
6
+ "license": "MIT",
7
+ "sideEffects": false,
5
8
  "main": "./lib/index.js",
6
9
  "module": "./lib/index.js",
7
- "sideEffects": false,
8
- "type": "module",
9
10
  "dependencies": {
10
- "@opentinyvue/vue-common": "~3.21.0",
11
- "@opentinyvue/vue-renderless": "~3.21.0",
12
- "@opentinyvue/vue-theme": "~3.21.0"
11
+ "@opentinyvue/utils": "~3.22.0",
12
+ "@opentinyvue/vue-common": "~3.22.0",
13
+ "@opentinyvue/vue-renderless": "~3.22.0",
14
+ "@opentinyvue/vue-theme": "~3.22.0"
13
15
  },
14
- "license": "MIT",
15
16
  "types": "index.d.ts",
16
17
  "scripts": {
17
18
  "build": "pnpm -w build:ui $npm_package_name",
package/src/index.d.ts CHANGED
@@ -23,7 +23,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
23
23
  };
24
24
  showWeekNumber: {
25
25
  type: BooleanConstructor;
26
- default: () => false;
26
+ default: boolean;
27
+ };
28
+ readonly: {
29
+ type: BooleanConstructor;
30
+ default: boolean;
27
31
  };
28
32
  value: {};
29
33
  formatWeeks: FunctionConstructor;
@@ -60,7 +64,11 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
60
64
  };
61
65
  showWeekNumber: {
62
66
  type: BooleanConstructor;
63
- default: () => false;
67
+ default: boolean;
68
+ };
69
+ readonly: {
70
+ type: BooleanConstructor;
71
+ default: boolean;
64
72
  };
65
73
  value: {};
66
74
  formatWeeks: FunctionConstructor;
@@ -72,6 +80,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{
72
80
  tiny_chart_theme: ObjectConstructor;
73
81
  }>>, {
74
82
  tiny_mode_root: boolean;
83
+ readonly: boolean;
75
84
  showWeekNumber: boolean;
76
85
  firstDayOfWeek: number;
77
86
  rangeState: {
package/src/pc.vue.d.ts CHANGED
@@ -8,6 +8,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
8
8
  _constants?: any;
9
9
  tiny_theme?: any;
10
10
  tiny_chart_theme?: any;
11
+ readonly?: any;
11
12
  defaultValue?: any;
12
13
  minDate?: any;
13
14
  maxDate?: any;
@@ -37,6 +38,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
37
38
  _constants?: any;
38
39
  tiny_theme?: any;
39
40
  tiny_chart_theme?: any;
41
+ readonly?: any;
40
42
  defaultValue?: any;
41
43
  minDate?: any;
42
44
  maxDate?: any;
@@ -60,6 +62,7 @@ declare const _default: import("@vue/runtime-core").DefineComponent<Readonly<{
60
62
  readonly _constants?: any;
61
63
  readonly tiny_theme?: any;
62
64
  readonly tiny_chart_theme?: any;
65
+ readonly readonly?: any;
63
66
  readonly defaultValue?: any;
64
67
  readonly minDate?: any;
65
68
  readonly maxDate?: any;