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

q42-cms-components

Package Overview
Dependencies
Maintainers
1
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

q42-cms-components - npm Package Compare versions

Comparing version 0.2.8 to 0.2.9

6

crud/crud-factory.js

@@ -16,3 +16,4 @@ import { crudStores } from '../tools/crud-stores.js';

store = defaultStore(itemName),
newItem = defaultNewItem(store)
newItem = defaultNewItem(store),
customFields = {}
} = options;

@@ -28,3 +29,3 @@

component: require('./crud-overview.vue'),
itemName, store, fields, newItem
itemName, store, fields, customFields, newItem
},

@@ -52,2 +53,3 @@ '/create': {

<li><code>fields</code> een array van propertynamen voor de kolommen van het overzicht.
<li><code>customFields</code> Optioneel. Een object die mapt van kolom-titel naar component-naam voor het overzicht.
<li><code>store</code> Optioneel. Mogelijkheid om de default store obv. de <code>/items/{itemName}</code> api te overriden.

@@ -54,0 +56,0 @@ <li><code>newItem</code> Optioneel. Een functie die een nieuwe (lege) instance aanmaakt, mag ook een <code>Promise</code> returnen.

{
"name": "q42-cms-components",
"version": "0.2.8",
"version": "0.2.9",
"devDependencies": {

@@ -5,0 +5,0 @@ "autoprefixer": "^6.3.6",

import { ServerStore } from './server-store.js';
var moment = require('moment');

@@ -99,10 +98,3 @@ export class CRUDStore extends ServerStore {

if (prop && prop.title) {
fields[prop.title] = prop.$ref ? (item, crudStores) => {
var store = crudStores.getStoreBySchemaRef(prop.$ref);
var id = item[name + 'Id'];
var refItem = store.items.find(itm => itm.id == id);
return refItem ? refItem[this.state.displayField] : '--';
} : prop.format == 'datetime-picker' ? (item) => {
return moment(item[name]).format("Y-MM-DD LTS");
} : name;
fields[prop.title] = name;
}

@@ -109,0 +101,0 @@ });

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