@opentiny/vue-filter-box
Advanced tools
Comparing version 2.8.0 to 3.8.0
192
lib/index.js
@@ -19,58 +19,50 @@ function _extends() { | ||
import Tooltip from "@opentiny/vue-tooltip"; | ||
function normalizeComponent(scriptExports, render, staticRenderFns, functionalTemplate, injectStyles, scopeId, moduleIdentifier, shadowMode) { | ||
var options = typeof scriptExports === "function" ? scriptExports.options : scriptExports; | ||
if (render) { | ||
options.render = render; | ||
options.staticRenderFns = staticRenderFns; | ||
options._compiled = true; | ||
} | ||
if (functionalTemplate) { | ||
options.functional = true; | ||
} | ||
if (scopeId) { | ||
options._scopeId = "data-v-" + scopeId; | ||
} | ||
var hook; | ||
if (moduleIdentifier) { | ||
hook = function hook2(context) { | ||
context = context || // cached call | ||
this.$vnode && this.$vnode.ssrContext || // stateful | ||
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; | ||
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") { | ||
context = __VUE_SSR_CONTEXT__; | ||
} | ||
if (injectStyles) { | ||
injectStyles.call(this, context); | ||
} | ||
if (context && context._registeredComponents) { | ||
context._registeredComponents.add(moduleIdentifier); | ||
} | ||
import { resolveComponent, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createBlock, withCtx, createVNode, createCommentVNode, withModifiers } 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++] }; | ||
}; | ||
options._ssrRegister = hook; | ||
} else if (injectStyles) { | ||
hook = shadowMode ? function() { | ||
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot); | ||
} : injectStyles; | ||
} | ||
if (hook) { | ||
if (options.functional) { | ||
options._injectStyles = hook; | ||
var originalRender = options.render; | ||
options.render = function renderWithStyleInjection(h, context) { | ||
hook.call(context); | ||
return originalRender(h, context); | ||
}; | ||
} else { | ||
var existing = options.beforeCreate; | ||
options.beforeCreate = existing ? [].concat(existing, hook) : [hook]; | ||
} | ||
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 { | ||
exports: scriptExports, | ||
options | ||
}; | ||
} | ||
return target; | ||
}; | ||
import "@opentiny/vue-theme/filter-box/index.css"; | ||
var __vue2_script = defineComponent({ | ||
var _sfc_main = defineComponent({ | ||
name: $prefix + "FilterBox", | ||
@@ -111,44 +103,62 @@ emits: ["click", "handle-clear"], | ||
}); | ||
var render = function render2() { | ||
var _vm = this; | ||
var _h = _vm.$createElement; | ||
var _c = _vm._self._c || _h; | ||
return _c("div", { | ||
class: ["tiny-filter-box", _vm.disabled && "disabled"], | ||
on: { | ||
"click": _vm.handeClick | ||
} | ||
}, [_c("p", { | ||
class: ["title", _vm.dropDownVisible && "active"] | ||
}, [_c("label", [_vm._v(_vm._s(_vm.label))]), _vm.tip ? _c("tiny-tooltip", { | ||
attrs: { | ||
"effect": "light", | ||
"content": _vm.tip, | ||
"placement": "top" | ||
} | ||
}, [_c("icon-help-circle")], 1) : _vm._e()], 1), _c("p", { | ||
staticClass: "value" | ||
}, [_vm._v(" " + _vm._s(_vm.value) + " ")]), _vm.value && _vm.showClose && !_vm.disabled ? _c("icon-error", { | ||
staticClass: "filter-icon-close", | ||
on: { | ||
"click": function click($event) { | ||
$event.stopPropagation(); | ||
return _vm.handleClear.apply(null, arguments); | ||
} | ||
} | ||
}) : _c("icon-arrow-bottom", { | ||
class: ["filter-box-icon", _vm.dropDownVisible && "is-reverse"] | ||
})], 1); | ||
var _hoisted_1 = { | ||
class: "value" | ||
}; | ||
var staticRenderFns = []; | ||
var __cssModules = {}; | ||
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null); | ||
function __vue2_injectStyles(context) { | ||
for (var o in __cssModules) { | ||
this[o] = __cssModules[o]; | ||
} | ||
function _sfc_render(_ctx, _cache, $props2, $setup, $data, $options) { | ||
var _component_icon_help_circle = resolveComponent("icon-help-circle"); | ||
var _component_tiny_tooltip = resolveComponent("tiny-tooltip"); | ||
var _component_icon_error = resolveComponent("icon-error"); | ||
var _component_icon_arrow_bottom = resolveComponent("icon-arrow-bottom"); | ||
return openBlock(), createElementBlock( | ||
"div", | ||
{ | ||
class: normalizeClass(["tiny-filter-box", _ctx.disabled && "disabled"]), | ||
onClick: _cache[0] || (_cache[0] = function() { | ||
return _ctx.handeClick && _ctx.handeClick.apply(_ctx, arguments); | ||
}) | ||
}, | ||
[createElementVNode( | ||
"p", | ||
{ | ||
class: normalizeClass(["title", _ctx.dropDownVisible && "active"]) | ||
}, | ||
[createElementVNode( | ||
"label", | ||
null, | ||
toDisplayString(_ctx.label), | ||
1 | ||
/* TEXT */ | ||
), _ctx.tip ? (openBlock(), createBlock(_component_tiny_tooltip, { | ||
key: 0, | ||
effect: "light", | ||
content: _ctx.tip, | ||
placement: "top" | ||
}, { | ||
default: withCtx(function() { | ||
return [createVNode(_component_icon_help_circle)]; | ||
}), | ||
_: 1 | ||
/* STABLE */ | ||
}, 8, ["content"])) : createCommentVNode("v-if", true)], | ||
2 | ||
/* CLASS */ | ||
), createElementVNode( | ||
"p", | ||
_hoisted_1, | ||
toDisplayString(_ctx.value), | ||
1 | ||
/* TEXT */ | ||
), _ctx.value && _ctx.showClose && !_ctx.disabled ? (openBlock(), createBlock(_component_icon_error, { | ||
key: 0, | ||
class: "filter-icon-close", | ||
onClick: withModifiers(_ctx.handleClear, ["stop"]) | ||
}, null, 8, ["onClick"])) : (openBlock(), createBlock(_component_icon_arrow_bottom, { | ||
key: 1, | ||
class: normalizeClass(["filter-box-icon", _ctx.dropDownVisible && "is-reverse"]) | ||
}, null, 8, ["class"]))], | ||
2 | ||
/* CLASS */ | ||
); | ||
} | ||
var FilterBox = /* @__PURE__ */ function() { | ||
return __component__.exports; | ||
}(); | ||
var FilterBox = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render]]); | ||
var version = "5.0.0-mf.0"; | ||
@@ -155,0 +165,0 @@ FilterBox.install = function(Vue) { |
{ | ||
"name": "@opentiny/vue-filter-box", | ||
"version": "2.8.0", | ||
"version": "3.8.0", | ||
"description": "", | ||
@@ -9,5 +9,5 @@ "main": "./lib/index.js", | ||
"@opentiny/vue-renderless": "~3.8.0", | ||
"@opentiny/vue-common": "~2.8.0", | ||
"@opentiny/vue-icon": "~2.8.0", | ||
"@opentiny/vue-tooltip": "~2.8.0" | ||
"@opentiny/vue-common": "~3.8.0", | ||
"@opentiny/vue-icon": "~3.8.0", | ||
"@opentiny/vue-tooltip": "~3.8.0" | ||
}, | ||
@@ -14,0 +14,0 @@ "license": "MIT", |
@@ -1,2 +0,24 @@ | ||
declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{ | ||
declare const _sfc_main: import("@vue/runtime-core").DefineComponent<{ | ||
label: StringConstructor; | ||
value: (StringConstructor | NumberConstructor)[]; | ||
tip: StringConstructor; | ||
showClose: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
disabled: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
dropDownVisible: { | ||
type: BooleanConstructor; | ||
default: boolean; | ||
}; | ||
tiny_mode: StringConstructor; | ||
tiny_mode_root: BooleanConstructor; | ||
tiny_template: (FunctionConstructor | ObjectConstructor)[]; | ||
tiny_renderless: FunctionConstructor; | ||
tiny_theme: StringConstructor; | ||
tiny_chart_theme: ObjectConstructor; | ||
}, { | ||
t: (this: any, path: any, options?: any) => any; | ||
@@ -10,3 +32,3 @@ vm: any; | ||
m: (...cssClasses: any[]) => string; | ||
}> & import("@vue/composition-api").Data, {}, {}, { | ||
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "handle-clear")[], "click" | "handle-clear", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{ | ||
label: StringConstructor; | ||
@@ -33,2 +55,5 @@ value: (StringConstructor | NumberConstructor)[]; | ||
tiny_chart_theme: ObjectConstructor; | ||
}>> & { | ||
onClick?: ((...args: any[]) => any) | undefined; | ||
"onHandle-clear"?: ((...args: any[]) => any) | undefined; | ||
}, { | ||
@@ -39,53 +64,3 @@ disabled: boolean; | ||
dropDownVisible: boolean; | ||
} & { | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
label?: string | undefined; | ||
value?: string | number | undefined; | ||
tip?: string | undefined; | ||
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{ | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
showClose: boolean; | ||
dropDownVisible: boolean; | ||
} & { | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
label?: string | undefined; | ||
value?: string | number | undefined; | ||
tip?: string | undefined; | ||
}, import("@vue/composition-api").ShallowUnwrapRef<{ | ||
t: (this: any, path: any, options?: any) => any; | ||
vm: any; | ||
f: (props: any, attrs?: {}) => {}; | ||
a: (attrs: any, filters: any, include: any) => {}; | ||
d: (props: any) => void; | ||
dp: (props: any) => void; | ||
gcls: (key: any) => any; | ||
m: (...cssClasses: any[]) => string; | ||
}>, import("@vue/composition-api").Data, {}, {}, { | ||
disabled: boolean; | ||
tiny_mode_root: boolean; | ||
showClose: boolean; | ||
dropDownVisible: boolean; | ||
} & { | ||
tiny_mode?: string | undefined; | ||
tiny_template?: unknown; | ||
tiny_renderless?: Function | undefined; | ||
tiny_theme?: string | undefined; | ||
tiny_chart_theme?: Record<string, any> | undefined; | ||
label?: string | undefined; | ||
value?: string | number | undefined; | ||
tip?: string | undefined; | ||
}, { | ||
disabled: boolean; | ||
showClose: boolean; | ||
dropDownVisible: boolean; | ||
}, true>); | ||
}>; | ||
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
9211
234
1
+ Added@opentiny/vue-common@3.8.3(transitive)
+ Added@opentiny/vue-icon@3.8.3(transitive)
+ Added@opentiny/vue-locale@3.8.3(transitive)
+ Added@opentiny/vue-tooltip@3.8.3(transitive)
- Removed@babel/helper-string-parser@7.25.9(transitive)
- Removed@babel/helper-validator-identifier@7.25.9(transitive)
- Removed@babel/parser@7.26.2(transitive)
- Removed@babel/types@7.26.0(transitive)
- Removed@opentiny/vue-common@2.8.3(transitive)
- Removed@opentiny/vue-icon@2.8.3(transitive)
- Removed@opentiny/vue-locale@2.8.3(transitive)
- Removed@opentiny/vue-tooltip@2.8.3(transitive)
- Removed@vue/compiler-sfc@2.7.16(transitive)
- Removed@vue/composition-api@1.2.4(transitive)
- Removedcsstype@3.1.3(transitive)
- Removednanoid@3.3.7(transitive)
- Removedpicocolors@1.1.1(transitive)
- Removedpostcss@8.4.49(transitive)
- Removedprettier@2.8.8(transitive)
- Removedsource-map@0.6.1(transitive)
- Removedsource-map-js@1.2.1(transitive)
- Removedtslib@2.8.1(transitive)
- Removedvue@2.7.16(transitive)
Updated@opentiny/vue-common@~3.8.0
Updated@opentiny/vue-icon@~3.8.0
Updated@opentiny/vue-tooltip@~3.8.0