otimus-library 0.3.14 → 0.3.16
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/otimus-library.mjs +143 -72
- package/fesm2022/otimus-library.mjs.map +1 -1
- package/index.d.ts +36 -33
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnDestroy,
|
|
2
|
+
import { OnDestroy, OnChanges, ElementRef, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges, ViewContainerRef, EnvironmentInjector, OnInit, AfterViewInit, AfterContentInit, EventEmitter, QueryList } from '@angular/core';
|
|
3
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
4
|
import { MaterialSymbol } from 'material-symbols';
|
|
5
5
|
import * as rxjs from 'rxjs';
|
|
@@ -47,16 +47,6 @@ declare class StyleThemeService {
|
|
|
47
47
|
static ɵprov: i0.ɵɵInjectableDeclaration<StyleThemeService>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
declare class OcClickTrackerService implements OnDestroy {
|
|
51
|
-
private readonly trackedElements;
|
|
52
|
-
constructor();
|
|
53
|
-
ngOnDestroy(): void;
|
|
54
|
-
addElement(element: ElementRef): void;
|
|
55
|
-
isTracked(element: HTMLElement): boolean;
|
|
56
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OcClickTrackerService, never>;
|
|
57
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<OcClickTrackerService>;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
50
|
declare class OcTooltipDirective implements OnDestroy, OnChanges {
|
|
61
51
|
private elRef;
|
|
62
52
|
private renderer;
|
|
@@ -85,13 +75,39 @@ declare class OcTooltipDirective implements OnDestroy, OnChanges {
|
|
|
85
75
|
static ɵdir: i0.ɵɵDirectiveDeclaration<OcTooltipDirective, "[ocTooltip]", never, { "content": { "alias": "content"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, {}, never, never, true, never>;
|
|
86
76
|
}
|
|
87
77
|
|
|
88
|
-
|
|
78
|
+
interface OcMenuType {
|
|
79
|
+
name: string;
|
|
80
|
+
url?: string;
|
|
81
|
+
callback?: any;
|
|
82
|
+
targetBlank?: boolean;
|
|
83
|
+
icon?: string;
|
|
84
|
+
checked?: boolean;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
interface OcMenuHorizType extends Omit<OcMenuType, 'checked'> {
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class OcMenuHorizDirective implements OnChanges, OnDestroy {
|
|
89
91
|
private readonly elemRef;
|
|
92
|
+
private readonly viewContainerRef;
|
|
93
|
+
private readonly injector;
|
|
90
94
|
private readonly renderer;
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
+
ocMenu: OcMenuHorizType[];
|
|
96
|
+
maxWidth?: string;
|
|
97
|
+
width?: string;
|
|
98
|
+
shouldCloseOnClickOut: boolean;
|
|
99
|
+
private menuRef;
|
|
100
|
+
private ocChangeSub?;
|
|
101
|
+
constructor(elemRef: ElementRef<HTMLElement>, viewContainerRef: ViewContainerRef, injector: EnvironmentInjector, renderer: Renderer2);
|
|
102
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
103
|
+
ngOnDestroy(): void;
|
|
104
|
+
/** create and attach component instance (idempotent) */
|
|
105
|
+
createOcMenu(): void;
|
|
106
|
+
open(): void;
|
|
107
|
+
close(): void;
|
|
108
|
+
private destroyMenu;
|
|
109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcMenuHorizDirective, never>;
|
|
110
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OcMenuHorizDirective, "[OcMenuHorizontal]", ["OcMenuHorizontal"], { "ocMenu": { "alias": "ocMenu"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "shouldCloseOnClickOut": { "alias": "shouldCloseOnClickOut"; "required": false; }; }, {}, never, never, true, never>;
|
|
95
111
|
}
|
|
96
112
|
|
|
97
113
|
declare class OcBadgeComponent implements OnInit {
|
|
@@ -353,15 +369,6 @@ declare class OcNotFoundComponent {
|
|
|
353
369
|
static ɵcmp: i0.ɵɵComponentDeclaration<OcNotFoundComponent, "oc-not-found", never, {}, {}, never, never, true, never>;
|
|
354
370
|
}
|
|
355
371
|
|
|
356
|
-
interface OcMenuType {
|
|
357
|
-
name: string;
|
|
358
|
-
url?: string;
|
|
359
|
-
callback?: any;
|
|
360
|
-
targetBlank?: boolean;
|
|
361
|
-
icon?: string;
|
|
362
|
-
checked?: boolean;
|
|
363
|
-
}
|
|
364
|
-
|
|
365
372
|
declare class OcMenuComponent implements OnInit {
|
|
366
373
|
private renderer;
|
|
367
374
|
constructor(renderer: Renderer2);
|
|
@@ -380,18 +387,15 @@ declare class OcMenuComponent implements OnInit {
|
|
|
380
387
|
static ɵcmp: i0.ɵɵComponentDeclaration<OcMenuComponent, "oc-menu", never, { "ocMenu": { "alias": "ocMenu"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
381
388
|
}
|
|
382
389
|
|
|
383
|
-
interface OcMenuHorizType extends Omit<OcMenuType, 'checked'> {
|
|
384
|
-
}
|
|
385
|
-
|
|
386
390
|
declare class OcMenuHorizComponent implements OnInit, OnDestroy {
|
|
387
391
|
private readonly renderer;
|
|
388
392
|
private readonly cdr;
|
|
389
|
-
|
|
390
|
-
constructor(renderer: Renderer2, cdr: ChangeDetectorRef, trackingService: OcClickTrackerService);
|
|
393
|
+
constructor(renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
391
394
|
ocMenu: OcMenuHorizType[];
|
|
392
395
|
maxWidth?: string;
|
|
393
396
|
width?: string;
|
|
394
397
|
shouldCloseOnClickOut: boolean;
|
|
398
|
+
hostElement?: HTMLElement;
|
|
395
399
|
ocChange: EventEmitter<any>;
|
|
396
400
|
menuElement?: ElementRef<HTMLDivElement>;
|
|
397
401
|
itemsListElement?: ElementRef<HTMLUListElement>;
|
|
@@ -405,7 +409,6 @@ declare class OcMenuHorizComponent implements OnInit, OnDestroy {
|
|
|
405
409
|
protected resizeObserver?: ResizeObserver;
|
|
406
410
|
private windowClickUnlisten?;
|
|
407
411
|
open(): void;
|
|
408
|
-
private timeoutHandler;
|
|
409
412
|
close(): void;
|
|
410
413
|
ngOnInit(): void;
|
|
411
414
|
ngOnDestroy(): void;
|
|
@@ -417,7 +420,7 @@ declare class OcMenuHorizComponent implements OnInit, OnDestroy {
|
|
|
417
420
|
protected toggleOverflowMenu(event: Event): void;
|
|
418
421
|
protected handleOverflowItemClick(callback?: () => void): void;
|
|
419
422
|
static ɵfac: i0.ɵɵFactoryDeclaration<OcMenuHorizComponent, never>;
|
|
420
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OcMenuHorizComponent, "oc-menu-horiz", never, { "ocMenu": { "alias": "ocMenu"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "shouldCloseOnClickOut": { "alias": "shouldCloseOnClickOut"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
423
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcMenuHorizComponent, "oc-menu-horiz", never, { "ocMenu": { "alias": "ocMenu"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "shouldCloseOnClickOut": { "alias": "shouldCloseOnClickOut"; "required": false; }; "hostElement": { "alias": "hostElement"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
421
424
|
}
|
|
422
425
|
|
|
423
426
|
declare class OcToastComponent {
|
|
@@ -644,5 +647,5 @@ interface OcTableActionsType {
|
|
|
644
647
|
print: () => any;
|
|
645
648
|
}
|
|
646
649
|
|
|
647
|
-
export { OcAccordionComponent, OcAccordionItemComponent, OcAutocompleteComponent, OcBadgeComponent, OcButtonMenuComponent, OcCheckboxComponent, OcChipComponent,
|
|
650
|
+
export { OcAccordionComponent, OcAccordionItemComponent, OcAutocompleteComponent, OcBadgeComponent, OcButtonMenuComponent, OcCheckboxComponent, OcChipComponent, OcDateSelectComponent, OcFilterComponent, OcInputComponent, OcKeyValueComponent, OcLogComponent, OcMenuComponent, OcMenuHorizComponent, OcMenuHorizDirective, OcMessageComponent, OcModalComponent, OcModalFooterComponent, OcNotFoundComponent, OcPaginationComponent, OcProfileComponent, OcProgressComponent, OcStepComponent, OcStepperComponent, OcTabComponent, OcTabsComponent, OcToastComponent, OcToastService, OcToggleComponent, OcTooltipDirective, OtimusLibraryComponent, OtimusLibraryService, StyleThemeService };
|
|
648
651
|
export type { OcAutoCompleteType, OcMenuType, OcStyleThemeType, OcTableType, ToastType };
|