otimus-library 0.3.8 → 0.3.10
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 +269 -93
- package/fesm2022/otimus-library.mjs.map +1 -1
- package/index.d.ts +61 -20
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnDestroy, OnChanges, ElementRef, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges, OnInit, AfterViewInit, AfterContentInit, EventEmitter, QueryList } from '@angular/core';
|
|
3
|
-
import * as rxjs from 'rxjs';
|
|
4
|
-
import { HttpClient } from '@angular/common/http';
|
|
5
3
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
6
4
|
import { MaterialSymbol } from 'material-symbols';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
|
7
7
|
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
8
8
|
|
|
9
9
|
declare class OtimusLibraryService {
|
|
@@ -47,22 +47,6 @@ declare class StyleThemeService {
|
|
|
47
47
|
static ɵprov: i0.ɵɵInjectableDeclaration<StyleThemeService>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
declare class InternationalizationService {
|
|
51
|
-
private http;
|
|
52
|
-
constructor(http: HttpClient);
|
|
53
|
-
private queryLang;
|
|
54
|
-
getTranslation(code: string | number, params?: {
|
|
55
|
-
[key: string]: string | number;
|
|
56
|
-
} | null): string;
|
|
57
|
-
getTranslationsByLanguage(): rxjs.Subscription | undefined;
|
|
58
|
-
canUpdateStoredLanguages(): boolean;
|
|
59
|
-
setLanguage(language: string): void;
|
|
60
|
-
setUpdatedLastTime(): void;
|
|
61
|
-
setLanguages(translations: Object): void;
|
|
62
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<InternationalizationService, never>;
|
|
63
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<InternationalizationService>;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
50
|
declare class OcTooltipDirective implements OnDestroy, OnChanges {
|
|
67
51
|
private elRef;
|
|
68
52
|
private renderer;
|
|
@@ -215,6 +199,22 @@ interface OcAutoCompleteType {
|
|
|
215
199
|
counter?: number;
|
|
216
200
|
}
|
|
217
201
|
|
|
202
|
+
declare class InternationalizationService {
|
|
203
|
+
private http;
|
|
204
|
+
constructor(http: HttpClient);
|
|
205
|
+
private queryLang;
|
|
206
|
+
getTranslation(code: string | number, params?: {
|
|
207
|
+
[key: string]: string | number;
|
|
208
|
+
} | null): string;
|
|
209
|
+
getTranslationsByLanguage(): rxjs.Subscription | undefined;
|
|
210
|
+
canUpdateStoredLanguages(): boolean;
|
|
211
|
+
setLanguage(language: string): void;
|
|
212
|
+
setUpdatedLastTime(): void;
|
|
213
|
+
setLanguages(translations: Object): void;
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternationalizationService, never>;
|
|
215
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternationalizationService>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
218
|
declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit, OnChanges, OnInit {
|
|
219
219
|
private renderer;
|
|
220
220
|
private el;
|
|
@@ -314,16 +314,19 @@ declare class OcLogComponent {
|
|
|
314
314
|
}
|
|
315
315
|
|
|
316
316
|
declare class OcPaginationComponent implements OnInit {
|
|
317
|
+
private styleThemeService;
|
|
317
318
|
ocPage: number;
|
|
318
319
|
ocMaxPage?: number;
|
|
320
|
+
ocStyle: OcStyleThemeType;
|
|
319
321
|
ocGetPage: EventEmitter<number>;
|
|
322
|
+
constructor(styleThemeService: StyleThemeService);
|
|
320
323
|
ngOnInit(): void;
|
|
321
324
|
firstPage(): void;
|
|
322
325
|
decrementPage(): void;
|
|
323
326
|
incrementPage(): void;
|
|
324
327
|
lastPage(): void;
|
|
325
328
|
static ɵfac: i0.ɵɵFactoryDeclaration<OcPaginationComponent, never>;
|
|
326
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OcPaginationComponent, "oc-pagination", never, { "ocPage": { "alias": "ocPage"; "required": false; }; "ocMaxPage": { "alias": "ocMaxPage"; "required": false; }; }, { "ocGetPage": "ocGetPage"; }, never, never, true, never>;
|
|
329
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcPaginationComponent, "oc-pagination", never, { "ocPage": { "alias": "ocPage"; "required": false; }; "ocMaxPage": { "alias": "ocMaxPage"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; }, { "ocGetPage": "ocGetPage"; }, never, never, true, never>;
|
|
327
330
|
}
|
|
328
331
|
|
|
329
332
|
declare class OcNotFoundComponent {
|
|
@@ -358,6 +361,44 @@ declare class OcMenuComponent implements OnInit {
|
|
|
358
361
|
static ɵcmp: i0.ɵɵComponentDeclaration<OcMenuComponent, "oc-menu", never, { "ocMenu": { "alias": "ocMenu"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
359
362
|
}
|
|
360
363
|
|
|
364
|
+
interface OcMenuHorizType extends Omit<OcMenuType, 'checked'> {
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
declare class OcMenuHorizComponent implements OnInit, OnDestroy {
|
|
368
|
+
private readonly renderer;
|
|
369
|
+
private readonly cdr;
|
|
370
|
+
constructor(renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
371
|
+
ocMenu: OcMenuHorizType[];
|
|
372
|
+
maxWidth?: string;
|
|
373
|
+
width?: string;
|
|
374
|
+
shouldCloseOnClick: boolean;
|
|
375
|
+
ocChange: EventEmitter<any>;
|
|
376
|
+
menuElement?: ElementRef<HTMLDivElement>;
|
|
377
|
+
itemsListElement?: ElementRef<HTMLUListElement>;
|
|
378
|
+
protected isMenuShown: boolean;
|
|
379
|
+
protected buttonId?: string;
|
|
380
|
+
protected visibleItems: OcMenuHorizType[];
|
|
381
|
+
protected overflowItems: OcMenuHorizType[];
|
|
382
|
+
protected showOverflowMenu: boolean;
|
|
383
|
+
private itemWidths;
|
|
384
|
+
private isInitialized;
|
|
385
|
+
private resizeObserverSubscription?;
|
|
386
|
+
open(): void;
|
|
387
|
+
close(): void;
|
|
388
|
+
ngOnInit(): void;
|
|
389
|
+
ngOnDestroy(): void;
|
|
390
|
+
private findParentButton;
|
|
391
|
+
private closeOnClickOut;
|
|
392
|
+
private measureItems;
|
|
393
|
+
private setupResizeObserver;
|
|
394
|
+
private initializeMenu;
|
|
395
|
+
private calculateVisibleItems;
|
|
396
|
+
protected toggleOverflowMenu(event: Event): void;
|
|
397
|
+
protected handleOverflowItemClick(callback?: () => void): void;
|
|
398
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcMenuHorizComponent, never>;
|
|
399
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcMenuHorizComponent, "oc-menu-horiz", never, { "ocMenu": { "alias": "ocMenu"; "required": false; }; "maxWidth": { "alias": "maxWidth"; "required": false; }; "width": { "alias": "width"; "required": false; }; "shouldCloseOnClick": { "alias": "shouldCloseOnClick"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
400
|
+
}
|
|
401
|
+
|
|
361
402
|
declare class OcToastComponent {
|
|
362
403
|
toast: OcToastService;
|
|
363
404
|
constructor(toast: OcToastService);
|
|
@@ -582,5 +623,5 @@ interface OcTableActionsType {
|
|
|
582
623
|
print: () => any;
|
|
583
624
|
}
|
|
584
625
|
|
|
585
|
-
export {
|
|
626
|
+
export { OcAccordionComponent, OcAccordionItemComponent, OcAutocompleteComponent, OcBadgeComponent, OcButtonMenuComponent, OcCheckboxComponent, OcChipComponent, OcDateSelectComponent, OcFilterComponent, OcInputComponent, OcKeyValueComponent, OcLogComponent, OcMenuComponent, OcMenuHorizComponent, OcMessageComponent, OcModalComponent, OcModalFooterComponent, OcNotFoundComponent, OcPaginationComponent, OcProfileComponent, OcProgressComponent, OcStepComponent, OcStepperComponent, OcTabComponent, OcTabsComponent, OcToastComponent, OcToastService, OcToggleComponent, OcTooltipDirective, OtimusLibraryComponent, OtimusLibraryService, StyleThemeService };
|
|
586
627
|
export type { OcAutoCompleteType, OcMenuType, OcStyleThemeType, OcTableType, ToastType };
|