UNPKG

@aurigma/design-atoms

Version:

Design Atoms is a part of Customer's Canvas SDK which allows for manipulating individual design elements through your code.

36 lines 1.45 kB
var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); import { ModelUpdateCommand } from "../ModelUpdateCommand"; var BaseItemsCommand = /** @class */ (function (_super) { __extends(BaseItemsCommand, _super); function BaseItemsCommand(_productHandler, historyArgs, args) { var _this = _super.call(this, args, historyArgs) || this; _this._productHandler = _productHandler; return _this; } BaseItemsCommand.prototype._getTargetItems = function (items, query, queryOptions) { if (items != null) { return items; } else if (query != null) { return this._productHandler.queryItems(query, queryOptions); } else { return null; } }; return BaseItemsCommand; }(ModelUpdateCommand)); export { BaseItemsCommand }; //# sourceMappingURL=BaseItemsCommand.js.map