@osovitny/anatoly 3.17.157 → 3.17.159
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/billing/components/payment-methods/payment-methods.component.mjs +2 -2
- package/esm2022/lib/core/interceptors/httpInterceptor.mjs +32 -25
- package/esm2022/lib/ui/components/copy-2-clipboard/copy-2-clipboard.component.mjs +3 -2
- package/esm2022/lib/ui/components/data-grid/control-panel.component.mjs +3 -2
- package/esm2022/lib/ui/components/identity/signin-button.component.mjs +3 -2
- package/esm2022/lib/ui/components/identity/signout-button.component.mjs +3 -2
- package/esm2022/lib/ui/components/identity/signup-button.component.mjs +3 -2
- package/esm2022/lib/ui/components/no-mobile-support/no-mobile-support.component.mjs +2 -2
- package/esm2022/lib/ui/components/urlslug/urlslug.component.mjs +5 -4
- package/esm2022/lib/ui/components/you-agree-to-our-terms/you-agree-to-our-terms.component.mjs +3 -2
- package/esm2022/lib/ui/directives/exports.mjs +3 -2
- package/esm2022/lib/ui/directives/index.mjs +4 -3
- package/esm2022/lib/ui/directives/replacer/a-replacer.directive.mjs +48 -0
- package/esm2022/lib/ui/directives/replacer/image-replacer.directive.mjs +44 -0
- package/esm2022/lib/ui/directives/replacer/replacer.base.directive.mjs +44 -0
- package/esm2022/lib/ui/ui.module.mjs +14 -13
- package/fesm2022/osovitny-anatoly.mjs +134 -56
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/core/interceptors/httpInterceptor.d.ts +1 -0
- package/lib/ui/components/index.d.ts +1 -1
- package/lib/ui/directives/exports.d.ts +2 -1
- package/lib/ui/directives/index.d.ts +2 -2
- package/lib/ui/directives/replacer/a-replacer.directive.d.ts +11 -0
- package/lib/ui/directives/replacer/image-replacer.directive.d.ts +11 -0
- package/lib/ui/directives/replacer/replacer.base.directive.d.ts +10 -0
- package/lib/ui/forms/index.d.ts +1 -1
- package/lib/ui/pipes/index.d.ts +1 -1
- package/lib/ui/ui.module.d.ts +19 -18
- package/package.json +1 -1
- package/esm2022/lib/ui/directives/image-src-replacer.directive.mjs +0 -56
- package/lib/ui/directives/image-src-replacer.directive.d.ts +0 -13
|
@@ -14,6 +14,7 @@ export declare class AnatolyHttpInterceptor implements HttpInterceptor {
|
|
|
14
14
|
protected externalSiteUrls: string[];
|
|
15
15
|
constructor(authService: AuthService, loadingService: LoadingService, logger: LoggingService);
|
|
16
16
|
private handleHttpRequest;
|
|
17
|
+
private setQS;
|
|
17
18
|
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
18
19
|
onRequestStart(loadingRequired: boolean): void;
|
|
19
20
|
onRequestEnd(loadingRequired: boolean): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { CardComponent, CheckIconComponent, CountryDropdownlist, TimezoneDropdownlist, NodataComponent, PageSpinnerComponent, LoadingComponent } from './exports';
|
|
2
|
-
export declare const MAIN_COMPONENTS: (typeof CardComponent | typeof
|
|
2
|
+
export declare const MAIN_COMPONENTS: (typeof CardComponent | typeof CheckIconComponent | typeof CountryDropdownlist | typeof TimezoneDropdownlist | typeof NodataComponent | typeof PageSpinnerComponent | typeof LoadingComponent)[];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HoveringDirective,
|
|
2
|
-
export declare const DIRECTIVES: (typeof HoveringDirective | typeof
|
|
1
|
+
import { HoveringDirective, AReplacerDirective, ImageReplacerDirective, NativeElementDirective } from './exports';
|
|
2
|
+
export declare const DIRECTIVES: (typeof ImageReplacerDirective | typeof HoveringDirective | typeof AReplacerDirective | typeof NativeElementDirective)[];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ReplacerDirectiveBase } from './replacer.base.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AReplacerDirective extends ReplacerDirectiveBase implements OnInit, OnChanges {
|
|
5
|
+
href: string;
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
8
|
+
private setHref;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AReplacerDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AReplacerDirective, "a", never, { "href": { "alias": "href"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ReplacerDirectiveBase } from './replacer.base.directive';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class ImageReplacerDirective extends ReplacerDirectiveBase implements OnInit, OnChanges {
|
|
5
|
+
src: string;
|
|
6
|
+
ngOnInit(): void;
|
|
7
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
8
|
+
private setSrc;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ImageReplacerDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageReplacerDirective, "img", never, { "src": { "alias": "src"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare abstract class ReplacerDirectiveBase {
|
|
4
|
+
private el;
|
|
5
|
+
private renderer;
|
|
6
|
+
constructor(el: ElementRef, renderer: Renderer2);
|
|
7
|
+
protected setAttribute(name: string, value: any): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ReplacerDirectiveBase, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ReplacerDirectiveBase, never, never, {}, {}, never, never, false, never>;
|
|
10
|
+
}
|
package/lib/ui/forms/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { AddressComponent, CompanyComponent, ContactUsForm } from './exports';
|
|
2
|
-
export declare const FORMS: (typeof
|
|
2
|
+
export declare const FORMS: (typeof AddressComponent | typeof CompanyComponent | typeof ContactUsForm)[];
|
package/lib/ui/pipes/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { SafeHtmlPipe, ReplaceTextPipe, FileSizePipe } from './exports';
|
|
2
|
-
export declare const PIPES: (typeof
|
|
2
|
+
export declare const PIPES: (typeof SafeHtmlPipe | typeof ReplaceTextPipe | typeof FileSizePipe)[];
|
package/lib/ui/ui.module.d.ts
CHANGED
|
@@ -24,25 +24,26 @@ import * as i22 from "./components/feature-will-be-ready/feature-will-be-ready.c
|
|
|
24
24
|
import * as i23 from "./components/you-agree-to-our-terms/you-agree-to-our-terms.component";
|
|
25
25
|
import * as i24 from "./dialogs/contact-us/contact-us.dialog";
|
|
26
26
|
import * as i25 from "./directives/hover.directive";
|
|
27
|
-
import * as i26 from "./directives/
|
|
28
|
-
import * as i27 from "./directives/
|
|
29
|
-
import * as i28 from "./
|
|
30
|
-
import * as i29 from "./forms/components/
|
|
31
|
-
import * as i30 from "./forms/
|
|
32
|
-
import * as i31 from "./
|
|
33
|
-
import * as i32 from "./pipes/
|
|
34
|
-
import * as i33 from "./pipes/
|
|
35
|
-
import * as i34 from "./
|
|
36
|
-
import * as i35 from "./validation/
|
|
37
|
-
import * as i36 from "
|
|
38
|
-
import * as i37 from "@angular/
|
|
39
|
-
import * as i38 from "@angular/
|
|
40
|
-
import * as i39 from "
|
|
41
|
-
import * as i40 from "
|
|
42
|
-
import * as i41 from "
|
|
43
|
-
import * as i42 from "../external/
|
|
27
|
+
import * as i26 from "./directives/replacer/a-replacer.directive";
|
|
28
|
+
import * as i27 from "./directives/replacer/image-replacer.directive";
|
|
29
|
+
import * as i28 from "./directives/native-element.directive";
|
|
30
|
+
import * as i29 from "./forms/components/address/address.component";
|
|
31
|
+
import * as i30 from "./forms/components/company/company.component";
|
|
32
|
+
import * as i31 from "./forms/contact-us/contact-us";
|
|
33
|
+
import * as i32 from "./pipes/safeHtml.pipe";
|
|
34
|
+
import * as i33 from "./pipes/replace-text.pipe";
|
|
35
|
+
import * as i34 from "./pipes/filesize.pipe";
|
|
36
|
+
import * as i35 from "./validation/form-validation-summary.component";
|
|
37
|
+
import * as i36 from "./validation/item-validation-summary.component";
|
|
38
|
+
import * as i37 from "@angular/common";
|
|
39
|
+
import * as i38 from "@angular/router";
|
|
40
|
+
import * as i39 from "@angular/forms";
|
|
41
|
+
import * as i40 from "ngx-captcha";
|
|
42
|
+
import * as i41 from "angular-froala-wysiwyg";
|
|
43
|
+
import * as i42 from "../external/fa.module";
|
|
44
|
+
import * as i43 from "../external/kendo.module";
|
|
44
45
|
export declare class AnatolyUIModule {
|
|
45
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<AnatolyUIModule, never>;
|
|
46
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyUIModule, [typeof i1.CardComponent, typeof i2.CardHeaderComponent, typeof i3.CardBodyComponent, typeof i4.CardFooterComponent, typeof i5.CheckIconComponent, typeof i6.Copy2ClipboardComponent, typeof i7.ControlPanelComponent, typeof i8.DataPagerComponent, typeof i9.CountryDropdownlist, typeof i10.ModerationStatusDropdownlist, typeof i11.PublishStatusDropdownlist, typeof i12.TimezoneDropdownlist, typeof i13.HtmlEditorComponent, typeof i14.SignInButtonComponent, typeof i15.SignUpButtonComponent, typeof i16.SignOutButtonComponent, typeof i17.NodataComponent, typeof i18.NoMobileSupportComponent, typeof i19.PageSpinnerComponent, typeof i20.LoadingComponent, typeof i21.UrlSlugComponent, typeof i22.FeatureWillBeReadyComponent, typeof i23.YouAgreeToOurTermsComponent, typeof i24.ContactUsDialog, typeof i25.HoveringDirective, typeof i26.
|
|
47
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AnatolyUIModule, [typeof i1.CardComponent, typeof i2.CardHeaderComponent, typeof i3.CardBodyComponent, typeof i4.CardFooterComponent, typeof i5.CheckIconComponent, typeof i6.Copy2ClipboardComponent, typeof i7.ControlPanelComponent, typeof i8.DataPagerComponent, typeof i9.CountryDropdownlist, typeof i10.ModerationStatusDropdownlist, typeof i11.PublishStatusDropdownlist, typeof i12.TimezoneDropdownlist, typeof i13.HtmlEditorComponent, typeof i14.SignInButtonComponent, typeof i15.SignUpButtonComponent, typeof i16.SignOutButtonComponent, typeof i17.NodataComponent, typeof i18.NoMobileSupportComponent, typeof i19.PageSpinnerComponent, typeof i20.LoadingComponent, typeof i21.UrlSlugComponent, typeof i22.FeatureWillBeReadyComponent, typeof i23.YouAgreeToOurTermsComponent, typeof i24.ContactUsDialog, typeof i25.HoveringDirective, typeof i26.AReplacerDirective, typeof i27.ImageReplacerDirective, typeof i28.NativeElementDirective, typeof i29.AddressComponent, typeof i30.CompanyComponent, typeof i31.ContactUsForm, typeof i32.SafeHtmlPipe, typeof i33.ReplaceTextPipe, typeof i34.FileSizePipe, typeof i35.FormValidationSummaryComponent, typeof i36.ItemValidationSummaryComponent], [typeof i37.CommonModule, typeof i38.RouterModule, typeof i39.ReactiveFormsModule, typeof i39.FormsModule, typeof i40.NgxCaptchaModule, typeof i41.FERootModule, typeof i42.FaModule, typeof i43.KendoModule], [typeof i1.CardComponent, typeof i2.CardHeaderComponent, typeof i3.CardBodyComponent, typeof i4.CardFooterComponent, typeof i5.CheckIconComponent, typeof i6.Copy2ClipboardComponent, typeof i7.ControlPanelComponent, typeof i8.DataPagerComponent, typeof i9.CountryDropdownlist, typeof i10.ModerationStatusDropdownlist, typeof i11.PublishStatusDropdownlist, typeof i12.TimezoneDropdownlist, typeof i13.HtmlEditorComponent, typeof i14.SignInButtonComponent, typeof i15.SignUpButtonComponent, typeof i16.SignOutButtonComponent, typeof i17.NodataComponent, typeof i18.NoMobileSupportComponent, typeof i19.PageSpinnerComponent, typeof i20.LoadingComponent, typeof i21.UrlSlugComponent, typeof i22.FeatureWillBeReadyComponent, typeof i23.YouAgreeToOurTermsComponent, typeof i24.ContactUsDialog, typeof i25.HoveringDirective, typeof i26.AReplacerDirective, typeof i27.ImageReplacerDirective, typeof i28.NativeElementDirective, typeof i29.AddressComponent, typeof i30.CompanyComponent, typeof i31.ContactUsForm, typeof i32.SafeHtmlPipe, typeof i33.ReplaceTextPipe, typeof i34.FileSizePipe, typeof i35.FormValidationSummaryComponent, typeof i36.ItemValidationSummaryComponent]>;
|
|
47
48
|
static ɵinj: i0.ɵɵInjectorDeclaration<AnatolyUIModule>;
|
|
48
49
|
}
|
package/package.json
CHANGED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
<file>
|
|
3
|
-
Project:
|
|
4
|
-
@osovitny/anatoly
|
|
5
|
-
|
|
6
|
-
Authors:
|
|
7
|
-
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
8
|
-
|
|
9
|
-
Created:
|
|
10
|
-
24 Feb 2023
|
|
11
|
-
|
|
12
|
-
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
13
|
-
</file>
|
|
14
|
-
*/
|
|
15
|
-
//Node
|
|
16
|
-
import { Directive, Input } from '@angular/core';
|
|
17
|
-
import { AppCoreSettings } from '../../core/consts/core-settings';
|
|
18
|
-
import * as i0 from "@angular/core";
|
|
19
|
-
export class ImageSrcReplacerDirective {
|
|
20
|
-
constructor(el, renderer) {
|
|
21
|
-
this.el = el;
|
|
22
|
-
this.renderer = renderer;
|
|
23
|
-
}
|
|
24
|
-
ngOnInit() {
|
|
25
|
-
this.handleImage(this.src);
|
|
26
|
-
}
|
|
27
|
-
ngOnChanges(changes) {
|
|
28
|
-
if (changes['src']) {
|
|
29
|
-
this.handleImage(changes['src'].currentValue);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
handleImage(src) {
|
|
33
|
-
if (src) {
|
|
34
|
-
if (src.startsWith("http")) {
|
|
35
|
-
this.renderer.setAttribute(this.el.nativeElement, 'src', src);
|
|
36
|
-
return;
|
|
37
|
-
}
|
|
38
|
-
const isCDNEnabled = AppCoreSettings.cdn.enabled;
|
|
39
|
-
const cdnUrl = AppCoreSettings.cdn.url;
|
|
40
|
-
const newSrc = isCDNEnabled ? cdnUrl + src : src;
|
|
41
|
-
this.renderer.setAttribute(this.el.nativeElement, 'src', newSrc);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
static { this.ɵfac = function ImageSrcReplacerDirective_Factory(t) { return new (t || ImageSrcReplacerDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Renderer2)); }; }
|
|
45
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ImageSrcReplacerDirective, selectors: [["img"]], inputs: { src: "src" }, features: [i0.ɵɵNgOnChangesFeature] }); }
|
|
46
|
-
}
|
|
47
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ImageSrcReplacerDirective, [{
|
|
48
|
-
type: Directive,
|
|
49
|
-
args: [{
|
|
50
|
-
selector: 'img'
|
|
51
|
-
}]
|
|
52
|
-
}], () => [{ type: i0.ElementRef }, { type: i0.Renderer2 }], { src: [{
|
|
53
|
-
type: Input,
|
|
54
|
-
args: ['src']
|
|
55
|
-
}] }); })();
|
|
56
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW1hZ2Utc3JjLXJlcGxhY2VyLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2FuYXRvbHkvc3JjL2xpYi91aS9kaXJlY3RpdmVzL2ltYWdlLXNyYy1yZXBsYWNlci5kaXJlY3RpdmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7Ozs7Ozs7Ozs7RUFhRTtBQUdGLE1BQU07QUFDTixPQUFPLEVBQUUsU0FBUyxFQUFjLEtBQUssRUFBK0MsTUFBTSxlQUFlLENBQ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 +0,0 @@
|
|
|
1
|
-
import { ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ImageSrcReplacerDirective implements OnInit, OnChanges {
|
|
4
|
-
private el;
|
|
5
|
-
private renderer;
|
|
6
|
-
src: string;
|
|
7
|
-
constructor(el: ElementRef, renderer: Renderer2);
|
|
8
|
-
ngOnInit(): void;
|
|
9
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
10
|
-
private handleImage;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ImageSrcReplacerDirective, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ImageSrcReplacerDirective, "img", never, { "src": { "alias": "src"; "required": false; }; }, {}, never, never, false, never>;
|
|
13
|
-
}
|