@mediusinc/mng-commons 0.14.2 → 0.15.1

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 (49) hide show
  1. package/esm2020/lib/components/action/action.component.mjs +7 -7
  2. package/esm2020/lib/components/action/editor/action-editor.component.mjs +5 -5
  3. package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +21 -3
  4. package/esm2020/lib/components/form/formly/fields/formly-field-autocomplete/formly-field-autocomplete.component.mjs +3 -3
  5. package/esm2020/lib/components/form/formly/fields/formly-field-table-dialog-form/formly-field-table-dialog-form.component.mjs +14 -13
  6. package/esm2020/lib/components/tableview/route/tableview-route.abstract.component.mjs +5 -4
  7. package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +1 -1
  8. package/esm2020/lib/descriptors/action/action-confirmation.descriptor.mjs +15 -44
  9. package/esm2020/lib/descriptors/action-button.descriptor.mjs +60 -0
  10. package/esm2020/lib/descriptors/action.descriptor.mjs +27 -22
  11. package/esm2020/lib/descriptors/column.descriptor.mjs +1 -1
  12. package/esm2020/lib/descriptors/field.descriptor.mjs +12 -2
  13. package/esm2020/lib/descriptors/index.mjs +2 -2
  14. package/esm2020/lib/descriptors/types/action.type.mjs +1 -28
  15. package/esm2020/lib/mng-commons.module.mjs +4 -11
  16. package/esm2020/lib/services/action-executor.service.mjs +23 -20
  17. package/esm2020/lib/styles/button-style.builder.mjs +30 -28
  18. package/esm2020/lib/styles/models/index.mjs +3 -0
  19. package/esm2020/lib/styles/models/style-level.enum.mjs +12 -0
  20. package/esm2020/lib/styles/models/style-size.enum.mjs +9 -0
  21. package/esm2020/lib/styles/styles.util.mjs +9 -8
  22. package/esm2020/public-api.mjs +2 -2
  23. package/fesm2015/mediusinc-mng-commons.mjs +234 -334
  24. package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
  25. package/fesm2020/mediusinc-mng-commons.mjs +229 -327
  26. package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
  27. package/lib/components/form/autocomplete/autocomplete.component.d.ts +7 -2
  28. package/lib/descriptors/action/action-confirmation.descriptor.d.ts +7 -19
  29. package/lib/descriptors/action-button.descriptor.d.ts +22 -0
  30. package/lib/descriptors/action.descriptor.d.ts +12 -10
  31. package/lib/descriptors/field.descriptor.d.ts +5 -1
  32. package/lib/descriptors/index.d.ts +1 -1
  33. package/lib/descriptors/types/action.type.d.ts +0 -24
  34. package/lib/mng-commons.module.d.ts +41 -42
  35. package/lib/styles/button-style.builder.d.ts +8 -8
  36. package/lib/styles/models/index.d.ts +2 -0
  37. package/lib/styles/models/style-level.enum.d.ts +10 -0
  38. package/lib/styles/models/style-size.enum.d.ts +7 -0
  39. package/package.json +1 -1
  40. package/public-api.d.ts +1 -1
  41. package/scss/mng-overrides/_theme_autocomplete.scss +16 -0
  42. package/scss/mng-overrides/_theme_styles.scss +1 -0
  43. package/version-info.json +5 -5
  44. package/esm2020/lib/components/button/button.component.mjs +0 -46
  45. package/esm2020/lib/components/button/index.mjs +0 -2
  46. package/esm2020/lib/descriptors/button.descriptor.mjs +0 -111
  47. package/lib/components/button/button.component.d.ts +0 -16
  48. package/lib/components/button/index.d.ts +0 -1
  49. package/lib/descriptors/button.descriptor.d.ts +0 -40
@@ -2,7 +2,7 @@ import { EventEmitter, ExistingProvider, Injector, OnDestroy, OnInit } from '@an
2
2
  import { ControlValueAccessor, FormControl } from '@angular/forms';
3
3
  import { TranslateService } from '@ngx-translate/core';
4
4
  import { AutoComplete } from 'primeng/autocomplete';
5
- import { Observable } from 'rxjs';
5
+ import { Observable, Subscription } from 'rxjs';
6
6
  import { ILookupDataProvider } from '../../../data-providers';
7
7
  import { MngFormlyFieldWrapperComponent } from '../formly/wrappers';
8
8
  import * as i0 from "@angular/core";
@@ -22,6 +22,9 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
22
22
  placeholder?: string;
23
23
  className: string | null;
24
24
  dropdownClassName: string | null;
25
+ showClear: boolean;
26
+ autoClear: boolean;
27
+ selectFirst: boolean;
25
28
  valueChangeEventEmitter: EventEmitter<any>;
26
29
  primeAutocomplete?: AutoComplete;
27
30
  private isInited;
@@ -34,6 +37,7 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
34
37
  itemsValueProperty?: string;
35
38
  autocompleteFormControl: FormControl;
36
39
  suggestions$: Observable<Array<any>>;
40
+ suggestionSubscription?: Subscription;
37
41
  constructor(injector: Injector, translate: TranslateService, formlyWrapper: MngFormlyFieldWrapperComponent);
38
42
  ngOnInit(): void;
39
43
  ngOnDestroy(): void;
@@ -41,6 +45,7 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
41
45
  onSelect(value: any): void;
42
46
  onFocus(event: Event): void;
43
47
  onBlur(event: any): void;
48
+ onClear(event: Event): void;
44
49
  registerOnChange(fn: any): void;
45
50
  registerOnTouched(fn: any): void;
46
51
  setDisabledState(isDisabled: boolean): void;
@@ -52,5 +57,5 @@ export declare class MngAutocompleteComponent implements OnInit, OnDestroy, Cont
52
57
  private i18nPopulateItems;
53
58
  private setSuggestionsFromItems;
54
59
  static ɵfac: i0.ɵɵFactoryDeclaration<MngAutocompleteComponent, [null, null, { optional: true; }]>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "inlineSearch": "inlineSearch"; "openOnFocus": "openOnFocus"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, false>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<MngAutocompleteComponent, "mng-autocomplete", never, { "dataProvider": "dataProvider"; "dataKeyProperty": "dataKeyProperty"; "itemsValuePropertyInit": "itemsValueProperty"; "itemsLabelPropertyInit": "itemsLabelProperty"; "itemsLabelTranslate": "itemsLabelTranslate"; "inlineSearch": "inlineSearch"; "openOnFocus": "openOnFocus"; "multiselect": "multiselect"; "placeholder": "placeholder"; "className": "className"; "dropdownClassName": "dropdownClassName"; "showClear": "showClear"; "autoClear": "autoClear"; "selectFirst": "selectFirst"; }, { "valueChangeEventEmitter": "valueChange"; }, never, never, false>;
56
61
  }
@@ -1,16 +1,12 @@
1
1
  import { Confirmation } from 'primeng/api';
2
2
  import { ActionContext } from '../../components/action/models';
3
- import { ButtonStyleBuilder } from '../../styles';
3
+ import { ActionButtonDescriptor } from '../action-button.descriptor';
4
4
  export declare class ActionConfirmationDialogDescriptor<T> {
5
5
  private _icon?;
6
6
  private _title?;
7
7
  private _message?;
8
- private _acceptButtonStyle;
9
- private _acceptLabel?;
10
- private _acceptIcon;
11
- private _rejectButtonStyle;
12
- private _rejectLabel?;
13
- private _rejectIcon;
8
+ private _acceptButton;
9
+ private _rejectButton?;
14
10
  private _closeOnEscape;
15
11
  private _closable;
16
12
  private _runConfirmationConfigMapFn?;
@@ -18,12 +14,8 @@ export declare class ActionConfirmationDialogDescriptor<T> {
18
14
  withIcon(icon?: string): this;
19
15
  withTitle(title?: string | null): this;
20
16
  withMessage(message?: string | null): this;
21
- withAcceptLabel(acceptLabel?: string | null): this;
22
- withAcceptIcon(acceptIcon: string | null): this;
23
- withAcceptButtonStyle(buttonStyle: ButtonStyleBuilder): this;
24
- withRejectLabel(rejectLabel?: string | null): this;
25
- withRejectIcon(rejectIcon: string | null): this;
26
- withRejectButtonStyle(buttonStyle: ButtonStyleBuilder): this;
17
+ withAcceptButton(actionButtonDescriptor: ActionButtonDescriptor): this;
18
+ withRejectButton(actionButtonDescriptor?: ActionButtonDescriptor): this;
27
19
  /**
28
20
  * set if dialog can be closed on escaped pressed
29
21
  * if true, then closable is also set to true
@@ -35,14 +27,10 @@ export declare class ActionConfirmationDialogDescriptor<T> {
35
27
  get icon(): string | undefined;
36
28
  get title(): string | null | undefined;
37
29
  get message(): string | null | undefined;
38
- get acceptLabel(): string | null | undefined;
39
- get acceptIcon(): string | null;
40
- get acceptButtonStyle(): ButtonStyleBuilder;
41
- get rejectLabel(): string | null | undefined;
42
- get rejectIcon(): string | null;
43
- get rejectButtonStyle(): ButtonStyleBuilder;
44
30
  get closeOnEscape(): boolean;
45
31
  get closable(): boolean;
46
32
  get runConfirmationConfigMapFn(): ConfigurationConfigMapFn<T> | undefined;
33
+ get acceptButton(): ActionButtonDescriptor;
34
+ get rejectButton(): ActionButtonDescriptor | undefined;
47
35
  }
48
36
  export declare type ConfigurationConfigMapFn<T> = (ctx: ActionContext<T, any>, confirmConfig: Confirmation) => Confirmation;
@@ -0,0 +1,22 @@
1
+ import { ButtonStyleBuilder } from '../styles';
2
+ export declare class ActionButtonDescriptor {
3
+ private _label?;
4
+ private _icon?;
5
+ private _iconPosition;
6
+ private _styleClass;
7
+ private _badge?;
8
+ private _tooltip?;
9
+ withLabel(label?: string | null): this;
10
+ withIcon(icon: string | null): this;
11
+ withIconPosition(iconPosition: 'left' | 'right'): this;
12
+ withStyleClass(style: ButtonStyleBuilder): this;
13
+ withBadge(badge: string): this;
14
+ withTooltip(tooltip: string): this;
15
+ get label(): string | null | undefined;
16
+ get icon(): string | null | undefined;
17
+ get iconPosition(): "left" | "right";
18
+ get styleClass(): ButtonStyleBuilder;
19
+ get badge(): string | undefined;
20
+ get tooltip(): string | undefined;
21
+ copy(): ActionButtonDescriptor;
22
+ }
@@ -4,10 +4,11 @@ import { Observable } from 'rxjs';
4
4
  import { ActionContext, ActionContextValidation } from '../components/action/models';
5
5
  import { IDataProvider, IEditorDataProvider } from '../data-providers';
6
6
  import { APermissions } from '../security/model';
7
+ import { StyleLevelEnum, StyleSizeEnum } from '../styles/models';
7
8
  import { ClassType, IdType } from '../types';
8
- import { ButtonDescriptor, EditorDescriptor, ModelDescriptor } from './';
9
+ import { ActionButtonDescriptor, EditorDescriptor, ModelDescriptor } from './';
9
10
  import { ActionConfirmationDialogDescriptor } from './action/action-confirmation.descriptor';
10
- import { ActionActivationTriggerEnum, ActionEditorDialogSizeEnum, ActionEditorSubmitTypeEnum, ActionLevelEnum, ActionPositionEnum, ActionTypeEnum } from './types';
11
+ import { ActionActivationTriggerEnum, ActionEditorSubmitTypeEnum, ActionPositionEnum, ActionTypeEnum } from './types';
11
12
  export declare class ActionDescriptor<T> {
12
13
  protected readonly _model: ModelDescriptor<T> | null;
13
14
  protected readonly _actionName: string;
@@ -19,7 +20,7 @@ export declare class ActionDescriptor<T> {
19
20
  protected _type: ActionTypeEnum;
20
21
  protected _activationTrigger: ActionActivationTriggerEnum;
21
22
  protected _position: ActionPositionEnum;
22
- protected _level: ActionLevelEnum;
23
+ protected _level: StyleLevelEnum;
23
24
  protected _tableviewActionCategory?: string;
24
25
  protected _routeUrl: string | null;
25
26
  protected _dataProvider?: IDataProvider<T, any>;
@@ -37,7 +38,7 @@ export declare class ActionDescriptor<T> {
37
38
  protected _onRunErrorAction?: ActionDescriptor<unknown>;
38
39
  protected _permissions?: APermissions;
39
40
  protected _permissionsRouteType?: string;
40
- protected _buttonDescriptor: ButtonDescriptor;
41
+ protected _button: ActionButtonDescriptor;
41
42
  protected _hasItemsSelection: boolean;
42
43
  constructor(model: ModelDescriptor<T> | null, actionName: string, parentType?: ClassType<unknown>, parentProperty?: string);
43
44
  get model(): ModelDescriptor<T> | null;
@@ -47,7 +48,7 @@ export declare class ActionDescriptor<T> {
47
48
  get type(): ActionTypeEnum;
48
49
  get activationTrigger(): ActionActivationTriggerEnum;
49
50
  get position(): ActionPositionEnum;
50
- get level(): ActionLevelEnum;
51
+ get level(): StyleLevelEnum;
51
52
  get routeUrl(): string | null;
52
53
  get dataProvider(): IDataProvider<T, any> | undefined;
53
54
  get hasRunFunction(): boolean;
@@ -70,7 +71,7 @@ export declare class ActionDescriptor<T> {
70
71
  get permissions(): APermissions | undefined;
71
72
  get permissionsRouteType(): string | undefined;
72
73
  get hasItemsSelection(): boolean;
73
- get buttonDescriptor(): ButtonDescriptor;
74
+ get button(): ActionButtonDescriptor;
74
75
  withDataProvider(dataProvider: IDataProvider<T, any>): this;
75
76
  withServiceType<S>(serviceType: Type<S>): this;
76
77
  withRunFunction<S>(fn: (ctx: ActionContext<T, S>) => Observable<T | undefined | null>): this;
@@ -93,7 +94,8 @@ export declare class ActionDescriptor<T> {
93
94
  withOnRunErrorAction<RT>(action: ActionDescriptor<RT>): this;
94
95
  withPermissions(permissions: APermissions): this;
95
96
  withPermissionsRouteType(permissionsRouteType: string): this;
96
- withButtonDescriptor(buttonDescriptor: ButtonDescriptor): this;
97
+ withButtonDescriptor(button: ActionButtonDescriptor): this;
98
+ withButton(label?: string | null, icon?: string | null, styleLevel?: StyleLevelEnum, styleText?: boolean): this;
97
99
  withItemsSelection(hasSelection?: boolean): this;
98
100
  }
99
101
  export declare class ActionSimpleDescriptor<T> extends ActionDescriptor<T> {
@@ -106,7 +108,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
106
108
  protected _hasFetchNotificationSuccess: boolean;
107
109
  protected _fetchNotificationSuccessTitle?: string;
108
110
  protected _fetchNotificationSuccessMessage?: string;
109
- protected _dialogSize: ActionEditorDialogSizeEnum;
111
+ protected _dialogSize: StyleSizeEnum;
110
112
  protected _dialogClassName?: string;
111
113
  protected _dataProvider?: IEditorDataProvider<T, any>;
112
114
  protected _fetchFunction?: (ctx: ActionContext<T, any>) => Observable<T>;
@@ -115,7 +117,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
115
117
  constructor(editorDescriptor: EditorDescriptor<T>, actionName: string, parentType?: ClassType<unknown>, parentProperty?: string);
116
118
  get editorTitle(): string | null | undefined;
117
119
  get editorDescriptor(): EditorDescriptor<T>;
118
- get dialogSize(): ActionEditorDialogSizeEnum;
120
+ get dialogSize(): StyleSizeEnum;
119
121
  get dialogClassName(): string | undefined;
120
122
  get hasFetchNotificationSuccess(): boolean;
121
123
  get fetchNotificationSuccessTitle(): string | undefined;
@@ -129,7 +131,7 @@ export declare class ActionEditorDescriptor<T> extends ActionDescriptor<T> {
129
131
  withEditorTitle(title: string | null): this;
130
132
  withDataProvider(dataProvider: IEditorDataProvider<T, any>): this;
131
133
  withServiceType<S>(serviceType: Type<S>): this;
132
- withDialogSize(size?: ActionEditorDialogSizeEnum): this;
134
+ withDialogSize(size?: StyleSizeEnum): this;
133
135
  withDialogClassName(className: string): this;
134
136
  withRunFunction<S>(fn: (ctx: ActionContext<T, S>) => Observable<T>): this;
135
137
  withFetchFunction<S>(fn: (ctx: ActionContext<T, S>) => Observable<T>): this;
@@ -185,6 +185,8 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
185
185
  protected _dropdownClassName: string;
186
186
  protected _autocompleteOpenOnFocus: boolean;
187
187
  protected _autocompleteInlineSearch: boolean;
188
+ protected _autocompleteAutoClear: boolean;
189
+ protected _autocompleteSelectFirst: boolean;
188
190
  protected _dialogTableDescriptor?: TableDescriptor<T>;
189
191
  protected _dialogTableDataProvider?: ITableDataProvider<T, any>;
190
192
  constructor(editor: EditorDescriptor<ET>, property: string, modelType: ClassType<T> | null);
@@ -197,6 +199,8 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
197
199
  get dataProvider(): ILookupDataProvider<T, any> | undefined;
198
200
  get autocompleteOpenOnFocus(): boolean;
199
201
  get autocompleteInlineSearch(): boolean;
202
+ get autocompleteAutoClear(): boolean;
203
+ get autocompleteSelectFirst(): boolean;
200
204
  get dropdownClassName(): string;
201
205
  get modelType(): ClassType<T> | null;
202
206
  get dialogTableDescriptor(): TableDescriptor<T> | undefined;
@@ -208,7 +212,7 @@ export declare class FieldLookupDescriptor<T, ET> extends AFieldDescriptor<T, ET
208
212
  withLookup<S>(lookup: (queryParam?: MediusQueryParam, service?: S, search?: string) => Observable<Array<T>>, serviceType?: Type<S>): this;
209
213
  withLookupDataProvider(dataProvider: ILookupDataProvider<T, any>): this;
210
214
  withConfig(config: FieldLookupConfig): this;
211
- asAutocomplete(openOnFocus?: boolean, inlineSearch?: boolean): this;
215
+ asAutocomplete(openOnFocus?: boolean, inlineSearch?: boolean, selectFirst?: boolean, autoClear?: boolean): this;
212
216
  asDialog(lookupTableDescriptor: TableDescriptor<T>, tableDataProvider?: ITableDataProvider<T, any>): this;
213
217
  copy(): FieldLookupDescriptor<T, ET>;
214
218
  }
@@ -7,5 +7,5 @@ export * from './filter.descriptor';
7
7
  export * from './model.descriptor';
8
8
  export * from './table.descriptor';
9
9
  export * from './tableview.descriptor';
10
- export * from './button.descriptor';
10
+ export * from './action-button.descriptor';
11
11
  export * from './action/action-confirmation.descriptor';
@@ -15,30 +15,6 @@ export declare enum ActionTypeEnum {
15
15
  Direct = 0,
16
16
  Editor = 1
17
17
  }
18
- export declare enum ActionLevelEnum {
19
- Default = 0,
20
- Primary = 1,
21
- Secondary = 2,
22
- Info = 3,
23
- Help = 4,
24
- Success = 5,
25
- Warning = 6,
26
- Danger = 7
27
- }
28
- export declare enum ActionSizeEnum {
29
- ExtraSmall = 0,
30
- Small = 1,
31
- Normal = 2,
32
- Large = 3,
33
- ExtraLarge = 4
34
- }
35
- export declare enum ActionEditorDialogSizeEnum {
36
- ExtraSmall = 0,
37
- Small = 1,
38
- Normal = 2,
39
- Large = 3,
40
- ExtraLarge = 4
41
- }
42
18
  export declare enum ActionEditorSubmitTypeEnum {
43
19
  Submit = 0,
44
20
  Cancel = 1
@@ -42,51 +42,50 @@ import * as i37 from "./components/form/editor/form-editor.component";
42
42
  import * as i38 from "./components/action/action.component";
43
43
  import * as i39 from "./components/action/editor/action-editor.component";
44
44
  import * as i40 from "./components/action/route/action-route.component";
45
- import * as i41 from "./components/button/button.component";
46
- import * as i42 from "@angular/common";
47
- import * as i43 from "@angular/router";
48
- import * as i44 from "@angular/common/http";
49
- import * as i45 from "@angular/forms";
50
- import * as i46 from "@ngx-translate/core";
51
- import * as i47 from "@ngx-formly/core";
52
- import * as i48 from "primeng/autocomplete";
53
- import * as i49 from "primeng/breadcrumb";
54
- import * as i50 from "primeng/button";
55
- import * as i51 from "primeng/calendar";
56
- import * as i52 from "primeng/card";
57
- import * as i53 from "primeng/checkbox";
58
- import * as i54 from "primeng/chip";
59
- import * as i55 from "primeng/confirmdialog";
60
- import * as i56 from "primeng/confirmpopup";
61
- import * as i57 from "primeng/dialog";
62
- import * as i58 from "primeng/dynamicdialog";
63
- import * as i59 from "primeng/dropdown";
64
- import * as i60 from "primeng/fileupload";
65
- import * as i61 from "primeng/inputnumber";
66
- import * as i62 from "primeng/inputmask";
67
- import * as i63 from "primeng/inputswitch";
68
- import * as i64 from "primeng/inputtext";
69
- import * as i65 from "primeng/inputtextarea";
70
- import * as i66 from "primeng/paginator";
71
- import * as i67 from "primeng/radiobutton";
72
- import * as i68 from "primeng/ripple";
73
- import * as i69 from "primeng/selectbutton";
74
- import * as i70 from "primeng/table";
75
- import * as i71 from "primeng/tag";
76
- import * as i72 from "primeng/toast";
77
- import * as i73 from "primeng/togglebutton";
78
- import * as i74 from "primeng/toolbar";
79
- import * as i75 from "primeng/tooltip";
80
- import * as i76 from "primeng/messages";
81
- import * as i77 from "primeng/progressspinner";
82
- import * as i78 from "primeng/tabview";
83
- import * as i79 from "primeng/fieldset";
84
- import * as i80 from "primeng/multiselect";
85
- import * as i81 from "primeng/skeleton";
45
+ import * as i41 from "@angular/common";
46
+ import * as i42 from "@angular/router";
47
+ import * as i43 from "@angular/common/http";
48
+ import * as i44 from "@angular/forms";
49
+ import * as i45 from "@ngx-translate/core";
50
+ import * as i46 from "@ngx-formly/core";
51
+ import * as i47 from "primeng/autocomplete";
52
+ import * as i48 from "primeng/breadcrumb";
53
+ import * as i49 from "primeng/button";
54
+ import * as i50 from "primeng/calendar";
55
+ import * as i51 from "primeng/card";
56
+ import * as i52 from "primeng/checkbox";
57
+ import * as i53 from "primeng/chip";
58
+ import * as i54 from "primeng/confirmdialog";
59
+ import * as i55 from "primeng/confirmpopup";
60
+ import * as i56 from "primeng/dialog";
61
+ import * as i57 from "primeng/dynamicdialog";
62
+ import * as i58 from "primeng/dropdown";
63
+ import * as i59 from "primeng/fileupload";
64
+ import * as i60 from "primeng/inputnumber";
65
+ import * as i61 from "primeng/inputmask";
66
+ import * as i62 from "primeng/inputswitch";
67
+ import * as i63 from "primeng/inputtext";
68
+ import * as i64 from "primeng/inputtextarea";
69
+ import * as i65 from "primeng/paginator";
70
+ import * as i66 from "primeng/radiobutton";
71
+ import * as i67 from "primeng/ripple";
72
+ import * as i68 from "primeng/selectbutton";
73
+ import * as i69 from "primeng/table";
74
+ import * as i70 from "primeng/tag";
75
+ import * as i71 from "primeng/toast";
76
+ import * as i72 from "primeng/togglebutton";
77
+ import * as i73 from "primeng/toolbar";
78
+ import * as i74 from "primeng/tooltip";
79
+ import * as i75 from "primeng/messages";
80
+ import * as i76 from "primeng/progressspinner";
81
+ import * as i77 from "primeng/tabview";
82
+ import * as i78 from "primeng/fieldset";
83
+ import * as i79 from "primeng/multiselect";
84
+ import * as i80 from "primeng/skeleton";
86
85
  export declare const primeNgModules: (typeof InputTextModule)[];
87
86
  export declare class MngCommonsModule {
88
87
  static forRoot(config: MngModuleConfig): ModuleWithProviders<MngCommonsModule>;
89
88
  static ɵfac: i0.ɵɵFactoryDeclaration<MngCommonsModule, never>;
90
- static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngDateRangeComponent, typeof i21.MngFormlyFieldWrapperComponent, typeof i22.MngFormlyTableWrapperComponent, typeof i23.MngFormlyFieldInputComponent, typeof i24.MngFormlyFieldLabelComponent, typeof i25.MngFormlyFieldDropdownComponent, typeof i26.MngFormlyFieldAutocompleteComponent, typeof i27.MngFormlyFieldLookupDialogComponent, typeof i28.MngFormlyFieldTableDialogMultiselectComponent, typeof i29.MngFormlyFieldTableDialogFormComponent, typeof i30.MngFormlyFieldTabsComponent, typeof i31.MngFormlyFieldFieldsetComponent, typeof i32.MngTableComponent, typeof i33.MngTableviewComponent, typeof i34.MngTableColumnValueComponent, typeof i35.MngTableColumnFilterComponent, typeof i36.MngTableviewRouteComponent, typeof i37.MngFormEditorComponent, typeof i38.MngActionComponent, typeof i39.MngActionEditorComponent, typeof i40.MngActionRouteComponent, typeof i41.MngButtonComponent], [typeof i42.CommonModule, typeof i43.RouterModule, typeof i44.HttpClientModule, typeof i45.ReactiveFormsModule, typeof i46.TranslateModule, typeof i47.FormlyModule, typeof i48.AutoCompleteModule, typeof i49.BreadcrumbModule, typeof i50.ButtonModule, typeof i51.CalendarModule, typeof i52.CardModule, typeof i53.CheckboxModule, typeof i54.ChipModule, typeof i55.ConfirmDialogModule, typeof i56.ConfirmPopupModule, typeof i57.DialogModule, typeof i58.DynamicDialogModule, typeof i59.DropdownModule, typeof i60.FileUploadModule, typeof i61.InputNumberModule, typeof i62.InputMaskModule, typeof i63.InputSwitchModule, typeof i64.InputTextModule, typeof i65.InputTextareaModule, typeof i66.PaginatorModule, typeof i67.RadioButtonModule, typeof i68.RippleModule, typeof i69.SelectButtonModule, typeof i70.TableModule, typeof i71.TagModule, typeof i72.ToastModule, typeof i73.ToggleButtonModule, typeof i74.ToolbarModule, typeof i75.TooltipModule, typeof i76.MessagesModule, typeof i77.ProgressSpinnerModule, typeof i78.TabViewModule, typeof i79.FieldsetModule, typeof i80.MultiSelectModule, typeof i81.SkeletonModule], [typeof i48.AutoCompleteModule, typeof i49.BreadcrumbModule, typeof i50.ButtonModule, typeof i51.CalendarModule, typeof i52.CardModule, typeof i53.CheckboxModule, typeof i54.ChipModule, typeof i55.ConfirmDialogModule, typeof i56.ConfirmPopupModule, typeof i57.DialogModule, typeof i58.DynamicDialogModule, typeof i59.DropdownModule, typeof i60.FileUploadModule, typeof i61.InputNumberModule, typeof i62.InputMaskModule, typeof i63.InputSwitchModule, typeof i64.InputTextModule, typeof i65.InputTextareaModule, typeof i66.PaginatorModule, typeof i67.RadioButtonModule, typeof i68.RippleModule, typeof i69.SelectButtonModule, typeof i70.TableModule, typeof i71.TagModule, typeof i72.ToastModule, typeof i73.ToggleButtonModule, typeof i74.ToolbarModule, typeof i75.TooltipModule, typeof i76.MessagesModule, typeof i77.ProgressSpinnerModule, typeof i78.TabViewModule, typeof i79.FieldsetModule, typeof i80.MultiSelectModule, typeof i81.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngDateRangeComponent, typeof i21.MngFormlyFieldWrapperComponent, typeof i22.MngFormlyTableWrapperComponent, typeof i23.MngFormlyFieldInputComponent, typeof i24.MngFormlyFieldLabelComponent, typeof i25.MngFormlyFieldDropdownComponent, typeof i26.MngFormlyFieldAutocompleteComponent, typeof i27.MngFormlyFieldLookupDialogComponent, typeof i28.MngFormlyFieldTableDialogMultiselectComponent, typeof i29.MngFormlyFieldTableDialogFormComponent, typeof i30.MngFormlyFieldTabsComponent, typeof i31.MngFormlyFieldFieldsetComponent, typeof i32.MngTableComponent, typeof i33.MngTableviewComponent, typeof i34.MngTableColumnValueComponent, typeof i35.MngTableColumnFilterComponent, typeof i36.MngTableviewRouteComponent, typeof i37.MngFormEditorComponent, typeof i38.MngActionComponent, typeof i39.MngActionEditorComponent, typeof i40.MngActionRouteComponent, typeof i41.MngButtonComponent]>;
89
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MngCommonsModule, [typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngDateRangeComponent, typeof i21.MngFormlyFieldWrapperComponent, typeof i22.MngFormlyTableWrapperComponent, typeof i23.MngFormlyFieldInputComponent, typeof i24.MngFormlyFieldLabelComponent, typeof i25.MngFormlyFieldDropdownComponent, typeof i26.MngFormlyFieldAutocompleteComponent, typeof i27.MngFormlyFieldLookupDialogComponent, typeof i28.MngFormlyFieldTableDialogMultiselectComponent, typeof i29.MngFormlyFieldTableDialogFormComponent, typeof i30.MngFormlyFieldTabsComponent, typeof i31.MngFormlyFieldFieldsetComponent, typeof i32.MngTableComponent, typeof i33.MngTableviewComponent, typeof i34.MngTableColumnValueComponent, typeof i35.MngTableColumnFilterComponent, typeof i36.MngTableviewRouteComponent, typeof i37.MngFormEditorComponent, typeof i38.MngActionComponent, typeof i39.MngActionEditorComponent, typeof i40.MngActionRouteComponent], [typeof i41.CommonModule, typeof i42.RouterModule, typeof i43.HttpClientModule, typeof i44.ReactiveFormsModule, typeof i45.TranslateModule, typeof i46.FormlyModule, typeof i47.AutoCompleteModule, typeof i48.BreadcrumbModule, typeof i49.ButtonModule, typeof i50.CalendarModule, typeof i51.CardModule, typeof i52.CheckboxModule, typeof i53.ChipModule, typeof i54.ConfirmDialogModule, typeof i55.ConfirmPopupModule, typeof i56.DialogModule, typeof i57.DynamicDialogModule, typeof i58.DropdownModule, typeof i59.FileUploadModule, typeof i60.InputNumberModule, typeof i61.InputMaskModule, typeof i62.InputSwitchModule, typeof i63.InputTextModule, typeof i64.InputTextareaModule, typeof i65.PaginatorModule, typeof i66.RadioButtonModule, typeof i67.RippleModule, typeof i68.SelectButtonModule, typeof i69.TableModule, typeof i70.TagModule, typeof i71.ToastModule, typeof i72.ToggleButtonModule, typeof i73.ToolbarModule, typeof i74.TooltipModule, typeof i75.MessagesModule, typeof i76.ProgressSpinnerModule, typeof i77.TabViewModule, typeof i78.FieldsetModule, typeof i79.MultiSelectModule, typeof i80.SkeletonModule], [typeof i47.AutoCompleteModule, typeof i48.BreadcrumbModule, typeof i49.ButtonModule, typeof i50.CalendarModule, typeof i51.CardModule, typeof i52.CheckboxModule, typeof i53.ChipModule, typeof i54.ConfirmDialogModule, typeof i55.ConfirmPopupModule, typeof i56.DialogModule, typeof i57.DynamicDialogModule, typeof i58.DropdownModule, typeof i59.FileUploadModule, typeof i60.InputNumberModule, typeof i61.InputMaskModule, typeof i62.InputSwitchModule, typeof i63.InputTextModule, typeof i64.InputTextareaModule, typeof i65.PaginatorModule, typeof i66.RadioButtonModule, typeof i67.RippleModule, typeof i68.SelectButtonModule, typeof i69.TableModule, typeof i70.TagModule, typeof i71.ToastModule, typeof i72.ToggleButtonModule, typeof i73.ToolbarModule, typeof i74.TooltipModule, typeof i75.MessagesModule, typeof i76.ProgressSpinnerModule, typeof i77.TabViewModule, typeof i78.FieldsetModule, typeof i79.MultiSelectModule, typeof i80.SkeletonModule, typeof i1.MngComponentDirective, typeof i2.MngTemplateDirective, typeof i3.JsonPathPipe, typeof i4.MngEnumPipe, typeof i5.MngBooleanPipe, typeof i6.MngI18nPropertyPipe, typeof i7.MngParametrizePipe, typeof i8.MngGetterPipe, typeof i9.MngTemplatePipe, typeof i10.MngClassMapPipe, typeof i11.MngBreadcrumbComponent, typeof i12.MngFooterComponent, typeof i13.MngMainLayoutComponent, typeof i14.MngMenuComponent, typeof i15.MngMenuItemComponent, typeof i16.MngTopbarComponent, typeof i17.MngVersionComponent, typeof i18.MngAutocompleteComponent, typeof i19.MngDropdownComponent, typeof i20.MngDateRangeComponent, typeof i21.MngFormlyFieldWrapperComponent, typeof i22.MngFormlyTableWrapperComponent, typeof i23.MngFormlyFieldInputComponent, typeof i24.MngFormlyFieldLabelComponent, typeof i25.MngFormlyFieldDropdownComponent, typeof i26.MngFormlyFieldAutocompleteComponent, typeof i27.MngFormlyFieldLookupDialogComponent, typeof i28.MngFormlyFieldTableDialogMultiselectComponent, typeof i29.MngFormlyFieldTableDialogFormComponent, typeof i30.MngFormlyFieldTabsComponent, typeof i31.MngFormlyFieldFieldsetComponent, typeof i32.MngTableComponent, typeof i33.MngTableviewComponent, typeof i34.MngTableColumnValueComponent, typeof i35.MngTableColumnFilterComponent, typeof i36.MngTableviewRouteComponent, typeof i37.MngFormEditorComponent, typeof i38.MngActionComponent, typeof i39.MngActionEditorComponent, typeof i40.MngActionRouteComponent]>;
91
90
  static ɵinj: i0.ɵɵInjectorDeclaration<MngCommonsModule>;
92
91
  }
@@ -1,4 +1,4 @@
1
- import { ActionLevelEnum, ActionSizeEnum } from '../descriptors/types';
1
+ import { StyleLevelEnum, StyleSizeEnum } from './models';
2
2
  export declare class ButtonStyleBuilder {
3
3
  private _size;
4
4
  private _actionLevel;
@@ -7,8 +7,8 @@ export declare class ButtonStyleBuilder {
7
7
  private _raisedButton;
8
8
  private _roundedStyle;
9
9
  private _customClass?;
10
- constructor(level?: ActionLevelEnum, customClass?: string);
11
- getButtonClass(hasNoTitle?: boolean): string;
10
+ constructor(level?: StyleLevelEnum, customClass?: string);
11
+ build(hasNoTitle?: boolean): string;
12
12
  /**
13
13
  * creates instance of style builder with custom properties
14
14
  * @param actionLevel ActionLevelEnum
@@ -18,17 +18,17 @@ export declare class ButtonStyleBuilder {
18
18
  * @param raisedButton if true, raised button will be applied
19
19
  * @param customClass additional custom classes (will be added at generating)
20
20
  */
21
- create(actionLevel?: ActionLevelEnum, size?: ActionSizeEnum, textButton?: boolean, outlineButton?: boolean, raisedButton?: boolean, roundedButton?: ButtonStyleRoundedEnum, customClass?: string): ButtonStyleBuilder;
21
+ static create(actionLevel?: StyleLevelEnum, size?: StyleSizeEnum, textButton?: boolean, outlineButton?: boolean, raisedButton?: boolean, roundedButton?: ButtonStyleRoundedEnum, customClass?: string): ButtonStyleBuilder;
22
22
  /**
23
23
  * sets custom action level and returns this object
24
24
  * @param actionLevel
25
25
  */
26
- withActionLevel(actionLevel: ActionLevelEnum): ButtonStyleBuilder;
26
+ withActionLevel(actionLevel: StyleLevelEnum): ButtonStyleBuilder;
27
27
  /**
28
28
  * sets custom size and return this object
29
29
  * @param size
30
30
  */
31
- withSize(size: ActionSizeEnum): ButtonStyleBuilder;
31
+ withSize(size: StyleSizeEnum): ButtonStyleBuilder;
32
32
  /**
33
33
  * sets text button property
34
34
  * @param withText default true
@@ -52,8 +52,8 @@ export declare class ButtonStyleBuilder {
52
52
  withCustomClass(customClass: string): ButtonStyleBuilder;
53
53
  private convertActionLevelToStyleClass;
54
54
  private convertSizeToStyleClass;
55
- get actionLevel(): ActionLevelEnum;
56
- get size(): ActionSizeEnum;
55
+ get actionLevel(): StyleLevelEnum;
56
+ get size(): StyleSizeEnum;
57
57
  get textButton(): boolean;
58
58
  get outlineButton(): boolean;
59
59
  get raisedButton(): boolean;
@@ -0,0 +1,2 @@
1
+ export * from './style-level.enum';
2
+ export * from './style-size.enum';
@@ -0,0 +1,10 @@
1
+ export declare enum StyleLevelEnum {
2
+ Default = 0,
3
+ Primary = 1,
4
+ Secondary = 2,
5
+ Info = 3,
6
+ Help = 4,
7
+ Success = 5,
8
+ Warning = 6,
9
+ Danger = 7
10
+ }
@@ -0,0 +1,7 @@
1
+ export declare enum StyleSizeEnum {
2
+ ExtraSmall = 0,
3
+ Small = 1,
4
+ Normal = 2,
5
+ Large = 3,
6
+ ExtraLarge = 4
7
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.14.2",
3
+ "version": "0.15.1",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "~14.1.0",
6
6
  "@angular/core": "~14.1.0",
package/public-api.d.ts CHANGED
@@ -12,7 +12,6 @@ export * from './lib/components/form/formly/fields';
12
12
  export * from './lib/components/form/formly/wrappers';
13
13
  export * from './lib/components/layout';
14
14
  export * from './lib/components/tableview';
15
- export * from './lib/components/button';
16
15
  export * from './lib/directives';
17
16
  export * from './lib/pipes';
18
17
  export * from './lib/api/models';
@@ -32,3 +31,4 @@ export * from './lib/security';
32
31
  export * from './lib/security/model';
33
32
  export * from './lib/types';
34
33
  export * from './lib/styles';
34
+ export * from './lib/styles/models';
@@ -0,0 +1,16 @@
1
+ //clear icon
2
+ p-autocomplete.p-autocomplete-clearable {
3
+ & .p-inputtext {
4
+ padding-right: 2rem;
5
+ }
6
+
7
+ & .p-autocomplete-clear-icon {
8
+ color: $secondaryButtonTextColor;
9
+ right: 0.5rem;
10
+ }
11
+
12
+ & .p-autocomplete-dd .p-autocomplete-clear-icon {
13
+ color: $secondaryButtonTextColor;
14
+ right: 2.857rem;
15
+ }
16
+ }
@@ -7,6 +7,7 @@
7
7
  @import './_theme_forms';
8
8
  @import './_theme_datepicker';
9
9
  @import './_theme_toolbar';
10
+ @import './_theme_autocomplete';
10
11
 
11
12
  .p-tabview-title-error {
12
13
  color: $errorColor !important;
package/version-info.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@mediusinc/mng-commons",
3
- "version": "0.14.2",
4
- "tag": "v0.14.2",
3
+ "version": "0.15.1",
4
+ "tag": "v0.15.1",
5
5
  "distance": 0,
6
- "hash": "5b158061",
6
+ "hash": "6cca1f00",
7
7
  "dirty": false,
8
- "semver": "0.14.2",
9
- "raw": "v0.14.2-5b158061"
8
+ "semver": "0.15.1",
9
+ "raw": "v0.15.1-6cca1f00"
10
10
  }
@@ -1,46 +0,0 @@
1
- import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- import * as i1 from "primeng/tooltip";
4
- import * as i2 from "primeng/button";
5
- import * as i3 from "@ngx-translate/core";
6
- export class MngButtonComponent {
7
- constructor() {
8
- this.clickEmitter = new EventEmitter();
9
- this.focusEmitter = new EventEmitter();
10
- this.blurEmitter = new EventEmitter();
11
- this.buttonClass = 'p-button';
12
- }
13
- ngOnInit() {
14
- this.buttonClass = `${this.descriptor.styleClass.getButtonClass(this.descriptor.label == null)}`;
15
- }
16
- onClick(event) {
17
- this.clickEmitter.next(event);
18
- this.descriptor.onClick?.(event);
19
- }
20
- onFocus(event) {
21
- this.focusEmitter.next(event);
22
- this.descriptor.onFocus?.(event);
23
- }
24
- onBlur(event) {
25
- this.blurEmitter.next(event);
26
- this.descriptor.onBlur?.(event);
27
- }
28
- }
29
- MngButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
30
- MngButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.0", type: MngButtonComponent, selector: "mng-button", inputs: { descriptor: "descriptor" }, outputs: { clickEmitter: "buttonClick", focusEmitter: "buttonFocus", blurEmitter: "buttonBlur" }, ngImport: i0, template: "<p-button\n #button\n type=\"button\"\n [label]=\"$any(descriptor.label) | translate\"\n [icon]=\"$any(descriptor.icon)\"\n [iconPos]=\"$any(descriptor.iconPosition)\"\n [loading]=\"$any(descriptor.loading)\"\n [loadingIcon]=\"$any(descriptor.loadingIcon)\"\n [disabled]=\"$any(descriptor.disabled)\"\n [styleClass]=\"buttonClass\"\n [pTooltip]=\"$any(descriptor.tooltip) | translate\"\n [badge]=\"$any(descriptor.badge)\"\n (onClick)=\"onClick($event)\"\n (onBlur)=\"onBlur($event)\"\n (onFocus)=\"onFocus($event)\"></p-button>\n", dependencies: [{ kind: "directive", type: i1.Tooltip, selector: "[pTooltip]", inputs: ["tooltipPosition", "tooltipEvent", "appendTo", "positionStyle", "tooltipStyleClass", "tooltipZIndex", "escape", "showDelay", "hideDelay", "life", "positionTop", "positionLeft", "fitContent", "pTooltip", "tooltipDisabled", "tooltipOptions"] }, { kind: "component", type: i2.Button, selector: "p-button", inputs: ["type", "iconPos", "icon", "badge", "label", "disabled", "loading", "loadingIcon", "style", "styleClass", "badgeClass", "ariaLabel"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.0", ngImport: i0, type: MngButtonComponent, decorators: [{
32
- type: Component,
33
- args: [{ selector: 'mng-button', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-button\n #button\n type=\"button\"\n [label]=\"$any(descriptor.label) | translate\"\n [icon]=\"$any(descriptor.icon)\"\n [iconPos]=\"$any(descriptor.iconPosition)\"\n [loading]=\"$any(descriptor.loading)\"\n [loadingIcon]=\"$any(descriptor.loadingIcon)\"\n [disabled]=\"$any(descriptor.disabled)\"\n [styleClass]=\"buttonClass\"\n [pTooltip]=\"$any(descriptor.tooltip) | translate\"\n [badge]=\"$any(descriptor.badge)\"\n (onClick)=\"onClick($event)\"\n (onBlur)=\"onBlur($event)\"\n (onFocus)=\"onFocus($event)\"></p-button>\n" }]
34
- }], propDecorators: { descriptor: [{
35
- type: Input
36
- }], clickEmitter: [{
37
- type: Output,
38
- args: ['buttonClick']
39
- }], focusEmitter: [{
40
- type: Output,
41
- args: ['buttonFocus']
42
- }], blurEmitter: [{
43
- type: Output,
44
- args: ['buttonBlur']
45
- }] } });
46
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9idXR0b24vYnV0dG9uLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uL3NyYy9saWIvY29tcG9uZW50cy9idXR0b24vYnV0dG9uLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBQyx1QkFBdUIsRUFBRSxTQUFTLEVBQUUsWUFBWSxFQUFFLEtBQUssRUFBVSxNQUFNLEVBQUMsTUFBTSxlQUFlLENBQUM7Ozs7O0FBU3RHLE1BQU0sT0FBTyxrQkFBa0I7SUFML0I7UUFPa0MsaUJBQVksR0FBRyxJQUFJLFlBQVksRUFBUyxDQUFDO1FBQ3pDLGlCQUFZLEdBQUcsSUFBSSxZQUFZLEVBQVMsQ0FBQztRQUMxQyxnQkFBVyxHQUFHLElBQUksWUFBWSxFQUFTLENBQUM7UUFFOUQsZ0JBQVcsR0FBRyxVQUFVLENBQUM7S0FvQm5DO0lBbEJHLFFBQVE7UUFDSixJQUFJLENBQUMsV0FBVyxHQUFHLEdBQUcsSUFBSSxDQUFDLFVBQVUsQ0FBQyxVQUFVLENBQUMsY0FBYyxDQUFDLElBQUksQ0FBQyxVQUFVLENBQUMsS0FBSyxJQUFJLElBQUksQ0FBQyxFQUFFLENBQUM7SUFDckcsQ0FBQztJQUVELE9BQU8sQ0FBQyxLQUFZO1FBQ2hCLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzlCLElBQUksQ0FBQyxVQUFVLENBQUMsT0FBTyxFQUFFLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckMsQ0FBQztJQUVELE9BQU8sQ0FBQyxLQUFZO1FBQ2hCLElBQUksQ0FBQyxZQUFZLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxDQUFDO1FBQzlCLElBQUksQ0FBQyxVQUFVLENBQUMsT0FBTyxFQUFFLENBQUMsS0FBSyxDQUFDLENBQUM7SUFDckMsQ0FBQztJQUVELE1BQU0sQ0FBQyxLQUFZO1FBQ2YsSUFBSSxDQUFDLFdBQVcsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLENBQUM7UUFDN0IsSUFBSSxDQUFDLFVBQVUsQ0FBQyxNQUFNLEVBQUUsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUNwQyxDQUFDOzsrR0F6QlEsa0JBQWtCO21HQUFsQixrQkFBa0IsMExDVC9CLDhqQkFlQTsyRkROYSxrQkFBa0I7a0JBTDlCLFNBQVM7K0JBQ0ksWUFBWSxtQkFFTCx1QkFBdUIsQ0FBQyxNQUFNOzhCQUcvQixVQUFVO3NCQUF6QixLQUFLO2dCQUN3QixZQUFZO3NCQUF6QyxNQUFNO3VCQUFDLGFBQWE7Z0JBQ1MsWUFBWTtzQkFBekMsTUFBTTt1QkFBQyxhQUFhO2dCQUNRLFdBQVc7c0JBQXZDLE1BQU07dUJBQUMsWUFBWSIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7Q2hhbmdlRGV0ZWN0aW9uU3RyYXRlZ3ksIENvbXBvbmVudCwgRXZlbnRFbWl0dGVyLCBJbnB1dCwgT25Jbml0LCBPdXRwdXR9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuXG5pbXBvcnQge0J1dHRvbkRlc2NyaXB0b3J9IGZyb20gJy4uLy4uL2Rlc2NyaXB0b3JzJztcblxuQENvbXBvbmVudCh7XG4gICAgc2VsZWN0b3I6ICdtbmctYnV0dG9uJyxcbiAgICB0ZW1wbGF0ZVVybDogJy4vYnV0dG9uLmNvbXBvbmVudC5odG1sJyxcbiAgICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaFxufSlcbmV4cG9ydCBjbGFzcyBNbmdCdXR0b25Db21wb25lbnQgaW1wbGVtZW50cyBPbkluaXQge1xuICAgIEBJbnB1dCgpIHB1YmxpYyBkZXNjcmlwdG9yITogQnV0dG9uRGVzY3JpcHRvcjtcbiAgICBAT3V0cHV0KCdidXR0b25DbGljaycpIHB1YmxpYyBjbGlja0VtaXR0ZXIgPSBuZXcgRXZlbnRFbWl0dGVyPEV2ZW50PigpO1xuICAgIEBPdXRwdXQoJ2J1dHRvbkZvY3VzJykgcHVibGljIGZvY3VzRW1pdHRlciA9IG5ldyBFdmVudEVtaXR0ZXI8RXZlbnQ+KCk7XG4gICAgQE91dHB1dCgnYnV0dG9uQmx1cicpIHB1YmxpYyBibHVyRW1pdHRlciA9IG5ldyBFdmVudEVtaXR0ZXI8RXZlbnQ+KCk7XG5cbiAgICBwdWJsaWMgYnV0dG9uQ2xhc3MgPSAncC1idXR0b24nO1xuXG4gICAgbmdPbkluaXQoKTogdm9pZCB7XG4gICAgICAgIHRoaXMuYnV0dG9uQ2xhc3MgPSBgJHt0aGlzLmRlc2NyaXB0b3Iuc3R5bGVDbGFzcy5nZXRCdXR0b25DbGFzcyh0aGlzLmRlc2NyaXB0b3IubGFiZWwgPT0gbnVsbCl9YDtcbiAgICB9XG5cbiAgICBvbkNsaWNrKGV2ZW50OiBFdmVudCk6IHZvaWQge1xuICAgICAgICB0aGlzLmNsaWNrRW1pdHRlci5uZXh0KGV2ZW50KTtcbiAgICAgICAgdGhpcy5kZXNjcmlwdG9yLm9uQ2xpY2s/LihldmVudCk7XG4gICAgfVxuXG4gICAgb25Gb2N1cyhldmVudDogRXZlbnQpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5mb2N1c0VtaXR0ZXIubmV4dChldmVudCk7XG4gICAgICAgIHRoaXMuZGVzY3JpcHRvci5vbkZvY3VzPy4oZXZlbnQpO1xuICAgIH1cblxuICAgIG9uQmx1cihldmVudDogRXZlbnQpOiB2b2lkIHtcbiAgICAgICAgdGhpcy5ibHVyRW1pdHRlci5uZXh0KGV2ZW50KTtcbiAgICAgICAgdGhpcy5kZXNjcmlwdG9yLm9uQmx1cj8uKGV2ZW50KTtcbiAgICB9XG59XG4iLCI8cC1idXR0b25cbiAgICAjYnV0dG9uXG4gICAgdHlwZT1cImJ1dHRvblwiXG4gICAgW2xhYmVsXT1cIiRhbnkoZGVzY3JpcHRvci5sYWJlbCkgfCB0cmFuc2xhdGVcIlxuICAgIFtpY29uXT1cIiRhbnkoZGVzY3JpcHRvci5pY29uKVwiXG4gICAgW2ljb25Qb3NdPVwiJGFueShkZXNjcmlwdG9yLmljb25Qb3NpdGlvbilcIlxuICAgIFtsb2FkaW5nXT1cIiRhbnkoZGVzY3JpcHRvci5sb2FkaW5nKVwiXG4gICAgW2xvYWRpbmdJY29uXT1cIiRhbnkoZGVzY3JpcHRvci5sb2FkaW5nSWNvbilcIlxuICAgIFtkaXNhYmxlZF09XCIkYW55KGRlc2NyaXB0b3IuZGlzYWJsZWQpXCJcbiAgICBbc3R5bGVDbGFzc109XCJidXR0b25DbGFzc1wiXG4gICAgW3BUb29sdGlwXT1cIiRhbnkoZGVzY3JpcHRvci50b29sdGlwKSB8IHRyYW5zbGF0ZVwiXG4gICAgW2JhZGdlXT1cIiRhbnkoZGVzY3JpcHRvci5iYWRnZSlcIlxuICAgIChvbkNsaWNrKT1cIm9uQ2xpY2soJGV2ZW50KVwiXG4gICAgKG9uQmx1cik9XCJvbkJsdXIoJGV2ZW50KVwiXG4gICAgKG9uRm9jdXMpPVwib25Gb2N1cygkZXZlbnQpXCI+PC9wLWJ1dHRvbj5cbiJdfQ==
@@ -1,2 +0,0 @@
1
- export * from './button.component';
2
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvbGliL2NvbXBvbmVudHMvYnV0dG9uL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsb0JBQW9CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2J1dHRvbi5jb21wb25lbnQnO1xuIl19