ngx-ode-ui 3.12.0-dev.2 → 3.12.0-dev.20
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/bundles/ngx-ode-ui.umd.js +420 -12
- package/bundles/ngx-ode-ui.umd.js.map +1 -1
- package/bundles/ngx-ode-ui.umd.min.js +1 -1
- package/bundles/ngx-ode-ui.umd.min.js.map +1 -1
- package/esm2015/lib/components/datepicker/datepicker.component.js +42 -4
- package/esm2015/lib/components/dropdown/dropdown.component.js +76 -0
- package/esm2015/lib/components/list/list.component.js +25 -4
- package/esm2015/lib/components/list-checkable/list-checkable.component.js +137 -0
- package/esm2015/lib/components/multi-combo/multi-combo.component.js +2 -2
- package/esm2015/lib/components/search-input/search-input.component.js +26 -3
- package/esm2015/lib/components/search-toolbar/search-toolbar.component.js +84 -0
- package/esm2015/lib/ngx-ode-ui.module.js +11 -2
- package/esm2015/ngx-ode-ui.js +4 -2
- package/esm2015/public-api.js +2 -1
- package/esm5/lib/components/datepicker/datepicker.component.js +47 -4
- package/esm5/lib/components/dropdown/dropdown.component.js +81 -0
- package/esm5/lib/components/list/list.component.js +25 -4
- package/esm5/lib/components/list-checkable/list-checkable.component.js +148 -0
- package/esm5/lib/components/multi-combo/multi-combo.component.js +2 -2
- package/esm5/lib/components/search-input/search-input.component.js +30 -5
- package/esm5/lib/components/search-toolbar/search-toolbar.component.js +93 -0
- package/esm5/lib/ngx-ode-ui.module.js +11 -2
- package/esm5/ngx-ode-ui.js +4 -2
- package/esm5/public-api.js +2 -1
- package/fesm2015/ngx-ode-ui.js +390 -11
- package/fesm2015/ngx-ode-ui.js.map +1 -1
- package/fesm5/ngx-ode-ui.js +418 -13
- package/fesm5/ngx-ode-ui.js.map +1 -1
- package/lib/components/datepicker/datepicker.component.d.ts +2 -0
- package/lib/components/dropdown/dropdown.component.d.ts +36 -0
- package/lib/components/list/list.component.d.ts +7 -1
- package/lib/components/list-checkable/list-checkable.component.d.ts +55 -0
- package/lib/components/search-input/search-input.component.d.ts +5 -0
- package/lib/components/search-toolbar/search-toolbar.component.d.ts +34 -0
- package/ngx-ode-ui.d.ts +2 -0
- package/ngx-ode-ui.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { OnInit, EventEmitter, Injector } from '@angular/core';
|
|
2
|
+
import { OdeComponent } from 'ngx-ode-core';
|
|
3
|
+
/**
|
|
4
|
+
* DropdownComponent is an alternative to the MonoSelectComponent.
|
|
5
|
+
* Accept everything inside <ng-content> but should work with <ode-list> component
|
|
6
|
+
*
|
|
7
|
+
* Simple Dropdown Component without search:
|
|
8
|
+
* [isSearchActive] can be set to false to disable search input in <ode-list>
|
|
9
|
+
```
|
|
10
|
+
<ode-dropdown
|
|
11
|
+
[name]="option_name"
|
|
12
|
+
[isDropdownOpened]="a_boolean"
|
|
13
|
+
(onDropdown)="toggle_func"
|
|
14
|
+
>
|
|
15
|
+
<ode-list
|
|
16
|
+
[model]="model"
|
|
17
|
+
[filters]="filters"
|
|
18
|
+
(onSelect)="func_to_select_elem($event)"
|
|
19
|
+
(inputChange)="a_string_for_input_value = $event"
|
|
20
|
+
noResultsLabel="text_to_display"
|
|
21
|
+
searchPlaceholder="default_placeholder_text"
|
|
22
|
+
>
|
|
23
|
+
<ng-template let-item>
|
|
24
|
+
<div>{{ item.name }}</div>
|
|
25
|
+
</ng-template>
|
|
26
|
+
</ode-list>
|
|
27
|
+
</ode-dropdown>
|
|
28
|
+
`̀``
|
|
29
|
+
*/
|
|
30
|
+
export declare class DropdownComponent extends OdeComponent implements OnInit {
|
|
31
|
+
constructor(injector: Injector);
|
|
32
|
+
name: string;
|
|
33
|
+
isDropdownOpened: boolean;
|
|
34
|
+
onDropdown: EventEmitter<void>;
|
|
35
|
+
ngOnInit(): void;
|
|
36
|
+
}
|
|
@@ -4,13 +4,19 @@ export declare class ListComponent extends OdeComponent {
|
|
|
4
4
|
storedElements: any;
|
|
5
5
|
self: this;
|
|
6
6
|
_storedElements: any[];
|
|
7
|
-
model: any
|
|
7
|
+
model: any;
|
|
8
8
|
filters: any;
|
|
9
9
|
inputFilter: any;
|
|
10
10
|
sort: any;
|
|
11
11
|
limit: number;
|
|
12
12
|
searchPlaceholder: string;
|
|
13
13
|
noResultsLabel: string;
|
|
14
|
+
placeholder: string;
|
|
15
|
+
isSearchActive: boolean;
|
|
16
|
+
isSearchButtonDisabled: boolean;
|
|
17
|
+
searchInput: boolean;
|
|
18
|
+
searchDelay: number;
|
|
19
|
+
searchSubmit: () => void;
|
|
14
20
|
inputChange: EventEmitter<string>;
|
|
15
21
|
onSelect: EventEmitter<any>;
|
|
16
22
|
listChange: EventEmitter<any>;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { OdeComponent } from 'ngx-ode-core';
|
|
2
|
+
import { EventEmitter, TemplateRef, Injector } from '@angular/core';
|
|
3
|
+
/**
|
|
4
|
+
* ListCheckableComponent is an alternative to the ListComponent to easily select rows by using a checkbox.
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
```
|
|
8
|
+
<ode-list-checkable
|
|
9
|
+
[readOnly]="a_boolean"
|
|
10
|
+
[model]="an_array_of_items"
|
|
11
|
+
[filters]=""
|
|
12
|
+
[sort]="'+displayName'"
|
|
13
|
+
[limit]="a_number"
|
|
14
|
+
[noResultsLabel]="text_to_display_when_no_item_in_model"
|
|
15
|
+
[isChecked]="a_lambda_which_takes_1_item_argument_and_returns_a_boolean"
|
|
16
|
+
[areAllChecked]="a_lambda_with_no_argument_which_returns_a_boolean"
|
|
17
|
+
[ngClass]="a_lambda_which_takes_1_item_argument_and_returns_an_object"
|
|
18
|
+
(onCheck)="emits_an_$event_like_{item:any; checked:boolean}"
|
|
19
|
+
(listChange)=""
|
|
20
|
+
(scrolledDown)=""
|
|
21
|
+
>
|
|
22
|
+
|
|
23
|
+
<ng-template let-item>
|
|
24
|
+
<span>{{item.displayName|translate}}</span>
|
|
25
|
+
</ng-template>
|
|
26
|
+
|
|
27
|
+
</ode-list-checkable>
|
|
28
|
+
`̀``
|
|
29
|
+
*/
|
|
30
|
+
declare type OnCheckData = {
|
|
31
|
+
item: any;
|
|
32
|
+
checked: boolean;
|
|
33
|
+
};
|
|
34
|
+
export declare class ListCheckableComponent extends OdeComponent {
|
|
35
|
+
model: any[];
|
|
36
|
+
filters: any;
|
|
37
|
+
sort: any;
|
|
38
|
+
limit: number;
|
|
39
|
+
noResultsLabel: string;
|
|
40
|
+
readOnly: boolean;
|
|
41
|
+
onCheck: EventEmitter<OnCheckData>;
|
|
42
|
+
listChange: EventEmitter<any>;
|
|
43
|
+
scrolledDown: EventEmitter<void>;
|
|
44
|
+
templateRef: TemplateRef<any>;
|
|
45
|
+
areAllChecked: () => boolean;
|
|
46
|
+
isChecked: (arg?: any) => boolean;
|
|
47
|
+
isDisabled: (arg?: any) => boolean;
|
|
48
|
+
ngClass: (arg?: any) => {};
|
|
49
|
+
self: this;
|
|
50
|
+
_storedElements: any[];
|
|
51
|
+
storedElements: any;
|
|
52
|
+
constructor(injector: Injector);
|
|
53
|
+
toggleAll(checkAll: boolean): void;
|
|
54
|
+
}
|
|
55
|
+
export {};
|
|
@@ -4,6 +4,10 @@ export declare class SearchInputComponent extends OdeComponent implements OnInit
|
|
|
4
4
|
private _elRef;
|
|
5
5
|
private _renderer;
|
|
6
6
|
constructor(injector: Injector, _elRef: ElementRef, _renderer: Renderer2);
|
|
7
|
+
isSearchActive: boolean;
|
|
8
|
+
isSearchButtonDisabled: boolean;
|
|
9
|
+
searchInput: boolean;
|
|
10
|
+
searchSubmit: () => void;
|
|
7
11
|
delay: number;
|
|
8
12
|
private _delay;
|
|
9
13
|
onChange: EventEmitter<string>;
|
|
@@ -15,4 +19,5 @@ export declare class SearchInputComponent extends OdeComponent implements OnInit
|
|
|
15
19
|
ngOnInit(): void;
|
|
16
20
|
ngOnDestroy(): void;
|
|
17
21
|
search(str: string): void;
|
|
22
|
+
handleSubmit(): void;
|
|
18
23
|
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { EventEmitter, Injector } from "@angular/core";
|
|
2
|
+
import { OdeComponent } from "ngx-ode-core";
|
|
3
|
+
/**
|
|
4
|
+
* Search Toolbar component.
|
|
5
|
+
* Used within List component, Search Toolbar will display following information:
|
|
6
|
+
* - Label of the search filter section (example: 'Search by')
|
|
7
|
+
* - List of search type filters (example: 'Name', 'Email' , ...)
|
|
8
|
+
* - Number of items returned by the search
|
|
9
|
+
*
|
|
10
|
+
```
|
|
11
|
+
<ode-search-toolbar
|
|
12
|
+
[label]="'user.searchType.label'"
|
|
13
|
+
[searchTypes]="searchTypes"
|
|
14
|
+
[nbItem]="nbUser || 0"
|
|
15
|
+
[nbItemLabel]="'list.results.users'"
|
|
16
|
+
(selectSearchType)="handleSelectSearchType($event)"
|
|
17
|
+
>
|
|
18
|
+
</ode-search-toolbar>
|
|
19
|
+
```
|
|
20
|
+
*/
|
|
21
|
+
export declare class SearchToolbarComponent extends OdeComponent {
|
|
22
|
+
label: string;
|
|
23
|
+
searchTypes: Array<{
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}>;
|
|
27
|
+
nbItem: number;
|
|
28
|
+
nbItemLabel: string;
|
|
29
|
+
selectSearchType: EventEmitter<string>;
|
|
30
|
+
selectedSearchTypeValue: string;
|
|
31
|
+
constructor(injector: Injector);
|
|
32
|
+
ngOnInit(): void;
|
|
33
|
+
handleSearchTypeClick(searchTypeValue: string): void;
|
|
34
|
+
}
|
package/ngx-ode-ui.d.ts
CHANGED
|
@@ -2,3 +2,5 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
+
export { DropdownComponent as ɵa } from './lib/components/dropdown/dropdown.component';
|
|
6
|
+
export { SearchToolbarComponent as ɵb } from './lib/components/search-toolbar/search-toolbar.component';
|