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

pragma-schema

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pragma-schema - npm Package Compare versions

Comparing version 1.0.59 to 1.0.60

2

package.json
{
"name": "pragma-schema",
"version": "1.0.59",
"version": "1.0.60",
"description": "utility for building pragma schema structures",

@@ -5,0 +5,0 @@ "main": "commonjs/src/schema.js",

@@ -315,15 +315,9 @@ class IdObject {

export class Title {
constructor() {
}
add(key, value) {
this[key] = value;
}
}
export class Translations {
constructor() {
this.titles = new Title();
add(objectName, key, value) {
if (this[objectName] == null) {
this[objectName] = {};
}
this[objectName][key] = value;
}

@@ -456,18 +450,25 @@ }

static gridColumn(attributes) {
const result = {
element: "pragma-grid-column"
static gridColumn(field, title, width, formatters) {
const element = {
field: field,
title: title,
width: width,
formatters: formatters || []
};
SchemaElementFactory.addAttributes(result, attributes);
return result;
return element;
}
static gridVisualisation(attributes) {
static gridVisualisation(id, selection, selectedId, dataSource, perspective, columns, attributes) {
const element = {
element: "pragma-grid",
elements: []
element: "grid",
columns: columns || [],
elements: [],
id: id,
selection: selection,
selectedId: selectedId,
datasource: dataSource,
perspective: perspective
};
SchemaElementFactory.addAttributes(element, attributes);

@@ -506,6 +507,11 @@

static listVisualisation(attributes) {
static listVisualisation(id, templates, dataSource, perspective, selection, selectedId, attributes) {
const element = {
element: "pragma-list",
elements: []
element: "list",
templates: templates || [],
id: id,
datasource: dataSource,
perspective: perspective,
selection: selection,
selectedId: selectedId
};

@@ -589,3 +595,3 @@

static translation(value) {
static translation(path, value) {
if(value !== undefined) {

@@ -596,3 +602,3 @@ const capitalized = `${value.charAt(0).toUpperCase()}${value.slice(1)}`;

label: label,
translation: `@translations.titles.${label}`
translation: `@translations.${path}.${label}`
}

@@ -599,0 +605,0 @@ }

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