adb-shared 6.0.1 → 6.0.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.
@@ -1,10 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./adb-dropdown.directive";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@ngx-translate/core";
5
- import * as i4 from "../../directives/directives.module";
3
+ import * as i2 from "./adb-dropdown2.directive";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "@ngx-translate/core";
6
+ import * as i5 from "../../directives/directives.module";
6
7
  export declare class AdbDropdownModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdownModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDropdownModule, [typeof i1.AdbDropdownDirective], [typeof i2.CommonModule, typeof i3.TranslateModule, typeof i4.AdbDirectivesModule], [typeof i1.AdbDropdownDirective]>;
9
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbDropdownModule, [typeof i1.AdbDropdownDirective, typeof i2.AdbDropdown2Directive], [typeof i3.CommonModule, typeof i4.TranslateModule, typeof i5.AdbDirectivesModule], [typeof i1.AdbDropdownDirective, typeof i2.AdbDropdown2Directive]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbDropdownModule>;
10
11
  }
@@ -0,0 +1,23 @@
1
+ import { ElementRef, EventEmitter } from "@angular/core";
2
+ import { AdbDropdownService } from "./adb-dropdown.service";
3
+ import * as i0 from "@angular/core";
4
+ export declare class AdbDropdown2Directive {
5
+ private elementRef;
6
+ private adbDropdownService;
7
+ constructor(elementRef: ElementRef, adbDropdownService: AdbDropdownService);
8
+ adbDropdown: EventEmitter<any>;
9
+ insideClick: boolean;
10
+ id: string;
11
+ dataToggle: string;
12
+ haspPopup: boolean;
13
+ expanded: boolean;
14
+ dropId: string;
15
+ onClick(): void;
16
+ onCheckOutSideClick(target: any): void;
17
+ onWindowScroll(): void;
18
+ private setMenuPosition;
19
+ close(): void;
20
+ private getId;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbDropdown2Directive, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<AdbDropdown2Directive, "[adbDropdown2]", ["adbDropdown"], { "insideClick": { "alias": "insideClick"; "required": false; }; }, { "adbDropdown": "adbDropdown"; }, never, never, false, never>;
23
+ }
@@ -0,0 +1,22 @@
1
+ import { AfterViewInit, ElementRef, OnDestroy, Renderer2 } from "@angular/core";
2
+ import { ControlValueAccessor } from "@angular/forms";
3
+ import * as i0 from "@angular/core";
4
+ export declare class AdbRichEditorComponent implements ControlValueAccessor, AfterViewInit, OnDestroy {
5
+ private renderer;
6
+ private el;
7
+ text: string;
8
+ constructor(renderer: Renderer2, el: ElementRef);
9
+ ngAfterViewInit(): void;
10
+ onDoubleClick(): void;
11
+ onItalicClick(): void;
12
+ onTextChange(): void;
13
+ onChange: any;
14
+ onTouched: any;
15
+ writeValue(value: string): void;
16
+ registerOnChange(fn: any): void;
17
+ registerOnTouched(fn: any): void;
18
+ setDisabledState?(isDisabled: boolean): void;
19
+ ngOnDestroy(): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<AdbRichEditorComponent, "adb-rich-editor", never, {}, {}, never, never, false, never>;
22
+ }
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./adb-rich-editor.component";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ export declare class AdbRichEditorModule {
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<AdbRichEditorModule, never>;
7
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbRichEditorModule, [typeof i1.AdbRichEditorComponent], [typeof i2.CommonModule, typeof i3.FormsModule], [typeof i1.AdbRichEditorComponent]>;
8
+ static ɵinj: i0.ɵɵInjectorDeclaration<AdbRichEditorModule>;
9
+ }
@@ -32,10 +32,10 @@ export declare class AdbDatePickerDirective implements ControlValueAccessor, Val
32
32
  private updateValueOnLeave;
33
33
  ngOnDestroy(): void;
34
34
  validate(control: AbstractControl): ValidationErrors;
35
- onValidationChange: any;
36
- registerOnValidatorChange?(fn: () => void): void;
37
35
  onChange: any;
38
36
  onTouched: any;
37
+ onValidationChange: any;
38
+ registerOnValidatorChange?(fn: () => void): void;
39
39
  writeValue(value: Date | string): void;
40
40
  registerOnChange(fn: any): void;
41
41
  registerOnTouched(fn: any): void;
@@ -1,11 +1,12 @@
1
1
  import * as i0 from "@angular/core";
2
- import * as i1 from "./highlight.pipe";
3
- import * as i2 from "./highlight-html.pipe";
4
- import * as i3 from "./number-spacing.pipe";
5
- import * as i4 from "./date.pipe";
6
- import * as i5 from "./emptyValue.pipe";
2
+ import * as i1 from "./rich.pipe";
3
+ import * as i2 from "./highlight.pipe";
4
+ import * as i3 from "./highlight-html.pipe";
5
+ import * as i4 from "./number-spacing.pipe";
6
+ import * as i5 from "./date.pipe";
7
+ import * as i6 from "./emptyValue.pipe";
7
8
  export declare class AdbPipesModule {
8
9
  static ɵfac: i0.ɵɵFactoryDeclaration<AdbPipesModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPipesModule, [typeof i1.HighlightPipe, typeof i2.HighlightHtmlPipe, typeof i3.NumberSpacingPipe, typeof i4.LocaleDatePipe, typeof i5.EmptyValuePipe], never, [typeof i1.HighlightPipe, typeof i2.HighlightHtmlPipe, typeof i3.NumberSpacingPipe, typeof i4.LocaleDatePipe, typeof i5.EmptyValuePipe]>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<AdbPipesModule, [typeof i1.RichPipe, typeof i2.HighlightPipe, typeof i3.HighlightHtmlPipe, typeof i4.NumberSpacingPipe, typeof i5.LocaleDatePipe, typeof i6.EmptyValuePipe], never, [typeof i1.RichPipe, typeof i2.HighlightPipe, typeof i3.HighlightHtmlPipe, typeof i4.NumberSpacingPipe, typeof i5.LocaleDatePipe, typeof i6.EmptyValuePipe]>;
10
11
  static ɵinj: i0.ɵɵInjectorDeclaration<AdbPipesModule>;
11
12
  }
@@ -0,0 +1,11 @@
1
+ import { PipeTransform } from "@angular/core";
2
+ import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
3
+ import * as i0 from "@angular/core";
4
+ export declare class RichPipe implements PipeTransform {
5
+ private sanitizer;
6
+ constructor(sanitizer: DomSanitizer);
7
+ transform(value: string): SafeHtml;
8
+ private parseCustomMarkdown;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RichPipe, never>;
10
+ static ɵpipe: i0.ɵɵPipeDeclaration<RichPipe, "rich", false>;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "adb-shared",
3
- "version": "6.0.1",
3
+ "version": "6.0.2",
4
4
  "author": "ADB",
5
5
  "license": "ISC",
6
6
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -19,11 +19,13 @@ export * from './lib/pipes/highlight-html.pipe';
19
19
  export * from './lib/pipes/number-spacing.pipe';
20
20
  export * from './lib/pipes/date.pipe';
21
21
  export * from './lib/pipes/emptyValue.pipe';
22
+ export * from './lib/pipes/rich.pipe';
22
23
  export * from './lib/components/date-picker/adb-date-picker.module';
23
24
  export * from './lib/components/date-picker/adb-date-picker.component';
24
25
  export * from './lib/components/date-picker/adb-date-picker.directive';
25
26
  export * from './lib/components/adb-dropdown/adb-dropdown.module';
26
27
  export * from './lib/components/adb-dropdown/adb-dropdown.directive';
28
+ export * from './lib/components/adb-dropdown/adb-dropdown2.directive';
27
29
  export * from './lib/components/adb-confirm-modal/adb-modal.module';
28
30
  export * from './lib/components/adb-confirm-modal/adb-confirm-modal';
29
31
  export * from './lib/components/adb-confirm-modal/adb-modal.service';
@@ -32,3 +34,5 @@ export * from './lib/components/adb-toast/adb-toast';
32
34
  export * from './lib/components/adb-toast/adb-toast.service';
33
35
  export * from './lib/components/adb-buttons/adb-buttons.module';
34
36
  export * from './lib/components/adb-buttons/help-button.component';
37
+ export * from './lib/components/adb-rich-editor/adb-rich-editor.module';
38
+ export * from './lib/components/adb-rich-editor/adb-rich-editor.component';