@osovitny/anatoly 3.16.87 → 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/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 +42 -68
- package/fesm2022/osovitny-anatoly.mjs.map +1 -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
|
@@ -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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXJsc2x1Zy5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcy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clxuICAgIDwvYW5hdG9seS1pdGVtLXZhbGlkYXRpb24tc3VtbWFyeT5cclxuXHJcbiAgICA8ZGl2IGNsYXNzPVwiZm9ybS1ncm91cFwiPlxyXG4gICAgICA8bGFiZWwgKm5nSWY9J2lzVGl0bGVWaXNpYmxlJyBjbGFzcz0nY29sLWZvcm0tbGFiZWwnPlxyXG4gICAgICAgIHt7IHRpdGxlIH19XHJcbiAgICAgICAgPHNwYW4gY2xhc3M9XCJ1cmxQcmVmaXhcIj57eyB1cmxQcmVmaXggfX08L3NwYW4+XHJcbiAgICAgIDwvbGFiZWw+XHJcbiAgICAgIDxpbnB1dCB0eXBlPSd0ZXh0J1xyXG4gICAgICAgICAgICAgY2xhc3M9J2Zvcm0tY29udHJvbCdcclxuICAgICAgICAgICAgIHBsYWNlaG9sZGVyPSdUeXBlIHVybCBzbHVnIGhlcmUnXHJcbiAgICAgICAgICAgICBbZm9ybUNvbnRyb2xOYW1lXT0nY29udHJvbE5hbWUnXHJcbiAgICAgICAgICAgICAoZm9jdXNvdXQpPSdvblVybFNsdWdDaGFuZ2UoKScgLz5cclxuICAgIDwvZGl2PlxyXG5cclxuICAgIDxkaXYgY2xhc3M9XCJmb3JtLWdyb3VwIGZsZXgtc2hyaW5rLTFcIiAqbmdJZj1cImlzR29CdXR0b25WaXNpYmxlXCI+XHJcbiAgICAgIDxhIGhyZWY9XCJ7e3VybFByZWZpeH19e3tocmVmR299fVwiIHRhcmdldD1cIl9ibGFua1wiIGNsYXNzPVwiYnRuIGJ0bi1wcmltYXJ5XCI+R288L2E+XHJcbiAgICA8L2Rpdj5cclxuICA8L2Rpdj5cclxuPC9kaXY+XHJcbiJdfQ==
|
|
@@ -3229,6 +3229,9 @@ class ComponentBase {
|
|
|
3229
3229
|
dataFound = false;
|
|
3230
3230
|
//Inputs
|
|
3231
3231
|
classes;
|
|
3232
|
+
title = '';
|
|
3233
|
+
isTitleVisible = true;
|
|
3234
|
+
isRequired = false;
|
|
3232
3235
|
constructor() {
|
|
3233
3236
|
this.isDevMode = isDevMode();
|
|
3234
3237
|
}
|
|
@@ -3260,7 +3263,7 @@ class ComponentBase {
|
|
|
3260
3263
|
this.dataFound = found;
|
|
3261
3264
|
}
|
|
3262
3265
|
static ɵfac = function ComponentBase_Factory(t) { return new (t || ComponentBase)(); };
|
|
3263
|
-
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 });
|
|
3264
3267
|
}
|
|
3265
3268
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ComponentBase, [{
|
|
3266
3269
|
type: Component,
|
|
@@ -3269,6 +3272,12 @@ class ComponentBase {
|
|
|
3269
3272
|
}]
|
|
3270
3273
|
}], function () { return []; }, { classes: [{
|
|
3271
3274
|
type: Input
|
|
3275
|
+
}], title: [{
|
|
3276
|
+
type: Input
|
|
3277
|
+
}], isTitleVisible: [{
|
|
3278
|
+
type: Input
|
|
3279
|
+
}], isRequired: [{
|
|
3280
|
+
type: Input
|
|
3272
3281
|
}] }); })();
|
|
3273
3282
|
|
|
3274
3283
|
/*
|
|
@@ -4558,10 +4567,9 @@ class Copy2ClipboardComponent {
|
|
|
4558
4567
|
//Node
|
|
4559
4568
|
const _c0$9 = [[["mex-card-header"]], [["mex-card-body"]], "*", [["mex-card-footer"]]];
|
|
4560
4569
|
const _c1 = ["mex-card-header", "mex-card-body", "*", "mex-card-footer"];
|
|
4561
|
-
class CardComponent {
|
|
4562
|
-
|
|
4563
|
-
static
|
|
4564
|
-
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) {
|
|
4565
4573
|
i0.ɵɵprojectionDef(_c0$9);
|
|
4566
4574
|
i0.ɵɵelementStart(0, "div");
|
|
4567
4575
|
i0.ɵɵprojection(1);
|
|
@@ -4576,9 +4584,7 @@ class CardComponent {
|
|
|
4576
4584
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardComponent, [{
|
|
4577
4585
|
type: Component,
|
|
4578
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" }]
|
|
4579
|
-
}], null,
|
|
4580
|
-
type: Input
|
|
4581
|
-
}] }); })();
|
|
4587
|
+
}], null, null); })();
|
|
4582
4588
|
|
|
4583
4589
|
/*
|
|
4584
4590
|
<file>
|
|
@@ -4606,11 +4612,9 @@ function CardHeaderComponent_h3_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
4606
4612
|
i0.ɵɵtextInterpolate(ctx_r0.title);
|
|
4607
4613
|
} }
|
|
4608
4614
|
const _c0$8 = ["*"];
|
|
4609
|
-
class CardHeaderComponent {
|
|
4610
|
-
|
|
4611
|
-
title
|
|
4612
|
-
static ɵfac = function CardHeaderComponent_Factory(t) { return new (t || CardHeaderComponent)(); };
|
|
4613
|
-
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) {
|
|
4614
4618
|
i0.ɵɵprojectionDef();
|
|
4615
4619
|
i0.ɵɵelementStart(0, "div");
|
|
4616
4620
|
i0.ɵɵtemplate(1, CardHeaderComponent_h3_1_Template, 2, 1, "h3", 0);
|
|
@@ -4625,11 +4629,7 @@ class CardHeaderComponent {
|
|
|
4625
4629
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardHeaderComponent, [{
|
|
4626
4630
|
type: Component,
|
|
4627
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" }]
|
|
4628
|
-
}], null,
|
|
4629
|
-
type: Input
|
|
4630
|
-
}], title: [{
|
|
4631
|
-
type: Input
|
|
4632
|
-
}] }); })();
|
|
4632
|
+
}], null, null); })();
|
|
4633
4633
|
|
|
4634
4634
|
/*
|
|
4635
4635
|
<file>
|
|
@@ -4648,10 +4648,9 @@ class CardHeaderComponent {
|
|
|
4648
4648
|
*/
|
|
4649
4649
|
//Node
|
|
4650
4650
|
const _c0$7 = ["*"];
|
|
4651
|
-
class CardBodyComponent {
|
|
4652
|
-
|
|
4653
|
-
static
|
|
4654
|
-
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) {
|
|
4655
4654
|
i0.ɵɵprojectionDef();
|
|
4656
4655
|
i0.ɵɵelementStart(0, "div");
|
|
4657
4656
|
i0.ɵɵprojection(1);
|
|
@@ -4663,9 +4662,7 @@ class CardBodyComponent {
|
|
|
4663
4662
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardBodyComponent, [{
|
|
4664
4663
|
type: Component,
|
|
4665
4664
|
args: [{ selector: 'anatoly-card-body', template: "<div class='card-body {{ classes }}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4666
|
-
}], null,
|
|
4667
|
-
type: Input
|
|
4668
|
-
}] }); })();
|
|
4665
|
+
}], null, null); })();
|
|
4669
4666
|
|
|
4670
4667
|
/*
|
|
4671
4668
|
<file>
|
|
@@ -4684,10 +4681,9 @@ class CardBodyComponent {
|
|
|
4684
4681
|
*/
|
|
4685
4682
|
//Node
|
|
4686
4683
|
const _c0$6 = ["*"];
|
|
4687
|
-
class CardFooterComponent {
|
|
4688
|
-
|
|
4689
|
-
static
|
|
4690
|
-
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) {
|
|
4691
4687
|
i0.ɵɵprojectionDef();
|
|
4692
4688
|
i0.ɵɵelementStart(0, "div");
|
|
4693
4689
|
i0.ɵɵprojection(1);
|
|
@@ -4699,9 +4695,7 @@ class CardFooterComponent {
|
|
|
4699
4695
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CardFooterComponent, [{
|
|
4700
4696
|
type: Component,
|
|
4701
4697
|
args: [{ selector: 'anatoly-card-footer', template: "<div class='card-footer {{ classes }}'>\r\n <ng-content></ng-content>\r\n</div>\r\n" }]
|
|
4702
|
-
}], null,
|
|
4703
|
-
type: Input
|
|
4704
|
-
}] }); })();
|
|
4698
|
+
}], null, null); })();
|
|
4705
4699
|
|
|
4706
4700
|
/*
|
|
4707
4701
|
<file>
|
|
@@ -5726,9 +5720,6 @@ class AddressComponent extends EditComponentBase {
|
|
|
5726
5720
|
currentCountry = 'US';
|
|
5727
5721
|
currentUSState = 'NY';
|
|
5728
5722
|
//Inputs
|
|
5729
|
-
title = 'Address';
|
|
5730
|
-
isTitleVisible = true;
|
|
5731
|
-
isRequired;
|
|
5732
5723
|
get address() {
|
|
5733
5724
|
return this._address;
|
|
5734
5725
|
}
|
|
@@ -5744,6 +5735,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5744
5735
|
super();
|
|
5745
5736
|
this.fb = fb;
|
|
5746
5737
|
this.api = api;
|
|
5738
|
+
this.title = 'Address';
|
|
5747
5739
|
}
|
|
5748
5740
|
ngOnInit() {
|
|
5749
5741
|
this.api.getCountriesJsonFile(data => {
|
|
@@ -5810,7 +5802,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5810
5802
|
this.change.emit(usState);
|
|
5811
5803
|
}
|
|
5812
5804
|
static ɵfac = function AddressComponent_Factory(t) { return new (t || AddressComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder), i0.ɵɵdirectiveInject(CoreApiService)); };
|
|
5813
|
-
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) {
|
|
5814
5806
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
5815
5807
|
i0.ɵɵtemplate(1, AddressComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
5816
5808
|
i0.ɵɵelementStart(2, "anatoly-card-body")(3, "div", 2)(4, "div", 3)(5, "label", 4);
|
|
@@ -5875,13 +5867,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
5875
5867
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AddressComponent, [{
|
|
5876
5868
|
type: Component,
|
|
5877
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" }]
|
|
5878
|
-
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, {
|
|
5879
|
-
type: Input
|
|
5880
|
-
}], isTitleVisible: [{
|
|
5881
|
-
type: Input
|
|
5882
|
-
}], isRequired: [{
|
|
5883
|
-
type: Input
|
|
5884
|
-
}], address: [{
|
|
5870
|
+
}], function () { return [{ type: i2.FormBuilder }, { type: CoreApiService }]; }, { address: [{
|
|
5885
5871
|
type: Input
|
|
5886
5872
|
}], change: [{
|
|
5887
5873
|
type: Output
|
|
@@ -5916,8 +5902,6 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5916
5902
|
_company;
|
|
5917
5903
|
formGroupGenerated = false;
|
|
5918
5904
|
//Inputs
|
|
5919
|
-
title = 'Company / Organization';
|
|
5920
|
-
isTitleVisible = true;
|
|
5921
5905
|
get company() {
|
|
5922
5906
|
return this._company;
|
|
5923
5907
|
}
|
|
@@ -5930,6 +5914,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5930
5914
|
constructor(fb) {
|
|
5931
5915
|
super();
|
|
5932
5916
|
this.fb = fb;
|
|
5917
|
+
this.title = 'Company / Organization';
|
|
5933
5918
|
}
|
|
5934
5919
|
ngOnInit() {
|
|
5935
5920
|
this.createFormGroup();
|
|
@@ -5964,7 +5949,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
5964
5949
|
return JSON.stringify(data);
|
|
5965
5950
|
}
|
|
5966
5951
|
static ɵfac = function CompanyComponent_Factory(t) { return new (t || CompanyComponent)(i0.ɵɵdirectiveInject(i2.FormBuilder)); };
|
|
5967
|
-
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) {
|
|
5968
5953
|
i0.ɵɵelementStart(0, "anatoly-card", 0);
|
|
5969
5954
|
i0.ɵɵtemplate(1, CompanyComponent_anatoly_card_header_1_Template, 1, 1, "anatoly-card-header", 1);
|
|
5970
5955
|
i0.ɵɵelementStart(2, "anatoly-card-body")(3, "div", 2)(4, "div", 3)(5, "label", 4);
|
|
@@ -6013,11 +5998,7 @@ class CompanyComponent extends EditComponentBase {
|
|
|
6013
5998
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompanyComponent, [{
|
|
6014
5999
|
type: Component,
|
|
6015
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" }]
|
|
6016
|
-
}], function () { return [{ type: i2.FormBuilder }]; }, {
|
|
6017
|
-
type: Input
|
|
6018
|
-
}], isTitleVisible: [{
|
|
6019
|
-
type: Input
|
|
6020
|
-
}], company: [{
|
|
6001
|
+
}], function () { return [{ type: i2.FormBuilder }]; }, { company: [{
|
|
6021
6002
|
type: Input
|
|
6022
6003
|
}] }); })();
|
|
6023
6004
|
|
|
@@ -6064,8 +6045,6 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6064
6045
|
firstValue = true;
|
|
6065
6046
|
hrefGo;
|
|
6066
6047
|
//Inputs
|
|
6067
|
-
title = 'Permalink:';
|
|
6068
|
-
isTitleVisible = true;
|
|
6069
6048
|
urlPrefix;
|
|
6070
6049
|
isGoButtonVisible = true;
|
|
6071
6050
|
//Validation
|
|
@@ -6073,6 +6052,10 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6073
6052
|
watchedControlName;
|
|
6074
6053
|
//Outputs
|
|
6075
6054
|
generating = new EventEmitter();
|
|
6055
|
+
constructor() {
|
|
6056
|
+
super();
|
|
6057
|
+
this.title = 'Permalink';
|
|
6058
|
+
}
|
|
6076
6059
|
ngOnInit() {
|
|
6077
6060
|
this.startWatching();
|
|
6078
6061
|
}
|
|
@@ -6103,8 +6086,8 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6103
6086
|
let text = this.getFormValue(this.controlName);
|
|
6104
6087
|
this.generateUrlSlug(text);
|
|
6105
6088
|
}
|
|
6106
|
-
static ɵfac =
|
|
6107
|
-
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) {
|
|
6108
6091
|
i0.ɵɵelementStart(0, "div", 0)(1, "div", 1);
|
|
6109
6092
|
i0.ɵɵelement(2, "anatoly-item-validation-summary", 2);
|
|
6110
6093
|
i0.ɵɵelementStart(3, "div", 3);
|
|
@@ -6130,11 +6113,7 @@ class UrlSlugComponent extends EditComponentBase {
|
|
|
6130
6113
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UrlSlugComponent, [{
|
|
6131
6114
|
type: Component,
|
|
6132
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" }]
|
|
6133
|
-
}],
|
|
6134
|
-
type: Input
|
|
6135
|
-
}], isTitleVisible: [{
|
|
6136
|
-
type: Input
|
|
6137
|
-
}], urlPrefix: [{
|
|
6116
|
+
}], function () { return []; }, { urlPrefix: [{
|
|
6138
6117
|
type: Input
|
|
6139
6118
|
}], isGoButtonVisible: [{
|
|
6140
6119
|
type: Input
|
|
@@ -6182,14 +6161,13 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6182
6161
|
appContext;
|
|
6183
6162
|
timezoneListItems;
|
|
6184
6163
|
//Inputs
|
|
6185
|
-
title = 'Timezone';
|
|
6186
|
-
isTitleVisible = true;
|
|
6187
6164
|
controlName = 'timezone';
|
|
6188
6165
|
controlTitle;
|
|
6189
6166
|
constructor(api, appContext) {
|
|
6190
6167
|
super();
|
|
6191
6168
|
this.api = api;
|
|
6192
6169
|
this.appContext = appContext;
|
|
6170
|
+
this.title = 'Timezone';
|
|
6193
6171
|
}
|
|
6194
6172
|
ngOnInit() {
|
|
6195
6173
|
this.setValues();
|
|
@@ -6211,7 +6189,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6211
6189
|
}
|
|
6212
6190
|
}
|
|
6213
6191
|
static ɵfac = function TimezoneDropdownlist_Factory(t) { return new (t || TimezoneDropdownlist)(i0.ɵɵdirectiveInject(CoreApiService), i0.ɵɵdirectiveInject(AppContextService)); };
|
|
6214
|
-
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) {
|
|
6215
6193
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6216
6194
|
i0.ɵɵtemplate(1, TimezoneDropdownlist_label_1_Template, 2, 0, "label", 1);
|
|
6217
6195
|
i0.ɵɵelementStart(2, "select", 2);
|
|
@@ -6230,11 +6208,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
6230
6208
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TimezoneDropdownlist, [{
|
|
6231
6209
|
type: Component,
|
|
6232
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" }]
|
|
6233
|
-
}], function () { return [{ type: CoreApiService }, { type: AppContextService }]; }, {
|
|
6234
|
-
type: Input
|
|
6235
|
-
}], isTitleVisible: [{
|
|
6236
|
-
type: Input
|
|
6237
|
-
}], controlName: [{
|
|
6211
|
+
}], function () { return [{ type: CoreApiService }, { type: AppContextService }]; }, { controlName: [{
|
|
6238
6212
|
type: Input
|
|
6239
6213
|
}], controlTitle: [{
|
|
6240
6214
|
type: Input
|