@opentiny/vue-picker
Advanced tools
Comparing version 3.10.0 to 3.11.0-alpha.0
231
lib/index.js
@@ -12,7 +12,7 @@ import { renderless, api } from "@opentiny/vue-renderless/picker/vue"; | ||
import TimePanel from "@opentiny/vue-time-panel"; | ||
import { iconCalendar, iconTime, iconClose } from "@opentiny/vue-icon"; | ||
import { iconClose, iconCalendar, iconTime } from "@opentiny/vue-icon"; | ||
import Tooltip from "@opentiny/vue-tooltip"; | ||
import FilterBox from "@opentiny/vue-filter-box"; | ||
import { resolveComponent, resolveDirective, openBlock, createElementBlock, withDirectives, createBlock, mergeProps, createSlots, withCtx, createElementVNode, createVNode, Transition, resolveDynamicComponent, createCommentVNode, toDisplayString, normalizeClass, renderSlot } from "vue"; | ||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { | ||
function _createForOfIteratorHelperLoose_tiny(o, allowArrayLike) { | ||
var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; | ||
@@ -55,3 +55,3 @@ if (it) | ||
var target = sfc.__vccOpts || sfc; | ||
for (var _iterator = _createForOfIteratorHelperLoose(props), _step; !(_step = _iterator()).done; ) { | ||
for (var _iterator = _createForOfIteratorHelperLoose_tiny(props), _step; !(_step = _iterator()).done; ) { | ||
var _step$value = _step.value, key = _step$value[0], val = _step$value[1]; | ||
@@ -65,2 +65,113 @@ target[key] = val; | ||
import "@opentiny/vue-theme/input/index.css"; | ||
var pickerProps = { | ||
type: { | ||
type: String, | ||
default: "date" | ||
}, | ||
tabindex: { | ||
type: String, | ||
default: "1" | ||
}, | ||
timeArrowControl: Boolean, | ||
size: String, | ||
format: String, | ||
valueFormat: String, | ||
timeFormat: String, | ||
readonly: Boolean, | ||
placeholder: String, | ||
startPlaceholder: String, | ||
endPlaceholder: String, | ||
prefixIcon: Object, | ||
suffixIcon: Object, | ||
label: String, | ||
shape: String, | ||
tip: String, | ||
clearIcon: { | ||
type: Object, | ||
default: function _default() { | ||
return iconClose(); | ||
} | ||
}, | ||
name: { | ||
default: "", | ||
validator: function validator(value) { | ||
return value === null || value === void 0 || typeof value === "string" || value instanceof String || Array.isArray(value) && value.length === 2 && value.every(function(item) { | ||
return typeof item === "string" || item instanceof String; | ||
}); | ||
} | ||
}, | ||
clearable: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
disabled: Boolean, | ||
id: { | ||
default: "", | ||
validator: function validator2(value) { | ||
return value === null || value === void 0 || typeof value === "string" || value instanceof String || Array.isArray(value) && value.length === 2 && value.every(function(item) { | ||
return typeof item === "string" || item instanceof String; | ||
}); | ||
} | ||
}, | ||
popperClass: String, | ||
popperAppendToBody: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
align: { | ||
type: String, | ||
default: "left" | ||
}, | ||
editable: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
modelValue: {}, | ||
defaultValue: {}, | ||
defaultTime: {}, | ||
rangeSeparator: { | ||
type: [Object, String], | ||
default: "-" | ||
}, | ||
unlinkPanels: Boolean, | ||
pickerOptions: {}, | ||
validateEvent: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
isRange: Boolean, | ||
arrowControl: Boolean, | ||
timezoneData: {}, | ||
showTimezone: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
defaultTimezone: String, | ||
isutc8: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
dbTimezone: Number, | ||
timezone: Number, | ||
iso8601: Boolean, | ||
displayOnly: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
step: { | ||
type: Object, | ||
default: function _default2() { | ||
return { | ||
hour: 1, | ||
minute: 1, | ||
second: 1 | ||
}; | ||
} | ||
}, | ||
showWeekNumber: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
formatWeeks: Function | ||
}; | ||
var _sfc_main = defineComponent({ | ||
@@ -78,113 +189,3 @@ name: $prefix + "Picker", | ||
emits: ["created", "select-change", "update:modelValue", "blur", "focus", "change"], | ||
props: { | ||
type: { | ||
type: String, | ||
default: "date" | ||
}, | ||
tabindex: { | ||
type: String, | ||
default: "1" | ||
}, | ||
timeArrowControl: Boolean, | ||
size: String, | ||
format: String, | ||
valueFormat: String, | ||
timeFormat: String, | ||
readonly: Boolean, | ||
placeholder: String, | ||
startPlaceholder: String, | ||
endPlaceholder: String, | ||
prefixIcon: Object, | ||
suffixIcon: Object, | ||
label: String, | ||
shape: String, | ||
tip: String, | ||
clearIcon: { | ||
type: Object, | ||
default: function _default() { | ||
return iconClose(); | ||
} | ||
}, | ||
name: { | ||
default: "", | ||
validator: function validator(value) { | ||
return value === null || value === void 0 || typeof value === "string" || value instanceof String || Array.isArray(value) && value.length === 2 && value.every(function(item) { | ||
return typeof item === "string" || item instanceof String; | ||
}); | ||
} | ||
}, | ||
clearable: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
disabled: Boolean, | ||
id: { | ||
default: "", | ||
validator: function validator2(value) { | ||
return value === null || value === void 0 || typeof value === "string" || value instanceof String || Array.isArray(value) && value.length === 2 && value.every(function(item) { | ||
return typeof item === "string" || item instanceof String; | ||
}); | ||
} | ||
}, | ||
popperClass: String, | ||
popperAppendToBody: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
align: { | ||
type: String, | ||
default: "left" | ||
}, | ||
editable: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
modelValue: {}, | ||
defaultValue: {}, | ||
defaultTime: {}, | ||
rangeSeparator: { | ||
type: [Object, String], | ||
default: "-" | ||
}, | ||
unlinkPanels: Boolean, | ||
pickerOptions: {}, | ||
validateEvent: { | ||
type: Boolean, | ||
default: true | ||
}, | ||
isRange: Boolean, | ||
arrowControl: Boolean, | ||
timezoneData: {}, | ||
showTimezone: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
defaultTimezone: String, | ||
isutc8: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
dbTimezone: Number, | ||
timezone: Number, | ||
iso8601: Boolean, | ||
displayOnly: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
step: { | ||
type: Object, | ||
default: function _default2() { | ||
return { | ||
hour: 1, | ||
minute: 1, | ||
second: 1 | ||
}; | ||
} | ||
}, | ||
showWeekNumber: { | ||
type: Boolean, | ||
default: false | ||
}, | ||
formatWeeks: Function | ||
}, | ||
props: pickerProps, | ||
directives: directive({ | ||
@@ -470,3 +471,3 @@ Clickoutside | ||
var Picker = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); | ||
var version = "3.10.0"; | ||
var version = "3.11.0-alpha.0"; | ||
Picker.model = { | ||
@@ -473,0 +474,0 @@ prop: "modelValue", |
{ | ||
"name": "@opentiny/vue-picker", | ||
"version": "3.10.0", | ||
"version": "3.11.0-alpha.0", | ||
"description": "", | ||
@@ -10,12 +10,12 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-common": "~3.10.0", | ||
"@opentiny/vue-renderless": "~3.10.0", | ||
"@opentiny/vue-input": "~3.10.0", | ||
"@opentiny/vue-locale": "~3.10.0", | ||
"@opentiny/vue-date-panel": "~3.10.0", | ||
"@opentiny/vue-date-range": "~3.10.0", | ||
"@opentiny/vue-month-range": "~3.10.0", | ||
"@opentiny/vue-time": "~3.10.0", | ||
"@opentiny/vue-time-range": "~3.10.0", | ||
"@opentiny/vue-time-panel": "~3.10.0" | ||
"@opentiny/vue-common": "~3.11.0-alpha.0", | ||
"@opentiny/vue-renderless": "~3.11.0-alpha.0", | ||
"@opentiny/vue-input": "~3.11.0-alpha.0", | ||
"@opentiny/vue-locale": "~3.11.0-alpha.0", | ||
"@opentiny/vue-date-panel": "~3.11.0-alpha.0", | ||
"@opentiny/vue-date-range": "~3.11.0-alpha.0", | ||
"@opentiny/vue-month-range": "~3.11.0-alpha.0", | ||
"@opentiny/vue-time": "~3.11.0-alpha.0", | ||
"@opentiny/vue-time-range": "~3.11.0-alpha.0", | ||
"@opentiny/vue-time-panel": "~3.11.0-alpha.0" | ||
}, | ||
@@ -22,0 +22,0 @@ "license": "MIT", |
@@ -32,3 +32,3 @@ declare const _default: import("@vue/runtime-core").DefineComponent<{ | ||
default: string; | ||
validator(value: unknown): boolean; | ||
validator(value: any): boolean; | ||
}; | ||
@@ -42,3 +42,3 @@ clearable: { | ||
default: string; | ||
validator(value: unknown): boolean; | ||
validator(value: any): boolean; | ||
}; | ||
@@ -112,3 +112,3 @@ popperClass: StringConstructor; | ||
m: (...cssClasses: any[]) => string; | ||
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "created" | "focus" | "blur" | "change" | "select-change")[], "update:modelValue" | "created" | "focus" | "blur" | "change" | "select-change", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
}, unknown, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, ("update:modelValue" | "created" | "blur" | "change" | "focus" | "select-change")[], "update:modelValue" | "created" | "blur" | "change" | "focus" | "select-change", import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
type: { | ||
@@ -144,3 +144,3 @@ type: StringConstructor; | ||
default: string; | ||
validator(value: unknown): boolean; | ||
validator(value: any): boolean; | ||
}; | ||
@@ -154,3 +154,3 @@ clearable: { | ||
default: string; | ||
validator(value: unknown): boolean; | ||
validator(value: any): boolean; | ||
}; | ||
@@ -226,4 +226,6 @@ popperClass: StringConstructor; | ||
disabled: boolean; | ||
tabindex: string; | ||
popperAppendToBody: boolean; | ||
id: string; | ||
tabindex: string; | ||
align: string; | ||
readonly: boolean; | ||
@@ -233,17 +235,15 @@ clearable: boolean; | ||
displayOnly: boolean; | ||
popperAppendToBody: boolean; | ||
editable: boolean; | ||
step: Record<string, any>; | ||
align: string; | ||
iso8601: boolean; | ||
isutc8: boolean; | ||
arrowControl: boolean; | ||
timeArrowControl: boolean; | ||
showWeekNumber: boolean; | ||
unlinkPanels: boolean; | ||
clearIcon: Record<string, any>; | ||
rangeSeparator: string | Record<string, any>; | ||
unlinkPanels: boolean; | ||
isRange: boolean; | ||
arrowControl: boolean; | ||
showTimezone: boolean; | ||
showWeekNumber: boolean; | ||
iso8601: boolean; | ||
isutc8: boolean; | ||
}, {}>; | ||
export default _default; |
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
30761
6
841
2
+ Added@opentiny/vue-action-sheet@3.11.0(transitive)
+ Added@opentiny/vue-button@3.11.0(transitive)
+ Added@opentiny/vue-common@3.11.0(transitive)
+ Added@opentiny/vue-date-panel@3.11.0(transitive)
+ Added@opentiny/vue-date-range@3.11.0(transitive)
+ Added@opentiny/vue-date-table@3.11.0(transitive)
+ Added@opentiny/vue-drawer@3.11.0(transitive)
+ Added@opentiny/vue-icon@3.11.0(transitive)
+ Added@opentiny/vue-input@3.11.0(transitive)
+ Added@opentiny/vue-locale@3.11.0(transitive)
+ Added@opentiny/vue-month-range@3.11.0(transitive)
+ Added@opentiny/vue-month-table@3.11.0(transitive)
+ Added@opentiny/vue-numeric@3.11.0(transitive)
+ Added@opentiny/vue-renderless@3.11.8(transitive)
+ Added@opentiny/vue-scrollbar@3.11.0(transitive)
+ Added@opentiny/vue-theme@3.11.6(transitive)
+ Added@opentiny/vue-theme-mobile@3.11.1(transitive)
+ Added@opentiny/vue-time@3.11.0(transitive)
+ Added@opentiny/vue-time-panel@3.11.0(transitive)
+ Added@opentiny/vue-time-range@3.11.0(transitive)
+ Added@opentiny/vue-time-spinner@3.11.0(transitive)
+ Added@opentiny/vue-tooltip@3.11.0(transitive)
+ Added@opentiny/vue-year-table@3.11.0(transitive)
+ Addedcolor@4.2.3(transitive)
+ Addedcolor-convert@2.0.1(transitive)
+ Addedcolor-name@1.1.4(transitive)
+ Addedcolor-string@1.9.1(transitive)
+ Addedis-arrayish@0.3.2(transitive)
+ Addedsimple-swizzle@0.2.2(transitive)
- Removed@opentiny/vue-action-sheet@3.10.0(transitive)
- Removed@opentiny/vue-button@3.10.0(transitive)
- Removed@opentiny/vue-common@3.10.0(transitive)
- Removed@opentiny/vue-date-panel@3.10.0(transitive)
- Removed@opentiny/vue-date-range@3.10.0(transitive)
- Removed@opentiny/vue-date-table@3.10.0(transitive)
- Removed@opentiny/vue-drawer@3.10.0(transitive)
- Removed@opentiny/vue-icon@3.10.1(transitive)
- Removed@opentiny/vue-input@3.10.2(transitive)
- Removed@opentiny/vue-locale@3.10.0(transitive)
- Removed@opentiny/vue-month-range@3.10.0(transitive)
- Removed@opentiny/vue-month-table@3.10.0(transitive)
- Removed@opentiny/vue-numeric@3.10.0(transitive)
- Removed@opentiny/vue-renderless@3.10.7(transitive)
- Removed@opentiny/vue-scrollbar@3.10.0(transitive)
- Removed@opentiny/vue-theme@3.10.4(transitive)
- Removed@opentiny/vue-theme-mobile@3.10.1(transitive)
- Removed@opentiny/vue-time@3.10.0(transitive)
- Removed@opentiny/vue-time-panel@3.10.0(transitive)
- Removed@opentiny/vue-time-range@3.10.0(transitive)
- Removed@opentiny/vue-time-spinner@3.10.0(transitive)
- Removed@opentiny/vue-tooltip@3.10.1(transitive)
- Removed@opentiny/vue-year-table@3.10.0(transitive)