Get at least the nm header showing up

This commit is contained in:
nathangray 2020-01-24 05:57:05 -07:00 committed by Hadi Nategh
parent 28ad7abe97
commit 97337b6729
2 changed files with 12 additions and 6 deletions

View File

@ -91,6 +91,9 @@ var et2_nextmatch = /** @class */ (function (_super_1) {
function et2_nextmatch(_parent, _attrs, _child) { function et2_nextmatch(_parent, _attrs, _child) {
var _this = _super_1.call(this, _parent, _attrs, et2_core_inheritance_1.ClassWithAttributes.extendAttributes(et2_nextmatch._attributes, _child || {})) || this; var _this = _super_1.call(this, _parent, _attrs, et2_core_inheritance_1.ClassWithAttributes.extendAttributes(et2_nextmatch._attributes, _child || {})) || this;
_this.activeFilters = { col_filter: {} }; _this.activeFilters = { col_filter: {} };
_this.columns = [];
// keeps sorted columns
_this.sortedColumnsList = [];
// Directly set current col_filters from settings // Directly set current col_filters from settings
jQuery.extend(_this.activeFilters.col_filter, _this.options.settings.col_filter); jQuery.extend(_this.activeFilters.col_filter, _this.options.settings.col_filter);
/* /*
@ -125,8 +128,6 @@ var et2_nextmatch = /** @class */ (function (_super_1) {
// instance, which can first be created once we have the columns // instance, which can first be created once we have the columns
_this.controller = null; _this.controller = null;
_this.rowProvider = null; _this.rowProvider = null;
// keeps sorted columns
_this.sortedColumnsList = [];
return _this; return _this;
} }
/** /**
@ -2594,6 +2595,8 @@ et2_core_widget_1.et2_register_widget(et2_nextmatch_header, ['nextmatch-header']
* Extend header to process customfields * Extend header to process customfields
* *
* @augments et2_customfields_list * @augments et2_customfields_list
*
* TODO This should extend customfield widget when it's ready
*/ */
var et2_nextmatch_customfields = /** @class */ (function (_super_1) { var et2_nextmatch_customfields = /** @class */ (function (_super_1) {
__extends(et2_nextmatch_customfields, _super_1); __extends(et2_nextmatch_customfields, _super_1);
@ -2768,7 +2771,7 @@ var et2_nextmatch_customfields = /** @class */ (function (_super_1) {
return name; return name;
}; };
return et2_nextmatch_customfields; return et2_nextmatch_customfields;
}(et2_customfields_list)); }(et2_container));
exports.et2_nextmatch_customfields = et2_nextmatch_customfields; exports.et2_nextmatch_customfields = et2_nextmatch_customfields;
et2_core_widget_1.et2_register_widget(et2_nextmatch_customfields, ['nextmatch-customfields']); et2_core_widget_1.et2_register_widget(et2_nextmatch_customfields, ['nextmatch-customfields']);
/** /**

View File

@ -228,6 +228,9 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_nextmatch._attributes, _child || {})); super(_parent, _attrs, ClassWithAttributes.extendAttributes(et2_nextmatch._attributes, _child || {}));
this.activeFilters = {col_filter:{}}; this.activeFilters = {col_filter:{}};
this.columns = [];
// keeps sorted columns
this.sortedColumnsList = [];
// Directly set current col_filters from settings // Directly set current col_filters from settings
jQuery.extend(this.activeFilters.col_filter, this.options.settings.col_filter); jQuery.extend(this.activeFilters.col_filter, this.options.settings.col_filter);
@ -275,8 +278,6 @@ export class et2_nextmatch extends et2_DOMWidget implements et2_IResizeable, et2
this.controller = null; this.controller = null;
this.rowProvider = null; this.rowProvider = null;
// keeps sorted columns
this.sortedColumnsList = [];
} }
/** /**
@ -3369,8 +3370,10 @@ et2_register_widget(et2_nextmatch_header, ['nextmatch-header']);
* Extend header to process customfields * Extend header to process customfields
* *
* @augments et2_customfields_list * @augments et2_customfields_list
*
* TODO This should extend customfield widget when it's ready
*/ */
export class et2_nextmatch_customfields extends et2_customfields_list implements et2_INextmatchHeader export class et2_nextmatch_customfields extends et2_container implements et2_INextmatchHeader
{ {
static readonly _attributes: { static readonly _attributes: {
'customfields': { 'customfields': {