otimus-library 0.3.51 → 0.3.53

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/index.d.ts CHANGED
@@ -129,7 +129,7 @@ declare class OcBadgeComponent implements OnInit {
129
129
 
130
130
  declare class OcCardComponent {
131
131
  readonly ocSelected: i0.InputSignal<boolean>;
132
- readonly ocColor: i0.InputSignal<"green" | "red" | "yellow" | "default">;
132
+ readonly ocColor: i0.InputSignal<"default" | "green" | "red" | "yellow">;
133
133
  readonly ocClickable: i0.InputSignal<boolean>;
134
134
  ocClick: EventEmitter<void>;
135
135
  protected onClick(): void;
@@ -311,17 +311,19 @@ declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit
311
311
  iconSize: 'small' | 'medium' | 'large';
312
312
  ocSelectByTyping: boolean;
313
313
  ocDisabled: boolean;
314
- ocType: 'counterSelect' | 'default';
314
+ ocType: 'counterSelect' | 'default' | 'multipleSelect';
315
315
  ocShowBackdrop: boolean;
316
316
  ocHasDeleteButton?: boolean;
317
317
  ocEnableKeyboard: boolean;
318
318
  ocValueChange: EventEmitter<string>;
319
319
  ocChange: EventEmitter<string | null>;
320
320
  ocCounterSelectChange: EventEmitter<OcAutoCompleteType[]>;
321
+ ocMultipleSelectChange: EventEmitter<OcAutoCompleteType[]>;
321
322
  ocOptionNotFound: EventEmitter<any>;
322
323
  ocClick: EventEmitter<any>;
323
324
  hasSuffix: boolean;
324
325
  hasPrefix: boolean;
326
+ selectedValues: OcAutoCompleteType[];
325
327
  private isOptionsShown;
326
328
  private _filteredData;
327
329
  get filteredData(): OcAutoCompleteType[];
@@ -364,9 +366,13 @@ declare class OcAutocompleteComponent implements AfterContentInit, AfterViewInit
364
366
  emitCounterSelectChange(): void;
365
367
  moveSelection(delta: number): void;
366
368
  protected onKeyDown(event: Event): void;
369
+ toggleMultipleSelect(data: OcAutoCompleteType): void;
370
+ removeSelectedValue(item: OcAutoCompleteType): void;
371
+ getCounterItems(): OcAutoCompleteType[];
372
+ private updateInputPaddingForChips;
367
373
  ngOnDestroy(): void;
368
374
  static ɵfac: i0.ɵɵFactoryDeclaration<OcAutocompleteComponent, never>;
369
- 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; }; "ocShowBackdrop": { "alias": "ocShowBackdrop"; "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>;
375
+ 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; }; "ocShowBackdrop": { "alias": "ocShowBackdrop"; "required": false; }; "ocHasDeleteButton": { "alias": "ocHasDeleteButton"; "required": false; }; "ocEnableKeyboard": { "alias": "ocEnableKeyboard"; "required": false; }; }, { "ocValueChange": "ocValueChange"; "ocChange": "ocChange"; "ocCounterSelectChange": "ocCounterSelectChange"; "ocMultipleSelectChange": "ocMultipleSelectChange"; "ocOptionNotFound": "ocOptionNotFound"; "ocClick": "ocClick"; }, ["ocPrefix", "ocSuffix"], ["*", "ocPrefix", "ocSuffix"], true, never>;
370
376
  }
371
377
 
372
378
  declare class OcProfileComponent implements OnInit {
@@ -712,6 +718,49 @@ declare class OcOverlayComponent implements AfterViewInit, OnDestroy {
712
718
  static ɵcmp: i0.ɵɵComponentDeclaration<OcOverlayComponent, "oc-overlay", never, { "ocContent": { "alias": "ocContent"; "required": false; }; "ocTrigger": { "alias": "ocTrigger"; "required": false; }; "ocPosition": { "alias": "ocPosition"; "required": false; }; "ocShowBackdrop": { "alias": "ocShowBackdrop"; "required": false; }; "ocCloseOnBackdropClick": { "alias": "ocCloseOnBackdropClick"; "required": false; }; "ocWidth": { "alias": "ocWidth"; "required": false; }; "ocHeight": { "alias": "ocHeight"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; "ocDisabled": { "alias": "ocDisabled"; "required": false; }; "ocZIndex": { "alias": "ocZIndex"; "required": false; }; }, { "ocOpen": "ocOpen"; "ocClose": "ocClose"; "ocToggle": "ocToggle"; }, never, ["[ocTrigger]", "*"], true, never>;
713
719
  }
714
720
 
721
+ interface OcCalendarDay {
722
+ date: Date;
723
+ isCurrentMonth: boolean;
724
+ isSelected: boolean;
725
+ isInRange: boolean;
726
+ }
727
+ declare class OcCalendarComponent {
728
+ private styleThemeService;
729
+ ocSelectionMode: 'single' | 'range';
730
+ ocStartDate?: Date;
731
+ ocEndDate?: Date;
732
+ ocMinDate?: Date;
733
+ ocMaxDate?: Date;
734
+ ocWeekStartsOn: 0 | 1;
735
+ ocWidth?: string;
736
+ ocMaxWidth?: string;
737
+ ocLanguage: 'ptbr' | 'esch' | 'enus';
738
+ private _ocStyle;
739
+ set ocStyle(value: OcStyleThemeType);
740
+ get ocStyle(): OcStyleThemeType;
741
+ get computedWidth(): string | null;
742
+ get computedMaxWidth(): string | null;
743
+ ocDateSelected: EventEmitter<Date>;
744
+ ocRangeSelected: EventEmitter<{
745
+ start: Date;
746
+ end: Date;
747
+ }>;
748
+ currentMonth: Date;
749
+ weeks: OcCalendarDay[][];
750
+ weekDays: string[];
751
+ constructor(styleThemeService: StyleThemeService);
752
+ ngOnInit(): void;
753
+ previousMonth(): void;
754
+ nextMonth(): void;
755
+ selectDay(day: OcCalendarDay): void;
756
+ private generateCalendar;
757
+ private isSameDate;
758
+ onMonthChange(value: string): void;
759
+ private setWeekDays;
760
+ static ɵfac: i0.ɵɵFactoryDeclaration<OcCalendarComponent, never>;
761
+ static ɵcmp: i0.ɵɵComponentDeclaration<OcCalendarComponent, "oc-calendar", never, { "ocSelectionMode": { "alias": "ocSelectionMode"; "required": false; }; "ocStartDate": { "alias": "ocStartDate"; "required": false; }; "ocEndDate": { "alias": "ocEndDate"; "required": false; }; "ocMinDate": { "alias": "ocMinDate"; "required": false; }; "ocMaxDate": { "alias": "ocMaxDate"; "required": false; }; "ocWeekStartsOn": { "alias": "ocWeekStartsOn"; "required": false; }; "ocWidth": { "alias": "ocWidth"; "required": false; }; "ocMaxWidth": { "alias": "ocMaxWidth"; "required": false; }; "ocLanguage": { "alias": "ocLanguage"; "required": false; }; "ocStyle": { "alias": "ocStyle"; "required": false; }; }, { "ocDateSelected": "ocDateSelected"; "ocRangeSelected": "ocRangeSelected"; }, never, never, true, never>;
762
+ }
763
+
715
764
  interface OcTableType {
716
765
  data: any;
717
766
  id?: string | number | null;
@@ -724,5 +773,5 @@ interface OcTableActionsType {
724
773
  print: () => any;
725
774
  }
726
775
 
727
- export { OcAccordionComponent, OcAccordionItemComponent, OcAutocompleteComponent, OcBadgeComponent, OcButtonMenuComponent, OcCardComponent, OcCheckboxComponent, OcChipComponent, OcDateSelectComponent, OcFilterComponent, OcInputComponent, OcKeyValueComponent, OcLogComponent, OcMenuComponent, OcMenuHorizComponent, OcMenuHorizDirective, OcMessageComponent, OcModalComponent, OcModalFooterComponent, OcNotFoundComponent, OcOverlayComponent, OcPaginationComponent, OcProfileComponent, OcProgressComponent, OcStepComponent, OcStepperComponent, OcTabComponent, OcTabsComponent, OcToastComponent, OcToastService, OcToggleComponent, OcTooltipDirective, OtimusLibraryComponent, OtimusLibraryService, StyleThemeService };
776
+ export { OcAccordionComponent, OcAccordionItemComponent, OcAutocompleteComponent, OcBadgeComponent, OcButtonMenuComponent, OcCalendarComponent, OcCardComponent, OcCheckboxComponent, OcChipComponent, OcDateSelectComponent, OcFilterComponent, OcInputComponent, OcKeyValueComponent, OcLogComponent, OcMenuComponent, OcMenuHorizComponent, OcMenuHorizDirective, OcMessageComponent, OcModalComponent, OcModalFooterComponent, OcNotFoundComponent, OcOverlayComponent, OcPaginationComponent, OcProfileComponent, OcProgressComponent, OcStepComponent, OcStepperComponent, OcTabComponent, OcTabsComponent, OcToastComponent, OcToastService, OcToggleComponent, OcTooltipDirective, OtimusLibraryComponent, OtimusLibraryService, StyleThemeService };
728
777
  export type { OcAutoCompleteType, OcMenuHorizType, OcMenuType, OcStyleThemeType, OcTableType, ToastType };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "otimus-library",
3
- "version": "0.3.51",
3
+ "version": "0.3.53",
4
4
  "license": "MIT",
5
5
  "peerDependencies": {
6
6
  "@angular/cdk": "^20.2.5",
@@ -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
  }