@lucca-front/ng 20.1.3-rc.2 → 20.2.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/button/index.d.ts +9 -2
- package/core-select/department/index.d.ts +49 -0
- package/core-select/index.d.ts +47 -6
- package/date2/index.d.ts +2 -2
- package/department/index.d.ts +9 -0
- package/dialog/index.d.ts +7 -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-app-layout.mjs +2 -2
- package/fesm2022/lucca-front-ng-app-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-box.mjs +2 -2
- package/fesm2022/lucca-front-ng-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs +2 -2
- package/fesm2022/lucca-front-ng-breadcrumbs.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-button.mjs +39 -9
- package/fesm2022/lucca-front-ng-button.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-callout.mjs +12 -12
- package/fesm2022/lucca-front-ng-callout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-chip.mjs +2 -2
- package/fesm2022/lucca-front-ng-chip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-comment.mjs +6 -6
- package/fesm2022/lucca-front-ng-comment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select-department.mjs +121 -0
- package/fesm2022/lucca-front-ng-core-select-department.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-core-select-user.mjs +6 -6
- package/fesm2022/lucca-front-ng-core-select-user.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-core-select.mjs +85 -12
- package/fesm2022/lucca-front-ng-core-select.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-date2.mjs +8 -8
- package/fesm2022/lucca-front-ng-date2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-department.mjs +11 -2
- package/fesm2022/lucca-front-ng-department.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dialog.mjs +25 -14
- package/fesm2022/lucca-front-ng-dialog.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-divider.mjs +3 -3
- package/fesm2022/lucca-front-ng-divider.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-dropdown.mjs +2 -2
- package/fesm2022/lucca-front-ng-dropdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-empty-state.mjs +4 -4
- package/fesm2022/lucca-front-ng-empty-state.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-establishment.mjs +6 -6
- package/fesm2022/lucca-front-ng-establishment.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-fancy-box.mjs +2 -2
- package/fesm2022/lucca-front-ng-fancy-box.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-file-upload.mjs +15 -10
- package/fesm2022/lucca-front-ng-file-upload.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-filter-pills.mjs +8 -8
- package/fesm2022/lucca-front-ng-filter-pills.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-footer.mjs +2 -2
- package/fesm2022/lucca-front-ng-footer.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-form-field.mjs +2 -2
- package/fesm2022/lucca-front-ng-form-field.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-formly.mjs +2 -2
- package/fesm2022/lucca-front-ng-formly.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs +2 -2
- package/fesm2022/lucca-front-ng-forms-phone-number-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs +17 -16
- package/fesm2022/lucca-front-ng-forms-rich-text-input-formatters-markdown.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs +366 -81
- package/fesm2022/lucca-front-ng-forms-rich-text-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-forms.mjs +22 -20
- package/fesm2022/lucca-front-ng-forms.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-highlight-data.mjs +4 -2
- package/fesm2022/lucca-front-ng-highlight-data.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs +2 -2
- package/fesm2022/lucca-front-ng-horizontal-navigation.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-icon.mjs +2 -2
- 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 +5 -2
- package/fesm2022/lucca-front-ng-input.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-link.mjs +2 -2
- package/fesm2022/lucca-front-ng-link.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-listbox.mjs +89 -0
- package/fesm2022/lucca-front-ng-listbox.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-listing.mjs +2 -2
- package/fesm2022/lucca-front-ng-listing.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-loading.mjs +2 -2
- package/fesm2022/lucca-front-ng-loading.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-main-layout.mjs +2 -2
- package/fesm2022/lucca-front-ng-main-layout.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-mobile-push.mjs +2 -2
- package/fesm2022/lucca-front-ng-mobile-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-modal.mjs +6 -6
- package/fesm2022/lucca-front-ng-modal.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-multi-select.mjs +93 -91
- 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-new-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-number.mjs +1 -1
- package/fesm2022/lucca-front-ng-number.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-numeric-badge.mjs +2 -2
- package/fesm2022/lucca-front-ng-numeric-badge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-option.mjs +83 -22
- package/fesm2022/lucca-front-ng-option.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-page-header.mjs +2 -2
- package/fesm2022/lucca-front-ng-page-header.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-pagination.mjs +5 -5
- package/fesm2022/lucca-front-ng-pagination.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-plg-push.mjs +2 -2
- package/fesm2022/lucca-front-ng-plg-push.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover.mjs +2 -2
- package/fesm2022/lucca-front-ng-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-popover2.mjs +3 -3
- package/fesm2022/lucca-front-ng-popover2.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-read-more.mjs +2 -2
- package/fesm2022/lucca-front-ng-read-more.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-scrollBox.mjs +2 -2
- package/fesm2022/lucca-front-ng-scrollBox.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.mjs +24 -8
- package/fesm2022/lucca-front-ng-simple-select.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-skeleton.mjs +12 -12
- package/fesm2022/lucca-front-ng-skeleton.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-statusBadge.mjs +9 -15
- package/fesm2022/lucca-front-ng-statusBadge.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tag.mjs +2 -2
- package/fesm2022/lucca-front-ng-tag.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-time.mjs +7 -7
- package/fesm2022/lucca-front-ng-time.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-toast.mjs +2 -2
- package/fesm2022/lucca-front-ng-toast.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tooltip.mjs +3 -3
- package/fesm2022/lucca-front-ng-tooltip.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-tree-select.mjs +141 -0
- package/fesm2022/lucca-front-ng-tree-select.mjs.map +1 -0
- package/fesm2022/lucca-front-ng-user-popover.mjs +2 -2
- package/fesm2022/lucca-front-ng-user-popover.mjs.map +1 -1
- package/fesm2022/lucca-front-ng-user.mjs +31 -20
- package/fesm2022/lucca-front-ng-user.mjs.map +1 -1
- package/file-upload/index.d.ts +2 -1
- package/forms/index.d.ts +3 -2
- package/forms/rich-text-input/formatters/markdown/index.d.ts +5 -4
- package/forms/rich-text-input/index.d.ts +48 -12
- package/highlight-data/index.d.ts +2 -1
- package/input/index.d.ts +3 -0
- package/listbox/index.d.ts +38 -0
- package/multi-select/index.d.ts +8 -10
- package/option/index.d.ts +61 -0
- package/package.json +31 -14
- package/page-header/index.d.ts +1 -1
- package/pagination/index.d.ts +3 -3
- package/schematics/collection.json +6 -1
- package/schematics/lu-button/migration.js +4 -4
- package/schematics/lu-icon/migration.js +4 -4
- package/schematics/tokens-radius/index.js +22 -0
- package/schematics/tokens-radius/migration.spec.js +50 -0
- package/schematics/tokens-radius/schema.json +23 -0
- package/simple-select/index.d.ts +4 -2
- package/src/components/_picker.scss +1 -1
- package/src/components/_popover.scss +1 -1
- package/src/components/_popup.scss +1 -1
- package/src/components/cdk/_dragDrop.scss +6 -6
- package/src/definitions/option/_option-item.scss +5 -4
- package/statusBadge/index.d.ts +6 -6
- package/time/index.d.ts +1 -1
- package/tree-select/index.d.ts +35 -0
- package/user/index.d.ts +6 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
|
|
3
|
+
declare class ListboxComponent {
|
|
4
|
+
multiple: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
5
|
+
tree: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
6
|
+
state: _angular_core.InputSignal<"loading" | "empty">;
|
|
7
|
+
statusMsg: _angular_core.InputSignal<string>;
|
|
8
|
+
listboxId: string;
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ListboxComponent, never>;
|
|
10
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ListboxComponent, "lu-listbox", never, { "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "tree": { "alias": "tree"; "required": false; "isSignal": true; }; "state": { "alias": "state"; "required": false; "isSignal": true; }; "statusMsg": { "alias": "statusMsg"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
declare class Treeitem {
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Treeitem, never>;
|
|
15
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Treeitem, "[treeitem]", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
declare class OptionComponent {
|
|
18
|
+
#private;
|
|
19
|
+
multiple: _angular_core.Signal<boolean>;
|
|
20
|
+
tree: _angular_core.Signal<boolean>;
|
|
21
|
+
empty: _angular_core.Signal<boolean>;
|
|
22
|
+
id: _angular_core.Signal<string>;
|
|
23
|
+
checked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
24
|
+
mixed: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
25
|
+
disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
26
|
+
hovered: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
add: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
group: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
29
|
+
select: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
30
|
+
selectAll: _angular_core.InputSignal<"string">;
|
|
31
|
+
groupId: string;
|
|
32
|
+
treeitemContent: _angular_core.Signal<Treeitem>;
|
|
33
|
+
level: number;
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<OptionComponent, never>;
|
|
35
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<OptionComponent, "lu-listbox-option", never, { "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "mixed": { "alias": "mixed"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "hovered": { "alias": "hovered"; "required": false; "isSignal": true; }; "add": { "alias": "add"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; "select": { "alias": "select"; "required": false; "isSignal": true; }; "selectAll": { "alias": "selectAll"; "required": false; "isSignal": true; }; }, {}, ["treeitemContent"], ["*", "[optgroup]", "[treeitem]"], true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { ListboxComponent, OptionComponent, Treeitem };
|
package/multi-select/index.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import * as rxjs from 'rxjs';
|
|
|
4
4
|
import { Subject, BehaviorSubject } from 'rxjs';
|
|
5
5
|
import { LuTranslation } from '@lucca-front/ng/core';
|
|
6
6
|
import { ControlValueAccessor, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
7
|
-
import {
|
|
7
|
+
import { ɵIsSelectedStrategy as _IsSelectedStrategy, LuSelectPanelRef, ALuSelectInputComponent, LuOptionContext, ILuOptionContext } from '@lucca-front/ng/core-select';
|
|
8
8
|
import { Overlay, OverlayPositionBuilder, ScrollStrategyOptions, OverlayConfig, ConnectedPosition } from '@angular/cdk/overlay';
|
|
9
9
|
import * as i1 from '@lucca-front/ng/form-field';
|
|
10
|
-
import { LuOptionComparer
|
|
10
|
+
import { LuOptionComparer } from '@lucca-front/ng/option';
|
|
11
11
|
|
|
12
12
|
type LuMultiSelection<T> = {
|
|
13
13
|
mode: 'include';
|
|
@@ -21,12 +21,6 @@ type LuMultiSelection<T> = {
|
|
|
21
21
|
mode: 'all';
|
|
22
22
|
};
|
|
23
23
|
type LuMultiSelectionMode = LuMultiSelection<unknown>['mode'];
|
|
24
|
-
declare abstract class ɵIsSelectedStrategy<TOption> {
|
|
25
|
-
abstract isSelected(option: TOption, selectedOptions: TOption[], optionComparer: LuOptionComparer<TOption>): boolean;
|
|
26
|
-
abstract isGroupSelected(options: TOption[], notSelectedOptions: TOption[]): boolean;
|
|
27
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ɵIsSelectedStrategy<any>, never>;
|
|
28
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ɵIsSelectedStrategy<any>>;
|
|
29
|
-
}
|
|
30
24
|
|
|
31
25
|
interface LuMultiSelectWithSelectAllContext {
|
|
32
26
|
setSelectAll(value: boolean): void;
|
|
@@ -36,7 +30,7 @@ interface LuMultiSelectWithSelectAllContext {
|
|
|
36
30
|
totalCount: Signal<number>;
|
|
37
31
|
}
|
|
38
32
|
|
|
39
|
-
declare class LuMultiSelectWithSelectAllDirective<TValue> extends
|
|
33
|
+
declare class LuMultiSelectWithSelectAllDirective<TValue> extends _IsSelectedStrategy<TValue> implements LuMultiSelectWithSelectAllContext {
|
|
40
34
|
#private;
|
|
41
35
|
readonly displayerLabel: i0.InputSignal<string>;
|
|
42
36
|
readonly mode: i0.Signal<"include" | "exclude" | "none" | "all">;
|
|
@@ -44,7 +38,7 @@ declare class LuMultiSelectWithSelectAllDirective<TValue> extends ɵIsSelectedSt
|
|
|
44
38
|
readonly totalCount: i0.Signal<number>;
|
|
45
39
|
constructor();
|
|
46
40
|
setSelectAll(selectAll: boolean): void;
|
|
47
|
-
isSelected(option: TValue, selectedOptions: TValue[], optionComparer: LuOptionComparer
|
|
41
|
+
isSelected(option: TValue, selectedOptions: TValue[], optionComparer: LuOptionComparer<TValue>): boolean;
|
|
48
42
|
isGroupSelected(_options: TValue[], notSelectedOptions: TValue[]): boolean;
|
|
49
43
|
registerOnChange(fn: (value: TValue[] | LuMultiSelection<TValue>) => void): void;
|
|
50
44
|
writeValue(value: TValue[] | LuMultiSelection<TValue>): void;
|
|
@@ -102,6 +96,8 @@ declare class LuMultiSelectInputComponent<T> extends ALuSelectInputComponent<T,
|
|
|
102
96
|
maxValuesShown: number;
|
|
103
97
|
keepSearchAfterSelection: boolean;
|
|
104
98
|
filterPillLabelPlural: string;
|
|
99
|
+
selectParent$: Subject<void>;
|
|
100
|
+
selectChildren$: Subject<void>;
|
|
105
101
|
get filterPillClass(): boolean;
|
|
106
102
|
hideCombobox: i0.Signal<boolean>;
|
|
107
103
|
filterPillPanelAnchorRef: i0.Signal<ViewContainerRef>;
|
|
@@ -119,6 +115,8 @@ declare class LuMultiSelectInputComponent<T> extends ALuSelectInputComponent<T,
|
|
|
119
115
|
keepClue: boolean;
|
|
120
116
|
}>;
|
|
121
117
|
readonly emptyClue$: Subject<void>;
|
|
118
|
+
selectParentOnly(): void;
|
|
119
|
+
selectChildrenOnly(): void;
|
|
122
120
|
focusInput(): void;
|
|
123
121
|
emptyClue(): void;
|
|
124
122
|
writeValue(value: T[]): void;
|
package/option/index.d.ts
CHANGED
|
@@ -28,6 +28,9 @@ declare abstract class ALuOptionItem<T> implements ILuOptionItem<T> {
|
|
|
28
28
|
abstract disabled: boolean;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated
|
|
33
|
+
*/
|
|
31
34
|
declare class LuOptionItemComponent<T> extends ALuOptionItem<T> implements ILuOptionItem<T> {
|
|
32
35
|
private _cdr;
|
|
33
36
|
protected _selected: boolean;
|
|
@@ -74,6 +77,9 @@ declare abstract class ALuTreeOptionItem<T> extends ALuOptionItem<T> implements
|
|
|
74
77
|
abstract onSelectChildren: Observable<this>;
|
|
75
78
|
}
|
|
76
79
|
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated
|
|
82
|
+
*/
|
|
77
83
|
declare class LuTreeOptionItemComponent<T> extends ALuTreeOptionItem<T> implements ILuTreeOptionItem<T> {
|
|
78
84
|
private _cdr;
|
|
79
85
|
protected _children: this[];
|
|
@@ -109,6 +115,9 @@ declare class LuTreeOptionItemComponent<T> extends ALuTreeOptionItem<T> implemen
|
|
|
109
115
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionItemComponent<any>, "lu-tree-option", never, { "tree": { "alias": "tree"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "highlighted": { "alias": "highlighted"; "required": false; }; }, { "onSelect": "onSelect"; "onSelectSelf": "onSelectSelf"; "onSelectChildren": "onSelectChildren"; }, ["_contentChildDisplayer"], never, true, never>;
|
|
110
116
|
}
|
|
111
117
|
|
|
118
|
+
/**
|
|
119
|
+
* @deprecated
|
|
120
|
+
*/
|
|
112
121
|
declare class LuTreeOptionItemModule {
|
|
113
122
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionItemModule, never>;
|
|
114
123
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LuTreeOptionItemModule, never, [typeof LuTreeOptionItemComponent], [typeof LuTreeOptionItemComponent]>;
|
|
@@ -135,6 +144,9 @@ declare abstract class ALuOptionPicker<T, O extends ILuOptionItem<T> = ILuOption
|
|
|
135
144
|
protected abstract _emitSelectValue(value: T | T[]): any;
|
|
136
145
|
}
|
|
137
146
|
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated
|
|
149
|
+
*/
|
|
138
150
|
declare abstract class ALuOptionPickerComponent<T, O extends ILuOptionItem<T> = ILuOptionItem<T>> extends ALuOptionPicker<T, O> implements ILuOptionPickerPanel<T>, OnDestroy, AfterViewInit {
|
|
139
151
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
140
152
|
protected document: Document;
|
|
@@ -194,6 +206,7 @@ declare abstract class ALuOptionPickerComponent<T, O extends ILuOptionItem<T> =
|
|
|
194
206
|
}
|
|
195
207
|
/**
|
|
196
208
|
* basic option picker panel
|
|
209
|
+
* @deprecated
|
|
197
210
|
*/
|
|
198
211
|
declare class LuOptionPickerComponent<T, O extends ILuOptionItem<T> = ILuOptionItem<T>> extends ALuOptionPickerComponent<T, O> {
|
|
199
212
|
constructor(_changeDetectorRef: ChangeDetectorRef, document: Document);
|
|
@@ -227,6 +240,9 @@ type ILuTreeOptionOperator<T> = ILuOptionOperator<ILuTree<T>>;
|
|
|
227
240
|
declare abstract class ALuTreeOptionOperator<T> extends ALuOptionOperator<ILuTree<T>> implements ILuTreeOptionOperator<T> {
|
|
228
241
|
}
|
|
229
242
|
|
|
243
|
+
/**
|
|
244
|
+
* @deprecated
|
|
245
|
+
*/
|
|
230
246
|
declare class LuTreeOptionFeederComponent<T> implements ILuTreeOptionOperator<T> {
|
|
231
247
|
outOptions$: BehaviorSubject<ILuTree<T>[]>;
|
|
232
248
|
set options(options: ILuTree<T>[]);
|
|
@@ -256,6 +272,9 @@ declare class LuOptionPagerModule {
|
|
|
256
272
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuOptionPagerModule>;
|
|
257
273
|
}
|
|
258
274
|
|
|
275
|
+
/**
|
|
276
|
+
* @deprecated
|
|
277
|
+
*/
|
|
259
278
|
declare class LuTreeOptionPagerComponent<T> extends ALuTreeOptionOperator<T> implements ILuTreeOptionOperator<T>, ILuOnScrollBottomSubscriber {
|
|
260
279
|
outOptions$: Observable<ILuTree<T>[]>;
|
|
261
280
|
set inOptions$(in$: Observable<ILuTree<T>[]>);
|
|
@@ -295,6 +314,9 @@ declare class LuOptionSearcherModule {
|
|
|
295
314
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuOptionSearcherModule>;
|
|
296
315
|
}
|
|
297
316
|
|
|
317
|
+
/**
|
|
318
|
+
* @deprecated
|
|
319
|
+
*/
|
|
298
320
|
declare class LuTreeOptionSearcherComponent<T> extends ALuTreeOptionOperator<T> implements ILuTreeOptionOperator<T>, ILuOnOpenSubscriber {
|
|
299
321
|
searchControl: FormControl<any>;
|
|
300
322
|
clue$: Observable<string>;
|
|
@@ -310,6 +332,9 @@ declare class LuTreeOptionSearcherComponent<T> extends ALuTreeOptionOperator<T>
|
|
|
310
332
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionSearcherComponent<any>, "lu-tree-option-searcher", never, { "searchFn": { "alias": "searchFn"; "required": false; }; }, {}, never, never, true, never>;
|
|
311
333
|
}
|
|
312
334
|
|
|
335
|
+
/**
|
|
336
|
+
* @deprecated
|
|
337
|
+
*/
|
|
313
338
|
declare class LuTreeOptionSearcherModule {
|
|
314
339
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionSearcherModule, never>;
|
|
315
340
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LuTreeOptionSearcherModule, never, [typeof LuTreeOptionSearcherComponent], [typeof LuTreeOptionSearcherComponent]>;
|
|
@@ -367,6 +392,9 @@ declare class LuForOptionsModule {
|
|
|
367
392
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuForOptionsModule>;
|
|
368
393
|
}
|
|
369
394
|
|
|
395
|
+
/**
|
|
396
|
+
* @deprecated
|
|
397
|
+
*/
|
|
370
398
|
declare class LuForTreeOptionsDirective<T> extends LuForOptionsDirective<ILuTree<T>> implements ILuTreeOptionOperator<T>, OnDestroy {
|
|
371
399
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuForTreeOptionsDirective<any>, never>;
|
|
372
400
|
static ɵdir: i0.ɵɵDirectiveDeclaration<LuForTreeOptionsDirective<any>, "[luForTreeOptions]", never, {}, {}, never, never, true, never>;
|
|
@@ -384,6 +412,9 @@ declare class LuOptionOperatorModule {
|
|
|
384
412
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuOptionOperatorModule>;
|
|
385
413
|
}
|
|
386
414
|
|
|
415
|
+
/**
|
|
416
|
+
* @deprecated
|
|
417
|
+
*/
|
|
387
418
|
declare class LuTreeOptionOperatorModule {
|
|
388
419
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionOperatorModule, never>;
|
|
389
420
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LuTreeOptionOperatorModule, never, [typeof LuTreeOptionFeederComponent, typeof LuForTreeOptionsDirective, typeof LuTreeOptionPagerComponent, typeof LuTreeOptionSearcherModule], [typeof LuTreeOptionFeederComponent, typeof LuForTreeOptionsDirective, typeof LuTreeOptionPagerComponent, typeof LuTreeOptionSearcherModule]>;
|
|
@@ -408,6 +439,9 @@ interface ILuOptionSelectAllLabel {
|
|
|
408
439
|
}
|
|
409
440
|
declare const luOptionSelectAllTranslations: LuTranslation<ILuOptionSelectAllLabel>;
|
|
410
441
|
|
|
442
|
+
/**
|
|
443
|
+
* @deprecated
|
|
444
|
+
*/
|
|
411
445
|
declare class LuOptionSelectAllComponent<T> extends ALuOptionOperator<T> implements ILuOptionSelector<T> {
|
|
412
446
|
multiple: boolean;
|
|
413
447
|
onSelectValue: Subject<T | T[]>;
|
|
@@ -440,6 +474,9 @@ type ILuTreeOptionSelector<T> = ILuOptionSelector<T>;
|
|
|
440
474
|
declare abstract class ALuTreeOptionSelector<T> extends ALuOptionSelector<T> implements ILuTreeOptionSelector<T> {
|
|
441
475
|
}
|
|
442
476
|
|
|
477
|
+
/**
|
|
478
|
+
* @deprecated
|
|
479
|
+
*/
|
|
443
480
|
declare class LuTreeOptionSelectAllComponent<T> extends ALuTreeOptionOperator<T> implements ILuTreeOptionSelector<T> {
|
|
444
481
|
multiple: boolean;
|
|
445
482
|
onSelectValue: Subject<T | T[]>;
|
|
@@ -457,6 +494,9 @@ declare class LuTreeOptionSelectAllComponent<T> extends ALuTreeOptionOperator<T>
|
|
|
457
494
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionSelectAllComponent<any>, "lu-tree-option-select-all", never, {}, {}, never, never, true, never>;
|
|
458
495
|
}
|
|
459
496
|
|
|
497
|
+
/**
|
|
498
|
+
* @deprecated
|
|
499
|
+
*/
|
|
460
500
|
declare class LuTreeOptionSelectAllModule {
|
|
461
501
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionSelectAllModule, never>;
|
|
462
502
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LuTreeOptionSelectAllModule, never, [typeof LuTreeOptionSelectAllComponent], [typeof LuTreeOptionSelectAllComponent]>;
|
|
@@ -469,6 +509,9 @@ declare class LuTreeOptionSelectorModule {
|
|
|
469
509
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuTreeOptionSelectorModule>;
|
|
470
510
|
}
|
|
471
511
|
|
|
512
|
+
/**
|
|
513
|
+
* @deprecated
|
|
514
|
+
*/
|
|
472
515
|
declare abstract class ALuOptionPickerAdvancedComponent<T, O extends ILuOptionItem<T> = ILuOptionItem<T>> extends ALuOptionPickerComponent<T, O> implements AfterViewInit {
|
|
473
516
|
loading$: Observable<boolean>;
|
|
474
517
|
protected _operators: ILuOptionOperator<T>[];
|
|
@@ -496,6 +539,7 @@ declare abstract class ALuOptionPickerAdvancedComponent<T, O extends ILuOptionIt
|
|
|
496
539
|
}
|
|
497
540
|
/**
|
|
498
541
|
* advanced option picker panel
|
|
542
|
+
* @deprecated
|
|
499
543
|
*/
|
|
500
544
|
declare class LuOptionPickerAdvancedComponent<T, O extends ILuOptionItem<T> = ILuOptionItem<T>> extends ALuOptionPickerAdvancedComponent<T, O> {
|
|
501
545
|
constructor(_changeDetectorRef: ChangeDetectorRef, document: Document);
|
|
@@ -518,6 +562,9 @@ declare enum ToggleMode {
|
|
|
518
562
|
self = 1,
|
|
519
563
|
children = 2
|
|
520
564
|
}
|
|
565
|
+
/**
|
|
566
|
+
* @deprecated
|
|
567
|
+
*/
|
|
521
568
|
declare abstract class ALuTreeOptionPickerComponent<T, O extends ILuTreeOptionItem<T> = ILuTreeOptionItem<T>> extends ALuOptionPickerComponent<T, O> implements ILuTreeOptionPickerPanel<T>, OnDestroy, AfterViewInit {
|
|
522
569
|
set optionsQL(ql: QueryList<O>);
|
|
523
570
|
optionsQLVR: QueryList<ViewContainerRef>;
|
|
@@ -536,6 +583,7 @@ declare abstract class ALuTreeOptionPickerComponent<T, O extends ILuTreeOptionIt
|
|
|
536
583
|
}
|
|
537
584
|
/**
|
|
538
585
|
* basic tree option picker panel
|
|
586
|
+
* @deprecated
|
|
539
587
|
*/
|
|
540
588
|
declare class LuTreeOptionPickerComponent<T, O extends ILuTreeOptionItem<T> = ILuTreeOptionItem<T>> extends ALuTreeOptionPickerComponent<T, O> {
|
|
541
589
|
constructor(_changeDetectorRef: ChangeDetectorRef, document: Document);
|
|
@@ -543,6 +591,9 @@ declare class LuTreeOptionPickerComponent<T, O extends ILuTreeOptionItem<T> = IL
|
|
|
543
591
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionPickerComponent<any, any>, "lu-tree-option-picker", ["LuTreeOptionPicker"], {}, {}, never, ["*"], true, never>;
|
|
544
592
|
}
|
|
545
593
|
|
|
594
|
+
/**
|
|
595
|
+
* @deprecated
|
|
596
|
+
*/
|
|
546
597
|
declare abstract class ALuTreeOptionPickerAdvancedComponent<T, O extends ILuTreeOptionItem<T> = ILuTreeOptionItem<T>> extends ALuTreeOptionPickerComponent<T, O> implements AfterViewInit {
|
|
547
598
|
loading$: Observable<boolean>;
|
|
548
599
|
protected _operators: ILuTreeOptionOperator<T>[];
|
|
@@ -570,6 +621,7 @@ declare abstract class ALuTreeOptionPickerAdvancedComponent<T, O extends ILuTree
|
|
|
570
621
|
}
|
|
571
622
|
/**
|
|
572
623
|
* advanced option picker panel
|
|
624
|
+
* @deprecated
|
|
573
625
|
*/
|
|
574
626
|
declare class LuTreeOptionPickerAdvancedComponent<T, O extends ILuTreeOptionItem<T> = ILuTreeOptionItem<T>> extends ALuTreeOptionPickerAdvancedComponent<T, O> {
|
|
575
627
|
constructor(_changeDetectorRef: ChangeDetectorRef, document: Document);
|
|
@@ -577,6 +629,9 @@ declare class LuTreeOptionPickerAdvancedComponent<T, O extends ILuTreeOptionItem
|
|
|
577
629
|
static ɵcmp: i0.ɵɵComponentDeclaration<LuTreeOptionPickerAdvancedComponent<any, any>, "lu-tree-option-picker-advanced", ["LuOptionPicker"], {}, {}, never, ["*"], true, never>;
|
|
578
630
|
}
|
|
579
631
|
|
|
632
|
+
/**
|
|
633
|
+
* @deprecated
|
|
634
|
+
*/
|
|
580
635
|
declare class LuTreeOptionPickerModule {
|
|
581
636
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionPickerModule, never>;
|
|
582
637
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LuTreeOptionPickerModule, never, [typeof i1.CommonModule, typeof i2.OverlayModule, typeof i3.LuScrollDirective, typeof i4.A11yModule, typeof LuTreeOptionPickerAdvancedComponent, typeof LuTreeOptionPickerComponent], [typeof LuTreeOptionPickerComponent, typeof LuTreeOptionPickerAdvancedComponent]>;
|
|
@@ -590,6 +645,9 @@ interface ILuOptionPlaceholderLabel {
|
|
|
590
645
|
}
|
|
591
646
|
declare const luOptionPlaceholderTranslations: LuTranslation<ILuOptionPlaceholderLabel>;
|
|
592
647
|
|
|
648
|
+
/**
|
|
649
|
+
* @deprecated
|
|
650
|
+
*/
|
|
593
651
|
declare class LuOptionPlaceholderComponent {
|
|
594
652
|
onClear: EventEmitter<any>;
|
|
595
653
|
intl: ILuOptionPlaceholderLabel;
|
|
@@ -610,6 +668,9 @@ declare class LuOptionModule {
|
|
|
610
668
|
static ɵinj: i0.ɵɵInjectorDeclaration<LuOptionModule>;
|
|
611
669
|
}
|
|
612
670
|
|
|
671
|
+
/**
|
|
672
|
+
* @deprecated
|
|
673
|
+
*/
|
|
613
674
|
declare class LuTreeOptionModule {
|
|
614
675
|
static ɵfac: i0.ɵɵFactoryDeclaration<LuTreeOptionModule, never>;
|
|
615
676
|
static ɵmod: i0.ɵɵNgModuleDeclaration<LuTreeOptionModule, never, [typeof LuTreeOptionItemModule, typeof LuTreeOptionPickerModule, typeof LuTreeOptionOperatorModule, typeof LuTreeOptionSelectorModule], [typeof LuTreeOptionItemModule, typeof LuTreeOptionPickerModule, typeof LuTreeOptionOperatorModule, typeof LuTreeOptionSelectorModule]>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lucca-front/ng",
|
|
3
|
-
"version": "20.
|
|
3
|
+
"version": "20.2.0-rc.1",
|
|
4
4
|
"description": "A library of icons made by the team @Lucca",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -26,19 +26,21 @@
|
|
|
26
26
|
"@angular/common": "^20.0.0",
|
|
27
27
|
"@angular/core": "^20.0.0",
|
|
28
28
|
"@angular/cdk": "^20.0.0",
|
|
29
|
-
"@lucca-front/icons": "20.
|
|
30
|
-
"@lucca-front/scss": "20.
|
|
29
|
+
"@lucca-front/icons": "20.2.0-rc.1",
|
|
30
|
+
"@lucca-front/scss": "20.2.0-rc.1",
|
|
31
31
|
"isomorphic-dompurify": "^2.17.0",
|
|
32
32
|
"date-fns": "^3.6.0",
|
|
33
33
|
"rxjs": "^7.8.0",
|
|
34
34
|
"@lexical/html": "^0.30.0",
|
|
35
|
+
"@lexical/text": "^0.30.0",
|
|
35
36
|
"@lexical/markdown": "^0.30.0",
|
|
36
37
|
"@lexical/history": "^0.30.0",
|
|
37
38
|
"@lexical/link": "^0.30.0",
|
|
38
39
|
"@lexical/rich-text": "^0.30.0",
|
|
39
40
|
"@lexical/selection": "^0.30.0",
|
|
40
41
|
"@lexical/utils": "^0.30.0",
|
|
41
|
-
"lexical": "^0.30.0"
|
|
42
|
+
"lexical": "^0.30.0",
|
|
43
|
+
"@ngx-formly/core": "^6.3.11"
|
|
42
44
|
},
|
|
43
45
|
"peerDependenciesMeta": {
|
|
44
46
|
"lexical": {
|
|
@@ -64,6 +66,9 @@
|
|
|
64
66
|
},
|
|
65
67
|
"@lexical/utils": {
|
|
66
68
|
"optional": true
|
|
69
|
+
},
|
|
70
|
+
"@ngx-formly/core": {
|
|
71
|
+
"optional": true
|
|
67
72
|
}
|
|
68
73
|
},
|
|
69
74
|
"bugs": {
|
|
@@ -83,9 +88,9 @@
|
|
|
83
88
|
"types": "./animations/index.d.ts",
|
|
84
89
|
"default": "./fesm2022/lucca-front-ng-animations.mjs"
|
|
85
90
|
},
|
|
86
|
-
"./
|
|
87
|
-
"types": "./
|
|
88
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
91
|
+
"./a11y": {
|
|
92
|
+
"types": "./a11y/index.d.ts",
|
|
93
|
+
"default": "./fesm2022/lucca-front-ng-a11y.mjs"
|
|
89
94
|
},
|
|
90
95
|
"./api": {
|
|
91
96
|
"types": "./api/index.d.ts",
|
|
@@ -95,9 +100,9 @@
|
|
|
95
100
|
"types": "./box/index.d.ts",
|
|
96
101
|
"default": "./fesm2022/lucca-front-ng-box.mjs"
|
|
97
102
|
},
|
|
98
|
-
"./
|
|
99
|
-
"types": "./
|
|
100
|
-
"default": "./fesm2022/lucca-front-ng-
|
|
103
|
+
"./app-layout": {
|
|
104
|
+
"types": "./app-layout/index.d.ts",
|
|
105
|
+
"default": "./fesm2022/lucca-front-ng-app-layout.mjs"
|
|
101
106
|
},
|
|
102
107
|
"./breadcrumbs": {
|
|
103
108
|
"types": "./breadcrumbs/index.d.ts",
|
|
@@ -123,14 +128,14 @@
|
|
|
123
128
|
"types": "./core/index.d.ts",
|
|
124
129
|
"default": "./fesm2022/lucca-front-ng-core.mjs"
|
|
125
130
|
},
|
|
126
|
-
"./date": {
|
|
127
|
-
"types": "./date/index.d.ts",
|
|
128
|
-
"default": "./fesm2022/lucca-front-ng-date.mjs"
|
|
129
|
-
},
|
|
130
131
|
"./core-select": {
|
|
131
132
|
"types": "./core-select/index.d.ts",
|
|
132
133
|
"default": "./fesm2022/lucca-front-ng-core-select.mjs"
|
|
133
134
|
},
|
|
135
|
+
"./date": {
|
|
136
|
+
"types": "./date/index.d.ts",
|
|
137
|
+
"default": "./fesm2022/lucca-front-ng-date.mjs"
|
|
138
|
+
},
|
|
134
139
|
"./date2": {
|
|
135
140
|
"types": "./date2/index.d.ts",
|
|
136
141
|
"default": "./fesm2022/lucca-front-ng-date2.mjs"
|
|
@@ -211,6 +216,10 @@
|
|
|
211
216
|
"types": "./link/index.d.ts",
|
|
212
217
|
"default": "./fesm2022/lucca-front-ng-link.mjs"
|
|
213
218
|
},
|
|
219
|
+
"./listbox": {
|
|
220
|
+
"types": "./listbox/index.d.ts",
|
|
221
|
+
"default": "./fesm2022/lucca-front-ng-listbox.mjs"
|
|
222
|
+
},
|
|
214
223
|
"./listing": {
|
|
215
224
|
"types": "./listing/index.d.ts",
|
|
216
225
|
"default": "./fesm2022/lucca-front-ng-listing.mjs"
|
|
@@ -339,6 +348,10 @@
|
|
|
339
348
|
"types": "./tooltip/index.d.ts",
|
|
340
349
|
"default": "./fesm2022/lucca-front-ng-tooltip.mjs"
|
|
341
350
|
},
|
|
351
|
+
"./tree-select": {
|
|
352
|
+
"types": "./tree-select/index.d.ts",
|
|
353
|
+
"default": "./fesm2022/lucca-front-ng-tree-select.mjs"
|
|
354
|
+
},
|
|
342
355
|
"./user": {
|
|
343
356
|
"types": "./user/index.d.ts",
|
|
344
357
|
"default": "./fesm2022/lucca-front-ng-user.mjs"
|
|
@@ -351,6 +364,10 @@
|
|
|
351
364
|
"types": "./core-select/api/index.d.ts",
|
|
352
365
|
"default": "./fesm2022/lucca-front-ng-core-select-api.mjs"
|
|
353
366
|
},
|
|
367
|
+
"./core-select/department": {
|
|
368
|
+
"types": "./core-select/department/index.d.ts",
|
|
369
|
+
"default": "./fesm2022/lucca-front-ng-core-select-department.mjs"
|
|
370
|
+
},
|
|
354
371
|
"./core-select/establishment": {
|
|
355
372
|
"types": "./core-select/establishment/index.d.ts",
|
|
356
373
|
"default": "./fesm2022/lucca-front-ng-core-select-establishment.mjs"
|
package/page-header/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { PortalContent } from '@lucca-front/ng/core';
|
|
|
4
4
|
declare class PageHeaderComponent {
|
|
5
5
|
description: _angular_core.InputSignal<PortalContent>;
|
|
6
6
|
label: _angular_core.InputSignal<PortalContent>;
|
|
7
|
-
container: _angular_core.InputSignalWithTransform<boolean,
|
|
7
|
+
container: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
8
8
|
descriptionIsString: _angular_core.Signal<boolean>;
|
|
9
9
|
labelIsString: _angular_core.Signal<boolean>;
|
|
10
10
|
isStringPortalContent(message: PortalContent): message is string;
|
package/pagination/index.d.ts
CHANGED
|
@@ -9,8 +9,8 @@ interface LuPaginationLabel {
|
|
|
9
9
|
|
|
10
10
|
declare class PaginationComponent {
|
|
11
11
|
protected intl: LuPaginationLabel;
|
|
12
|
-
readonly isFirstPage: _angular_core.
|
|
13
|
-
readonly isLastPage: _angular_core.
|
|
12
|
+
readonly isFirstPage: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
13
|
+
readonly isLastPage: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
14
14
|
readonly from: _angular_core.InputSignal<number>;
|
|
15
15
|
readonly to: _angular_core.InputSignal<number>;
|
|
16
16
|
readonly itemsCount: _angular_core.InputSignal<number>;
|
|
@@ -19,7 +19,7 @@ declare class PaginationComponent {
|
|
|
19
19
|
readonly nextPage: _angular_core.OutputEmitterRef<void>;
|
|
20
20
|
constructor();
|
|
21
21
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
22
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "lu-pagination", never, { "isFirstPage": { "alias": "isFirstPage"; "required":
|
|
22
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginationComponent, "lu-pagination", never, { "isFirstPage": { "alias": "isFirstPage"; "required": false; "isSignal": true; }; "isLastPage": { "alias": "isLastPage"; "required": false; "isSignal": true; }; "from": { "alias": "from"; "required": false; "isSignal": true; }; "to": { "alias": "to"; "required": false; "isSignal": true; }; "itemsCount": { "alias": "itemsCount"; "required": false; "isSignal": true; }; "mod": { "alias": "mod"; "required": false; "isSignal": true; }; }, { "previousPage": "previousPage"; "nextPage": "nextPage"; }, never, never, true, never>;
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
export { PaginationComponent };
|
|
@@ -17,10 +17,15 @@
|
|
|
17
17
|
"schema": "./lu-select/schema.json"
|
|
18
18
|
},
|
|
19
19
|
"tokens-spacings": {
|
|
20
|
-
"description": "Replace tokens with new names.",
|
|
20
|
+
"description": "Replace spacing tokens with new names.",
|
|
21
21
|
"factory": "./tokens-spacing/index",
|
|
22
22
|
"schema": "./tokens-spacing/schema.json"
|
|
23
23
|
},
|
|
24
|
+
"tokens-radius": {
|
|
25
|
+
"description": "Replace radius tokens with new names.",
|
|
26
|
+
"factory": "./tokens-radius/index",
|
|
27
|
+
"schema": "./tokens-radius/schema.json"
|
|
28
|
+
},
|
|
24
29
|
"tokens-typo": {
|
|
25
30
|
"description": "Replace typography tokens with new names.",
|
|
26
31
|
"factory": "./tokens-typo/index",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.migrateComponent = migrateComponent;
|
|
4
|
-
const
|
|
4
|
+
const change_1 = require("@schematics/angular/utility/change");
|
|
5
|
+
const angular_component_ast_1 = require("../lib/angular-component-ast");
|
|
5
6
|
const angular_template_1 = require("../lib/angular-template");
|
|
7
|
+
const html_ast_js_1 = require("../lib/html-ast.js");
|
|
6
8
|
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
7
|
-
const angular_component_ast_1 = require("../lib/angular-component-ast");
|
|
8
|
-
const change_1 = require("@schematics/angular/utility/change");
|
|
9
9
|
function migrateComponent(sourceFile, path, tree) {
|
|
10
10
|
const cssButtons = findCssButtons(sourceFile, path, tree);
|
|
11
11
|
if (cssButtons.length > 0) {
|
|
@@ -55,7 +55,7 @@ function migrateComponent(sourceFile, path, tree) {
|
|
|
55
55
|
`mod-withIcon`,
|
|
56
56
|
`is-${button.inputs.state}`,
|
|
57
57
|
`mod-delete`,
|
|
58
|
-
`mod-${button.size}`
|
|
58
|
+
`mod-${button.inputs.size}`
|
|
59
59
|
].includes(c);
|
|
60
60
|
}).join(' ');
|
|
61
61
|
templateUpdate.remove(button.nodeOffset + classesNode.keySpan.start.offset - 1, classesNode.sourceSpan.toString().length + 1);
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.migrateComponent = migrateComponent;
|
|
4
|
-
const
|
|
4
|
+
const change_1 = require("@schematics/angular/utility/change");
|
|
5
|
+
const angular_component_ast_1 = require("../lib/angular-component-ast");
|
|
5
6
|
const angular_template_1 = require("../lib/angular-template");
|
|
7
|
+
const html_ast_js_1 = require("../lib/html-ast.js");
|
|
6
8
|
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
7
|
-
const angular_component_ast_1 = require("../lib/angular-component-ast");
|
|
8
|
-
const change_1 = require("@schematics/angular/utility/change");
|
|
9
9
|
function migrateComponent(sourceFile, path, tree) {
|
|
10
10
|
const htmlIcons = findHTMLIcons(sourceFile, path, tree);
|
|
11
11
|
if (htmlIcons.length > 0) {
|
|
@@ -106,7 +106,7 @@ function findHTMLIcons(sourceFile, basePath, tree) {
|
|
|
106
106
|
if (possibleAltSpan && isInterestingNode(possibleAltSpan)) {
|
|
107
107
|
const childClasses = possibleAltSpan.attributes.find(attr => attr.name === 'class')?.value;
|
|
108
108
|
// We know it's one of these types but TS doesn't find that info from the above call so here we go again
|
|
109
|
-
if (childClasses === 'u-mask') {
|
|
109
|
+
if (childClasses === 'pr-u-mask') {
|
|
110
110
|
icon.alt = template.content.slice(possibleAltSpan.startSourceSpan.end.offset, possibleAltSpan.endSourceSpan?.start?.offset);
|
|
111
111
|
icon.altSpan = possibleAltSpan;
|
|
112
112
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const css_mapper_1 = require("../lib/css-mapper");
|
|
4
|
+
const lf_schematic_context_1 = require("../lib/lf-schematic-context");
|
|
5
|
+
// Nx need to see "@angular-devkit/schematics" in order to run this migration correctly (see https://github.com/nrwl/nx/blob/d9fed4b832bf01d1b9a44ae9e486a5e5cd2d2253/packages/nx/src/command-line/migrate/migrate.ts#L1729-L1738)
|
|
6
|
+
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
7
|
+
require('@angular-devkit/schematics');
|
|
8
|
+
exports.default = (options) => {
|
|
9
|
+
return async (tree, context) => {
|
|
10
|
+
await lf_schematic_context_1.currentSchematicContext.init(context, options);
|
|
11
|
+
await new css_mapper_1.CssMapper(tree, {
|
|
12
|
+
classes: {},
|
|
13
|
+
variables: {
|
|
14
|
+
'--commons-borderRadius-M': '--pr-t-border-radius-default',
|
|
15
|
+
'--commons-borderRadius-L': '--pr-t-border-radius-default',
|
|
16
|
+
'--commons-borderRadius-XL': '--pr-t-border-radius-structure',
|
|
17
|
+
'--commons-borderRadius-full': '--pr-t-border-radius-full',
|
|
18
|
+
},
|
|
19
|
+
mixins: {}
|
|
20
|
+
}, {}).run();
|
|
21
|
+
};
|
|
22
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const fs = require("fs");
|
|
4
|
+
const glob = require("glob");
|
|
5
|
+
const path = require("path");
|
|
6
|
+
const migration_test_js_1 = require("../lib/migration-test.js");
|
|
7
|
+
const collectionPath = path.normalize(path.join(__dirname, '..', 'collection.json'));
|
|
8
|
+
const testsRoot = path.join(__dirname, 'tests');
|
|
9
|
+
const files = fs.readdirSync(testsRoot);
|
|
10
|
+
describe('Tokens radius Migration', () => {
|
|
11
|
+
it('should update files', async () => {
|
|
12
|
+
// Arrange
|
|
13
|
+
const tree = (0, migration_test_js_1.createTreeFromFiles)(testsRoot, files, '.input.');
|
|
14
|
+
const expectedTree = (0, migration_test_js_1.createTreeFromFiles)(testsRoot, files, '.output.');
|
|
15
|
+
// Act
|
|
16
|
+
try {
|
|
17
|
+
await (0, migration_test_js_1.runSchematic)('collection', collectionPath, 'tokens-radius', { skipInstallation: true }, tree);
|
|
18
|
+
}
|
|
19
|
+
catch (error) {
|
|
20
|
+
// eslint-disable-next-line no-console
|
|
21
|
+
console.log(error);
|
|
22
|
+
}
|
|
23
|
+
// Assert
|
|
24
|
+
(0, migration_test_js_1.expectTree)(tree).toMatchTree(expectedTree);
|
|
25
|
+
});
|
|
26
|
+
// Use this to migrate @lucca-front/* packages
|
|
27
|
+
it.skip('should migrate @lucca-front/*', async () => {
|
|
28
|
+
// Arrange
|
|
29
|
+
const lfRoot = path.normalize(path.join(__dirname, '..', '..', '..', '..'));
|
|
30
|
+
const lfFiles = [
|
|
31
|
+
...glob.sync('packages/icons/**/*.scss', { cwd: lfRoot, nodir: true }),
|
|
32
|
+
...glob.sync('packages/scss/**/*.scss', { cwd: lfRoot, nodir: true }),
|
|
33
|
+
...glob.sync('packages/ng/**/*', { cwd: lfRoot, nodir: true, ignore: ['**/schematics/**'] }),
|
|
34
|
+
...glob.sync('stories/**', { cwd: lfRoot, nodir: true }),
|
|
35
|
+
];
|
|
36
|
+
const treeOriginalTree = (0, migration_test_js_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
37
|
+
const tree = (0, migration_test_js_1.createTreeFromFiles)(lfRoot, lfFiles, '.');
|
|
38
|
+
// Act
|
|
39
|
+
await (0, migration_test_js_1.runSchematic)('collection', collectionPath, 'tokens-radius', { skipInstallation: true }, tree);
|
|
40
|
+
// Assert
|
|
41
|
+
tree.visit((p, entry) => {
|
|
42
|
+
const original = treeOriginalTree.get(p)?.content.toString() || '';
|
|
43
|
+
const updated = entry?.content.toString() || '';
|
|
44
|
+
if (original !== updated) {
|
|
45
|
+
const fromRootPath = path.join(lfRoot, p);
|
|
46
|
+
fs.writeFileSync(fromRootPath, updated);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
});
|
|
50
|
+
});
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema",
|
|
3
|
+
"$id": "LuccaFrontTokensRadius",
|
|
4
|
+
"title": "Lucca Front Tokens Radius Schema",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"dryRun": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Run through the migration without making any changes.",
|
|
10
|
+
"default": false
|
|
11
|
+
},
|
|
12
|
+
"skipInstall": {
|
|
13
|
+
"type": "boolean",
|
|
14
|
+
"description": "Skip installing dependencies.",
|
|
15
|
+
"default": false
|
|
16
|
+
},
|
|
17
|
+
"verbose": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Enable verbose logging.",
|
|
20
|
+
"default": false
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|