@osovitny/anatoly 3.20.28 → 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.
- package/fesm2022/osovitny-anatoly.mjs +33 -34
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/index.d.ts +12 -11
- package/package.json +1 -1
|
@@ -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.
|
|
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.
|
|
7012
|
+
this._currentFilter = filter;
|
|
7004
7013
|
this.loadPageOne();
|
|
7005
7014
|
}
|
|
7006
7015
|
}
|
|
@@ -7632,19 +7641,19 @@ class ModerationStatusDropdownlist extends EnumEditComponentBase {
|
|
|
7632
7641
|
</file>
|
|
7633
7642
|
*/
|
|
7634
7643
|
//Node
|
|
7635
|
-
function
|
|
7644
|
+
function PublishStatusDropdownlist_div_0_kendo_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
7636
7645
|
i0.ɵɵelement(0, "kendo-label", 4);
|
|
7637
7646
|
} if (rf & 2) {
|
|
7638
7647
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
7639
7648
|
i0.ɵɵproperty("text", i0.ɵɵinterpolate(ctx_r1.title));
|
|
7640
7649
|
} }
|
|
7641
|
-
function
|
|
7650
|
+
function PublishStatusDropdownlist_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
7642
7651
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
7643
7652
|
i0.ɵɵelementStart(0, "div");
|
|
7644
|
-
i0.ɵɵtemplate(1,
|
|
7653
|
+
i0.ɵɵtemplate(1, PublishStatusDropdownlist_div_0_kendo_label_1_Template, 1, 2, "kendo-label", 2);
|
|
7645
7654
|
i0.ɵɵelementStart(2, "kendo-dropdownlist", 3);
|
|
7646
|
-
i0.ɵɵtwoWayListener("ngModelChange", function
|
|
7647
|
-
i0.ɵɵlistener("valueChange", function
|
|
7655
|
+
i0.ɵɵtwoWayListener("ngModelChange", function PublishStatusDropdownlist_div_0_Template_kendo_dropdownlist_ngModelChange_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); i0.ɵɵtwoWayBindingSet(ctx_r1.sv, $event) || (ctx_r1.sv = $event); return i0.ɵɵresetView($event); });
|
|
7656
|
+
i0.ɵɵlistener("valueChange", function PublishStatusDropdownlist_div_0_Template_kendo_dropdownlist_valueChange_2_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onChange($event)); });
|
|
7648
7657
|
i0.ɵɵelementEnd()();
|
|
7649
7658
|
} if (rf & 2) {
|
|
7650
7659
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
@@ -7654,15 +7663,15 @@ function PublishStatusDropdownlist_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
7654
7663
|
i0.ɵɵproperty("data", ctx_r1.items)("valuePrimitive", true);
|
|
7655
7664
|
i0.ɵɵtwoWayProperty("ngModel", ctx_r1.sv);
|
|
7656
7665
|
} }
|
|
7657
|
-
function
|
|
7666
|
+
function PublishStatusDropdownlist_div_1_kendo_label_1_Template(rf, ctx) { if (rf & 1) {
|
|
7658
7667
|
i0.ɵɵelement(0, "kendo-label", 4);
|
|
7659
7668
|
} if (rf & 2) {
|
|
7660
7669
|
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
7661
7670
|
i0.ɵɵproperty("text", i0.ɵɵinterpolate(ctx_r1.title));
|
|
7662
7671
|
} }
|
|
7663
|
-
function
|
|
7672
|
+
function PublishStatusDropdownlist_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
7664
7673
|
i0.ɵɵelementStart(0, "div", 5);
|
|
7665
|
-
i0.ɵɵtemplate(1,
|
|
7674
|
+
i0.ɵɵtemplate(1, PublishStatusDropdownlist_div_1_kendo_label_1_Template, 1, 2, "kendo-label", 2);
|
|
7666
7675
|
i0.ɵɵelement(2, "kendo-dropdownlist", 6)(3, "anatoly-item-validation-summary", 7);
|
|
7667
7676
|
i0.ɵɵelementEnd();
|
|
7668
7677
|
} if (rf & 2) {
|
|
@@ -7682,12 +7691,9 @@ class PublishStatusDropdownlist extends EnumEditComponentBase {
|
|
|
7682
7691
|
this.enumeration = PublishStatus;
|
|
7683
7692
|
}
|
|
7684
7693
|
static { this.ɵfac = function PublishStatusDropdownlist_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || PublishStatusDropdownlist)(); }; }
|
|
7685
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PublishStatusDropdownlist, selectors: [["anatoly-publishstatus-dropdownlist"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls:
|
|
7686
|
-
i0.ɵɵ
|
|
7687
|
-
i0.ɵɵtemplate(1, PublishStatusDropdownlist_div_1_Template, 3, 4, "div", 0)(2, PublishStatusDropdownlist_div_2_Template, 4, 9, "div", 1);
|
|
7688
|
-
i0.ɵɵelementEnd();
|
|
7694
|
+
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: PublishStatusDropdownlist, selectors: [["anatoly-publishstatus-dropdownlist"]], standalone: false, features: [i0.ɵɵInheritDefinitionFeature], decls: 2, vars: 2, consts: [[4, "ngIf"], [3, "formGroup", 4, "ngIf"], [3, "text", 4, "ngIf"], ["valueField", "value", "textField", "text", 3, "ngModelChange", "valueChange", "data", "valuePrimitive", "ngModel"], [3, "text"], [3, "formGroup"], ["valueField", "value", "textField", "text", 3, "data", "valuePrimitive", "formControlName"], [3, "formGroup", "formSubmitted", "controlName", "controlTitle"]], template: function PublishStatusDropdownlist_Template(rf, ctx) { if (rf & 1) {
|
|
7695
|
+
i0.ɵɵtemplate(0, PublishStatusDropdownlist_div_0_Template, 3, 4, "div", 0)(1, PublishStatusDropdownlist_div_1_Template, 4, 9, "div", 1);
|
|
7689
7696
|
} if (rf & 2) {
|
|
7690
|
-
i0.ɵɵadvance();
|
|
7691
7697
|
i0.ɵɵproperty("ngIf", ctx.isNgModelBased);
|
|
7692
7698
|
i0.ɵɵadvance();
|
|
7693
7699
|
i0.ɵɵproperty("ngIf", !ctx.isNgModelBased);
|
|
@@ -7695,7 +7701,7 @@ class PublishStatusDropdownlist extends EnumEditComponentBase {
|
|
|
7695
7701
|
}
|
|
7696
7702
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(PublishStatusDropdownlist, [{
|
|
7697
7703
|
type: Component,
|
|
7698
|
-
args: [{ selector: 'anatoly-publishstatus-dropdownlist', standalone: false, template: "<div
|
|
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" }]
|
|
7699
7705
|
}], () => [], null); })();
|
|
7700
7706
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(PublishStatusDropdownlist, { className: "PublishStatusDropdownlist", filePath: "lib/ui/components/dropdownlists/publishstatus/publishstatus.dropdownlist.ts", lineNumber: 28 }); })();
|
|
7701
7707
|
|
|
@@ -8044,8 +8050,6 @@ function HtmlEditorComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
8044
8050
|
class HtmlEditorComponent extends HtmlEditorComponentBase {
|
|
8045
8051
|
constructor() {
|
|
8046
8052
|
super();
|
|
8047
|
-
this.controlName = "html";
|
|
8048
|
-
this.controlTitle = "Html";
|
|
8049
8053
|
}
|
|
8050
8054
|
getHtml() {
|
|
8051
8055
|
let editor = this.getEditor();
|
|
@@ -8063,11 +8067,6 @@ class HtmlEditorComponent extends HtmlEditorComponentBase {
|
|
|
8063
8067
|
editor.html.set(content);
|
|
8064
8068
|
});
|
|
8065
8069
|
}
|
|
8066
|
-
setFormValueAfterInitialized(name, value) {
|
|
8067
|
-
this.doAfterInitialized(function (that) {
|
|
8068
|
-
that.setFormValue(name, value);
|
|
8069
|
-
});
|
|
8070
|
-
}
|
|
8071
8070
|
static { this.ɵfac = function HtmlEditorComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || HtmlEditorComponent)(); }; }
|
|
8072
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) {
|
|
8073
8072
|
i0.ɵɵtemplate(0, HtmlEditorComponent_div_0_Template, 3, 2, "div", 0)(1, HtmlEditorComponent_div_1_Template, 5, 9, "div", 1);
|