@lucca-front/ng 17.2.1 → 17.3.0-rc.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/api/api.model.d.ts +1 -1
- package/button/button.component.d.ts +5 -2
- package/core/portal/portal-content.d.ts +3 -2
- package/core/portal/portal.directive.d.ts +3 -1
- package/core/type/style.d.ts +1 -1
- package/core-select/api/api-v3.directive.d.ts +25 -0
- package/core-select/api/api-v4.directive.d.ts +19 -0
- package/core-select/api/api.directive.d.ts +31 -0
- package/core-select/api/index.d.ts +5 -0
- package/core-select/api/public-api.d.ts +3 -0
- package/core-select/establishment/establishment-grouping.component.d.ts +7 -0
- package/core-select/establishment/establishment-grouping.service.d.ts +13 -0
- package/core-select/establishment/establishments.directive.d.ts +25 -0
- package/core-select/establishment/index.d.ts +5 -0
- package/core-select/establishment/models.d.ts +9 -0
- package/core-select/establishment/public-api.d.ts +3 -0
- package/core-select/input/select-input.component.d.ts +6 -6
- package/core-select/job-qualification/index.d.ts +5 -0
- package/core-select/job-qualification/job-qualification-grouping.component.d.ts +7 -0
- package/core-select/job-qualification/job-qualifications.directive.d.ts +19 -0
- package/core-select/job-qualification/models.d.ts +7 -0
- package/core-select/job-qualification/public-api.d.ts +2 -0
- package/core-select/option/group.directive.d.ts +9 -3
- package/core-select/option/option.component.d.ts +1 -0
- package/core-select/user/index.d.ts +5 -0
- package/core-select/user/me.provider.d.ts +3 -0
- package/core-select/user/public-api.d.ts +3 -0
- package/core-select/user/user-displayer.component.d.ts +10 -0
- package/core-select/user/user-homonym.service.d.ts +13 -0
- package/core-select/user/user-option.component.d.ts +12 -0
- package/core-select/user/user-option.model.d.ts +9 -0
- package/core-select/user/user.translate.d.ts +7 -0
- package/core-select/user/users.directive.d.ts +38 -0
- package/dialog/dialog/dialog.component.d.ts +12 -0
- package/dialog/dialog-content/dialog-content.component.d.ts +5 -0
- package/dialog/dialog-footer/dialog-footer.component.d.ts +5 -0
- package/dialog/dialog-header/dialog-header.component.d.ts +12 -0
- package/dialog/dialog-header/dialog-header.translate.d.ts +7 -0
- package/dialog/dialog.provider.d.ts +2 -0
- package/dialog/dialog.service.d.ts +8 -0
- package/dialog/directives/dialog-close.directive.d.ts +7 -0
- package/dialog/directives/dialog-dismiss.directive.d.ts +7 -0
- package/dialog/directives/dialog-open.directive.d.ts +11 -0
- package/dialog/index.d.ts +5 -0
- package/dialog/model/dialog-config.d.ts +68 -0
- package/dialog/model/dialog-ref.d.ts +33 -0
- package/dialog/model/index.d.ts +3 -0
- package/dialog/model/injectors.d.ts +4 -0
- package/dialog/public-api.d.ts +10 -0
- package/esm2022/a11y/skip-links/skip-links.component.mjs +3 -3
- package/esm2022/api/api.model.mjs +1 -1
- package/esm2022/api/select/input/api-select-input.component.mjs +3 -3
- package/esm2022/api/select/searcher/api-searcher.component.mjs +5 -5
- package/esm2022/button/button.component.mjs +30 -5
- package/esm2022/callout/callout/callout.component.mjs +3 -3
- package/esm2022/callout/callout-disclosure/callout-disclosure.component.mjs +3 -3
- package/esm2022/callout/callout-feedback-item/callout-feedback-item.component.mjs +2 -2
- package/esm2022/callout/callout-feedback-list/callout-feedback-list.component.mjs +2 -2
- package/esm2022/callout/callout-popover/callout-popover.component.mjs +3 -3
- package/esm2022/core/portal/portal-content.mjs +3 -2
- package/esm2022/core/portal/portal.directive.mjs +18 -5
- package/esm2022/core/type/style.mjs +1 -1
- package/esm2022/core-select/api/api-v3.directive.mjs +62 -0
- package/esm2022/core-select/api/api-v4.directive.mjs +56 -0
- package/esm2022/core-select/api/api.directive.mjs +46 -0
- package/esm2022/core-select/api/lucca-front-ng-core-select-api.mjs +5 -0
- package/esm2022/core-select/api/public-api.mjs +4 -0
- package/esm2022/core-select/establishment/establishment-grouping.component.mjs +21 -0
- package/esm2022/core-select/establishment/establishment-grouping.service.mjs +22 -0
- package/esm2022/core-select/establishment/establishments.directive.mjs +96 -0
- package/esm2022/core-select/establishment/lucca-front-ng-core-select-establishment.mjs +5 -0
- package/esm2022/core-select/establishment/models.mjs +2 -0
- package/esm2022/core-select/establishment/public-api.mjs +4 -0
- package/esm2022/core-select/input/select-input.component.mjs +18 -18
- package/esm2022/core-select/job-qualification/job-qualification-grouping.component.mjs +21 -0
- package/esm2022/core-select/job-qualification/job-qualifications.directive.mjs +64 -0
- package/esm2022/core-select/job-qualification/lucca-front-ng-core-select-job-qualification.mjs +5 -0
- package/esm2022/core-select/job-qualification/models.mjs +2 -0
- package/esm2022/core-select/job-qualification/public-api.mjs +3 -0
- package/esm2022/core-select/option/group.directive.mjs +5 -2
- package/esm2022/core-select/option/option.component.mjs +5 -4
- package/esm2022/core-select/user/lucca-front-ng-core-select-user.mjs +5 -0
- package/esm2022/core-select/user/me.provider.mjs +9 -0
- package/esm2022/core-select/user/public-api.mjs +4 -0
- package/esm2022/core-select/user/user-displayer.component.mjs +32 -0
- package/esm2022/core-select/user/user-homonym.service.mjs +59 -0
- package/esm2022/core-select/user/user-option.component.mjs +46 -0
- package/esm2022/core-select/user/user-option.model.mjs +2 -0
- package/esm2022/core-select/user/user.translate.mjs +22 -0
- package/esm2022/core-select/user/users.directive.mjs +141 -0
- package/esm2022/date/calendar/calendar-input.component.mjs +3 -3
- package/esm2022/date/select/date-select-input.component.mjs +3 -3
- package/esm2022/department/select/input/department-select-input.component.mjs +3 -3
- package/esm2022/dialog/dialog/dialog.component.mjs +31 -0
- package/esm2022/dialog/dialog-content/dialog-content.component.mjs +20 -0
- package/esm2022/dialog/dialog-footer/dialog-footer.component.mjs +14 -0
- package/esm2022/dialog/dialog-header/dialog-header.component.mjs +43 -0
- package/esm2022/dialog/dialog-header/dialog-header.translate.mjs +19 -0
- package/esm2022/dialog/dialog.provider.mjs +7 -0
- package/esm2022/dialog/dialog.service.mjs +69 -0
- package/esm2022/dialog/directives/dialog-close.directive.mjs +22 -0
- package/esm2022/dialog/directives/dialog-dismiss.directive.mjs +22 -0
- package/esm2022/dialog/directives/dialog-open.directive.mjs +33 -0
- package/esm2022/dialog/lucca-front-ng-dialog.mjs +5 -0
- package/esm2022/dialog/model/dialog-config.mjs +4 -0
- package/esm2022/dialog/model/dialog-ref.mjs +49 -0
- package/esm2022/dialog/model/index.mjs +4 -0
- package/esm2022/dialog/model/injectors.mjs +10 -0
- package/esm2022/dialog/public-api.mjs +11 -0
- package/esm2022/empty-state/empty-state-page/empty-state-page.component.mjs +4 -4
- package/esm2022/empty-state/empty-state-section/empty-state-section.component.mjs +3 -3
- package/esm2022/establishment/select/establishment-select.token.mjs +4 -0
- package/esm2022/establishment/select/input/establishment-select-input.component.mjs +15 -18
- package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.directive.mjs +9 -10
- package/esm2022/establishment/select/searcher/establishment-searcher.component.mjs +11 -12
- package/esm2022/establishment/select/select-all/establishment-select-all.component.mjs +11 -12
- package/esm2022/form-field/form-field.component.mjs +9 -4
- package/esm2022/form-field/input.directive.mjs +6 -2
- package/esm2022/forms/checkbox-input/checkbox-input.component.mjs +4 -4
- package/esm2022/forms/switch-input/switch-input.component.mjs +4 -4
- package/esm2022/forms/text-input/text-input.component.mjs +4 -4
- package/esm2022/icon/icon.component.mjs +4 -4
- package/esm2022/inline-message/inline-message.component.mjs +3 -3
- package/esm2022/input/clearer/clearer.component.mjs +3 -3
- package/esm2022/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.mjs +97 -0
- package/esm2022/modal/dialog-adapter/dialog-ref-adapter.mjs +19 -0
- package/esm2022/modal/modal-panel.component.mjs +7 -7
- package/esm2022/modal/modal.module.mjs +3 -2
- package/esm2022/modal/modal.service.mjs +18 -1
- package/esm2022/multi-select/displayer/default-displayer.component.mjs +4 -2
- package/esm2022/multi-select/input/panel-ref.factory.mjs +6 -6
- package/esm2022/multi-select/input/select-input.component.mjs +5 -12
- package/esm2022/multi-select/panel/not-selected.pipe.mjs +18 -0
- package/esm2022/multi-select/panel/panel.component.mjs +47 -21
- package/esm2022/multi-select/select.model.mjs +2 -2
- package/esm2022/multi-select/select.translate.mjs +6 -1
- package/esm2022/new-badge/new-badge.component.mjs +2 -2
- package/esm2022/numeric-badge/numeric-badge.component.mjs +6 -6
- package/esm2022/option/item/option-item.component.mjs +3 -3
- package/esm2022/option/item/tree-option-item.component.mjs +3 -3
- package/esm2022/option/operator/searcher/option-searcher.component.mjs +3 -3
- package/esm2022/option/operator/searcher/tree-option-searcher.component.mjs +3 -3
- package/esm2022/option/placeholder/option-placeholder.component.mjs +2 -2
- package/esm2022/option/selector/all/select-all.component.mjs +2 -2
- package/esm2022/option/selector/all/tree-select-all.component.mjs +2 -2
- package/esm2022/qualification/select/input/qualification-select-input.component.mjs +3 -3
- package/esm2022/select/input/select-input.component.mjs +2 -2
- package/esm2022/simple-select/api/api-v3.directive.mjs +6 -62
- package/esm2022/simple-select/api/api-v4.directive.mjs +6 -56
- package/esm2022/simple-select/api/api.directive.mjs +6 -40
- package/esm2022/simple-select/input/panel-ref.factory.mjs +7 -7
- package/esm2022/simple-select/input/select-input.component.mjs +4 -11
- package/esm2022/simple-select/panel/option-selected.pipe.mjs +17 -0
- package/esm2022/simple-select/panel/panel.component.mjs +22 -21
- package/esm2022/simple-select/select.model.mjs +2 -2
- package/esm2022/tooltip/panel/tooltip-panel.component.mjs +3 -3
- package/esm2022/user/picture/user-picture.component.mjs +2 -2
- package/esm2022/user/select/input/user-select-input.component.mjs +3 -3
- package/esm2022/user/select/searcher/user-searcher.component.mjs +3 -3
- package/esm2022/user/tile/user-tile.component.mjs +2 -2
- package/establishment/select/establishment-select.token.d.ts +4 -0
- package/establishment/select/input/establishment-select-input.component.d.ts +2 -2
- package/establishment/select/legal-unit-selector/legal-unit-selector.directive.d.ts +2 -2
- package/establishment/select/searcher/establishment-searcher.component.d.ts +2 -2
- package/establishment/select/select-all/establishment-select-all.component.d.ts +2 -2
- package/fesm2022/lucca-front-ng-a11y.mjs +2 -2
- package/fesm2022/lucca-front-ng-a11y.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-api.mjs +6 -6
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-button.mjs +29 -4
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +10 -10
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-api.mjs +162 -0
- package/fesm2022/lucca-front-ng-core-select-api.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs +138 -0
- package/fesm2022/lucca-front-ng-core-select-establishment.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs +89 -0
- package/fesm2022/lucca-front-ng-core-select-job-qualification.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select-user.mjs +293 -0
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select.mjs +24 -20
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core.mjs +19 -5
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +4 -4
- package/fesm2022/lucca-front-ng-date.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +2 -2
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +318 -0
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-empty-state.mjs +5 -5
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +38 -45
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +13 -4
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +7 -7
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-icon.mjs +3 -3
- package/fesm2022/lucca-front-ng-icon.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-inline-message.mjs +2 -2
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs +2 -2
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +126 -7
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +77 -36
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-new-badge.mjs +2 -2
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +5 -5
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +14 -14
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-qualification.mjs +2 -2
- package/fesm2022/lucca-front-ng-qualification.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-select.mjs +2 -2
- package/fesm2022/lucca-front-ng-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select-api.mjs +13 -146
- package/fesm2022/lucca-front-ng-simple-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +43 -35
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +2 -2
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +8 -8
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/icon/icon.component.d.ts +1 -1
- package/material/style/components/_datepicker.scss +4 -4
- package/modal/dialog-adapter/dialog-content-adapter/dialog-content-adapter.component.d.ts +36 -0
- package/modal/dialog-adapter/dialog-ref-adapter.d.ts +19 -0
- package/modal/modal.service.d.ts +3 -0
- package/multi-select/input/panel-ref.factory.d.ts +2 -2
- package/multi-select/panel/not-selected.pipe.d.ts +7 -0
- package/multi-select/panel/panel.component.d.ts +6 -5
- package/multi-select/select.model.d.ts +3 -12
- package/multi-select/select.translate.d.ts +1 -0
- package/numeric-badge/numeric-badge.component.d.ts +2 -3
- package/package.json +56 -26
- package/simple-select/api/api-v3.directive.d.ts +5 -25
- package/simple-select/api/api-v4.directive.d.ts +5 -22
- package/simple-select/api/api.directive.d.ts +5 -32
- package/simple-select/input/panel-ref.factory.d.ts +2 -2
- package/simple-select/panel/option-selected.pipe.d.ts +7 -0
- package/simple-select/panel/panel.component.d.ts +5 -5
- package/simple-select/select.model.d.ts +3 -12
- package/src/components/_dropdown.scss +4 -4
- package/src/components/_picker.scss +14 -11
- package/src/components/_popover.scss +2 -2
- package/src/components/_popup.scss +6 -7
- package/src/components/cdk/_dragDrop.scss +4 -4
- package/src/components/cdk/_overlay.scss +2 -2
- package/src/definitions/option/_option-item.scss +16 -15
- package/src/definitions/option/_option-placeholder.scss +1 -1
- package/src/definitions/option/_option-searcher.scss +1 -1
- package/src/definitions/option/_option-selector.scss +2 -2
- package/src/definitions/select/_select-input.scss +14 -14
- package/src/definitions/tooltip/_tooltip.scss +1 -1
- package/src/definitions/user/user-picture.scss +3 -3
- package/src/definitions/user/user-tile.scss +14 -14
package/api/api.model.d.ts
CHANGED
|
@@ -9,6 +9,6 @@ export interface ILuApiItem<TId = number> {
|
|
|
9
9
|
export interface ILuApiResponse<D> {
|
|
10
10
|
data: D;
|
|
11
11
|
}
|
|
12
|
-
export type ILuApiCollectionResponse<T
|
|
12
|
+
export type ILuApiCollectionResponse<T> = ILuApiResponse<{
|
|
13
13
|
items: T[];
|
|
14
14
|
}>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnChanges } from '@angular/core';
|
|
1
|
+
import { ElementRef, OnChanges } from '@angular/core';
|
|
2
2
|
import { Palette } from '@lucca-front/ng/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class ButtonComponent implements OnChanges {
|
|
@@ -12,8 +12,11 @@ export declare class ButtonComponent implements OnChanges {
|
|
|
12
12
|
* We just make this explicit here.
|
|
13
13
|
*/
|
|
14
14
|
luButton: '' | 'outlined' | 'text' | 'text-invert';
|
|
15
|
+
set iconComponentRef(ref: ElementRef<HTMLElement>);
|
|
16
|
+
private get iconOnly();
|
|
15
17
|
ngOnChanges(): void;
|
|
18
|
+
updateClasses(): void;
|
|
16
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<ButtonComponent, never>;
|
|
17
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[luButton],a[luButton]", never, { "size": { "alias": "size"; "required": false; }; "block": { "alias": "block"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "state": { "alias": "state"; "required": false; }; "luButton": { "alias": "luButton"; "required": false; }; }, {},
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ButtonComponent, "button[luButton],a[luButton]", never, { "size": { "alias": "size"; "required": false; }; "block": { "alias": "block"; "required": false; }; "palette": { "alias": "palette"; "required": false; }; "state": { "alias": "state"; "required": false; }; "luButton": { "alias": "luButton"; "required": false; }; }, {}, ["iconComponentRef"], ["*"], true, never>;
|
|
18
21
|
static ngAcceptInputType_block: unknown;
|
|
19
22
|
}
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
export type PortalContent<T = unknown> = string | TemplateRef<T>;
|
|
1
|
+
import { InjectionToken, TemplateRef, Type } from '@angular/core';
|
|
2
|
+
export type PortalContent<T = unknown> = string | TemplateRef<T> | Type<unknown>;
|
|
3
|
+
export declare const PORTAL_CONTEXT: InjectionToken<unknown>;
|
|
@@ -5,9 +5,11 @@ export declare class PortalDirective<T = unknown> implements OnChanges {
|
|
|
5
5
|
private viewContainerRef;
|
|
6
6
|
private renderer;
|
|
7
7
|
private templateRef;
|
|
8
|
+
private injector;
|
|
8
9
|
luPortal: PortalContent<T>;
|
|
10
|
+
luPortalContext: T | null;
|
|
9
11
|
private render;
|
|
10
12
|
ngOnChanges(changes: SimpleChanges): void;
|
|
11
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<PortalDirective<any>, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<PortalDirective<any>, "[luPortal]", never, { "luPortal": { "alias": "luPortal"; "required": true; }; }, {}, never, never, true, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PortalDirective<any>, "[luPortal]", never, { "luPortal": { "alias": "luPortal"; "required": true; }; "luPortalContext": { "alias": "luPortalContext"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
15
|
}
|
package/core/type/style.d.ts
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ILuApiItem } from '@lucca-front/ng/api';
|
|
3
|
+
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
|
4
|
+
import { ALuCoreSelectApiDirective } from './api.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LuCoreSelectApiV3Directive<T extends ILuApiItem> extends ALuCoreSelectApiDirective<T> {
|
|
7
|
+
set apiV3(value: string);
|
|
8
|
+
set fields(value: string);
|
|
9
|
+
set orderBy(value: string | null);
|
|
10
|
+
set filters(value: Record<string, string | number | boolean>);
|
|
11
|
+
protected url$: ReplaySubject<string>;
|
|
12
|
+
protected fields$: BehaviorSubject<string>;
|
|
13
|
+
protected orderBy$: BehaviorSubject<string>;
|
|
14
|
+
protected filters$: BehaviorSubject<Record<string, string | number | boolean>>;
|
|
15
|
+
protected httpClient: HttpClient;
|
|
16
|
+
protected params$: Observable<{
|
|
17
|
+
name?: string;
|
|
18
|
+
orderBy?: string;
|
|
19
|
+
fields: string;
|
|
20
|
+
}>;
|
|
21
|
+
protected getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]>;
|
|
22
|
+
protected optionComparer: (a: T, b: T) => boolean;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuCoreSelectApiV3Directive<any>, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuCoreSelectApiV3Directive<any>, "lu-simple-select[apiV3],lu-multi-select[apiV3]", never, { "apiV3": { "alias": "apiV3"; "required": false; }; "fields": { "alias": "fields"; "required": false; }; "orderBy": { "alias": "orderBy"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ILuApiItem } from '@lucca-front/ng/api';
|
|
3
|
+
import { BehaviorSubject, Observable, ReplaySubject } from 'rxjs';
|
|
4
|
+
import { ALuCoreSelectApiDirective } from './api.directive';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LuCoreSelectApiV4Directive<T extends ILuApiItem> extends ALuCoreSelectApiDirective<T> {
|
|
7
|
+
set apiV4(value: string);
|
|
8
|
+
set sort(value: string | null);
|
|
9
|
+
set filters(value: Record<string, string | number | boolean>);
|
|
10
|
+
protected url$: ReplaySubject<string>;
|
|
11
|
+
protected sort$: BehaviorSubject<string>;
|
|
12
|
+
protected filters$: BehaviorSubject<Record<string, string | number | boolean>>;
|
|
13
|
+
protected httpClient: HttpClient;
|
|
14
|
+
protected params$: Observable<Record<string, string | number | boolean>>;
|
|
15
|
+
protected getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]>;
|
|
16
|
+
protected optionComparer: (a: T, b: T) => boolean;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuCoreSelectApiV4Directive<any>, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuCoreSelectApiV4Directive<any>, "lu-simple-select[apiV4],lu-multi-select[apiV4]", never, { "apiV4": { "alias": "apiV4"; "required": false; }; "sort": { "alias": "sort"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ALuSelectInputComponent } from '@lucca-front/ng/core-select';
|
|
3
|
+
import { Observable, Subject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare const MAGIC_PAGE_SIZE = 20;
|
|
6
|
+
export declare const MAGIC_DEBOUNCE_DURATION = 250;
|
|
7
|
+
export declare abstract class ALuCoreSelectApiDirective<TOption, TParams = Record<string, string | number | boolean>> implements OnDestroy, OnInit {
|
|
8
|
+
protected destroy$: Subject<void>;
|
|
9
|
+
protected pageSize: number;
|
|
10
|
+
protected debounceDuration: number;
|
|
11
|
+
select: ALuSelectInputComponent<TOption, unknown>;
|
|
12
|
+
protected page$: Observable<number>;
|
|
13
|
+
protected clue$: Observable<string>;
|
|
14
|
+
/**
|
|
15
|
+
* Create an object that will be used as params for the api call
|
|
16
|
+
*/
|
|
17
|
+
protected abstract params$: Observable<TParams>;
|
|
18
|
+
/**
|
|
19
|
+
* Compare two options to know if they are the same. For example, compare by id or by JSON
|
|
20
|
+
*/
|
|
21
|
+
protected abstract optionComparer: (a: TOption, b: TOption) => boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Return the options for the given params and page
|
|
24
|
+
*/
|
|
25
|
+
protected abstract getOptions(params: TParams, page: number): Observable<TOption[]>;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
protected buildOptions(): Observable<TOption[]>;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ALuCoreSelectApiDirective<any, any>, never>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ALuCoreSelectApiDirective<any, any>, never, never, {}, {}, never, never, false, never>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LuCoreSelectEstablishment } from './models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LuEstablishmentGroupingComponent {
|
|
4
|
+
group: import("@lucca-front/ng/core-select").LuOptionGroup<LuCoreSelectEstablishment, number>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuEstablishmentGroupingComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuEstablishmentGroupingComponent, "lu-establishment-grouping", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpClient, HttpParams } from '@angular/common/http';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class EstablishmentGroupingService {
|
|
4
|
+
protected http: HttpClient;
|
|
5
|
+
protected establishmentsUrl: string;
|
|
6
|
+
protected legalUnitsUrl: string;
|
|
7
|
+
protected countParams: HttpParams;
|
|
8
|
+
protected establishmentsCount$: import("rxjs").Observable<number>;
|
|
9
|
+
protected legalUnitsCount$: import("rxjs").Observable<number>;
|
|
10
|
+
useGrouping$: import("rxjs").Observable<boolean>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EstablishmentGroupingService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EstablishmentGroupingService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { LuCoreSelectEstablishment } from './models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class LuCoreSelectEstablishmentsDirective<T extends LuCoreSelectEstablishment = LuCoreSelectEstablishment> extends ALuCoreSelectApiDirective<T> implements OnInit {
|
|
8
|
+
#private;
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
set url(url: string | null);
|
|
11
|
+
set filters(filters: Record<string, string | number | boolean> | null);
|
|
12
|
+
set operationIds(ids: number[] | null);
|
|
13
|
+
set appInstanceId(id: number | null);
|
|
14
|
+
protected _url: import("@angular/core").WritableSignal<string>;
|
|
15
|
+
protected _filters: import("@angular/core").WritableSignal<Record<string, string | number | boolean>>;
|
|
16
|
+
protected _operationIds: import("@angular/core").WritableSignal<number[]>;
|
|
17
|
+
protected _appInstanceId: import("@angular/core").WritableSignal<number>;
|
|
18
|
+
ngOnInit(): void;
|
|
19
|
+
protected initGrouping(): void;
|
|
20
|
+
protected getOptions(params: Record<string, string | number | boolean> | null, page: number): Observable<T[]>;
|
|
21
|
+
protected params$: Observable<Record<string, string | number | boolean>>;
|
|
22
|
+
protected optionComparer: (a: T, b: T) => boolean;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuCoreSelectEstablishmentsDirective<any>, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuCoreSelectEstablishmentsDirective<any>, "lu-simple-select[establishments],lu-multi-select[establishments]", ["luEstablishments"], { "url": { "alias": "url"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "operationIds": { "alias": "operationIds"; "required": false; }; "appInstanceId": { "alias": "appInstanceId"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ILuApiItem } from '@lucca-front/ng/api';
|
|
2
|
+
export interface LuCoreSelectLegalUnit extends ILuApiItem {
|
|
3
|
+
countryId: number;
|
|
4
|
+
}
|
|
5
|
+
export interface LuCoreSelectEstablishment extends ILuApiItem {
|
|
6
|
+
code: string;
|
|
7
|
+
legalUnitId: number;
|
|
8
|
+
legalUnit: LuCoreSelectLegalUnit;
|
|
9
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OverlayConfig } from '@angular/cdk/overlay';
|
|
2
2
|
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit, TemplateRef, Type } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject, ReplaySubject, Subject } from 'rxjs';
|
|
4
|
-
import {
|
|
4
|
+
import { LuOptionGrouping } from '../option';
|
|
5
5
|
import { LuSelectPanelRef } from '../panel';
|
|
6
6
|
import { LuOptionContext } from '../select.model';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -24,7 +24,7 @@ export declare abstract class ALuSelectInputComponent<TOption, TValue> implement
|
|
|
24
24
|
optionComparer: (option1: TOption, option2: TOption) => boolean;
|
|
25
25
|
optionTpl?: TemplateRef<LuOptionContext<TOption>> | Type<unknown>;
|
|
26
26
|
valueTpl?: TemplateRef<LuOptionContext<TOption>> | Type<unknown>;
|
|
27
|
-
grouping?:
|
|
27
|
+
grouping?: LuOptionGrouping<TOption, unknown>;
|
|
28
28
|
clueChange: EventEmitter<string>;
|
|
29
29
|
nextPage: EventEmitter<void>;
|
|
30
30
|
previousPage: EventEmitter<void>;
|
|
@@ -34,9 +34,9 @@ export declare abstract class ALuSelectInputComponent<TOption, TValue> implement
|
|
|
34
34
|
clueChanged(clue: string): void;
|
|
35
35
|
protected _value?: TValue;
|
|
36
36
|
options$: ReplaySubject<TOption[]>;
|
|
37
|
-
loading$:
|
|
37
|
+
loading$: BehaviorSubject<boolean>;
|
|
38
38
|
clue: string | null;
|
|
39
|
-
|
|
39
|
+
lastEmittedClue: string;
|
|
40
40
|
protected onChange?: (value: TValue | null) => void;
|
|
41
41
|
protected onTouched?: () => void;
|
|
42
42
|
get panelRef(): LuSelectPanelRef<TOption, TValue> | undefined;
|
|
@@ -54,7 +54,7 @@ export declare abstract class ALuSelectInputComponent<TOption, TValue> implement
|
|
|
54
54
|
ngOnDestroy(): void;
|
|
55
55
|
ngOnInit(): void;
|
|
56
56
|
clearValue(event: Event): void;
|
|
57
|
-
openPanel(): void;
|
|
57
|
+
openPanel(clue?: string): void;
|
|
58
58
|
protected abstract buildPanelRef(): this['panelRef'];
|
|
59
59
|
protected bindInputToPanelRefEvents(): void;
|
|
60
60
|
protected focusInput(): void;
|
|
@@ -63,7 +63,7 @@ export declare abstract class ALuSelectInputComponent<TOption, TValue> implement
|
|
|
63
63
|
writeValue(value: TValue): void;
|
|
64
64
|
updateValue(value: TValue): void;
|
|
65
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<ALuSelectInputComponent<any, any>, never>;
|
|
66
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ALuSelectInputComponent<any, any>, never, never, { "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "overlayConfig": { "alias": "overlayConfig"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionComparer": { "alias": "optionComparer"; "required": false; }; "optionTpl": { "alias": "optionTpl"; "required": false; }; "valueTpl": { "alias": "valueTpl"; "required": false; }; }, { "clueChange": "clueChange"; "nextPage": "nextPage"; "previousPage": "previousPage"; },
|
|
66
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ALuSelectInputComponent<any, any>, never, never, { "placeholder": { "alias": "placeholder"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "overlayConfig": { "alias": "overlayConfig"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "options": { "alias": "options"; "required": false; }; "optionComparer": { "alias": "optionComparer"; "required": false; }; "optionTpl": { "alias": "optionTpl"; "required": false; }; "valueTpl": { "alias": "valueTpl"; "required": false; }; }, { "clueChange": "clueChange"; "nextPage": "nextPage"; "previousPage": "previousPage"; }, never, never, false, never>;
|
|
67
67
|
static ngAcceptInputType_clearable: unknown;
|
|
68
68
|
static ngAcceptInputType_disabled: unknown;
|
|
69
69
|
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { LuCoreSelectJobQualification } from './models';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LuJobQualificationGroupingComponent {
|
|
4
|
+
group: import("@lucca-front/ng/core-select").LuOptionGroup<LuCoreSelectJobQualification, number>;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuJobQualificationGroupingComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuJobQualificationGroupingComponent, "lu-job-qualification-grouping", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { OnInit } from '@angular/core';
|
|
3
|
+
import { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { LuCoreSelectJobQualification } from './models';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class LuCoreSelectJobQualificationsDirective<T extends LuCoreSelectJobQualification = LuCoreSelectJobQualification> extends ALuCoreSelectApiDirective<T> implements OnInit {
|
|
8
|
+
protected httpClient: HttpClient;
|
|
9
|
+
set url(url: string | null);
|
|
10
|
+
set filters(filters: Record<string, string | number | boolean> | null);
|
|
11
|
+
protected _url: import("@angular/core").WritableSignal<string>;
|
|
12
|
+
protected _filters: import("@angular/core").WritableSignal<Record<string, string | number | boolean>>;
|
|
13
|
+
constructor();
|
|
14
|
+
protected getOptions(params: Record<string, string | number | boolean> | null, page: number): Observable<T[]>;
|
|
15
|
+
protected params$: Observable<Record<string, string | number | boolean>>;
|
|
16
|
+
protected optionComparer: (a: T, b: T) => boolean;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuCoreSelectJobQualificationsDirective<any>, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuCoreSelectJobQualificationsDirective<any>, "lu-simple-select[jobQualifications],lu-multi-select[jobQualifications]", ["jobQualifications"], { "url": { "alias": "url"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; }, {}, never, never, true, never>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ILuApiItem } from '@lucca-front/ng/api';
|
|
2
|
+
export type LuCoreSelectJob = ILuApiItem;
|
|
3
|
+
export type LuCoreSelectJobQualificationLevel = ILuApiItem;
|
|
4
|
+
export interface LuCoreSelectJobQualification extends ILuApiItem {
|
|
5
|
+
job: LuCoreSelectJob;
|
|
6
|
+
level: LuCoreSelectJobQualificationLevel;
|
|
7
|
+
}
|
|
@@ -1,12 +1,18 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
1
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
2
|
+
import { PortalContent } from '@lucca-front/ng/core';
|
|
2
3
|
import type { ALuSelectInputComponent } from '../input';
|
|
3
4
|
import type { LuOptionGroupByContext } from '../select.model';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
|
-
export
|
|
6
|
+
export interface LuOptionGrouping<TOption, TGroup> {
|
|
7
|
+
selector: (option: TOption) => TGroup;
|
|
8
|
+
content: PortalContent<LuOptionGroupByContext<TOption, TGroup>>;
|
|
9
|
+
}
|
|
10
|
+
export declare class LuOptionGroupDirective<TOption, TValue, TGroup> implements LuOptionGrouping<TOption, TGroup>, OnInit {
|
|
6
11
|
select: ALuSelectInputComponent<TOption, TValue>;
|
|
7
12
|
selector: (option: TOption) => TGroup;
|
|
8
|
-
readonly
|
|
13
|
+
readonly content: TemplateRef<LuOptionGroupByContext<TOption, TGroup>>;
|
|
9
14
|
static ngTemplateContextGuard<TOption, TValue, TGroup>(_dir: LuOptionGroupDirective<TOption, TValue, TGroup>, ctx: unknown): ctx is LuOptionGroupByContext<TOption, TGroup>;
|
|
15
|
+
ngOnInit(): void;
|
|
10
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuOptionGroupDirective<any, any, any>, never>;
|
|
11
17
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LuOptionGroupDirective<any, any, any>, "[luOptionGroup]", never, { "select": { "alias": "luOptionGroupSelect"; "required": false; }; "selector": { "alias": "luOptionGroupBy"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
18
|
}
|
|
@@ -3,6 +3,7 @@ import { AfterViewInit, ElementRef, OnDestroy, TemplateRef, Type } from '@angula
|
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
import { LuOptionContext } from '../select.model';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const MAGIC_OPTION_SCROLL_DELAY = 15;
|
|
6
7
|
export declare class LuOptionComponent<T> implements Highlightable, AfterViewInit, OnDestroy {
|
|
7
8
|
hasOptionItemClass: boolean;
|
|
8
9
|
optionTpl: TemplateRef<LuOptionContext<T>> | Type<unknown> | undefined;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ILuOptionContext } from '@lucca-front/ng/core-select';
|
|
2
|
+
import { LuCoreSelectUser } from './user-option.model';
|
|
3
|
+
import { LuCoreSelectUsersDirective } from './users.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuUserDisplayerComponent {
|
|
6
|
+
protected context: ILuOptionContext<LuCoreSelectUser>;
|
|
7
|
+
protected userDirective: LuCoreSelectUsersDirective<any>;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuUserDisplayerComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuUserDisplayerComponent, "lu-user-displayer", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { LuDisplayFormat } from '@lucca-front/ng/user';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { LuCoreSelectUser } from './user-option.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LuCoreSelectUserHomonymsService {
|
|
7
|
+
protected http: HttpClient;
|
|
8
|
+
protected extractHomonyms<T extends LuCoreSelectUser>(users: T[], format: LuDisplayFormat): Set<T>;
|
|
9
|
+
handleHomonyms<T extends LuCoreSelectUser>(users: T[], format: LuDisplayFormat): Observable<T[]>;
|
|
10
|
+
protected getAdditionalInformationByUserId<T extends LuCoreSelectUser>(homonyms: T[]): Observable<Record<number, string>>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuCoreSelectUserHomonymsService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LuCoreSelectUserHomonymsService>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ILuOptionContext } from '@lucca-front/ng/core-select';
|
|
2
|
+
import { LuCoreSelectUser } from './user-option.model';
|
|
3
|
+
import { LuCoreSelectUsersDirective } from './users.directive';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuUserOptionComponent {
|
|
6
|
+
protected context: ILuOptionContext<LuCoreSelectUser>;
|
|
7
|
+
protected userDirective: LuCoreSelectUsersDirective<any>;
|
|
8
|
+
protected intl: import("./user.translate").LuCoreSelectUserTranslations;
|
|
9
|
+
protected hasEmptyClue$: import("rxjs").Observable<boolean>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuUserOptionComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuUserOptionComponent, "lu-user-option", never, {}, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ILuTranslation } from '@lucca-front/ng/core';
|
|
3
|
+
export declare const LU_CORE_SELECT_USER_TRANSLATIONS: InjectionToken<ILuTranslation<LuCoreSelectUserTranslations>>;
|
|
4
|
+
export interface LuCoreSelectUserTranslations {
|
|
5
|
+
me: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const luCoreSelectUserTranslations: ILuTranslation<LuCoreSelectUserTranslations>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { ALuCoreSelectApiDirective } from '@lucca-front/ng/core-select/api';
|
|
3
|
+
import { LuDisplayFormat } from '@lucca-front/ng/user';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { LuCoreSelectUser } from './user-option.model';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class LuCoreSelectUsersDirective<T extends LuCoreSelectUser = LuCoreSelectUser> extends ALuCoreSelectApiDirective<T> {
|
|
8
|
+
#private;
|
|
9
|
+
protected httpClient: HttpClient;
|
|
10
|
+
currentUserId: number;
|
|
11
|
+
set url(url: string | null);
|
|
12
|
+
set operationIds(ids: number[] | null);
|
|
13
|
+
set appInstanceId(id: number | null);
|
|
14
|
+
set enableFormerEmployees(value: boolean);
|
|
15
|
+
set displayMeOption(value: boolean);
|
|
16
|
+
get displayMeOption(): boolean;
|
|
17
|
+
set displayFormat(format: LuDisplayFormat);
|
|
18
|
+
private _displayFormat;
|
|
19
|
+
get displayFormat(): LuDisplayFormat;
|
|
20
|
+
protected _url: import("@angular/core").WritableSignal<string>;
|
|
21
|
+
constructor();
|
|
22
|
+
protected _orderBy: import("@angular/core").WritableSignal<string>;
|
|
23
|
+
protected _filters: import("@angular/core").WritableSignal<Record<string, string | number | boolean>>;
|
|
24
|
+
protected _operationIds: import("@angular/core").WritableSignal<number[]>;
|
|
25
|
+
protected _appInstanceId: import("@angular/core").WritableSignal<number>;
|
|
26
|
+
protected _enableFormerEmployees: import("@angular/core").WritableSignal<boolean>;
|
|
27
|
+
protected defaultUrl: import("@angular/core").Signal<string>;
|
|
28
|
+
protected customUrl: import("@angular/core").WritableSignal<string>;
|
|
29
|
+
protected _displayMeOption: import("@angular/core").WritableSignal<boolean>;
|
|
30
|
+
protected displayMeOption$: Observable<boolean>;
|
|
31
|
+
protected params$: Observable<Record<string, string | number | boolean>>;
|
|
32
|
+
protected getOptions(params: Record<string, string | number | boolean>, page: number): Observable<T[]>;
|
|
33
|
+
protected getMe(): Observable<T | null>;
|
|
34
|
+
protected buildOptions(): Observable<T[]>;
|
|
35
|
+
protected optionComparer: (a: T, b: T) => boolean;
|
|
36
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuCoreSelectUsersDirective<any>, never>;
|
|
37
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuCoreSelectUsersDirective<any>, "lu-simple-select[users],lu-multi-select[users]", never, { "url": { "alias": "url"; "required": false; }; "operationIds": { "alias": "operationIds"; "required": false; }; "appInstanceId": { "alias": "appInstanceId"; "required": false; }; "enableFormerEmployees": { "alias": "enableFormerEmployees"; "required": false; }; "displayMeOption": { "alias": "displayMeOption"; "required": false; }; "displayFormat": { "alias": "displayFormat"; "required": false; }; }, {}, never, never, true, never>;
|
|
38
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { LuDialogRef } from '../model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DialogComponent implements OnInit {
|
|
5
|
+
#private;
|
|
6
|
+
readonly dialogRef: LuDialogRef<unknown>;
|
|
7
|
+
close(): void;
|
|
8
|
+
dismiss(): void;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogComponent, "lu-dialog", never, {}, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DialogContentComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogContentComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogContentComponent, "lu-dialog-content", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DialogFooterComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogFooterComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogFooterComponent, "lu-dialog-footer", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DialogHeaderComponent implements OnInit {
|
|
4
|
+
#private;
|
|
5
|
+
intl: import("./dialog-header.translate").LuDialogHeaderTranslations;
|
|
6
|
+
id: string;
|
|
7
|
+
dismissible: boolean;
|
|
8
|
+
close(): void;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogHeaderComponent, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DialogHeaderComponent, "lu-dialog-header", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ILuTranslation } from '@lucca-front/ng/core';
|
|
3
|
+
export declare const LU_DIALOG_HEADER_TRANSLATIONS: InjectionToken<ILuTranslation<LuDialogHeaderTranslations>>;
|
|
4
|
+
export interface LuDialogHeaderTranslations {
|
|
5
|
+
close: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const luDialogHeaderTranslations: ILuTranslation<LuDialogHeaderTranslations>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { LuDialogConfig, LuDialogRef } from './model';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LuDialogService {
|
|
4
|
+
#private;
|
|
5
|
+
open<C>(config: LuDialogConfig<C>): LuDialogRef<C>;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuDialogService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LuDialogService>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DialogCloseDirective {
|
|
3
|
+
#private;
|
|
4
|
+
close(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogCloseDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogCloseDirective, "[luDialogClose]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class DialogDismissDirective {
|
|
3
|
+
#private;
|
|
4
|
+
close(): void;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogDismissDirective, never>;
|
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogDismissDirective, "[luDialogDismiss]", never, {}, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { LuDialogConfig } from '../model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DialogOpenDirective {
|
|
5
|
+
#private;
|
|
6
|
+
dialog: TemplateRef<void>;
|
|
7
|
+
luDialogConfig: LuDialogConfig<unknown>;
|
|
8
|
+
click(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DialogOpenDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DialogOpenDirective, "[luDialogOpen]", never, { "dialog": { "alias": "luDialogOpen"; "required": true; }; "luDialogConfig": { "alias": "luDialogConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|