@opentiny/vue-month-table
Advanced tools
Comparing version 3.6.0 to 3.6.1-alpha.0
@@ -0,0 +0,0 @@ /** |
159
lib/index.js
@@ -1,9 +0,53 @@ | ||
import { renderless, api } from '@opentiny/vue-renderless/month-table/vue'; | ||
import { $prefix, setup } from '@opentiny/vue-common'; | ||
import { isDate } from '@opentiny/vue-renderless/common/deps/date-util'; | ||
import { openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString } from 'vue'; | ||
import { renderless, api } from "@opentiny/vue-renderless/month-table/vue"; | ||
import { defineComponent, $prefix, setup as _setup } from "@opentiny/vue-common"; | ||
import { isDate } from "@opentiny/vue-renderless/common/deps/date-util"; | ||
import { openBlock, createElementBlock, createElementVNode, Fragment, renderList, normalizeClass, toDisplayString } from "vue"; | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
if (it) | ||
return (it = it.call(o)).next.bind(it); | ||
if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { | ||
if (it) | ||
o = it; | ||
var i = 0; | ||
return function() { | ||
if (i >= o.length) | ||
return { done: true }; | ||
return { done: false, value: o[i++] }; | ||
}; | ||
} | ||
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); | ||
} | ||
function _unsupportedIterableToArray(o, minLen) { | ||
if (!o) | ||
return; | ||
if (typeof o === "string") | ||
return _arrayLikeToArray(o, minLen); | ||
var n = Object.prototype.toString.call(o).slice(8, -1); | ||
if (n === "Object" && o.constructor) | ||
n = o.constructor.name; | ||
if (n === "Map" || n === "Set") | ||
return Array.from(o); | ||
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) | ||
return _arrayLikeToArray(o, minLen); | ||
} | ||
function _arrayLikeToArray(arr, len) { | ||
if (len == null || len > arr.length) | ||
len = arr.length; | ||
for (var i = 0, arr2 = new Array(len); i < len; i++) | ||
arr2[i] = arr[i]; | ||
return arr2; | ||
} | ||
var _export_sfc = function _export_sfc2(sfc, props) { | ||
var target = sfc.__vccOpts || sfc; | ||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) { | ||
var _step$value = _step.value, key = _step$value[0], val = _step$value[1]; | ||
target[key] = val; | ||
} | ||
return target; | ||
}; | ||
var script = { | ||
name: $prefix + 'MonthTable', | ||
emits: ['changerange', 'pick'], | ||
var _sfc_main = /* @__PURE__ */ defineComponent({ | ||
name: $prefix + "MonthTable", | ||
emits: ["changerange", "pick"], | ||
props: { | ||
@@ -28,49 +72,72 @@ date: {}, | ||
selectionMode: { | ||
default: 'month' | ||
default: "month" | ||
}, | ||
value: {} | ||
}, | ||
setup: function setup$1(props, context) { | ||
return setup({ | ||
props: props, | ||
context: context, | ||
renderless: renderless, | ||
api: api, | ||
setup: function setup(props, context) { | ||
return _setup({ | ||
props, | ||
context, | ||
renderless, | ||
api, | ||
mono: true | ||
}); | ||
} | ||
}; | ||
}); | ||
var _hoisted_1 = ["textContent"]; | ||
function render(_ctx, _cache, $props, $setup, $data, $options) { | ||
return openBlock(), createElementBlock("table", { | ||
class: "tiny-month-table", | ||
onMousemove: _cache[0] || (_cache[0] = function () { | ||
return _ctx.handleMouseMove && _ctx.handleMouseMove.apply(_ctx, arguments); | ||
}), | ||
onClick: _cache[1] || (_cache[1] = function () { | ||
return _ctx.handleMonthTableClick && _ctx.handleMonthTableClick.apply(_ctx, arguments); | ||
}) | ||
}, [createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.state.rows, function (row, key) { | ||
return openBlock(), createElementBlock("tr", { | ||
key: key | ||
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(row, function (cell, key) { | ||
return openBlock(), createElementBlock("td", { | ||
class: normalizeClass(_ctx.getCellStyle(cell)), | ||
key: key | ||
}, [createElementVNode("div", null, [createElementVNode("a", { | ||
class: "cell", | ||
textContent: toDisplayString(_ctx.t('ui.datepicker.months.' + _ctx.state.months[cell.text])) | ||
}, null, 8, _hoisted_1)])], 2); | ||
}), 128))]); | ||
}), 128))])], 32); | ||
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) { | ||
return openBlock(), createElementBlock( | ||
"table", | ||
{ | ||
class: "tiny-month-table", | ||
onMousemove: _cache[0] || (_cache[0] = function() { | ||
return _ctx.handleMouseMove && _ctx.handleMouseMove.apply(_ctx, arguments); | ||
}), | ||
onClick: _cache[1] || (_cache[1] = function() { | ||
return _ctx.handleMonthTableClick && _ctx.handleMonthTableClick.apply(_ctx, arguments); | ||
}) | ||
}, | ||
[createElementVNode("tbody", null, [(openBlock(true), createElementBlock( | ||
Fragment, | ||
null, | ||
renderList(_ctx.state.rows, function(row, key) { | ||
return openBlock(), createElementBlock("tr", { | ||
key | ||
}, [(openBlock(true), createElementBlock( | ||
Fragment, | ||
null, | ||
renderList(row, function(cell, key2) { | ||
return openBlock(), createElementBlock( | ||
"td", | ||
{ | ||
class: normalizeClass(_ctx.getCellStyle(cell)), | ||
key: key2 | ||
}, | ||
[createElementVNode("div", null, [createElementVNode("a", { | ||
class: "cell", | ||
textContent: toDisplayString(_ctx.t("ui.datepicker.months." + _ctx.state.months[cell.text])) | ||
}, null, 8, _hoisted_1)])], | ||
2 | ||
/* CLASS */ | ||
); | ||
}), | ||
128 | ||
/* KEYED_FRAGMENT */ | ||
))]); | ||
}), | ||
128 | ||
/* KEYED_FRAGMENT */ | ||
))])], | ||
32 | ||
/* HYDRATE_EVENTS */ | ||
); | ||
} | ||
script.render = render; | ||
script.install = function (Vue) { | ||
Vue.component(script.name, script); | ||
var MonthTable = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); | ||
var version = "3.7.0"; | ||
MonthTable.install = function(Vue) { | ||
Vue.component(MonthTable.name, MonthTable); | ||
}; | ||
script.version = '3.6.0'; | ||
export { script as default }; | ||
MonthTable.version = version; | ||
export { | ||
MonthTable as default | ||
}; |
{ | ||
"name": "@opentiny/vue-month-table", | ||
"version": "3.6.0", | ||
"version": "3.6.1-alpha.0", | ||
"description": "", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"lint": "eslint src/**/*{.js,.html,.vue} --quiet", | ||
"build:ui2": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../build/build-ui.js", | ||
"build:ui3": "cross-env BUILD_TARGET=single NODE_ENV=production node ../../example/build/build-ui.js" | ||
}, | ||
"main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.6.0", | ||
"@opentiny/vue-common": "~3.6.0", | ||
"@opentiny/vue-locale": "~3.6.0", | ||
"@opentiny/vue-icon": "~3.6.0", | ||
"@opentiny/vue-theme": "~3.6.0", | ||
"@opentiny/vue-theme-mobile": "~3.6.0" | ||
"@opentiny/vue-renderless": "~3.6.1-alpha.0", | ||
"@opentiny/vue-common": "~3.6.1-alpha.0", | ||
"@opentiny/vue-locale": "~3.6.1-alpha.0" | ||
}, | ||
"license": "MIT", | ||
"types": "index.d.ts", | ||
"sideEffects": false | ||
"scripts": { | ||
"build": "pnpm -w build:ui $npm_package_name", | ||
"//postversion": "pnpm build" | ||
} | ||
} |
@@ -1,3 +0,6 @@ | ||
declare const _default: import("vue").DefineComponent<{ | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<{ | ||
date: {}; | ||
defaultValue: { | ||
validator: (val: unknown) => boolean; | ||
}; | ||
disabledDate: {}; | ||
@@ -17,3 +20,3 @@ maxDate: {}; | ||
}, { | ||
t: any; | ||
t: (this: any, path: any, options?: any) => any; | ||
vm: any; | ||
@@ -24,4 +27,7 @@ f: (props: any, attrs?: {}) => {}; | ||
dp: (props: any) => void; | ||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick" | "changerange")[], "pick" | "changerange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{ | ||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("pick" | "changerange")[], "pick" | "changerange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
date: {}; | ||
defaultValue: { | ||
validator: (val: unknown) => boolean; | ||
}; | ||
disabledDate: {}; | ||
@@ -44,8 +50,5 @@ maxDate: {}; | ||
}, { | ||
selectionMode: string; | ||
rangeState: { | ||
endDate: null; | ||
selecting: boolean; | ||
}; | ||
rangeState: IfAny<V, V, D>; | ||
selectionMode: IfAny<V, V, D>; | ||
}>; | ||
export default _default; | ||
export default _sfc_main; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8149
3
5
206
2
- Removed@opentiny/vue-icon@~3.6.0
- Removed@opentiny/vue-theme@~3.6.0
- Removed@opentiny/vue-theme-mobile@~3.6.0
- Removed@opentiny/vue-icon@3.6.7(transitive)