@osovitny/anatoly 3.19.1 → 3.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/osovitny-anatoly.mjs +19 -13
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/components/identity/signin-button.component.d.ts +0 -1
- package/lib/ui/components/identity/signout-button.component.d.ts +0 -1
- package/lib/ui/components/identity/signup-button.component.d.ts +0 -1
- package/lib/ui/directives/index.d.ts +1 -1
- package/lib/ui/directives/replacer/replacer.base.directive.d.ts +1 -0
- package/package.json +1 -1
|
@@ -4560,18 +4560,21 @@ class ReplacerDirectiveBase {
|
|
|
4560
4560
|
this.el = el;
|
|
4561
4561
|
this.renderer = renderer;
|
|
4562
4562
|
}
|
|
4563
|
-
|
|
4563
|
+
setCDN2Attribute(name, value) {
|
|
4564
4564
|
if (value) {
|
|
4565
4565
|
if (value.startsWith("http")) {
|
|
4566
|
-
this.
|
|
4566
|
+
this.setAttribute(name, value);
|
|
4567
4567
|
return;
|
|
4568
4568
|
}
|
|
4569
4569
|
const isCDNEnabled = AppCoreSettings.cdn.enabled;
|
|
4570
4570
|
const cdnUrl = AppCoreSettings.cdn.url;
|
|
4571
4571
|
const newSrc = isCDNEnabled ? cdnUrl + value : value;
|
|
4572
|
-
this.
|
|
4572
|
+
this.setAttribute(name, newSrc);
|
|
4573
4573
|
}
|
|
4574
4574
|
}
|
|
4575
|
+
setAttribute(name, value) {
|
|
4576
|
+
this.renderer.setAttribute(this.el.nativeElement, name, value);
|
|
4577
|
+
}
|
|
4575
4578
|
static { this.ɵfac = function ReplacerDirectiveBase_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || ReplacerDirectiveBase)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); }; }
|
|
4576
4579
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ReplacerDirectiveBase }); }
|
|
4577
4580
|
}
|
|
@@ -4605,7 +4608,7 @@ class ImageReplacerDirective extends ReplacerDirectiveBase {
|
|
|
4605
4608
|
}
|
|
4606
4609
|
}
|
|
4607
4610
|
setSrc(value) {
|
|
4608
|
-
this.
|
|
4611
|
+
this.setCDN2Attribute('src', value);
|
|
4609
4612
|
}
|
|
4610
4613
|
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵImageReplacerDirective_BaseFactory; return function ImageReplacerDirective_Factory(__ngFactoryType__) { return (ɵImageReplacerDirective_BaseFactory || (ɵImageReplacerDirective_BaseFactory = i0.ɵɵgetInheritedFactory(ImageReplacerDirective)))(__ngFactoryType__ || ImageReplacerDirective); }; })(); }
|
|
4611
4614
|
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ImageReplacerDirective, selectors: [["img"]], inputs: { src: "src" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature] }); }
|
|
@@ -7823,6 +7826,9 @@ class AReplacerDirective extends ReplacerDirectiveBase {
|
|
|
7823
7826
|
setHref(value) {
|
|
7824
7827
|
if (value) {
|
|
7825
7828
|
if (value.indexOf("assets") > -1) {
|
|
7829
|
+
this.setCDN2Attribute('href', value);
|
|
7830
|
+
}
|
|
7831
|
+
else {
|
|
7826
7832
|
this.setAttribute('href', value);
|
|
7827
7833
|
}
|
|
7828
7834
|
}
|
|
@@ -8188,7 +8194,7 @@ function SignInButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
8188
8194
|
} }
|
|
8189
8195
|
class SignInButtonComponent extends ComponentBase {
|
|
8190
8196
|
constructor() {
|
|
8191
|
-
super();
|
|
8197
|
+
super(...arguments);
|
|
8192
8198
|
this.external = false;
|
|
8193
8199
|
}
|
|
8194
8200
|
ngOnInit() {
|
|
@@ -8203,7 +8209,7 @@ class SignInButtonComponent extends ComponentBase {
|
|
|
8203
8209
|
}
|
|
8204
8210
|
}
|
|
8205
8211
|
}
|
|
8206
|
-
static { this.ɵfac = function SignInButtonComponent_Factory(__ngFactoryType__) { return
|
|
8212
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSignInButtonComponent_BaseFactory; return function SignInButtonComponent_Factory(__ngFactoryType__) { return (ɵSignInButtonComponent_BaseFactory || (ɵSignInButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SignInButtonComponent)))(__ngFactoryType__ || SignInButtonComponent); }; })(); }
|
|
8207
8213
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignInButtonComponent, selectors: [["anatoly-signin-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$8, decls: 4, vars: 2, consts: [["contentTemplate", ""], ["ref", ""], [3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], [4, "ngIf"]], template: function SignInButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8208
8214
|
i0.ɵɵprojectionDef();
|
|
8209
8215
|
i0.ɵɵtemplate(0, SignInButtonComponent_a_0_Template, 2, 5, "a", 2)(1, SignInButtonComponent_a_1_Template, 2, 5, "a", 3)(2, SignInButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
@@ -8216,7 +8222,7 @@ class SignInButtonComponent extends ComponentBase {
|
|
|
8216
8222
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignInButtonComponent, [{
|
|
8217
8223
|
type: Component,
|
|
8218
8224
|
args: [{ selector: "anatoly-signin-button", standalone: false, template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign In</span>\r\n</ng-template>\r\n" }]
|
|
8219
|
-
}],
|
|
8225
|
+
}], null, { qs: [{
|
|
8220
8226
|
type: Input
|
|
8221
8227
|
}] }); })();
|
|
8222
8228
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignInButtonComponent, { className: "SignInButtonComponent", filePath: "lib/ui/components/identity/signin-button.component.ts", lineNumber: 29 }); })();
|
|
@@ -8285,7 +8291,7 @@ function SignOutButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
8285
8291
|
} }
|
|
8286
8292
|
class SignOutButtonComponent extends ComponentBase {
|
|
8287
8293
|
constructor() {
|
|
8288
|
-
super();
|
|
8294
|
+
super(...arguments);
|
|
8289
8295
|
this.external = false;
|
|
8290
8296
|
}
|
|
8291
8297
|
ngOnInit() {
|
|
@@ -8300,7 +8306,7 @@ class SignOutButtonComponent extends ComponentBase {
|
|
|
8300
8306
|
}
|
|
8301
8307
|
}
|
|
8302
8308
|
}
|
|
8303
|
-
static { this.ɵfac = function SignOutButtonComponent_Factory(__ngFactoryType__) { return
|
|
8309
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSignOutButtonComponent_BaseFactory; return function SignOutButtonComponent_Factory(__ngFactoryType__) { return (ɵSignOutButtonComponent_BaseFactory || (ɵSignOutButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SignOutButtonComponent)))(__ngFactoryType__ || SignOutButtonComponent); }; })(); }
|
|
8304
8310
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignOutButtonComponent, selectors: [["anatoly-signout-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$7, decls: 4, vars: 2, consts: [["contentTemplate", ""], ["ref", ""], [3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], [4, "ngIf"]], template: function SignOutButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8305
8311
|
i0.ɵɵprojectionDef();
|
|
8306
8312
|
i0.ɵɵtemplate(0, SignOutButtonComponent_a_0_Template, 2, 5, "a", 2)(1, SignOutButtonComponent_a_1_Template, 2, 5, "a", 3)(2, SignOutButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
@@ -8313,7 +8319,7 @@ class SignOutButtonComponent extends ComponentBase {
|
|
|
8313
8319
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignOutButtonComponent, [{
|
|
8314
8320
|
type: Component,
|
|
8315
8321
|
args: [{ selector: "anatoly-signout-button", standalone: false, template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Out</span>\r\n</ng-template>\r\n" }]
|
|
8316
|
-
}],
|
|
8322
|
+
}], null, { qs: [{
|
|
8317
8323
|
type: Input
|
|
8318
8324
|
}] }); })();
|
|
8319
8325
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignOutButtonComponent, { className: "SignOutButtonComponent", filePath: "lib/ui/components/identity/signout-button.component.ts", lineNumber: 29 }); })();
|
|
@@ -8382,7 +8388,7 @@ function SignUpButtonComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
8382
8388
|
} }
|
|
8383
8389
|
class SignUpButtonComponent extends ComponentBase {
|
|
8384
8390
|
constructor() {
|
|
8385
|
-
super();
|
|
8391
|
+
super(...arguments);
|
|
8386
8392
|
this.external = false;
|
|
8387
8393
|
}
|
|
8388
8394
|
ngOnInit() {
|
|
@@ -8397,7 +8403,7 @@ class SignUpButtonComponent extends ComponentBase {
|
|
|
8397
8403
|
}
|
|
8398
8404
|
}
|
|
8399
8405
|
}
|
|
8400
|
-
static { this.ɵfac = function SignUpButtonComponent_Factory(__ngFactoryType__) { return
|
|
8406
|
+
static { this.ɵfac = /*@__PURE__*/ (() => { let ɵSignUpButtonComponent_BaseFactory; return function SignUpButtonComponent_Factory(__ngFactoryType__) { return (ɵSignUpButtonComponent_BaseFactory || (ɵSignUpButtonComponent_BaseFactory = i0.ɵɵgetInheritedFactory(SignUpButtonComponent)))(__ngFactoryType__ || SignUpButtonComponent); }; })(); }
|
|
8401
8407
|
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: SignUpButtonComponent, selectors: [["anatoly-signup-button"]], inputs: { qs: "qs" }, standalone: false, features: [i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0$6, decls: 4, vars: 2, consts: [["contentTemplate", ""], ["ref", ""], [3, "href", "class", 4, "ngIf"], [3, "routerLink", "class", 4, "ngIf"], [3, "href"], [4, "ngTemplateOutlet"], [3, "routerLink"], [4, "ngIf"]], template: function SignUpButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8402
8408
|
i0.ɵɵprojectionDef();
|
|
8403
8409
|
i0.ɵɵtemplate(0, SignUpButtonComponent_a_0_Template, 2, 5, "a", 2)(1, SignUpButtonComponent_a_1_Template, 2, 5, "a", 3)(2, SignUpButtonComponent_ng_template_2_Template, 4, 1, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
@@ -8410,7 +8416,7 @@ class SignUpButtonComponent extends ComponentBase {
|
|
|
8410
8416
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SignUpButtonComponent, [{
|
|
8411
8417
|
type: Component,
|
|
8412
8418
|
args: [{ selector: "anatoly-signup-button", standalone: false, template: "<a [href]=\"url\" class=\"{{ classes }}\" *ngIf=\"external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<a [routerLink]=\"url\" class=\"{{ classes }}\" *ngIf=\"!external\">\r\n <ng-container *ngTemplateOutlet=\"contentTemplate\"></ng-container>\r\n</a>\r\n\r\n<ng-template #contentTemplate>\r\n <span #ref><ng-content></ng-content></span>\r\n <span *ngIf=\"!ref.innerHTML.trim()\">Sign Up</span>\r\n</ng-template>\r\n" }]
|
|
8413
|
-
}],
|
|
8419
|
+
}], null, { qs: [{
|
|
8414
8420
|
type: Input
|
|
8415
8421
|
}] }); })();
|
|
8416
8422
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(SignUpButtonComponent, { className: "SignUpButtonComponent", filePath: "lib/ui/components/identity/signup-button.component.ts", lineNumber: 29 }); })();
|