cilog-lib 1.13.24 → 1.13.25
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/cilog-lib.mjs +5 -18
- package/fesm2022/cilog-lib.mjs.map +1 -1
- package/package.json +1 -1
- package/types/cilog-lib.d.ts +0 -1
package/fesm2022/cilog-lib.mjs
CHANGED
|
@@ -36,12 +36,8 @@ import * as FileSaver from 'file-saver';
|
|
|
36
36
|
import { AgGridAngular } from 'ag-grid-angular';
|
|
37
37
|
import { themeQuartz, ModuleRegistry, AllCommunityModule } from 'ag-grid-community';
|
|
38
38
|
import { AG_GRID_LOCALE_FR } from '@ag-grid-community/locale';
|
|
39
|
-
import * as i2$1 from '@
|
|
40
|
-
import {
|
|
41
|
-
import * as i3$2 from '@angular/material/select';
|
|
42
|
-
import { MatSelectModule } from '@angular/material/select';
|
|
43
|
-
import * as i4$1 from '@angular/cdk/scrolling';
|
|
44
|
-
import { ScrollingModule } from '@angular/cdk/scrolling';
|
|
39
|
+
import * as i2$1 from '@ng-select/ng-select';
|
|
40
|
+
import { NgSelectModule } from '@ng-select/ng-select';
|
|
45
41
|
import * as i2$2 from 'primeng/treetable';
|
|
46
42
|
import { TreeTableModule } from 'primeng/treetable';
|
|
47
43
|
import * as i2$3 from 'primeng/editor';
|
|
@@ -1500,24 +1496,15 @@ class GridSetFilterComponent {
|
|
|
1500
1496
|
onSelectionChange() {
|
|
1501
1497
|
this.params.filterChangedCallback();
|
|
1502
1498
|
}
|
|
1503
|
-
compareFn = (item1, item2) => {
|
|
1504
|
-
if (!item1 || !item2)
|
|
1505
|
-
return item1 === item2;
|
|
1506
|
-
const key1 = item1.id !== undefined ? item1.id : item1[this.optionLabel];
|
|
1507
|
-
const key2 = item2.id !== undefined ? item2.id : item2[this.optionLabel];
|
|
1508
|
-
return key1 === key2;
|
|
1509
|
-
};
|
|
1510
1499
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GridSetFilterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1511
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: GridSetFilterComponent, isStandalone: true, selector: "cilog-grid-set-filter", ngImport: i0, template: "<
|
|
1500
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.17", type: GridSetFilterComponent, isStandalone: true, selector: "cilog-grid-set-filter", ngImport: i0, template: "<ng-select [items]=\"options\"\r\n [bindLabel]=\"optionLabel\"\r\n [multiple]=\"true\"\r\n [virtualScroll]=\"true\"\r\n [searchable]=\"true\"\r\n placeholder=\"S\u00E9lectionner...\"\r\n [(ngModel)]=\"selectedValues\"\r\n appendTo=\"body\"\r\n (change)=\"onSelectionChange()\">\r\n</ng-select>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NgSelectModule }, { kind: "component", type: i2$1.NgSelectComponent, selector: "ng-select", inputs: ["ariaLabelDropdown", "ariaLabel", "markFirst", "placeholder", "fixedPlaceholder", "notFoundText", "typeToSearchText", "preventToggleOnRightClick", "addTagText", "loadingText", "clearAllText", "dropdownPosition", "appendTo", "outsideClickEvent", "loading", "closeOnSelect", "hideSelected", "selectOnTab", "openOnEnter", "maxSelectedItems", "groupBy", "groupValue", "bufferAmount", "virtualScroll", "selectableGroup", "tabFocusOnClearButton", "selectableGroupAsModel", "searchFn", "trackByFn", "clearOnBackspace", "labelForId", "inputAttrs", "tabIndex", "readonly", "searchWhileComposing", "minTermLength", "editableSearchTerm", "ngClass", "typeahead", "multiple", "addTag", "searchable", "clearable", "clearKeepsDisabledOptions", "deselectOnClick", "clearSearchOnAdd", "compareWith", "keyDownFn", "popover", "bindLabel", "bindValue", "appearance", "isOpen", "items"], outputs: ["bindLabelChange", "bindValueChange", "appearanceChange", "isOpenChange", "itemsChange", "blur", "focus", "change", "open", "close", "search", "clear", "add", "remove", "scroll", "scrollToEnd"], exportAs: ["ngSelect"] }] });
|
|
1512
1501
|
}
|
|
1513
1502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: GridSetFilterComponent, decorators: [{
|
|
1514
1503
|
type: Component,
|
|
1515
1504
|
args: [{ selector: 'cilog-grid-set-filter', imports: [
|
|
1516
1505
|
FormsModule,
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
ScrollingModule
|
|
1520
|
-
], template: "<mat-form-field appearance=\"outline\"\r\n style=\"width: 100%; max-width: 400px;\">\r\n <mat-label>S\u00E9lectionner...</mat-label>\r\n <mat-select [(ngModel)]=\"selectedValues\"\r\n name=\"gridFilterSelect\"\r\n [compareWith]=\"compareFn\"\r\n (selectionChange)=\"onSelectionChange()\"\r\n multiple>\r\n <cdk-virtual-scroll-viewport itemSize=\"35\"\r\n class=\"select-viewport\">\r\n <mat-option *cdkVirtualFor=\"let item of options\"\r\n [value]=\"item\">\r\n {{ item[optionLabel] }}\r\n </mat-option>\r\n </cdk-virtual-scroll-viewport>\r\n </mat-select>\r\n</mat-form-field>\r\n", styles: [":host ::ng-deep .select-viewport{height:200px;width:100%}:host ::ng-deep .mat-mdc-option{min-height:32px!important;height:32px!important}:host ::ng-deep .mat-mdc-form-field-infix{padding-top:4px!important;padding-bottom:4px!important;min-height:unset!important}:host ::ng-deep .mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:50%!important}\n"] }]
|
|
1506
|
+
NgSelectModule
|
|
1507
|
+
], template: "<ng-select [items]=\"options\"\r\n [bindLabel]=\"optionLabel\"\r\n [multiple]=\"true\"\r\n [virtualScroll]=\"true\"\r\n [searchable]=\"true\"\r\n placeholder=\"S\u00E9lectionner...\"\r\n [(ngModel)]=\"selectedValues\"\r\n appendTo=\"body\"\r\n (change)=\"onSelectionChange()\">\r\n</ng-select>\r\n" }]
|
|
1521
1508
|
}] });
|
|
1522
1509
|
|
|
1523
1510
|
const myTheme = themeQuartz
|