@osovitny/anatoly 3.16.86 → 3.16.88
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/core/converts/convert.mjs +18 -8
- package/esm2022/lib/ui/components/base/components/component.mjs +11 -2
- package/esm2022/lib/ui/components/card/card-body.component.mjs +8 -9
- package/esm2022/lib/ui/components/card/card-footer.component.mjs +8 -9
- package/esm2022/lib/ui/components/card/card-header.component.mjs +8 -12
- package/esm2022/lib/ui/components/card/card.component.mjs +8 -9
- package/esm2022/lib/ui/forms/components/address/address.component.mjs +4 -12
- package/esm2022/lib/ui/forms/components/company/company.component.mjs +4 -9
- package/esm2022/lib/ui/forms/components/dropdownlists/timezone/timezone.dropdownlist.mjs +4 -9
- package/esm2022/lib/ui/forms/components/urlslug/urlslug.component.mjs +8 -10
- package/fesm2022/osovitny-anatoly.mjs +59 -75
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/converts/convert.d.ts +4 -1
- package/lib/ui/components/base/components/component.d.ts +4 -1
- package/lib/ui/components/card/card-body.component.d.ts +3 -3
- package/lib/ui/components/card/card-footer.component.d.ts +3 -3
- package/lib/ui/components/card/card-header.component.d.ts +3 -4
- package/lib/ui/components/card/card.component.d.ts +3 -3
- package/lib/ui/forms/components/address/address.component.d.ts +1 -4
- package/lib/ui/forms/components/company/company.component.d.ts +1 -3
- package/lib/ui/forms/components/dropdownlists/timezone/timezone.dropdownlist.d.ts +1 -3
- package/lib/ui/forms/components/urlslug/urlslug.component.d.ts +2 -3
- package/package.json +1 -1
|
@@ -43,14 +43,13 @@ export class TimezoneDropdownlist extends EditComponentBase {
|
|
|
43
43
|
appContext;
|
|
44
44
|
timezoneListItems;
|
|
45
45
|
//Inputs
|
|
46
|
-
title = 'Timezone';
|
|
47
|
-
isTitleVisible = true;
|
|
48
46
|
controlName = 'timezone';
|
|
49
47
|
controlTitle;
|
|
50
48
|
constructor(api, appContext) {
|
|
51
49
|
super();
|
|
52
50
|
this.api = api;
|
|
53
51
|
this.appContext = appContext;
|
|
52
|
+
this.title = 'Timezone';
|
|
54
53
|
}
|
|
55
54
|
ngOnInit() {
|
|
56
55
|
this.setValues();
|
|
@@ -72,7 +71,7 @@ export class TimezoneDropdownlist extends EditComponentBase {
|
|
|
72
71
|
}
|
|
73
72
|
}
|
|
74
73
|
static ɵfac = function TimezoneDropdownlist_Factory(t) { return new (t || TimezoneDropdownlist)(i0.ɵɵdirectiveInject(i1.CoreApiService), i0.ɵɵdirectiveInject(i2.AppContextService)); };
|
|
75
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]], inputs: {
|
|
74
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]], inputs: { controlName: "controlName", controlTitle: "controlTitle" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 4, consts: [[1, "form-group", 3, "formGroup"], ["class", "col-form-label", 4, "ngIf"], [1, "form-control", 3, "formControlName"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-form-label"], [3, "value"]], template: function TimezoneDropdownlist_Template(rf, ctx) { if (rf & 1) {
|
|
76
75
|
i0.ɵɵelementStart(0, "div", 0);
|
|
77
76
|
i0.ɵɵtemplate(1, TimezoneDropdownlist_label_1_Template, 2, 0, "label", 1);
|
|
78
77
|
i0.ɵɵelementStart(2, "select", 2);
|
|
@@ -91,13 +90,9 @@ export class TimezoneDropdownlist extends EditComponentBase {
|
|
|
91
90
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimezoneDropdownlist, [{
|
|
92
91
|
type: Component,
|
|
93
92
|
args: [{ selector: 'anatoly-forms-timezone-dropdownlist', template: "<div [formGroup]='formGroup' class='form-group'>\r\n <label *ngIf='isTitleVisible' class='col-form-label'>Timezone</label>\r\n <select [formControlName]='controlName' class='form-control'>\r\n <option *ngFor='let timezone of timezoneListItems'\r\n [value]='timezone.code'>\r\n ({{timezone.offset}}) {{timezone.name}}\r\n </option>\r\n </select>\r\n</div>\r\n" }]
|
|
94
|
-
}], function () { return [{ type: i1.CoreApiService }, { type: i2.AppContextService }]; }, {
|
|
95
|
-
type: Input
|
|
96
|
-
}], isTitleVisible: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], controlName: [{
|
|
93
|
+
}], function () { return [{ type: i1.CoreApiService }, { type: i2.AppContextService }]; }, { controlName: [{
|
|
99
94
|
type: Input
|
|
100
95
|
}], controlTitle: [{
|
|
101
96
|
type: Input
|
|
102
97
|
}] }); })();
|
|
103
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
98
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZXpvbmUuZHJvcGRvd25saXN0LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2Zvcm1zL2NvbXBvbmVudHMvZHJvcGRvd25saXN0cy90aW1lem9uZS90aW1lem9uZS5kcm9wZG93bmxpc3QudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvZm9ybXMvY29tcG9uZW50cy9kcm9wZG93bmxpc3RzL3RpbWV6b25lL3RpbWV6b25lLmRyb3Bkb3dubGlzdC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBRUYsTUFBTTtBQUNOLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBRXpELEtBQUs7QUFDTCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBT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bWVdPSdjb250cm9sTmFtZScgY2xhc3M9J2Zvcm0tY29udHJvbCc+XHJcbiAgICA8b3B0aW9uICpuZ0Zvcj0nbGV0IHRpbWV6b25lIG9mIHRpbWV6b25lTGlzdEl0ZW1zJ1xyXG4gICAgICAgICAgICBbdmFsdWVdPSd0aW1lem9uZS5jb2RlJz5cclxuICAgICAgKHt7dGltZXpvbmUub2Zmc2V0fX0pICB7e3RpbWV6b25lLm5hbWV9fVxyXG4gICAgPC9vcHRpb24+XHJcbiAgPC9zZWxlY3Q+XHJcbjwvZGl2PlxyXG4iXX0=
|
|
@@ -50,8 +50,6 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
50
50
|
firstValue = true;
|
|
51
51
|
hrefGo;
|
|
52
52
|
//Inputs
|
|
53
|
-
title = 'Permalink:';
|
|
54
|
-
isTitleVisible = true;
|
|
55
53
|
urlPrefix;
|
|
56
54
|
isGoButtonVisible = true;
|
|
57
55
|
//Validation
|
|
@@ -59,6 +57,10 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
59
57
|
watchedControlName;
|
|
60
58
|
//Outputs
|
|
61
59
|
generating = new EventEmitter();
|
|
60
|
+
constructor() {
|
|
61
|
+
super();
|
|
62
|
+
this.title = 'Permalink';
|
|
63
|
+
}
|
|
62
64
|
ngOnInit() {
|
|
63
65
|
this.startWatching();
|
|
64
66
|
}
|
|
@@ -89,8 +91,8 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
89
91
|
let text = this.getFormValue(this.controlName);
|
|
90
92
|
this.generateUrlSlug(text);
|
|
91
93
|
}
|
|
92
|
-
static ɵfac =
|
|
93
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: {
|
|
94
|
+
static ɵfac = function UrlSlugComponent_Factory(t) { return new (t || UrlSlugComponent)(); };
|
|
95
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { urlPrefix: "urlPrefix", isGoButtonVisible: "isGoButtonVisible", controlName: "controlName", watchedControlName: "watchedControlName" }, outputs: { generating: "generating" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 13, consts: [[3, "formGroup", "ngClass"], [1, "d-flex", "align-items-end"], [3, "formGroup", "formSubmitted", "formControlName"], [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) {
|
|
94
96
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
95
97
|
i0.ɵɵelement(2, "anatoly-item-validation-summary", 2);
|
|
96
98
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -116,11 +118,7 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
116
118
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
117
119
|
type: Component,
|
|
118
120
|
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(controlName)}\"\r\n class=\"permalink form-group {{ classes }}\">\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]='controlName'>\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'\r\n class='form-control'\r\n placeholder='Type url slug here'\r\n [formControlName]='controlName'\r\n (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" }]
|
|
119
|
-
}],
|
|
120
|
-
type: Input
|
|
121
|
-
}], isTitleVisible: [{
|
|
122
|
-
type: Input
|
|
123
|
-
}], urlPrefix: [{
|
|
121
|
+
}], function () { return []; }, { urlPrefix: [{
|
|
124
122
|
type: Input
|
|
125
123
|
}], isGoButtonVisible: [{
|
|
126
124
|
type: Input
|
|
@@ -131,4 +129,4 @@ export class UrlSlugComponent extends EditComponentBase {
|
|
|
131
129
|
}], generating: [{
|
|
132
130
|
type: Output
|
|
133
131
|
}] }); })();
|
|
134
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
132
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsc2x1Zy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmF0b2x5L3NyYy9saWIvdWkvZm9ybXMvY29tcG9uZW50cy91cmxzbHVnL3VybHNsdWcuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvYW5hdG9seS9zcmMvbGliL3VpL2Zvcm1zL2NvbXBvbmVudHMvdXJsc2x1Zy91cmxzbHVnLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7Ozs7Ozs7OztFQWNFO0FBRUYsTUFBTTtBQUNOLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLFlBQVksRUFBRSxNQUFNLEVBQXFCLE1BQU0sZUFBZSxDQUFDO0FBRTFGLEtBQUs7QUFDTCxPQUFPLEVBQUU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ICBbZm9ybUNvbnRyb2xOYW1lXT0nY29udHJvbE5hbWUnXHJcbiAgICAgICAgICAgICAoZm9jdXNvdXQpPSdvblVybFNsdWdDaGFuZ2UoKScgLz5cclxuICAgIDwvZGl2PlxyXG5cclxuICAgIDxkaXYgY2xhc3M9XCJmb3JtLWdyb3VwIGZsZXgtc2hyaW5rLTFcIiAqbmdJZj1cImlzR29CdXR0b25WaXNpYmxlXCI+XHJcbiAgICAgIDxhIGhyZWY9XCJ7e3VybFByZWZpeH19e3tocmVmR299fVwiIHRhcmdldD1cIl9ibGFua1wiIGNsYXNzPVwiYnRuIGJ0bi1wcmltYXJ5XCI+R288L2E+XHJcbiAgICA8L2Rpdj5cclxuICA8L2Rpdj5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -130,7 +130,7 @@ class Convert {
|
|
|
130
130
|
return k;
|
|
131
131
|
return null;
|
|
132
132
|
}
|
|
133
|
-
static enumToArray(enumeration, notIncludes) {
|
|
133
|
+
static enumToArray(enumeration, valueAsInt = true, notIncludes) {
|
|
134
134
|
const notIncludeFiler = (value) => {
|
|
135
135
|
if (isNaN(Number(value))) {
|
|
136
136
|
return false;
|
|
@@ -143,12 +143,22 @@ class Convert {
|
|
|
143
143
|
}
|
|
144
144
|
return true;
|
|
145
145
|
};
|
|
146
|
-
|
|
147
|
-
.
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
146
|
+
if (valueAsInt) {
|
|
147
|
+
return Object.keys(enumeration)
|
|
148
|
+
.filter(notIncludeFiler)
|
|
149
|
+
.map(key => ({
|
|
150
|
+
value: parseInt(key),
|
|
151
|
+
text: enumeration[key]
|
|
152
|
+
}));
|
|
153
|
+
}
|
|
154
|
+
else {
|
|
155
|
+
return Object.keys(enumeration)
|
|
156
|
+
.filter(notIncludeFiler)
|
|
157
|
+
.map(key => ({
|
|
158
|
+
value: key,
|
|
159
|
+
text: enumeration[key]
|
|
160
|
+
}));
|
|
161
|
+
}
|
|
152
162
|
}
|
|
153
163
|
static stringToArray(str, separator = ',') {
|
|
154
164
|
if (str) {
|
|
@@ -3219,6 +3229,9 @@ class ComponentBase {
|
|
|
3219
3229
|
dataFound = false;
|
|
3220
3230
|
//Inputs
|
|
3221
3231
|
classes;
|
|
3232
|
+
title = '';
|
|
3233
|
+
isTitleVisible = true;
|
|
3234
|
+
isRequired = false;
|
|
3222
3235
|
constructor() {
|
|
3223
3236
|
this.isDevMode = isDevMode();
|
|
3224
3237
|
}
|
|
@@ -3250,7 +3263,7 @@ class ComponentBase {
|
|
|
3250
3263
|
this.dataFound = found;
|
|
3251
3264
|
}
|
|
3252
3265
|
static ɵfac = function ComponentBase_Factory(t) { return new (t || ComponentBase)(); };
|
|
3253
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ComponentBase, selectors: [["ng-component"]], inputs: { classes: "classes" }, decls: 0, vars: 0, template: function ComponentBase_Template(rf, ctx) { }, encapsulation: 2 });
|
|
3266
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ComponentBase, selectors: [["ng-component"]], inputs: { classes: "classes", title: "title", isTitleVisible: "isTitleVisible", isRequired: "isRequired" }, decls: 0, vars: 0, template: function ComponentBase_Template(rf, ctx) { }, encapsulation: 2 });
|
|
3254
3267
|
}
|
|
3255
3268
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComponentBase, [{
|
|
3256
3269
|
type: Component,
|
|
@@ -3259,6 +3272,12 @@ class ComponentBase {
|
|
|
3259
3272
|
}]
|
|
3260
3273
|
}], function () { return []; }, { classes: [{
|
|
3261
3274
|
type: Input
|
|
3275
|
+
}], title: [{
|
|
3276
|
+
type: Input
|
|
3277
|
+
}], isTitleVisible: [{
|
|
3278
|
+
type: Input
|
|
3279
|
+
}], isRequired: [{
|
|
3280
|
+
type: Input
|
|
3262
3281
|
}] }); })();
|
|
3263
3282
|
|
|
3264
3283
|
/*
|
|
@@ -4548,10 +4567,9 @@ class Copy2ClipboardComponent {
|
|
|
4548
4567
|
//Node
|
|
4549
4568
|
const _c0$9 = [[["mex-card-header"]], [["mex-card-body"]], "*", [["mex-card-footer"]]];
|
|
4550
4569
|
const _c1 = ["mex-card-header", "mex-card-body", "*", "mex-card-footer"];
|
|
4551
|
-
class CardComponent {
|
|
4552
|
-
|
|
4553
|
-
static
|
|
4554
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardComponent, selectors: [["anatoly-card"]], inputs: { classes: "classes" }, ngContentSelectors: _c1, decls: 5, vars: 3, template: function CardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4570
|
+
class CardComponent extends ComponentBase {
|
|
4571
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardComponent_BaseFactory; return function CardComponent_Factory(t) { return (ɵCardComponent_BaseFactory || (ɵCardComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardComponent)))(t || CardComponent); }; }();
|
|
4572
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardComponent, selectors: [["anatoly-card"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c1, decls: 5, vars: 3, template: function CardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4555
4573
|
i0.ɵɵprojectionDef(_c0$9);
|
|
4556
4574
|
i0.ɵɵelementStart(0, "div");
|
|
4557
4575
|
i0.ɵɵprojection(1);
|
|
@@ -4566,9 +4584,7 @@ class CardComponent {
|
|
|
4566
4584
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardComponent, [{
|
|
4567
4585
|
type: Component,
|
|
4568
4586
|
args: [{ selector: 'anatoly-card', template: "<div class='card {{ classes }}'>\r\n <ng-content select='mex-card-header'></ng-content>\r\n <ng-content select='mex-card-body'></ng-content>\r\n <ng-content></ng-content>\r\n <ng-content select='mex-card-footer'></ng-content>\r\n</div>\r\n" }]
|
|
4569
|
-
}], null,
|
|
4570
|
-
type: Input
|
|
4571
|
-
}] }); })();
|
|
4587
|
+
}], null, null); })();
|
|
4572
4588
|
|
|
4573
4589
|
/*
|
|
4574
4590
|
<file>
|
|
@@ -4596,11 +4612,9 @@ function CardHeaderComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
4596
4612
|
i0.ɵɵtextInterpolate(ctx_r0.title);
|
|
4597
4613
|
} }
|
|
4598
4614
|
const _c0$8 = ["*"];
|
|
4599
|
-
class CardHeaderComponent {
|
|
4600
|
-
|
|
4601
|
-
title
|
|
4602
|
-
static ɵfac = function CardHeaderComponent_Factory(t) { return new (t || CardHeaderComponent)(); };
|
|
4603
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardHeaderComponent, selectors: [["anatoly-card-header"]], inputs: { classes: "classes", title: "title" }, ngContentSelectors: _c0$8, decls: 3, vars: 4, consts: [["class", "card-title", 4, "ngIf"], [1, "card-title"]], template: function CardHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4615
|
+
class CardHeaderComponent extends ComponentBase {
|
|
4616
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardHeaderComponent_BaseFactory; return function CardHeaderComponent_Factory(t) { return (ɵCardHeaderComponent_BaseFactory || (ɵCardHeaderComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardHeaderComponent)))(t || CardHeaderComponent); }; }();
|
|
4617
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardHeaderComponent, selectors: [["anatoly-card-header"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$8, decls: 3, vars: 4, consts: [["class", "card-title", 4, "ngIf"], [1, "card-title"]], template: function CardHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4604
4618
|
i0.ɵɵprojectionDef();
|
|
4605
4619
|
i0.ɵɵelementStart(0, "div");
|
|
4606
4620
|
i0.ɵɵtemplate(1, CardHeaderComponent_h3_1_Template, 2, 1, "h3", 0);
|
|
@@ -4615,11 +4629,7 @@ class CardHeaderComponent {
|
|
|
4615
4629
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardHeaderComponent, [{
|
|
4616
4630
|
type: Component,
|
|
4617
4631
|
args: [{ selector: 'anatoly-card-header', template: "<div class='card-header {{ classes }}'>\r\n <h3 *ngIf='title' class='card-title'>{{ title }}</h3>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4618
|
-
}], null,
|
|
4619
|
-
type: Input
|
|
4620
|
-
}], title: [{
|
|
4621
|
-
type: Input
|
|
4622
|
-
}] }); })();
|
|
4632
|
+
}], null, null); })();
|
|
4623
4633
|
|
|
4624
4634
|
/*
|
|
4625
4635
|
<file>
|
|
@@ -4638,10 +4648,9 @@ class CardHeaderComponent {
|
|
|
4638
4648
|
*/
|
|
4639
4649
|
//Node
|
|
4640
4650
|
const _c0$7 = ["*"];
|
|
4641
|
-
class CardBodyComponent {
|
|
4642
|
-
|
|
4643
|
-
static
|
|
4644
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardBodyComponent, selectors: [["anatoly-card-body"]], inputs: { classes: "classes" }, ngContentSelectors: _c0$7, decls: 2, vars: 3, template: function CardBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4651
|
+
class CardBodyComponent extends ComponentBase {
|
|
4652
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardBodyComponent_BaseFactory; return function CardBodyComponent_Factory(t) { return (ɵCardBodyComponent_BaseFactory || (ɵCardBodyComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardBodyComponent)))(t || CardBodyComponent); }; }();
|
|
4653
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardBodyComponent, selectors: [["anatoly-card-body"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$7, decls: 2, vars: 3, template: function CardBodyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4645
4654
|
i0.ɵɵprojectionDef();
|
|
4646
4655
|
i0.ɵɵelementStart(0, "div");
|
|
4647
4656
|
i0.ɵɵprojection(1);
|
|
@@ -4653,9 +4662,7 @@ class CardBodyComponent {
|
|
|
4653
4662
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardBodyComponent, [{
|
|
4654
4663
|
type: Component,
|
|
4655
4664
|
args: [{ selector: 'anatoly-card-body', template: "<div class='card-body {{ classes }}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4656
|
-
}], null,
|
|
4657
|
-
type: Input
|
|
4658
|
-
}] }); })();
|
|
4665
|
+
}], null, null); })();
|
|
4659
4666
|
|
|
4660
4667
|
/*
|
|
4661
4668
|
<file>
|
|
@@ -4674,10 +4681,9 @@ class CardBodyComponent {
|
|
|
4674
4681
|
*/
|
|
4675
4682
|
//Node
|
|
4676
4683
|
const _c0$6 = ["*"];
|
|
4677
|
-
class CardFooterComponent {
|
|
4678
|
-
|
|
4679
|
-
static
|
|
4680
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardFooterComponent, selectors: [["anatoly-card-footer"]], inputs: { classes: "classes" }, ngContentSelectors: _c0$6, decls: 2, vars: 3, template: function CardFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4684
|
+
class CardFooterComponent extends ComponentBase {
|
|
4685
|
+
static ɵfac = /*@__PURE__*/ function () { let ɵCardFooterComponent_BaseFactory; return function CardFooterComponent_Factory(t) { return (ɵCardFooterComponent_BaseFactory || (ɵCardFooterComponent_BaseFactory = i0.ɵɵgetInheritedFactory(CardFooterComponent)))(t || CardFooterComponent); }; }();
|
|
4686
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CardFooterComponent, selectors: [["anatoly-card-footer"]], features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$6, decls: 2, vars: 3, template: function CardFooterComponent_Template(rf, ctx) { if (rf & 1) {
|
|
4681
4687
|
i0.ɵɵprojectionDef();
|
|
4682
4688
|
i0.ɵɵelementStart(0, "div");
|
|
4683
4689
|
i0.ɵɵprojection(1);
|
|
@@ -4689,9 +4695,7 @@ class CardFooterComponent {
|
|
|
4689
4695
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardFooterComponent, [{
|
|
4690
4696
|
type: Component,
|
|
4691
4697
|
args: [{ selector: 'anatoly-card-footer', template: "<div class='card-footer {{ classes }}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4692
|
-
}], null,
|
|
4693
|
-
type: Input
|
|
4694
|
-
}] }); })();
|
|
4698
|
+
}], null, null); })();
|
|
4695
4699
|
|
|
4696
4700
|
/*
|
|
4697
4701
|
<file>
|
|
@@ -5716,9 +5720,6 @@ class AddressComponent extends EditComponentBase {
|
|
|
5716
5720
|
currentCountry = 'US';
|
|
5717
5721
|
currentUSState = 'NY';
|
|
5718
5722
|
//Inputs
|
|
5719
|
-
title = 'Address';
|
|
5720
|
-
isTitleVisible = true;
|
|
5721
|
-
isRequired;
|
|
5722
5723
|
get address() {
|
|
5723
5724
|
return this._address;
|
|
5724
5725
|
}
|
|
@@ -5734,6 +5735,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5734
5735
|
super();
|
|
5735
5736
|
this.fb = fb;
|
|
5736
5737
|
this.api = api;
|
|
5738
|
+
this.title = 'Address';
|
|
5737
5739
|
}
|
|
5738
5740
|
ngOnInit() {
|
|
5739
5741
|
this.api.getCountriesJsonFile(data => {
|
|
@@ -5800,7 +5802,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5800
5802
|
this.change.emit(usState);
|
|
5801
5803
|
}
|
|
5802
5804
|
static ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(CoreApiService)); };
|
|
5803
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressComponent, selectors: [["anatoly-forms-address"]], inputs: {
|
|
5805
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: AddressComponent, selectors: [["anatoly-forms-address"]], inputs: { address: "address" }, outputs: { change: "change" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 29, vars: 29, consts: [["classes", "card-primary card-outline"], [3, "title", 4, "ngIf"], [1, "row", 3, "formGroup"], [1, "form-group", "col-12", 3, "ngClass"], [1, "col-form-label", "required"], ["type", "text", "formControlName", "address_street", "placeholder", "Street Address", 1, "form-control"], ["controlName", "address_street", "controlTitle", "Street", 3, "formGroup", "formSubmitted"], ["type", "text", "formControlName", "address_street2", "placeholder", "Apartment, suite, unit, building, floor, etc.", 1, "form-control"], ["controlName", "address_street2", "controlTitle", "Street2", 3, "formGroup", "formSubmitted"], [1, "form-group", "col-3", 3, "ngClass"], ["type", "text", "formControlName", "address_city", "placeholder", "City", 1, "form-control"], ["controlName", "address_city", "controlTitle", "City", 3, "formGroup", "formSubmitted"], ["class", "form-group col-3", 3, "ngClass", 4, "ngIf"], ["type", "text", "formControlName", "address_zipcode", "placeholder", "zipcode", 1, "form-control"], ["controlName", "address_zipcode", "controlTitle", "zipcode", 3, "formGroup", "formSubmitted"], ["formControlName", "address_country", "data-placeholder", "Select a Country", 1, "form-control", 3, "change"], [3, "value", 4, "ngFor", "ngForOf"], ["controlName", "address_country", "controlTitle", "Country", 3, "formGroup", "formSubmitted"], [3, "title"], ["formControlName", "address_stateOrRegion", 1, "form-control", 3, "change"], ["controlName", "address_stateOrRegion", "controlTitle", "State", 3, "formGroup", "formSubmitted"], [3, "value"]], template: function AddressComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5804
5806
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
5805
5807
|
i0.ɵɵtemplate(1, AddressComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
5806
5808
|
i0.ɵɵelementStart(2, "anatoly-card-body")(3, "div", 2)(4, "div", 3)(5, "label", 4);
|
|
@@ -5865,13 +5867,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5865
5867
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
5866
5868
|
type: Component,
|
|
5867
5869
|
args: [{ selector: 'anatoly-forms-address', template: "<anatoly-card classes='card-primary card-outline'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title'></anatoly-card-header>\r\n <anatoly-card-body>\r\n <div class='row' [formGroup]='formGroup'>\r\n <div class='form-group col-12' [ngClass]=\"{'has-error': isControlInvalid('address_street')}\" >\r\n <label class='col-form-label required'>Street Address</label>\r\n <input type='text' class='form-control' formControlName='address_street' placeholder='Street Address'>\r\n <anatoly-item-validation-summary controlName='address_street'\r\n controlTitle='Street'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n <div class='form-group col-12' [ngClass]=\"{'has-error': isControlInvalid('address_street2')}\" >\r\n <input type='text' class='form-control' formControlName='address_street2' placeholder='Apartment, suite, unit, building, floor, etc.'>\r\n <anatoly-item-validation-summary controlName='address_street2'\r\n controlTitle='Street2'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n <div class='form-group col-3' [ngClass]=\"{'has-error': isControlInvalid('address_city')}\">\r\n <label class='col-form-label required'>City</label>\r\n <input type='text' class='form-control' formControlName='address_city' placeholder='City'>\r\n <anatoly-item-validation-summary controlName='address_city'\r\n controlTitle='City'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n <div class='form-group col-3' *ngIf=\"formGroup.value.address_country == 'US'\" [ngClass]=\"{'has-error': isControlInvalid('address_stateOrRegion')}\">\r\n <label class='col-form-label required'>State</label>\r\n <select class='form-control' (change)='onUSStateChange($event)' formControlName='address_stateOrRegion'>\r\n <option *ngFor='let state of usStateData' [value]='state.code'>{{state.name}}</option>\r\n </select>\r\n <anatoly-item-validation-summary controlName='address_stateOrRegion'\r\n controlTitle='State'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n <div class='form-group col-3' [ngClass]=\"{'has-error': isControlInvalid('address_zipcode')}\" >\r\n <label class='col-form-label required'>zipcode</label>\r\n <input type='text' class='form-control' formControlName='address_zipcode' placeholder='zipcode'>\r\n <anatoly-item-validation-summary controlName='address_zipcode'\r\n controlTitle='zipcode'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n <div class='form-group col-3' [ngClass]=\"{'has-error': isControlInvalid('address_country')}\">\r\n <label class='col-form-label required'>Country</label>\r\n <select class='form-control' (change)='onCountryChange($event)' formControlName='address_country' data-placeholder='Select a Country'>\r\n <option *ngFor='let country of countryData' [value]='country.code'>{{country.name}}</option>\r\n </select>\r\n <anatoly-item-validation-summary controlName='address_country'\r\n controlTitle='Country'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n </div>\r\n </anatoly-card-body>\r\n</anatoly-card>\r\n" }]
|
|
5868
|
-
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, {
|
|
5869
|
-
type: Input
|
|
5870
|
-
}], isTitleVisible: [{
|
|
5871
|
-
type: Input
|
|
5872
|
-
}], isRequired: [{
|
|
5873
|
-
type: Input
|
|
5874
|
-
}], address: [{
|
|
5870
|
+
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, { address: [{
|
|
5875
5871
|
type: Input
|
|
5876
5872
|
}], change: [{
|
|
5877
5873
|
type: Output
|
|
@@ -5906,8 +5902,6 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5906
5902
|
_company;
|
|
5907
5903
|
formGroupGenerated = false;
|
|
5908
5904
|
//Inputs
|
|
5909
|
-
title = 'Company / Organization';
|
|
5910
|
-
isTitleVisible = true;
|
|
5911
5905
|
get company() {
|
|
5912
5906
|
return this._company;
|
|
5913
5907
|
}
|
|
@@ -5920,6 +5914,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5920
5914
|
constructor(fb) {
|
|
5921
5915
|
super();
|
|
5922
5916
|
this.fb = fb;
|
|
5917
|
+
this.title = 'Company / Organization';
|
|
5923
5918
|
}
|
|
5924
5919
|
ngOnInit() {
|
|
5925
5920
|
this.createFormGroup();
|
|
@@ -5954,7 +5949,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5954
5949
|
return JSON.stringify(data);
|
|
5955
5950
|
}
|
|
5956
5951
|
static ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder)); };
|
|
5957
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyComponent, selectors: [["anatoly-forms-company"]], inputs: {
|
|
5952
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: CompanyComponent, selectors: [["anatoly-forms-company"]], inputs: { company: "company" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 24, vars: 22, consts: [["classes", "card-primary card-outline"], [3, "title", 4, "ngIf"], [1, "row", 3, "formGroup"], [1, "form-group", "col-6", 3, "ngClass"], [1, "col-form-label"], ["type", "text", "formControlName", "company_name", "placeholder", "Company Name", 1, "form-control"], ["controlName", "company_name", "controlTitle", "Company Name", 3, "formGroup", "formSubmitted"], ["type", "tel", "formControlName", "company_phone", "placeholder", "Company Phone", 1, "form-control"], ["controlName", "company_phone", "controlTitle", "Company Phone", 3, "formGroup", "formSubmitted"], ["type", "email", "formControlName", "company_email", "placeholder", "Company Email", 1, "form-control"], ["controlName", "company_email", "controlTitle", "Company Email", 3, "formGroup", "formSubmitted"], ["type", "url", "placeholder", "https://example.com", "pattern", "https://.*", "size", "30", "formControlName", "company_websiteUrl", 1, "form-control"], ["controlName", "company_websiteUrl", "controlTitle", "Company website url", 3, "formGroup", "formSubmitted"], [3, "title"]], template: function CompanyComponent_Template(rf, ctx) { if (rf & 1) {
|
|
5958
5953
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
5959
5954
|
i0.ɵɵtemplate(1, CompanyComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
5960
5955
|
i0.ɵɵelementStart(2, "anatoly-card-body")(3, "div", 2)(4, "div", 3)(5, "label", 4);
|
|
@@ -6003,11 +5998,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
6003
5998
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompanyComponent, [{
|
|
6004
5999
|
type: Component,
|
|
6005
6000
|
args: [{ selector: 'anatoly-forms-company', template: "<anatoly-card classes='card-primary card-outline'>\r\n <anatoly-card-header *ngIf='isTitleVisible' [title]='title'></anatoly-card-header>\r\n <anatoly-card-body>\r\n <div [formGroup]='formGroup' class='row'>\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_name') }\">\r\n <label class='col-form-label'>Name</label>\r\n <input type='text' class='form-control' formControlName='company_name' placeholder='Company Name'>\r\n <anatoly-item-validation-summary controlName='company_name'\r\n controlTitle='Company Name'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_phone') }\">\r\n <label class='col-form-label'>Phone</label>\r\n <input type='tel' class='form-control' formControlName='company_phone' placeholder='Company Phone'>\r\n <anatoly-item-validation-summary controlName='company_phone'\r\n controlTitle='Company Phone'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_email') }\">\r\n <label class='col-form-label'>Email</label>\r\n <input type='email' class='form-control' formControlName='company_email' placeholder='Company Email'>\r\n <anatoly-item-validation-summary controlName='company_email'\r\n controlTitle='Company Email'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n <div class='form-group col-6' [ngClass]=\"{'has-error': isControlInvalid('company_websiteUrl') }\">\r\n <label class='col-form-label'>Website Url</label>\r\n <input type='url' placeholder='https://example.com' pattern='https://.*' size='30'\r\n class='form-control' formControlName='company_websiteUrl'>\r\n <anatoly-item-validation-summary controlName='company_websiteUrl'\r\n controlTitle='Company website url'\r\n [formGroup]='formGroup'\r\n [formSubmitted]='formSubmitted'>\r\n </anatoly-item-validation-summary>\r\n </div>\r\n\r\n </div>\r\n </anatoly-card-body>\r\n</anatoly-card>\r\n" }]
|
|
6006
|
-
}], function () { return [{ type: i2.FormBuilder }]; }, {
|
|
6007
|
-
type: Input
|
|
6008
|
-
}], isTitleVisible: [{
|
|
6009
|
-
type: Input
|
|
6010
|
-
}], company: [{
|
|
6001
|
+
}], function () { return [{ type: i2.FormBuilder }]; }, { company: [{
|
|
6011
6002
|
type: Input
|
|
6012
6003
|
}] }); })();
|
|
6013
6004
|
|
|
@@ -6054,8 +6045,6 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6054
6045
|
firstValue = true;
|
|
6055
6046
|
hrefGo;
|
|
6056
6047
|
//Inputs
|
|
6057
|
-
title = 'Permalink:';
|
|
6058
|
-
isTitleVisible = true;
|
|
6059
6048
|
urlPrefix;
|
|
6060
6049
|
isGoButtonVisible = true;
|
|
6061
6050
|
//Validation
|
|
@@ -6063,6 +6052,10 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6063
6052
|
watchedControlName;
|
|
6064
6053
|
//Outputs
|
|
6065
6054
|
generating = new EventEmitter();
|
|
6055
|
+
constructor() {
|
|
6056
|
+
super();
|
|
6057
|
+
this.title = 'Permalink';
|
|
6058
|
+
}
|
|
6066
6059
|
ngOnInit() {
|
|
6067
6060
|
this.startWatching();
|
|
6068
6061
|
}
|
|
@@ -6093,8 +6086,8 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6093
6086
|
let text = this.getFormValue(this.controlName);
|
|
6094
6087
|
this.generateUrlSlug(text);
|
|
6095
6088
|
}
|
|
6096
|
-
static ɵfac =
|
|
6097
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: {
|
|
6089
|
+
static ɵfac = function UrlSlugComponent_Factory(t) { return new (t || UrlSlugComponent)(); };
|
|
6090
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UrlSlugComponent, selectors: [["anatoly-forms-urlslug"]], inputs: { urlPrefix: "urlPrefix", isGoButtonVisible: "isGoButtonVisible", controlName: "controlName", watchedControlName: "watchedControlName" }, outputs: { generating: "generating" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 7, vars: 13, consts: [[3, "formGroup", "ngClass"], [1, "d-flex", "align-items-end"], [3, "formGroup", "formSubmitted", "formControlName"], [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) {
|
|
6098
6091
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6099
6092
|
i0.ɵɵelement(2, "anatoly-item-validation-summary", 2);
|
|
6100
6093
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -6120,11 +6113,7 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6120
6113
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
6121
6114
|
type: Component,
|
|
6122
6115
|
args: [{ selector: 'anatoly-forms-urlslug', template: "<div [formGroup]='formGroup' [ngClass]=\"{'has-error': isControlInvalid(controlName)}\"\r\n class=\"permalink form-group {{ classes }}\">\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]='controlName'>\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'\r\n class='form-control'\r\n placeholder='Type url slug here'\r\n [formControlName]='controlName'\r\n (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" }]
|
|
6123
|
-
}],
|
|
6124
|
-
type: Input
|
|
6125
|
-
}], isTitleVisible: [{
|
|
6126
|
-
type: Input
|
|
6127
|
-
}], urlPrefix: [{
|
|
6116
|
+
}], function () { return []; }, { urlPrefix: [{
|
|
6128
6117
|
type: Input
|
|
6129
6118
|
}], isGoButtonVisible: [{
|
|
6130
6119
|
type: Input
|
|
@@ -6172,14 +6161,13 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6172
6161
|
appContext;
|
|
6173
6162
|
timezoneListItems;
|
|
6174
6163
|
//Inputs
|
|
6175
|
-
title = 'Timezone';
|
|
6176
|
-
isTitleVisible = true;
|
|
6177
6164
|
controlName = 'timezone';
|
|
6178
6165
|
controlTitle;
|
|
6179
6166
|
constructor(api, appContext) {
|
|
6180
6167
|
super();
|
|
6181
6168
|
this.api = api;
|
|
6182
6169
|
this.appContext = appContext;
|
|
6170
|
+
this.title = 'Timezone';
|
|
6183
6171
|
}
|
|
6184
6172
|
ngOnInit() {
|
|
6185
6173
|
this.setValues();
|
|
@@ -6201,7 +6189,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6201
6189
|
}
|
|
6202
6190
|
}
|
|
6203
6191
|
static ɵfac = function TimezoneDropdownlist_Factory(t) { return new (t || TimezoneDropdownlist)(i0.ɵɵdirectiveInject(CoreApiService), i0.ɵɵdirectiveInject(AppContextService)); };
|
|
6204
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]], inputs: {
|
|
6192
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TimezoneDropdownlist, selectors: [["anatoly-forms-timezone-dropdownlist"]], inputs: { controlName: "controlName", controlTitle: "controlTitle" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 4, consts: [[1, "form-group", 3, "formGroup"], ["class", "col-form-label", 4, "ngIf"], [1, "form-control", 3, "formControlName"], [3, "value", 4, "ngFor", "ngForOf"], [1, "col-form-label"], [3, "value"]], template: function TimezoneDropdownlist_Template(rf, ctx) { if (rf & 1) {
|
|
6205
6193
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6206
6194
|
i0.ɵɵtemplate(1, TimezoneDropdownlist_label_1_Template, 2, 0, "label", 1);
|
|
6207
6195
|
i0.ɵɵelementStart(2, "select", 2);
|
|
@@ -6220,11 +6208,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6220
6208
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimezoneDropdownlist, [{
|
|
6221
6209
|
type: Component,
|
|
6222
6210
|
args: [{ selector: 'anatoly-forms-timezone-dropdownlist', template: "<div [formGroup]='formGroup' class='form-group'>\r\n <label *ngIf='isTitleVisible' class='col-form-label'>Timezone</label>\r\n <select [formControlName]='controlName' class='form-control'>\r\n <option *ngFor='let timezone of timezoneListItems'\r\n [value]='timezone.code'>\r\n ({{timezone.offset}}) {{timezone.name}}\r\n </option>\r\n </select>\r\n</div>\r\n" }]
|
|
6223
|
-
}], function () { return [{ type: CoreApiService }, { type: AppContextService }]; }, {
|
|
6224
|
-
type: Input
|
|
6225
|
-
}], isTitleVisible: [{
|
|
6226
|
-
type: Input
|
|
6227
|
-
}], controlName: [{
|
|
6211
|
+
}], function () { return [{ type: CoreApiService }, { type: AppContextService }]; }, { controlName: [{
|
|
6228
6212
|
type: Input
|
|
6229
6213
|
}], controlTitle: [{
|
|
6230
6214
|
type: Input
|