@osovitny/anatoly 3.16.80 → 3.16.81
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/esm2022/lib/ui/components/html-editor/forms-html-editor.component.mjs +4 -4
- package/esm2022/lib/ui/forms/components/urlslug/urlslug.component.mjs +16 -15
- package/esm2022/lib/ui/validation/item-validation-summary.component.mjs +9 -9
- package/fesm2022/osovitny-anatoly.mjs +26 -25
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/forms/components/urlslug/urlslug.component.d.ts +3 -3
- package/lib/ui/validation/item-validation-summary.component.d.ts +3 -3
- package/package.json +1 -1
|
@@ -35,7 +35,7 @@ export class FormsHtmlEditorComponent extends HtmlEditorComponentBase {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
static ɵfac = function FormsHtmlEditorComponent_Factory(t) { return new (t || FormsHtmlEditorComponent)(); };
|
|
38
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormsHtmlEditorComponent, selectors: [["anatoly-forms-html-editor"]], inputs: { editorFormKey: "editorFormKey" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 11, consts: [[1, "form-group", 3, "formGroup", "ngClass"], [1, "col-form-label"], [3, "formControlName", "froalaEditor", "froalaInit"], [3, "formGroup", "formSubmitted", "
|
|
38
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormsHtmlEditorComponent, selectors: [["anatoly-forms-html-editor"]], inputs: { editorFormKey: "editorFormKey" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 11, consts: [[1, "form-group", 3, "formGroup", "ngClass"], [1, "col-form-label"], [3, "formControlName", "froalaEditor", "froalaInit"], [3, "formGroup", "formSubmitted", "formControlName", "formControlTitle"]], template: function FormsHtmlEditorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
39
39
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
40
40
|
i0.ɵɵtext(2);
|
|
41
41
|
i0.ɵɵelementEnd();
|
|
@@ -51,13 +51,13 @@ export class FormsHtmlEditorComponent extends HtmlEditorComponentBase {
|
|
|
51
51
|
i0.ɵɵadvance(1);
|
|
52
52
|
i0.ɵɵproperty("formControlName", ctx.editorFormKey)("froalaEditor", ctx.options);
|
|
53
53
|
i0.ɵɵadvance(1);
|
|
54
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("
|
|
54
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("formControlName", ctx.editorFormKey)("formControlTitle", ctx.editorLabelText);
|
|
55
55
|
} }, dependencies: [i1.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.FroalaEditorDirective, i4.NativeElementDirective, i5.ItemValidationSummaryComponent], encapsulation: 2 });
|
|
56
56
|
}
|
|
57
57
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormsHtmlEditorComponent, [{
|
|
58
58
|
type: Component,
|
|
59
|
-
args: [{ selector: "anatoly-forms-html-editor", template: "<div [formGroup]=\"formGroup\" [ngClass]=\"{'has-error': isControlInvalid(editorFormKey) }\" class=\"form-group\" >\r\n <label class=\"col-form-label\">{{ editorLabelText }}</label>\r\n <textarea [formControlName]=\"editorFormKey\" [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\"></textarea>\r\n <anatoly-item-validation-summary [formGroup]=\"formGroup\"\r\n [formSubmitted]=\"formSubmitted\"\r\n [
|
|
59
|
+
args: [{ selector: "anatoly-forms-html-editor", template: "<div [formGroup]=\"formGroup\" [ngClass]=\"{'has-error': isControlInvalid(editorFormKey) }\" class=\"form-group\" >\r\n <label class=\"col-form-label\">{{ editorLabelText }}</label>\r\n <textarea [formControlName]=\"editorFormKey\" [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\"></textarea>\r\n <anatoly-item-validation-summary [formGroup]=\"formGroup\"\r\n [formSubmitted]=\"formSubmitted\"\r\n [formControlName]=\"editorFormKey\"\r\n [formControlTitle]=\"editorLabelText\">\r\n </anatoly-item-validation-summary>\r\n</div>\r\n" }]
|
|
60
60
|
}], function () { return []; }, { editorFormKey: [{
|
|
61
61
|
type: Input
|
|
62
62
|
}] }); })();
|
|
63
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
63
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybXMtaHRtbC1lZGl0b3IuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2NvbXBvbmVudHMvaHRtbC1lZGl0b3IvZm9ybXMtaHRtbC1lZGl0b3IuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2NvbXBvbmVudHMvaHRtbC1lZGl0b3IvZm9ybXMtaHRtbC1lZGl0b3IuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFakQsS0FBSztBQUNMLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLDhCQUE4QixDQUFDOzs7Ozs7OztBQU12RSxNQUFNLE9BQU8sd0JBQXlCLFNBQVEsdUJBQXVCO0lBQzFELGFBQWEsR0FBVyxNQUFNLENBQUM7SUFFeEM7UUFDRSxLQUFLLEVBQUUsQ0FBQztJQUNWLENBQUM7SUFFTSw0QkFBNEIsQ0FBQyxJQUFJLEVBQUUsS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0b3JGb3JtS2V5XCIgW2Zyb2FsYUVkaXRvcl09XCJvcHRpb25zXCIgKGZyb2FsYUluaXQpPVwiaW5pdGlhbGl6ZUNvbnRyb2woJGV2ZW50KVwiPjwvdGV4dGFyZWE+XHJcbiAgICA8YW5hdG9seS1pdGVtLXZhbGlkYXRpb24tc3VtbWFyeSBbZm9ybUdyb3VwXT1cImZvcm1Hcm91cFwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybVN1Ym1pdHRlZF09XCJmb3JtU3VibWl0dGVkXCJcclxuICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIFtmb3JtQ29udHJvbE5hbWVdPVwiZWRpdG9yRm9ybUtleVwiXHJcbiAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICBbZm9ybUNvbnRyb2xUaXRsZV09XCJlZGl0b3JMYWJlbFRleHRcIj5cclxuICAgIDwvYW5hdG9seS1pdGVtLXZhbGlkYXRpb24tc3VtbWFyeT5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -52,12 +52,13 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
52
52
|
//Inputs
|
|
53
53
|
title = 'Permalink:';
|
|
54
54
|
isTitleVisible = true;
|
|
55
|
-
controlName;
|
|
56
|
-
controlTitle;
|
|
57
55
|
class;
|
|
58
56
|
watchedControlName;
|
|
59
57
|
urlPrefix;
|
|
60
58
|
isGoButtonVisible = true;
|
|
59
|
+
//Validation
|
|
60
|
+
formControlName;
|
|
61
|
+
formControlTitle;
|
|
61
62
|
//Outputs
|
|
62
63
|
generating = new EventEmitter();
|
|
63
64
|
constructor() {
|
|
@@ -70,7 +71,7 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
70
71
|
let slugedText = Utils.slugify(text);
|
|
71
72
|
let event = { urlSlug: slugedText };
|
|
72
73
|
this.generating.emit(event);
|
|
73
|
-
this.setFormValue(this.
|
|
74
|
+
this.setFormValue(this.formControlName, event.urlSlug);
|
|
74
75
|
}
|
|
75
76
|
startWatching() {
|
|
76
77
|
this.subs.sink = this.formGroup.get(this.watchedControlName).valueChanges.subscribe({
|
|
@@ -82,7 +83,7 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
82
83
|
this.generateUrlSlug(value);
|
|
83
84
|
}
|
|
84
85
|
});
|
|
85
|
-
this.subs.sink = this.formGroup.get(this.
|
|
86
|
+
this.subs.sink = this.formGroup.get(this.formControlName).valueChanges.subscribe({
|
|
86
87
|
next: (value) => {
|
|
87
88
|
this.hrefGo = value;
|
|
88
89
|
}
|
|
@@ -90,11 +91,11 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
90
91
|
}
|
|
91
92
|
//Events
|
|
92
93
|
onUrlSlugChange() {
|
|
93
|
-
let text = this.getFormValue(this.
|
|
94
|
+
let text = this.getFormValue(this.formControlName);
|
|
94
95
|
this.generateUrlSlug(text);
|
|
95
96
|
}
|
|
96
97
|
static ɵfac = function UrlSlugComponent_Factory(t) { return new (t || UrlSlugComponent)(); };
|
|
97
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { title: "title", isTitleVisible: "isTitleVisible",
|
|
98
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { title: "title", isTitleVisible: "isTitleVisible", class: "class", watchedControlName: "watchedControlName", urlPrefix: "urlPrefix", isGoButtonVisible: "isGoButtonVisible", formControlName: "formControlName", formControlTitle: "formControlTitle" }, outputs: { generating: "generating" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 14, consts: [[3, "formGroup", "ngClass"], [1, "d-flex", "align-items-end"], [3, "formGroup", "formSubmitted", "formControlName", "formControlTitle"], [1, "form-group"], ["class", "col-form-label", 4, "ngIf"], ["type", "text", "placeholder", "Type url slug here", 1, "form-control", 3, "formControlName", "focusout"], ["class", "form-group flex-shrink-1", 4, "ngIf"], [1, "col-form-label"], [1, "urlPrefix"], [1, "form-group", "flex-shrink-1"], ["target", "_blank", 1, "btn", "btn-primary", 3, "href"]], template: function UrlSlugComponent_Template(rf, ctx) { if (rf & 1) {
|
|
98
99
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
99
100
|
i0.ɵɵelement(2, "anatoly-item-validation-summary", 2);
|
|
100
101
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -106,28 +107,24 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
106
107
|
i0.ɵɵelementEnd()();
|
|
107
108
|
} if (rf & 2) {
|
|
108
109
|
i0.ɵɵclassMapInterpolate1("permalink form-group ", ctx.class, "");
|
|
109
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(12, _c0, ctx.isControlInvalid(ctx.
|
|
110
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(12, _c0, ctx.isControlInvalid(ctx.formControlName)));
|
|
110
111
|
i0.ɵɵadvance(2);
|
|
111
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("
|
|
112
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("formControlName", ctx.formControlName)("formControlTitle", ctx.formControlTitle);
|
|
112
113
|
i0.ɵɵadvance(2);
|
|
113
114
|
i0.ɵɵproperty("ngIf", ctx.isTitleVisible);
|
|
114
115
|
i0.ɵɵadvance(1);
|
|
115
|
-
i0.ɵɵproperty("formControlName", ctx.
|
|
116
|
+
i0.ɵɵproperty("formControlName", ctx.formControlName);
|
|
116
117
|
i0.ɵɵadvance(1);
|
|
117
118
|
i0.ɵɵproperty("ngIf", ctx.isGoButtonVisible);
|
|
118
119
|
} }, dependencies: [i1.NgClass, i1.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.NativeElementDirective, i4.ItemValidationSummaryComponent], encapsulation: 2 });
|
|
119
120
|
}
|
|
120
121
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
121
122
|
type: Component,
|
|
122
|
-
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(
|
|
123
|
+
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(formControlName)}\"\r\n class=\"permalink form-group {{class}}\">\r\n <div class=\"d-flex align-items-end\">\r\n <anatoly-item-validation-summary\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n [formControlName]='formControlName'\r\n [formControlTitle]='formControlTitle'>\r\n </anatoly-item-validation-summary>\r\n\r\n <div class=\"form-group\">\r\n <label *ngIf='isTitleVisible' class='col-form-label'>\r\n {{ title }}\r\n <span class=\"urlPrefix\">{{ urlPrefix }}</span>\r\n </label>\r\n <input type='text' class='form-control' placeholder='Type url slug here'\r\n [formControlName]='formControlName' (focusout)='onUrlSlugChange()' />\r\n </div>\r\n\r\n <div class=\"form-group flex-shrink-1\" *ngIf=\"isGoButtonVisible\">\r\n <a href=\"{{urlPrefix}}{{hrefGo}}\" target=\"_blank\" class=\"btn btn-primary\">Go</a>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
123
124
|
}], function () { return []; }, { title: [{
|
|
124
125
|
type: Input
|
|
125
126
|
}], isTitleVisible: [{
|
|
126
127
|
type: Input
|
|
127
|
-
}], controlName: [{
|
|
128
|
-
type: Input
|
|
129
|
-
}], controlTitle: [{
|
|
130
|
-
type: Input
|
|
131
128
|
}], class: [{
|
|
132
129
|
type: Input
|
|
133
130
|
}], watchedControlName: [{
|
|
@@ -136,7 +133,11 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
136
133
|
type: Input
|
|
137
134
|
}], isGoButtonVisible: [{
|
|
138
135
|
type: Input
|
|
136
|
+
}], formControlName: [{
|
|
137
|
+
type: Input
|
|
138
|
+
}], formControlTitle: [{
|
|
139
|
+
type: Input
|
|
139
140
|
}], generating: [{
|
|
140
141
|
type: Output
|
|
141
142
|
}] }); })();
|
|
142
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
143
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsc2x1Zy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvZm9ybXMvY29tcG9uZW50cy91cmxzbHVnL3VybHNsdWcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2Zvcm1zL2NvbXBvbmVudHMvdXJsc2x1Zy91cmxzbHVnLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBRUYsTUFBTTtBQUNOLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBRTFGLEtBQUs7QUFDTCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxvREFBb0QsQ0FBQztBQUN2RixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0sd0JBQXdCLENBQUM7Ozs7Ozs7SUNWekMsZ0NBQXFEO0lBQ25ELFlBQ0E7SUFBQSwrQkFBd0I7SUFBQSxZQUFlO0lBQUEsaUJBQU8sRUFBQTs7O0lBRDlDLGVBQ0E7SUFEQSw2Q0FDQTtJQUF3QixlQUFlO0lBQWYsc0NBQWU7OztJQU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4+XHJcbiAgICAgIDwvbGFiZWw+XHJcbiAgICAgIDxpbnB1dCB0eXBlPSd0ZXh0JyBjbGFzcz0nZm9ybS1jb250cm9sJyBwbGFjZWhvbGRlcj0nVHlwZSB1cmwgc2x1ZyBoZXJlJ1xyXG4gICAgICAgIFtmb3JtQ29udHJvbE5hbWVdPSdmb3JtQ29udHJvbE5hbWUnIChmb2N1c291dCk9J29uVXJsU2x1Z0NoYW5nZSgpJyAvPlxyXG4gICAgPC9kaXY+XHJcblxyXG4gICAgPGRpdiBjbGFzcz1cImZvcm0tZ3JvdXAgZmxleC1zaHJpbmstMVwiICpuZ0lmPVwiaXNHb0J1dHRvblZpc2libGVcIj5cclxuICAgICAgPGEgaHJlZj1cInt7dXJsUHJlZml4fX17e2hyZWZHb319XCIgdGFyZ2V0PVwiX2JsYW5rXCIgY2xhc3M9XCJidG4gYnRuLXByaW1hcnlcIj5HbzwvYT5cclxuICAgIDwvZGl2PlxyXG4gIDwvZGl2PlxyXG48L2Rpdj5cclxuIl19
|
|
@@ -35,24 +35,24 @@ function ItemValidationSummaryComponent_ul_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
35
35
|
} if (rf & 2) {
|
|
36
36
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
37
37
|
i0.ɵɵadvance(1);
|
|
38
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.getValidationMessages(ctx_r0.formGroup.get(ctx_r0.
|
|
38
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.getValidationMessages(ctx_r0.formGroup.get(ctx_r0.formControlName), ctx_r0.formControlTitle));
|
|
39
39
|
} }
|
|
40
40
|
export class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
formControlName;
|
|
42
|
+
formControlTitle;
|
|
43
43
|
static ɵfac = /*@__PURE__*/ function () { let ɵItemValidationSummaryComponent_BaseFactory; return function ItemValidationSummaryComponent_Factory(t) { return (ɵItemValidationSummaryComponent_BaseFactory || (ɵItemValidationSummaryComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ItemValidationSummaryComponent)))(t || ItemValidationSummaryComponent); }; }();
|
|
44
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]], inputs: {
|
|
44
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]], inputs: { formControlName: "formControlName", formControlTitle: "formControlTitle" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "list-unstyled", 4, "ngIf"], [1, "list-unstyled"], [4, "ngFor", "ngForOf"], [1, "help-block"]], template: function ItemValidationSummaryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
45
45
|
i0.ɵɵtemplate(0, ItemValidationSummaryComponent_ul_0_Template, 2, 1, "ul", 0);
|
|
46
46
|
} if (rf & 2) {
|
|
47
|
-
i0.ɵɵproperty("ngIf", ctx.isControlInvalid(ctx.
|
|
47
|
+
i0.ɵɵproperty("ngIf", ctx.isControlInvalid(ctx.formControlName));
|
|
48
48
|
} }, dependencies: [i1.NgForOf, i1.NgIf], encapsulation: 2 });
|
|
49
49
|
}
|
|
50
50
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ItemValidationSummaryComponent, [{
|
|
51
51
|
type: Component,
|
|
52
|
-
args: [{ selector: "anatoly-item-validation-summary", template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(
|
|
53
|
-
}], null, {
|
|
52
|
+
args: [{ selector: "anatoly-item-validation-summary", template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(formControlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(formControlName), formControlTitle)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n" }]
|
|
53
|
+
}], null, { formControlName: [{
|
|
54
54
|
type: Input
|
|
55
|
-
}],
|
|
55
|
+
}], formControlTitle: [{
|
|
56
56
|
type: Input
|
|
57
57
|
}] }); })();
|
|
58
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
58
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbS12YWxpZGF0aW9uLXN1bW1hcnkuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL3ZhbGlkYXRpb24vaXRlbS12YWxpZGF0aW9uLXN1bW1hcnkuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL3ZhbGlkYXRpb24vaXRlbS12YWxpZGF0aW9uLXN1bW1hcnkuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7O0VBY0U7QUFFRixNQUFNO0FBQ04sT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFFakQsS0FBSztBQUNMLE9BQU8sRUFBRSwwQkFBMEIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDOzs7O0lDbkIxRSwwQkFBa0csY0FBQTtJQUN2RSxZQUFXO0lBQUEsaUJBQU8sRUFBQTs7O0lBQWxCLGVBQVc7SUFBWCw4QkFBVzs7O0lBRnhDLDZCQUFvRTtJQUNsRSxrRkFFSztJQUNQLGlCQUFLOzs7SUFIbUIsZUFBMEU7SUFBMUUsNkhBQTBFOztBRHlCbEcsTUFBTSxPQUFPLDhCQUErQixTQUFRLDBCQUEwQjtJQUNuRSxlQUFlLENBQVM7SUFDeEIsZ0JBQWdCLENBQVM7MFJBRnZCLDhCQUE4QixTQUE5Qiw4QkFBOEI7NkRBQTl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XHJcbiAgQElucHV0KCkgZm9ybUNvbnRyb2xOYW1lOiBzdHJpbmc7XHJcbiAgQElucHV0KCkgZm9ybUNvbnRyb2xUaXRsZTogc3RyaW5nO1xyXG59XHJcbiIsIjx1bCBjbGFzcz1cImxpc3QtdW5zdHlsZWRcIiAqbmdJZj1cImlzQ29udHJvbEludmFsaWQoZm9ybUNvbnRyb2xOYW1lKVwiPlxyXG4gIDxsaSAqbmdGb3I9XCJsZXQgZXJyb3Igb2YgZ2V0VmFsaWRhdGlvbk1lc3NhZ2VzKGZvcm1Hcm91cC5nZXQoZm9ybUNvbnRyb2xOYW1lKSwgZm9ybUNvbnRyb2xUaXRsZSlcIj5cclxuICAgIDxzcGFuIGNsYXNzPVwiaGVscC1ibG9ja1wiPnt7IGVycm9yIH19PC9zcGFuPlxyXG4gIDwvbGk+XHJcbjwvdWw+XHJcblxyXG4iXX0=
|
|
@@ -5058,24 +5058,24 @@ function ItemValidationSummaryComponent_ul_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
5058
5058
|
} if (rf & 2) {
|
|
5059
5059
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
5060
5060
|
i0.ɵɵadvance(1);
|
|
5061
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.getValidationMessages(ctx_r0.formGroup.get(ctx_r0.
|
|
5061
|
+
i0.ɵɵproperty("ngForOf", ctx_r0.getValidationMessages(ctx_r0.formGroup.get(ctx_r0.formControlName), ctx_r0.formControlTitle));
|
|
5062
5062
|
} }
|
|
5063
5063
|
class ItemValidationSummaryComponent extends ValidationSummaryComponent {
|
|
5064
|
-
|
|
5065
|
-
|
|
5064
|
+
formControlName;
|
|
5065
|
+
formControlTitle;
|
|
5066
5066
|
static ɵfac = /*@__PURE__*/ function () { let ɵItemValidationSummaryComponent_BaseFactory; return function ItemValidationSummaryComponent_Factory(t) { return (ɵItemValidationSummaryComponent_BaseFactory || (ɵItemValidationSummaryComponent_BaseFactory = i0.ɵɵgetInheritedFactory(ItemValidationSummaryComponent)))(t || ItemValidationSummaryComponent); }; }();
|
|
5067
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]], inputs: {
|
|
5067
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ItemValidationSummaryComponent, selectors: [["anatoly-item-validation-summary"]], inputs: { formControlName: "formControlName", formControlTitle: "formControlTitle" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: [["class", "list-unstyled", 4, "ngIf"], [1, "list-unstyled"], [4, "ngFor", "ngForOf"], [1, "help-block"]], template: function ItemValidationSummaryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5068
5068
|
i0.ɵɵtemplate(0, ItemValidationSummaryComponent_ul_0_Template, 2, 1, "ul", 0);
|
|
5069
5069
|
} if (rf & 2) {
|
|
5070
|
-
i0.ɵɵproperty("ngIf", ctx.isControlInvalid(ctx.
|
|
5070
|
+
i0.ɵɵproperty("ngIf", ctx.isControlInvalid(ctx.formControlName));
|
|
5071
5071
|
} }, dependencies: [i1$2.NgForOf, i1$2.NgIf], encapsulation: 2 });
|
|
5072
5072
|
}
|
|
5073
5073
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ItemValidationSummaryComponent, [{
|
|
5074
5074
|
type: Component,
|
|
5075
|
-
args: [{ selector: "anatoly-item-validation-summary", template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(
|
|
5076
|
-
}], null, {
|
|
5075
|
+
args: [{ selector: "anatoly-item-validation-summary", template: "<ul class=\"list-unstyled\" *ngIf=\"isControlInvalid(formControlName)\">\r\n <li *ngFor=\"let error of getValidationMessages(formGroup.get(formControlName), formControlTitle)\">\r\n <span class=\"help-block\">{{ error }}</span>\r\n </li>\r\n</ul>\r\n\r\n" }]
|
|
5076
|
+
}], null, { formControlName: [{
|
|
5077
5077
|
type: Input
|
|
5078
|
-
}],
|
|
5078
|
+
}], formControlTitle: [{
|
|
5079
5079
|
type: Input
|
|
5080
5080
|
}] }); })();
|
|
5081
5081
|
|
|
@@ -5107,7 +5107,7 @@ class FormsHtmlEditorComponent extends HtmlEditorComponentBase {
|
|
|
5107
5107
|
});
|
|
5108
5108
|
}
|
|
5109
5109
|
static ɵfac = function FormsHtmlEditorComponent_Factory(t) { return new (t || FormsHtmlEditorComponent)(); };
|
|
5110
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormsHtmlEditorComponent, selectors: [["anatoly-forms-html-editor"]], inputs: { editorFormKey: "editorFormKey" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 11, consts: [[1, "form-group", 3, "formGroup", "ngClass"], [1, "col-form-label"], [3, "formControlName", "froalaEditor", "froalaInit"], [3, "formGroup", "formSubmitted", "
|
|
5110
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FormsHtmlEditorComponent, selectors: [["anatoly-forms-html-editor"]], inputs: { editorFormKey: "editorFormKey" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 11, consts: [[1, "form-group", 3, "formGroup", "ngClass"], [1, "col-form-label"], [3, "formControlName", "froalaEditor", "froalaInit"], [3, "formGroup", "formSubmitted", "formControlName", "formControlTitle"]], template: function FormsHtmlEditorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5111
5111
|
i0.ɵɵelementStart(0, "div", 0)(1, "label", 1);
|
|
5112
5112
|
i0.ɵɵtext(2);
|
|
5113
5113
|
i0.ɵɵelementEnd();
|
|
@@ -5123,12 +5123,12 @@ class FormsHtmlEditorComponent extends HtmlEditorComponentBase {
|
|
|
5123
5123
|
i0.ɵɵadvance(1);
|
|
5124
5124
|
i0.ɵɵproperty("formControlName", ctx.editorFormKey)("froalaEditor", ctx.options);
|
|
5125
5125
|
i0.ɵɵadvance(1);
|
|
5126
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("
|
|
5126
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("formControlName", ctx.editorFormKey)("formControlTitle", ctx.editorLabelText);
|
|
5127
5127
|
} }, dependencies: [i1$2.NgClass, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, i3.FroalaEditorDirective, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
5128
5128
|
}
|
|
5129
5129
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FormsHtmlEditorComponent, [{
|
|
5130
5130
|
type: Component,
|
|
5131
|
-
args: [{ selector: "anatoly-forms-html-editor", template: "<div [formGroup]=\"formGroup\" [ngClass]=\"{'has-error': isControlInvalid(editorFormKey) }\" class=\"form-group\" >\r\n <label class=\"col-form-label\">{{ editorLabelText }}</label>\r\n <textarea [formControlName]=\"editorFormKey\" [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\"></textarea>\r\n <anatoly-item-validation-summary [formGroup]=\"formGroup\"\r\n [formSubmitted]=\"formSubmitted\"\r\n [
|
|
5131
|
+
args: [{ selector: "anatoly-forms-html-editor", template: "<div [formGroup]=\"formGroup\" [ngClass]=\"{'has-error': isControlInvalid(editorFormKey) }\" class=\"form-group\" >\r\n <label class=\"col-form-label\">{{ editorLabelText }}</label>\r\n <textarea [formControlName]=\"editorFormKey\" [froalaEditor]=\"options\" (froalaInit)=\"initializeControl($event)\"></textarea>\r\n <anatoly-item-validation-summary [formGroup]=\"formGroup\"\r\n [formSubmitted]=\"formSubmitted\"\r\n [formControlName]=\"editorFormKey\"\r\n [formControlTitle]=\"editorLabelText\">\r\n </anatoly-item-validation-summary>\r\n</div>\r\n" }]
|
|
5132
5132
|
}], function () { return []; }, { editorFormKey: [{
|
|
5133
5133
|
type: Input
|
|
5134
5134
|
}] }); })();
|
|
@@ -6060,12 +6060,13 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6060
6060
|
//Inputs
|
|
6061
6061
|
title = 'Permalink:';
|
|
6062
6062
|
isTitleVisible = true;
|
|
6063
|
-
controlName;
|
|
6064
|
-
controlTitle;
|
|
6065
6063
|
class;
|
|
6066
6064
|
watchedControlName;
|
|
6067
6065
|
urlPrefix;
|
|
6068
6066
|
isGoButtonVisible = true;
|
|
6067
|
+
//Validation
|
|
6068
|
+
formControlName;
|
|
6069
|
+
formControlTitle;
|
|
6069
6070
|
//Outputs
|
|
6070
6071
|
generating = new EventEmitter();
|
|
6071
6072
|
constructor() {
|
|
@@ -6078,7 +6079,7 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6078
6079
|
let slugedText = Utils.slugify(text);
|
|
6079
6080
|
let event = { urlSlug: slugedText };
|
|
6080
6081
|
this.generating.emit(event);
|
|
6081
|
-
this.setFormValue(this.
|
|
6082
|
+
this.setFormValue(this.formControlName, event.urlSlug);
|
|
6082
6083
|
}
|
|
6083
6084
|
startWatching() {
|
|
6084
6085
|
this.subs.sink = this.formGroup.get(this.watchedControlName).valueChanges.subscribe({
|
|
@@ -6090,7 +6091,7 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6090
6091
|
this.generateUrlSlug(value);
|
|
6091
6092
|
}
|
|
6092
6093
|
});
|
|
6093
|
-
this.subs.sink = this.formGroup.get(this.
|
|
6094
|
+
this.subs.sink = this.formGroup.get(this.formControlName).valueChanges.subscribe({
|
|
6094
6095
|
next: (value) => {
|
|
6095
6096
|
this.hrefGo = value;
|
|
6096
6097
|
}
|
|
@@ -6098,11 +6099,11 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6098
6099
|
}
|
|
6099
6100
|
//Events
|
|
6100
6101
|
onUrlSlugChange() {
|
|
6101
|
-
let text = this.getFormValue(this.
|
|
6102
|
+
let text = this.getFormValue(this.formControlName);
|
|
6102
6103
|
this.generateUrlSlug(text);
|
|
6103
6104
|
}
|
|
6104
6105
|
static ɵfac = function UrlSlugComponent_Factory(t) { return new (t || UrlSlugComponent)(); };
|
|
6105
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { title: "title", isTitleVisible: "isTitleVisible",
|
|
6106
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { title: "title", isTitleVisible: "isTitleVisible", class: "class", watchedControlName: "watchedControlName", urlPrefix: "urlPrefix", isGoButtonVisible: "isGoButtonVisible", formControlName: "formControlName", formControlTitle: "formControlTitle" }, outputs: { generating: "generating" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 14, consts: [[3, "formGroup", "ngClass"], [1, "d-flex", "align-items-end"], [3, "formGroup", "formSubmitted", "formControlName", "formControlTitle"], [1, "form-group"], ["class", "col-form-label", 4, "ngIf"], ["type", "text", "placeholder", "Type url slug here", 1, "form-control", 3, "formControlName", "focusout"], ["class", "form-group flex-shrink-1", 4, "ngIf"], [1, "col-form-label"], [1, "urlPrefix"], [1, "form-group", "flex-shrink-1"], ["target", "_blank", 1, "btn", "btn-primary", 3, "href"]], template: function UrlSlugComponent_Template(rf, ctx) { if (rf & 1) {
|
|
6106
6107
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6107
6108
|
i0.ɵɵelement(2, "anatoly-item-validation-summary", 2);
|
|
6108
6109
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -6114,28 +6115,24 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6114
6115
|
i0.ɵɵelementEnd()();
|
|
6115
6116
|
} if (rf & 2) {
|
|
6116
6117
|
i0.ɵɵclassMapInterpolate1("permalink form-group ", ctx.class, "");
|
|
6117
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(12, _c0, ctx.isControlInvalid(ctx.
|
|
6118
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("ngClass", i0.ɵɵpureFunction1(12, _c0, ctx.isControlInvalid(ctx.formControlName)));
|
|
6118
6119
|
i0.ɵɵadvance(2);
|
|
6119
|
-
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("
|
|
6120
|
+
i0.ɵɵproperty("formGroup", ctx.formGroup)("formSubmitted", ctx.formSubmitted)("formControlName", ctx.formControlName)("formControlTitle", ctx.formControlTitle);
|
|
6120
6121
|
i0.ɵɵadvance(2);
|
|
6121
6122
|
i0.ɵɵproperty("ngIf", ctx.isTitleVisible);
|
|
6122
6123
|
i0.ɵɵadvance(1);
|
|
6123
|
-
i0.ɵɵproperty("formControlName", ctx.
|
|
6124
|
+
i0.ɵɵproperty("formControlName", ctx.formControlName);
|
|
6124
6125
|
i0.ɵɵadvance(1);
|
|
6125
6126
|
i0.ɵɵproperty("ngIf", ctx.isGoButtonVisible);
|
|
6126
6127
|
} }, dependencies: [i1$2.NgClass, i1$2.NgIf, i2.DefaultValueAccessor, i2.NgControlStatus, i2.NgControlStatusGroup, i2.FormGroupDirective, i2.FormControlName, NativeElementDirective, ItemValidationSummaryComponent], encapsulation: 2 });
|
|
6127
6128
|
}
|
|
6128
6129
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
6129
6130
|
type: Component,
|
|
6130
|
-
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(
|
|
6131
|
+
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(formControlName)}\"\r\n class=\"permalink form-group {{class}}\">\r\n <div class=\"d-flex align-items-end\">\r\n <anatoly-item-validation-summary\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'\r\n [formControlName]='formControlName'\r\n [formControlTitle]='formControlTitle'>\r\n </anatoly-item-validation-summary>\r\n\r\n <div class=\"form-group\">\r\n <label *ngIf='isTitleVisible' class='col-form-label'>\r\n {{ title }}\r\n <span class=\"urlPrefix\">{{ urlPrefix }}</span>\r\n </label>\r\n <input type='text' class='form-control' placeholder='Type url slug here'\r\n [formControlName]='formControlName' (focusout)='onUrlSlugChange()' />\r\n </div>\r\n\r\n <div class=\"form-group flex-shrink-1\" *ngIf=\"isGoButtonVisible\">\r\n <a href=\"{{urlPrefix}}{{hrefGo}}\" target=\"_blank\" class=\"btn btn-primary\">Go</a>\r\n </div>\r\n </div>\r\n</div>\r\n" }]
|
|
6131
6132
|
}], function () { return []; }, { title: [{
|
|
6132
6133
|
type: Input
|
|
6133
6134
|
}], isTitleVisible: [{
|
|
6134
6135
|
type: Input
|
|
6135
|
-
}], controlName: [{
|
|
6136
|
-
type: Input
|
|
6137
|
-
}], controlTitle: [{
|
|
6138
|
-
type: Input
|
|
6139
6136
|
}], class: [{
|
|
6140
6137
|
type: Input
|
|
6141
6138
|
}], watchedControlName: [{
|
|
@@ -6144,6 +6141,10 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6144
6141
|
type: Input
|
|
6145
6142
|
}], isGoButtonVisible: [{
|
|
6146
6143
|
type: Input
|
|
6144
|
+
}], formControlName: [{
|
|
6145
|
+
type: Input
|
|
6146
|
+
}], formControlTitle: [{
|
|
6147
|
+
type: Input
|
|
6147
6148
|
}], generating: [{
|
|
6148
6149
|
type: Output
|
|
6149
6150
|
}] }); })();
|