@morozeckiy/dd-lib 0.2.30 → 0.2.70

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 (55) hide show
  1. package/assets/images/svg/preset.svg +11 -0
  2. package/assets/images/svg/print.svg +12 -0
  3. package/assets/scss/common.scss +14 -20
  4. package/assets/scss/titles.scss +20 -0
  5. package/assets/scss/vars-dark.scss +3 -2
  6. package/assets/scss/vars-light.scss +1 -0
  7. package/esm2022/lib/common/lib-common-input-text.mjs +7 -2
  8. package/esm2022/lib/core/dialog/dialog-config.mjs +2 -2
  9. package/esm2022/lib/core/index.mjs +2 -4
  10. package/esm2022/lib/core/services/fetcher.service.mjs +2 -2
  11. package/esm2022/lib/core/services/interceptors.service.mjs +1 -1
  12. package/esm2022/lib/core/toast/index.mjs +5 -0
  13. package/esm2022/lib/core/toast/toast/toast-animations.mjs +9 -0
  14. package/esm2022/lib/core/toast/toast/toast.component.mjs +65 -0
  15. package/esm2022/lib/core/toast/toast-config.mjs +24 -0
  16. package/esm2022/lib/core/toast/toast-ref.mjs +15 -0
  17. package/esm2022/lib/core/toast/toast.service.mjs +41 -109
  18. package/esm2022/lib/lib-button/lib-button.component.mjs +3 -3
  19. package/esm2022/lib/lib-calendar/lib-calendar.component.mjs +3 -3
  20. package/esm2022/lib/lib-file-loader/lib-file-loader.component.mjs +86 -7
  21. package/esm2022/lib/lib-filter-button/lib-filter-button.component.mjs +3 -3
  22. package/esm2022/lib/lib-input/lib-input.component.mjs +3 -3
  23. package/esm2022/lib/lib-loader/lib-loader.component.mjs +6 -3
  24. package/esm2022/lib/lib-radio/lib-radio.component.mjs +3 -3
  25. package/esm2022/lib/lib-search-input/lib-search-input.component.mjs +3 -5
  26. package/esm2022/lib/lib-select/lib-select.component.mjs +73 -22
  27. package/esm2022/lib/lib-sort/lib-sort.component.mjs +3 -3
  28. package/esm2022/lib/lib-tabs-fragment/lib-tabs-fragment.component.mjs +9 -5
  29. package/esm2022/lib/svg-icons/svg-icon.model.mjs +11 -1
  30. package/fesm2022/morozeckiy-dd-lib.mjs +326 -212
  31. package/fesm2022/morozeckiy-dd-lib.mjs.map +1 -1
  32. package/lib/common/lib-common-input-text.d.ts +3 -1
  33. package/lib/core/index.d.ts +1 -3
  34. package/lib/core/services/fetcher.service.d.ts +1 -1
  35. package/lib/core/toast/index.d.ts +4 -0
  36. package/lib/core/toast/toast/toast-animations.d.ts +5 -0
  37. package/lib/core/toast/toast/toast.component.d.ts +22 -0
  38. package/lib/core/toast/toast-config.d.ts +23 -0
  39. package/lib/core/toast/toast-ref.d.ts +8 -0
  40. package/lib/core/toast/toast.service.d.ts +13 -29
  41. package/lib/lib-file-loader/lib-file-loader.component.d.ts +19 -1
  42. package/lib/lib-loader/lib-loader.component.d.ts +2 -1
  43. package/lib/lib-search-input/lib-search-input.component.d.ts +1 -2
  44. package/lib/lib-select/lib-select.component.d.ts +6 -5
  45. package/lib/lib-tabs-fragment/lib-tabs-fragment.component.d.ts +2 -1
  46. package/lib/svg-icons/svg-icon.model.d.ts +15 -1
  47. package/morozeckiy-dd-lib-0.2.70.tgz +0 -0
  48. package/package.json +1 -1
  49. package/esm2022/lib/core/toast/toast-base/toast-base.component.mjs +0 -48
  50. package/esm2022/lib/core/toast/toast-placeholder/toast-placeholder.component.mjs +0 -29
  51. package/lib/core/toast/toast-base/toast-base.component.d.ts +0 -27
  52. package/lib/core/toast/toast-placeholder/toast-placeholder.component.d.ts +0 -12
  53. package/morozeckiy-dd-lib-0.2.27.tgz +0 -0
  54. package/morozeckiy-dd-lib-0.2.29.tgz +0 -0
  55. package/morozeckiy-dd-lib-0.2.30.tgz +0 -0
@@ -16,6 +16,7 @@ export declare abstract class LibCommonInputTextComponent {
16
16
  autocomplete?: string;
17
17
  tabIndex?: string | number;
18
18
  readOnly?: boolean;
19
+ fetchMode?: boolean;
19
20
  required: boolean;
20
21
  disabled: boolean;
21
22
  commitOnInput: boolean;
@@ -25,6 +26,7 @@ export declare abstract class LibCommonInputTextComponent {
25
26
  errorText: string | undefined;
26
27
  side: 'top' | 'bottom';
27
28
  cleared: EventEmitter<void>;
29
+ fetchEvent: EventEmitter<any>;
28
30
  focus: EventEmitter<any>;
29
31
  blur: EventEmitter<any>;
30
32
  get id(): string;
@@ -50,5 +52,5 @@ export declare abstract class LibCommonInputTextComponent {
50
52
  handleChange(): void;
51
53
  commit(_value: string | null | undefined): void;
52
54
  static ɵfac: i0.ɵɵFactoryDeclaration<LibCommonInputTextComponent, never>;
53
- static ɵcmp: i0.ɵɵComponentDeclaration<LibCommonInputTextComponent, "dd-lib-common-input", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "contextClass": { "alias": "contextClass"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "commitOnInput": { "alias": "commitOnInput"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, { "cleared": "cleared"; "focus": "focus"; "blur": "blur"; }, never, never, false, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibCommonInputTextComponent, "dd-lib-common-input", never, { "name": { "alias": "name"; "required": false; }; "label": { "alias": "label"; "required": false; }; "formControlName": { "alias": "formControlName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "contextClass": { "alias": "contextClass"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "fetchMode": { "alias": "fetchMode"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "commitOnInput": { "alias": "commitOnInput"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "uppercase": { "alias": "uppercase"; "required": false; }; "invalid": { "alias": "invalid"; "required": false; }; "errorText": { "alias": "errorText"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, { "cleared": "cleared"; "fetchEvent": "fetchEvent"; "focus": "focus"; "blur": "blur"; }, never, never, false, never>;
54
56
  }
@@ -18,9 +18,7 @@ export * from './directives/resize-textarea.directive';
18
18
  export * from './tooltip/tooltip.directive';
19
19
  export * from './tooltip/tooltip.component';
20
20
  export * from './directives/triangle.directive';
21
- export * from './toast/toast.service';
22
- export * from './toast/toast-placeholder/toast-placeholder.component';
23
- export * from './toast/toast-base/toast-base.component';
21
+ export * from './toast/index';
24
22
  export * from './dialog/dialog.service';
25
23
  export * from './dialog/dialog-config';
26
24
  export * from './dialog/dialog-ref';
@@ -17,7 +17,7 @@ export declare class FetcherService {
17
17
  constructor(http: HttpClient, apiUrl?: string);
18
18
  get<R>(urlParts: string, options?: any, urlId?: string | number): Observable<R>;
19
19
  post<R>(urlParts: string[] | string, data?: any, options?: any): Observable<R>;
20
- put<R>(urlParts: string[] | string, options: any, data: any): Observable<any>;
20
+ put<R>(urlParts: string[] | string, data?: any, options?: any): Observable<R>;
21
21
  delete<R>(urlParts: string[] | string, options?: any): Observable<R>;
22
22
  /** перегоняем объкты в форм дату*/
23
23
  createFormData(form: {
@@ -0,0 +1,4 @@
1
+ export * from './toast.service';
2
+ export * from './toast/toast.component';
3
+ export * from './toast-config';
4
+ export * from './toast-ref';
@@ -0,0 +1,5 @@
1
+ import { AnimationTriggerMetadata } from '@angular/animations';
2
+ export declare const toastAnimations: {
3
+ readonly fadeToast: AnimationTriggerMetadata;
4
+ };
5
+ export type ToastAnimationState = 'default' | 'closing';
@@ -0,0 +1,22 @@
1
+ import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
2
+ import { ToastConfig, ToastData } from "../toast-config";
3
+ import { ToastRef } from "../toast-ref";
4
+ import { ToastAnimationState } from "./toast-animations";
5
+ import { BehaviorSubject } from "rxjs";
6
+ import * as i0 from "@angular/core";
7
+ export declare class ToastComponent implements OnInit, OnDestroy {
8
+ readonly data: ToastData;
9
+ readonly ref: ToastRef;
10
+ toastConfig: ToastConfig;
11
+ callEvent: EventEmitter<any>;
12
+ animationState$: BehaviorSubject<ToastAnimationState>;
13
+ private intervalId;
14
+ constructor(data: ToastData, ref: ToastRef, toastConfig: ToastConfig);
15
+ ngOnInit(): void;
16
+ onClickDesc($event: MouseEvent): void;
17
+ ngOnDestroy(): void;
18
+ close(): void;
19
+ onFadeFinished(event: any): void;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
21
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "dd-toast", never, {}, { "callEvent": "callEvent"; }, never, never, true, never>;
22
+ }
@@ -0,0 +1,23 @@
1
+ import { InjectionToken, Provider, TemplateRef } from '@angular/core';
2
+ export declare class ToastData {
3
+ type: ToastType;
4
+ title?: string;
5
+ description?: string;
6
+ template?: TemplateRef<any>;
7
+ templateContext?: {};
8
+ }
9
+ export type ToastType = 'warning' | 'info' | 'success' | 'danger';
10
+ export interface ToastConfig {
11
+ position?: {
12
+ top: number;
13
+ right: number;
14
+ };
15
+ animation?: {
16
+ fadeOut: number;
17
+ fadeIn: number;
18
+ };
19
+ interval?: number;
20
+ }
21
+ export declare const defaultToastConfig: ToastConfig;
22
+ export declare const TOAST_CONFIG_TOKEN: InjectionToken<ToastConfig>;
23
+ export declare const provideToast: (config?: Partial<ToastConfig>) => Provider[];
@@ -0,0 +1,8 @@
1
+ import { OverlayRef } from '@angular/cdk/overlay';
2
+ export declare class ToastRef {
3
+ private readonly overlay;
4
+ constructor(overlay: OverlayRef);
5
+ close(): void;
6
+ isVisible(): HTMLElement;
7
+ getPosition(): DOMRect;
8
+ }
@@ -1,35 +1,19 @@
1
- import { Injector, ViewContainerRef } from '@angular/core';
2
- import { Overlay } from '@angular/cdk/overlay';
3
- import { ToastData } from './toast-base/toast-base.component';
1
+ import { Injector } from '@angular/core';
2
+ import { Overlay, PositionStrategy } from "@angular/cdk/overlay";
3
+ import { ToastConfig, ToastData } from "./toast-config";
4
+ import { ToastRef } from "./toast-ref";
5
+ import { PortalInjector } from "@angular/cdk/portal";
4
6
  import * as i0 from "@angular/core";
5
- export declare enum ToastType {
6
- Warning = "warning_t",
7
- Success = "success_t",
8
- Info = "info_t",
9
- Danger = "danger_t"
10
- }
11
- export declare class ToastConfig {
12
- timeOut: number;
13
- constructor(config?: ToastConfig);
14
- }
15
7
  export declare class ToastService {
16
8
  private overlay;
17
- config: ToastConfig;
18
- private viewContainer;
19
- private counter;
20
- ddToastData: ToastData;
21
- private injector;
22
- private overlayRefs;
23
- constructor(overlay: Overlay);
24
- warning(title: string, description?: string): void;
25
- success(title: string, description?: string): void;
26
- danger(title: string, description?: string): void;
27
- info(title: string, description?: string): void;
28
- registerViewContainerRef(vcRef: ViewContainerRef): void;
29
- registerInjector(injector: Injector): void;
30
- destroyToast(id: number): void;
31
- private createToast;
32
- private getPositionStrategy;
9
+ private parentInjector;
10
+ protected toastConfig: ToastConfig;
11
+ private lastToast;
12
+ constructor(overlay: Overlay, parentInjector: Injector, toastConfig: ToastConfig);
13
+ show(data: ToastData): ToastRef;
14
+ getPositionStrategy(): PositionStrategy;
15
+ getPosition(): string;
16
+ getInjector(data: ToastData, toastRef: ToastRef, parentInjector: Injector): PortalInjector;
33
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
34
18
  static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
35
19
  }
@@ -1,5 +1,23 @@
1
+ import { ElementRef, EventEmitter } from '@angular/core';
2
+ import { ToastService } from "../core";
1
3
  import * as i0 from "@angular/core";
2
4
  export declare class LibFileLoaderComponent {
5
+ private toast;
6
+ fileLoader: ElementRef<HTMLInputElement>;
7
+ multiple: boolean;
8
+ maxFiles: number;
9
+ maxFileSize: number;
10
+ style: object | undefined;
11
+ extensions: string[] | undefined;
12
+ disabled: boolean | undefined;
13
+ inputFiles: EventEmitter<File[] | null | undefined>;
14
+ files: File[];
15
+ constructor(toast: ToastService);
16
+ openFileLoader(): void;
17
+ loadFile($event: Event): void;
18
+ clear(_file?: File): void;
19
+ private validateExtension;
20
+ private validateFileSize;
3
21
  static ɵfac: i0.ɵɵFactoryDeclaration<LibFileLoaderComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<LibFileLoaderComponent, "dd-lib-file-loader", never, {}, {}, never, never, true, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibFileLoaderComponent, "dd-lib-file-loader", never, { "multiple": { "alias": "multiple"; "required": false; }; "maxFiles": { "alias": "maxFiles"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "style": { "alias": "style"; "required": false; }; "extensions": { "alias": "extensions"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "inputFiles": "inputFiles"; }, never, never, true, never>;
5
23
  }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class LibLoaderComponent {
3
3
  color: string;
4
+ size: 'big' | 'giant' | 'standard';
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<LibLoaderComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<LibLoaderComponent, "dd-lib-loader", never, { "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibLoaderComponent, "dd-lib-loader", never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, never>;
6
7
  }
@@ -78,7 +78,6 @@ export declare class LibSearchInputComponent<T> extends LibCommonInputTextCompon
78
78
  keyDesc: string;
79
79
  styleInput: 'round' | 'standard';
80
80
  inputStyle: 'white' | 'gray';
81
- fetchMode: boolean;
82
81
  set searchData(data: T[] | null | undefined);
83
82
  debounceTime: number;
84
83
  delay: number;
@@ -96,5 +95,5 @@ export declare class LibSearchInputComponent<T> extends LibCommonInputTextCompon
96
95
  getTitle(item: any): string;
97
96
  getDesc(item: any): string;
98
97
  static ɵfac: i0.ɵɵFactoryDeclaration<LibSearchInputComponent<any>, never>;
99
- static ɵcmp: i0.ɵɵComponentDeclaration<LibSearchInputComponent<any>, "dd-lib-search-input", never, { "keyTitle": { "alias": "keyTitle"; "required": false; }; "keyDesc": { "alias": "keyDesc"; "required": false; }; "styleInput": { "alias": "styleInput"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "fetchMode": { "alias": "fetchMode"; "required": false; }; "searchData": { "alias": "searchData"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "idClose": { "alias": "idClose"; "required": false; }; "loaded$": { "alias": "loaded$"; "required": false; }; }, { "keyupEvent": "keyupEvent"; "selectedItem": "selectedItem"; }, never, never, true, never>;
98
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibSearchInputComponent<any>, "dd-lib-search-input", never, { "keyTitle": { "alias": "keyTitle"; "required": false; }; "keyDesc": { "alias": "keyDesc"; "required": false; }; "styleInput": { "alias": "styleInput"; "required": false; }; "inputStyle": { "alias": "inputStyle"; "required": false; }; "searchData": { "alias": "searchData"; "required": false; }; "debounceTime": { "alias": "debounceTime"; "required": false; }; "delay": { "alias": "delay"; "required": false; }; "idClose": { "alias": "idClose"; "required": false; }; "loaded$": { "alias": "loaded$"; "required": false; }; }, { "keyupEvent": "keyupEvent"; "selectedItem": "selectedItem"; }, never, never, true, never>;
100
99
  }
@@ -1,23 +1,24 @@
1
- import { ChangeDetectorRef, OnInit } from '@angular/core';
1
+ import { ChangeDetectorRef, OnInit, WritableSignal } from '@angular/core';
2
2
  import { ControlContainer, ControlValueAccessor } from '@angular/forms';
3
3
  import { LibCommonInputTextComponent } from '../common/lib-common-input-text';
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class LibSelectComponent<T> extends LibCommonInputTextComponent implements OnInit, ControlValueAccessor {
6
6
  private controlContainer;
7
7
  static idCounter: number;
8
+ set data(d: any | undefined);
8
9
  multi: boolean | undefined;
9
10
  selectId: string | undefined;
10
- data: any | undefined;
11
11
  keyTitle: string;
12
- keyDesc: string | undefined;
12
+ keyDesc: string;
13
13
  keyValue: string;
14
14
  placeholder: string;
15
15
  checkedItem: any;
16
+ _data: WritableSignal<any | undefined>;
16
17
  checkedItems: any[];
17
18
  inputValue: string | undefined;
18
19
  searchValue: string | undefined;
19
20
  isShownList: boolean | undefined;
20
- private stringArray;
21
+ stringArray: WritableSignal<boolean | undefined>;
21
22
  constructor(changeDetection: ChangeDetectorRef, controlContainer: ControlContainer);
22
23
  ngOnInit(): void;
23
24
  registerOnChange(fn: any): void;
@@ -32,5 +33,5 @@ export declare class LibSelectComponent<T> extends LibCommonInputTextComponent i
32
33
  private selectMultiItem;
33
34
  checkSelected(item: any): boolean;
34
35
  static ɵfac: i0.ɵɵFactoryDeclaration<LibSelectComponent<any>, [null, { optional: true; host: true; skipSelf: true; }]>;
35
- static ɵcmp: i0.ɵɵComponentDeclaration<LibSelectComponent<any>, "dd-lib-select", never, { "multi": { "alias": "multi"; "required": false; }; "selectId": { "alias": "selectId"; "required": false; }; "data": { "alias": "data"; "required": false; }; "keyTitle": { "alias": "keyTitle"; "required": false; }; "keyDesc": { "alias": "keyDesc"; "required": false; }; "keyValue": { "alias": "keyValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
36
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibSelectComponent<any>, "dd-lib-select", never, { "data": { "alias": "data"; "required": false; }; "multi": { "alias": "multi"; "required": false; }; "selectId": { "alias": "selectId"; "required": false; }; "keyTitle": { "alias": "keyTitle"; "required": false; }; "keyDesc": { "alias": "keyDesc"; "required": false; }; "keyValue": { "alias": "keyValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
36
37
  }
@@ -18,6 +18,7 @@ export declare class LibTabsFragmentComponent implements OnInit {
18
18
  tabs: ITab[] | undefined;
19
19
  tabsFragment: string[] | undefined;
20
20
  needInitEvent: boolean | undefined;
21
+ noFragment: boolean | undefined;
21
22
  setActiveTab: EventEmitter<number | null>;
22
23
  activeFragment: number | null | undefined;
23
24
  constructor(route: ActivatedRoute, router: Router, cdr: ChangeDetectorRef);
@@ -25,5 +26,5 @@ export declare class LibTabsFragmentComponent implements OnInit {
25
26
  checkActiveTab(tab?: ITab): void;
26
27
  private getFragment;
27
28
  static ɵfac: i0.ɵɵFactoryDeclaration<LibTabsFragmentComponent, never>;
28
- static ɵcmp: i0.ɵɵComponentDeclaration<LibTabsFragmentComponent, "dd-lib-tabs-fragment", never, { "rout": { "alias": "rout"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "tabsFragment": { "alias": "tabsFragment"; "required": false; }; "needInitEvent": { "alias": "needInitEvent"; "required": false; }; }, { "setActiveTab": "setActiveTab"; }, never, never, true, never>;
29
+ static ɵcmp: i0.ɵɵComponentDeclaration<LibTabsFragmentComponent, "dd-lib-tabs-fragment", never, { "rout": { "alias": "rout"; "required": false; }; "tabs": { "alias": "tabs"; "required": false; }; "tabsFragment": { "alias": "tabsFragment"; "required": false; }; "needInitEvent": { "alias": "needInitEvent"; "required": false; }; "noFragment": { "alias": "noFragment"; "required": false; }; }, { "setActiveTab": "setActiveTab"; }, never, never, true, never>;
29
30
  }
@@ -202,10 +202,18 @@ export declare const svgIconPlus: {
202
202
  name: 'plus';
203
203
  data: string;
204
204
  };
205
+ export declare const svgIconPreset: {
206
+ name: 'preset';
207
+ data: string;
208
+ };
205
209
  export declare const svgIconPrev: {
206
210
  name: 'prev';
207
211
  data: string;
208
212
  };
213
+ export declare const svgIconPrint: {
214
+ name: 'print';
215
+ data: string;
216
+ };
209
217
  export declare const svgIconPrinter: {
210
218
  name: 'printer';
211
219
  data: string;
@@ -306,7 +314,7 @@ export declare const svgIconWarningT: {
306
314
  name: 'warning_t';
307
315
  data: string;
308
316
  };
309
- export type svgIcon = 'actogone_accept' | 'all' | 'appgalery' | 'appstore' | 'arrow_down_red' | 'arrow_up_green' | 'back_arrow' | 'burger' | 'calendar' | 'check_green' | 'check_white' | 'circle_no' | 'clear' | 'close' | 'danger_t' | 'dd_m' | 'dd' | 'dobrodel' | 'down_chevron' | 'download' | 'eds_m' | 'eds' | 'entry' | 'error_hint' | 'esia' | 'eye_off' | 'eye' | 'filter' | 'googleapp' | 'grid' | 'health_m' | 'health' | 'info_t' | 'info_circle' | 'left_chevron' | 'list_search' | 'logout' | 'mail_exclamation' | 'max_filter' | 'moon' | 'my_m' | 'my' | 'news' | 'next' | 'paperclip' | 'pen_edit' | 'pgu_mo_m' | 'pgu_mo' | 'plug_d' | 'plug' | 'plus' | 'prev' | 'printer' | 'question_white_g' | 'question' | 'red_close' | 'right_chevron' | 'rustore' | 'search' | 'send' | 'set_avatar' | 'shared_logo' | 'small_round_loader' | 'sort' | 'star' | 'success_t' | 'sun' | 'tg' | 'toggle_arrow_left' | 'toggle_arrow_right' | 'trash' | 'trophy' | 'user_empty_d' | 'user_empty' | 'user' | 'vk' | 'warning_t';
317
+ export type svgIcon = 'actogone_accept' | 'all' | 'appgalery' | 'appstore' | 'arrow_down_red' | 'arrow_up_green' | 'back_arrow' | 'burger' | 'calendar' | 'check_green' | 'check_white' | 'circle_no' | 'clear' | 'close' | 'danger_t' | 'dd_m' | 'dd' | 'dobrodel' | 'down_chevron' | 'download' | 'eds_m' | 'eds' | 'entry' | 'error_hint' | 'esia' | 'eye_off' | 'eye' | 'filter' | 'googleapp' | 'grid' | 'health_m' | 'health' | 'info_t' | 'info_circle' | 'left_chevron' | 'list_search' | 'logout' | 'mail_exclamation' | 'max_filter' | 'moon' | 'my_m' | 'my' | 'news' | 'next' | 'paperclip' | 'pen_edit' | 'pgu_mo_m' | 'pgu_mo' | 'plug_d' | 'plug' | 'plus' | 'preset' | 'prev' | 'print' | 'printer' | 'question_white_g' | 'question' | 'red_close' | 'right_chevron' | 'rustore' | 'search' | 'send' | 'set_avatar' | 'shared_logo' | 'small_round_loader' | 'sort' | 'star' | 'success_t' | 'sun' | 'tg' | 'toggle_arrow_left' | 'toggle_arrow_right' | 'trash' | 'trophy' | 'user_empty_d' | 'user_empty' | 'user' | 'vk' | 'warning_t';
310
318
  export interface SvgIcon {
311
319
  name: svgIcon;
312
320
  data: string;
@@ -465,9 +473,15 @@ export declare const completeIconSet: ({
465
473
  } | {
466
474
  name: 'plus';
467
475
  data: string;
476
+ } | {
477
+ name: 'preset';
478
+ data: string;
468
479
  } | {
469
480
  name: 'prev';
470
481
  data: string;
482
+ } | {
483
+ name: 'print';
484
+ data: string;
471
485
  } | {
472
486
  name: 'printer';
473
487
  data: string;
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morozeckiy/dd-lib",
3
- "version": "0.2.30",
3
+ "version": "0.2.70",
4
4
  "repository": "https://gitlab.com/Morozeckiy/dd-lib",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -1,48 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, HostListener, Inject, InjectionToken, Output, } from '@angular/core';
2
- import { NgStyle } from '@angular/common';
3
- import { LibSvgIconComponent } from "../../../lib-svg-icon/lib-svg-icon.component";
4
- import * as i0 from "@angular/core";
5
- import * as i1 from "../toast.service";
6
- export const TOAST_DATA = new InjectionToken('ToastData');
7
- export class ToastBaseComponent {
8
- get id() {
9
- return this.data.id;
10
- }
11
- constructor(toastService, ddToastData) {
12
- this.toastService = toastService;
13
- this.ddToastData = ddToastData;
14
- this.callEvent = new EventEmitter();
15
- this.maxWidth = '350px';
16
- this.data = { ...this.ddToastData };
17
- if (this.data.maxWidth) {
18
- this.maxWidth = this.data.maxWidth;
19
- }
20
- this.top = window.scrollY + 'px';
21
- }
22
- scroll() {
23
- this.top = window.scrollY + 'px';
24
- }
25
- destroy() {
26
- this.toastService.destroyToast(this.id);
27
- }
28
- onClickDesc($event) {
29
- if ($event.target.tagName === 'A') {
30
- this.callEvent.emit();
31
- }
32
- }
33
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ToastBaseComponent, deps: [{ token: i1.ToastService }, { token: TOAST_DATA }], target: i0.ɵɵFactoryTarget.Component }); }
34
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.2", type: ToastBaseComponent, isStandalone: true, selector: "dd-toast-base", outputs: { callEvent: "callEvent" }, host: { listeners: { "window:scroll": "scroll()" } }, ngImport: i0, template: "<div (click)=\"destroy()\" class=\"toast-wrapper {{ data.type }}\">\r\n <dd-lib-svg-icon [icon]=\"data.type\"></dd-lib-svg-icon>\r\n <div>\r\n <div>{{ data.title }}</div>\r\n <div>{{ data.description }}</div>\r\n </div>\r\n</div>\r\n", styles: [":host{display:block}.toast-wrapper{display:flex;margin:40px 40px 0 0;align-items:center;padding:20px;background:#eefaf3;border-radius:12px;opacity:1;max-width:350px;animation:fade 1s linear;width:100%}.toast-wrapper.success{background-color:var(--light-green-color)}.toast-wrapper.info{background-color:var(--light-blue-color)}.toast-wrapper.warning{background-color:var(--yellow-card)}.toast-wrapper.danger{background-color:var(--red-light-color)}@keyframes fade{0%{opacity:0}50%{opacity:.5}to{opacity:1}}\n"], dependencies: [{ kind: "component", type: LibSvgIconComponent, selector: "dd-lib-svg-icon", inputs: ["width", "height", "color", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
35
- }
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ToastBaseComponent, decorators: [{
37
- type: Component,
38
- args: [{ selector: 'dd-toast-base', standalone: true, imports: [NgStyle, LibSvgIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div (click)=\"destroy()\" class=\"toast-wrapper {{ data.type }}\">\r\n <dd-lib-svg-icon [icon]=\"data.type\"></dd-lib-svg-icon>\r\n <div>\r\n <div>{{ data.title }}</div>\r\n <div>{{ data.description }}</div>\r\n </div>\r\n</div>\r\n", styles: [":host{display:block}.toast-wrapper{display:flex;margin:40px 40px 0 0;align-items:center;padding:20px;background:#eefaf3;border-radius:12px;opacity:1;max-width:350px;animation:fade 1s linear;width:100%}.toast-wrapper.success{background-color:var(--light-green-color)}.toast-wrapper.info{background-color:var(--light-blue-color)}.toast-wrapper.warning{background-color:var(--yellow-card)}.toast-wrapper.danger{background-color:var(--red-light-color)}@keyframes fade{0%{opacity:0}50%{opacity:.5}to{opacity:1}}\n"] }]
39
- }], ctorParameters: () => [{ type: i1.ToastService }, { type: undefined, decorators: [{
40
- type: Inject,
41
- args: [TOAST_DATA]
42
- }] }], propDecorators: { callEvent: [{
43
- type: Output
44
- }], scroll: [{
45
- type: HostListener,
46
- args: ['window:scroll']
47
- }] } });
48
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidG9hc3QtYmFzZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZC1saWIvc3JjL2xpYi9jb3JlL3RvYXN0L3RvYXN0LWJhc2UvdG9hc3QtYmFzZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kZC1saWIvc3JjL2xpYi9jb3JlL3RvYXN0L3RvYXN0LWJhc2UvdG9hc3QtYmFzZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0w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S50eXBlXCI+PC9kZC1saWItc3ZnLWljb24+XHJcbiAgPGRpdj5cclxuICAgIDxkaXY+e3sgZGF0YS50aXRsZSB9fTwvZGl2PlxyXG4gICAgPGRpdj57eyBkYXRhLmRlc2NyaXB0aW9uIH19PC9kaXY+XHJcbiAgPC9kaXY+XHJcbjwvZGl2PlxyXG4iXX0=
@@ -1,29 +0,0 @@
1
- import { Component, ViewChild, ViewContainerRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "../toast.service";
4
- export class ToastPlaceholderComponent {
5
- constructor(toastService, injector) {
6
- this.toastService = toastService;
7
- this.injector = injector;
8
- }
9
- ngOnInit() {
10
- this.toastService.registerViewContainerRef(this.viewContainerRef);
11
- this.toastService.registerInjector(this.injector);
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ToastPlaceholderComponent, deps: [{ token: i1.ToastService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
14
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.2", type: ToastPlaceholderComponent, isStandalone: true, selector: "dd-toast-placeholder", viewQueries: [{ propertyName: "viewContainerRef", first: true, predicate: ["toastPlaceholder"], descendants: true, read: ViewContainerRef, static: true }], ngImport: i0, template: ` <div #toastPlaceholder></div>
15
- <div id="toast-overlay"></div>`, isInline: true }); }
16
- }
17
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.2", ngImport: i0, type: ToastPlaceholderComponent, decorators: [{
18
- type: Component,
19
- args: [{
20
- selector: 'dd-toast-placeholder',
21
- standalone: true,
22
- template: ` <div #toastPlaceholder></div>
23
- <div id="toast-overlay"></div>`,
24
- }]
25
- }], ctorParameters: () => [{ type: i1.ToastService }, { type: i0.Injector }], propDecorators: { viewContainerRef: [{
26
- type: ViewChild,
27
- args: ['toastPlaceholder', { read: ViewContainerRef, static: true }]
28
- }] } });
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ter, InjectionToken } from '@angular/core';
2
- import { ToastService, ToastType } from '../toast.service';
3
- import * as i0 from "@angular/core";
4
- export interface ToastData {
5
- title?: string;
6
- description?: string;
7
- type: ToastType;
8
- id: number;
9
- maxWidth?: string;
10
- }
11
- export declare const TOAST_DATA: InjectionToken<ToastData>;
12
- export declare class ToastBaseComponent {
13
- private toastService;
14
- ddToastData: ToastData;
15
- callEvent: EventEmitter<any>;
16
- get id(): number;
17
- title: string | undefined;
18
- protected data: ToastData;
19
- maxWidth: string;
20
- top: string;
21
- constructor(toastService: ToastService, ddToastData: ToastData);
22
- scroll(): void;
23
- destroy(): void;
24
- onClickDesc($event: MouseEvent): void;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastBaseComponent, never>;
26
- static ɵcmp: i0.ɵɵComponentDeclaration<ToastBaseComponent, "dd-toast-base", never, {}, { "callEvent": "callEvent"; }, never, never, true, never>;
27
- }
@@ -1,12 +0,0 @@
1
- import { Injector } from '@angular/core';
2
- import { ToastService } from '../toast.service';
3
- import * as i0 from "@angular/core";
4
- export declare class ToastPlaceholderComponent {
5
- private toastService;
6
- private injector;
7
- private viewContainerRef;
8
- constructor(toastService: ToastService, injector: Injector);
9
- ngOnInit(): void;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastPlaceholderComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<ToastPlaceholderComponent, "dd-toast-placeholder", never, {}, {}, never, never, true, never>;
12
- }
Binary file
Binary file
Binary file