@datarailsshared/datarailsshared 1.6.107 → 1.6.111
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/datarailsshared-datarailsshared-1.6.111.tgz +0 -0
- package/esm2022/lib/date-tags/date-tag.component.mjs +10 -5
- package/esm2022/lib/date-tags/forecast-tag/forecast-tag.component.mjs +3 -3
- package/esm2022/lib/dr-dialog/components/dialog-wrapper/dialog-wrapper.component.mjs +2 -2
- package/esm2022/lib/dr-dynamic-tag/dr-dynamic-tag.component.mjs +52 -45
- package/esm2022/lib/dr-inputs/date-pickers/date-time-picker/date-time-picker.component.mjs +169 -0
- package/esm2022/lib/dr-inputs/date-pickers/time-picker/time-picker.component.mjs +187 -0
- package/esm2022/lib/dr-tags/dr-tag.component.mjs +10 -8
- package/esm2022/lib/dr-tags/dr-tag.types.mjs +1 -1
- package/esm2022/public-api.mjs +3 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +681 -333
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/date-tags/date-tag.component.d.ts +1 -1
- package/lib/dr-dynamic-tag/dr-dynamic-tag.component.d.ts +2 -2
- package/lib/dr-inputs/date-pickers/date-time-picker/date-time-picker.component.d.ts +35 -0
- package/lib/dr-inputs/date-pickers/time-picker/time-picker.component.d.ts +45 -0
- package/lib/dr-tags/dr-tag.types.d.ts +5 -2
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/datarailsshared-datarailsshared-1.6.107.tgz +0 -0
|
@@ -12,7 +12,7 @@ export declare class DateTagComponent {
|
|
|
12
12
|
fiscalYearBack?: boolean;
|
|
13
13
|
tagAdditionalSettings: ITagAdditionalSettings;
|
|
14
14
|
selectedDate: EventEmitter<IDateTag>;
|
|
15
|
-
changeSelectedDate(date: any): void;
|
|
15
|
+
changeSelectedDate(date: any, dateType?: string): void;
|
|
16
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<DateTagComponent, never>;
|
|
17
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<DateTagComponent, "date-tag", never, { "name": { "alias": "name"; "required": false; }; "lockedDate": { "alias": "lockedDate"; "required": false; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "dateTypeChosen": { "alias": "dateTypeChosen"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fiscalYearStartsFrom": { "alias": "fiscalYearStartsFrom"; "required": false; }; "fiscalYearBack": { "alias": "fiscalYearBack"; "required": false; }; "tagAdditionalSettings": { "alias": "tagAdditionalSettings"; "required": false; }; }, { "selectedDate": "selectedDate"; }, never, never, false, never>;
|
|
18
18
|
}
|
|
@@ -5,6 +5,7 @@ export declare class DrDynamicTagComponent implements OnChanges {
|
|
|
5
5
|
values: TDynamicTag;
|
|
6
6
|
tagConfig: ITag;
|
|
7
7
|
selectedTag: ITagForServer;
|
|
8
|
+
hideLabel: boolean;
|
|
8
9
|
lockedTags: any[];
|
|
9
10
|
connectedTags: ITagForServer[];
|
|
10
11
|
isDynamicTagAddEnabled: boolean;
|
|
@@ -15,7 +16,6 @@ export declare class DrDynamicTagComponent implements OnChanges {
|
|
|
15
16
|
parentKeyFormatterFn: (momentData: any) => string;
|
|
16
17
|
label: string;
|
|
17
18
|
hideFavoriteStar: boolean;
|
|
18
|
-
showSplitInputs: boolean;
|
|
19
19
|
tagChange: EventEmitter<ITagForServer>;
|
|
20
20
|
tagAdd: EventEmitter<TDynamicTagValue>;
|
|
21
21
|
selectedDynamicTag: TDynamicTagValue;
|
|
@@ -33,5 +33,5 @@ export declare class DrDynamicTagComponent implements OnChanges {
|
|
|
33
33
|
private getSelectedDynamicTag;
|
|
34
34
|
private getParentValueKey;
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrDynamicTagComponent, never>;
|
|
36
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrDynamicTagComponent, "dr-dynamic-tag", never, { "values": { "alias": "values"; "required": false; }; "tagConfig": { "alias": "tagConfig"; "required": false; }; "selectedTag": { "alias": "selectedTag"; "required": false; }; "
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrDynamicTagComponent, "dr-dynamic-tag", never, { "values": { "alias": "values"; "required": false; }; "tagConfig": { "alias": "tagConfig"; "required": false; }; "selectedTag": { "alias": "selectedTag"; "required": false; }; "hideLabel": { "alias": "hideLabel"; "required": false; }; "lockedTags": { "alias": "lockedTags"; "required": false; }; "connectedTags": { "alias": "connectedTags"; "required": false; }; "isDynamicTagAddEnabled": { "alias": "isDynamicTagAddEnabled"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "fiscalYearStartsFrom": { "alias": "fiscalYearStartsFrom"; "required": false; }; "fiscalYearBack": { "alias": "fiscalYearBack"; "required": false; }; "parentKeyFormat": { "alias": "parentKeyFormat"; "required": false; }; "parentKeyFormatterFn": { "alias": "parentKeyFormatterFn"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hideFavoriteStar": { "alias": "hideFavoriteStar"; "required": false; }; }, { "tagChange": "tagChange"; "tagAdd": "tagAdd"; }, never, never, false, never>;
|
|
37
37
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import { TimepickerModel } from '../time-picker/time-picker.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export type DateTimeModel = {
|
|
5
|
+
date: number | null;
|
|
6
|
+
time: TimepickerModel | null;
|
|
7
|
+
};
|
|
8
|
+
export declare class DateTimePickerComponent implements ControlValueAccessor {
|
|
9
|
+
private readonly fb;
|
|
10
|
+
private readonly destroy$;
|
|
11
|
+
id?: string;
|
|
12
|
+
hostId: any;
|
|
13
|
+
min: number;
|
|
14
|
+
max: number;
|
|
15
|
+
readonly LOCAL_TIME_ZONE_OFFSET: number;
|
|
16
|
+
readonly dateTimeForm: import("@angular/forms").FormGroup<{
|
|
17
|
+
date: import("@angular/forms").FormControl<number>;
|
|
18
|
+
time: import("@angular/forms").FormControl<TimepickerModel>;
|
|
19
|
+
}>;
|
|
20
|
+
protected innerTime: number | null;
|
|
21
|
+
constructor();
|
|
22
|
+
private onChange;
|
|
23
|
+
onTouched: () => void;
|
|
24
|
+
writeValue(value?: {
|
|
25
|
+
value: number | null;
|
|
26
|
+
timezone: number;
|
|
27
|
+
} | null): void;
|
|
28
|
+
private getFormValueFromTimestamp;
|
|
29
|
+
private getCombinedTimestamp;
|
|
30
|
+
registerOnChange(fn: any): void;
|
|
31
|
+
registerOnTouched(fn: any): void;
|
|
32
|
+
setDisabledState(isDisabled: boolean): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "dr-date-time-picker", never, { "id": { "alias": "id"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export type TimepickerModel = {
|
|
4
|
+
hour: number;
|
|
5
|
+
minute: number;
|
|
6
|
+
timePeriod: 'AM' | 'PM';
|
|
7
|
+
timeZone: number;
|
|
8
|
+
};
|
|
9
|
+
export declare const LOCAL_TIME_ZONE_OFFSET: number;
|
|
10
|
+
export declare const getGMTLabel: (offset: number) => string;
|
|
11
|
+
export declare const GMT_OFFSETS: {
|
|
12
|
+
value: number;
|
|
13
|
+
label: string;
|
|
14
|
+
}[];
|
|
15
|
+
export declare class TimePickerComponent implements ControlValueAccessor {
|
|
16
|
+
private readonly cdr;
|
|
17
|
+
id?: string;
|
|
18
|
+
hostId: any;
|
|
19
|
+
private static nextUniqueId;
|
|
20
|
+
readonly uniqueId: string;
|
|
21
|
+
readonly CRON_TIME_PERIOD_ARRAY: ('AM' | 'PM')[];
|
|
22
|
+
readonly LOCAL_TIME_ZONE_OFFSET: number;
|
|
23
|
+
readonly GMT_OFFSETS: {
|
|
24
|
+
value: number;
|
|
25
|
+
label: string;
|
|
26
|
+
}[];
|
|
27
|
+
cronModel: TimepickerModel;
|
|
28
|
+
_disabled?: boolean;
|
|
29
|
+
private onChange;
|
|
30
|
+
private onTouched;
|
|
31
|
+
get hourInputId(): string;
|
|
32
|
+
get minuteInputId(): string;
|
|
33
|
+
get periodSelectId(): string;
|
|
34
|
+
get timezoneSelectId(): string;
|
|
35
|
+
get labelId(): string;
|
|
36
|
+
onSelectionChange(model: Partial<TimepickerModel>): void;
|
|
37
|
+
private getTimeValue;
|
|
38
|
+
writeValue(value: any): void;
|
|
39
|
+
registerOnChange(fn: any): void;
|
|
40
|
+
registerOnTouched(fn: any): void;
|
|
41
|
+
setDisabledState(isDisabled: boolean): void;
|
|
42
|
+
static validTimePeriod(value: unknown): value is TimepickerModel['timePeriod'];
|
|
43
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimePickerComponent, never>;
|
|
44
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TimePickerComponent, "dr-time-picker", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
|
|
45
|
+
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
export interface ITagAdditionalSettings {
|
|
2
2
|
tagLabel?: string;
|
|
3
|
-
|
|
4
|
-
|
|
3
|
+
customDynamicTagLabel?: string;
|
|
4
|
+
customDateTagLabel?: string;
|
|
5
|
+
showSplitDynamicTagInputs?: boolean;
|
|
6
|
+
showSplitDateAndDynamicInputs?: boolean;
|
|
5
7
|
hideFavoriteStar?: boolean;
|
|
6
8
|
dynamicTagParentKeyFormat?: string;
|
|
7
9
|
dynamicTagParentKeyFormatterFn?: (momentData: any) => string;
|
|
10
|
+
hideDynamicTagLabel?: boolean;
|
|
8
11
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ export * from './lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-dat
|
|
|
25
25
|
export * from './lib/dr-inputs/date-pickers/dr-date-picker-range/dr-date-picker-range.component';
|
|
26
26
|
export * from './lib/dr-inputs/date-pickers/directives/dr-date-picker-format.directive';
|
|
27
27
|
export * from './lib/dr-inputs/date-pickers/dr-show-timeframe.pipe';
|
|
28
|
+
export * from './lib/dr-inputs/date-pickers/time-picker/time-picker.component';
|
|
29
|
+
export * from './lib/dr-inputs/date-pickers/date-time-picker/date-time-picker.component';
|
|
28
30
|
export * from './lib/dr-inputs/dr-select-add-item/dr-select-add-item.component';
|
|
29
31
|
export * from './lib/dr-tooltip/components/tooltip-default/tooltip-default.component';
|
|
30
32
|
export * from './lib/dr-tooltip/components/tooltip-info/tooltip-info.component';
|
|
Binary file
|