@lucca-front/ng 16.3.1-rc.2 → 16.4.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/select/feeder/api-feeder.component.d.ts +2 -2
- package/api/select/feeder/api-feeder.model.d.ts +2 -2
- package/api/select/input/api-select-input.component.d.ts +1 -1
- package/api/select/pager/api-pager.component.d.ts +1 -1
- package/api/select/pager/api-pager.model.d.ts +3 -3
- package/api/select/searcher/api-searcher.component.d.ts +2 -2
- package/api/select/searcher/api-searcher.model.d.ts +2 -2
- package/api/service/api-hybrid.service.d.ts +5 -5
- package/api/service/api-service.model.d.ts +8 -8
- package/api/service/api-v3.service.d.ts +7 -7
- package/api/service/api-v4.service.d.ts +7 -7
- package/callout/callout.component.d.ts +2 -1
- package/core/public-api.d.ts +1 -0
- package/core/tools/ng-clazz.directive.d.ts +6 -0
- package/{simple-select/option → core-select/displayer}/displayer.directive.d.ts +2 -2
- package/core-select/displayer/index.d.ts +1 -0
- package/core-select/index.d.ts +5 -0
- package/core-select/input/index.d.ts +2 -0
- package/core-select/input/select-input.component.d.ts +59 -0
- package/{simple-select → core-select}/option/index.d.ts +2 -1
- package/{simple-select → core-select}/option/option.component.d.ts +2 -1
- package/{simple-select → core-select}/option/option.directive.d.ts +2 -2
- package/core-select/panel/index.d.ts +1 -0
- package/{simple-select → core-select}/panel/panel.models.d.ts +4 -4
- package/core-select/public-api.d.ts +5 -0
- package/core-select/select.model.d.ts +7 -0
- package/department/select/feeder/department-feeder.component.d.ts +2 -2
- package/department/select/input/department-select-input.component.d.ts +2 -2
- package/department/service/department-v3.service.d.ts +2 -2
- package/esm2022/api/select/feeder/api-feeder.component.mjs +1 -1
- package/esm2022/api/select/feeder/api-feeder.model.mjs +1 -1
- package/esm2022/api/select/input/api-select-input.component.mjs +3 -3
- package/esm2022/api/select/pager/api-pager.component.mjs +1 -1
- package/esm2022/api/select/pager/api-pager.model.mjs +1 -1
- package/esm2022/api/select/searcher/api-searcher.component.mjs +1 -1
- package/esm2022/api/select/searcher/api-searcher.model.mjs +1 -1
- package/esm2022/api/service/api-hybrid.service.mjs +1 -1
- package/esm2022/api/service/api-service.model.mjs +1 -1
- package/esm2022/api/service/api-v3.service.mjs +1 -1
- package/esm2022/api/service/api-v4.service.mjs +1 -1
- package/esm2022/callout/callout.component.mjs +3 -3
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/tools/ng-clazz.directive.mjs +18 -0
- package/esm2022/{simple-select/option → core-select/displayer}/displayer.directive.mjs +1 -1
- package/esm2022/core-select/displayer/index.mjs +2 -0
- package/esm2022/core-select/input/index.mjs +3 -0
- package/esm2022/core-select/input/select-input.component.mjs +203 -0
- package/esm2022/core-select/input/select-input.models.mjs +60 -0
- package/esm2022/core-select/lucca-front-ng-core-select.mjs +5 -0
- package/esm2022/{simple-select → core-select}/option/default-option.component.mjs +1 -1
- package/esm2022/core-select/option/disabled.directive.mjs +27 -0
- package/esm2022/core-select/option/index.mjs +7 -0
- package/esm2022/core-select/option/option-outlet.directive.mjs +71 -0
- package/esm2022/core-select/option/option.component.mjs +81 -0
- package/esm2022/core-select/option/option.directive.mjs +27 -0
- package/esm2022/core-select/option/option.token.mjs +22 -0
- package/esm2022/core-select/panel/index.mjs +2 -0
- package/esm2022/core-select/panel/panel.models.mjs +23 -0
- package/esm2022/core-select/public-api.mjs +6 -0
- package/esm2022/core-select/select.model.mjs +5 -0
- package/esm2022/date/input/date-input.translate.mjs +21 -21
- package/esm2022/date/select/date-select-input.component.mjs +3 -3
- package/esm2022/date/select/date-select-input.translate.mjs +16 -16
- package/esm2022/department/select/feeder/department-feeder.component.mjs +1 -1
- package/esm2022/department/select/input/department-select-input.component.mjs +3 -3
- package/esm2022/department/service/department-v3.service.mjs +1 -1
- package/esm2022/establishment/select/input/establishment-select-input.component.mjs +3 -3
- package/esm2022/establishment/select/legal-unit-selector/legal-unit-selector.directive.mjs +1 -1
- package/esm2022/establishment/select/searcher/establishment-searcher.component.mjs +1 -1
- package/esm2022/establishment/select/select-all/establishment-select-all.component.mjs +1 -1
- package/esm2022/establishment/service/establishment.service.mjs +1 -1
- package/esm2022/establishment/service/legal-unit.service.mjs +1 -1
- package/esm2022/form-field/form-field-size.mjs +2 -0
- package/esm2022/form-field/form-field.component.mjs +116 -0
- package/esm2022/form-field/input.directive.mjs +22 -0
- package/esm2022/form-field/lucca-front-ng-form-field.mjs +5 -0
- package/esm2022/form-field/public-api.mjs +4 -0
- package/esm2022/formly/types/api.mjs +1 -1
- package/esm2022/forms/abstract-field-component.mjs +25 -0
- package/esm2022/forms/checkboxfield/checkboxfield.component.mjs +41 -0
- package/esm2022/forms/form-field-id.directive.mjs +53 -0
- package/esm2022/forms/inject-ng-control.mjs +25 -0
- package/esm2022/forms/lucca-front-ng-forms.mjs +5 -0
- package/esm2022/forms/noop-value-accessor.directive.mjs +36 -0
- package/esm2022/forms/public-api.mjs +8 -0
- package/esm2022/forms/switchfield/switchfield.component.mjs +40 -0
- package/esm2022/forms/textfield/textfield-addon.mjs +2 -0
- package/esm2022/forms/textfield/textfield.component.mjs +73 -0
- package/esm2022/forms/textfield/textfield.translate.mjs +13 -0
- package/esm2022/icon/icon.component.mjs +27 -0
- package/esm2022/icon/lucca-front-ng-icon.mjs +5 -0
- package/esm2022/icon/public-api.mjs +2 -0
- package/esm2022/inline-message/inline-message-state.mjs +2 -0
- package/esm2022/inline-message/inline-message.component.mjs +15 -4
- package/esm2022/inline-message/public-api.mjs +2 -1
- package/esm2022/input/displayer/input-displayer.directive.mjs +1 -1
- package/esm2022/input/displayer/input-displayer.model.mjs +1 -1
- package/esm2022/multi-select/displayer/default-displayer.component.mjs +155 -0
- package/esm2022/multi-select/displayer/default-displayer.translate.mjs +32 -0
- package/esm2022/multi-select/displayer/displayer.directive.mjs +27 -0
- package/esm2022/multi-select/displayer/index.mjs +3 -0
- package/esm2022/multi-select/input/index.mjs +2 -0
- package/esm2022/multi-select/input/panel-ref.factory.mjs +121 -0
- package/esm2022/multi-select/input/panel.model.mjs +13 -0
- package/esm2022/multi-select/input/select-input.component.mjs +106 -0
- package/esm2022/multi-select/lucca-front-ng-multi-select.mjs +5 -0
- package/esm2022/multi-select/panel/index.mjs +2 -0
- package/esm2022/multi-select/panel/option-selected.pipe.mjs +18 -0
- package/esm2022/multi-select/panel/panel.component.mjs +146 -0
- package/esm2022/multi-select/panel/selected-chip.directive.mjs +27 -0
- package/esm2022/multi-select/public-api.mjs +4 -0
- package/esm2022/multi-select/select.model.mjs +3 -0
- package/esm2022/multi-select/select.translate.mjs +62 -0
- 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/feeder/option-feeder.component.mjs +1 -1
- package/esm2022/option/operator/for-options/for-options.directive.mjs +1 -1
- package/esm2022/option/operator/option-operator.model.mjs +1 -1
- package/esm2022/option/operator/pager/tree-option-pager.component.mjs +1 -1
- package/esm2022/option/picker/option-picker-advanced.component.mjs +1 -1
- package/esm2022/option/picker/option-picker.model.mjs +1 -1
- package/esm2022/option/picker/tree-option-picker-advanced.component.mjs +1 -1
- package/esm2022/option/picker/tree-option-picker.component.mjs +1 -1
- package/esm2022/option/selector/all/select-all.component.mjs +1 -1
- package/esm2022/option/selector/all/tree-select-all.component.mjs +1 -1
- package/esm2022/option/selector/option-selector.model.mjs +1 -1
- package/esm2022/picker/input-picker.model.mjs +1 -1
- package/esm2022/popover/panel/popover-panel.model.mjs +1 -1
- package/esm2022/qualification/select/input/qualification-select-input.component.mjs +3 -3
- package/esm2022/select/input/select-input.component.mjs +2 -2
- package/esm2022/select/input/select-input.model.mjs +1 -1
- package/esm2022/simple-select/api/api-v3.directive.mjs +3 -3
- package/esm2022/simple-select/api/api-v4.directive.mjs +3 -3
- package/esm2022/simple-select/api/api.directive.mjs +3 -3
- package/esm2022/simple-select/input/panel-ref.factory.mjs +5 -4
- package/esm2022/simple-select/input/select-input.component.mjs +26 -189
- package/esm2022/simple-select/panel/index.mjs +1 -2
- package/esm2022/simple-select/panel/panel.component.mjs +6 -7
- package/esm2022/simple-select/public-api.mjs +1 -2
- package/esm2022/simple-select/select.model.mjs +2 -5
- package/esm2022/user/select/homonyms/user-homonyms.service.mjs +1 -1
- package/esm2022/user/select/input/user-select-input.component.mjs +3 -3
- package/esm2022/user/select/me/me-option.directive.mjs +1 -1
- package/esm2022/user/select/searcher/user-searcher.component.mjs +1 -1
- package/esm2022/user/service/user-v3.service.mjs +1 -1
- 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/establishment/service/establishment.service.d.ts +4 -4
- package/establishment/service/legal-unit.service.d.ts +4 -4
- package/fesm2022/lucca-front-ng-api.mjs +2 -2
- package/fesm2022/lucca-front-ng-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +2 -2
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +537 -0
- package/fesm2022/lucca-front-ng-core-select.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core.mjs +17 -3
- package/fesm2022/lucca-front-ng-core.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-date.mjs +37 -37
- 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-establishment.mjs +2 -2
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +140 -0
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +271 -0
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-icon.mjs +33 -0
- package/fesm2022/lucca-front-ng-icon.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-inline-message.mjs +14 -3
- package/fesm2022/lucca-front-ng-inline-message.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +669 -0
- package/fesm2022/lucca-front-ng-multi-select.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-option.mjs +4 -4
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-picker.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.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 +6 -6
- package/fesm2022/lucca-front-ng-simple-select-api.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-simple-select.mjs +34 -517
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +2 -2
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/form-field/form-field-size.d.ts +1 -0
- package/form-field/form-field.component.d.ts +39 -0
- package/form-field/index.d.ts +5 -0
- package/form-field/input.directive.d.ts +8 -0
- package/form-field/public-api.d.ts +3 -0
- package/formly/types/api.d.ts +1 -1
- package/forms/abstract-field-component.d.ts +8 -0
- package/forms/checkboxfield/checkboxfield.component.d.ts +18 -0
- package/forms/form-field-id.directive.d.ts +13 -0
- package/forms/index.d.ts +5 -0
- package/forms/inject-ng-control.d.ts +2 -0
- package/forms/noop-value-accessor.directive.d.ts +9 -0
- package/forms/public-api.d.ts +7 -0
- package/forms/switchfield/switchfield.component.d.ts +18 -0
- package/forms/textfield/textfield-addon.d.ts +10 -0
- package/forms/textfield/textfield.component.d.ts +35 -0
- package/forms/textfield/textfield.translate.d.ts +7 -0
- package/icon/icon.component.d.ts +10 -0
- package/icon/index.d.ts +5 -0
- package/icon/public-api.d.ts +1 -0
- package/inline-message/inline-message-state.d.ts +1 -0
- package/inline-message/inline-message.component.d.ts +8 -3
- package/inline-message/public-api.d.ts +1 -0
- package/input/displayer/input-displayer.directive.d.ts +3 -3
- package/input/displayer/input-displayer.model.d.ts +2 -2
- package/multi-select/displayer/default-displayer.component.d.ts +32 -0
- package/multi-select/displayer/default-displayer.translate.d.ts +9 -0
- package/multi-select/displayer/displayer.directive.d.ts +12 -0
- package/multi-select/displayer/index.d.ts +2 -0
- package/multi-select/index.d.ts +5 -0
- package/multi-select/input/index.d.ts +1 -0
- package/multi-select/input/panel-ref.factory.d.ts +22 -0
- package/multi-select/input/panel.model.d.ts +11 -0
- package/multi-select/input/select-input.component.d.ts +26 -0
- package/multi-select/panel/index.d.ts +1 -0
- package/multi-select/panel/option-selected.pipe.d.ts +7 -0
- package/multi-select/panel/panel.component.d.ts +40 -0
- package/multi-select/panel/selected-chip.directive.d.ts +10 -0
- package/multi-select/public-api.d.ts +3 -0
- package/multi-select/select.model.d.ts +15 -0
- package/multi-select/select.translate.d.ts +15 -0
- package/option/operator/feeder/option-feeder.component.d.ts +2 -2
- package/option/operator/for-options/for-options.directive.d.ts +1 -1
- package/option/operator/option-operator.model.d.ts +2 -2
- package/option/operator/pager/tree-option-pager.component.d.ts +2 -2
- package/option/picker/option-picker-advanced.component.d.ts +1 -1
- package/option/picker/option-picker.model.d.ts +5 -5
- package/option/picker/tree-option-picker-advanced.component.d.ts +1 -1
- package/option/picker/tree-option-picker.component.d.ts +2 -2
- package/option/selector/all/select-all.component.d.ts +1 -1
- package/option/selector/all/tree-select-all.component.d.ts +3 -3
- package/option/selector/option-selector.model.d.ts +4 -4
- package/package.json +49 -19
- package/picker/input-picker.model.d.ts +4 -4
- package/popover/panel/popover-panel.model.d.ts +3 -3
- package/qualification/select/input/qualification-select-input.component.d.ts +1 -1
- package/schematics/lib/scss-ast.js +4 -4
- package/select/input/select-input.model.d.ts +8 -8
- package/simple-select/api/api-v3.directive.d.ts +1 -1
- package/simple-select/api/api-v4.directive.d.ts +1 -1
- package/simple-select/api/api.directive.d.ts +2 -2
- package/simple-select/input/panel-ref.factory.d.ts +3 -3
- package/simple-select/input/select-input.component.d.ts +5 -51
- package/simple-select/panel/index.d.ts +0 -1
- package/simple-select/panel/panel.component.d.ts +6 -7
- package/simple-select/public-api.d.ts +0 -1
- package/simple-select/select.model.d.ts +4 -9
- package/src/components/_popup.scss +1 -8
- package/src/definitions/option/_option-item.scss +5 -1
- package/src/definitions/select/_select-input.scss +18 -17
- package/user/select/input/user-select-input.component.d.ts +2 -2
- package/user/select/me/me-option.directive.d.ts +2 -2
- package/user/select/searcher/user-searcher.component.d.ts +2 -2
- package/user/service/user-v3.service.d.ts +2 -2
- package/esm2022/simple-select/input/select-input.models.mjs +0 -60
- package/esm2022/simple-select/option/disabled.directive.mjs +0 -27
- package/esm2022/simple-select/option/index.mjs +0 -6
- package/esm2022/simple-select/option/option-outlet.directive.mjs +0 -71
- package/esm2022/simple-select/option/option.component.mjs +0 -78
- package/esm2022/simple-select/option/option.directive.mjs +0 -27
- package/esm2022/simple-select/option/option.token.mjs +0 -22
- package/esm2022/simple-select/panel/panel.models.mjs +0 -23
- /package/{simple-select → core-select}/input/select-input.models.d.ts +0 -0
- /package/{simple-select → core-select}/option/default-option.component.d.ts +0 -0
- /package/{simple-select → core-select}/option/disabled.directive.d.ts +0 -0
- /package/{simple-select → core-select}/option/option-outlet.directive.d.ts +0 -0
- /package/{simple-select → core-select}/option/option.token.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LuccaIcon } from '@lucca-front/icons';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class IconComponent {
|
|
4
|
+
icon: LuccaIcon;
|
|
5
|
+
alt: string;
|
|
6
|
+
size: 'XS' | 'S' | 'M' | 'L' | 'XL' | 'XXL';
|
|
7
|
+
color: 'primary' | 'secondary' | 'error' | 'warning' | 'success' | 'light' | 'placeholder' | 'inherit';
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "lu-icon", never, { "icon": { "alias": "icon"; "required": true; }; "alt": { "alias": "alt"; "required": true; }; "size": { "alias": "size"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
package/icon/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './icon.component';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type InlineMessageState = 'success' | 'warning' | 'error' | 'default';
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { OnChanges } from '@angular/core';
|
|
2
|
+
import { InlineMessageState } from './inline-message-state';
|
|
1
3
|
import * as i0 from "@angular/core";
|
|
2
|
-
|
|
4
|
+
import * as i1 from "@lucca-front/ng/core";
|
|
5
|
+
export declare class InlineMessageComponent implements OnChanges {
|
|
6
|
+
#private;
|
|
3
7
|
label: string;
|
|
4
|
-
state:
|
|
8
|
+
state: InlineMessageState;
|
|
5
9
|
size: 'S' | 'M';
|
|
10
|
+
ngOnChanges(): void;
|
|
6
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<InlineMessageComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<InlineMessageComponent, "lu-inline-message", never, { "label": { "alias": "label"; "required": true; }; "state": { "alias": "state"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true,
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InlineMessageComponent, "lu-inline-message", never, { "label": { "alias": "label"; "required": true; }; "state": { "alias": "state"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.NgClazz; inputs: {}; outputs: {}; }]>;
|
|
8
13
|
}
|
|
@@ -6,11 +6,11 @@ export declare class LuInputDisplayerDirective<T> extends ALuInputDisplayer<T> i
|
|
|
6
6
|
set argMultiple(m: boolean);
|
|
7
7
|
set inputMultiple(m: boolean | string);
|
|
8
8
|
constructor(template: TemplateRef<LuInputDisplayerContext<T>>);
|
|
9
|
-
getViewRef(value: T | T[]): ViewRef;
|
|
9
|
+
getViewRef(value: T | readonly T[]): ViewRef;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuInputDisplayerDirective<any>, never>;
|
|
11
11
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LuInputDisplayerDirective<any>, "[luDisplayer]", never, { "argMultiple": { "alias": "luDisplayerMultiple"; "required": false; }; "inputMultiple": { "alias": "multiple"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
12
|
}
|
|
13
13
|
export declare class LuInputDisplayerContext<T> {
|
|
14
|
-
$implicit: T | T[];
|
|
15
|
-
constructor($implicit: T | T[]);
|
|
14
|
+
$implicit: T | readonly T[];
|
|
15
|
+
constructor($implicit: T | readonly T[]);
|
|
16
16
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { ViewRef } from '@angular/core';
|
|
2
2
|
export interface ILuInputDisplayer<T> {
|
|
3
3
|
multiple: boolean;
|
|
4
|
-
getViewRef(value: T | T[]): ViewRef;
|
|
4
|
+
getViewRef(value: T | readonly T[]): ViewRef;
|
|
5
5
|
}
|
|
6
6
|
export declare abstract class ALuInputDisplayer<T> implements ILuInputDisplayer<T> {
|
|
7
7
|
multiple: boolean;
|
|
8
|
-
abstract getViewRef(value: T | T[]): ViewRef;
|
|
8
|
+
abstract getViewRef(value: T | readonly T[]): ViewRef;
|
|
9
9
|
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, DestroyRef, ElementRef, NgZone, OnDestroy, OnInit, QueryList } from '@angular/core';
|
|
2
|
+
import { ILuOptionContext } from '@lucca-front/ng/core-select';
|
|
3
|
+
import { Observable, ReplaySubject } from 'rxjs';
|
|
4
|
+
import { LuMultiSelectInputComponent } from '../input';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LuMultiSelectDefaultDisplayerComponent<T> implements AfterViewInit, OnInit, OnDestroy {
|
|
7
|
+
select: LuMultiSelectInputComponent<T>;
|
|
8
|
+
elementRef: ElementRef<HTMLElement>;
|
|
9
|
+
cdr: ChangeDetectorRef;
|
|
10
|
+
intl: import("./default-displayer.translate").ILuMultiSelectDisplayerLabel;
|
|
11
|
+
protected destroyRef: DestroyRef;
|
|
12
|
+
protected zone: NgZone;
|
|
13
|
+
get disabled(): boolean;
|
|
14
|
+
overflowCountContainer: ElementRef<HTMLElement>;
|
|
15
|
+
chipsContainer: ElementRef<HTMLElement>;
|
|
16
|
+
chipsQL: QueryList<ElementRef<HTMLElement>>;
|
|
17
|
+
protected ngAfterViewInit$: ReplaySubject<void>;
|
|
18
|
+
chips$: Observable<HTMLElement[]>;
|
|
19
|
+
context: ILuOptionContext<T[]>;
|
|
20
|
+
protected visibleChips$: ReplaySubject<HTMLElement[]>;
|
|
21
|
+
protected hiddenChips$: ReplaySubject<HTMLElement[]>;
|
|
22
|
+
visibleChipsCount$: Observable<number>;
|
|
23
|
+
hiddenChipsCount$: Observable<number>;
|
|
24
|
+
hiddenOptionCountWidthCssVar: number;
|
|
25
|
+
hiddenOptionCountOffsetLeftCssVar: number;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
unselectOption(option: T, $event: Event): void;
|
|
28
|
+
ngOnDestroy(): void;
|
|
29
|
+
ngAfterViewInit(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuMultiSelectDefaultDisplayerComponent<any>, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuMultiSelectDefaultDisplayerComponent<any>, "lu-multi-select-default-displayer", never, {}, {}, never, never, true, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ILuTranslation } from '@lucca-front/ng/core';
|
|
3
|
+
export declare const LU_MULTI_SELECT_DISPLAYER_TRANSLATIONS: InjectionToken<ILuTranslation<ILuMultiSelectDisplayerLabel>>;
|
|
4
|
+
export interface ILuMultiSelectDisplayerLabel {
|
|
5
|
+
otherResult: string;
|
|
6
|
+
otherResults: string;
|
|
7
|
+
showResultsDetails: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const luMultiSelectDisplayerTranslations: ILuTranslation<ILuMultiSelectDisplayerLabel>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import { LuOptionContext } from '@lucca-front/ng/core-select';
|
|
3
|
+
import { LuMultiSelectInputComponent } from '../input';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class LuMultiDisplayerDirective<T> {
|
|
6
|
+
private templateRef;
|
|
7
|
+
set select(select: LuMultiSelectInputComponent<T>);
|
|
8
|
+
constructor(templateRef: TemplateRef<LuOptionContext<T[]>>);
|
|
9
|
+
static ngTemplateContextGuard<T>(_dir: LuMultiDisplayerDirective<T>, ctx: unknown): ctx is LuOptionContext<T[]>;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuMultiDisplayerDirective<any>, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<LuMultiDisplayerDirective<any>, "[luMultiDisplayer]", never, { "select": { "alias": "luMultiDisplayerSelect"; "required": false; }; }, {}, never, never, true, never>;
|
|
12
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './select-input.component';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ConnectedPosition, Overlay, OverlayConfig, OverlayPositionBuilder, PositionStrategy, ScrollStrategyOptions } from '@angular/cdk/overlay';
|
|
2
|
+
import { ElementRef, Injector } from '@angular/core';
|
|
3
|
+
import { ILuMultiSelectPanelData } from '../select.model';
|
|
4
|
+
import { LuMultiSelectPanelRef } from './panel.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class LuMultiSelectPanelRefFactory {
|
|
7
|
+
protected overlay: Overlay;
|
|
8
|
+
protected elementRef: ElementRef<HTMLElement>;
|
|
9
|
+
protected positionBuilder: OverlayPositionBuilder;
|
|
10
|
+
protected scrollStrategies: ScrollStrategyOptions;
|
|
11
|
+
protected parentInjector: Injector;
|
|
12
|
+
buildPanelRef<T>(panelData: ILuMultiSelectPanelData<T>, defaultOverlayConfigOverride?: OverlayConfig, expandedPositionStrategy?: PositionStrategy): LuMultiSelectPanelRef<T>;
|
|
13
|
+
protected buildDefaultOverlayConfig(overlayConfigOverride?: OverlayConfig): OverlayConfig;
|
|
14
|
+
buildExpandedPositionStrategy(): PositionStrategy;
|
|
15
|
+
protected buildPosition(yDirection: 'top' | 'bottom', xDirection: 'left' | 'right', config: {
|
|
16
|
+
offsetX?: number;
|
|
17
|
+
offsetY?: number;
|
|
18
|
+
overlapInput: boolean;
|
|
19
|
+
}): ConnectedPosition;
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuMultiSelectPanelRefFactory, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LuMultiSelectPanelRefFactory>;
|
|
22
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { LuSelectPanelRef } from '@lucca-front/ng/core-select';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export declare abstract class LuMultiSelectPanelRef<T> extends LuSelectPanelRef<T, T[]> {
|
|
5
|
+
selectAll: EventEmitter<void>;
|
|
6
|
+
areAllOptionsSelected$: Observable<boolean | undefined>;
|
|
7
|
+
close(): void;
|
|
8
|
+
abstract updateSelectedOptions(selectedOptions: T[]): void;
|
|
9
|
+
abstract useExpandedPosition(): void;
|
|
10
|
+
abstract useDefaultPosition(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { PositionStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
import { TemplateRef, Type } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { ALuSelectInputComponent, LuOptionContext } from '@lucca-front/ng/core-select';
|
|
5
|
+
import { ReplaySubject } from 'rxjs';
|
|
6
|
+
import { LuMultiSelectPanelRefFactory } from './panel-ref.factory';
|
|
7
|
+
import { LuMultiSelectPanelRef } from './panel.model';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class LuMultiSelectInputComponent<T> extends ALuSelectInputComponent<T, T[]> implements ControlValueAccessor {
|
|
10
|
+
intl: import("../select.translate").ILuMultiSelectLabel;
|
|
11
|
+
modMultipleClass: boolean;
|
|
12
|
+
valuesTpl?: TemplateRef<LuOptionContext<T[]>> | Type<unknown>;
|
|
13
|
+
expandedPositionStrategy?: PositionStrategy;
|
|
14
|
+
expanded: boolean;
|
|
15
|
+
get panelRef(): LuMultiSelectPanelRef<T> | undefined;
|
|
16
|
+
protected areAllOptionsSelected$: ReplaySubject<boolean>;
|
|
17
|
+
protected _panelRef?: LuMultiSelectPanelRef<T>;
|
|
18
|
+
protected panelRefFactory: LuMultiSelectPanelRefFactory;
|
|
19
|
+
writeValue(value: T[]): void;
|
|
20
|
+
protected buildPanelRef(): LuMultiSelectPanelRef<T>;
|
|
21
|
+
protected bindInputToPanelRefEvents(): void;
|
|
22
|
+
protected get hasValue(): boolean;
|
|
23
|
+
clearValue(event: MouseEvent): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuMultiSelectInputComponent<any>, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuMultiSelectInputComponent<any>, "lu-multi-select", never, { "valuesTpl": { "alias": "valuesTpl"; "required": false; }; "expandedPositionStrategy": { "alias": "expandedPositionStrategy"; "required": false; }; "expanded": { "alias": "expanded"; "required": false; }; "panelRef": { "alias": "panelRef"; "required": false; }; }, {}, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './panel.component';
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LuIsOptionSelectedPipe implements PipeTransform {
|
|
4
|
+
transform<T>(option: T, comparer: (option1: T, option2: T) => boolean, selectedOptions: T[]): boolean;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuIsOptionSelectedPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<LuIsOptionSelectedPipe, "luIsOptionSelected", true>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
|
|
2
|
+
import { ɵLuOptionComponent } from '@lucca-front/ng/core-select';
|
|
3
|
+
import { LuMultiSelectPanelRef } from '../input/panel.model';
|
|
4
|
+
import { ILuMultiSelectPanelData } from '../select.model';
|
|
5
|
+
import { ɵLuMultiSelectSelectedChipDirective } from './selected-chip.directive';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class LuMultiSelectPanelComponent<T> implements AfterViewInit {
|
|
8
|
+
protected panelData: ILuMultiSelectPanelData<T>;
|
|
9
|
+
panelRef: LuMultiSelectPanelRef<T>;
|
|
10
|
+
selectId: number;
|
|
11
|
+
intl: import("../select.translate").ILuMultiSelectLabel;
|
|
12
|
+
isExpanded: boolean;
|
|
13
|
+
options$: import("rxjs").Observable<T[]>;
|
|
14
|
+
loading$: import("rxjs").Observable<boolean>;
|
|
15
|
+
areAllOptionsSelected$: import("rxjs").Observable<boolean>;
|
|
16
|
+
canSelectAll: boolean;
|
|
17
|
+
optionComparer: (option1: T, option2: T) => boolean;
|
|
18
|
+
selectedOptions: T[];
|
|
19
|
+
optionTpl: import("@angular/core").Type<unknown> | import("@angular/core").TemplateRef<import("@lucca-front/ng/core-select").LuOptionContext<T>>;
|
|
20
|
+
searchable: boolean;
|
|
21
|
+
searchInput: ElementRef<HTMLInputElement> | undefined;
|
|
22
|
+
optionsQL: QueryList<ɵLuOptionComponent<T>>;
|
|
23
|
+
private leftColumnKeyManager;
|
|
24
|
+
selectedChipsQL: QueryList<ɵLuMultiSelectSelectedChipDirective<T>>;
|
|
25
|
+
private rightColumnKeyManager;
|
|
26
|
+
search: string | null;
|
|
27
|
+
onScroll(evt: Event): void;
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
onKeyDown($event: KeyboardEvent): void;
|
|
30
|
+
onLeftColumnKeydown($event: KeyboardEvent): void;
|
|
31
|
+
onRightColumnKeydown($event: KeyboardEvent): void;
|
|
32
|
+
updateClue(clue: string | null): void;
|
|
33
|
+
toggleOption(option: T): void;
|
|
34
|
+
onChipKillClick(option: T): void;
|
|
35
|
+
clear(): void;
|
|
36
|
+
protected initLeftColumnKeyManager(): void;
|
|
37
|
+
protected initRightColumnKeyManager(): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LuMultiSelectPanelComponent<any>, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LuMultiSelectPanelComponent<any>, "lu-select-panel", never, {}, {}, never, never, true, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Highlightable } from '@angular/cdk/a11y';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ɵLuMultiSelectSelectedChipDirective<T> implements Highlightable {
|
|
4
|
+
option?: T;
|
|
5
|
+
elementRef: HTMLElement;
|
|
6
|
+
setActiveStyles(): void;
|
|
7
|
+
setInactiveStyles(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ɵLuMultiSelectSelectedChipDirective<any>, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ɵLuMultiSelectSelectedChipDirective<any>, "[luMultiSelectSelectedChip]", never, { "option": { "alias": "luMultiSelectSelectedChip"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InjectionToken, TemplateRef, Type } from '@angular/core';
|
|
2
|
+
import { LuOptionContext } from '@lucca-front/ng/core-select';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
export interface ILuMultiSelectPanelData<T> {
|
|
5
|
+
options$: Observable<T[]>;
|
|
6
|
+
loading$: Observable<boolean>;
|
|
7
|
+
optionComparer: (option1: T, option2: T) => boolean;
|
|
8
|
+
initialValue: T[] | undefined;
|
|
9
|
+
optionTpl: TemplateRef<LuOptionContext<T>> | Type<unknown>;
|
|
10
|
+
searchable: boolean;
|
|
11
|
+
expanded: boolean;
|
|
12
|
+
canSelectAll: boolean;
|
|
13
|
+
areAllOptionsSelected$: Observable<boolean | undefined>;
|
|
14
|
+
}
|
|
15
|
+
export declare const MULTI_SELECT_PANEL_DATA: InjectionToken<ILuMultiSelectPanelData<unknown>>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ILuTranslation } from '@lucca-front/ng/core';
|
|
3
|
+
export declare const LU_MULTI_SELECT_TRANSLATIONS: InjectionToken<ILuTranslation<ILuMultiSelectLabel>>;
|
|
4
|
+
export interface ILuMultiSelectLabel {
|
|
5
|
+
placeholder: string;
|
|
6
|
+
search: string;
|
|
7
|
+
clear: string;
|
|
8
|
+
clearSearch: string;
|
|
9
|
+
emptyResults: string;
|
|
10
|
+
emptySelection: string;
|
|
11
|
+
expand: string;
|
|
12
|
+
reduce: string;
|
|
13
|
+
selectAll: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const luMultiSelectTranslations: ILuTranslation<ILuMultiSelectLabel>;
|
|
@@ -2,8 +2,8 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
2
2
|
import { ILuOptionOperator } from '../option-operator.model';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class LuOptionFeederComponent<T> implements ILuOptionOperator<T> {
|
|
5
|
-
outOptions$: BehaviorSubject<T[]>;
|
|
6
|
-
set options(options: T[]);
|
|
5
|
+
outOptions$: BehaviorSubject<readonly T[]>;
|
|
6
|
+
set options(options: readonly T[]);
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuOptionFeederComponent<any>, never>;
|
|
8
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuOptionFeederComponent<any>, "lu-option-feeder", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
9
|
}
|
|
@@ -5,7 +5,7 @@ import { ILuOptionOperator } from '../option-operator.model';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LuForOptionsDirective<T> extends NgForOf<T> implements ILuOptionOperator<T>, OnDestroy {
|
|
7
7
|
protected _changeDetectionRef: ChangeDetectorRef;
|
|
8
|
-
outOptions$:
|
|
8
|
+
outOptions$: Observable<T[]>;
|
|
9
9
|
protected _subs: Subscription;
|
|
10
10
|
set inOptions$(options$: Observable<T[]>);
|
|
11
11
|
set luForOptionsTrackBy(fn: TrackByFunction<T>);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
export interface ILuOptionOperator<T> {
|
|
3
|
-
inOptions$?: Observable<T[]>;
|
|
4
|
-
outOptions$?: Observable<T[]>;
|
|
3
|
+
inOptions$?: Observable<T[] | readonly T[]>;
|
|
4
|
+
outOptions$?: Observable<T[] | readonly T[]>;
|
|
5
5
|
}
|
|
6
6
|
export declare abstract class ALuOptionOperator<T> implements ILuOptionOperator<T> {
|
|
7
7
|
abstract inOptions$?: Observable<T[]>;
|
|
@@ -9,8 +9,8 @@ export declare class LuTreeOptionPagerComponent<T> extends ALuTreeOptionOperator
|
|
|
9
9
|
next(): void;
|
|
10
10
|
onScrollBottom(): void;
|
|
11
11
|
trim(trees?: ILuTree<T>[], paging?: number): ILuTree<T>[];
|
|
12
|
-
flatten(trees?: ILuTree<T>[]): T[];
|
|
13
|
-
filter(trees: ILuTree<T>[], values: T[]): ILuTree<T>[];
|
|
12
|
+
flatten(trees?: ILuTree<T>[]): readonly T[];
|
|
13
|
+
filter(trees: ILuTree<T>[], values: readonly T[]): ILuTree<T>[];
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionPagerComponent<any>, never>;
|
|
15
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionPagerComponent<any>, "lu-tree-option-pager", never, {}, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -23,7 +23,7 @@ export declare abstract class ALuOptionPickerAdvancedComponent<T, O extends impo
|
|
|
23
23
|
onScrollBottom(): void;
|
|
24
24
|
onOpen(): void;
|
|
25
25
|
onClose(): void;
|
|
26
|
-
setValue(value: T | T[]): void;
|
|
26
|
+
setValue(value: T | readonly T[]): void;
|
|
27
27
|
protected initOperators(): void;
|
|
28
28
|
protected initSelectors(): void;
|
|
29
29
|
ngAfterViewInit(): void;
|
|
@@ -5,18 +5,18 @@ export type ILuOptionPickerPanel<T> = ILuPickerPanel<T>;
|
|
|
5
5
|
export type LuOptionComparer<T> = (option1: T, option2: T) => boolean;
|
|
6
6
|
export declare abstract class ALuOptionPicker<T, O extends ILuOptionItem<T> = ILuOptionItem<T>> extends ALuPickerPanel<T> implements ILuOptionPickerPanel<T> {
|
|
7
7
|
protected _subs: Subscription;
|
|
8
|
-
onSelectValue: Observable<T | T[]>;
|
|
9
|
-
protected _value: T | T[];
|
|
10
|
-
setValue(value: T | T[]): void;
|
|
8
|
+
onSelectValue: Observable<T | readonly T[]>;
|
|
9
|
+
protected _value: T | readonly T[];
|
|
10
|
+
setValue(value: T | readonly T[]): void;
|
|
11
11
|
private __options$;
|
|
12
12
|
protected get _options$(): Observable<O[]>;
|
|
13
13
|
protected set _options$(options$: Observable<O[]>);
|
|
14
14
|
protected optionComparer: LuOptionComparer<T>;
|
|
15
15
|
protected _toggle(option: O): void;
|
|
16
|
-
protected _select(val: T | T[]): void;
|
|
16
|
+
protected _select(val: T | readonly T[]): void;
|
|
17
17
|
protected abstract _applySelected(): any;
|
|
18
18
|
protected abstract _applyHighlight(): any;
|
|
19
19
|
protected destroy(): void;
|
|
20
20
|
_handleKeydown(event: KeyboardEvent): void;
|
|
21
|
-
protected abstract _emitSelectValue(value: T | T[]): any;
|
|
21
|
+
protected abstract _emitSelectValue(value: T | readonly T[]): any;
|
|
22
22
|
}
|
|
@@ -23,7 +23,7 @@ export declare abstract class ALuTreeOptionPickerAdvancedComponent<T, O extends
|
|
|
23
23
|
onScrollBottom(): void;
|
|
24
24
|
onOpen(): void;
|
|
25
25
|
onClose(): void;
|
|
26
|
-
setValue(value: T | T[]): void;
|
|
26
|
+
setValue(value: T | readonly T[]): void;
|
|
27
27
|
protected initOperators(): void;
|
|
28
28
|
protected initSelectors(): void;
|
|
29
29
|
ngAfterViewInit(): void;
|
|
@@ -17,8 +17,8 @@ export declare abstract class ALuTreeOptionPickerComponent<T, O extends import('
|
|
|
17
17
|
protected _toggleAll(option: O): void;
|
|
18
18
|
protected _toggleSelf(option: O): void;
|
|
19
19
|
protected _toggleChildren(option: O): void;
|
|
20
|
-
protected _add(values: T[], entries: T[]): T[];
|
|
21
|
-
protected _remove(values: T[], entries: T[]): T[];
|
|
20
|
+
protected _add(values: readonly T[], entries: readonly T[]): readonly T[];
|
|
21
|
+
protected _remove(values: readonly T[], entries: readonly T[]): readonly T[];
|
|
22
22
|
protected initItems(): void;
|
|
23
23
|
ngAfterViewInit(): void;
|
|
24
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<ALuTreeOptionPickerComponent<any, any>, never>;
|
|
@@ -7,7 +7,7 @@ export declare class LuOptionSelectAllComponent<T> extends ALuOptionOperator<T>
|
|
|
7
7
|
onSelectValue: Subject<T | T[]>;
|
|
8
8
|
private _values;
|
|
9
9
|
fixed: boolean;
|
|
10
|
-
options: T[];
|
|
10
|
+
options: readonly T[];
|
|
11
11
|
outOptions$: Observable<T[]>;
|
|
12
12
|
set inOptions$(in$: Observable<T[]>);
|
|
13
13
|
intl: import("./select-all.translate").ILuOptionSelectAllLabel;
|
|
@@ -5,16 +5,16 @@ import { ILuTreeOptionSelector } from '../tree-option-selector.model';
|
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class LuTreeOptionSelectAllComponent<T> extends ALuTreeOptionOperator<T> implements ILuTreeOptionSelector<T> {
|
|
7
7
|
multiple: boolean;
|
|
8
|
-
onSelectValue: Subject<T | T[]>;
|
|
8
|
+
onSelectValue: Subject<T | readonly T[]>;
|
|
9
9
|
private _values;
|
|
10
10
|
fixed: boolean;
|
|
11
|
-
flatOptions: T[];
|
|
11
|
+
flatOptions: readonly T[];
|
|
12
12
|
outOptions$: Observable<ILuTree<T>[]>;
|
|
13
13
|
set inOptions$(in$: Observable<ILuTree<T>[]>);
|
|
14
14
|
intl: import("./select-all.translate").ILuOptionSelectAllLabel;
|
|
15
15
|
selectAll(): void;
|
|
16
16
|
deselectAll(): void;
|
|
17
|
-
setValue(values: T | T[]): void;
|
|
17
|
+
setValue(values: T | readonly T[]): void;
|
|
18
18
|
private flattenTree;
|
|
19
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionSelectAllComponent<any>, never>;
|
|
20
20
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionSelectAllComponent<any>, "lu-tree-option-select-all", never, {}, {}, never, never, true, never>;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
export interface ILuOptionSelector<T> {
|
|
3
3
|
multiple: boolean;
|
|
4
|
-
onSelectValue: Observable<T | T[]>;
|
|
5
|
-
setValue(value: T | T[]): void;
|
|
4
|
+
onSelectValue: Observable<T | readonly T[]>;
|
|
5
|
+
setValue(value: T | readonly T[]): void;
|
|
6
6
|
}
|
|
7
7
|
export declare abstract class ALuOptionSelector<T> implements ILuOptionSelector<T> {
|
|
8
8
|
multiple: boolean;
|
|
9
|
-
abstract onSelectValue: Observable<T | T[]>;
|
|
10
|
-
abstract setValue(value: T | T[]): void;
|
|
9
|
+
abstract onSelectValue: Observable<T | readonly T[]>;
|
|
10
|
+
abstract setValue(value: T | readonly T[]): void;
|
|
11
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/ng",
|
|
3
|
-
"version": "16.
|
|
3
|
+
"version": "16.4.0-rc.1",
|
|
4
4
|
"description": "A library of icons made by the team @Lucca",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"@angular/common": "^16.0.0",
|
|
27
27
|
"@angular/core": "^16.0.0",
|
|
28
28
|
"@angular/cdk": "^16.0.0",
|
|
29
|
-
"@lucca-front/icons": "v16.
|
|
30
|
-
"@lucca-front/scss": "v16.
|
|
29
|
+
"@lucca-front/icons": "v16.4.0-rc.1",
|
|
30
|
+
"@lucca-front/scss": "v16.4.0-rc.1",
|
|
31
31
|
"@types/dompurify": "^3.0.0",
|
|
32
32
|
"dompurify": "^3.0.0",
|
|
33
33
|
"rxjs": "^6.0.0 || ^7.0.0"
|
|
@@ -59,11 +59,11 @@
|
|
|
59
59
|
"esm": "./esm2022/animations/lucca-front-ng-animations.mjs",
|
|
60
60
|
"default": "./fesm2022/lucca-front-ng-animations.mjs"
|
|
61
61
|
},
|
|
62
|
-
"./
|
|
63
|
-
"types": "./
|
|
64
|
-
"esm2022": "./esm2022/
|
|
65
|
-
"esm": "./esm2022/
|
|
66
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
62
|
+
"./core": {
|
|
63
|
+
"types": "./core/index.d.ts",
|
|
64
|
+
"esm2022": "./esm2022/core/lucca-front-ng-core.mjs",
|
|
65
|
+
"esm": "./esm2022/core/lucca-front-ng-core.mjs",
|
|
66
|
+
"default": "./fesm2022/lucca-front-ng-core.mjs"
|
|
67
67
|
},
|
|
68
68
|
"./callout": {
|
|
69
69
|
"types": "./callout/index.d.ts",
|
|
@@ -71,11 +71,17 @@
|
|
|
71
71
|
"esm": "./esm2022/callout/lucca-front-ng-callout.mjs",
|
|
72
72
|
"default": "./fesm2022/lucca-front-ng-callout.mjs"
|
|
73
73
|
},
|
|
74
|
-
"./
|
|
75
|
-
"types": "./
|
|
76
|
-
"esm2022": "./esm2022/
|
|
77
|
-
"esm": "./esm2022/
|
|
78
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
74
|
+
"./api": {
|
|
75
|
+
"types": "./api/index.d.ts",
|
|
76
|
+
"esm2022": "./esm2022/api/lucca-front-ng-api.mjs",
|
|
77
|
+
"esm": "./esm2022/api/lucca-front-ng-api.mjs",
|
|
78
|
+
"default": "./fesm2022/lucca-front-ng-api.mjs"
|
|
79
|
+
},
|
|
80
|
+
"./core-select": {
|
|
81
|
+
"types": "./core-select/index.d.ts",
|
|
82
|
+
"esm2022": "./esm2022/core-select/lucca-front-ng-core-select.mjs",
|
|
83
|
+
"esm": "./esm2022/core-select/lucca-front-ng-core-select.mjs",
|
|
84
|
+
"default": "./fesm2022/lucca-front-ng-core-select.mjs"
|
|
79
85
|
},
|
|
80
86
|
"./date": {
|
|
81
87
|
"types": "./date/index.d.ts",
|
|
@@ -101,18 +107,36 @@
|
|
|
101
107
|
"esm": "./esm2022/establishment/lucca-front-ng-establishment.mjs",
|
|
102
108
|
"default": "./fesm2022/lucca-front-ng-establishment.mjs"
|
|
103
109
|
},
|
|
110
|
+
"./form-field": {
|
|
111
|
+
"types": "./form-field/index.d.ts",
|
|
112
|
+
"esm2022": "./esm2022/form-field/lucca-front-ng-form-field.mjs",
|
|
113
|
+
"esm": "./esm2022/form-field/lucca-front-ng-form-field.mjs",
|
|
114
|
+
"default": "./fesm2022/lucca-front-ng-form-field.mjs"
|
|
115
|
+
},
|
|
104
116
|
"./formly": {
|
|
105
117
|
"types": "./formly/index.d.ts",
|
|
106
118
|
"esm2022": "./esm2022/formly/lucca-front-ng-formly.mjs",
|
|
107
119
|
"esm": "./esm2022/formly/lucca-front-ng-formly.mjs",
|
|
108
120
|
"default": "./fesm2022/lucca-front-ng-formly.mjs"
|
|
109
121
|
},
|
|
122
|
+
"./forms": {
|
|
123
|
+
"types": "./forms/index.d.ts",
|
|
124
|
+
"esm2022": "./esm2022/forms/lucca-front-ng-forms.mjs",
|
|
125
|
+
"esm": "./esm2022/forms/lucca-front-ng-forms.mjs",
|
|
126
|
+
"default": "./fesm2022/lucca-front-ng-forms.mjs"
|
|
127
|
+
},
|
|
110
128
|
"./inline-message": {
|
|
111
129
|
"types": "./inline-message/index.d.ts",
|
|
112
130
|
"esm2022": "./esm2022/inline-message/lucca-front-ng-inline-message.mjs",
|
|
113
131
|
"esm": "./esm2022/inline-message/lucca-front-ng-inline-message.mjs",
|
|
114
132
|
"default": "./fesm2022/lucca-front-ng-inline-message.mjs"
|
|
115
133
|
},
|
|
134
|
+
"./icon": {
|
|
135
|
+
"types": "./icon/index.d.ts",
|
|
136
|
+
"esm2022": "./esm2022/icon/lucca-front-ng-icon.mjs",
|
|
137
|
+
"esm": "./esm2022/icon/lucca-front-ng-icon.mjs",
|
|
138
|
+
"default": "./fesm2022/lucca-front-ng-icon.mjs"
|
|
139
|
+
},
|
|
116
140
|
"./input": {
|
|
117
141
|
"types": "./input/index.d.ts",
|
|
118
142
|
"esm2022": "./esm2022/input/lucca-front-ng-input.mjs",
|
|
@@ -125,6 +149,12 @@
|
|
|
125
149
|
"esm": "./esm2022/modal/lucca-front-ng-modal.mjs",
|
|
126
150
|
"default": "./fesm2022/lucca-front-ng-modal.mjs"
|
|
127
151
|
},
|
|
152
|
+
"./multi-select": {
|
|
153
|
+
"types": "./multi-select/index.d.ts",
|
|
154
|
+
"esm2022": "./esm2022/multi-select/lucca-front-ng-multi-select.mjs",
|
|
155
|
+
"esm": "./esm2022/multi-select/lucca-front-ng-multi-select.mjs",
|
|
156
|
+
"default": "./fesm2022/lucca-front-ng-multi-select.mjs"
|
|
157
|
+
},
|
|
128
158
|
"./new-badge": {
|
|
129
159
|
"types": "./new-badge/index.d.ts",
|
|
130
160
|
"esm2022": "./esm2022/new-badge/lucca-front-ng-new-badge.mjs",
|
|
@@ -203,18 +233,18 @@
|
|
|
203
233
|
"esm": "./esm2022/simple-select/lucca-front-ng-simple-select.mjs",
|
|
204
234
|
"default": "./fesm2022/lucca-front-ng-simple-select.mjs"
|
|
205
235
|
},
|
|
206
|
-
"./title": {
|
|
207
|
-
"types": "./title/index.d.ts",
|
|
208
|
-
"esm2022": "./esm2022/title/lucca-front-ng-title.mjs",
|
|
209
|
-
"esm": "./esm2022/title/lucca-front-ng-title.mjs",
|
|
210
|
-
"default": "./fesm2022/lucca-front-ng-title.mjs"
|
|
211
|
-
},
|
|
212
236
|
"./toast": {
|
|
213
237
|
"types": "./toast/index.d.ts",
|
|
214
238
|
"esm2022": "./esm2022/toast/lucca-front-ng-toast.mjs",
|
|
215
239
|
"esm": "./esm2022/toast/lucca-front-ng-toast.mjs",
|
|
216
240
|
"default": "./fesm2022/lucca-front-ng-toast.mjs"
|
|
217
241
|
},
|
|
242
|
+
"./title": {
|
|
243
|
+
"types": "./title/index.d.ts",
|
|
244
|
+
"esm2022": "./esm2022/title/lucca-front-ng-title.mjs",
|
|
245
|
+
"esm": "./esm2022/title/lucca-front-ng-title.mjs",
|
|
246
|
+
"default": "./fesm2022/lucca-front-ng-title.mjs"
|
|
247
|
+
},
|
|
218
248
|
"./tooltip": {
|
|
219
249
|
"types": "./tooltip/index.d.ts",
|
|
220
250
|
"esm2022": "./esm2022/tooltip/lucca-front-ng-tooltip.mjs",
|
|
@@ -9,17 +9,17 @@ export declare interface ILuPickerPanel<T> extends ILuPopoverPanel {
|
|
|
9
9
|
/**
|
|
10
10
|
* emits when a value was selected on the picker
|
|
11
11
|
*/
|
|
12
|
-
onSelectValue: Observable<T | T[]>;
|
|
12
|
+
onSelectValue: Observable<T | readonly T[]>;
|
|
13
13
|
/**
|
|
14
14
|
* called to tell the picker what's the current value
|
|
15
15
|
* @param value
|
|
16
16
|
*/
|
|
17
|
-
setValue(value: T | T[]): void;
|
|
17
|
+
setValue(value: T | readonly T[]): void;
|
|
18
18
|
}
|
|
19
19
|
export declare abstract class ALuPickerPanel<T> extends ALuPopoverPanel implements ILuPickerPanel<T> {
|
|
20
20
|
multiple: boolean;
|
|
21
|
-
onSelectValue: Observable<T | T[]>;
|
|
22
|
-
abstract setValue(value: T | T[]): void;
|
|
21
|
+
onSelectValue: Observable<T | readonly T[]>;
|
|
22
|
+
abstract setValue(value: T | readonly T[]): void;
|
|
23
23
|
}
|
|
24
24
|
export declare interface ILuInputWithPicker<TValue> extends ILuInput, ILuPopoverTrigger<ILuPickerPanel<TValue>> {
|
|
25
25
|
}
|