Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

vue-ctk-date-time-picker

Package Overview
Dependencies
Maintainers
1
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-ctk-date-time-picker - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

dist/umd/vue-ctk-date-time-picker.min.css

65

package.json
{
"name": "vue-ctk-date-time-picker",
"version": "1.1.7",
"description": "A vue component for select date & time (by Chronotruck)",
"version": "1.1.6",
"author": "Mazel <loic.mazuel@chronotruck.com>",
"author": "Louis Mazel <loic.mazuel@chronotruck.com>",
"main": "dist/vue-ctk-date-time-picker.min.js",
"license": "MIT",
"main": "src/main.js",
"private": false,
"scripts": {
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot",
"build": "cross-env NODE_ENV=production webpack --progress --hide-modules",
"lint": "./node_modules/eslint/bin/eslint.js ./"
"lint": "eslint src/**/*.vue",
"build": "npm run build:cjs && npm run build:umd",
"build:cjs": "poi build --format cjs --dist dist",
"build:umd": "poi build --format umd --dist dist/umd",
"build:doc": "vue-styleguidist build",
"serve": "vue-styleguidist server",
"test": "poi test",
"test:watch": "poi test --watch",
"test:cov": "poi test --coverage",
"dev": "cross-env NODE_ENV=development webpack-dev-server --open --hot"
},
"files": [
"src/",
"dist/"
],
"dependencies": {

@@ -19,23 +29,28 @@ "vue": "^2.5.16",

},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"devDependencies": {
"autoprefixer": "^8.0.0",
"babel-core": "^6.26.0",
"babel-loader": "^7.1.2",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.6.0",
"babel-preset-stage-3": "^6.24.1",
"classlist-polyfill": "^1.2.0",
"babel-plugin-istanbul": "^4.1.1",
"babel-plugin-transform-runtime": "^6.22.0",
"babel-preset-env": "^1.3.2",
"babel-preset-stage-2": "^6.22.0",
"chai": "^4.1.2",
"cross-env": "^5.0.5",
"css-loader": "^0.28.7",
"eslint": "^4.19.1",
"file-loader": "^1.1.4",
"node-sass": "^4.5.3",
"sass-loader": "^6.0.6",
"vue-loader": "^13.0.5",
"vue-template-compiler": "^2.4.4",
"webpack": "^3.6.0",
"cssnano-cli": "^1.0.4",
"eslint": "^4.11.0",
"eslint-plugin-vue": "beta",
"karma-chai": "^0.1.0",
"karma-phantomjs-launcher": "^1.0.4",
"karma-phantomjs-shim": "^1.5.0",
"node-glob": "^1.2.0",
"node-sass": "^4.9.1",
"npm-run-all": "^4.0.1",
"poi": "^9.5.2",
"poi-preset-karma": "^9.2.1",
"postcss-cli": "^5.0.0",
"sass-loader": "^7.0.3",
"typescript": "^2.6.1",
"vue-styleguidist": "^1.4.4",
"vue-webpack-loaders": "^1.0.6",
"webpack": "^3.1.0",
"webpack-dev-server": "^2.9.1"

@@ -42,0 +57,0 @@ },

@@ -1,3 +0,1 @@

![vue-ctk-date-time-picker](./assets/illu.png)
# vue-ctk-date-time-picker

@@ -7,32 +5,49 @@

![vue-ctk-date-time-picker](./assets/illu.png)
## Demo
A [demo](https://htmlpreview.github.io/?https://github.com/chronotruck/vue-ctk-date-time-picker/blob/master/demo/dist/index.html) is available
A [demo](https://htmlpreview.github.io/?https://github.com/chronotruck/vue-ctk-date-time-picker/blob/master/styleguide/index.html) is available
## Install
## Installation
``` bash
npm install vue-ctk-date-time-picker --save
### Using yarn
`yarn add vue-ctk-date-time-picker`
### Using npm
`npm i --save vue-ctk-date-time-picker`
## Demo and Docs
`npm run serve`
## Usage
### ES6 Modules / CommonJS
```js
import VueCtkDateTimePicker from 'vue-ctk-date-time-picker';
import 'vue-ctk-date-time-picker/dist/vue-ctk-date-time-picker.min.css';
Vue.component('vue-ctk-date-time-picker', VueCtkDateTimePicker);
```
#### In single component
``` js
import CtkDateTimePicker from 'vue-ctk-date-time-picker'
var yourComponent = new Vue({
components: { CtkDateTimePicker },
...
})
```html
<vue-ctk-date-time-picker></vue-ctk-date-time-picker>
```
``` html
<template>
...
<ctk-date-time-picker
v-model="value"
label="Choose a date time"
:hint="'Text'"
:error-hint="true"
color="#FF0000" />
...
</template>
### UMD
```html
<vue-ctk-date-time-picker></vue-ctk-date-time-picker>
<script src="https://unpkg.com/vue" charset="utf-8"></script>
<script src="./dist/umd/vue-ctk-date-time-picker.min.js" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="./dist/umd/vue-ctk-date-time-picker.min.css">
<script type="text/javascript">
Vue.component('vue-ctk-date-time-picker', window.VueCtkDateTimePicker.default);
</script>
```
## Props API

@@ -71,6 +86,3 @@

## To do
- Mobile support (responsive)
## Contribution

@@ -85,1 +97,17 @@

```
## Build
Build configuration is located in the `poi.config.js` file, to build just run: `npm run build`, it will build to `cjs` and `umd` directories.
## Tests
This template uses karma with chai by default, you can change test settings in poi.config.js
`npm run test`
`npm run test:watch`
`npm run test:cov`
## License
This project is licensed under [MIT License](http://en.wikipedia.org/wiki/MIT_License)

@@ -0,26 +1,9 @@

import Vue from 'vue'
import CtkDateTimePicker from './CtkDateTimePicker.vue'
import 'classlist-polyfill'
import 'babel-polyfill'
if (document.querySelector('#vueCtkDateTimePicker')) {
Vue.component('ctk-date-time-picker', CtkDateTimePicker)
new Vue({
el: '#vueCtkDateTimePicker',
data: function () {
return {
value: '2018-04-05T04:26',
value2: null,
value3: '2018-04-05T14:26',
timePickerValue: '14:26',
minuteInterval: 5,
minuteInterval2: 10,
hint: 'Error message',
errorHint: true,
timeFormat: 'h:mm a',
locale: 'fr'
}
}
})
}
import App from './App.vue'
export default CtkDateTimePicker
Vue.config.productionTip = false;
const app = new Vue({
render: h => h(App)
}).$mount('#app')
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