@datarailsshared/datarailsshared 1.6.101 → 1.6.103
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.103.tgz +0 -0
- package/esm2022/lib/directives/autofocus/autofocus.directive.mjs +26 -0
- package/esm2022/lib/dr-dialog/components/dialog-modal-wrapper/dialog-modal-wrapper.component.mjs +6 -6
- package/esm2022/lib/dr-inputs/button/button.component.mjs +5 -4
- package/esm2022/lib/dr-inputs/date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component.mjs +6 -6
- package/esm2022/lib/dr-inputs/dr-inputs.module.mjs +9 -10
- package/esm2022/lib/dr-inputs/dr-select-add-item/dr-select-add-item.component.mjs +4 -4
- package/esm2022/lib/filter-dropdown/filter-dropdown.component.mjs +421 -0
- package/esm2022/lib/pipes/search/search.pipe.mjs +36 -0
- package/esm2022/public-api.mjs +4 -1
- package/fesm2022/datarailsshared-datarailsshared.mjs +629 -170
- package/fesm2022/datarailsshared-datarailsshared.mjs.map +1 -1
- package/lib/directives/autofocus/autofocus.directive.d.ts +9 -0
- package/lib/dr-inputs/button/button.component.d.ts +2 -2
- package/lib/dr-inputs/dr-inputs.module.d.ts +20 -20
- package/lib/filter-dropdown/filter-dropdown.component.d.ts +53 -0
- package/lib/pipes/search/search.pipe.d.ts +8 -0
- package/package.json +1 -1
- package/public-api.d.ts +3 -0
- package/datarailsshared-datarailsshared-1.6.101.tgz +0 -0
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class AutofocusDirective implements AfterViewInit {
|
|
4
|
+
private readonly ref;
|
|
5
|
+
ngAfterViewInit(): void;
|
|
6
|
+
focus(): void;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AutofocusDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AutofocusDirective, "[drAutofocus]", ["drAutofocus"], {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export type ButtonType = 'primary' | 'split-primary-first' | 'split-primary-last' | 'secondary' | 'secondary-white' | 'split-secondary-first' | 'split-secondary-last' | 'icon' | 'icon-primary' | 'icon-secondary' | 'ghost' | 'selection' | 'highlight' | 'danger' | 'help' | 'ai-primary' | 'ai-secondary';
|
|
2
|
+
export type ButtonType = 'primary' | 'split-primary-first' | 'split-primary-last' | 'secondary' | 'secondary-white' | 'split-secondary-first' | 'split-secondary-last' | 'icon' | 'icon-primary' | 'icon-secondary' | 'ghost' | 'selection' | 'highlight' | 'danger' | 'help' | 'dropdown' | 'ai-primary' | 'ai-secondary';
|
|
3
3
|
export declare class DrButtonComponent {
|
|
4
4
|
theme: ButtonType;
|
|
5
5
|
icon: string | string[];
|
|
@@ -12,5 +12,5 @@ export declare class DrButtonComponent {
|
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
isActive: boolean;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrButtonComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DrButtonComponent, "dr-button", never, { "theme": { "alias": "theme"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconAfter": { "alias": "iconAfter"; "required": false; }; "iconAfterColor": { "alias": "iconAfterColor"; "required": false; }; "iconAfterSize": { "alias": "iconAfterSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; }, {}, never, ["*"],
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DrButtonComponent, "dr-button", never, { "theme": { "alias": "theme"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "iconColor": { "alias": "iconColor"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; "iconAfter": { "alias": "iconAfter"; "required": false; }; "iconAfterColor": { "alias": "iconAfterColor"; "required": false; }; "iconAfterSize": { "alias": "iconAfterSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
16
16
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./button/button.component";
|
|
3
|
-
import * as i2 from "./radio-button/radio-
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "./
|
|
6
|
-
import * as i5 from "./dr-
|
|
7
|
-
import * as i6 from "./dr-
|
|
8
|
-
import * as i7 from "./dr-toggle/dr-toggle.component";
|
|
9
|
-
import * as i8 from "./dr-
|
|
10
|
-
import * as i9 from "./date-pickers/dr-date-picker/dr-date-picker.component";
|
|
11
|
-
import * as i10 from "./date-pickers/
|
|
12
|
-
import * as i11 from "./date-pickers/
|
|
13
|
-
import * as i12 from "./date-pickers/dr-date-
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "./dr-
|
|
16
|
-
import * as i15 from "./
|
|
17
|
-
import * as i16 from "./dr-
|
|
18
|
-
import * as i17 from "./dr-
|
|
19
|
-
import * as i18 from "./date-pickers/dr-fiscal-month-calendar-picker/dr-fiscal-month-calendar-
|
|
20
|
-
import * as i19 from "./
|
|
2
|
+
import * as i1 from "./radio-button/radio-button.component";
|
|
3
|
+
import * as i2 from "./radio-button/radio-group.component";
|
|
4
|
+
import * as i3 from "./checkbox/checkbox.component";
|
|
5
|
+
import * as i4 from "./dr-input/dr-input.component";
|
|
6
|
+
import * as i5 from "./dr-select/dr-select.component";
|
|
7
|
+
import * as i6 from "./dr-toggle/dr-toggle.component";
|
|
8
|
+
import * as i7 from "./dr-toggle-button/dr-toggle-button.component";
|
|
9
|
+
import * as i8 from "./date-pickers/dr-date-picker/dr-date-picker.component";
|
|
10
|
+
import * as i9 from "./date-pickers/dr-date-picker-with-timeframe/dr-date-picker-with-timeframe.component";
|
|
11
|
+
import * as i10 from "./date-pickers/directives/dr-date-picker-format.directive";
|
|
12
|
+
import * as i11 from "./date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component";
|
|
13
|
+
import * as i12 from "./date-pickers/dr-date-picker-range/dr-date-picker-range.component";
|
|
14
|
+
import * as i13 from "./dr-model-debounce-change.directive";
|
|
15
|
+
import * as i14 from "./date-pickers/dr-show-timeframe.pipe";
|
|
16
|
+
import * as i15 from "./dr-select-add-item/dr-select-add-item.component";
|
|
17
|
+
import * as i16 from "./dr-link/dr-link.component";
|
|
18
|
+
import * as i17 from "./date-pickers/dr-fiscal-month-calendar-picker/dr-fiscal-month-calendar-picker.component";
|
|
19
|
+
import * as i18 from "./date-pickers/dr-fiscal-month-calendar-picker/dr-fiscal-month-calendar-header.component";
|
|
20
|
+
import * as i19 from "./button/button.component";
|
|
21
21
|
import * as i20 from "ngx-mask";
|
|
22
22
|
import * as i21 from "@angular/forms";
|
|
23
23
|
import * as i22 from "@angular/common";
|
|
@@ -30,6 +30,6 @@ import * as i28 from "./date-pickers/week-selector/week-selector.component";
|
|
|
30
30
|
import * as i29 from "@angular/material-moment-adapter";
|
|
31
31
|
export declare class DrInputsModule {
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<DrInputsModule, never>;
|
|
33
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<DrInputsModule, [typeof i1.
|
|
33
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<DrInputsModule, [typeof i1.RadioButtonComponent, typeof i2.RadioGroupComponent, typeof i3.CheckboxComponent, typeof i4.DrInputComponent, typeof i5.DrSelectComponent, typeof i6.DrToggleComponent, typeof i7.DrToggleButtonComponent, typeof i8.DrDatePickerComponent, typeof i9.DrDatePickerWithTimeframeComponent, typeof i10.DrDatePickerFormatDirective, typeof i11.DrDatePickerCustomHeaderComponent, typeof i12.DrDatePickerRangeComponent, typeof i13.DrModelDebounceChangeDirective, typeof i14.DrShowTimeframePipe, typeof i15.DrSelectAddItemComponent, typeof i16.DrLinkComponent, typeof i17.DrFiscalMonthCalendarPickerComponent, typeof i18.DrFiscalMonthCalendarHeaderComponent], [typeof i19.DrButtonComponent, typeof i20.NgxMaskDirective, typeof i21.FormsModule, typeof i21.ReactiveFormsModule, typeof i22.CommonModule, typeof i23.NgSelectModule, typeof i24.MatNativeDateModule, typeof i25.MatDatepickerModule, typeof i26.DrTooltipModule, typeof i27.DrSpinnerModule, typeof i28.WeekSelectorComponent, typeof i29.MatMomentDateModule], [typeof i1.RadioButtonComponent, typeof i2.RadioGroupComponent, typeof i3.CheckboxComponent, typeof i4.DrInputComponent, typeof i5.DrSelectComponent, typeof i6.DrToggleComponent, typeof i7.DrToggleButtonComponent, typeof i8.DrDatePickerComponent, typeof i9.DrDatePickerWithTimeframeComponent, typeof i10.DrDatePickerFormatDirective, typeof i11.DrDatePickerCustomHeaderComponent, typeof i12.DrDatePickerRangeComponent, typeof i13.DrModelDebounceChangeDirective, typeof i14.DrShowTimeframePipe, typeof i15.DrSelectAddItemComponent, typeof i16.DrLinkComponent, typeof i17.DrFiscalMonthCalendarPickerComponent, typeof i18.DrFiscalMonthCalendarHeaderComponent, typeof i19.DrButtonComponent]>;
|
|
34
34
|
static ɵinj: i0.ɵɵInjectorDeclaration<DrInputsModule>;
|
|
35
35
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { ElPosition } from '../../public-api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FilterDropdownComponent<T = any> {
|
|
5
|
+
dropdownItemTemplate: TemplateRef<{
|
|
6
|
+
$implicit: T[];
|
|
7
|
+
}>;
|
|
8
|
+
labelItemTemplate: TemplateRef<{
|
|
9
|
+
$implicit: T;
|
|
10
|
+
}>;
|
|
11
|
+
readonly selectedChange: EventEmitter<T | T[]>;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
items: T[];
|
|
14
|
+
label: string;
|
|
15
|
+
selectedUser: T[] | null;
|
|
16
|
+
users: T[];
|
|
17
|
+
noItemsPlaceholder: string;
|
|
18
|
+
dropdownClass: string;
|
|
19
|
+
dropdownPosition: ElPosition;
|
|
20
|
+
bindValue: keyof T;
|
|
21
|
+
displayValue: keyof T;
|
|
22
|
+
searchBy: (keyof T)[];
|
|
23
|
+
multiple: boolean;
|
|
24
|
+
clearable: boolean;
|
|
25
|
+
trackBy: keyof T | null;
|
|
26
|
+
showSearchLimit: number;
|
|
27
|
+
showManyLimit: number;
|
|
28
|
+
showInLabelLimit: number;
|
|
29
|
+
set selected(value: T | T[] | null);
|
|
30
|
+
get selected(): T | T[] | null;
|
|
31
|
+
private _selected;
|
|
32
|
+
private _selectedOriginal;
|
|
33
|
+
search: string;
|
|
34
|
+
get showSearch(): boolean;
|
|
35
|
+
get showSelectAll(): boolean;
|
|
36
|
+
get isSelectedAll(): boolean;
|
|
37
|
+
get selectedArr(): T[];
|
|
38
|
+
get hasSelection(): boolean;
|
|
39
|
+
sliceArray(selected: T[]): T[];
|
|
40
|
+
trackByFn(index: number, item: T): number | T[keyof T];
|
|
41
|
+
_item(item: T | null): T | T[keyof T];
|
|
42
|
+
onSelectedItemChanged(item: T, isSelected: boolean, closePopover: () => void): void;
|
|
43
|
+
onSelectAll(): void;
|
|
44
|
+
isSelected(item: T | null): boolean;
|
|
45
|
+
onApply(closePopover: () => void): void;
|
|
46
|
+
onClear(close: () => void): void;
|
|
47
|
+
onPopoverClose(): void;
|
|
48
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterDropdownComponent<any>, never>;
|
|
49
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FilterDropdownComponent<any>, "dr-filter-dropdown", never, { "disabled": { "alias": "disabled"; "required": false; }; "items": { "alias": "items"; "required": true; }; "label": { "alias": "label"; "required": true; }; "selectedUser": { "alias": "selectedUser"; "required": false; }; "users": { "alias": "users"; "required": false; }; "noItemsPlaceholder": { "alias": "noItemsPlaceholder"; "required": false; }; "dropdownClass": { "alias": "dropdownClass"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "displayValue": { "alias": "displayValue"; "required": false; }; "searchBy": { "alias": "searchBy"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "showSearchLimit": { "alias": "showSearchLimit"; "required": false; }; "showManyLimit": { "alias": "showManyLimit"; "required": false; }; "showInLabelLimit": { "alias": "showInLabelLimit"; "required": false; }; "selected": { "alias": "selected"; "required": true; }; }, { "selectedChange": "selectedChange"; }, ["dropdownItemTemplate", "labelItemTemplate"], never, true, never>;
|
|
50
|
+
static ngAcceptInputType_disabled: unknown;
|
|
51
|
+
static ngAcceptInputType_multiple: unknown;
|
|
52
|
+
static ngAcceptInputType_clearable: unknown;
|
|
53
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SearchPipe<T> implements PipeTransform {
|
|
4
|
+
transform(list: T[], value?: string, fields?: string[]): T[];
|
|
5
|
+
static search<T>(list: T[], value?: string, fields?: string[]): T[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchPipe<any>, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SearchPipe<any>, "search", true>;
|
|
8
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -158,3 +158,6 @@ export { DrProgressBarComponent } from './lib/dr-progress-bar/dr-progress-bar.co
|
|
|
158
158
|
export * from './lib/drawer/public-api';
|
|
159
159
|
export * from './lib/text-overflow/element-overflow.directive';
|
|
160
160
|
export * from './lib/text-overflow/text-overflow.component';
|
|
161
|
+
export * from './lib/directives/autofocus/autofocus.directive';
|
|
162
|
+
export * from './lib/pipes/search/search.pipe';
|
|
163
|
+
export * from './lib/filter-dropdown/filter-dropdown.component';
|
|
Binary file
|