pragma-schema
Advanced tools
Comparing version 1.0.31 to 1.0.32
@@ -53,3 +53,2 @@ define(["exports"], function (exports) { | ||
this.remote = remote; | ||
this.preview = {}; | ||
} | ||
@@ -60,7 +59,2 @@ | ||
} | ||
addPreview(remote, idField) { | ||
this.preview["remote"] = remote; | ||
this.preview["id-field"] = idField; | ||
} | ||
}; | ||
@@ -155,6 +149,6 @@ let Column = exports.Column = class Column { | ||
constructor(name, lookup, peek) { | ||
constructor(name, lookup, preview) { | ||
this.name = name; | ||
this.lookup = lookup; | ||
this.peek = peek; | ||
this.preview = preview; | ||
this.validations = ValidationCollection.createInstance(); | ||
@@ -170,4 +164,4 @@ } | ||
add(name, lookup, peek) { | ||
const itemToAdd = new Field(name, lookup, peek); | ||
add(name, lookup, preview) { | ||
const itemToAdd = new Field(name, lookup, preview); | ||
this.push(itemToAdd); | ||
@@ -233,2 +227,25 @@ return itemToAdd; | ||
}; | ||
let Preview = exports.Preview = class Preview extends IdObject { | ||
constructor(id, remote, lookupField, datasetField) { | ||
super(id); | ||
this.remote = remote; | ||
this["lookup-field"] = lookupField; | ||
this["dataset-field"] = datasetField; | ||
} | ||
}; | ||
let PreviewCollection = exports.PreviewCollection = class PreviewCollection extends Array { | ||
static createInstance() { | ||
const result = new PreviewCollection(); | ||
result.__proto__ = PreviewCollection.prototype; | ||
return result; | ||
} | ||
add(remote, lookupField, datasetField) { | ||
const id = this.length; | ||
const itemToAdd = new Preview(id, remote, lookupField, datasetField); | ||
this.push(itemToAdd); | ||
return itemToAdd; | ||
} | ||
}; | ||
let ResourceDataSource = exports.ResourceDataSource = class ResourceDataSource { | ||
@@ -284,2 +301,3 @@ | ||
this.datasets = DatasetCollection.createInstance(); | ||
this.previews = PreviewCollection.createInstance(); | ||
this.datasources = DataSourceCollection.createInstance(); | ||
@@ -415,2 +433,2 @@ this.templates = TemplateCollection.createInstance(); | ||
}); | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3Vy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XHJcblxyXG4gICAgc3RhdGljIHRlbXBsYXRlKHRlbXBsYXRlSWQpIHtcclxuICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBcImVsZW1lbnRcIjogXCJ0ZW1wbGF0ZVwiLFxyXG4gICAgICAgICAgICBcInRlbXBsYXRlXCI6IHRlbXBsYXRlSWRcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIGNhcmQoKSB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgXCJlbGVtZW50XCI6IFwiY2FyZFwiLFxyXG4gICAgICAgICAgICBcImVsZW1lbnRzXCI6IFtdXHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICBzdGF0aWMgaHRtbEVsZW1lbnQoaHRtbFRhZywgY29udGVudCkge1xyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIFwiZWxlbWVudFwiOiBodG1sVGFnLFxyXG4gICAgICAgICAgICBcImNvbnRlbnRcIjogY29udGVudFxyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIHZpc3VhbGl6YXRpb24oZGF0YXNvdXJjZSwgcGVyc3BlY3RpdmUsIHZpZXcpIHtcclxuICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBcImVsZW1lbnRcIjogXCJ2aXN1YWxpemF0aW9uXCIsXHJcbiAgICAgICAgICAgIFwiZGF0YXNvdXJjZVwiOiBkYXRhc291cmNlLFxyXG4gICAgICAgICAgICBcInBlcnNwZWN0aXZlXCI6IHBlcnNwZWN0aXZlLFxyXG4gICAgICAgICAgICBcInZpZXdcIjogdmlld1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBzdGF0aWMgYWRkQXR0cmlidXRlcyhvYmosIGF0dHJpYnV0ZXMpIHtcclxuICAgICAgICBpZiAoYXR0cmlidXRlcyAhPSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgb2JqLmF0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ICByZXR1cm4ge1xyXG4gICAgICAgICAgICBcImVsZW1lbnRcIjogXCJ0ZW1wbGF0ZVwiLFxyXG4gICAgICAgICAgICBcInRlbXBsYXRlXCI6IHRlbXBsYXRlSWRcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIGNhcmQoKSB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgXCJlbGVtZW50XCI6IFwiY2FyZFwiLFxyXG4gICAgICAgICAgICBcImVsZW1lbnRzXCI6IFtdXHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICBzdGF0aWMgaHRtbEVsZW1lbnQoaHRtbFRhZywgY29udGVudCkge1xyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIFwiZWxlbWVudFwiOiBodG1sVGFnLFxyXG4gICAgICAgICAgICBcImNvbnRlbnRcIjogY29udGVudFxyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIHZpc3VhbGl6YXRpb24oZGF0YXNvdXJjZSwgcGVyc3BlY3RpdmUsIHZpZXcpIHtcclxuICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBcImVsZW1lbnRcIjogXCJ2aXN1YWxpemF0aW9uXCIsXHJcbiAgICAgICAgICAgIFwiZGF0YXNvdXJjZVwiOiBkYXRhc291cmNlLFxyXG4gICAgICAgICAgICBcInBlcnNwZWN0aXZlXCI6IHBlcnNwZWN0aXZlLFxyXG4gICAgICAgICAgICBcInZpZXdcIjogdmlld1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBzdGF0aWMgYWRkQXR0cmlidXRlcyhvYmosIGF0dHJpYnV0ZXMpIHtcclxuICAgICAgICBpZiAoYXR0cmlidXRlcyAhPSB1bmRlZmluZWQpIHtcclxuICAgICAgICAgICAgb2JqLmF0dHJpYnV0ZXMgPSBhdHRyaWJ1dGVzO1xyXG4gICAgICAgIH1cclxuICAgICAgICBlbHNlIHtcclxuICAgICAgICAgICAgb2JqLmF0dHJpYnV0ZXMgPSBbXTtcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIGFkZFN0eWxlcyhvYmosIHN0eWxlcykge1xyXG4gICAgICAgIGlmIChzdHlsZXMgIT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIG9iai5zdHlsZXMgPSBzdHlsZXM7XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG59Il19 |
@@ -52,3 +52,2 @@ "use strict"; | ||
this.remote = remote; | ||
this.preview = {}; | ||
} | ||
@@ -59,7 +58,2 @@ | ||
} | ||
addPreview(remote, idField) { | ||
this.preview["remote"] = remote; | ||
this.preview["id-field"] = idField; | ||
} | ||
}; | ||
@@ -154,6 +148,6 @@ let Column = exports.Column = class Column { | ||
constructor(name, lookup, peek) { | ||
constructor(name, lookup, preview) { | ||
this.name = name; | ||
this.lookup = lookup; | ||
this.peek = peek; | ||
this.preview = preview; | ||
this.validations = ValidationCollection.createInstance(); | ||
@@ -169,4 +163,4 @@ } | ||
add(name, lookup, peek) { | ||
const itemToAdd = new Field(name, lookup, peek); | ||
add(name, lookup, preview) { | ||
const itemToAdd = new Field(name, lookup, preview); | ||
this.push(itemToAdd); | ||
@@ -232,2 +226,25 @@ return itemToAdd; | ||
}; | ||
let Preview = exports.Preview = class Preview extends IdObject { | ||
constructor(id, remote, lookupField, datasetField) { | ||
super(id); | ||
this.remote = remote; | ||
this["lookup-field"] = lookupField; | ||
this["dataset-field"] = datasetField; | ||
} | ||
}; | ||
let PreviewCollection = exports.PreviewCollection = class PreviewCollection extends Array { | ||
static createInstance() { | ||
const result = new PreviewCollection(); | ||
result.__proto__ = PreviewCollection.prototype; | ||
return result; | ||
} | ||
add(remote, lookupField, datasetField) { | ||
const id = this.length; | ||
const itemToAdd = new Preview(id, remote, lookupField, datasetField); | ||
this.push(itemToAdd); | ||
return itemToAdd; | ||
} | ||
}; | ||
let ResourceDataSource = exports.ResourceDataSource = class ResourceDataSource { | ||
@@ -283,2 +300,3 @@ | ||
this.datasets = DatasetCollection.createInstance(); | ||
this.previews = PreviewCollection.createInstance(); | ||
this.datasources = DataSourceCollection.createInstance(); | ||
@@ -413,2 +431,2 @@ this.templates = TemplateCollection.createInstance(); | ||
}; | ||
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjaGVtYS5qcyJdLCJuYW1lcyI6WyJJZE9iamVjdCIsImNvbnN0cnVjdG9yIiwiaWQiLCJQZXJzcGVjdGl2ZSIsIm5hbWUiLCJpZEZpZWxkIiwiY2FjaGUiLCJhZ2dyZWdhdGUiLCJncm91cGluZyIsInNvcnRpbmciLCJkYXRhIiwiUGVyc3BlY3RpdmVEYXRhIiwidmlld3MiLCJWaWV3Q29sbGVjdGlvbiIsImNyZWF0ZUluc3RhbmNlIiwiUGVyc3BlY3RpdmVDb2xsZWN0aW9uIiwiQXJyYXkiLCJyZXN1bHQiLCJfX3Byb3RvX18iLCJwcm90b3R5cGUiLCJhZGQiLCJsZW5ndGgiLCJpdGVtVG9BZGQiLCJwdXNoIiwiTG9va3VwIiwicGVyc3BlY3RpdmUiLCJ2aWV3IiwicmVtb3RlIiwibWFwcGluZyIsInByZXZpZXciLCJhZGRNYXBwaW5nIiwidGFyZ2V0Iiwic291cmNlIiwiYWRkUHJldmlldyIsIkNvbHVtbiIsImZpZWxkIiwidGl0bGUiLCJ3aWR0aCIsIkNvbHVtbkNvbGxlY3Rpb24iLCJWaWV3IiwidHlwZSIsImNvbHVtbnMiLCJMb29rdXBDb2xsZWN0aW9uIiwiVmFsaWRhdGlvbiIsInJ1bGVzIiwiYWRkUnVsZSIsInJ1bGUiLCJ2YWx1ZSIsInJlbW92ZVJ1bGUiLCJWYWxpZGF0aW9uQ29sbGVjdGlvbiIsIkZpZWxkIiwibG9va3VwIiwicGVlayIsInZhbGlkYXRpb25zIiwiRmllbGRDb2xsZWN0aW9uIi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eWxlcyk7XHJcblxyXG4gICAgICAgIHJldHVybiByZXN1bHQ7XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIHRlbXBsYXRlKHRlbXBsYXRlSWQpIHtcclxuICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBcImVsZW1lbnRcIjogXCJ0ZW1wbGF0ZVwiLFxyXG4gICAgICAgICAgICBcInRlbXBsYXRlXCI6IHRlbXBsYXRlSWRcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIGNhcmQoKSB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgXCJlbGVtZW50XCI6IFwiY2FyZFwiLFxyXG4gICAgICAgICAgICBcImVsZW1lbnRzXCI6IFtdXHJcbiAgICAgICAgfTtcclxuICAgIH1cclxuXHJcbiAgICBzdGF0aWMgaHRtbEVsZW1lbnQoaHRtbFRhZywgY29udGVudCkge1xyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIFwiZWxlbWVudFwiOiBodG1sVGFnLFxyXG4gICAgICAgICAgICBcImNvbnRlbnRcIjogY29udGVudFxyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIHZpc3VhbGl6YXRpb24oZGF0YXNvdXJjZSwgcGVyc3BlY3RpdmUsIHZpZXcpIHtcclxuICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBcImVsZW1lbnRcIjogXCJ2aXN1YWxpemF0aW9uXCIsXHJcbiAgICAgICAgICAgIFwiZGF0YXNvdXJjZVwiOiBkYXRhc291cmNlLFxyXG4gICAgICAgICAgICBcInBlcnNwZWN0aXZlXCI6IHBlcnNwZWN0aXZlLFxyXG4gICAgICAgICAgICBcInZpZXdcIjogdmlld1xyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcbiAgICBzdGF0aWMgYWRkQXR0cmlidXRlcyhvYmosIGF0dHJpYnV0ZXMpIHtcclxuICAgICAgICBpZiAoYXR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xyXG4gICAgICAgIGNvbnN0IHJlc3VsdCA9IHtcclxuICAgICAgICAgICAgXCJlbGVtZW50XCI6IFwiaW5wdXRcIixcclxuICAgICAgICAgICAgXCJ0aXRsZVwiOiB0aXRsZSxcclxuICAgICAgICAgICAgXCJmaWVsZFwiOiBmaWVsZFxyXG4gICAgICAgIH07XHJcblxyXG4gICAgICAgIFNjaGVtYUVsZW1lbnRGYWN0b3J5LmFkZEF0dHJpYnV0ZXMocmVzdWx0LCBhdHRyaWJ1dGVzKTtcclxuICAgICAgICBTY2hlbWFFbGVtZW50RmFjdG9yeS5hZGRTdHlsZXMocmVzdWx0LCBzdHlsZXMpO1xyXG5cclxuICAgICAgICByZXN1bHQuYXR0cmlidXRlcy5wdXNoKHtcclxuICAgICAgICAgICAgXCJ0eXBlXCI6IHR5cGVcclxuICAgICAgICB9KTtcclxuXHJcbiAgICAgICAgcmV0dXJuIHJlc3VsdDtcclxuICAgIH1cclxuXHJcbiAgICBzdGF0aWMgcmVhZG9ubHkodGl0bGUsIGZpZWxkLCBzdHlsZXMpIHtcclxuICAgICAgICBjb25zdCByZXN1bHQgPSB7XHJcbiAgICAgICAgICAgIFwiZWxlbWVudFwiOiBcInJlYWRvbmx5XCIsXHJcbiAgICAgICAgICAgIFwidGl0bGVcIjogdGl0bGUsXHJcbiAgICAgICAgICAgIFwiZmllbGRcIjogZmllbGRcclxuICAgICAgICB9O1xyXG5cclxuICAgICAgICBTY2hlbWFFbGVtZW50RmFjdG9yeS5hZGRTdHlsZXMocmVzdWx0LCBzdHlsZXMpO1xyXG5cclxuICAgICAgICByZXR1cm4gcmVzdWx0O1xyXG4gICAgfVxyXG5cclxuICAgIHN0YXRpYyBzZWxlY3QodGl0bGUsIGZpZWxkLCBkYXRhU291cmNlSWQsIGF0dHJpYnV0ZXMsIHN0eWxlcykge1xyXG4gICAgICAgIGNvbnN0IHJlc3VsdCA9IHtcclxuICAgICAgICAgICAgXCJlbGVtZW50XCI6IFwic2VsZWN0XCIsXH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gfVxyXG5cclxuICAgIHN0YXRpYyBjYXJkKCkge1xyXG4gICAgICAgIHJldHVybiB7XHJcbiAgICAgICAgICAgIFwiZWxlbWVudFwiOiBcImNhcmRcIixcclxuICAgICAgICAgICAgXCJlbGVtZW50c1wiOiBbXVxyXG4gICAgICAgIH07XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIGh0bWxFbGVtZW50KGh0bWxUYWcsIGNvbnRlbnQpIHtcclxuICAgICAgICByZXR1cm4ge1xyXG4gICAgICAgICAgICBcImVsZW1lbnRcIjogaHRtbFRhZyxcclxuICAgICAgICAgICAgXCJjb250ZW50XCI6IGNvbnRlbnRcclxuICAgICAgICB9O1xyXG4gICAgfVxyXG5cclxuICAgIHN0YXRpYyB2aXN1YWxpemF0aW9uKGRhdGFzb3VyY2UsIHBlcnNwZWN0aXZlLCB2aWV3KSB7XHJcbiAgICAgICAgcmV0dXJuIHtcclxuICAgICAgICAgICAgXCJlbGVtZW50XCI6IFwidmlzdWFsaXphdGlvblwiLFxyXG4gICAgICAgICAgICBcImRhdGFzb3VyY2VcIjogZGF0YXNvdXJjZSxcclxuICAgICAgICAgICAgXCJwZXJzcGVjdGl2ZVwiOiBwZXJzcGVjdGl2ZSxcclxuICAgICAgICAgICAgXCJ2aWV3XCI6IHZpZXdcclxuICAgICAgICB9XHJcbiAgICB9XHJcblxyXG4gICAgc3RhdGljIGFkZEF0dHJpYnV0ZXMob2JqLCBhdHRyaWJ1dGVzKSB7XHJcbiAgICAgICAgaWYgKGF0dHJpYnV0ZXMgIT0gdW5kZWZpbmVkKSB7XHJcbiAgICAgICAgICAgIG9iai5hdHRyaWJ1dGVzID0gYXR0cmlidXRlcztcclxuICAgICAgICB9XHJcbiAgICAgICAgZWxzZSB7XHJcbiAgICAgICAgICAgIG9iai5hdHRyaWJ1dGVzID0gW107XHJcbiAgICAgICAgfVxyXG4gICAgfVxyXG5cclxuICAgIHN0YXRpYyBhZGRTdHlsZXMob2JqLCBzdHlsZXMpIHtcclxuICAgICAgICBpZiAoc3R5bGVzICE9IHVuZGVmaW5lZCkge1xyXG4gICAgICAgICAgICBvYmouc3R5bGVzID0gc3R5bGVzO1xyXG4gICAgICAgIH1cclxuICAgIH1cclxufSJdfQ== |
{ | ||
"name": "pragma-schema", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "utility for building pragma schema structures", | ||
@@ -5,0 +5,0 @@ "main": "commonjs/src/schema.js", |
90542
738