Socket
Socket
Sign inDemoInstall

@opentiny/vue-month-range

Package Overview
Dependencies
Maintainers
1
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-month-range - npm Package Compare versions

Comparing version 2.6.0 to 2.6.1-alpha.0

index.d.ts

227

lib/index.js

@@ -1,101 +0,45 @@

import { renderless, api } from '@opentiny/vue-renderless/month-range/vue';
import { $prefix, directive, setup } from '@opentiny/vue-common';
import Clickoutside from '@opentiny/vue-renderless/common/deps/clickoutside';
import MonthTable from '@opentiny/vue-month-table';
import { iconDoubleRight, iconDoubleLeft } from '@opentiny/vue-icon';
var script = {
name: $prefix + 'MonthRange',
directives: directive({
Clickoutside: Clickoutside
}),
components: {
MonthTable: MonthTable,
IconDoubleRight: iconDoubleRight(),
IconDoubleLeft: iconDoubleLeft()
},
props: {
emitter: Object
},
emits: ['dodestroy', 'pick'],
setup: function setup$1(props, context) {
return setup({
props: props,
context: context,
renderless: renderless,
api: api,
mono: true
});
import { renderless, api } from "@opentiny/vue-renderless/month-range/vue";
import { defineComponent, $prefix, directive, setup as _setup } from "@opentiny/vue-common";
import Clickoutside from "@opentiny/vue-renderless/common/deps/clickoutside";
import MonthTable from "@opentiny/vue-month-table";
import { iconDoubleRight, iconDoubleLeft } from "@opentiny/vue-icon";
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;
}
};
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier
/* server only */
, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
if (typeof shadowMode !== 'boolean') {
createInjectorSSR = createInjector;
createInjector = shadowMode;
shadowMode = false;
} // Vue.extend constructor export interop.
var options = typeof script === 'function' ? script.options : script; // render functions
if (template && template.render) {
options.render = template.render;
options.staticRenderFns = template.staticRenderFns;
options._compiled = true; // functional template
if (isFunctionalTemplate) {
options.functional = true;
}
} // scopedId
if (functionalTemplate) {
options.functional = true;
}
if (scopeId) {
options._scopeId = scopeId;
options._scopeId = "data-v-" + scopeId;
}
var hook;
if (moduleIdentifier) {
// server build
hook = function hook(context) {
// 2.3 injection
hook = function hook2(context) {
context = context || // cached call
this.$vnode && this.$vnode.ssrContext || // stateful
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext; // functional
// 2.2 with runInNewContext: true
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext;
if (!context && typeof __VUE_SSR_CONTEXT__ !== "undefined") {
context = __VUE_SSR_CONTEXT__;
} // inject component styles
if (style) {
style.call(this, createInjectorSSR(context));
} // register component module identifier for async chunk inference
}
if (injectStyles) {
injectStyles.call(this, context);
}
if (context && context._registeredComponents) {
context._registeredComponents.add(moduleIdentifier);
}
}; // used by ssr in case component is cached and beforeCreate
// never gets called
};
options._ssrRegister = hook;
} else if (style) {
hook = shadowMode ? function () {
style.call(this, createInjectorShadow(this.$root.$options.shadowRoot));
} : function (context) {
style.call(this, createInjector(context));
};
} else if (injectStyles) {
hook = shadowMode ? function() {
injectStyles.call(this, (options.functional ? this.parent : this).$root.$options.shadowRoot);
} : injectStyles;
}
if (hook) {
if (options.functional) {
// register for functional component in vue file
options._injectStyles = hook;
var originalRender = options.render;
options.render = function renderWithStyleInjection(h, context) {

@@ -106,3 +50,2 @@ hook.call(context);

} else {
// inject component registration as beforeCreate hook
var existing = options.beforeCreate;

@@ -112,14 +55,37 @@ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];

}
return script;
return {
exports: scriptExports,
options
};
}
var normalizeComponent_1 = normalizeComponent;
var __vue_script__ = script;
var __vue_render__ = function __vue_render__() {
var __vue2_script = defineComponent({
name: $prefix + "MonthRange",
directives: directive({
Clickoutside
}),
components: {
MonthTable,
IconDoubleRight: iconDoubleRight(),
IconDoubleLeft: iconDoubleLeft()
},
props: {
emitter: Object
},
emits: ["dodestroy", "pick"],
setup: function setup(props, context) {
return _setup({
props,
context,
renderless,
api,
mono: true
});
}
});
var render = function render2() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
return _c('transition', {
return _c("transition", {
attrs: {

@@ -130,6 +96,6 @@ "name": "tiny-zoom-in-top"

"after-leave": function afterLeave($event) {
return _vm.$emit('dodestroy');
return _vm.$emit("dodestroy");
}
}
}, [_c('div', {
}, [_c("div", {
directives: [{

@@ -143,11 +109,11 @@ name: "show",

class: [{
'has-sidebar': _vm.slots.sidebar || _vm.state.shortcuts
"has-sidebar": _vm.slots.sidebar || _vm.state.shortcuts
}, _vm.state.popperClass]
}, [_c('div', {
}, [_c("div", {
staticClass: "tiny-picker-panel__body-wrapper"
}, [_vm._t("sidebar"), _vm._v(" "), _vm.state.shortcuts ? _c('div', {
}, [_vm._t("sidebar"), _vm.state.shortcuts ? _c("div", {
staticClass: "tiny-picker-panel__sidebar"
}, _vm._l(_vm.state.shortcuts, function (shortcut, key) {
return _c('button', {
key: key,
}, _vm._l(_vm.state.shortcuts, function(shortcut, key) {
return _c("button", {
key,
staticClass: "tiny-picker-panel__shortcut",

@@ -162,10 +128,10 @@ attrs: {

}
}, [_vm._v("\n " + _vm._s(shortcut.text) + "\n ")]);
}), 0) : _vm._e(), _vm._v(" "), _c('div', {
}, [_vm._v(" " + _vm._s(shortcut.text) + " ")]);
}), 0) : _vm._e(), _c("div", {
staticClass: "tiny-picker-panel__body"
}, [_c('div', {
}, [_c("div", {
staticClass: "tiny-picker-panel__content tiny-date-range-picker__content is-left"
}, [_c('div', {
}, [_c("div", {
staticClass: "tiny-date-range-picker__header"
}, [_c('button', {
}, [_c("button", {
staticClass: "tiny-picker-panel__icon-btn tiny-icon-d-arrow-left",

@@ -178,6 +144,6 @@ attrs: {

}
}, [_c('icon-double-left')], 1), _vm._v(" "), _vm.state.unlinkPanels ? _c('button', {
}, [_c("icon-double-left")], 1), _vm.state.unlinkPanels ? _c("button", {
staticClass: "tiny-picker-panel__icon-btn tiny-icon-d-arrow-right",
class: {
'is-disabled': !_vm.state.enableYearArrow
"is-disabled": !_vm.state.enableYearArrow
},

@@ -191,3 +157,3 @@ attrs: {

}
}, [_c('icon-double-right')], 1) : _vm._e(), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.state.leftLabel))])]), _vm._v(" "), _c('month-table', {
}, [_c("icon-double-right")], 1) : _vm._e(), _c("div", [_vm._v(_vm._s(_vm.state.leftLabel))])]), _c("month-table", {
attrs: {

@@ -206,10 +172,10 @@ "selection-mode": "range",

}
})], 1), _vm._v(" "), _c('div', {
})], 1), _c("div", {
staticClass: "tiny-picker-panel__content tiny-date-range-picker__content is-right"
}, [_c('div', {
}, [_c("div", {
staticClass: "tiny-date-range-picker__header"
}, [_vm.state.unlinkPanels ? _c('button', {
}, [_vm.state.unlinkPanels ? _c("button", {
staticClass: "tiny-picker-panel__icon-btn tiny-icon-d-arrow-left",
class: {
'is-disabled': !_vm.state.enableYearArrow
"is-disabled": !_vm.state.enableYearArrow
},

@@ -223,3 +189,3 @@ attrs: {

}
}, [_c('icon-double-left')], 1) : _vm._e(), _vm._v(" "), _c('button', {
}, [_c("icon-double-left")], 1) : _vm._e(), _c("button", {
staticClass: "tiny-picker-panel__icon-btn tiny-icon-d-arrow-right",

@@ -232,3 +198,3 @@ attrs: {

}
}, [_c('icon-double-right')], 1), _vm._v(" "), _c('div', [_vm._v(_vm._s(_vm.state.rightLabel))])]), _vm._v(" "), _c('month-table', {
}, [_c("icon-double-right")], 1), _c("div", [_vm._v(_vm._s(_vm.state.rightLabel))])]), _c("month-table", {
attrs: {

@@ -249,17 +215,20 @@ "selection-mode": "range",

};
var __vue_staticRenderFns__ = [];
var __vue_inject_styles__ = undefined;
var __vue_scope_id__ = undefined;
var __vue_module_identifier__ = undefined;
var __vue_is_functional_template__ = false;
var __vue_component__ = normalizeComponent_1({
render: __vue_render__,
staticRenderFns: __vue_staticRenderFns__
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, undefined, undefined, undefined);
__vue_component__.install = function (Vue) {
Vue.component(__vue_component__.name, __vue_component__);
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];
}
}
var MonthRange = /* @__PURE__ */ function() {
return __component__.exports;
}();
var version = "3.7.0";
MonthRange.install = function(Vue) {
Vue.component(MonthRange.name, MonthRange);
};
__vue_component__.version = '2.6.0';
export { __vue_component__ as default };
MonthRange.version = version;
export {
MonthRange as default
};
{
"name": "@opentiny/vue-month-range",
"version": "2.6.0",
"version": "2.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": "~2.6.0",
"@opentiny/vue-locale": "~2.6.0",
"@opentiny/vue-month-table": "~2.6.0",
"@opentiny/vue-icon": "~2.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": "~2.6.1-alpha.0",
"@opentiny/vue-locale": "~2.6.1-alpha.0",
"@opentiny/vue-month-table": "~2.6.1-alpha.0"
},
"license": "MIT",
"sideEffects": false
"types": "index.d.ts",
"scripts": {
"build": "pnpm -w build:ui $npm_package_name",
"//postversion": "pnpm build"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc