otimus-library 0.3.9 → 0.3.11
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/README.md +26 -26
- package/fesm2022/otimus-library.mjs +297 -127
- package/fesm2022/otimus-library.mjs.map +1 -1
- package/index.d.ts +58 -19
- package/package.json +1 -1
- package/styles/colors.scss +70 -70
- package/styles/components/buttons/buttons.scss +225 -225
- package/styles/components/buttons/buttons.shui.scss +61 -61
- package/styles/components/index.scss +2 -2
- package/styles/components/inputs/inputs.scss +248 -248
- package/styles/components/inputs/inputs.shui.scss +212 -212
- package/styles/components/table/table.scss +98 -98
- package/styles/components/table/table.shui.scss +50 -50
- package/styles/components/tooltip.scss +26 -26
- package/styles/grid.scss +1122 -1122
- package/styles/patterns/shui/colors.shui.scss +154 -154
- package/styles/patterns/shui/fonts.shui.scss +65 -65
- package/styles/patterns/shui/index.shui.scss +24 -24
- package/styles/patterns/shui/variables.shui.scss +23 -23
- package/styles/states.scss +5 -5
- package/styles/styles.scss +46 -46
- package/styles/variables.scss +47 -47
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;
|
|
@@ -361,6 +361,45 @@ declare class OcMenuComponent implements OnInit {
|
|
|
361
361
|
static ɵcmp: i0.ɵɵComponentDeclaration<OcMenuComponent, "oc-menu", never, { "ocMenu": { "alias": "ocMenu"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
362
362
|
}
|
|
363
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
|
+
shouldCloseOnClickOut: boolean;
|
|
376
|
+
ocChange: EventEmitter<any>;
|
|
377
|
+
menuElement?: ElementRef<HTMLDivElement>;
|
|
378
|
+
itemsListElement?: ElementRef<HTMLUListElement>;
|
|
379
|
+
protected isMenuShown: boolean;
|
|
380
|
+
protected buttonId?: string;
|
|
381
|
+
protected visibleItems: OcMenuHorizType[];
|
|
382
|
+
protected overflowItems: OcMenuHorizType[];
|
|
383
|
+
protected showOverflowMenu: boolean;
|
|
384
|
+
private itemWidths;
|
|
385
|
+
private isInitialized;
|
|
386
|
+
private resizeObserverSubscription?;
|
|
387
|
+
open(): void;
|
|
388
|
+
close(): void;
|
|
389
|
+
ngOnInit(): void;
|
|
390
|
+
ngOnDestroy(): void;
|
|
391
|
+
private findParentButton;
|
|
392
|
+
private closeOnClickOut;
|
|
393
|
+
private measureItems;
|
|
394
|
+
private setupResizeObserver;
|
|
395
|
+
private initializeMenu;
|
|
396
|
+
private calculateVisibleItems;
|
|
397
|
+
protected toggleOverflowMenu(event: Event): void;
|
|
398
|
+
protected handleOverflowItemClick(callback?: () => void): void;
|
|
399
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcMenuHorizComponent, never>;
|
|
400
|
+
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; }; "shouldCloseOnClickOut": { "alias": "shouldCloseOnClickOut"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
401
|
+
}
|
|
402
|
+
|
|
364
403
|
declare class OcToastComponent {
|
|
365
404
|
toast: OcToastService;
|
|
366
405
|
constructor(toast: OcToastService);
|
|
@@ -585,5 +624,5 @@ interface OcTableActionsType {
|
|
|
585
624
|
print: () => any;
|
|
586
625
|
}
|
|
587
626
|
|
|
588
|
-
export {
|
|
627
|
+
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 };
|
|
589
628
|
export type { OcAutoCompleteType, OcMenuType, OcStyleThemeType, OcTableType, ToastType };
|
package/package.json
CHANGED
package/styles/colors.scss
CHANGED
|
@@ -1,71 +1,71 @@
|
|
|
1
|
-
@use './variables.scss';
|
|
2
|
-
|
|
3
|
-
.oc.color {
|
|
4
|
-
// Purple Colors
|
|
5
|
-
&.p-1 {
|
|
6
|
-
color: variables.$color-brand-p-1;
|
|
7
|
-
}
|
|
8
|
-
&.p-2 {
|
|
9
|
-
color: variables.$color-brand-dp-1;
|
|
10
|
-
}
|
|
11
|
-
&.p-3 {
|
|
12
|
-
color: variables.$color-brand-p-3;
|
|
13
|
-
}
|
|
14
|
-
&.p-4 {
|
|
15
|
-
color: variables.$color-brand-p-4;
|
|
16
|
-
}
|
|
17
|
-
&.p-5 {
|
|
18
|
-
color: variables.$color-brand-p-5;
|
|
19
|
-
}
|
|
20
|
-
&.p-6 {
|
|
21
|
-
color: variables.$color-brand-p-6;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
// Dark Purple Colors
|
|
25
|
-
&.dp-1 {
|
|
26
|
-
color: variables.$color-brand-dp-1;
|
|
27
|
-
}
|
|
28
|
-
&.dp-2 {
|
|
29
|
-
color: variables.$color-brand-dp-2;
|
|
30
|
-
}
|
|
31
|
-
&.dp-3 {
|
|
32
|
-
color: variables.$color-brand-dp-3;
|
|
33
|
-
}
|
|
34
|
-
&.dp-4 {
|
|
35
|
-
color: variables.$color-brand-dp-4;
|
|
36
|
-
}
|
|
37
|
-
&.dp-5 {
|
|
38
|
-
color: variables.$color-brand-dp-5;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
// Green Colors
|
|
42
|
-
&.g-1 {
|
|
43
|
-
color: variables.$color-brand-g-1;
|
|
44
|
-
}
|
|
45
|
-
&.g-2 {
|
|
46
|
-
color: variables.$color-brand-g-2;
|
|
47
|
-
}
|
|
48
|
-
&.g-3 {
|
|
49
|
-
color: variables.$color-brand-g-3;
|
|
50
|
-
}
|
|
51
|
-
&.g-4 {
|
|
52
|
-
color: variables.$color-brand-g-4;
|
|
53
|
-
}
|
|
54
|
-
&.g-5 {
|
|
55
|
-
color: variables.$color-brand-g-5;
|
|
56
|
-
}
|
|
57
|
-
&.g-6 {
|
|
58
|
-
color: variables.$color-brand-g-6;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// Status Colors
|
|
62
|
-
&.error {
|
|
63
|
-
color: variables.$color-error;
|
|
64
|
-
}
|
|
65
|
-
&.success {
|
|
66
|
-
color: variables.$color-success;
|
|
67
|
-
}
|
|
68
|
-
&.error {
|
|
69
|
-
color: variables.$color-error;
|
|
70
|
-
}
|
|
1
|
+
@use './variables.scss';
|
|
2
|
+
|
|
3
|
+
.oc.color {
|
|
4
|
+
// Purple Colors
|
|
5
|
+
&.p-1 {
|
|
6
|
+
color: variables.$color-brand-p-1;
|
|
7
|
+
}
|
|
8
|
+
&.p-2 {
|
|
9
|
+
color: variables.$color-brand-dp-1;
|
|
10
|
+
}
|
|
11
|
+
&.p-3 {
|
|
12
|
+
color: variables.$color-brand-p-3;
|
|
13
|
+
}
|
|
14
|
+
&.p-4 {
|
|
15
|
+
color: variables.$color-brand-p-4;
|
|
16
|
+
}
|
|
17
|
+
&.p-5 {
|
|
18
|
+
color: variables.$color-brand-p-5;
|
|
19
|
+
}
|
|
20
|
+
&.p-6 {
|
|
21
|
+
color: variables.$color-brand-p-6;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
// Dark Purple Colors
|
|
25
|
+
&.dp-1 {
|
|
26
|
+
color: variables.$color-brand-dp-1;
|
|
27
|
+
}
|
|
28
|
+
&.dp-2 {
|
|
29
|
+
color: variables.$color-brand-dp-2;
|
|
30
|
+
}
|
|
31
|
+
&.dp-3 {
|
|
32
|
+
color: variables.$color-brand-dp-3;
|
|
33
|
+
}
|
|
34
|
+
&.dp-4 {
|
|
35
|
+
color: variables.$color-brand-dp-4;
|
|
36
|
+
}
|
|
37
|
+
&.dp-5 {
|
|
38
|
+
color: variables.$color-brand-dp-5;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Green Colors
|
|
42
|
+
&.g-1 {
|
|
43
|
+
color: variables.$color-brand-g-1;
|
|
44
|
+
}
|
|
45
|
+
&.g-2 {
|
|
46
|
+
color: variables.$color-brand-g-2;
|
|
47
|
+
}
|
|
48
|
+
&.g-3 {
|
|
49
|
+
color: variables.$color-brand-g-3;
|
|
50
|
+
}
|
|
51
|
+
&.g-4 {
|
|
52
|
+
color: variables.$color-brand-g-4;
|
|
53
|
+
}
|
|
54
|
+
&.g-5 {
|
|
55
|
+
color: variables.$color-brand-g-5;
|
|
56
|
+
}
|
|
57
|
+
&.g-6 {
|
|
58
|
+
color: variables.$color-brand-g-6;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Status Colors
|
|
62
|
+
&.error {
|
|
63
|
+
color: variables.$color-error;
|
|
64
|
+
}
|
|
65
|
+
&.success {
|
|
66
|
+
color: variables.$color-success;
|
|
67
|
+
}
|
|
68
|
+
&.error {
|
|
69
|
+
color: variables.$color-error;
|
|
70
|
+
}
|
|
71
71
|
}
|