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

projection-grid-vue

Package Overview
Dependencies
Maintainers
3
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

projection-grid-vue - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

57

dist/projection-grid-vue.js

@@ -288,7 +288,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

created: function created() {
var core = __WEBPACK_IMPORTED_MODULE_0_projection_grid_core___default.a.createDefault();
var index = core.projections.indexOf(__WEBPACK_IMPORTED_MODULE_0_projection_grid_core__["projections"].defaultContent);
core.projections.splice(index, 0, __WEBPACK_IMPORTED_MODULE_2__projections_default_content__["a" /* default */]);
this.core = core;
this.core = __WEBPACK_IMPORTED_MODULE_0_projection_grid_core___default()();
},

@@ -299,7 +295,21 @@

props: ['config', 'projections', 'renderer'],
data: function data() {
return { state: {} };
},
computed: {
renderModel: function renderModel() {
var model = this.core.compose({
var _this = this;
var model = this.core.useBuiltin({ defaultContentFactory: __WEBPACK_IMPORTED_MODULE_2__projections_default_content__["a" /* default */] }).use(this.projections || []).compose({
config: this.config || {},
projections: this.projections || []
state: this.state,
dispatch: function dispatch(reducer) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
_this.state = reducer.apply(undefined, [_this.state].concat(args));
return _this.state;
}
});

@@ -1297,33 +1307,10 @@ return model;

"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _default; });
/* harmony export (immutable) */ __webpack_exports__["a"] = defaultContentFactory;
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__default_content_vue__ = __webpack_require__(35);
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
function wrap(model) {
var content = model.content;
return content && content.Component ? model : _extends({}, model, {
content: {
Component: __WEBPACK_IMPORTED_MODULE_0__default_content_vue__["a" /* default */],
props: { text: content }
}
});
}
function _default(_ref) {
var _composeCaption = _ref.composeCaption,
_composeTds = _ref.composeTds;
return {
composeCaption: function composeCaption(caption) {
return wrap(_composeCaption(caption));
},
composeTds: function composeTds(td) {
return _composeTds(td).map(wrap);
}
function defaultContentFactory(content) {
return content && content.Component ? content : {
Component: __WEBPACK_IMPORTED_MODULE_0__default_content_vue__["a" /* default */],
props: { text: content }
};

@@ -1330,0 +1317,0 @@ }

{
"name": "projection-grid-vue",
"version": "0.2.2",
"version": "0.2.3",
"description": "```vue\r <template lang=\"pug\">\r .grid-example\r .filter-container\r .grid-container\r grid(config=\"gridConfig\", grid-dataSource=\"gridDataSource\")\r scroll(view-port={{window}} virtualized header.sticky={{ {offset => () => {\r // calculating offset\r }} }})\r filter(v-bind:conditions=\"filters\")\r .pagination-control-container\r </template>",

@@ -25,3 +25,2 @@ "main": "dist/projection-grid-vue",

],
"author": "",
"license": "MIT",

@@ -59,2 +58,3 @@ "bugs": {

"less-loader": "^4.0.5",
"lodash": "^4.17.4",
"raf": "^3.4.0",

@@ -74,3 +74,3 @@ "sinon": "^4.1.2",

"dependencies": {
"projection-grid-core": "^0.2.0",
"projection-grid-core": "0.2.3",
"vue": "^2.4.4"

@@ -77,0 +77,0 @@ },

import DefaultContent from './default-content.vue';
function wrap(model) {
const { content } = model;
return content && content.Component ? model : {
...model,
content: {
Component: DefaultContent,
props: { text: content },
},
export default function defaultContentFactory(content) {
return content && content.Component ? content : {
Component: DefaultContent,
props: { text: content },
};
}
export default function ({
composeCaption,
composeTds,
}) {
return {
composeCaption(caption) {
return wrap(composeCaption(caption));
},
composeTds(td) {
return composeTds(td).map(wrap);
},
};
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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