@datarailsshared/datarailsshared 1.4.191-rocket → 1.4.194-rocket

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.
Files changed (26) hide show
  1. package/datarailsshared-datarailsshared-1.4.194-rocket.tgz +0 -0
  2. package/esm2022/lib/date-tags/day-tag/day-tag.component.mjs +2 -3
  3. package/esm2022/lib/date-tags/forecast-tag/forecast-tag.component.mjs +2 -3
  4. package/esm2022/lib/date-tags/month-tag/month-tag.component.mjs +4 -3
  5. package/esm2022/lib/date-tags/quarter-tag/quarter-tag.component.mjs +2 -3
  6. package/esm2022/lib/date-tags/week-tag/week-tag.component.mjs +2 -3
  7. package/esm2022/lib/date-tags/year-tag/year-tag.component.mjs +2 -3
  8. package/esm2022/lib/directives/click-outside/click-outside.directive.mjs +94 -0
  9. package/esm2022/lib/directives/click-outside/click-outside.module.mjs +18 -0
  10. package/esm2022/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.mjs +4 -4
  11. package/esm2022/lib/dr-error/dr-error.component.mjs +1 -1
  12. package/esm2022/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.mjs +3 -4
  13. package/esm2022/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.mjs +2 -3
  14. package/esm2022/lib/dr-inputs/date-pickers/services/dr-date-picker.service.mjs +1 -3
  15. package/esm2022/lib/dr-popover/dr-popover.component.mjs +12 -15
  16. package/esm2022/public-api.mjs +3 -1
  17. package/fesm2022/datarailsshared-datarailsshared.mjs +150 -66
  18. package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
  19. package/lib/directives/click-outside/click-outside.directive.d.ts +23 -0
  20. package/lib/directives/click-outside/click-outside.module.d.ts +8 -0
  21. package/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.d.ts +2 -2
  22. package/lib/dr-error/dr-error.component.d.ts +3 -3
  23. package/lib/dr-popover/dr-popover.component.d.ts +4 -5
  24. package/package.json +1 -1
  25. package/public-api.d.ts +2 -0
  26. package/datarailsshared-datarailsshared-1.4.191-rocket.tgz +0 -0
@@ -0,0 +1,23 @@
1
+ import { ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ClickOutsideDirective implements OnInit, OnDestroy, OnChanges {
4
+ private _document;
5
+ private _el;
6
+ attachOutsideOnClick: boolean;
7
+ exclude: string;
8
+ clickOutside: EventEmitter<Event>;
9
+ private _nodesExcluded;
10
+ constructor(_document: any, _el: ElementRef);
11
+ ngOnInit(): void;
12
+ ngOnDestroy(): void;
13
+ ngOnChanges(changes: SimpleChanges): void;
14
+ private _init;
15
+ /** @internal */
16
+ private _initOnClickBody;
17
+ /** @internal */
18
+ private _onClickBody;
19
+ /** @internal */
20
+ private _shouldExclude;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[clickOutside]", never, { "attachOutsideOnClick": { "alias": "attachOutsideOnClick"; "required": false; }; "exclude": { "alias": "exclude"; "required": false; }; }, { "clickOutside": "clickOutside"; }, never, never, false, never>;
23
+ }
@@ -0,0 +1,8 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./click-outside.directive";
3
+ import * as i2 from "@angular/common";
4
+ export declare class ClickOutsideModule {
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideModule, never>;
6
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ClickOutsideModule, [typeof i1.ClickOutsideDirective], [typeof i2.CommonModule], [typeof i1.ClickOutsideDirective]>;
7
+ static ɵinj: i0.ɵɵInjectorDeclaration<ClickOutsideModule>;
8
+ }
@@ -1,5 +1,5 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
- import { UntypedFormGroup } from '@angular/forms';
2
+ import { FormGroup } from '@angular/forms';
3
3
  import { MatLegacyDialogRef as MatDialogRef } from '@angular/material/legacy-dialog';
4
4
  import { DataProp, DIALOG_FIELD_TYPE } from '../../interfaces/dialog-data';
5
5
  import { BehaviorSubject, Subject } from 'rxjs';
@@ -10,7 +10,7 @@ export declare class DialogModalWrapperComponent implements OnInit, OnDestroy {
10
10
  private dialogService;
11
11
  dialogData: DataProp;
12
12
  readonly dialogFieldType: typeof DIALOG_FIELD_TYPE;
13
- form: UntypedFormGroup;
13
+ form: FormGroup;
14
14
  saving$: BehaviorSubject<boolean>;
15
15
  isLoading: boolean;
16
16
  showServerErrorMessage: boolean;
@@ -1,13 +1,13 @@
1
1
  import { ChangeDetectorRef, OnDestroy } from '@angular/core';
2
- import { UntypedFormControl, FormGroupDirective } from '@angular/forms';
2
+ import { FormControl, FormGroupDirective } from '@angular/forms';
3
3
  import * as i0 from "@angular/core";
4
4
  export declare class DrErrorComponent implements OnDestroy {
5
5
  private cdr;
6
6
  private formGroupDirective;
7
7
  constructor(cdr: ChangeDetectorRef, formGroupDirective: FormGroupDirective);
8
8
  private destroyed$;
9
- _control: UntypedFormControl;
10
- set control(value: UntypedFormControl);
9
+ _control: FormControl;
10
+ set control(value: FormControl);
11
11
  set controlName(value: string);
12
12
  label: string;
13
13
  noIcon: boolean;
@@ -1,17 +1,16 @@
1
- import { ChangeDetectorRef, ComponentFactoryResolver, ComponentRef, ElementRef, EventEmitter, OnInit, TemplateRef, Type, ViewContainerRef } from '@angular/core';
1
+ import { ChangeDetectorRef, ComponentRef, ElementRef, EventEmitter, OnInit, TemplateRef, Type, ViewContainerRef } from '@angular/core';
2
2
  import { DrPopoverRef } from './dr-popover-ref';
3
3
  import { DrPopoverAlignment, IPopoverManualClosing, Point } from '../models/popover';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class DrPopoverComponent<T> implements OnInit {
6
6
  private cdr;
7
- private componentFactoryResolver;
8
7
  private viewContainerRef;
9
8
  private elementRef;
10
9
  private popoverRef;
11
10
  popoverOpened: EventEmitter<void>;
12
- _contentAsRef: TemplateRef<any>;
13
11
  _contentAsType: Type<T>;
14
- set content(content: TemplateRef<any> | Type<T>);
12
+ _contentAsTemplate: TemplateRef<any>;
13
+ set content(value: TemplateRef<any> | Type<T>);
15
14
  contentContext: any;
16
15
  class: string;
17
16
  hostRef: ElementRef<unknown> | HTMLElement | Point;
@@ -26,7 +25,7 @@ export declare class DrPopoverComponent<T> implements OnInit {
26
25
  height: string;
27
26
  popover: boolean;
28
27
  clickOutside(e: any): void;
29
- constructor(cdr: ChangeDetectorRef, componentFactoryResolver: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, elementRef: ElementRef, popoverRef: DrPopoverRef<T>);
28
+ constructor(cdr: ChangeDetectorRef, viewContainerRef: ViewContainerRef, elementRef: ElementRef, popoverRef: DrPopoverRef<T>);
30
29
  ngOnInit(): void;
31
30
  /**
32
31
  * Removing popover element from cdk-overlay and attach to provided container after element is positioned
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datarailsshared/datarailsshared",
3
- "version": "1.4.191-rocket",
3
+ "version": "1.4.194-rocket",
4
4
  "description": "DataRails shared components",
5
5
  "keywords": [
6
6
  "angular",
package/public-api.d.ts CHANGED
@@ -83,6 +83,7 @@ export { TooltipInfoContext } from './lib/dr-tooltip/interfaces/tooltip-componen
83
83
  export { Step } from './lib/stepper/interfaces/stepper';
84
84
  export * from './lib/dr-dialog/interfaces/dialog-data';
85
85
  export * from './lib/dr-inputs/dr-model-debounce-change.directive';
86
+ export * from './lib/directives/click-outside/click-outside.directive';
86
87
  export * from './lib/models/datePicker';
87
88
  export { TAG_TYPES, ITag, IDateTag, IListTag, ITagForServer, IDynamicTag, TDynamicTagValue, TDynamicTag, TagTypes, TConnectedTags } from './lib/models/serverTags';
88
89
  export { ISpinnerOptions, SpinnerType, SpinnerSize } from './lib/models/spinnerOptions';
@@ -113,3 +114,4 @@ export { DrDetailsListModule } from './lib/dr-details-list/dr-details-list.modul
113
114
  export { DrScenarioModule } from './lib/dr-scenario/dr-scenario.module';
114
115
  export { DrBadgeStatusModule } from './lib/dr-badge-status/dr-badge-status.module';
115
116
  export { TreeviewModule } from './lib/dr-treeview/dr-tree-view.module';
117
+ export { ClickOutsideModule } from './lib/directives/click-outside/click-outside.module';