@osovitny/anatoly 3.20.29 → 3.20.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4931,6 +4931,22 @@ class PaymentOptionsComponent extends ComponentBase {
4931
4931
  */
4932
4932
  //Node
4933
4933
  class EditComponentBase extends ComponentBase {
4934
+ /**
4935
+ * returns formgroup controls.
4936
+ * main use case is used in html pages
4937
+ */
4938
+ get fc() {
4939
+ return this.formGroup.controls;
4940
+ }
4941
+ get isNgModelBased() {
4942
+ return !this.isFormBased;
4943
+ }
4944
+ get isFormBased() {
4945
+ if (this.controlName) {
4946
+ return true;
4947
+ }
4948
+ return false;
4949
+ }
4934
4950
  constructor() {
4935
4951
  super();
4936
4952
  //Modes
@@ -5025,16 +5041,6 @@ class EditComponentBase extends ComponentBase {
5025
5041
  let fg = frmGroup ? frmGroup : this.formGroup;
5026
5042
  fg.get(controlName)?.setErrors({ invalid: true });
5027
5043
  }
5028
- /**
5029
- * returns formgroup controls.
5030
- * main use case is used in html pages
5031
- */
5032
- get fc() {
5033
- return this.formGroup.controls;
5034
- }
5035
- get isNgModelBased() {
5036
- return this.controlName == null;
5037
- }
5038
5044
  static { this.ɵfac = function EditComponentBase_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || EditComponentBase)(); }; }
5039
5045
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: EditComponentBase, selectors: [["ng-component"]], inputs: { formGroup: "formGroup", formSubmitted: "formSubmitted", controlName: "controlName", controlTitle: "controlTitle" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function EditComponentBase_Template(rf, ctx) { }, encapsulation: 2 }); }
5040
5046
  }
@@ -6955,11 +6961,11 @@ class PagedPageBase extends PageBase {
6955
6961
  class ListBase extends ComponentBase {
6956
6962
  constructor() {
6957
6963
  super(...arguments);
6958
- this.currentFilter = null;
6959
- this.dataLoaded = false;
6964
+ this._currentFilter = null;
6960
6965
  this.totalItems = 0;
6961
6966
  this.skipItems = 0;
6962
6967
  this.currentPage = 1;
6968
+ this.dataLoaded = false;
6963
6969
  //Inputs
6964
6970
  this.pageSize = 10;
6965
6971
  this.autoDataLoading = false;
@@ -6967,6 +6973,9 @@ class ListBase extends ComponentBase {
6967
6973
  this.filterRequest = new EventEmitter();
6968
6974
  this.dataChange = new EventEmitter();
6969
6975
  }
6976
+ get currentFilter() {
6977
+ return this._currentFilter;
6978
+ }
6970
6979
  ngOnInit() {
6971
6980
  this.init();
6972
6981
  }
@@ -7000,7 +7009,7 @@ class ListBase extends ComponentBase {
7000
7009
  }
7001
7010
  setFilter(filter) {
7002
7011
  if (filter) {
7003
- this.currentFilter = filter;
7012
+ this._currentFilter = filter;
7004
7013
  this.loadPageOne();
7005
7014
  }
7006
7015
  }
@@ -7692,7 +7701,7 @@ class PublishStatusDropdownlist extends EnumEditComponentBase {
7692
7701
  }
7693
7702
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PublishStatusDropdownlist, [{
7694
7703
  type: Component,
7695
- args: [{ selector: 'anatoly-publishstatus-dropdownlist', standalone: false, template: "<div *ngIf='isNgModelBased'>\r\n <kendo-label text=\"{{ title }}\" *ngIf='isTitleVisible'></kendo-label>\r\n <kendo-dropdownlist [data]=\"items\"\r\n valueField=\"value\" textField=\"text\"\r\n [valuePrimitive]=\"true\"\r\n [(ngModel)]=\"sv\"\r\n (valueChange)=\"onChange($event)\" />\r\n</div>\r\n\r\n<div *ngIf='!isNgModelBased' [formGroup]='formGroup'>\r\n <kendo-label text=\"{{ title }}\" *ngIf='isTitleVisible'></kendo-label>\r\n <kendo-dropdownlist [data]=\"items\"\r\n valueField=\"value\" textField=\"text\"\r\n [valuePrimitive]=\"true\"\r\n [formControlName]='controlName' />\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n [controlName]='controlName'\r\n [controlTitle]='controlTitle' />\r\n</div>\r\n" }]
7704
+ args: [{ selector: 'anatoly-publishstatus-dropdownlist', standalone: false, template: "<div *ngIf='isNgModelBased'>\r\n <kendo-label text=\"{{ title }}\" *ngIf='isTitleVisible'></kendo-label>\r\n <kendo-dropdownlist [data]=\"items\"\r\n valueField=\"value\" textField=\"text\"\r\n [valuePrimitive]=\"true\"\r\n [(ngModel)]=\"sv\"\r\n (valueChange)=\"onChange($event)\" />\r\n</div>\r\n\r\n<div *ngIf='!isNgModelBased' [formGroup]='formGroup'>\r\n <kendo-label text=\"{{ title }}\" *ngIf='isTitleVisible'></kendo-label>\r\n <kendo-dropdownlist [data]=\"items\"\r\n valueField=\"value\" textField=\"text\"\r\n [valuePrimitive]=\"true\"\r\n [formControlName]='controlName' />\r\n <anatoly-item-validation-summary [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n [controlName]='controlName'\r\n [controlTitle]='controlTitle' />\r\n</div>\r\n" }]
7696
7705
  }], () => [], null); })();
7697
7706
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PublishStatusDropdownlist, { className: "PublishStatusDropdownlist", filePath: "lib/ui/components/dropdownlists/publishstatus/publishstatus.dropdownlist.ts", lineNumber: 28 }); })();
7698
7707
 
@@ -8041,8 +8050,6 @@ function HtmlEditorComponent_div_1_Template(rf, ctx) { if (rf & 1) {
8041
8050
  class HtmlEditorComponent extends HtmlEditorComponentBase {
8042
8051
  constructor() {
8043
8052
  super();
8044
- this.controlName = "html";
8045
- this.controlTitle = "Html";
8046
8053
  }
8047
8054
  getHtml() {
8048
8055
  let editor = this.getEditor();
@@ -8060,11 +8067,6 @@ class HtmlEditorComponent extends HtmlEditorComponentBase {
8060
8067
  editor.html.set(content);
8061
8068
  });
8062
8069
  }
8063
- setFormValueAfterInitialized(name, value) {
8064
- this.doAfterInitialized(function (that) {
8065
- that.setFormValue(name, value);
8066
- });
8067
- }
8068
8070
  static { this.ɵfac = function HtmlEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HtmlEditorComponent)(); }; }
8069
8071
  static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: HtmlEditorComponent, selectors: [["anatoly-html-editor"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "formGroup", 4, "ngIf"], [3, "text", 4, "ngIf"], [3, "froalaInit", "froalaEditor"], [3, "text"], [3, "formGroup"], [3, "froalaInit", "froalaEditor", "formControlName"], [3, "formGroup", "formSubmitted", "controlName", "controlTitle"]], template: function HtmlEditorComponent_Template(rf, ctx) { if (rf & 1) {
8070
8072
  i0.ɵɵtemplate(0, HtmlEditorComponent_div_0_Template, 3, 2, "div", 0)(1, HtmlEditorComponent_div_1_Template, 5, 9, "div", 1);