Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
"use strict";
var assign = Object.assign || require('object.assign');
var explodeTree = require('combinatorial-explosion').explodeTree;
var expressions = require("angular-expressions");
// Expressions setup
expressions.filters.or = function (input, def) {
return (input == null) ? def : input;
};
// Public API
PowerTemplate.BINDINGS_RE = /^\s*\[([\s\S]*)\]\s*$/;
// Factories
module.exports = PowerTemplate;
PowerTemplate.createListView = function (cfg) {
var powerTemplates = function () {};
forEachOwnProperty(cfg.templates, function (template, name) {
powerTemplates[ name ] = new PowerTemplate(template, name);