@leanix/components 0.4.550 → 0.4.552
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/fesm2022/leanix-components.mjs +25 -220
- package/fesm2022/leanix-components.mjs.map +1 -1
- package/index.d.ts +1 -2
- package/lib/forms-ui/forms-ui.module.d.ts +39 -41
- package/package.json +1 -1
- package/lib/forms-ui/components/expanded-dropdown/expanded-dropdown.component.d.ts +0 -13
- package/lib/forms-ui/components/select-list/select-list.component.d.ts +0 -42
@@ -6194,25 +6194,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
6194
6194
|
args: [{ selector: 'lx-error-message', changeDetection: ChangeDetectionStrategy.OnPush, template: "<span #contentWrapper hidden>\n <ng-content />\n</span>\n\n@if (computedErrorMessage()) {\n <div class=\"error\">\n {{ computedErrorMessage() }}\n </div>\n}\n", styles: [".error{color:#f96464;padding:4px}\n"] }]
|
6195
6195
|
}] });
|
6196
6196
|
|
6197
|
-
class ExpandedDropdownComponent extends KeyboardSelectDirective {
|
6198
|
-
constructor() {
|
6199
|
-
super(...arguments);
|
6200
|
-
this.NAME = 'BasicDropdownComponent';
|
6201
|
-
this.options = [];
|
6202
|
-
this.onChooseItem = new EventEmitter();
|
6203
|
-
}
|
6204
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ExpandedDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
6205
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.6", type: ExpandedDropdownComponent, isStandalone: true, selector: "lx-expanded-dropdown", inputs: { options: "options" }, outputs: { onChooseItem: "onChooseItem" }, usesInheritance: true, ngImport: i0, template: "<ul role=\"listbox\" class=\"options lxThinScrollbar\" #keyboardSelectContainer>\n @for (option of options; track option.id; let index = $index) {\n <li\n tabindex=\"-1\"\n lxSelectableItem\n [scrollInContainer]=\"keyboardSelectContainer\"\n #item\n class=\"option keyboardSelectable\"\n (click)=\"onChooseItem.emit(option.id)\"\n [class.selected]=\"isItemSelected(item, (selectedItem$ | async)?.element)\"\n role=\"option\"\n [attr.aria-selected]=\"isItemSelected(item, (selectedItem$ | async)?.element)\"\n >\n <ng-container>\n <ng-container *ngTemplateOutlet=\"simpleStringDisplay; context: { $implicit: option, index: index }\" />\n </ng-container>\n <ng-template #simpleStringDisplay>\n <span [title]=\"option.name\">\n {{ option.name }}\n </span>\n </ng-template>\n <div class=\"iconContainer\">\n <svg\n width=\"32px\"\n height=\"32px\"\n viewBox=\"0 0 32 32\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <g id=\"choose-workspace-D\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"choose-a-workspace-D\" transform=\"translate(-911.000000, -429.000000)\">\n <g id=\"Group-3\" transform=\"translate(471.000000, 249.000000)\">\n <g id=\"Button/Text/Primary/Medium\" transform=\"translate(440.000000, 180.000000)\">\n <g id=\"UI/Shape/Rectangle-rounded-2px\" fill=\"#0070f2\">\n <circle id=\"\uD83C\uDFA8-Style\" cx=\"16\" cy=\"16\" r=\"16\" />\n </g>\n <g id=\"Icons/basic/refresh\" transform=\"translate(7.000000, 11.000000)\" fill=\"#FFFFFF\" fill-rule=\"nonzero\">\n <g id=\"arrow-right\" transform=\"translate(3.772240, 0.000000)\">\n <path\n d=\"M5.41769476,0.0873198725 L4.92588162,0.579133017 C4.80947996,0.695534673 4.80947996,0.88427129 4.92588162,1.00069779 L8.77935771,4.85414904 L0.298083627,4.85414904 C0.133466944,4.85414904 0,4.98761598 0,5.15223266 L0,5.84776113 C0,6.01237781 0.133466944,6.14584475 0.298083627,6.14584475 L8.77935771,6.14584475 L4.92588162,9.99932084 C4.80947996,10.1157225 4.80947996,10.3044591 4.92588162,10.4208856 L5.41769476,10.9126988 C5.53409642,11.0291004 5.72283304,11.0291004 5.83925953,10.9126988 L11.0411666,5.7107917 C11.1575682,5.59439004 11.1575682,5.40565343 11.0411666,5.28922693 L5.83923469,0.0873198725 C5.72283304,-0.0291066242 5.53409642,-0.0291066242 5.41769476,0.0873198725 Z\"\n id=\"Path\"\n />\n </g>\n </g>\n </g>\n </g>\n </g>\n </g>\n </svg>\n </div>\n </li>\n } @empty {\n <li tabindex=\"-1\" id=\"noOption\" class=\"option noOptionsAvailable\">\n {{ NAME + '.noResults' | translate }}\n </li>\n }\n</ul>\n", styles: [".options{list-style:none;margin:0;padding:0;overflow-y:auto;max-height:200px}.options:hover .selected{background-color:#fff}.optionSearch{padding:2px}.option{display:flex;justify-content:space-between;font-size:var(--lxFontLargeSize, 16px);height:40px;align-items:center;padding:4px 12px;border-bottom:1px solid #e1e5eb}.option:hover{background-color:#e1e5eb!important}.option.selected{background:#eaedf1}.option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.iconContainer{display:none}.option:hover .iconContainer{display:flex}\n"], dependencies: [{ kind: "directive", type: SelectableItemDirective, selector: "[lxSelectableItem]", inputs: ["scrollInContainer", "lxSelectableItem"], outputs: ["select"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i1.TranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
6206
|
-
}
|
6207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: ExpandedDropdownComponent, decorators: [{
|
6208
|
-
type: Component,
|
6209
|
-
args: [{ selector: 'lx-expanded-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, imports: [SelectableItemDirective, NgTemplateOutlet, AsyncPipe, TranslateModule], template: "<ul role=\"listbox\" class=\"options lxThinScrollbar\" #keyboardSelectContainer>\n @for (option of options; track option.id; let index = $index) {\n <li\n tabindex=\"-1\"\n lxSelectableItem\n [scrollInContainer]=\"keyboardSelectContainer\"\n #item\n class=\"option keyboardSelectable\"\n (click)=\"onChooseItem.emit(option.id)\"\n [class.selected]=\"isItemSelected(item, (selectedItem$ | async)?.element)\"\n role=\"option\"\n [attr.aria-selected]=\"isItemSelected(item, (selectedItem$ | async)?.element)\"\n >\n <ng-container>\n <ng-container *ngTemplateOutlet=\"simpleStringDisplay; context: { $implicit: option, index: index }\" />\n </ng-container>\n <ng-template #simpleStringDisplay>\n <span [title]=\"option.name\">\n {{ option.name }}\n </span>\n </ng-template>\n <div class=\"iconContainer\">\n <svg\n width=\"32px\"\n height=\"32px\"\n viewBox=\"0 0 32 32\"\n version=\"1.1\"\n xmlns=\"http://www.w3.org/2000/svg\"\n xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n >\n <g id=\"choose-workspace-D\" stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\">\n <g id=\"choose-a-workspace-D\" transform=\"translate(-911.000000, -429.000000)\">\n <g id=\"Group-3\" transform=\"translate(471.000000, 249.000000)\">\n <g id=\"Button/Text/Primary/Medium\" transform=\"translate(440.000000, 180.000000)\">\n <g id=\"UI/Shape/Rectangle-rounded-2px\" fill=\"#0070f2\">\n <circle id=\"\uD83C\uDFA8-Style\" cx=\"16\" cy=\"16\" r=\"16\" />\n </g>\n <g id=\"Icons/basic/refresh\" transform=\"translate(7.000000, 11.000000)\" fill=\"#FFFFFF\" fill-rule=\"nonzero\">\n <g id=\"arrow-right\" transform=\"translate(3.772240, 0.000000)\">\n <path\n d=\"M5.41769476,0.0873198725 L4.92588162,0.579133017 C4.80947996,0.695534673 4.80947996,0.88427129 4.92588162,1.00069779 L8.77935771,4.85414904 L0.298083627,4.85414904 C0.133466944,4.85414904 0,4.98761598 0,5.15223266 L0,5.84776113 C0,6.01237781 0.133466944,6.14584475 0.298083627,6.14584475 L8.77935771,6.14584475 L4.92588162,9.99932084 C4.80947996,10.1157225 4.80947996,10.3044591 4.92588162,10.4208856 L5.41769476,10.9126988 C5.53409642,11.0291004 5.72283304,11.0291004 5.83925953,10.9126988 L11.0411666,5.7107917 C11.1575682,5.59439004 11.1575682,5.40565343 11.0411666,5.28922693 L5.83923469,0.0873198725 C5.72283304,-0.0291066242 5.53409642,-0.0291066242 5.41769476,0.0873198725 Z\"\n id=\"Path\"\n />\n </g>\n </g>\n </g>\n </g>\n </g>\n </g>\n </svg>\n </div>\n </li>\n } @empty {\n <li tabindex=\"-1\" id=\"noOption\" class=\"option noOptionsAvailable\">\n {{ NAME + '.noResults' | translate }}\n </li>\n }\n</ul>\n", styles: [".options{list-style:none;margin:0;padding:0;overflow-y:auto;max-height:200px}.options:hover .selected{background-color:#fff}.optionSearch{padding:2px}.option{display:flex;justify-content:space-between;font-size:var(--lxFontLargeSize, 16px);height:40px;align-items:center;padding:4px 12px;border-bottom:1px solid #e1e5eb}.option:hover{background-color:#e1e5eb!important}.option.selected{background:#eaedf1}.option span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.iconContainer{display:none}.option:hover .iconContainer{display:flex}\n"] }]
|
6210
|
-
}], propDecorators: { options: [{
|
6211
|
-
type: Input
|
6212
|
-
}], onChooseItem: [{
|
6213
|
-
type: Output
|
6214
|
-
}] } });
|
6215
|
-
|
6216
6197
|
class FormErrorComponent {
|
6217
6198
|
constructor() {
|
6218
6199
|
/** @internal */
|
@@ -7881,6 +7862,30 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
7881
7862
|
args: [PillItemComponent, { emitDistinctChangesOnly: true }]
|
7882
7863
|
}] } });
|
7883
7864
|
|
7865
|
+
/**
|
7866
|
+
* This directive is supposed to be used in combination with a single-select in
|
7867
|
+
* order to mark a ng-template as the template to be rendered within the select to
|
7868
|
+
* display the currently selected option.
|
7869
|
+
*
|
7870
|
+
* Example:
|
7871
|
+
*
|
7872
|
+
* ```
|
7873
|
+
* <lx-single-select>
|
7874
|
+
* <ng-template lxSelectedOption>{{ someValue }}</ng-template>
|
7875
|
+
* </lx-single-select>
|
7876
|
+
* ```
|
7877
|
+
*/
|
7878
|
+
class SelectedOptionDirective {
|
7879
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectedOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
7880
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: SelectedOptionDirective, isStandalone: true, selector: "[lxSelectedOption]", ngImport: i0 }); }
|
7881
|
+
}
|
7882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectedOptionDirective, decorators: [{
|
7883
|
+
type: Directive,
|
7884
|
+
args: [{
|
7885
|
+
selector: '[lxSelectedOption]'
|
7886
|
+
}]
|
7887
|
+
}] });
|
7888
|
+
|
7884
7889
|
function getKeyboardNavigationEvents(sourceElement, destroyed$) {
|
7885
7890
|
const inputKeyboardEvents$ = fromEvent(sourceElement, 'keydown').pipe(takeUntil(destroyed$));
|
7886
7891
|
const verticalNavigation$ = inputKeyboardEvents$.pipe(filter((event) => includes(event.keyCode, [ARROW_UP, ARROW_DOWN])));
|
@@ -7914,196 +7919,6 @@ function stopKeyboardEventPropagation(evt) {
|
|
7914
7919
|
evt.stopImmediatePropagation();
|
7915
7920
|
}
|
7916
7921
|
|
7917
|
-
class SelectListComponent extends BaseSelectDirective {
|
7918
|
-
constructor() {
|
7919
|
-
super(...arguments);
|
7920
|
-
this.searchPlaceholder = 'Search';
|
7921
|
-
this.options = [];
|
7922
|
-
this.selectionChange = new EventEmitter();
|
7923
|
-
this.onChooseItem = new EventEmitter();
|
7924
|
-
/** @internal */
|
7925
|
-
this.highlightedIndex = 0;
|
7926
|
-
/** @internal */
|
7927
|
-
this.destroyed$ = new Subject();
|
7928
|
-
}
|
7929
|
-
/** @internal */
|
7930
|
-
get dropdownTmpl() {
|
7931
|
-
return this.explicitDropdown || this.implicitDropdown;
|
7932
|
-
}
|
7933
|
-
/** @internal */
|
7934
|
-
resetInput() {
|
7935
|
-
this.queryControl.reset('', { emitEvent: false });
|
7936
|
-
}
|
7937
|
-
/** @internal */
|
7938
|
-
focus() {
|
7939
|
-
this.searchInput.nativeElement.focus();
|
7940
|
-
}
|
7941
|
-
/** @internal */
|
7942
|
-
focusAndOpen() {
|
7943
|
-
this.focus();
|
7944
|
-
this.open.next(true);
|
7945
|
-
}
|
7946
|
-
ngOnDestroy() {
|
7947
|
-
super.ngOnDestroy();
|
7948
|
-
this.destroyed$.next();
|
7949
|
-
}
|
7950
|
-
ngAfterViewInit() {
|
7951
|
-
super.ngAfterViewInit();
|
7952
|
-
this.open
|
7953
|
-
.pipe(distinctUntilChanged(), filter(() => !!this.dropdownComponent), map(() => this.selection), takeUntil(this.destroyed$))
|
7954
|
-
.subscribe((selection) => {
|
7955
|
-
if (selection) {
|
7956
|
-
const index = this.determineHighlightIndex(this.dropdownComponent.options, selection);
|
7957
|
-
if (index > -1) {
|
7958
|
-
this.dropdownComponent.select(index);
|
7959
|
-
}
|
7960
|
-
else {
|
7961
|
-
this.dropdownComponent.select(0);
|
7962
|
-
}
|
7963
|
-
}
|
7964
|
-
else {
|
7965
|
-
this.dropdownComponent.select(0);
|
7966
|
-
}
|
7967
|
-
});
|
7968
|
-
// keyboard event handling
|
7969
|
-
const sourceElement = this.searchInput.nativeElement;
|
7970
|
-
const keyboardEvents = getKeyboardNavigationEvents(sourceElement, this.destroyed$);
|
7971
|
-
keyboardEvents.verticalNavigation$.subscribe((event) => {
|
7972
|
-
event.preventDefault();
|
7973
|
-
const currentIndex = this.determineHighlightIndex(this.options, this.selection);
|
7974
|
-
// keyboard selection while not searching
|
7975
|
-
if (this.searchInput.nativeElement.value === '') {
|
7976
|
-
if (event.key === 'ArrowDown') {
|
7977
|
-
if (currentIndex !== this.options.length - 1) {
|
7978
|
-
this.selectOption(currentIndex + 1);
|
7979
|
-
}
|
7980
|
-
else {
|
7981
|
-
this.selectOption(0);
|
7982
|
-
}
|
7983
|
-
}
|
7984
|
-
else {
|
7985
|
-
if (currentIndex !== 0) {
|
7986
|
-
this.selectOption(currentIndex - 1);
|
7987
|
-
}
|
7988
|
-
else {
|
7989
|
-
this.selectOption(this.options.length - 1);
|
7990
|
-
}
|
7991
|
-
}
|
7992
|
-
}
|
7993
|
-
else {
|
7994
|
-
if (event.key === 'ArrowDown') {
|
7995
|
-
if (this.highlightedIndex !== this.dropdownComponent.options.length - 1) {
|
7996
|
-
this.highlightedIndex = this.highlightedIndex + 1;
|
7997
|
-
}
|
7998
|
-
else {
|
7999
|
-
this.highlightedIndex = 0;
|
8000
|
-
}
|
8001
|
-
}
|
8002
|
-
else {
|
8003
|
-
if (this.highlightedIndex !== 0) {
|
8004
|
-
this.highlightedIndex = this.highlightedIndex - 1;
|
8005
|
-
}
|
8006
|
-
else {
|
8007
|
-
this.highlightedIndex = this.dropdownComponent.options.length - 1;
|
8008
|
-
}
|
8009
|
-
}
|
8010
|
-
this.dropdownComponent.select(this.highlightedIndex);
|
8011
|
-
}
|
8012
|
-
});
|
8013
|
-
keyboardEvents.enter$.subscribe(() => {
|
8014
|
-
if (this.searchInput.nativeElement.value === '') {
|
8015
|
-
this.onChooseItem.emit(this.selection.id);
|
8016
|
-
}
|
8017
|
-
else if (this.dropdownComponent.options.length) {
|
8018
|
-
this.onChooseItem.emit(this.dropdownComponent.options[this.highlightedIndex]?.id);
|
8019
|
-
}
|
8020
|
-
});
|
8021
|
-
this.focusAndOpen();
|
8022
|
-
}
|
8023
|
-
/** @internal */
|
8024
|
-
selectOption(index) {
|
8025
|
-
if (this.determineHighlightIndex(this.options, this.selection) === index) {
|
8026
|
-
this.onChooseItem.emit(this.selection.id);
|
8027
|
-
}
|
8028
|
-
else if (index !== -1) {
|
8029
|
-
this.selection = this.options[index];
|
8030
|
-
this.selectionChange.emit(this.selection);
|
8031
|
-
this.open.next(false);
|
8032
|
-
this.focusAndOpen();
|
8033
|
-
this.dropdownComponent?.select(index);
|
8034
|
-
}
|
8035
|
-
}
|
8036
|
-
/** @internal */
|
8037
|
-
searchKeyChanged(event) {
|
8038
|
-
if (event.target.value === '' && !['ArrowUp', 'ArrowDown'].includes(event.key)) {
|
8039
|
-
this.highlightedIndex = this.determineHighlightIndex(this.dropdownComponent.options, this.selection);
|
8040
|
-
this.dropdownComponent.select(this.highlightedIndex);
|
8041
|
-
}
|
8042
|
-
else if (event.key.length === 1 || ['Backspace', 'Delete'].includes(event.key)) {
|
8043
|
-
this.highlightedIndex = 0;
|
8044
|
-
this.dropdownComponent.select(0);
|
8045
|
-
}
|
8046
|
-
}
|
8047
|
-
determineHighlightIndex(options, selection) {
|
8048
|
-
return options.findIndex((option) => isEqual$1(selection, option));
|
8049
|
-
}
|
8050
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
8051
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.6", type: SelectListComponent, isStandalone: true, selector: "lx-select-list", inputs: { searchPlaceholder: "searchPlaceholder", options: "options", selection: "selection" }, outputs: { selectionChange: "selectionChange", onChooseItem: "onChooseItem" }, queries: [{ propertyName: "explicitDropdown", first: true, predicate: SelectDropdownDirective, descendants: true, read: TemplateRef, static: true }, { propertyName: "dropdownComponent", first: true, predicate: ExpandedDropdownComponent, descendants: true }], viewQueries: [{ propertyName: "implicitSelectedOption", first: true, predicate: ["selectedOption"], descendants: true, static: true }, { propertyName: "implicitDropdown", first: true, predicate: ["dropdown"], descendants: true, static: true }, { propertyName: "searchInput", first: true, predicate: ["searchInput"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"selectContainer focused\">\n <div class=\"selectionContainer\">\n <div class=\"inputContainer\">\n <div class=\"searchWrapper\">\n <input\n #searchInput\n id=\"searchInput\"\n class=\"searchInput\"\n type=\"text\"\n autocomplete=\"off\"\n (keyup)=\"searchKeyChanged($event)\"\n [formControl]=\"queryControl\"\n [placeholder]=\"searchPlaceholder\"\n />\n <label for=\"searchInput\" class=\"fa fa-search\"></label>\n </div>\n </div>\n </div>\n <div class=\"optionsContainer\" #optionsContainer>\n <ng-container>\n <ng-container *ngTemplateOutlet=\"dropdownTmpl\" />\n </ng-container>\n </div>\n</div>\n\n<ng-template #selectedOption>\n <ng-content select=\".selectedOption\" />\n</ng-template>\n<ng-template #dropdown>\n <ng-content select=\".dropdownComponent\" />\n</ng-template>\n", styles: [".selectContainer{position:relative;height:auto;padding:0;box-sizing:border-box;z-index:1049;background:#fff;border-bottom-color:#fff;border-bottom-left-radius:0;border-bottom-right-radius:0;border:none;box-shadow:none;font-size:var(--lxFontLargeSize, 16px)}.selectContainer .optionsContainer{border-bottom:solid 1px #e1e5eb;border-left:solid 1px #e1e5eb;border-right:solid 1px #e1e5eb;box-shadow:0 6px 6px #21252933;top:100%;border-top:0;border-top-left-radius:0;border-top-right-radius:0;border:none;border-top:1px solid #e1e5eb;box-shadow:none;margin-top:1px}.selectContainer .inputContainer,.selectContainer .searchInput,.selectContainer .selection,.selectContainer .iconContainer{height:29px}.selectContainer .inputContainer{line-height:29px}.selectContainer .selectionContainer{min-height:29px}.selectionContainer{display:flex}.inputContainer{flex:1;position:relative;white-space:nowrap}.searchInput{width:100%;appearance:none;padding-left:27px;border:0;background:transparent;position:relative;cursor:inherit}.searchInput::-ms-clear{display:none}.searchInput:focus{outline:0}.iconContainer{display:flex;align-items:center;text-align:center}.fa-search{position:absolute;left:3px;top:calc(50% - .5em);color:#526179}.searchWrapper{position:relative}.selection{width:100%;position:absolute;display:flex;align-items:center}.selection.lowerOpacity{opacity:.7}.optionsContainer{position:absolute;left:-1px;right:-1px;padding:0;border-radius:3px;background:#fff;z-index:1001}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1$5.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1$5.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] }); }
|
8052
|
-
}
|
8053
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectListComponent, decorators: [{
|
8054
|
-
type: Component,
|
8055
|
-
args: [{ selector: 'lx-select-list', imports: [FormsModule, ReactiveFormsModule, NgTemplateOutlet], template: "<div class=\"selectContainer focused\">\n <div class=\"selectionContainer\">\n <div class=\"inputContainer\">\n <div class=\"searchWrapper\">\n <input\n #searchInput\n id=\"searchInput\"\n class=\"searchInput\"\n type=\"text\"\n autocomplete=\"off\"\n (keyup)=\"searchKeyChanged($event)\"\n [formControl]=\"queryControl\"\n [placeholder]=\"searchPlaceholder\"\n />\n <label for=\"searchInput\" class=\"fa fa-search\"></label>\n </div>\n </div>\n </div>\n <div class=\"optionsContainer\" #optionsContainer>\n <ng-container>\n <ng-container *ngTemplateOutlet=\"dropdownTmpl\" />\n </ng-container>\n </div>\n</div>\n\n<ng-template #selectedOption>\n <ng-content select=\".selectedOption\" />\n</ng-template>\n<ng-template #dropdown>\n <ng-content select=\".dropdownComponent\" />\n</ng-template>\n", styles: [".selectContainer{position:relative;height:auto;padding:0;box-sizing:border-box;z-index:1049;background:#fff;border-bottom-color:#fff;border-bottom-left-radius:0;border-bottom-right-radius:0;border:none;box-shadow:none;font-size:var(--lxFontLargeSize, 16px)}.selectContainer .optionsContainer{border-bottom:solid 1px #e1e5eb;border-left:solid 1px #e1e5eb;border-right:solid 1px #e1e5eb;box-shadow:0 6px 6px #21252933;top:100%;border-top:0;border-top-left-radius:0;border-top-right-radius:0;border:none;border-top:1px solid #e1e5eb;box-shadow:none;margin-top:1px}.selectContainer .inputContainer,.selectContainer .searchInput,.selectContainer .selection,.selectContainer .iconContainer{height:29px}.selectContainer .inputContainer{line-height:29px}.selectContainer .selectionContainer{min-height:29px}.selectionContainer{display:flex}.inputContainer{flex:1;position:relative;white-space:nowrap}.searchInput{width:100%;appearance:none;padding-left:27px;border:0;background:transparent;position:relative;cursor:inherit}.searchInput::-ms-clear{display:none}.searchInput:focus{outline:0}.iconContainer{display:flex;align-items:center;text-align:center}.fa-search{position:absolute;left:3px;top:calc(50% - .5em);color:#526179}.searchWrapper{position:relative}.selection{width:100%;position:absolute;display:flex;align-items:center}.selection.lowerOpacity{opacity:.7}.optionsContainer{position:absolute;left:-1px;right:-1px;padding:0;border-radius:3px;background:#fff;z-index:1001}\n"] }]
|
8056
|
-
}], propDecorators: { searchPlaceholder: [{
|
8057
|
-
type: Input
|
8058
|
-
}], options: [{
|
8059
|
-
type: Input
|
8060
|
-
}], selection: [{
|
8061
|
-
type: Input
|
8062
|
-
}], selectionChange: [{
|
8063
|
-
type: Output
|
8064
|
-
}], onChooseItem: [{
|
8065
|
-
type: Output
|
8066
|
-
}], explicitDropdown: [{
|
8067
|
-
type: ContentChild,
|
8068
|
-
args: [SelectDropdownDirective, { read: TemplateRef, static: true }]
|
8069
|
-
}], dropdownComponent: [{
|
8070
|
-
type: ContentChild,
|
8071
|
-
args: [ExpandedDropdownComponent, { static: false }]
|
8072
|
-
}], implicitSelectedOption: [{
|
8073
|
-
type: ViewChild,
|
8074
|
-
args: ['selectedOption', { static: true }]
|
8075
|
-
}], implicitDropdown: [{
|
8076
|
-
type: ViewChild,
|
8077
|
-
args: ['dropdown', { static: true }]
|
8078
|
-
}], searchInput: [{
|
8079
|
-
type: ViewChild,
|
8080
|
-
args: ['searchInput', { static: true }]
|
8081
|
-
}] } });
|
8082
|
-
|
8083
|
-
/**
|
8084
|
-
* This directive is supposed to be used in combination with a single-select in
|
8085
|
-
* order to mark a ng-template as the template to be rendered within the select to
|
8086
|
-
* display the currently selected option.
|
8087
|
-
*
|
8088
|
-
* Example:
|
8089
|
-
*
|
8090
|
-
* ```
|
8091
|
-
* <lx-single-select>
|
8092
|
-
* <ng-template lxSelectedOption>{{ someValue }}</ng-template>
|
8093
|
-
* </lx-single-select>
|
8094
|
-
* ```
|
8095
|
-
*/
|
8096
|
-
class SelectedOptionDirective {
|
8097
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectedOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
8098
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.6", type: SelectedOptionDirective, isStandalone: true, selector: "[lxSelectedOption]", ngImport: i0 }); }
|
8099
|
-
}
|
8100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImport: i0, type: SelectedOptionDirective, decorators: [{
|
8101
|
-
type: Directive,
|
8102
|
-
args: [{
|
8103
|
-
selector: '[lxSelectedOption]'
|
8104
|
-
}]
|
8105
|
-
}] });
|
8106
|
-
|
8107
7922
|
class SingleSelectComponent extends BaseSelectDirective {
|
8108
7923
|
/** @internal */
|
8109
7924
|
static calculateNewCursorPostionOnKeyboardNavigation(cursorPosition, keyCode) {
|
@@ -8910,7 +8725,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
8910
8725
|
|
8911
8726
|
const FORMS_MODULE_EXPORTS = [
|
8912
8727
|
BasicDropdownComponent,
|
8913
|
-
ExpandedDropdownComponent,
|
8914
8728
|
BasicDropdownItemComponent,
|
8915
8729
|
BreadcrumbComponent,
|
8916
8730
|
CurrencyInputComponent,
|
@@ -8939,7 +8753,6 @@ const FORMS_MODULE_EXPORTS = [
|
|
8939
8753
|
SelectableItemDirective,
|
8940
8754
|
SelectDropdownDirective,
|
8941
8755
|
SelectedOptionDirective,
|
8942
|
-
SelectListComponent,
|
8943
8756
|
SingleSelectComponent,
|
8944
8757
|
SwitchComponent,
|
8945
8758
|
SortingDropdownComponent,
|
@@ -8961,7 +8774,6 @@ class LxFormsModule {
|
|
8961
8774
|
OverlayModule,
|
8962
8775
|
LxDragAndDropListModule,
|
8963
8776
|
BasicDropdownComponent,
|
8964
|
-
ExpandedDropdownComponent,
|
8965
8777
|
BasicDropdownItemComponent,
|
8966
8778
|
BreadcrumbComponent,
|
8967
8779
|
CurrencyInputComponent,
|
@@ -8991,7 +8803,6 @@ class LxFormsModule {
|
|
8991
8803
|
SelectedOptionDirective,
|
8992
8804
|
SelectDropdownDirective,
|
8993
8805
|
SingleSelectComponent,
|
8994
|
-
SelectListComponent,
|
8995
8806
|
SwitchComponent,
|
8996
8807
|
SortingDropdownComponent,
|
8997
8808
|
SortingDropdownTriggerComponent,
|
@@ -9001,7 +8812,6 @@ class LxFormsModule {
|
|
9001
8812
|
ErrorMessageComponent,
|
9002
8813
|
FormSubmitDirective,
|
9003
8814
|
ContenteditableDirective], exports: [BasicDropdownComponent,
|
9004
|
-
ExpandedDropdownComponent,
|
9005
8815
|
BasicDropdownItemComponent,
|
9006
8816
|
BreadcrumbComponent,
|
9007
8817
|
CurrencyInputComponent,
|
@@ -9030,7 +8840,6 @@ class LxFormsModule {
|
|
9030
8840
|
SelectableItemDirective,
|
9031
8841
|
SelectDropdownDirective,
|
9032
8842
|
SelectedOptionDirective,
|
9033
|
-
SelectListComponent,
|
9034
8843
|
SingleSelectComponent,
|
9035
8844
|
SwitchComponent,
|
9036
8845
|
SortingDropdownComponent,
|
@@ -9052,7 +8861,6 @@ class LxFormsModule {
|
|
9052
8861
|
OverlayModule,
|
9053
8862
|
LxDragAndDropListModule,
|
9054
8863
|
BasicDropdownComponent,
|
9055
|
-
ExpandedDropdownComponent,
|
9056
8864
|
CurrencyInputComponent,
|
9057
8865
|
DateInputComponent,
|
9058
8866
|
FormErrorComponent,
|
@@ -9060,7 +8868,6 @@ class LxFormsModule {
|
|
9060
8868
|
OptionGroupDropdownComponent,
|
9061
8869
|
ResponsiveInputComponent,
|
9062
8870
|
SingleSelectComponent,
|
9063
|
-
SelectListComponent,
|
9064
8871
|
SortingDropdownComponent,
|
9065
8872
|
SortingDropdownTriggerComponent,
|
9066
8873
|
InputComponent, LxDragAndDropListModule] }); }
|
@@ -9079,7 +8886,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
9079
8886
|
OverlayModule,
|
9080
8887
|
LxDragAndDropListModule,
|
9081
8888
|
BasicDropdownComponent,
|
9082
|
-
ExpandedDropdownComponent,
|
9083
8889
|
BasicDropdownItemComponent,
|
9084
8890
|
BreadcrumbComponent,
|
9085
8891
|
CurrencyInputComponent,
|
@@ -9109,7 +8915,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
9109
8915
|
SelectedOptionDirective,
|
9110
8916
|
SelectDropdownDirective,
|
9111
8917
|
SingleSelectComponent,
|
9112
|
-
SelectListComponent,
|
9113
8918
|
SwitchComponent,
|
9114
8919
|
SortingDropdownComponent,
|
9115
8920
|
SortingDropdownTriggerComponent,
|
@@ -10299,5 +10104,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.6", ngImpor
|
|
10299
10104
|
* Generated bundle index. Do not edit.
|
10300
10105
|
*/
|
10301
10106
|
|
10302
|
-
export { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, AVATAR_COLORS, AVATAR_SIZE_MAPPING, AfterViewInitDirective, AutocloseDirective, AutocloseGroupService, AutofocusDirective, AvatarComponent, AvatarGroupComponent, BACKSPACE, BadgeComponent, BannerComponent, BaseSelectDirective, BasicDropdownComponent, BasicDropdownItemComponent, BrPipe, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CORE_MODULE_EXPORTS, CURRENCY_SYMBOL_MAP, CardComponent, CdkOptionsDropdownComponent, CdkOptionsSubDropdownComponent, CollapsibleComponent, ContenteditableDirective, ContrastColorPipe, CounterComponent, CurrencyInputComponent, CurrencySymbolComponent, CustomDatePipe, DATEPICKER_CONTROL_VALUE_ACCESSOR, DATE_FN_LOCALE, DATE_FORMATS, DEFAULT_IMAGE_ID, DateFormatter, DateInputComponent, DatePickerComponent, DatepickerConfig, DatepickerUiModule, DragAndDropListComponent, DragAndDropListItemComponent, END, ENTER, ESCAPE, EllipsisComponent, EmptyStateComponent, ErrorMessageComponent,
|
10107
|
+
export { ARROW_DOWN, ARROW_LEFT, ARROW_RIGHT, ARROW_UP, AVATAR_COLORS, AVATAR_SIZE_MAPPING, AfterViewInitDirective, AutocloseDirective, AutocloseGroupService, AutofocusDirective, AvatarComponent, AvatarGroupComponent, BACKSPACE, BadgeComponent, BannerComponent, BaseSelectDirective, BasicDropdownComponent, BasicDropdownItemComponent, BrPipe, BreadcrumbComponent, ButtonComponent, ButtonGroupComponent, CORE_MODULE_EXPORTS, CURRENCY_SYMBOL_MAP, CardComponent, CdkOptionsDropdownComponent, CdkOptionsSubDropdownComponent, CollapsibleComponent, ContenteditableDirective, ContrastColorPipe, CounterComponent, CurrencyInputComponent, CurrencySymbolComponent, CustomDatePipe, DATEPICKER_CONTROL_VALUE_ACCESSOR, DATE_FN_LOCALE, DATE_FORMATS, DEFAULT_IMAGE_ID, DateFormatter, DateInputComponent, DatePickerComponent, DatepickerConfig, DatepickerUiModule, DragAndDropListComponent, DragAndDropListItemComponent, END, ENTER, ESCAPE, EllipsisComponent, EmptyStateComponent, ErrorMessageComponent, FORMS_MODULE_EXPORTS, FORM_CONTROL_ERROR_DISPLAY_STRATEGY, FORM_CONTROL_ERROR_NAMESPACE, FilterSelectionPipe, FilterTermPipe, FormErrorComponent, FormErrorDirective, FormSubmitDirective, FormatNumberPipe, GLOBAL_TRANSLATION_OPTIONS, HOME, HighlightRangePipe, HighlightTermPipe, ICON_MAP, IMAGE_READER, IconComponent, IconScaleComponent, InputComponent, KeyboardActionSourceDirective, KeyboardSelectAction, KeyboardSelectDirective, LOCALE_FN, LX_BUTTON_USE_SAP_ICONS, LX_ELLIPSIS_DEBOUNCE_ON_RESIZE, LxCoreUiModule, LxDragAndDropListModule, LxFormsModule, LxIsUuidPipe, LxLinkifyPipe, LxModalModule, LxPopoverUiModule, LxTabUiModule, LxTimeAgo, LxTranslatePipe, LxUnlinkifyPipe, MODAL_CLOSE, MODAL_MODULE_EXPORTS, MarkInvalidDirective, MarkdownPipe, MaxLengthCounterDirective, ModalCloseClickLocation, ModalComponent, ModalContentDirective, ModalFooterComponent, ModalHeaderComponent, MultiSelectComponent, NbspPipe, OptionComponent, OptionGroupComponent, OptionGroupDropdownComponent, OptionsDropdownComponent, OptionsSubDropdownComponent, PickerComponent, PickerOptionComponent, PickerTriggerDirective, PillItemComponent, PillListComponent, PopoverClickDirective, PopoverComponent, PopoverContentDirective, PopoverHoverDirective, RELEVANCE_SORTING_KEY, ResizeObserverService, ResponsiveInputComponent, SPACE, SelectDropdownDirective, SelectableItemDirective, SelectedOptionDirective, SingleSelectComponent, SkeletonComponent, SortPipe, Sorting, SortingDropdownComponent, SortingDropdownTriggerComponent, SpinnerComponent, StepperComponent, SwitchComponent, TAB, TabComponent, TabGroupComponent, TableComponent, TableHeaderComponent, TinySpinnerComponent, TokenComponent, TokenizerComponent, TokenizerOverflowPopoverComponent, TooltipComponent, TooltipDirective, TranslationAfterPipe, TranslationBeforePipe, TranslationBetweenPipe, UnescapeCurlyBracesPipe, ValidateDateInForeseeableFuture, ValidateStringNotInArray, ValidateStringNotInArrayAsync, getContrastColor, getInitialsUrl, getKeyboardNavigationEvents, getTranslationParts, highlightText, isValidHexColor, isValidX, isValidY, provideFormControlErrorDisplayStrategy, provideFormControlErrorNamespace, shorthandHexHandle, stopKeyboardEventPropagation };
|
10303
10108
|
//# sourceMappingURL=leanix-components.mjs.map
|