asksuite-citrus 0.0.12 → 0.2.1
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/assets/citrus-i18n/en.json +11 -0
- package/assets/citrus-i18n/es.json +11 -0
- package/assets/citrus-i18n/pt.json +11 -0
- package/esm2022/lib/asksuite-citrus.module.mjs +12 -4
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +64 -26
- package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
- package/esm2022/lib/components/box/box.component.mjs +2 -2
- package/esm2022/lib/components/button/button.component.mjs +14 -7
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
- package/esm2022/lib/components/chips/chips.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +35 -18
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +90 -46
- package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
- package/esm2022/lib/components/input/input.component.mjs +2 -2
- package/esm2022/lib/components/select/select.component.mjs +2 -2
- package/esm2022/lib/directives/ask-dropdown.directive.mjs +12 -6
- package/fesm2022/asksuite-citrus.mjs +266 -152
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/asksuite-citrus.module.d.ts +3 -1
- package/lib/components/autocomplete/autocomplete.component.d.ts +12 -5
- package/lib/components/button/button.component.d.ts +6 -5
- package/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.d.ts +19 -5
- package/lib/components/date-picker/date-picker.component.d.ts +18 -9
- package/lib/directives/ask-dropdown.directive.d.ts +3 -2
- package/package.json +1 -1
- package/styles/styles.scss +4 -0
@@ -1,27 +1,36 @@
|
|
1
1
|
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
-
import
|
3
|
-
import {
|
2
|
+
import { DatePickerValue, DateRange, PeriodLabel } from "./date-picker-calendar/date-picker-calendar.component";
|
3
|
+
import { ControlValueAccessor } from "@angular/forms";
|
4
|
+
import * as i0 from "@angular/core";
|
4
5
|
interface Period {
|
5
|
-
label:
|
6
|
+
label: PeriodLabel;
|
6
7
|
getRange: () => DateRange;
|
7
8
|
isCustomRange?: boolean;
|
8
9
|
selected: boolean;
|
9
10
|
}
|
10
|
-
export declare
|
11
|
-
export declare class DatePickerComponent implements OnInit {
|
11
|
+
export declare class DatePickerComponent implements OnInit, ControlValueAccessor {
|
12
12
|
periods: Array<Period>;
|
13
13
|
date: DatePickerValue;
|
14
14
|
isRange: boolean;
|
15
15
|
dateChange: EventEmitter<DatePickerValue>;
|
16
|
-
|
16
|
+
close: EventEmitter<any>;
|
17
17
|
isCustomRange: boolean;
|
18
|
-
get from():
|
19
|
-
get to():
|
18
|
+
get from(): string | undefined;
|
19
|
+
get to(): string | undefined;
|
20
20
|
get dateDisplay(): string;
|
21
21
|
ngOnInit(): void;
|
22
22
|
selectPeriod(period: Period): void;
|
23
23
|
handleDateChange(value: DatePickerValue): void;
|
24
|
-
|
24
|
+
emitValue(): void;
|
25
25
|
handleCancelClick(): void;
|
26
|
+
private getPeriodOrDefault;
|
27
|
+
checkPeriodShouldBeSelectedByValue(): void;
|
28
|
+
writeValue(value: DatePickerValue): void;
|
29
|
+
registerOnChange(fn: (value: DatePickerValue) => void): void;
|
30
|
+
onChange: (value: DatePickerValue) => void;
|
31
|
+
registerOnTouched(fn: any): void;
|
32
|
+
onTouch: () => void;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatePickerComponent, never>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatePickerComponent, "ask-date-picker", never, { "date": { "alias": "date"; "required": false; }; "isRange": { "alias": "isRange"; "required": false; }; }, { "dateChange": "dateChange"; "close": "close"; }, never, never, false, never>;
|
26
35
|
}
|
27
36
|
export {};
|
@@ -1,16 +1,17 @@
|
|
1
|
-
import { ElementRef, OnInit, TemplateRef } from '@angular/core';
|
1
|
+
import { DestroyRef, ElementRef, OnInit, TemplateRef } from '@angular/core';
|
2
2
|
import { Overlay, OverlayPositionBuilder } from "@angular/cdk/overlay";
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class AskDropdownDirective implements OnInit {
|
5
5
|
private overlayPositionBuilder;
|
6
6
|
private elementRef;
|
7
7
|
private overlay;
|
8
|
+
private _destroyRef;
|
8
9
|
askDropdown: TemplateRef<any>;
|
9
10
|
private _isRendered;
|
10
11
|
private overlayConfig;
|
11
12
|
private overlayRef;
|
12
13
|
private containerRef;
|
13
|
-
constructor(overlayPositionBuilder: OverlayPositionBuilder, elementRef: ElementRef, overlay: Overlay);
|
14
|
+
constructor(overlayPositionBuilder: OverlayPositionBuilder, elementRef: ElementRef, overlay: Overlay, _destroyRef: DestroyRef);
|
14
15
|
ngOnInit(): void;
|
15
16
|
private setOverlayConfig;
|
16
17
|
private createOverlay;
|
package/package.json
CHANGED