@skysoftware-co/bayan-core-widgets-ui 0.0.10 → 0.0.12
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.
- package/fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs +72 -60
- package/fesm2022/skysoftware-co-bayan-core-widgets-ui.mjs.map +1 -1
- package/lib/shared/property-state.service.d.ts +9 -0
- package/lib/top-menu-widget/components/global-search-widget/global-search-widget.component.d.ts +11 -11
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BayanCoreConfigService {
|
|
4
|
+
private activePropertyId$;
|
|
5
|
+
getActivePropertyId$(): Observable<number>;
|
|
6
|
+
setActivePropertyId(id: number): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BayanCoreConfigService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BayanCoreConfigService>;
|
|
9
|
+
}
|
package/lib/top-menu-widget/components/global-search-widget/global-search-widget.component.d.ts
CHANGED
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
import { EventEmitter
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
2
3
|
import { DxAutocompleteComponent } from 'devextreme-angular';
|
|
3
4
|
import { GlobalSearchMenu } from '../../../shared/menu.dtos';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BayanCoreGlobalSearchWidgetComponent
|
|
6
|
+
export declare class BayanCoreGlobalSearchWidgetComponent {
|
|
6
7
|
private readonly menuService;
|
|
7
8
|
private readonly document;
|
|
8
9
|
private readonly router;
|
|
10
|
+
private readonly propertyState;
|
|
9
11
|
searchAutoComplete?: DxAutocompleteComponent;
|
|
10
|
-
baseUrl: string;
|
|
11
|
-
|
|
12
|
-
ActivePropertyId: number;
|
|
12
|
+
set baseUrl(url: string);
|
|
13
|
+
private _baseUrl;
|
|
13
14
|
placeholder: string;
|
|
14
15
|
searchMode: 'contains' | 'startswith';
|
|
15
16
|
stylingMode: 'filled' | 'outlined' | 'underlined';
|
|
@@ -20,7 +21,6 @@ export declare class BayanCoreGlobalSearchWidgetComponent implements OnInit, OnC
|
|
|
20
21
|
iconClass: string;
|
|
21
22
|
search: EventEmitter<string>;
|
|
22
23
|
itemNavigate: EventEmitter<GlobalSearchMenu>;
|
|
23
|
-
dataSource: GlobalSearchMenu[];
|
|
24
24
|
readonly toolsIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
25
25
|
readonly gridIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
26
26
|
readonly creditIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
@@ -29,9 +29,9 @@ export declare class BayanCoreGlobalSearchWidgetComponent implements OnInit, OnC
|
|
|
29
29
|
readonly swapIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
30
30
|
readonly medalIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
31
31
|
readonly graduateIcon: import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
32
|
+
searchResults: GlobalSearchMenu[];
|
|
33
|
+
constructor();
|
|
34
|
+
searchResults$: Observable<GlobalSearchMenu[]>;
|
|
35
35
|
onInput(event: {
|
|
36
36
|
event?: {
|
|
37
37
|
target?: {
|
|
@@ -48,11 +48,11 @@ export declare class BayanCoreGlobalSearchWidgetComponent implements OnInit, OnC
|
|
|
48
48
|
value?: string;
|
|
49
49
|
};
|
|
50
50
|
};
|
|
51
|
-
} | any): void;
|
|
51
|
+
} | any, items?: GlobalSearchMenu[]): void;
|
|
52
52
|
onItemSelected(event: Event, item: GlobalSearchMenu): void;
|
|
53
53
|
reset(): void;
|
|
54
54
|
getText(text: string, isTranslatable?: boolean): string;
|
|
55
55
|
getIconForClass(iconClass: string): import("@fortawesome/fontawesome-common-types").IconDefinition;
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<BayanCoreGlobalSearchWidgetComponent, never>;
|
|
57
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BayanCoreGlobalSearchWidgetComponent, "bayan-core-global-search-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "
|
|
57
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BayanCoreGlobalSearchWidgetComponent, "bayan-core-global-search-widget", never, { "baseUrl": { "alias": "baseUrl"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "searchMode": { "alias": "searchMode"; "required": false; }; "stylingMode": { "alias": "stylingMode"; "required": false; }; "searchWrapperClass": { "alias": "searchWrapperClass"; "required": false; }; "searchItemClass": { "alias": "searchItemClass"; "required": false; }; "searchItemTitleClass": { "alias": "searchItemTitleClass"; "required": false; }; "searchItemSubtitleClass": { "alias": "searchItemSubtitleClass"; "required": false; }; "iconClass": { "alias": "iconClass"; "required": false; }; }, { "search": "search"; "itemNavigate": "itemNavigate"; }, never, never, true, never>;
|
|
58
58
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -8,3 +8,5 @@ export * from './lib/top-menu-widget/components/settings-widget/settings-widget.
|
|
|
8
8
|
export * from './lib/top-menu-widget/components/user-panel-widget/user-panel-widget.component';
|
|
9
9
|
export * from './lib/shared/menu.dtos';
|
|
10
10
|
export * from './lib/shared/menu.service';
|
|
11
|
+
export * from './lib/shared/pipes/translate.pipe';
|
|
12
|
+
export * from './lib/shared/services/translate.service';
|