@osovitny/anatoly 2.15.3 → 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.
@@ -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';
@@ -1924,6 +1924,12 @@ class Subs {
1924
1924
  </file>
1925
1925
  */
1926
1926
  class Utils {
1927
+ static idExistsInQS() {
1928
+ let id = Utils.getValueByNameInQS("id");
1929
+ if (id)
1930
+ return true;
1931
+ return false;
1932
+ }
1927
1933
  static getValueByNameInQS(name) {
1928
1934
  return Utils.getValueByName(location.search, name);
1929
1935
  }
@@ -3300,8 +3306,7 @@ class BaseEditComponent extends BaseComponent {
3300
3306
  this.formSubmitted = false;
3301
3307
  }
3302
3308
  isActionAdding() {
3303
- let id = Utils.getValueByNameInQS("id");
3304
- return typeof id === "undefined" || id == "";
3309
+ return !Utils.idExistsInQS();
3305
3310
  }
3306
3311
  isControlValid(name, frmGroup = null) {
3307
3312
  return !this.isControlInvalid(name, frmGroup);
@@ -4435,6 +4440,54 @@ ContactUsDialog.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: ContactUsDi
4435
4440
  </file>
4436
4441
  */
4437
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
+
4438
4491
  /*
4439
4492
  <file>
4440
4493
  Project:
@@ -5441,6 +5494,7 @@ const COMPONENTS = [
5441
5494
  ContactUsDialog,
5442
5495
  //Directives
5443
5496
  NativeElementDirective,
5497
+ HoveringDirective,
5444
5498
  //Forms
5445
5499
  AddressComponent,
5446
5500
  CompanyComponent,
@@ -5511,6 +5565,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
5511
5565
  ContactUsDialog,
5512
5566
  //Directives
5513
5567
  NativeElementDirective,
5568
+ HoveringDirective,
5514
5569
  //Forms
5515
5570
  AddressComponent,
5516
5571
  CompanyComponent,
@@ -5551,6 +5606,7 @@ AnatolyUIModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonMo
5551
5606
  ContactUsDialog,
5552
5607
  //Directives
5553
5608
  NativeElementDirective,
5609
+ HoveringDirective,
5554
5610
  //Forms
5555
5611
  AddressComponent,
5556
5612
  CompanyComponent,
@@ -5622,5 +5678,5 @@ AnatolyModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModu
5622
5678
  * Generated bundle index. Do not edit.
5623
5679
  */
5624
5680
 
5625
- 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 };
5626
5682
  //# sourceMappingURL=osovitny-anatoly.mjs.map