otimus-library 0.2.95 → 0.2.96
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 +224 -167
- package/fesm2022/otimus-library.mjs.map +1 -1
- package/index.d.ts +563 -5
- package/package.json +5 -7
- package/esm2022/lib/components/oc-accordion/oc-accordion.component.mjs +0 -48
- package/esm2022/lib/components/oc-accordion-item/oc-accordion-item.component.mjs +0 -35
- package/esm2022/lib/components/oc-autocomplete/oc-autocomplete.component.mjs +0 -373
- package/esm2022/lib/components/oc-badge/oc-badge.component.mjs +0 -30
- package/esm2022/lib/components/oc-button-menu/oc-button-menu.component.mjs +0 -45
- package/esm2022/lib/components/oc-checkbox/oc-checkbox.component.mjs +0 -140
- package/esm2022/lib/components/oc-chip/oc-chip.component.mjs +0 -48
- package/esm2022/lib/components/oc-date-select/data/months.json +0 -44
- package/esm2022/lib/components/oc-date-select/oc-date-select.component.mjs +0 -128
- package/esm2022/lib/components/oc-filter/oc-filter.component.mjs +0 -39
- package/esm2022/lib/components/oc-input/oc-input.component.mjs +0 -97
- package/esm2022/lib/components/oc-key-value/oc-key-value.component.mjs +0 -31
- package/esm2022/lib/components/oc-log/oc-log.component.mjs +0 -22
- package/esm2022/lib/components/oc-menu/oc-menu.component.mjs +0 -81
- package/esm2022/lib/components/oc-message/oc-message.component.mjs +0 -52
- package/esm2022/lib/components/oc-modal/oc-modal.component.mjs +0 -85
- package/esm2022/lib/components/oc-modal-footer/oc-modal-footer.component.mjs +0 -23
- package/esm2022/lib/components/oc-not-found/oc-not-found.component.mjs +0 -11
- package/esm2022/lib/components/oc-pagination/oc-pagination.component.mjs +0 -49
- package/esm2022/lib/components/oc-profile/oc-profile.component.mjs +0 -38
- package/esm2022/lib/components/oc-progress/oc-progress.component.mjs +0 -35
- package/esm2022/lib/components/oc-step/oc-step.component.mjs +0 -58
- package/esm2022/lib/components/oc-stepper/oc-stepper.component.mjs +0 -94
- package/esm2022/lib/components/oc-tab/oc-tab.component.mjs +0 -20
- package/esm2022/lib/components/oc-tabs/oc-tabs.component.mjs +0 -42
- package/esm2022/lib/components/oc-toast/oc-toast.component.mjs +0 -17
- package/esm2022/lib/components/oc-toggle/oc-toggle.component.mjs +0 -40
- package/esm2022/lib/directives/oc-tooltip/oc-tooltip.directive.mjs +0 -160
- package/esm2022/lib/interfaces/oc-autocomplete.mjs +0 -2
- package/esm2022/lib/interfaces/oc-menu.mjs +0 -2
- package/esm2022/lib/interfaces/oc-style-theme.mjs +0 -2
- package/esm2022/lib/interfaces/oc-toast.mjs +0 -2
- package/esm2022/lib/otimus-library.component.mjs +0 -19
- package/esm2022/lib/otimus-library.service.mjs +0 -14
- package/esm2022/lib/services/internationalization.service.mjs +0 -68
- package/esm2022/lib/services/oc-toast.service.mjs +0 -81
- package/esm2022/lib/services/style-theme.service.mjs +0 -21
- package/esm2022/otimus-library.mjs +0 -5
- package/esm2022/public-api.mjs +0 -34
- package/lib/components/oc-accordion/oc-accordion.component.d.ts +0 -18
- package/lib/components/oc-accordion-item/oc-accordion-item.component.d.ts +0 -12
- package/lib/components/oc-autocomplete/oc-autocomplete.component.d.ts +0 -83
- package/lib/components/oc-badge/oc-badge.component.d.ts +0 -11
- package/lib/components/oc-button-menu/oc-button-menu.component.d.ts +0 -14
- package/lib/components/oc-checkbox/oc-checkbox.component.d.ts +0 -37
- package/lib/components/oc-chip/oc-chip.component.d.ts +0 -15
- package/lib/components/oc-date-select/oc-date-select.component.d.ts +0 -26
- package/lib/components/oc-filter/oc-filter.component.d.ts +0 -17
- package/lib/components/oc-input/oc-input.component.d.ts +0 -31
- package/lib/components/oc-key-value/oc-key-value.component.d.ts +0 -16
- package/lib/components/oc-log/oc-log.component.d.ts +0 -7
- package/lib/components/oc-menu/oc-menu.component.d.ts +0 -20
- package/lib/components/oc-message/oc-message.component.d.ts +0 -17
- package/lib/components/oc-modal/oc-modal.component.d.ts +0 -30
- package/lib/components/oc-modal-footer/oc-modal-footer.component.d.ts +0 -8
- package/lib/components/oc-not-found/oc-not-found.component.d.ts +0 -5
- package/lib/components/oc-pagination/oc-pagination.component.d.ts +0 -14
- package/lib/components/oc-profile/oc-profile.component.d.ts +0 -12
- package/lib/components/oc-progress/oc-progress.component.d.ts +0 -12
- package/lib/components/oc-step/oc-step.component.d.ts +0 -24
- package/lib/components/oc-stepper/oc-stepper.component.d.ts +0 -25
- package/lib/components/oc-tab/oc-tab.component.d.ts +0 -8
- package/lib/components/oc-tabs/oc-tabs.component.d.ts +0 -18
- package/lib/components/oc-toast/oc-toast.component.d.ts +0 -8
- package/lib/components/oc-toggle/oc-toggle.component.d.ts +0 -14
- package/lib/directives/oc-tooltip/oc-tooltip.directive.d.ts +0 -24
- package/lib/interfaces/oc-autocomplete.d.ts +0 -9
- package/lib/interfaces/oc-menu.d.ts +0 -9
- package/lib/interfaces/oc-style-theme.d.ts +0 -2
- package/lib/interfaces/oc-toast.d.ts +0 -8
- package/lib/otimus-library.component.d.ts +0 -5
- package/lib/otimus-library.service.d.ts +0 -6
- package/lib/services/internationalization.service.d.ts +0 -17
- package/lib/services/oc-toast.service.d.ts +0 -14
- package/lib/services/style-theme.service.d.ts +0 -8
- package/public-api.d.ts +0 -30
package/index.d.ts
CHANGED
|
@@ -1,5 +1,563 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, AfterViewInit, OnDestroy, OnChanges, ElementRef, Renderer2, NgZone, ChangeDetectorRef, SimpleChanges, AfterContentChecked, EventEmitter, QueryList, AfterContentInit } from '@angular/core';
|
|
3
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
4
|
+
import { MaterialSymbol } from 'material-symbols';
|
|
5
|
+
import * as rxjs from 'rxjs';
|
|
6
|
+
import { HttpClient } from '@angular/common/http';
|
|
7
|
+
import { ControlValueAccessor, FormControl } from '@angular/forms';
|
|
8
|
+
|
|
9
|
+
declare class OtimusLibraryService {
|
|
10
|
+
constructor();
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OtimusLibraryService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OtimusLibraryService>;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare class OtimusLibraryComponent {
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OtimusLibraryComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OtimusLibraryComponent, "lib-otimus-library", never, {}, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface ToastType {
|
|
21
|
+
id: number;
|
|
22
|
+
status: string;
|
|
23
|
+
message: string;
|
|
24
|
+
counter: number;
|
|
25
|
+
promiseKey?: string;
|
|
26
|
+
hasAnimation?: boolean;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
type ToastStatusType = 'erro' | 'error' | 'success' | 'éxito' | 'sucesso' | 'carregando' | 'cargando' | 'loading' | 'informação' | 'información' | 'information';
|
|
30
|
+
declare class OcToastService {
|
|
31
|
+
toastList: ToastType[];
|
|
32
|
+
isRunning: boolean;
|
|
33
|
+
currentToast: ToastType;
|
|
34
|
+
closeToast(id: number): void;
|
|
35
|
+
openToast: (toastStatus: ToastStatusType, toastMessage: string, toastCounter?: number, promiseKey?: string) => void;
|
|
36
|
+
renderToasts(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcToastService, never>;
|
|
38
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<OcToastService>;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare class OcBadgeComponent implements OnInit {
|
|
42
|
+
ocSize: 'small' | 'medium' | 'large';
|
|
43
|
+
ocColor: 'notification' | 'brand-g' | 'brand-p' | 'success' | 'warning';
|
|
44
|
+
ocWaved: boolean;
|
|
45
|
+
classList: string[];
|
|
46
|
+
ngOnInit(): void;
|
|
47
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcBadgeComponent, never>;
|
|
48
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcBadgeComponent, "oc-badge", never, { "ocSize": { "alias": "ocSize"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; "ocWaved": { "alias": "ocWaved"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
type OcStyleThemeType = 'otimus' | 'shui' | 'semantic';
|
|
52
|
+
|
|
53
|
+
declare class StyleThemeService {
|
|
54
|
+
constructor();
|
|
55
|
+
getStyleTheme(): OcStyleThemeType | undefined;
|
|
56
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StyleThemeService, never>;
|
|
57
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StyleThemeService>;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
declare class OcFilterComponent implements AfterViewInit {
|
|
61
|
+
private styleThemeService;
|
|
62
|
+
isOpen: boolean;
|
|
63
|
+
ocText: string;
|
|
64
|
+
ocActive: number;
|
|
65
|
+
ocSide: 'left' | 'right';
|
|
66
|
+
ocStyle: OcStyleThemeType;
|
|
67
|
+
constructor(styleThemeService: StyleThemeService);
|
|
68
|
+
ngAfterViewInit(): void;
|
|
69
|
+
toggleOpen(): void;
|
|
70
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcFilterComponent, never>;
|
|
71
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcFilterComponent, "oc-filter", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "ocText": { "alias": "ocText"; "required": false; }; "ocActive": { "alias": "ocActive"; "required": false; }; "ocSide": { "alias": "ocSide"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; }, {}, never, ["[row]", "[body]"], true, never>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
declare class OcTooltipDirective implements OnDestroy, OnChanges, AfterViewInit {
|
|
75
|
+
private elRef;
|
|
76
|
+
private renderer;
|
|
77
|
+
private zone;
|
|
78
|
+
private cdr;
|
|
79
|
+
content: string;
|
|
80
|
+
side: 'bottom' | 'upon' | 'left' | 'right' | 'top' | 'mouse';
|
|
81
|
+
private tooltip;
|
|
82
|
+
private moveScheduled;
|
|
83
|
+
private contentIsHtml;
|
|
84
|
+
private lastContent;
|
|
85
|
+
private boundMouseOver;
|
|
86
|
+
private boundMouseMove;
|
|
87
|
+
private boundMouseOut;
|
|
88
|
+
constructor(elRef: ElementRef, renderer: Renderer2, zone: NgZone, cdr: ChangeDetectorRef);
|
|
89
|
+
ngAfterViewInit(): void;
|
|
90
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
91
|
+
private setupEventBindings;
|
|
92
|
+
private createTooltip;
|
|
93
|
+
private updateTooltipContent;
|
|
94
|
+
onMouseOver(event: MouseEvent): void;
|
|
95
|
+
onMouseMove(event: MouseEvent): void;
|
|
96
|
+
onMouseOut(event: MouseEvent): void;
|
|
97
|
+
private updateTooltipPosition;
|
|
98
|
+
private positionTooltipFixed;
|
|
99
|
+
ngOnDestroy(): void;
|
|
100
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcTooltipDirective, never>;
|
|
101
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<OcTooltipDirective, "[ocTooltip]", never, { "content": { "alias": "content"; "required": false; }; "side": { "alias": "side"; "required": false; }; }, {}, never, never, true, never>;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
declare class OcInputComponent implements AfterViewInit, OnChanges, AfterContentChecked {
|
|
105
|
+
private el;
|
|
106
|
+
private renderer;
|
|
107
|
+
private styleThemeService;
|
|
108
|
+
ocPrefix: any;
|
|
109
|
+
ocSuffix: any;
|
|
110
|
+
ocError?: string;
|
|
111
|
+
ocSize?: 'small' | 'medium' | 'large';
|
|
112
|
+
ocPlaceholder: string;
|
|
113
|
+
ocWidth?: string;
|
|
114
|
+
ocMinWidth?: string;
|
|
115
|
+
ocMaxWidth?: string;
|
|
116
|
+
ocRequired: boolean;
|
|
117
|
+
ocStyle: OcStyleThemeType;
|
|
118
|
+
inputId: string;
|
|
119
|
+
hasSuffix: boolean;
|
|
120
|
+
hasPrefix: boolean;
|
|
121
|
+
get computedWidth(): string | null;
|
|
122
|
+
get computedMinWidth(): string;
|
|
123
|
+
get computedMaxWidth(): string;
|
|
124
|
+
constructor(el: ElementRef, renderer: Renderer2, styleThemeService: StyleThemeService);
|
|
125
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
126
|
+
ngAfterViewInit(): void;
|
|
127
|
+
ngAfterContentChecked(): void;
|
|
128
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcInputComponent, never>;
|
|
129
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcInputComponent, "oc-input", never, { "ocError": { "alias": "ocError"; "required": false; }; "ocSize": { "alias": "ocSize"; "required": false; }; "ocPlaceholder": { "alias": "ocPlaceholder"; "required": false; }; "ocWidth": { "alias": "ocWidth"; "required": false; }; "ocMinWidth": { "alias": "ocMinWidth"; "required": false; }; "ocMaxWidth": { "alias": "ocMaxWidth"; "required": false; }; "ocRequired": { "alias": "ocRequired"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; }, {}, ["ocPrefix", "ocSuffix"], ["*", "ocPrefix", "ocSuffix"], true, never>;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
declare class OcModalComponent implements AfterViewInit {
|
|
133
|
+
private elRef;
|
|
134
|
+
private styleThemeService;
|
|
135
|
+
private cdr;
|
|
136
|
+
constructor(elRef: ElementRef, styleThemeService: StyleThemeService, cdr: ChangeDetectorRef);
|
|
137
|
+
ocClose: boolean;
|
|
138
|
+
ocTitle: string;
|
|
139
|
+
ocSize: 'small' | 'medium' | 'large' | 'screen';
|
|
140
|
+
ocBgColor?: string;
|
|
141
|
+
ocWidth: string;
|
|
142
|
+
ocMaxWidth: string;
|
|
143
|
+
ocStyle: OcStyleThemeType;
|
|
144
|
+
ocLoading: boolean;
|
|
145
|
+
ocOnClose: EventEmitter<any>;
|
|
146
|
+
ocOnOpen: EventEmitter<any>;
|
|
147
|
+
isOpen: boolean;
|
|
148
|
+
closing: boolean;
|
|
149
|
+
ngAfterViewInit(): void;
|
|
150
|
+
open(): void;
|
|
151
|
+
close(): void;
|
|
152
|
+
protected getModalStyles(): {
|
|
153
|
+
[key: string]: string;
|
|
154
|
+
};
|
|
155
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcModalComponent, never>;
|
|
156
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcModalComponent, "oc-modal", never, { "ocClose": { "alias": "ocClose"; "required": false; }; "ocTitle": { "alias": "ocTitle"; "required": false; }; "ocSize": { "alias": "ocSize"; "required": false; }; "ocBgColor": { "alias": "ocBgColor"; "required": false; }; "ocWidth": { "alias": "ocWidth"; "required": false; }; "ocMaxWidth": { "alias": "ocMaxWidth"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "ocLoading": { "alias": "ocLoading"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "ocOnClose": "ocOnClose"; "ocOnOpen": "ocOnOpen"; }, never, ["*"], true, never>;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
declare class OcKeyValueComponent implements AfterViewInit {
|
|
160
|
+
private styleThemeService;
|
|
161
|
+
protected sanitizer: DomSanitizer;
|
|
162
|
+
constructor(styleThemeService: StyleThemeService, sanitizer: DomSanitizer);
|
|
163
|
+
ocKey: string;
|
|
164
|
+
ocValue: string;
|
|
165
|
+
ocStyle: OcStyleThemeType;
|
|
166
|
+
ngAfterViewInit(): void;
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcKeyValueComponent, never>;
|
|
168
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcKeyValueComponent, "oc-key-value", never, { "ocKey": { "alias": "ocKey"; "required": false; }; "ocValue": { "alias": "ocValue"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
declare class OcChipComponent {
|
|
172
|
+
ocSelected: boolean;
|
|
173
|
+
ocType: 'select' | 'remove' | 'tag' | 'select_remove';
|
|
174
|
+
ocBg: 'green' | 'red' | 'yellow' | 'default';
|
|
175
|
+
ocText: string;
|
|
176
|
+
ocFontSize: string;
|
|
177
|
+
ocClick: EventEmitter<any>;
|
|
178
|
+
ocRemove: EventEmitter<any>;
|
|
179
|
+
ocEvent(event: any): void;
|
|
180
|
+
ocRemoveEvent(event: any): void;
|
|
181
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcChipComponent, never>;
|
|
182
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcChipComponent, "oc-chip", never, { "ocSelected": { "alias": "ocSelected"; "required": false; }; "ocType": { "alias": "ocType"; "required": false; }; "ocBg": { "alias": "ocBg"; "required": false; }; "ocText": { "alias": "ocText"; "required": false; }; "ocFontSize": { "alias": "ocFontSize"; "required": false; }; }, { "ocClick": "ocClick"; "ocRemove": "ocRemove"; }, never, ["*"], true, never>;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
declare class OcModalFooterComponent {
|
|
186
|
+
ocSide: 'left' | 'right';
|
|
187
|
+
ocBgColor?: string;
|
|
188
|
+
ocFixed: boolean;
|
|
189
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcModalFooterComponent, never>;
|
|
190
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcModalFooterComponent, "oc-modal-footer", never, { "ocSide": { "alias": "ocSide"; "required": false; }; "ocBgColor": { "alias": "ocBgColor"; "required": false; }; "ocFixed": { "alias": "ocFixed"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
interface OcAutoCompleteType {
|
|
194
|
+
name: string;
|
|
195
|
+
value?: any;
|
|
196
|
+
icon?: MaterialSymbol;
|
|
197
|
+
iconSize?: string;
|
|
198
|
+
counter?: number;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
declare class InternationalizationService {
|
|
202
|
+
private http;
|
|
203
|
+
constructor(http: HttpClient);
|
|
204
|
+
private queryLang;
|
|
205
|
+
getTranslation(code: string | number, params?: {
|
|
206
|
+
[key: string]: string | number;
|
|
207
|
+
} | null): string;
|
|
208
|
+
getTranslationsByLanguage(): rxjs.Subscription | undefined;
|
|
209
|
+
canUpdateStoredLanguages(): boolean;
|
|
210
|
+
setLanguage(language: string): void;
|
|
211
|
+
setUpdatedLastTime(): void;
|
|
212
|
+
setLanguages(translations: Object): void;
|
|
213
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InternationalizationService, never>;
|
|
214
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<InternationalizationService>;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
declare class OcAutocompleteComponent implements AfterViewInit, OnChanges, AfterContentChecked, OnInit {
|
|
218
|
+
private renderer;
|
|
219
|
+
private el;
|
|
220
|
+
private translateService;
|
|
221
|
+
private styleThemeService;
|
|
222
|
+
private cdr;
|
|
223
|
+
constructor(renderer: Renderer2, el: ElementRef, translateService: InternationalizationService, styleThemeService: StyleThemeService, cdr: ChangeDetectorRef);
|
|
224
|
+
input: ElementRef;
|
|
225
|
+
options: ElementRef;
|
|
226
|
+
outerDiv: ElementRef<HTMLDivElement>;
|
|
227
|
+
listOptionsElements: QueryList<ElementRef<HTMLLIElement>>;
|
|
228
|
+
ocPrefix: any;
|
|
229
|
+
ocSuffix: any;
|
|
230
|
+
private _ocData;
|
|
231
|
+
set ocData(value: OcAutoCompleteType[]);
|
|
232
|
+
get ocData(): OcAutoCompleteType[];
|
|
233
|
+
ocPlaceholder?: string;
|
|
234
|
+
ocError?: string;
|
|
235
|
+
ocSize: 'small' | 'large' | 'medium';
|
|
236
|
+
ocValue: any;
|
|
237
|
+
ocClearOnChange: boolean;
|
|
238
|
+
ocWidth?: string;
|
|
239
|
+
ocMinWidth?: string;
|
|
240
|
+
ocMaxWidth?: string;
|
|
241
|
+
ocOptionsMaxHeight?: string;
|
|
242
|
+
ocOptionsWidth?: string;
|
|
243
|
+
ocRequired: boolean;
|
|
244
|
+
ocMaxResults?: number;
|
|
245
|
+
ocAllowNotListedValue: boolean;
|
|
246
|
+
ocNoAvailableOptionsText?: string;
|
|
247
|
+
ocTypeForMoreResultsText?: string;
|
|
248
|
+
ocLoading: boolean;
|
|
249
|
+
ocSemanticLike: boolean;
|
|
250
|
+
ocStyle: OcStyleThemeType;
|
|
251
|
+
ocTabIndex?: number;
|
|
252
|
+
iconSize: 'small' | 'medium' | 'large';
|
|
253
|
+
ocSelectByTyping: boolean;
|
|
254
|
+
ocDisabled: boolean;
|
|
255
|
+
ocType: 'counterSelect' | 'default';
|
|
256
|
+
ocHasDeleteButton?: boolean;
|
|
257
|
+
ocEnableKeyboard: boolean;
|
|
258
|
+
ocValueChange: EventEmitter<string>;
|
|
259
|
+
ocChange: EventEmitter<string | null>;
|
|
260
|
+
ocCounterSelectChange: EventEmitter<OcAutoCompleteType[]>;
|
|
261
|
+
ocOptionNotFound: EventEmitter<any>;
|
|
262
|
+
ocClick: EventEmitter<any>;
|
|
263
|
+
hasSuffix: boolean;
|
|
264
|
+
hasPrefix: boolean;
|
|
265
|
+
isOptionsShown: boolean;
|
|
266
|
+
filteredData: OcAutoCompleteType[];
|
|
267
|
+
selectedValue: OcAutoCompleteType;
|
|
268
|
+
selectedIndex: number;
|
|
269
|
+
get computedWidth(): string | null;
|
|
270
|
+
get computedMinWidth(): string;
|
|
271
|
+
get computedMaxWidth(): string;
|
|
272
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
273
|
+
ngOnInit(): void;
|
|
274
|
+
ngAfterViewInit(): void;
|
|
275
|
+
ngAfterContentChecked(): void;
|
|
276
|
+
formatOcValueType(): string | null;
|
|
277
|
+
getTranslation(code: number | string): string;
|
|
278
|
+
loadOptions(): void;
|
|
279
|
+
closeOnClickOut(): void;
|
|
280
|
+
findByTyping(): void;
|
|
281
|
+
filterData(name: string): void;
|
|
282
|
+
getFormattedName(str: string): string;
|
|
283
|
+
toggleOptions(): void;
|
|
284
|
+
selectValue(value: any): void;
|
|
285
|
+
clearValue(): void;
|
|
286
|
+
protected incrementCounter(option: OcAutoCompleteType): void;
|
|
287
|
+
protected decrementCounter(option: OcAutoCompleteType): void;
|
|
288
|
+
emitCounterSelectChange(): void;
|
|
289
|
+
moveSelection(delta: number): void;
|
|
290
|
+
protected onKeyDown(event: Event): void;
|
|
291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcAutocompleteComponent, never>;
|
|
292
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcAutocompleteComponent, "oc-autocomplete", never, { "ocData": { "alias": "ocData"; "required": false; }; "ocPlaceholder": { "alias": "ocPlaceholder"; "required": false; }; "ocError": { "alias": "ocError"; "required": false; }; "ocSize": { "alias": "ocSize"; "required": false; }; "ocValue": { "alias": "ocValue"; "required": false; }; "ocClearOnChange": { "alias": "ocClearOnChange"; "required": false; }; "ocWidth": { "alias": "ocWidth"; "required": false; }; "ocMinWidth": { "alias": "ocMinWidth"; "required": false; }; "ocMaxWidth": { "alias": "ocMaxWidth"; "required": false; }; "ocOptionsMaxHeight": { "alias": "ocOptionsMaxHeight"; "required": false; }; "ocOptionsWidth": { "alias": "ocOptionsWidth"; "required": false; }; "ocRequired": { "alias": "ocRequired"; "required": false; }; "ocMaxResults": { "alias": "ocMaxResults"; "required": false; }; "ocAllowNotListedValue": { "alias": "ocAllowNotListedValue"; "required": false; }; "ocNoAvailableOptionsText": { "alias": "ocNoAvailableOptionsText"; "required": false; }; "ocTypeForMoreResultsText": { "alias": "ocTypeForMoreResultsText"; "required": false; }; "ocLoading": { "alias": "ocLoading"; "required": false; }; "ocSemanticLike": { "alias": "ocSemanticLike"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "ocTabIndex": { "alias": "ocTabIndex"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "ocSelectByTyping": { "alias": "ocSelectByTyping"; "required": false; }; "ocDisabled": { "alias": "ocDisabled"; "required": false; }; "ocType": { "alias": "ocType"; "required": false; }; "ocHasDeleteButton": { "alias": "ocHasDeleteButton"; "required": false; }; "ocEnableKeyboard": { "alias": "ocEnableKeyboard"; "required": false; }; }, { "ocValueChange": "ocValueChange"; "ocChange": "ocChange"; "ocCounterSelectChange": "ocCounterSelectChange"; "ocOptionNotFound": "ocOptionNotFound"; "ocClick": "ocClick"; }, ["ocPrefix", "ocSuffix"], ["*", "ocPrefix", "ocSuffix"], true, never>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
declare class OcProfileComponent implements OnInit {
|
|
296
|
+
ocUserName?: string;
|
|
297
|
+
ocProfilePic?: string;
|
|
298
|
+
ocSize: 'large' | 'medium' | 'small' | 'tiny';
|
|
299
|
+
nameInitials: string;
|
|
300
|
+
ngOnInit(): void;
|
|
301
|
+
getInitials(): void;
|
|
302
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcProfileComponent, never>;
|
|
303
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcProfileComponent, "oc-profile", never, { "ocUserName": { "alias": "ocUserName"; "required": false; }; "ocProfilePic": { "alias": "ocProfilePic"; "required": false; }; "ocSize": { "alias": "ocSize"; "required": false; }; }, {}, never, never, true, never>;
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
declare class OcLogComponent {
|
|
307
|
+
ocProfilePic?: string;
|
|
308
|
+
ocUserName?: string;
|
|
309
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcLogComponent, never>;
|
|
310
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcLogComponent, "oc-log", never, { "ocProfilePic": { "alias": "ocProfilePic"; "required": false; }; "ocUserName": { "alias": "ocUserName"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
declare class OcPaginationComponent implements OnInit {
|
|
314
|
+
ocPage: number;
|
|
315
|
+
ocMaxPage?: number;
|
|
316
|
+
ocGetPage: EventEmitter<number>;
|
|
317
|
+
ngOnInit(): void;
|
|
318
|
+
firstPage(): void;
|
|
319
|
+
decrementPage(): void;
|
|
320
|
+
incrementPage(): void;
|
|
321
|
+
lastPage(): void;
|
|
322
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcPaginationComponent, never>;
|
|
323
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcPaginationComponent, "oc-pagination", never, { "ocPage": { "alias": "ocPage"; "required": false; }; "ocMaxPage": { "alias": "ocMaxPage"; "required": false; }; }, { "ocGetPage": "ocGetPage"; }, never, never, true, never>;
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
declare class OcNotFoundComponent {
|
|
327
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcNotFoundComponent, never>;
|
|
328
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcNotFoundComponent, "oc-not-found", never, {}, {}, never, never, true, never>;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
interface OcMenuType {
|
|
332
|
+
name: string;
|
|
333
|
+
url?: string;
|
|
334
|
+
callback?: any;
|
|
335
|
+
targetBlank?: boolean;
|
|
336
|
+
icon?: string;
|
|
337
|
+
checked?: boolean;
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
declare class OcMenuComponent implements OnInit {
|
|
341
|
+
private renderer;
|
|
342
|
+
constructor(renderer: Renderer2);
|
|
343
|
+
menu: ElementRef;
|
|
344
|
+
ocChange: EventEmitter<any>;
|
|
345
|
+
ocMenu: OcMenuType[];
|
|
346
|
+
isMenuShown: boolean;
|
|
347
|
+
buttonId?: string;
|
|
348
|
+
open(): void;
|
|
349
|
+
ngOnInit(): void;
|
|
350
|
+
findParentButton(element: HTMLElement): HTMLButtonElement | null;
|
|
351
|
+
closeOnClickOut(): void;
|
|
352
|
+
changeCheckbox(name: string, checked: boolean): undefined;
|
|
353
|
+
typeof(key: any): "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function";
|
|
354
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcMenuComponent, never>;
|
|
355
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcMenuComponent, "oc-menu", never, { "ocMenu": { "alias": "ocMenu"; "required": false; }; }, { "ocChange": "ocChange"; }, never, never, true, never>;
|
|
356
|
+
}
|
|
357
|
+
|
|
358
|
+
declare class OcToastComponent {
|
|
359
|
+
toast: OcToastService;
|
|
360
|
+
constructor(toast: OcToastService);
|
|
361
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcToastComponent, never>;
|
|
362
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcToastComponent, "oc-toast", never, {}, {}, never, never, true, never>;
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
declare class OcCheckboxComponent implements ControlValueAccessor, AfterViewInit {
|
|
366
|
+
private styleThemeService;
|
|
367
|
+
private cdr;
|
|
368
|
+
checkBoxId: string;
|
|
369
|
+
constructor(styleThemeService: StyleThemeService, cdr: ChangeDetectorRef);
|
|
370
|
+
ocChange: EventEmitter<boolean>;
|
|
371
|
+
ocCheckedChange: EventEmitter<boolean>;
|
|
372
|
+
ocChecked: boolean;
|
|
373
|
+
ocSize: 'tiny' | 'small';
|
|
374
|
+
ocLabel?: string;
|
|
375
|
+
ocName?: string;
|
|
376
|
+
ocColor: 'purple' | 'green';
|
|
377
|
+
ocBorderColor: 'white' | 'gray';
|
|
378
|
+
ocStyle: OcStyleThemeType;
|
|
379
|
+
ocDoubleClick: EventEmitter<boolean>;
|
|
380
|
+
formControl?: FormControl;
|
|
381
|
+
ocTabIndex?: number;
|
|
382
|
+
disableDoubleClickCheck: boolean;
|
|
383
|
+
ocDisabled: boolean;
|
|
384
|
+
private onChange?;
|
|
385
|
+
private onTouched;
|
|
386
|
+
ngAfterViewInit(): void;
|
|
387
|
+
writeValue(value: boolean): void;
|
|
388
|
+
registerOnChange(fn: (value: boolean) => void): void;
|
|
389
|
+
registerOnTouched(fn: () => void): void;
|
|
390
|
+
private doubleClickCounter;
|
|
391
|
+
private timeoutId;
|
|
392
|
+
protected onDoubleClick(): void;
|
|
393
|
+
toggleChecked(): void;
|
|
394
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcCheckboxComponent, never>;
|
|
395
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcCheckboxComponent, "oc-checkbox", never, { "ocChecked": { "alias": "ocChecked"; "required": false; }; "ocSize": { "alias": "ocSize"; "required": false; }; "ocLabel": { "alias": "ocLabel"; "required": false; }; "ocName": { "alias": "ocName"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; "ocBorderColor": { "alias": "ocBorderColor"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "ocTabIndex": { "alias": "ocTabIndex"; "required": false; }; "disableDoubleClickCheck": { "alias": "disableDoubleClickCheck"; "required": false; }; "ocDisabled": { "alias": "ocDisabled"; "required": false; }; }, { "ocChange": "ocChange"; "ocCheckedChange": "ocCheckedChange"; "ocDoubleClick": "ocDoubleClick"; }, never, ["*"], true, never>;
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
declare class OcToggleComponent {
|
|
399
|
+
_ocChecked: boolean;
|
|
400
|
+
ocDisabled: boolean;
|
|
401
|
+
ocSize: 'medium' | 'large';
|
|
402
|
+
set ocChecked(value: boolean);
|
|
403
|
+
get ocChecked(): boolean;
|
|
404
|
+
ocColor: 'purple' | 'green';
|
|
405
|
+
ocCheckedChange: EventEmitter<boolean>;
|
|
406
|
+
toggleChecked(): void;
|
|
407
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcToggleComponent, never>;
|
|
408
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcToggleComponent, "oc-toggle", never, { "ocDisabled": { "alias": "ocDisabled"; "required": false; }; "ocSize": { "alias": "ocSize"; "required": false; }; "ocChecked": { "alias": "ocChecked"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; }, { "ocCheckedChange": "ocCheckedChange"; }, never, never, true, never>;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
declare class OcStepComponent implements AfterViewInit {
|
|
412
|
+
private styleThemeService;
|
|
413
|
+
constructor(styleThemeService: StyleThemeService);
|
|
414
|
+
ocIsActive: boolean;
|
|
415
|
+
ocTitle: string;
|
|
416
|
+
ocColor: 'purple' | 'green';
|
|
417
|
+
ocCompleted: boolean;
|
|
418
|
+
ocStyle: OcStyleThemeType;
|
|
419
|
+
ocType: 'history' | 'default';
|
|
420
|
+
ocExpandable?: boolean;
|
|
421
|
+
ocClick: EventEmitter<any>;
|
|
422
|
+
stepIndex: number;
|
|
423
|
+
selectedIndex: number;
|
|
424
|
+
lastIndex: number;
|
|
425
|
+
ngAfterViewInit(): void;
|
|
426
|
+
protected handleStepClick(stepIndex: number): void;
|
|
427
|
+
selectStep: (index: number) => void;
|
|
428
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcStepComponent, never>;
|
|
429
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcStepComponent, "oc-step", never, { "ocIsActive": { "alias": "ocIsActive"; "required": false; }; "ocTitle": { "alias": "ocTitle"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; "ocCompleted": { "alias": "ocCompleted"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "ocType": { "alias": "ocType"; "required": false; }; "ocExpandable": { "alias": "ocExpandable"; "required": false; }; "selectStep": { "alias": "selectStep"; "required": false; }; }, { "ocClick": "ocClick"; }, never, ["*"], true, never>;
|
|
430
|
+
}
|
|
431
|
+
|
|
432
|
+
declare class OcStepperComponent implements AfterViewInit {
|
|
433
|
+
private styleThemeService;
|
|
434
|
+
constructor(styleThemeService: StyleThemeService);
|
|
435
|
+
ocSteps: QueryList<OcStepComponent>;
|
|
436
|
+
ocAllowNavigation: boolean;
|
|
437
|
+
ocColor: 'purple' | 'green';
|
|
438
|
+
ocCurrentIndex: number;
|
|
439
|
+
ocSaveCompletedSteps: boolean;
|
|
440
|
+
ocStyle: OcStyleThemeType;
|
|
441
|
+
ocType: 'history' | 'default';
|
|
442
|
+
private completedSteps;
|
|
443
|
+
ngAfterViewInit(): void;
|
|
444
|
+
private setCompletedSteps;
|
|
445
|
+
setStepsValues(): void;
|
|
446
|
+
selectStep(index: number): void;
|
|
447
|
+
nextStep(event: Event): void;
|
|
448
|
+
previousStep(event: Event): void;
|
|
449
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcStepperComponent, never>;
|
|
450
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcStepperComponent, "oc-stepper", never, { "ocAllowNavigation": { "alias": "ocAllowNavigation"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; "ocCurrentIndex": { "alias": "ocCurrentIndex"; "required": false; }; "ocSaveCompletedSteps": { "alias": "ocSaveCompletedSteps"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "ocType": { "alias": "ocType"; "required": false; }; }, {}, ["ocSteps"], ["*"], true, never>;
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
declare class OcTabComponent {
|
|
454
|
+
ocTitle: string;
|
|
455
|
+
ocIsActive: boolean;
|
|
456
|
+
tabIndex: number;
|
|
457
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcTabComponent, never>;
|
|
458
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcTabComponent, "oc-tab", never, { "ocTitle": { "alias": "ocTitle"; "required": false; }; "ocIsActive": { "alias": "ocIsActive"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
declare class OcTabsComponent implements AfterContentInit {
|
|
462
|
+
private styleThemeService;
|
|
463
|
+
constructor(styleThemeService: StyleThemeService);
|
|
464
|
+
ocTabs: QueryList<OcTabComponent>;
|
|
465
|
+
ocStyle: OcStyleThemeType;
|
|
466
|
+
ocClick: EventEmitter<void>;
|
|
467
|
+
activeTabIndex: number;
|
|
468
|
+
ngAfterContentInit(): void;
|
|
469
|
+
selectTab(index: number): void;
|
|
470
|
+
handleTabClick(): void;
|
|
471
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcTabsComponent, never>;
|
|
472
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcTabsComponent, "oc-tabs", never, { "ocStyle": { "alias": "ocStyle"; "required": false; }; }, { "ocClick": "ocClick"; }, ["ocTabs"], ["[row]", "*"], true, never>;
|
|
473
|
+
}
|
|
474
|
+
|
|
475
|
+
declare class OcAccordionItemComponent {
|
|
476
|
+
ocIsOpen: boolean;
|
|
477
|
+
ocTitle: string;
|
|
478
|
+
ocStyle: OcStyleThemeType;
|
|
479
|
+
closeAllItems: EventEmitter<any>;
|
|
480
|
+
protected toggle(): void;
|
|
481
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcAccordionItemComponent, never>;
|
|
482
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcAccordionItemComponent, "oc-accordion-item", never, { "ocIsOpen": { "alias": "ocIsOpen"; "required": false; }; "ocTitle": { "alias": "ocTitle"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; }, { "closeAllItems": "closeAllItems"; }, never, ["[ocHeader]", "*"], true, never>;
|
|
483
|
+
}
|
|
484
|
+
|
|
485
|
+
declare class OcAccordionComponent implements AfterViewInit {
|
|
486
|
+
private styleThemeService;
|
|
487
|
+
items: QueryList<OcAccordionItemComponent>;
|
|
488
|
+
ocAlternate: boolean;
|
|
489
|
+
ocCurrentIndex?: number;
|
|
490
|
+
ocStyle: OcStyleThemeType;
|
|
491
|
+
constructor(styleThemeService: StyleThemeService);
|
|
492
|
+
ngAfterViewInit(): void;
|
|
493
|
+
closeAllItems(): void;
|
|
494
|
+
alternateToIndex(index: number): void;
|
|
495
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcAccordionComponent, never>;
|
|
496
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcAccordionComponent, "oc-accordion", never, { "ocAlternate": { "alias": "ocAlternate"; "required": false; }; "ocCurrentIndex": { "alias": "ocCurrentIndex"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; }, {}, ["items"], ["*"], true, never>;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
declare class OcMessageComponent {
|
|
500
|
+
isOpen: boolean;
|
|
501
|
+
ocColor: 'default' | 'green' | 'red';
|
|
502
|
+
ocClosable: boolean;
|
|
503
|
+
ocIcon: string;
|
|
504
|
+
private _ocTitle;
|
|
505
|
+
set ocTitle(value: string);
|
|
506
|
+
get ocTitle(): string;
|
|
507
|
+
ocOnClose: EventEmitter<any>;
|
|
508
|
+
ocOnOpen: EventEmitter<any>;
|
|
509
|
+
open(): void;
|
|
510
|
+
close(): void;
|
|
511
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcMessageComponent, never>;
|
|
512
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcMessageComponent, "oc-message", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; "ocClosable": { "alias": "ocClosable"; "required": false; }; "ocIcon": { "alias": "ocIcon"; "required": false; }; "ocTitle": { "alias": "ocTitle"; "required": false; }; }, { "ocOnClose": "ocOnClose"; "ocOnOpen": "ocOnOpen"; }, never, ["[ocIcon]", "[ocHeader]", "*"], true, never>;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
declare class OcDateSelectComponent implements AfterViewInit {
|
|
516
|
+
ocValue: string;
|
|
517
|
+
ocType: 'day' | 'month' | 'year';
|
|
518
|
+
ocSkipType: 'day' | 'week' | 'month' | 'year';
|
|
519
|
+
ocValueChange: EventEmitter<string>;
|
|
520
|
+
ocChange: EventEmitter<string>;
|
|
521
|
+
ocLanguage: 'ptbr' | 'enus' | 'esch';
|
|
522
|
+
ocMaxDate: string | null;
|
|
523
|
+
ocMinDate: string | null;
|
|
524
|
+
dateInput: ElementRef<HTMLInputElement>;
|
|
525
|
+
private intervalId;
|
|
526
|
+
ngAfterViewInit(): void;
|
|
527
|
+
private getCurrentDate;
|
|
528
|
+
protected getViewDate(): string;
|
|
529
|
+
private updateValue;
|
|
530
|
+
protected increaseDate(): void;
|
|
531
|
+
protected decreaseDate(): void;
|
|
532
|
+
protected startHold(direction: 'increase' | 'decrease'): void;
|
|
533
|
+
protected stopHold(): void;
|
|
534
|
+
protected openDatePicker(): void;
|
|
535
|
+
protected onDateChange(event: Event): void;
|
|
536
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcDateSelectComponent, never>;
|
|
537
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcDateSelectComponent, "oc-date-select", never, { "ocValue": { "alias": "ocValue"; "required": false; }; "ocType": { "alias": "ocType"; "required": false; }; "ocSkipType": { "alias": "ocSkipType"; "required": false; }; "ocLanguage": { "alias": "ocLanguage"; "required": false; }; "ocMaxDate": { "alias": "ocMaxDate"; "required": false; }; "ocMinDate": { "alias": "ocMinDate"; "required": false; }; }, { "ocValueChange": "ocValueChange"; "ocChange": "ocChange"; }, never, never, true, never>;
|
|
538
|
+
}
|
|
539
|
+
|
|
540
|
+
declare class OcButtonMenuComponent {
|
|
541
|
+
ocSize: 'tiny' | 'small' | 'medium' | 'large';
|
|
542
|
+
ocColor: 'purple' | 'green' | 'lightGray';
|
|
543
|
+
ocType: 'button' | 'submit';
|
|
544
|
+
ocMenu: OcMenuType[];
|
|
545
|
+
ocClick: EventEmitter<any>;
|
|
546
|
+
ocChange: EventEmitter<any>;
|
|
547
|
+
protected getStyleClass(): object;
|
|
548
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcButtonMenuComponent, never>;
|
|
549
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcButtonMenuComponent, "oc-button-menu", never, { "ocSize": { "alias": "ocSize"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; "ocType": { "alias": "ocType"; "required": false; }; "ocMenu": { "alias": "ocMenu"; "required": false; }; }, { "ocClick": "ocClick"; "ocChange": "ocChange"; }, never, ["*"], true, never>;
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
declare class OcProgressComponent implements AfterViewInit {
|
|
553
|
+
ocWidth: string;
|
|
554
|
+
ocColor: 'purple' | 'green' | 'orange';
|
|
555
|
+
ocGradient: boolean;
|
|
556
|
+
ocStyle: 'otimus' | 'shui';
|
|
557
|
+
ocPercentage: number;
|
|
558
|
+
ngAfterViewInit(): void;
|
|
559
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<OcProgressComponent, never>;
|
|
560
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<OcProgressComponent, "oc-progress", never, { "ocWidth": { "alias": "ocWidth"; "required": false; }; "ocColor": { "alias": "ocColor"; "required": false; }; "ocGradient": { "alias": "ocGradient"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "ocPercentage": { "alias": "ocPercentage"; "required": false; }; }, {}, never, never, true, never>;
|
|
561
|
+
}
|
|
562
|
+
|
|
563
|
+
export { OcAccordionComponent, OcAccordionItemComponent, OcAutocompleteComponent, OcBadgeComponent, OcButtonMenuComponent, OcCheckboxComponent, OcChipComponent, OcDateSelectComponent, OcFilterComponent, OcInputComponent, OcKeyValueComponent, OcLogComponent, OcMenuComponent, OcMessageComponent, OcModalComponent, OcModalFooterComponent, OcNotFoundComponent, OcPaginationComponent, OcProfileComponent, OcProgressComponent, OcStepComponent, OcStepperComponent, OcTabComponent, OcTabsComponent, OcToastComponent, OcToastService, OcToggleComponent, OcTooltipDirective, OtimusLibraryComponent, OtimusLibraryService };
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "otimus-library",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.96",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"peerDependencies": {
|
|
6
|
-
"@angular/cdk": "^
|
|
7
|
-
"@angular/common": "^
|
|
8
|
-
"@angular/core": "^
|
|
6
|
+
"@angular/cdk": "^20.2.5",
|
|
7
|
+
"@angular/common": "^20.3.2",
|
|
8
|
+
"@angular/core": "^20.3.2"
|
|
9
9
|
},
|
|
10
10
|
"engines": {
|
|
11
|
-
"node": "
|
|
11
|
+
"node": "20"
|
|
12
12
|
},
|
|
13
13
|
"engineStrict": true,
|
|
14
14
|
"dependencies": {
|
|
@@ -20,8 +20,6 @@
|
|
|
20
20
|
".": {
|
|
21
21
|
"sass": "./src/styles/styles.scss",
|
|
22
22
|
"types": "./index.d.ts",
|
|
23
|
-
"esm2022": "./esm2022/otimus-library.mjs",
|
|
24
|
-
"esm": "./esm2022/otimus-library.mjs",
|
|
25
23
|
"default": "./fesm2022/otimus-library.mjs"
|
|
26
24
|
},
|
|
27
25
|
"./package.json": {
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Component, ContentChildren, Input } from '@angular/core';
|
|
2
|
-
import { OcAccordionItemComponent } from '../oc-accordion-item/oc-accordion-item.component';
|
|
3
|
-
import { CommonModule } from '@angular/common';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../services/style-theme.service";
|
|
6
|
-
export class OcAccordionComponent {
|
|
7
|
-
constructor(styleThemeService) {
|
|
8
|
-
this.styleThemeService = styleThemeService;
|
|
9
|
-
this.ocAlternate = true;
|
|
10
|
-
this.ocStyle = 'otimus';
|
|
11
|
-
}
|
|
12
|
-
ngAfterViewInit() {
|
|
13
|
-
this.items.forEach((item, i) => {
|
|
14
|
-
item.ocStyle = this.styleThemeService.getStyleTheme() || this.ocStyle;
|
|
15
|
-
item.closeAllItems.subscribe(() => this.closeAllItems());
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
closeAllItems() {
|
|
19
|
-
if (this.ocAlternate) {
|
|
20
|
-
this.items.forEach((item) => (item.ocIsOpen = false));
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
alternateToIndex(index) {
|
|
24
|
-
this.items.forEach((item, i) => {
|
|
25
|
-
if (i === index) {
|
|
26
|
-
item.ocIsOpen = true;
|
|
27
|
-
return;
|
|
28
|
-
}
|
|
29
|
-
item.ocIsOpen = false;
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OcAccordionComponent, deps: [{ token: i1.StyleThemeService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: OcAccordionComponent, isStandalone: true, selector: "oc-accordion", inputs: { ocAlternate: "ocAlternate", ocCurrentIndex: "ocCurrentIndex", ocStyle: "ocStyle" }, queries: [{ propertyName: "items", predicate: OcAccordionItemComponent }], ngImport: i0, template: "<div>\n <ng-content></ng-content>\n</div>", styles: [".oc-accordion{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }] }); }
|
|
34
|
-
}
|
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: OcAccordionComponent, decorators: [{
|
|
36
|
-
type: Component,
|
|
37
|
-
args: [{ selector: 'oc-accordion', standalone: true, imports: [CommonModule, OcAccordionItemComponent], template: "<div>\n <ng-content></ng-content>\n</div>", styles: [".oc-accordion{display:flex;flex-direction:column}\n"] }]
|
|
38
|
-
}], ctorParameters: () => [{ type: i1.StyleThemeService }], propDecorators: { items: [{
|
|
39
|
-
type: ContentChildren,
|
|
40
|
-
args: [OcAccordionItemComponent]
|
|
41
|
-
}], ocAlternate: [{
|
|
42
|
-
type: Input
|
|
43
|
-
}], ocCurrentIndex: [{
|
|
44
|
-
type: Input
|
|
45
|
-
}], ocStyle: [{
|
|
46
|
-
type: Input
|
|
47
|
-
}] } });
|
|
48
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoib2M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