@pepperi/ngx-lib
Version:
Pepperi Angular Components and Services
795 lines (789 loc) • 263 kB
JavaScript
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@angular/material/core'), require('@angular/material/grid-list'), require('@angular/material/icon'), require('@angular/material/menu'), require('angular2-signaturepad'), require('@pepperi/ngx-lib'), require('@pepperi/ngx-lib/icon'), require('@pepperi/ngx-lib/dialog'), require('@pepperi/ngx-lib/address'), require('@pepperi/ngx-lib/attachment'), require('@pepperi/ngx-lib/checkbox'), require('@pepperi/ngx-lib/date'), require('@pepperi/ngx-lib/image'), require('@pepperi/ngx-lib/images-filmstrip'), require('@pepperi/ngx-lib/internal-button'), require('@pepperi/ngx-lib/menu'), require('@pepperi/ngx-lib/quantity-selector'), require('@pepperi/ngx-lib/rich-html-textarea'), require('@pepperi/ngx-lib/select'), require('@pepperi/ngx-lib/separator'), require('@pepperi/ngx-lib/signature'), require('@pepperi/ngx-lib/textarea'), require('@pepperi/ngx-lib/textbox'), require('@ngx-translate/core'), require('rxjs/operators'), require('jquery'), require('@angular/cdk/bidi'), require('@angular/cdk/scrolling')) :
typeof define === 'function' && define.amd ? define('@pepperi/ngx-lib/form', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@angular/material/core', '@angular/material/grid-list', '@angular/material/icon', '@angular/material/menu', 'angular2-signaturepad', '@pepperi/ngx-lib', '@pepperi/ngx-lib/icon', '@pepperi/ngx-lib/dialog', '@pepperi/ngx-lib/address', '@pepperi/ngx-lib/attachment', '@pepperi/ngx-lib/checkbox', '@pepperi/ngx-lib/date', '@pepperi/ngx-lib/image', '@pepperi/ngx-lib/images-filmstrip', '@pepperi/ngx-lib/internal-button', '@pepperi/ngx-lib/menu', '@pepperi/ngx-lib/quantity-selector', '@pepperi/ngx-lib/rich-html-textarea', '@pepperi/ngx-lib/select', '@pepperi/ngx-lib/separator', '@pepperi/ngx-lib/signature', '@pepperi/ngx-lib/textarea', '@pepperi/ngx-lib/textbox', '@ngx-translate/core', 'rxjs/operators', 'jquery', '@angular/cdk/bidi', '@angular/cdk/scrolling'], factory) :
(global = global || self, factory((global['pepperi-addons'] = global['pepperi-addons'] || {}, global['pepperi-addons']['ngx-lib'] = global['pepperi-addons']['ngx-lib'] || {}, global['pepperi-addons']['ngx-lib'].form = {}), global.ng.core, global.ng.common, global.ng.forms, global.ng.material.core, global.ng.material.gridList, global.ng.material.icon, global.ng.material.menu, global.signaturepad, global['pepperi-addons']['ngx-lib'], global['pepperi-addons']['ngx-lib'].icon, global['pepperi-addons']['ngx-lib'].dialog, global['pepperi-addons']['ngx-lib'].address, global['pepperi-addons']['ngx-lib'].attachment, global['pepperi-addons']['ngx-lib'].checkbox, global['pepperi-addons']['ngx-lib'].date, global['pepperi-addons']['ngx-lib'].image, global['pepperi-addons']['ngx-lib']['images-filmstrip'], global['pepperi-addons']['ngx-lib']['internal-button'], global['pepperi-addons']['ngx-lib'].menu, global['pepperi-addons']['ngx-lib']['quantity-selector'], global['pepperi-addons']['ngx-lib']['rich-html-textarea'], global['pepperi-addons']['ngx-lib'].select, global['pepperi-addons']['ngx-lib'].separator, global['pepperi-addons']['ngx-lib'].signature, global['pepperi-addons']['ngx-lib'].textarea, global['pepperi-addons']['ngx-lib'].textbox, global.translate, global.rxjs.operators, global.jquery, global.ng.cdk.bidi, global.ng.cdk.scrolling));
}(this, (function (exports, i0, i2, i3, i6, i5, i7, i9, i10, i11, i1, i1$1, i3$1, i4, i5$1, i6$1, i8, i7$1, i9$1, i10$1, i11$1, i12, i13, i14, i15, i16, i17, i3$2, operators, $$1, i4$1, i8$1) { 'use strict';
/*! *****************************************************************************
Copyright (c) Microsoft Corporation.
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
***************************************************************************** */
/* global Reflect, Promise */
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 (Object.prototype.hasOwnProperty.call(b, p))
d[p] = b[p]; };
return extendStatics(d, b);
};
function __extends(d, b) {
extendStatics(d, b);
function __() { this.constructor = d; }
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
}
var __assign = function () {
__assign = Object.assign || function __assign(t) {
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p))
t[p] = s[p];
}
return t;
};
return __assign.apply(this, arguments);
};
function __rest(s, e) {
var t = {};
for (var p in s)
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
t[p] = s[p];
if (s != null && typeof Object.getOwnPropertySymbols === "function")
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
t[p[i]] = s[p[i]];
}
return t;
}
function __decorate(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
r = Reflect.decorate(decorators, target, key, desc);
else
for (var i = decorators.length - 1; i >= 0; i--)
if (d = decorators[i])
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
}
function __param(paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); };
}
function __metadata(metadataKey, metadataValue) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
return Reflect.metadata(metadataKey, metadataValue);
}
function __awaiter(thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try {
step(generator.next(value));
}
catch (e) {
reject(e);
} }
function rejected(value) { try {
step(generator["throw"](value));
}
catch (e) {
reject(e);
} }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
}
function __generator(thisArg, body) {
var _ = { label: 0, sent: function () { if (t[0] & 1)
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
function verb(n) { return function (v) { return step([n, v]); }; }
function step(op) {
if (f)
throw new TypeError("Generator is already executing.");
while (_)
try {
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
return t;
if (y = 0, t)
op = [op[0] & 2, t.value];
switch (op[0]) {
case 0:
case 1:
t = op;
break;
case 4:
_.label++;
return { value: op[1], done: false };
case 5:
_.label++;
y = op[1];
op = [0];
continue;
case 7:
op = _.ops.pop();
_.trys.pop();
continue;
default:
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
_ = 0;
continue;
}
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
_.label = op[1];
break;
}
if (op[0] === 6 && _.label < t[1]) {
_.label = t[1];
t = op;
break;
}
if (t && _.label < t[2]) {
_.label = t[2];
_.ops.push(op);
break;
}
if (t[2])
_.ops.pop();
_.trys.pop();
continue;
}
op = body.call(thisArg, _);
}
catch (e) {
op = [6, e];
y = 0;
}
finally {
f = t = 0;
}
if (op[0] & 5)
throw op[1];
return { value: op[0] ? op[1] : void 0, done: true };
}
}
var __createBinding = Object.create ? (function (o, m, k, k2) {
if (k2 === undefined)
k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
}) : (function (o, m, k, k2) {
if (k2 === undefined)
k2 = k;
o[k2] = m[k];
});
function __exportStar(m, o) {
for (var p in m)
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
__createBinding(o, m, p);
}
function __values(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m)
return m.call(o);
if (o && typeof o.length === "number")
return {
next: function () {
if (o && i >= o.length)
o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __read(o, n) {
var m = typeof Symbol === "function" && o[Symbol.iterator];
if (!m)
return o;
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
ar.push(r.value);
}
catch (error) {
e = { error: error };
}
finally {
try {
if (r && !r.done && (m = i["return"]))
m.call(i);
}
finally {
if (e)
throw e.error;
}
}
return ar;
}
function __spread() {
for (var ar = [], i = 0; i < arguments.length; i++)
ar = ar.concat(__read(arguments[i]));
return ar;
}
function __spreadArrays() {
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
s += arguments[i].length;
for (var r = Array(s), k = 0, i = 0; i < il; i++)
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
r[k] = a[j];
return r;
}
;
function __await(v) {
return this instanceof __await ? (this.v = v, this) : new __await(v);
}
function __asyncGenerator(thisArg, _arguments, generator) {
if (!Symbol.asyncIterator)
throw new TypeError("Symbol.asyncIterator is not defined.");
var g = generator.apply(thisArg, _arguments || []), i, q = [];
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
function verb(n) { if (g[n])
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
function resume(n, v) { try {
step(g[n](v));
}
catch (e) {
settle(q[0][3], e);
} }
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
function fulfill(value) { resume("next", value); }
function reject(value) { resume("throw", value); }
function settle(f, v) { if (f(v), q.shift(), q.length)
resume(q[0][0], q[0][1]); }
}
function __asyncDelegator(o) {
var i, p;
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
}
function __asyncValues(o) {
if (!Symbol.asyncIterator)
throw new TypeError("Symbol.asyncIterator is not defined.");
var m = o[Symbol.asyncIterator], i;
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
}
function __makeTemplateObject(cooked, raw) {
if (Object.defineProperty) {
Object.defineProperty(cooked, "raw", { value: raw });
}
else {
cooked.raw = raw;
}
return cooked;
}
;
var __setModuleDefault = Object.create ? (function (o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function (o, v) {
o["default"] = v;
};
function __importStar(mod) {
if (mod && mod.__esModule)
return mod;
var result = {};
if (mod != null)
for (var k in mod)
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
__createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
}
function __importDefault(mod) {
return (mod && mod.__esModule) ? mod : { default: mod };
}
function __classPrivateFieldGet(receiver, privateMap) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to get private field on non-instance");
}
return privateMap.get(receiver);
}
function __classPrivateFieldSet(receiver, privateMap, value) {
if (!privateMap.has(receiver)) {
throw new TypeError("attempted to set private field on non-instance");
}
privateMap.set(receiver, value);
return value;
}
function PepperiIndicatorsComponent_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementContainerStart(0);
i0.ɵɵelement(1, "pep-icon", 3);
i0.ɵɵelementContainerEnd();
}
if (rf & 2) {
var value_r2 = ctx.$implicit;
i0.ɵɵadvance(1);
i0.ɵɵproperty("fill", value_r2);
}
}
function PepperiIndicatorsComponent_ng_container_2_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementContainerStart(0);
i0.ɵɵelement(1, "pep-icon", 4);
i0.ɵɵelementContainerEnd();
}
}
var _c0 = function (a0) { return { "is-inside-table": a0 }; };
var PepperiIndicatorsComponent = /** @class */ (function () {
function PepperiIndicatorsComponent() {
this.controlType = 'indicators';
this.layoutType = i11.LAYOUT_TYPE.PepperiTable;
this.LAYOUT_TYPE = i11.LAYOUT_TYPE;
}
return PepperiIndicatorsComponent;
}());
PepperiIndicatorsComponent.ɵfac = function PepperiIndicatorsComponent_Factory(t) { return new (t || PepperiIndicatorsComponent)(); };
PepperiIndicatorsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PepperiIndicatorsComponent, selectors: [["pep-indicators"]], inputs: { key: "key", value: "value", layoutType: "layoutType" }, decls: 3, vars: 5, consts: [[1, "indicators-container", 3, "ngClass"], [4, "ngFor", "ngForOf"], [4, "ngIf"], ["name", "indicator_dot_placeholder", 1, "pull-left", "flip", 3, "fill"], ["name", "indicator_dot_placeholder", 1, "pull-left", "flip"]], template: function PepperiIndicatorsComponent_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementStart(0, "div", 0);
i0.ɵɵtemplate(1, PepperiIndicatorsComponent_ng_container_1_Template, 2, 1, "ng-container", 1);
i0.ɵɵtemplate(2, PepperiIndicatorsComponent_ng_container_2_Template, 2, 0, "ng-container", 2);
i0.ɵɵelementEnd();
}
if (rf & 2) {
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0, ctx.layoutType === ctx.LAYOUT_TYPE.PepperiTable));
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngForOf", ctx.value == null ? null : ctx.value.split(";"));
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngIf", ctx.key != "ItemIndicatorsWithoutCampaign" && (ctx.value == null ? null : ctx.value.split(";").length) < 4);
}
}, directives: [i2.NgClass, i2.NgForOf, i2.NgIf, i1.PepperiIconComponent], styles: ["[_nghost-%COMP%]{display:-ms-grid;display:grid;height:inherit}[_nghost-%COMP%] > *[_ngcontent-%COMP%]{-ms-grid-row-align:center;align-self:center}.indicators-container[_ngcontent-%COMP%]{height:2.5rem}.indicators-container[_ngcontent-%COMP%] .svg-icon[_ngcontent-%COMP%]{height:1rem;margin:.05rem;width:1rem}.indicators-container.is-inside-table[_ngcontent-%COMP%]{align-items:center;display:flex;justify-content:center}"], changeDetection: 0 });
/*@__PURE__*/ (function () {
i0.ɵsetClassMetadata(PepperiIndicatorsComponent, [{
type: i0.Component,
args: [{
selector: 'pep-indicators',
templateUrl: './indicators.component.html',
styleUrls: ['./indicators.component.scss'],
changeDetection: i0.ChangeDetectionStrategy.OnPush
}]
}], function () { return []; }, { key: [{
type: i0.Input
}], value: [{
type: i0.Input
}], layoutType: [{
type: i0.Input
}] });
})();
var PepperiInternalPageService = /** @class */ (function () {
function PepperiInternalPageService(httpService) {
this.httpService = httpService;
this.parentId = '0';
this.additionalApiName = '';
this.transactionUrl = 'Service1.svc/v1/OrderCenter/Transaction/';
}
PepperiInternalPageService.prototype.getBaseParentUrl = function () {
var url = "" + this.transactionUrl + this.objectId + "/ParentLine/" + this.parentId + "/";
return url;
};
PepperiInternalPageService.prototype.getChildren = function (callbackFunc) {
var body = JSON.stringify({
TransactionUID: this.objectId,
SearchCode: this.searchCode,
AdditionalApiName: this.additionalApiName,
ParentTransactionLineID: this.parentId,
ViewType: this.viewType
});
// Set the additional api name with view type string.
var moreParams = this.additionalApiName.length > 0 ?
this.additionalApiName + "/" + this.viewType :
"''/" + this.viewType;
var url = this.getBaseParentUrl() + "Items/" + moreParams;
this.httpService.postWapiApiCall(url, body).subscribe(function (res) { callbackFunc(res); }, function (error) { }, function () { });
};
PepperiInternalPageService.prototype.initDetails = function (objectId, parentId, searchCode, callbackFunc) {
if (!objectId || !parentId) {
return;
}
this.objectId = objectId;
this.parentId = parentId;
this.searchCode = searchCode;
this.httpService.getWapiApiCall(this.getBaseParentUrl() + "ViewTypes").subscribe(function (res) { callbackFunc(res); }, function (error) { }, function () { });
};
PepperiInternalPageService.prototype.changeChildrenViewType = function (viewType, callbackFunc) {
this.viewType = viewType;
this.getChildren(callbackFunc);
};
PepperiInternalPageService.prototype.changeAdditionalApiName = function (additionalApiName, callbackFunc) {
this.additionalApiName = additionalApiName;
this.getChildren(callbackFunc);
};
PepperiInternalPageService.prototype.childPlusClick = function (itemId, fieldApiName, callbackFunc) {
var body = JSON.stringify({
TransactionUID: this.objectId,
SearchCode: this.searchCode,
ParentTransactionLineID: this.parentId,
TransactionLineUID: itemId,
FieldApiName: fieldApiName,
ViewType: this.viewType
});
this.httpService.postWapiApiCall(this.getBaseParentUrl() + "IncrementValue", body).subscribe(function (res) { callbackFunc(res); }, function (error) { }, function () { });
};
PepperiInternalPageService.prototype.childMinusClick = function (itemId, fieldApiName, callbackFunc) {
var body = JSON.stringify({
TransactionUID: this.objectId,
SearchCode: this.searchCode,
ParentTransactionLineID: this.parentId,
TransactionLineUID: itemId,
FieldApiName: fieldApiName,
ViewType: this.viewType
});
this.httpService.postWapiApiCall(this.getBaseParentUrl() + "DecrementValue", body).subscribe(function (res) { callbackFunc(res); }, function (error) { }, function () { });
};
PepperiInternalPageService.prototype.childValueChanged = function (itemId, fieldApiName, value, callbackFunc) {
var body = JSON.stringify({
TransactionUID: this.objectId,
SearchCode: this.searchCode,
ParentTransactionLineID: this.parentId,
TransactionLineUID: itemId,
FieldApiName: fieldApiName,
FieldValue: value,
ViewType: this.viewType
});
this.httpService.postWapiApiCall(this.getBaseParentUrl() + "SetFieldValue", body).subscribe(function (res) { callbackFunc(res); }, function (error) { }, function () { });
};
return PepperiInternalPageService;
}());
PepperiInternalPageService.ɵfac = function PepperiInternalPageService_Factory(t) { return new (t || PepperiInternalPageService)(i0.ɵɵinject(i11.HttpService)); };
PepperiInternalPageService.ɵprov = i0.ɵɵdefineInjectable({ token: PepperiInternalPageService, factory: PepperiInternalPageService.ɵfac });
/*@__PURE__*/ (function () {
i0.ɵsetClassMetadata(PepperiInternalPageService, [{
type: i0.Injectable
}], function () { return [{ type: i11.HttpService }]; }, null);
})();
var _c0$1 = ["noVirtualScrollCont"];
var _c1 = ["tableHeader"];
var _c2 = ["selectAllCB"];
function PepperiInternalListComponent_ng_container_0_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementContainerStart(0);
i0.ɵɵelementStart(1, "div", 3);
i0.ɵɵtext(2);
i0.ɵɵelementEnd();
i0.ɵɵelementContainerEnd();
}
if (rf & 2) {
var ctx_r0 = i0.ɵɵnextContext();
i0.ɵɵadvance(2);
i0.ɵɵtextInterpolate(ctx_r0.noDataFoundMsg);
}
}
function PepperiInternalListComponent_ng_container_1_div_1_div_4_label_1_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementStart(0, "label", 16);
i0.ɵɵtext(1);
i0.ɵɵelementEnd();
}
if (rf & 2) {
var field_r12 = i0.ɵɵnextContext().$implicit;
i0.ɵɵclassMapInterpolate1("header-label body-sm pull-left flip text-align-", field_r12.Layout.XAlignment, "");
i0.ɵɵpropertyInterpolate("id", field_r12.ApiName);
i0.ɵɵpropertyInterpolate("title", field_r12.Title);
i0.ɵɵadvance(1);
i0.ɵɵtextInterpolate1(" ", field_r12.Title, " ");
}
}
function PepperiInternalListComponent_ng_container_1_div_1_div_4_label_2_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementStart(0, "label", 17);
i0.ɵɵtext(1, "\u00A0");
i0.ɵɵelementEnd();
}
if (rf & 2) {
var field_r12 = i0.ɵɵnextContext().$implicit;
i0.ɵɵpropertyInterpolate("id", field_r12.ApiName);
}
}
function PepperiInternalListComponent_ng_container_1_div_1_div_4_div_3_Template(rf, ctx) {
if (rf & 1) {
var _r20_1 = i0.ɵɵgetCurrentView();
i0.ɵɵelementStart(0, "div", 18);
i0.ɵɵlistener("mousedown", function PepperiInternalListComponent_ng_container_1_div_1_div_4_div_3_Template_div_mousedown_0_listener($event) { i0.ɵɵrestoreView(_r20_1); var field_r12 = i0.ɵɵnextContext().$implicit; var ctx_r19 = i0.ɵɵnextContext(3); return ctx_r19.onListResizeStart($event, field_r12.ApiName); });
i0.ɵɵelementStart(1, "mat-icon");
i0.ɵɵelement(2, "pep-icon", 19);
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
}
}
var _c3 = function (a0) { return { width: a0 }; };
var _c4 = function (a0, a1, a2) { return { "is-resizing": a0, "is-first": a1, "is-last": a2 }; };
function PepperiInternalListComponent_ng_container_1_div_1_div_4_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementStart(0, "div", 12);
i0.ɵɵtemplate(1, PepperiInternalListComponent_ng_container_1_div_1_div_4_label_1_Template, 2, 6, "label", 13);
i0.ɵɵtemplate(2, PepperiInternalListComponent_ng_container_1_div_1_div_4_label_2_Template, 2, 1, "label", 14);
i0.ɵɵtemplate(3, PepperiInternalListComponent_ng_container_1_div_1_div_4_div_3_Template, 3, 0, "div", 15);
i0.ɵɵelementEnd();
}
if (rf & 2) {
var field_r12 = ctx.$implicit;
var j_r13 = ctx.index;
var ctx_r11 = i0.ɵɵnextContext(3);
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c3, field_r12.calcTitleColumnWidthString))("ngClass", i0.ɵɵpureFunction3(7, _c4, field_r12.ApiName === ctx_r11.pressedColumn, j_r13 === 0, j_r13 === (ctx_r11.uiControl == null ? null : ctx_r11.uiControl.ControlFields == null ? null : ctx_r11.uiControl.ControlFields.length) - 1));
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngIf", field_r12.Title != "");
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngIf", field_r12.Title == "");
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngIf", ctx_r11.supportResizing);
}
}
var _c5 = function (a0) { return { "below-header-and-top-bar": a0 }; };
function PepperiInternalListComponent_ng_container_1_div_1_Template(rf, ctx) {
if (rf & 1) {
var _r23_1 = i0.ɵɵgetCurrentView();
i0.ɵɵelementStart(0, "div", 8, 9);
i0.ɵɵlistener("mouseup", function PepperiInternalListComponent_ng_container_1_div_1_Template_div_mouseup_0_listener($event) { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.onListResizeEnd($event); })("mouseenter", function PepperiInternalListComponent_ng_container_1_div_1_Template_div_mouseenter_0_listener($event) { i0.ɵɵrestoreView(_r23_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.onListHeaderMouseEnter($event); })("mouseleave", function PepperiInternalListComponent_ng_container_1_div_1_Template_div_mouseleave_0_listener($event) { i0.ɵɵrestoreView(_r23_1); var ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.onListHeaderMouseLeave($event); })("mousemove", function PepperiInternalListComponent_ng_container_1_div_1_Template_div_mousemove_0_listener($event) { i0.ɵɵrestoreView(_r23_1); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.onListResize($event); });
i0.ɵɵelementStart(2, "fieldset", 10);
i0.ɵɵelementStart(3, "fieldset");
i0.ɵɵtemplate(4, PepperiInternalListComponent_ng_container_1_div_1_div_4_Template, 4, 11, "div", 11);
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
}
if (rf & 2) {
var ctx_r6 = i0.ɵɵnextContext(2);
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c5, ctx_r6.parentScroll == null));
i0.ɵɵadvance(4);
i0.ɵɵproperty("ngForOf", ctx_r6.uiControl == null ? null : ctx_r6.uiControl.ControlFields);
}
}
function PepperiInternalListComponent_ng_container_1_ng_container_4_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementContainer(0);
}
}
function PepperiInternalListComponent_ng_container_1_ng_container_5_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementContainer(0);
}
}
var _c6 = function (a0, a1) { return { "table-body": a0, "cards-body": a1 }; };
function PepperiInternalListComponent_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementContainerStart(0);
i0.ɵɵtemplate(1, PepperiInternalListComponent_ng_container_1_div_1_Template, 5, 4, "div", 4);
i0.ɵɵelementStart(2, "div", 5, 6);
i0.ɵɵtemplate(4, PepperiInternalListComponent_ng_container_1_ng_container_4_Template, 1, 0, "ng-container", 7);
i0.ɵɵelementEnd();
i0.ɵɵtemplate(5, PepperiInternalListComponent_ng_container_1_ng_container_5_Template, 1, 0, "ng-container", 7);
i0.ɵɵelementContainerEnd();
}
if (rf & 2) {
var ctx_r1 = i0.ɵɵnextContext();
var _r2 = i0.ɵɵreference(3);
var _r4 = i0.ɵɵreference(5);
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngIf", ctx_r1.isTable);
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c6, ctx_r1.isTable, !ctx_r1.isTable));
i0.ɵɵadvance(2);
i0.ɵɵproperty("ngTemplateOutlet", _r2);
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngTemplateOutlet", _r4);
}
}
var _c7 = function (a0) { return { highlighted: a0 }; };
var _c8 = function (a0, a1) { return { height: a0, visibility: a1 }; };
var _c9 = function (a0) { return { "background-color": a0 }; };
function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template(rf, ctx) {
if (rf & 1) {
var _r34_1 = i0.ɵɵgetCurrentView();
i0.ɵɵelementContainerStart(0);
i0.ɵɵelementStart(1, "div", 21);
i0.ɵɵlistener("mouseenter", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template_div_mouseenter_1_listener($event) { i0.ɵɵrestoreView(_r34_1); var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit; var ctx_r33 = i0.ɵɵnextContext(2); return ctx_r33.onTableRowMouseEnter($event, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type); })("mouseleave", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template_div_mouseleave_1_listener($event) { i0.ɵɵrestoreView(_r34_1); var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit; var ctx_r36 = i0.ɵɵnextContext(2); return ctx_r36.onTableRowMouseLeave($event, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type); });
i0.ɵɵelementStart(2, "fieldset", 22);
i0.ɵɵelementStart(3, "pep-form", 23);
i0.ɵɵlistener("notifyValueChanged", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template_pep_form_notifyValueChanged_3_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r38 = i0.ɵɵnextContext(3); return ctx_r38.onValueChanged($event); })("notifyFieldClicked", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template_pep_form_notifyFieldClicked_3_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r39 = i0.ɵɵnextContext(3); return ctx_r39.onCustomizeFieldClick($event); })("notifyMenuItemClicked", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template_pep_form_notifyMenuItemClicked_3_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r40 = i0.ɵɵnextContext(3); return ctx_r40.onCustomizeFieldMenuClicked($event); })("click", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template_pep_form_click_3_listener($event) { i0.ɵɵrestoreView(_r34_1); var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit; var ctx_r41 = i0.ɵɵnextContext(2); return ctx_r41.itemClicked($event, pepperiObjectInput_r28); });
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
i0.ɵɵelementContainerEnd();
}
if (rf & 2) {
var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit;
var ctx_r31 = i0.ɵɵnextContext(2);
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c7, (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID) + ctx_r31.SEPARATOR + (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type) === ctx_r31.selectedItemId))("ngStyle", i0.ɵɵpureFunction2(18, _c8, ctx_r31.calculatedObjectHeight, ctx_r31.showItems || pepperiObjectInput_r28 ? "visible" : "hidden"));
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(21, _c9, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.BackgroundColor));
i0.ɵɵadvance(1);
i0.ɵɵproperty("checkForChanges", ctx_r31.checkForChanges)("uiControlHeader", ctx_r31.uiControl)("firstFieldAsLink", ctx_r31.firstFieldAsLink)("pepperiObjectInput", pepperiObjectInput_r28)("canEditObject", !ctx_r31.disabled && (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.IsEditable))("objectId", ctx_r31.objectId)("parentId", ctx_r31.parentId)("searchCode", ctx_r31.searchCode)("lockEvents", ctx_r31.disableSelectionItems)("layoutType", ctx_r31.LAYOUT_TYPE.PepperiTable)("listType", ctx_r31.listType)("isActive", ((pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID) + ctx_r31.SEPARATOR + (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type) === ctx_r31.selectedItemId || (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID) + ctx_r31.SEPARATOR + (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type) === ctx_r31.hoveredItemId) && !ctx_r31.isTouchDevice)("pageType", ctx_r31.pageType);
}
}
var _c10 = function (a0, a1) { return { highlighted: a0, cardView: a1 }; };
function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template(rf, ctx) {
if (rf & 1) {
var _r45_1 = i0.ɵɵgetCurrentView();
i0.ɵɵelementContainerStart(0);
i0.ɵɵelementStart(1, "div", 24);
i0.ɵɵlistener("mouseenter", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template_div_mouseenter_1_listener($event) { i0.ɵɵrestoreView(_r45_1); var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit; var ctx_r44 = i0.ɵɵnextContext(2); return ctx_r44.onCardMouseEnter($event, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type); })("mouseleave", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template_div_mouseleave_1_listener($event) { i0.ɵɵrestoreView(_r45_1); var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit; var ctx_r47 = i0.ɵɵnextContext(2); return ctx_r47.onCardMouseLeave($event, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID, pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type); });
i0.ɵɵelementStart(2, "pep-form", 25);
i0.ɵɵlistener("notifyValueChanged", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template_pep_form_notifyValueChanged_2_listener($event) { i0.ɵɵrestoreView(_r45_1); var ctx_r49 = i0.ɵɵnextContext(3); return ctx_r49.onValueChanged($event); })("notifyFieldClicked", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template_pep_form_notifyFieldClicked_2_listener($event) { i0.ɵɵrestoreView(_r45_1); var ctx_r50 = i0.ɵɵnextContext(3); return ctx_r50.onCustomizeFieldClick($event); })("notifyMenuItemClicked", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template_pep_form_notifyMenuItemClicked_2_listener($event) { i0.ɵɵrestoreView(_r45_1); var ctx_r51 = i0.ɵɵnextContext(3); return ctx_r51.onCustomizeFieldMenuClicked($event); })("click", function PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template_pep_form_click_2_listener($event) { i0.ɵɵrestoreView(_r45_1); var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit; var ctx_r52 = i0.ɵɵnextContext(2); return ctx_r52.itemClicked($event, pepperiObjectInput_r28); });
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
i0.ɵɵelementContainerEnd();
}
if (rf & 2) {
var pepperiObjectInput_r28 = i0.ɵɵnextContext().$implicit;
var ctx_r32 = i0.ɵɵnextContext(2);
i0.ɵɵadvance(1);
i0.ɵɵclassMap(ctx_r32.itemClass);
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(18, _c10, (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID) + ctx_r32.SEPARATOR + (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type) === ctx_r32.selectedItemId, ctx_r32.isCardView))("ngStyle", i0.ɵɵpureFunction2(21, _c8, ctx_r32.calculatedObjectHeight, ctx_r32.showItems || pepperiObjectInput_r28 ? "visible" : "hidden"));
i0.ɵɵadvance(1);
i0.ɵɵproperty("firstFieldAsLink", ctx_r32.isCardView ? ctx_r32.firstFieldAsLink : false)("checkForChanges", ctx_r32.checkForChanges)("uiControlHeader", ctx_r32.uiControl)("pepperiObjectInput", pepperiObjectInput_r28)("isCardView", ctx_r32.isCardView)("canEditObject", !ctx_r32.disabled && (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.IsEditable))("objectId", ctx_r32.objectId)("parentId", ctx_r32.parentId)("searchCode", ctx_r32.searchCode)("lockEvents", ctx_r32.disableSelectionItems)("layoutType", ctx_r32.getThumbnailsLayout())("listType", ctx_r32.listType)("isActive", ((pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID) + ctx_r32.SEPARATOR + (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type) === ctx_r32.selectedItemId || (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.UID) + ctx_r32.SEPARATOR + (pepperiObjectInput_r28 == null ? null : pepperiObjectInput_r28.Data == null ? null : pepperiObjectInput_r28.Data.Type) === ctx_r32.hoveredItemId) && !ctx_r32.isTouchDevice)("pageType", ctx_r32.pageType);
}
}
function PepperiInternalListComponent_ng_template_2_ng_container_0_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementContainerStart(0);
i0.ɵɵtemplate(1, PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_1_Template, 4, 23, "ng-container", 0);
i0.ɵɵtemplate(2, PepperiInternalListComponent_ng_template_2_ng_container_0_ng_container_2_Template, 3, 24, "ng-container", 0);
i0.ɵɵelementContainerEnd();
}
if (rf & 2) {
var ctx_r27 = i0.ɵɵnextContext(2);
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngIf", ctx_r27.isTable);
i0.ɵɵadvance(1);
i0.ɵɵproperty("ngIf", !ctx_r27.isTable);
}
}
function PepperiInternalListComponent_ng_template_2_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵtemplate(0, PepperiInternalListComponent_ng_template_2_ng_container_0_Template, 3, 2, "ng-container", 20);
}
if (rf & 2) {
var ctx_r3 = i0.ɵɵnextContext();
i0.ɵɵproperty("ngForOf", ctx_r3.scrollItems)("ngForTrackBy", ctx_r3.trackByFunc);
}
}
function PepperiInternalListComponent_ng_template_4_div_0_div_2_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementStart(0, "div", 29);
i0.ɵɵelementStart(1, "label");
i0.ɵɵtext(2);
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
}
if (rf & 2) {
var field_r57 = ctx.$implicit;
var j_r58 = ctx.index;
var ctx_r56 = i0.ɵɵnextContext(3);
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c3, field_r57.calcTitleColumnWidthString));
i0.ɵɵadvance(1);
i0.ɵɵclassMapInterpolate1("total-label body-sm text-align-", field_r57.Layout.XAlignment, "");
i0.ɵɵadvance(1);
i0.ɵɵtextInterpolate1(" ", ctx_r56.totalsRow[j_r58], " ");
}
}
function PepperiInternalListComponent_ng_template_4_div_0_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵelementStart(0, "div", 27);
i0.ɵɵelementStart(1, "fieldset", 10);
i0.ɵɵtemplate(2, PepperiInternalListComponent_ng_template_4_div_0_div_2_Template, 3, 7, "div", 28);
i0.ɵɵelementEnd();
i0.ɵɵelementEnd();
}
if (rf & 2) {
var ctx_r55 = i0.ɵɵnextContext(2);
i0.ɵɵadvance(2);
i0.ɵɵproperty("ngForOf", ctx_r55.uiControl == null ? null : ctx_r55.uiControl.ControlFields);
}
}
function PepperiInternalListComponent_ng_template_4_Template(rf, ctx) {
if (rf & 1) {
i0.ɵɵtemplate(0, PepperiInternalListComponent_ng_template_4_div_0_Template, 3, 1, "div", 26);
}
if (rf & 2) {
var ctx_r5 = i0.ɵɵnextContext();
i0.ɵɵproperty("ngIf", (ctx_r5.totalsRow == null ? null : ctx_r5.totalsRow.length) > 0 && ctx_r5.totalsRow.length <= (ctx_r5.uiControl == null ? null : ctx_r5.uiControl.ControlFields.length));
}
}
var VIEW_TYPE;
(function (VIEW_TYPE) {
VIEW_TYPE[VIEW_TYPE["Card"] = 0] = "Card";
VIEW_TYPE[VIEW_TYPE["Line"] = 1] = "Line";
VIEW_TYPE[VIEW_TYPE["Table"] = 2] = "Table";
})(VIEW_TYPE || (VIEW_TYPE = {}));
var PepperiInternalListComponent = /** @class */ (function () {
function PepperiInternalListComponent(element, layoutService, cd, renderer) {
var _this = this;
this.element = element;
this.layoutService = layoutService;
this.cd = cd;
this.renderer = renderer;
this.currentListTypeTranslation = '';
this.noDataFoundMsg = 'Items not found';
this.hideAllSelectionInMulti = false;
this.top = -1;
this.listType = '';
this.objectId = '0';
this.parentId = '0';
this.searchCode = '0';
// @Input() showTopBorder = false;
this.firstFieldAsLink = false;
this.supportResizing = true;
this.parentScroll = null;
this.disabled = false;
this.isPrinting = false;
this.disableSelectionItems = false;
this.layoutType = null;
this.pageType = '';
this.totalsRow = [];
this.isTouchDevice = false;
this.notifyThumbnailClicked = new i0.EventEmitter();
this.notifyFieldClicked = new i0.EventEmitter();
this.notifyMenuItemClicked = new i0.EventEmitter();
this.notifyValueChanged = new i0.EventEmitter();
this.notifySelectAllSingleActionClicked = new i0.EventEmitter();
this.notifySingleActionClicked = new i0.EventEmitter();
this.notifyListLoad = new i0.EventEmitter();
this.LAYOUT_TYPE = i11.LAYOUT_TYPE;
this.uiControl = null;
this.totalRows = -1;
this.isTable = false;
this.hasColumnWidthOfTypePercentage = true;
this.items = null;
this.isCardView = false;
this.itemsCounter = 0;
this.showItems = true;
this.SEPARATOR = ',';
this.nativeWindow = null;
this.selectedItemId = '';
this.hoveredItemId = '';
this.lockEvents = false;
this.containerWidth = 0;
// headerIsInFocus = false;
// For resize
this.pressedColumn = '';
this.startX = 0;
this.startWidth = 0;
this.tableStartWidth = 0;
this.isUserSelected = false;
this.checkForChanges = null;
this.useVirtualScroll = true;
this.layoutService.onResize$
.pipe(operators.delay(0))
.subscribe(function (size) {
_this.screenSize = size;
});
this.nativeWindow = window;
}
PepperiInternalListComponent.prototype.ngOnInit = function () {
this.containerWidth = 0;
};
PepperiInternalListComponent.prototype.ngOnChanges = function (changes) {
if (this.containerWidth <= 0) {
this.setContainerWidth();
}
};
PepperiInternalListComponent.prototype.ngOnDestroy = function () {
if (this.notifyValueChanged) {
this.notifyValueChanged.unsubscribe();
}
if (this.notifyFieldClicked) {
this.notifyFieldClicked.unsubscribe();
}
if (this.notifyMenuItemClicked) {
this.notifyMenuItemClicked.unsubscribe();
}
if (this.notifyThumbnailClicked) {
this.notifyThumbnai