@osovitny/anatoly 2.15.4 → 2.15.5
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/esm2020/lib/ui/components/base/base-edit.component.mjs +2 -2
- package/esm2020/lib/ui/directives/hover.directive.mjs +51 -0
- package/esm2020/lib/ui/directives/index.mjs +2 -1
- package/esm2020/lib/ui/ui.module.mjs +5 -2
- package/fesm2015/osovitny-anatoly.mjs +59 -3
- package/fesm2015/osovitny-anatoly.mjs.map +1 -1
- package/fesm2020/osovitny-anatoly.mjs +54 -3
- package/fesm2020/osovitny-anatoly.mjs.map +1 -1
- package/lib/ui/directives/hover.directive.d.ts +8 -0
- package/lib/ui/directives/index.d.ts +1 -0
- package/lib/ui/ui.module.d.ts +18 -17
- package/package.json +2 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Pipe, APP_INITIALIZER, Injector, NgModule, Inject, Component, Input, EventEmitter, Output, ViewEncapsulation, Directive, ViewChild, Optional, SkipSelf } from '@angular/core';
|
|
2
|
+
import { Injectable, Pipe, APP_INITIALIZER, Injector, NgModule, Inject, Component, Input, EventEmitter, Output, ViewEncapsulation, Directive, ViewChild, HostBinding, HostListener, Optional, SkipSelf } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/router';
|
|
4
4
|
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError } from '@angular/router';
|
|
5
5
|
import * as i1$3 from '@angular/common/http';
|
|
@@ -3306,7 +3306,7 @@ class BaseEditComponent extends BaseComponent {
|
|
|
3306
3306
|
this.formSubmitted = false;
|
|
3307
3307
|
}
|
|
3308
3308
|
isActionAdding() {
|
|
3309
|
-
return Utils.idExistsInQS();
|
|
3309
|
+
return !Utils.idExistsInQS();
|
|
3310
3310
|
}
|
|
3311
3311
|
isControlValid(name, frmGroup = null) {
|
|
3312
3312
|
return !this.isControlInvalid(name, frmGroup);
|
|
@@ -4440,6 +4440,54 @@ ContactUsDialog.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsDi
|
|
|
4440
4440
|
</file>
|
|
4441
4441
|
*/
|
|
4442
4442
|
|
|
4443
|
+
/*
|
|
4444
|
+
<file>
|
|
4445
|
+
Project:
|
|
4446
|
+
@osovitny/anatoly
|
|
4447
|
+
|
|
4448
|
+
Authors:
|
|
4449
|
+
Vadim Osovitny vadim@osovitny.com
|
|
4450
|
+
Anatoly Osovitny anatoly@osovitny.com
|
|
4451
|
+
|
|
4452
|
+
Created:
|
|
4453
|
+
24 Feb 2023
|
|
4454
|
+
|
|
4455
|
+
Copyright (c) 2016-2022 Osovitny Inc. All rights reserved.
|
|
4456
|
+
</file>
|
|
4457
|
+
*/
|
|
4458
|
+
class HoveringDirective {
|
|
4459
|
+
constructor() {
|
|
4460
|
+
this.hovering = false;
|
|
4461
|
+
}
|
|
4462
|
+
onMouseEnter() {
|
|
4463
|
+
this.hovering = true;
|
|
4464
|
+
}
|
|
4465
|
+
onMouseLeave() {
|
|
4466
|
+
this.hovering = false;
|
|
4467
|
+
}
|
|
4468
|
+
}
|
|
4469
|
+
HoveringDirective.ɵfac = function HoveringDirective_Factory(t) { return new (t || HoveringDirective)(); };
|
|
4470
|
+
HoveringDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: HoveringDirective, selectors: [["", "anatoly-hover", ""]], hostVars: 2, hostBindings: function HoveringDirective_HostBindings(rf, ctx) { if (rf & 1) {
|
|
4471
|
+
i0.ɵɵlistener("mouseenter", function HoveringDirective_mouseenter_HostBindingHandler() { return ctx.onMouseEnter(); })("mouseleave", function HoveringDirective_mouseleave_HostBindingHandler() { return ctx.onMouseLeave(); });
|
|
4472
|
+
} if (rf & 2) {
|
|
4473
|
+
i0.ɵɵclassProp("hovering", ctx.hovering);
|
|
4474
|
+
} } });
|
|
4475
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(HoveringDirective, [{
|
|
4476
|
+
type: Directive,
|
|
4477
|
+
args: [{
|
|
4478
|
+
selector: '[anatoly-hover]'
|
|
4479
|
+
}]
|
|
4480
|
+
}], null, { hovering: [{
|
|
4481
|
+
type: HostBinding,
|
|
4482
|
+
args: ['class.hovering']
|
|
4483
|
+
}], onMouseEnter: [{
|
|
4484
|
+
type: HostListener,
|
|
4485
|
+
args: ['mouseenter']
|
|
4486
|
+
}], onMouseLeave: [{
|
|
4487
|
+
type: HostListener,
|
|
4488
|
+
args: ['mouseleave']
|
|
4489
|
+
}] }); })();
|
|
4490
|
+
|
|
4443
4491
|
/*
|
|
4444
4492
|
<file>
|
|
4445
4493
|
Project:
|
|
@@ -5446,6 +5494,7 @@ const COMPONENTS = [
|
|
|
5446
5494
|
ContactUsDialog,
|
|
5447
5495
|
//Directives
|
|
5448
5496
|
NativeElementDirective,
|
|
5497
|
+
HoveringDirective,
|
|
5449
5498
|
//Forms
|
|
5450
5499
|
AddressComponent,
|
|
5451
5500
|
CompanyComponent,
|
|
@@ -5516,6 +5565,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
5516
5565
|
ContactUsDialog,
|
|
5517
5566
|
//Directives
|
|
5518
5567
|
NativeElementDirective,
|
|
5568
|
+
HoveringDirective,
|
|
5519
5569
|
//Forms
|
|
5520
5570
|
AddressComponent,
|
|
5521
5571
|
CompanyComponent,
|
|
@@ -5556,6 +5606,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
|
|
|
5556
5606
|
ContactUsDialog,
|
|
5557
5607
|
//Directives
|
|
5558
5608
|
NativeElementDirective,
|
|
5609
|
+
HoveringDirective,
|
|
5559
5610
|
//Forms
|
|
5560
5611
|
AddressComponent,
|
|
5561
5612
|
CompanyComponent,
|
|
@@ -5627,5 +5678,5 @@ AnatolyModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
|
|
|
5627
5678
|
* Generated bundle index. Do not edit.
|
|
5628
5679
|
*/
|
|
5629
5680
|
|
|
5630
|
-
export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyModule, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BaseList, BasePage, BasePagedPage, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, DOM, DatapagerComponent, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, XmlFormatter, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
5681
|
+
export { AddressComponent, Alerts, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyModule, AnatolyUIModule, AppContextService, AppCoreSettings, BaseApiService, BaseComponent, BaseDialog, BaseEditComponent, BaseGoService, BaseGridEditService, BaseGridReadService, BaseHtmlEditorComponent, BaseList, BasePage, BasePagedPage, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, CompanyComponent, ContactUsDialog, ContactUsForm, Convert, Copy2ClipboardComponent, CoreApiService, DOM, DatapagerComponent, DefaultEditorOptions, DigitalMarketingService, EmailsApiService, FileSizePipe, FormValidationSummaryComponent, FormsHtmlEditorComponent, FroalaEditorModuleWithProviders, FroalaViewModuleWithProviders, GlobalErrorHandler, GoogleAnalyticsService, Guid, HoveringDirective, HtmlEditorComponent, IdleService, InjectorInstance, ItemValidationSummaryComponent, LoadingComponent, LoadingService, LocalStorageService, LocalizationInjectorInstance, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, NativeElementDirective, NodataComponent, NotificationService, NotificationsApiService, PageSpinnerComponent, ReplaceTextPipe, SafeHtmlPipe, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, Subs, SubscribePlanButtonComponent, TimezoneDropdownlist, TranslateModuleAtRoot, UrlSlugComponent, Urls, Utils, ValidationSummaryComponent, XmlFormatter, customTranslateLoaderFactory, localizationInitializerFactory, throwIfAlreadyLoaded };
|
|
5631
5682
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|