diff --git a/dist/material-dual-listbox/README.md b/dist/material-dual-listbox/README.md
index 9656037..b96fc8a 100644
--- a/dist/material-dual-listbox/README.md
+++ b/dist/material-dual-listbox/README.md
@@ -1,9 +1,12 @@
![Build](https://github.com/rockaru/material-dual-listbox/workflows/Build/badge.svg)
+![Demo](https://github.com/rockaru/material-dual-listbox/workflows/Demo/badge.svg)
# MeaMaterialDualListbox
Simple dual list box component to use with your Angular app, along with Angular Material.
+[Demo](https://rockaru.github.io/material-dual-listbox/)
+
## Dependencies
You will need:
@@ -58,7 +61,6 @@ Once the library is imported, you can use the component in your Angular applicat
- **source** - The source array of objects
- **destination** - The destination array of objects
- **(destinationChange)** - An event triggered when the destination array changes.
-- **key** - The unique identifier field of each object in the source and destination arrays, default is `_id`.
- **display** - The field of each object in the source and destination arrays, default is `name`.
- **width** - The width of the component, default is `360px`
- **filter** - A boolean whether or not to display a filter for the lists, default is `true`.
diff --git a/dist/material-dual-listbox/__ivy_ngcc__/fesm2015/material-dual-listbox.js b/dist/material-dual-listbox/__ivy_ngcc__/fesm2015/material-dual-listbox.js
deleted file mode 100644
index d5e62f2..0000000
--- a/dist/material-dual-listbox/__ivy_ngcc__/fesm2015/material-dual-listbox.js
+++ /dev/null
@@ -1,346 +0,0 @@
-import { EventEmitter, Component, Input, Output, NgModule } from '@angular/core';
-import { moveItemInArray, transferArrayItem, DragDropModule } from '@angular/cdk/drag-drop';
-import { BrowserModule } from '@angular/platform-browser';
-import { MatInputModule } from '@angular/material/input';
-import { MatIconModule } from '@angular/material/icon';
-import { MatListModule } from '@angular/material/list';
-import { FormsModule } from '@angular/forms';
-import { MatFormFieldModule } from '@angular/material/form-field';
-
-import * as ɵngcc0 from '@angular/core';
-import * as ɵngcc1 from '@angular/common';
-import * as ɵngcc2 from '@angular/cdk/drag-drop';
-import * as ɵngcc3 from '@angular/material/form-field';
-import * as ɵngcc4 from '@angular/material/input';
-import * as ɵngcc5 from '@angular/forms';
-import * as ɵngcc6 from '@angular/material/icon';
-import * as ɵngcc7 from '@angular/material/list';
-
-function MaterialDualListboxComponent_h3_3_Template(rf, ctx) { if (rf & 1) {
- ɵngcc0.ɵɵelementStart(0, "h3", 7);
- ɵngcc0.ɵɵtext(1);
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const ctx_r0 = ɵngcc0.ɵɵnextContext();
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵtextInterpolate(ctx_r0.itemsTitle);
-} }
-function MaterialDualListboxComponent_mat_form_field_4_Template(rf, ctx) { if (rf & 1) {
- const _r7 = ɵngcc0.ɵɵgetCurrentView();
- ɵngcc0.ɵɵelementStart(0, "mat-form-field", 8);
- ɵngcc0.ɵɵelementStart(1, "mat-label");
- ɵngcc0.ɵɵtext(2);
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementStart(3, "input", 9);
- ɵngcc0.ɵɵlistener("ngModelChange", function MaterialDualListboxComponent_mat_form_field_4_Template_input_ngModelChange_3_listener($event) { ɵngcc0.ɵɵrestoreView(_r7); const ctx_r6 = ɵngcc0.ɵɵnextContext(); return ctx_r6.filterItems($event); });
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementStart(4, "mat-placeholder");
- ɵngcc0.ɵɵtext(5);
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const ctx_r1 = ɵngcc0.ɵɵnextContext();
- ɵngcc0.ɵɵadvance(2);
- ɵngcc0.ɵɵtextInterpolate2("", ctx_r1.searchPlaceholder, " ", ctx_r1.itemsTitle, "");
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngModel", ctx_r1.filterText);
- ɵngcc0.ɵɵadvance(2);
- ɵngcc0.ɵɵtextInterpolate2("", ctx_r1.searchPlaceholder, " ", ctx_r1.itemsTitle, "");
-} }
-function MaterialDualListboxComponent_div_6_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
- ɵngcc0.ɵɵelementStart(0, "mat-icon", 12);
- ɵngcc0.ɵɵtext(1);
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const ctx_r9 = ɵngcc0.ɵɵnextContext(2);
- ɵngcc0.ɵɵstyleProp("color", ctx_r9.addIconColor);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵtextInterpolate(ctx_r9.addIcon);
-} }
-function MaterialDualListboxComponent_div_6_Template(rf, ctx) { if (rf & 1) {
- const _r11 = ɵngcc0.ɵɵgetCurrentView();
- ɵngcc0.ɵɵelementStart(0, "div", 10);
- ɵngcc0.ɵɵlistener("click", function MaterialDualListboxComponent_div_6_Template_div_click_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r11); const ctx_r10 = ɵngcc0.ɵɵnextContext(); return ctx_r10.clickedItem($event.target.innerText, "confirmedFiltered", "availableFiltered"); });
- ɵngcc0.ɵɵtemplate(1, MaterialDualListboxComponent_div_6_mat_icon_1_Template, 2, 3, "mat-icon", 11);
- ɵngcc0.ɵɵtext(2);
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const item_r8 = ctx.$implicit;
- const ctx_r2 = ɵngcc0.ɵɵnextContext();
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngIf", ctx_r2.showIcons);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵtextInterpolate1(" ", item_r8[ctx_r2.display], "");
-} }
-function MaterialDualListboxComponent_h3_8_Template(rf, ctx) { if (rf & 1) {
- ɵngcc0.ɵɵelementStart(0, "h3", 7);
- ɵngcc0.ɵɵtext(1);
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const ctx_r3 = ɵngcc0.ɵɵnextContext();
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵtextInterpolate(ctx_r3.selectedItemsTitle);
-} }
-function MaterialDualListboxComponent_mat_form_field_9_Template(rf, ctx) { if (rf & 1) {
- const _r13 = ɵngcc0.ɵɵgetCurrentView();
- ɵngcc0.ɵɵelementStart(0, "mat-form-field", 8);
- ɵngcc0.ɵɵelementStart(1, "mat-label");
- ɵngcc0.ɵɵtext(2);
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementStart(3, "input", 9);
- ɵngcc0.ɵɵlistener("ngModelChange", function MaterialDualListboxComponent_mat_form_field_9_Template_input_ngModelChange_3_listener($event) { ɵngcc0.ɵɵrestoreView(_r13); const ctx_r12 = ɵngcc0.ɵɵnextContext(); return ctx_r12.filterSelectedItems($event); });
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementStart(4, "mat-placeholder");
- ɵngcc0.ɵɵtext(5);
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const ctx_r4 = ɵngcc0.ɵɵnextContext();
- ɵngcc0.ɵɵadvance(2);
- ɵngcc0.ɵɵtextInterpolate2("", ctx_r4.searchPlaceholder, " ", ctx_r4.selectedItemsTitle, "");
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngModel", ctx_r4.filterSelectedText);
- ɵngcc0.ɵɵadvance(2);
- ɵngcc0.ɵɵtextInterpolate2("", ctx_r4.searchPlaceholder, " ", ctx_r4.itemsTitle, "");
-} }
-function MaterialDualListboxComponent_div_11_mat_icon_1_Template(rf, ctx) { if (rf & 1) {
- ɵngcc0.ɵɵelementStart(0, "mat-icon", 12);
- ɵngcc0.ɵɵtext(1);
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const ctx_r15 = ɵngcc0.ɵɵnextContext(2);
- ɵngcc0.ɵɵstyleProp("color", ctx_r15.removeIconColor);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵtextInterpolate(ctx_r15.removeIcon);
-} }
-function MaterialDualListboxComponent_div_11_Template(rf, ctx) { if (rf & 1) {
- const _r17 = ɵngcc0.ɵɵgetCurrentView();
- ɵngcc0.ɵɵelementStart(0, "div", 10);
- ɵngcc0.ɵɵlistener("click", function MaterialDualListboxComponent_div_11_Template_div_click_0_listener($event) { ɵngcc0.ɵɵrestoreView(_r17); const ctx_r16 = ɵngcc0.ɵɵnextContext(); return ctx_r16.clickedItem($event.target.innerText, "availableFiltered", "confirmedFiltered"); });
- ɵngcc0.ɵɵtemplate(1, MaterialDualListboxComponent_div_11_mat_icon_1_Template, 2, 3, "mat-icon", 11);
- ɵngcc0.ɵɵtext(2);
- ɵngcc0.ɵɵelementEnd();
-} if (rf & 2) {
- const item_r14 = ctx.$implicit;
- const ctx_r5 = ɵngcc0.ɵɵnextContext();
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngIf", ctx_r5.showIcons);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵtextInterpolate1(" ", item_r14[ctx_r5.display], "");
-} }
-const _c0 = function (a1, a2) { return { "max-height": "100%", "max-width": a1, "min-width": a2 }; };
-class MaterialDualListboxComponent {
- constructor() {
- this.key = '_id';
- this.display = 'name';
- this.width = '360px';
- this.filter = true;
- this.searchPlaceholder = 'Filter';
- this.itemsTitle = 'Items';
- this.selectedItemsTitle = 'Selected Items';
- this.header = false;
- this.showIcons = true;
- this.addIcon = 'add';
- this.addIconColor = 'black';
- this.removeIcon = 'delete';
- this.removeIconColor = 'black';
- this.source = [];
- this.destination = [];
- this.destinationChange = new EventEmitter();
- this.availableFiltered = [];
- this.confirmedFiltered = [];
- this.filterText = null;
- this.filterSelectedText = null;
- }
- ngOnInit() {
- this.update();
- }
- update() {
- this.filterItems(this.filterText);
- this.filterSelectedItems(this.filterSelectedText);
- }
- drop(event) {
- if (event.previousContainer === event.container) {
- moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
- console.log(event);
- }
- else {
- transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
- this.destination = this.confirmedFiltered;
- this.destinationChange.emit(this.destination);
- }
- }
- clickedItem(item, ...targets) {
- this[targets[0]] = [
- ...this[targets[1]].splice(this[targets[1]].indexOf(item), 1),
- ...this[targets[0]]
- ];
- this.destination = this.confirmedFiltered;
- this.destinationChange.emit(this.destination);
- }
- filterItems(text) {
- this.filterText = text;
- if (!text) {
- this.availableFiltered = this.source;
- return;
- }
- this.availableFiltered = this.source
- .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));
- }
- filterSelectedItems(text) {
- this.filterSelectedText = text;
- if (!text) {
- this.confirmedFiltered = this.destination;
- return;
- }
- this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));
- }
-}
-MaterialDualListboxComponent.ɵfac = function MaterialDualListboxComponent_Factory(t) { return new (t || MaterialDualListboxComponent)(); };
-MaterialDualListboxComponent.ɵcmp = ɵngcc0.ɵɵdefineComponent({ type: MaterialDualListboxComponent, selectors: [["material-dual-listbox"]], inputs: { key: "key", display: "display", width: "width", filter: "filter", searchPlaceholder: "searchPlaceholder", itemsTitle: "itemsTitle", selectedItemsTitle: "selectedItemsTitle", header: "header", showIcons: "showIcons", addIcon: "addIcon", addIconColor: "addIconColor", removeIcon: "removeIcon", removeIconColor: "removeIconColor", source: "source", destination: "destination" }, outputs: { destinationChange: "destinationChange" }, decls: 12, vars: 12, consts: [[3, "ngStyle"], ["cdkDropListGroup", "", 1, "rck-list-container"], [1, "rck-container"], ["class", "rck-title", 4, "ngIf"], ["appearance", "standard", 4, "ngIf"], ["cdkDropList", "", 1, "rck-list", 3, "cdkDropListData", "cdkDropListDropped"], ["class", "rck-box", "cdkDrag", "", 3, "click", 4, "ngFor", "ngForOf"], [1, "rck-title"], ["appearance", "standard"], ["matInput", "", "autocomplete", "off", 3, "ngModel", "ngModelChange"], ["cdkDrag", "", 1, "rck-box", 3, "click"], ["fxHide.xs", "", "mat-list-icon", "", 3, "color", 4, "ngIf"], ["fxHide.xs", "", "mat-list-icon", ""]], template: function MaterialDualListboxComponent_Template(rf, ctx) { if (rf & 1) {
- ɵngcc0.ɵɵelementStart(0, "div", 0);
- ɵngcc0.ɵɵelementStart(1, "div", 1);
- ɵngcc0.ɵɵelementStart(2, "div", 2);
- ɵngcc0.ɵɵtemplate(3, MaterialDualListboxComponent_h3_3_Template, 2, 1, "h3", 3);
- ɵngcc0.ɵɵtemplate(4, MaterialDualListboxComponent_mat_form_field_4_Template, 6, 5, "mat-form-field", 4);
- ɵngcc0.ɵɵelementStart(5, "div", 5);
- ɵngcc0.ɵɵlistener("cdkDropListDropped", function MaterialDualListboxComponent_Template_div_cdkDropListDropped_5_listener($event) { return ctx.drop($event); });
- ɵngcc0.ɵɵtemplate(6, MaterialDualListboxComponent_div_6_Template, 3, 2, "div", 6);
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementStart(7, "div", 2);
- ɵngcc0.ɵɵtemplate(8, MaterialDualListboxComponent_h3_8_Template, 2, 1, "h3", 3);
- ɵngcc0.ɵɵtemplate(9, MaterialDualListboxComponent_mat_form_field_9_Template, 6, 5, "mat-form-field", 4);
- ɵngcc0.ɵɵelementStart(10, "div", 5);
- ɵngcc0.ɵɵlistener("cdkDropListDropped", function MaterialDualListboxComponent_Template_div_cdkDropListDropped_10_listener($event) { return ctx.drop($event); });
- ɵngcc0.ɵɵtemplate(11, MaterialDualListboxComponent_div_11_Template, 3, 2, "div", 6);
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementEnd();
- ɵngcc0.ɵɵelementEnd();
- } if (rf & 2) {
- ɵngcc0.ɵɵproperty("ngStyle", ɵngcc0.ɵɵpureFunction2(9, _c0, ctx.width, ctx.width));
- ɵngcc0.ɵɵadvance(3);
- ɵngcc0.ɵɵproperty("ngIf", ctx.header);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngIf", ctx.filter);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("cdkDropListData", ctx.availableFiltered);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngForOf", ctx.availableFiltered);
- ɵngcc0.ɵɵadvance(2);
- ɵngcc0.ɵɵproperty("ngIf", ctx.header);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngIf", ctx.filter);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("cdkDropListData", ctx.confirmedFiltered);
- ɵngcc0.ɵɵadvance(1);
- ɵngcc0.ɵɵproperty("ngForOf", ctx.confirmedFiltered);
- } }, directives: [ɵngcc1.NgStyle, ɵngcc2.CdkDropListGroup, ɵngcc1.NgIf, ɵngcc2.CdkDropList, ɵngcc1.NgForOf, ɵngcc3.MatFormField, ɵngcc3.MatLabel, ɵngcc4.MatInput, ɵngcc5.DefaultValueAccessor, ɵngcc5.NgControlStatus, ɵngcc5.NgModel, ɵngcc3.MatPlaceholder, ɵngcc2.CdkDrag, ɵngcc6.MatIcon, ɵngcc7.MatListIconCssMatStyler], styles: ["./material-dual-listbox.component.scss", ".rck-title[_ngcontent-%COMP%]{\n margin-bottom: 0px;\n }\n .rck-list-container[_ngcontent-%COMP%]{\n display: flex;\n flex-wrap: nowrap;\n }\n .rck-container[_ngcontent-%COMP%] {\n width: 180px;\n max-width: 100%;\n margin: 5px 5px 5px 5px;\n display: inline-block;\n vertical-align: top;\n }\n\n .rck-container[_ngcontent-%COMP%]:last-child{\n margin-right: 25px;\n }\n\n .rck-list[_ngcontent-%COMP%] {\n border: solid 1px #ccc;\n min-height: 60px;\n background: white;\n border-radius: 4px;\n overflow: hidden;\n display: block;\n }\n\n .rck-box[_ngcontent-%COMP%] {\n padding: 20px 20px;\n border-bottom: solid 1px #ccc;\n color: rgba(0, 0, 0, 0.87);\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n box-sizing: border-box;\n cursor: move;\n background: white;\n font-size: 14px;\n }\n\n .cdk-drag-preview[_ngcontent-%COMP%] {\n box-sizing: border-box;\n border-radius: 4px;\n box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),\n 0 8px 10px 1px rgba(0, 0, 0, 0.14),\n 0 3px 14px 2px rgba(0, 0, 0, 0.12);\n }\n\n .cdk-drag-placeholder[_ngcontent-%COMP%] {\n opacity: 0;\n }\n\n .cdk-drag-animating[_ngcontent-%COMP%] {\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n }\n\n .rck-box[_ngcontent-%COMP%]:last-child {\n border: none;\n }\n\n .rck-list.cdk-drop-list-dragging[_ngcontent-%COMP%] .rck-box[_ngcontent-%COMP%]:not(.cdk-drag-placeholder) {\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\n }"] });
-MaterialDualListboxComponent.ctorParameters = () => [];
-MaterialDualListboxComponent.propDecorators = {
- key: [{ type: Input }],
- display: [{ type: Input }],
- width: [{ type: Input }],
- filter: [{ type: Input }],
- searchPlaceholder: [{ type: Input }],
- itemsTitle: [{ type: Input }],
- selectedItemsTitle: [{ type: Input }],
- header: [{ type: Input }],
- showIcons: [{ type: Input }],
- addIcon: [{ type: Input }],
- addIconColor: [{ type: Input }],
- removeIcon: [{ type: Input }],
- removeIconColor: [{ type: Input }],
- source: [{ type: Input }],
- destination: [{ type: Input }],
- destinationChange: [{ type: Output }]
-};
-/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(MaterialDualListboxComponent, [{
- type: Component,
- args: [{
- selector: 'material-dual-listbox',
- template: "\r\n\r\n\r\n
\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
",
- styles: ['./material-dual-listbox.component.scss']
- }]
- }], function () { return []; }, { key: [{
- type: Input
- }], display: [{
- type: Input
- }], width: [{
- type: Input
- }], filter: [{
- type: Input
- }], searchPlaceholder: [{
- type: Input
- }], itemsTitle: [{
- type: Input
- }], selectedItemsTitle: [{
- type: Input
- }], header: [{
- type: Input
- }], showIcons: [{
- type: Input
- }], addIcon: [{
- type: Input
- }], addIconColor: [{
- type: Input
- }], removeIcon: [{
- type: Input
- }], removeIconColor: [{
- type: Input
- }], source: [{
- type: Input
- }], destination: [{
- type: Input
- }], destinationChange: [{
- type: Output
- }] }); })();
-
-class MaterialDualListboxModule {
-}
-MaterialDualListboxModule.ɵmod = ɵngcc0.ɵɵdefineNgModule({ type: MaterialDualListboxModule });
-MaterialDualListboxModule.ɵinj = ɵngcc0.ɵɵdefineInjector({ factory: function MaterialDualListboxModule_Factory(t) { return new (t || MaterialDualListboxModule)(); }, imports: [[
- BrowserModule,
- MatIconModule,
- MatInputModule,
- MatListModule,
- FormsModule,
- MatFormFieldModule,
- DragDropModule
- ]] });
-(function () { (typeof ngJitMode === "undefined" || ngJitMode) && ɵngcc0.ɵɵsetNgModuleScope(MaterialDualListboxModule, { declarations: function () { return [MaterialDualListboxComponent]; }, imports: function () { return [BrowserModule,
- MatIconModule,
- MatInputModule,
- MatListModule,
- FormsModule,
- MatFormFieldModule,
- DragDropModule]; }, exports: function () { return [MaterialDualListboxComponent]; } }); })();
-/*@__PURE__*/ (function () { ɵngcc0.ɵsetClassMetadata(MaterialDualListboxModule, [{
- type: NgModule,
- args: [{
- declarations: [MaterialDualListboxComponent],
- imports: [
- BrowserModule,
- MatIconModule,
- MatInputModule,
- MatListModule,
- FormsModule,
- MatFormFieldModule,
- DragDropModule
- ],
- exports: [MaterialDualListboxComponent]
- }]
- }], null, null); })();
-
-/*
- * Public API Surface of material-dual-listbox
- */
-
-/**
- * Generated bundle index. Do not edit.
- */
-
-export { MaterialDualListboxComponent, MaterialDualListboxModule };
-
-//# sourceMappingURL=material-dual-listbox.js.map
\ No newline at end of file
diff --git a/dist/material-dual-listbox/__ivy_ngcc__/fesm2015/material-dual-listbox.js.map b/dist/material-dual-listbox/__ivy_ngcc__/fesm2015/material-dual-listbox.js.map
deleted file mode 100644
index a443416..0000000
--- a/dist/material-dual-listbox/__ivy_ngcc__/fesm2015/material-dual-listbox.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"material-dual-listbox.js","sources":["../../../projects/material-dual-listbox/src/lib/material-dual-listbox.component.ts","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.module.ts","../../../projects/material-dual-listbox/src/public-api.ts","../../../projects/material-dual-listbox/src/material-dual-listbox.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUa,4BAA4B;AAAG,IAwB1C;AAAgB,QAtBP,QAAG,GAAG,KAAK,CAAC;AACvB,QAAW,YAAO,GAAQ,MAAM,CAAC;AACjC,QAAW,UAAK,GAAG,OAAO,CAAC;AAC3B,QAAW,WAAM,GAAG,IAAI,CAAC;AACzB,QAAW,sBAAiB,GAAW,QAAQ,CAAA;AAC/C,QAAW,eAAU,GAAW,OAAO,CAAA;AACvC,QAAW,uBAAkB,GAAW,gBAAgB,CAAA;AACxD,QAAW,WAAM,GAAG,KAAK,CAAA;AACzB,QAAW,cAAS,GAAG,IAAI,CAAA;AAC3B,QAAW,YAAO,GAAW,KAAK,CAAC;AACnC,QAAW,iBAAY,GAAW,OAAO,CAAA;AACzC,QAAW,eAAU,GAAW,QAAQ,CAAC;AACzC,QAAW,oBAAe,GAAW,OAAO,CAAA;AAC5C,QAAW,WAAM,GAAe,EAAE,CAAC;AACnC,QAAW,gBAAW,GAAe,EAAE,CAAC;AACxC,QAAY,sBAAiB,GAAG,IAAI,YAAY,EAAE,CAAC;AACnD,QAC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AAqD,2BAC5C,wCAAwC,eAClD,07CACI;AAAC;AACN;AAEuB,kBADpB,KAAK;AAAK,sBACV,KAAK;AAAK,oBACV,KAAK;AAAK,qBACV,KAAK;AAAK,gCACV,KAAK;AAAK,yBACV,KAAK;AAAK,iCACV,KAAK;AAAK,qBACV,KAAK;AAAK,wBACV,KAAK;AAAK,sBACV,KAAK;AAAK,2BACV,KAAK;AAAK,yBACV,KAAK;AAAK,8BACV,KAAK;AAAK,qBACV,KAAK;AAAK,0BACV,KAAK;AAAK,gCACV,MAAM;AAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAE;AAAC;AAAC,MCLJ,yBAAyB;AAAG;qDAbxC,QAAQ,SAAC,kBACR;KAAY,EAAE,CAAC,4BAA4B,CAAC,kBAC5C,OAAO,EAAE,sBACP,aAAa,sBACb,aAAa,sBACb,cAAc;cACd;AAAa,sBACb;MAAW;AACX,kBAAkB;aAClB;EAAc,kBACf;MACD,OAAO,EAAE,CAAC;;EAA4B,CAAC,cACxC;;;;;;;;;;;;;;;;;;;;;;0BACI;AAAC;ACtBN;AACA;AACA;AACA;ACHA;AACA;AACA;AACA;AACA;AACsC","sourcesContent":["import { Component, Input, EventEmitter, IterableDiffers, Output, OnInit, OnChanges, ɵConsole } from '@angular/core';\r\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'material-dual-listbox',\r\n templateUrl: './material-dual-listbox.component.html',\r\n styles: ['./material-dual-listbox.component.scss']\r\n})\r\nexport class MaterialDualListboxComponent implements OnInit {\r\n\r\n @Input() key = '_id';\r\n @Input() display: any = 'name';\r\n @Input() width = '360px';\r\n @Input() filter = true;\r\n @Input() searchPlaceholder: string = 'Filter'\r\n @Input() itemsTitle: string = 'Items'\r\n @Input() selectedItemsTitle: string = 'Selected Items'\r\n @Input() header = false\r\n @Input() showIcons = true\r\n @Input() addIcon: string = 'add';\r\n @Input() addIconColor: string = 'black'\r\n @Input() removeIcon: string = 'delete';\r\n @Input() removeIconColor: string = 'black'\r\n @Input() source: Array = [];\r\n @Input() destination: Array = [];\r\n @Output() destinationChange = new EventEmitter();\r\n\r\n availableFiltered: Array = []\r\n confirmedFiltered: Array = []\r\n filterText: string = null\r\n filterSelectedText: string = null\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.update()\r\n }\r\n\r\n update() {\r\n this.filterItems(this.filterText);\r\n this.filterSelectedItems(this.filterSelectedText);\r\n }\r\n\r\n drop(event: CdkDragDrop) {\r\n if (event.previousContainer === event.container) {\r\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\r\n console.log(event)\r\n } else {\r\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n }\r\n\r\n clickedItem(item, ...targets: string[]) {\r\n this[targets[0]] = [\r\n ...this[targets[1]].splice(this[targets[1]].indexOf(item), 1),\r\n ...this[targets[0]]\r\n ]\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n\r\n filterItems(text: string) {\r\n this.filterText = text;\r\n if (!text) {\r\n this.availableFiltered = this.source;\r\n return;\r\n }\r\n this.availableFiltered = this.source\r\n .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n filterSelectedItems(text: string) {\r\n this.filterSelectedText = text;\r\n if (!text) {\r\n this.confirmedFiltered = this.destination\r\n\r\n return;\r\n }\r\n this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { MaterialDualListboxComponent } from './material-dual-listbox.component';\r\nimport { MatInputModule } from '@angular/material/input'\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field'\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n@NgModule({\r\n declarations: [MaterialDualListboxComponent],\r\n imports: [\r\n BrowserModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n DragDropModule\r\n ],\r\n exports: [MaterialDualListboxComponent]\r\n})\r\nexport class MaterialDualListboxModule { }\r\n","/*\r\n * Public API Surface of material-dual-listbox\r\n */\r\n\r\nexport * from './lib/material-dual-listbox.component';\r\nexport * from './lib/material-dual-listbox.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"]}
\ No newline at end of file
diff --git a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js
index 18796f7..fe7422b 100644
--- a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js
+++ b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js
@@ -307,7 +307,6 @@
var MaterialDualListboxComponent = /** @class */ (function () {
function MaterialDualListboxComponent() {
- this.key = '_id';
this.display = 'name';
this.width = '360px';
this.filter = true;
@@ -347,11 +346,12 @@
}
};
MaterialDualListboxComponent.prototype.clickedItem = function (item) {
+ var _this = this;
var targets = [];
for (var _i = 1; _i < arguments.length; _i++) {
targets[_i - 1] = arguments[_i];
}
- this[targets[0]] = __spread(this[targets[1]].splice(this[targets[1]].indexOf(item), 1), this[targets[0]]);
+ this[targets[0]] = __spread(this[targets[1]].splice(this[targets[1]].findIndex(function (x) { return x[_this.display] == item; }), 1), this[targets[0]]);
this.destination = this.confirmedFiltered;
this.destinationChange.emit(this.destination);
};
@@ -379,13 +379,12 @@
MaterialDualListboxComponent.decorators = [
{ type: core.Component, args: [{
selector: 'material-dual-listbox',
- template: "\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
",
+ template: "\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
",
styles: ['./material-dual-listbox.component.scss']
},] }
];
MaterialDualListboxComponent.ctorParameters = function () { return []; };
MaterialDualListboxComponent.propDecorators = {
- key: [{ type: core.Input }],
display: [{ type: core.Input }],
width: [{ type: core.Input }],
filter: [{ type: core.Input }],
diff --git a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js.map b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js.map
index 79e8ce8..2976a8f 100644
--- a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js.map
+++ b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.js.map
@@ -1 +1 @@
-{"version":3,"file":"material-dual-listbox.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.component.ts","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.module.ts","../../../projects/material-dual-listbox/src/public-api.ts","../../../projects/material-dual-listbox/src/material-dual-listbox.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, EventEmitter, IterableDiffers, Output, OnInit, OnChanges, ɵConsole } from '@angular/core';\r\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'material-dual-listbox',\r\n templateUrl: './material-dual-listbox.component.html',\r\n styles: ['./material-dual-listbox.component.scss']\r\n})\r\nexport class MaterialDualListboxComponent implements OnInit {\r\n\r\n @Input() key = '_id';\r\n @Input() display: any = 'name';\r\n @Input() width = '360px';\r\n @Input() filter = true;\r\n @Input() searchPlaceholder: string = 'Filter'\r\n @Input() itemsTitle: string = 'Items'\r\n @Input() selectedItemsTitle: string = 'Selected Items'\r\n @Input() header = false\r\n @Input() showIcons = true\r\n @Input() addIcon: string = 'add';\r\n @Input() addIconColor: string = 'black'\r\n @Input() removeIcon: string = 'delete';\r\n @Input() removeIconColor: string = 'black'\r\n @Input() source: Array = [];\r\n @Input() destination: Array = [];\r\n @Output() destinationChange = new EventEmitter();\r\n\r\n availableFiltered: Array = []\r\n confirmedFiltered: Array = []\r\n filterText: string = null\r\n filterSelectedText: string = null\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.update()\r\n }\r\n\r\n update() {\r\n this.filterItems(this.filterText);\r\n this.filterSelectedItems(this.filterSelectedText);\r\n }\r\n\r\n drop(event: CdkDragDrop) {\r\n if (event.previousContainer === event.container) {\r\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\r\n console.log(event)\r\n } else {\r\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n }\r\n\r\n clickedItem(item, ...targets: string[]) {\r\n this[targets[0]] = [\r\n ...this[targets[1]].splice(this[targets[1]].indexOf(item), 1),\r\n ...this[targets[0]]\r\n ]\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n\r\n filterItems(text: string) {\r\n this.filterText = text;\r\n if (!text) {\r\n this.availableFiltered = this.source;\r\n return;\r\n }\r\n this.availableFiltered = this.source\r\n .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n filterSelectedItems(text: string) {\r\n this.filterSelectedText = text;\r\n if (!text) {\r\n this.confirmedFiltered = this.destination\r\n\r\n return;\r\n }\r\n this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { MaterialDualListboxComponent } from './material-dual-listbox.component';\r\nimport { MatInputModule } from '@angular/material/input'\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field'\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n@NgModule({\r\n declarations: [MaterialDualListboxComponent],\r\n imports: [\r\n BrowserModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n DragDropModule\r\n ],\r\n exports: [MaterialDualListboxComponent]\r\n})\r\nexport class MaterialDualListboxModule { }\r\n","/*\r\n * Public API Surface of material-dual-listbox\r\n */\r\n\r\nexport * from './lib/material-dual-listbox.component';\r\nexport * from './lib/material-dual-listbox.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","moveItemInArray","transferArrayItem","Component","Input","Output","NgModule","BrowserModule","MatIconModule","MatInputModule","MatListModule","FormsModule","MatFormFieldModule","DragDropModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,a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A;gBAEzC,OAAO;aACR;YACD,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,UAAA,IAAI,IAAI,OAAA,IAAI,CAAC,KAAI,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAA,CAAC,CAAC;SACzH;;;;gBA9EFC,cAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,u9HAAqD;6BAC5C,wCAAwC;iBAClD;;;;sBAGEC,UAAK;0BACLA,UAAK;wBACLA,UAAK;yBACLA,UAAK;oCACLA,UAAK;6BACLA,UAAK;qCACLA,UAAK;yBACLA,UAAK;4BACLA,UAAK;0BACLA,UAAK;+BACLA,UAAK;6BACLA,UAAK;kCACLA,UAAK;yBACLA,UAAK;8BACLA,UAAK;oCACLC,WAAM;;;;QCLT;;;;;gBAbCC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,4BAA4B,CAAC;oBAC5C,OAAO,EAAE;wBACPC,6BAAa;wBACbC,kBAAa;wBACbC,oBAAc;wBACdC,kBAAa;wBACbC,iBAAW;wBACXC,4BAAkB;wBAClBC,uBAAc;qBACf;oBACD,OAAO,EAAE,CAAC,4BAA4B,CAAC;iBACxC;;;ICrBD;;;;ICAA;;;;;;;;;;;;;;;"}
\ No newline at end of file
+{"version":3,"file":"material-dual-listbox.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.component.ts","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.module.ts","../../../projects/material-dual-listbox/src/public-api.ts","../../../projects/material-dual-listbox/src/material-dual-listbox.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, EventEmitter, IterableDiffers, Output, OnInit, OnChanges, ɵConsole } from '@angular/core';\r\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'material-dual-listbox',\r\n templateUrl: './material-dual-listbox.component.html',\r\n styles: ['./material-dual-listbox.component.scss']\r\n})\r\nexport class MaterialDualListboxComponent implements OnInit {\r\n\r\n @Input() display: any = 'name';\r\n @Input() width = '360px';\r\n @Input() filter = true;\r\n @Input() searchPlaceholder: string = 'Filter'\r\n @Input() itemsTitle: string = 'Items'\r\n @Input() selectedItemsTitle: string = 'Selected Items'\r\n @Input() header = false\r\n @Input() showIcons = true\r\n @Input() addIcon: string = 'add';\r\n @Input() addIconColor: string = 'black'\r\n @Input() removeIcon: string = 'delete';\r\n @Input() removeIconColor: string = 'black'\r\n @Input() source: Array = [];\r\n @Input() destination: Array = [];\r\n @Output() destinationChange = new EventEmitter();\r\n\r\n availableFiltered: Array = []\r\n confirmedFiltered: Array = []\r\n filterText: string = null\r\n filterSelectedText: string = null\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.update()\r\n }\r\n\r\n update() {\r\n this.filterItems(this.filterText);\r\n this.filterSelectedItems(this.filterSelectedText);\r\n }\r\n\r\n drop(event: CdkDragDrop) {\r\n if (event.previousContainer === event.container) {\r\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\r\n console.log(event)\r\n } else {\r\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n }\r\n\r\n clickedItem(item: string[], ...targets: string[]) {\r\n \r\n this[targets[0]] = [\r\n ...this[targets[1]].splice(this[targets[1]].findIndex(x=>x[this.display]==item), 1),\r\n ...this[targets[0]]\r\n ]\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n\r\n filterItems(text: string) {\r\n this.filterText = text;\r\n if (!text) {\r\n this.availableFiltered = this.source;\r\n return;\r\n }\r\n this.availableFiltered = this.source\r\n .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n filterSelectedItems(text: string) {\r\n this.filterSelectedText = text;\r\n if (!text) {\r\n this.confirmedFiltered = this.destination\r\n\r\n return;\r\n }\r\n this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { MaterialDualListboxComponent } from './material-dual-listbox.component';\r\nimport { MatInputModule } from '@angular/material/input'\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field'\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n@NgModule({\r\n declarations: [MaterialDualListboxComponent],\r\n imports: [\r\n BrowserModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n DragDropModule\r\n ],\r\n exports: [MaterialDualListboxComponent]\r\n})\r\nexport class MaterialDualListboxModule { }\r\n","/*\r\n * Public API Surface of material-dual-listbox\r\n */\r\n\r\nexport * from './lib/material-dual-listbox.component';\r\nexport * from './lib/material-dual-listbox.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["EventEmitter","moveItemInArray","transferArrayItem","Component","Input","Output","NgModule","BrowserModule","MatIconModule","MatInputModule","MatListModule","FormsModule","MatFormFieldModule","DragDropModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAAG,UAAS,CAAC,EAAE,CAAC;QAC7B,aAAa,GAAG,MAAM,CAAC,cAAc;aAChC,EAAE,SAAS,EAAE,EAAE,EAAE,YAAY,KAAK,IAAI,UAAU,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,SAAS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AI,CAAC,KAAI,CAAC,OAAO,CAAC,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,GAAA,CAAC,CAAC;SACzH;;;;gBA9EFC,cAAS,SAAC;oBACT,QAAQ,EAAE,uBAAuB;oBACjC,m8HAAqD;6BAC5C,wCAAwC;iBAClD;;;;0BAGEC,UAAK;wBACLA,UAAK;yBACLA,UAAK;oCACLA,UAAK;6BACLA,UAAK;qCACLA,UAAK;yBACLA,UAAK;4BACLA,UAAK;0BACLA,UAAK;+BACLA,UAAK;6BACLA,UAAK;kCACLA,UAAK;yBACLA,UAAK;8BACLA,UAAK;oCACLC,WAAM;;;;QCJT;;;;;gBAbCC,aAAQ,SAAC;oBACR,YAAY,EAAE,CAAC,4BAA4B,CAAC;oBAC5C,OAAO,EAAE;wBACPC,6BAAa;wBACbC,kBAAa;wBACbC,oBAAc;wBACdC,kBAAa;wBACbC,iBAAW;wBACXC,4BAAkB;wBAClBC,uBAAc;qBACf;oBACD,OAAO,EAAE,CAAC,4BAA4B,CAAC;iBACxC;;;ICrBD;;;;ICAA;;;;;;;;;;;;;;;"}
\ No newline at end of file
diff --git a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js
index 35d6a73..8bee9ba 100644
--- a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js
+++ b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js
@@ -12,5 +12,5 @@
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
PERFORMANCE OF THIS SOFTWARE.
- ***************************************************************************** */Object.create;function s(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,a=t.call(e),o=[];try{for(;(void 0===r||r-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}function c(){for(var e=[],r=0;r\r\n .rck-title{\r\n margin-bottom: 0px;\r\n }\r\n .rck-list-container{\r\n display: flex;\r\n flex-wrap: nowrap;\r\n }\r\n .rck-container {\r\n width: 180px;\r\n max-width: 100%;\r\n margin: 5px 5px 5px 5px;\r\n display: inline-block;\r\n vertical-align: top;\r\n }\r\n\r\n .rck-container:last-child{\r\n margin-right: 25px;\r\n }\r\n\r\n .rck-list {\r\n border: solid 1px #ccc;\r\n min-height: 60px;\r\n background: white;\r\n border-radius: 4px;\r\n overflow: hidden;\r\n display: block;\r\n }\r\n\r\n .rck-box {\r\n padding: 20px 20px;\r\n border-bottom: solid 1px #ccc;\r\n color: rgba(0, 0, 0, 0.87);\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n box-sizing: border-box;\r\n cursor: move;\r\n background: white;\r\n font-size: 14px;\r\n }\r\n\r\n .cdk-drag-preview {\r\n box-sizing: border-box;\r\n border-radius: 4px;\r\n box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),\r\n 0 8px 10px 1px rgba(0, 0, 0, 0.14),\r\n 0 3px 14px 2px rgba(0, 0, 0, 0.12);\r\n }\r\n\r\n .cdk-drag-placeholder {\r\n opacity: 0;\r\n }\r\n\r\n .cdk-drag-animating {\r\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\r\n }\r\n\r\n .rck-box:last-child {\r\n border: none;\r\n }\r\n\r\n .rck-list.cdk-drop-list-dragging .rck-box:not(.cdk-drag-placeholder) {\r\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
',styles:["./material-dual-listbox.component.scss"]}]}],p.ctorParameters=function(){return[]},p.propDecorators={key:[{type:r.Input}],display:[{type:r.Input}],width:[{type:r.Input}],filter:[{type:r.Input}],searchPlaceholder:[{type:r.Input}],itemsTitle:[{type:r.Input}],selectedItemsTitle:[{type:r.Input}],header:[{type:r.Input}],showIcons:[{type:r.Input}],addIcon:[{type:r.Input}],addIconColor:[{type:r.Input}],removeIcon:[{type:r.Input}],removeIconColor:[{type:r.Input}],source:[{type:r.Input}],destination:[{type:r.Input}],destinationChange:[{type:r.Output}]};var m=function(){};m.decorators=[{type:r.NgModule,args:[{declarations:[p],imports:[n.BrowserModule,a.MatIconModule,i.MatInputModule,o.MatListModule,l.FormsModule,d.MatFormFieldModule,t.DragDropModule],exports:[p]}]}],e.MaterialDualListboxComponent=p,e.MaterialDualListboxModule=m,Object.defineProperty(e,"__esModule",{value:!0})}));
+ ***************************************************************************** */Object.create;function s(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,a=t.call(e),o=[];try{for(;(void 0===r||r-- >0)&&!(n=a.next()).done;)o.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=a.return)&&t.call(a)}finally{if(i)throw i.error}}return o}function c(){for(var e=[],r=0;r\r\n .rck-title{\r\n margin-bottom: 0px;\r\n }\r\n .rck-list-container{\r\n display: flex;\r\n flex-wrap: nowrap;\r\n }\r\n .rck-container {\r\n width: 180px;\r\n max-width: 100%;\r\n margin: 5px 5px 5px 5px;\r\n display: inline-block;\r\n vertical-align: top;\r\n }\r\n\r\n .rck-container:last-child{\r\n margin-right: 25px;\r\n }\r\n\r\n .rck-list {\r\n border: solid 1px #ccc;\r\n min-height: 60px;\r\n background: white;\r\n border-radius: 4px;\r\n overflow: hidden;\r\n display: block;\r\n }\r\n\r\n .rck-box {\r\n padding: 20px 20px;\r\n border-bottom: solid 1px #ccc;\r\n color: rgba(0, 0, 0, 0.87);\r\n display: flex;\r\n flex-direction: row;\r\n align-items: center;\r\n justify-content: space-between;\r\n box-sizing: border-box;\r\n cursor: move;\r\n background: white;\r\n font-size: 14px;\r\n }\r\n\r\n .cdk-drag-preview {\r\n box-sizing: border-box;\r\n border-radius: 4px;\r\n box-shadow: 0 5px 5px -3px rgba(0, 0, 0, 0.2),\r\n 0 8px 10px 1px rgba(0, 0, 0, 0.14),\r\n 0 3px 14px 2px rgba(0, 0, 0, 0.12);\r\n }\r\n\r\n .cdk-drag-placeholder {\r\n opacity: 0;\r\n }\r\n\r\n .cdk-drag-animating {\r\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\r\n }\r\n\r\n .rck-box:last-child {\r\n border: none;\r\n }\r\n\r\n .rck-list.cdk-drop-list-dragging .rck-box:not(.cdk-drag-placeholder) {\r\n transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);\r\n }\r\n\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
',styles:["./material-dual-listbox.component.scss"]}]}],p.ctorParameters=function(){return[]},p.propDecorators={display:[{type:r.Input}],width:[{type:r.Input}],filter:[{type:r.Input}],searchPlaceholder:[{type:r.Input}],itemsTitle:[{type:r.Input}],selectedItemsTitle:[{type:r.Input}],header:[{type:r.Input}],showIcons:[{type:r.Input}],addIcon:[{type:r.Input}],addIconColor:[{type:r.Input}],removeIcon:[{type:r.Input}],removeIconColor:[{type:r.Input}],source:[{type:r.Input}],destination:[{type:r.Input}],destinationChange:[{type:r.Output}]};var m=function(){};m.decorators=[{type:r.NgModule,args:[{declarations:[p],imports:[n.BrowserModule,a.MatIconModule,i.MatInputModule,o.MatListModule,l.FormsModule,d.MatFormFieldModule,t.DragDropModule],exports:[p]}]}],e.MaterialDualListboxComponent=p,e.MaterialDualListboxModule=m,Object.defineProperty(e,"__esModule",{value:!0})}));
//# sourceMappingURL=material-dual-listbox.umd.min.js.map
\ No newline at end of file
diff --git a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js.map b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js.map
index 694a850..96eff17 100644
--- a/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js.map
+++ b/dist/material-dual-listbox/bundles/material-dual-listbox.umd.min.js.map
@@ -1 +1 @@
-{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.component.ts","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.module.ts"],"names":["Object","create","__read","o","n","m","Symbol","iterator","r","e","i","call","ar","next","done","push","value","error","__spread","arguments","length","concat","MaterialDualListboxComponent","this","key","display","width","filter","searchPlaceholder","itemsTitle","selectedItemsTitle","header","showIcons","addIcon","addIconColor","removeIcon","removeIconColor","source","destination","destinationChange","EventEmitter","availableFiltered","confirmedFiltered","filterText","filterSelectedText","prototype","ngOnInit","update","filterItems","filterSelectedItems","drop","event","previousContainer","container","moveItemInArray","data","previousIndex","currentIndex","console","log","transferArrayItem","emit","clickedItem","item","targets","_i","splice","indexOf","text","_this","toLowerCase","includes","Component","args","selector","template","Input","Output","NgModule","declarations","imports","BrowserModule","MatIconModule","MatInputModule","MatListModule","FormsModule","MatFormFieldModule","DragDropModule","exports"],"mappings":";;;;;;;;;;;;;;oF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A,EAAAA,iCACAA,EAAAA,0BACAA,EAAAA,kCACAA,EAAAA,sBACAA,EAAAA,yBACAA,EAAAA,uBACAA,EAAAA,4BACAA,EAAAA,0BACAA,EAAAA,+BACAA,EAAAA,sBACAA,EAAAA,2BACAA,EAAAA,iCACAC,EAAAA,gBCLH,iCAbCC,EAAAA,SAAQL,KAAA,CAAC,CACRM,aAAc,CAACzD,GACf0D,QAAS,CACPC,EAAAA,cACAC,EAAAA,cACAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,YACAC,EAAAA,mBACAC,EAAAA,gBAEFC,QAAS,CAAClE","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, EventEmitter, IterableDiffers, Output, OnInit, OnChanges, ɵConsole } from '@angular/core';\r\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'material-dual-listbox',\r\n templateUrl: './material-dual-listbox.component.html',\r\n styles: ['./material-dual-listbox.component.scss']\r\n})\r\nexport class MaterialDualListboxComponent implements OnInit {\r\n\r\n @Input() key = '_id';\r\n @Input() display: any = 'name';\r\n @Input() width = '360px';\r\n @Input() filter = true;\r\n @Input() searchPlaceholder: string = 'Filter'\r\n @Input() itemsTitle: string = 'Items'\r\n @Input() selectedItemsTitle: string = 'Selected Items'\r\n @Input() header = false\r\n @Input() showIcons = true\r\n @Input() addIcon: string = 'add';\r\n @Input() addIconColor: string = 'black'\r\n @Input() removeIcon: string = 'delete';\r\n @Input() removeIconColor: string = 'black'\r\n @Input() source: Array = [];\r\n @Input() destination: Array = [];\r\n @Output() destinationChange = new EventEmitter();\r\n\r\n availableFiltered: Array = []\r\n confirmedFiltered: Array = []\r\n filterText: string = null\r\n filterSelectedText: string = null\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.update()\r\n }\r\n\r\n update() {\r\n this.filterItems(this.filterText);\r\n this.filterSelectedItems(this.filterSelectedText);\r\n }\r\n\r\n drop(event: CdkDragDrop) {\r\n if (event.previousContainer === event.container) {\r\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\r\n console.log(event)\r\n } else {\r\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n }\r\n\r\n clickedItem(item, ...targets: string[]) {\r\n this[targets[0]] = [\r\n ...this[targets[1]].splice(this[targets[1]].indexOf(item), 1),\r\n ...this[targets[0]]\r\n ]\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n\r\n filterItems(text: string) {\r\n this.filterText = text;\r\n if (!text) {\r\n this.availableFiltered = this.source;\r\n return;\r\n }\r\n this.availableFiltered = this.source\r\n .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n filterSelectedItems(text: string) {\r\n this.filterSelectedText = text;\r\n if (!text) {\r\n this.confirmedFiltered = this.destination\r\n\r\n return;\r\n }\r\n this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { MaterialDualListboxComponent } from './material-dual-listbox.component';\r\nimport { MatInputModule } from '@angular/material/input'\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field'\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n@NgModule({\r\n declarations: [MaterialDualListboxComponent],\r\n imports: [\r\n BrowserModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n DragDropModule\r\n ],\r\n exports: [MaterialDualListboxComponent]\r\n})\r\nexport class MaterialDualListboxModule { }\r\n"]}
\ No newline at end of file
+{"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.component.ts","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.module.ts"],"names":["Object","create","__read","o","n","m","Symbol","iterator","r","e","i","call","ar","next","done","push","value","error","__spread","arguments","length","concat","MaterialDualListboxComponent","this","display","width","filter","searchPlaceholder","itemsTitle","selectedItemsTitle","header","showIcons","addIcon","addIconColor","removeIcon","removeIconColor","source","destination","destinationChange","EventEmitter","availableFiltered","confirmedFiltered","filterText","filterSelectedText","prototype","ngOnInit","update","filterItems","filterSelectedItems","drop","event","previousContainer","container","moveItemInArray","data","previousIndex","currentIndex","console","log","transferArrayItem","emit","clickedItem","item","_this","targets","_i","splice","findIndex","x","text","toLowerCase","includes","Component","args","selector","template","Input","Output","NgModule","declarations","imports","BrowserModule","MatIconModule","MatInputModule","MatListModule","FormsModule","MatFormFieldModule","DragDropModule","exports"],"mappings":";;;;;;;;;;;;;;oFAyG6BA,OAAOC,gBAwBpBC,EAAOC,EAAGC,GACtB,IAAIC,EAAsB,mBAAXC,QAAyBH,EAAEG,OAAOC,UACjD,IAAKF,EAAG,OAAOF,EACf,IAAmBK,EAAYC,EAA3BC,EAAIL,EAAEM,KAAKR,GAAOS,EAAK,GAC3B,IACI,WAAc,IAANR,GAAgBA,KAAM,MAAQI,EAAIE,EAAEG,QAAQC,MAAMF,EAAGG,KAAKP,EAAEQ,OAExE,MAAOC,GAASR,EAAI,CAAEQ,MAAOA,WAEzB,IACQT,IAAMA,EAAEM,OAAST,EAAIK,EAAU,SAAIL,EAAEM,KAAKD,WAExC,GAAID,EAAG,MAAMA,EAAEQ,OAE7B,OAAOL,WAGKM,IACZ,IAAK,IAAIN,EAAK,GAAIF,EAAI,EAAGA,EAAIS,UAAUC,OAAQV,IAC3CE,EAAKA,EAAGS,OAAOnB,EAAOi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GAAG,OAAAA,EAAEL,EAAKvC,UAAUsC,KAAO,GAC9EvC,KAAKyC,EAAQ,KAElBzC,KAAKc,YAAcd,KAAKkB,kBACxBlB,KAAKe,kBAAkBsB,KAAKrC,KAAKc,cAGnCf,EAAAsB,UAAAG,YAAA,SAAYsB,GAAZ,IAAAN,EAAAxC,KACEA,KAAKmB,WAAa2B,EAKlB9C,KAAKiB,kBAJA6B,EAIoB9C,KAAKa,OAC3BV,QAAO,SAAAoC,GAAQ,OAAAA,EAAKC,EAAKvC,SAAS8C,cAAcC,SAASF,EAAKC,kBAJtC/C,KAAKa,QAOlCd,EAAAsB,UAAAI,oBAAA,SAAoBqB,GAApB,IAAAN,EAAAxC,KACEA,KAAKoB,mBAAqB0B,EAM1B9C,KAAKkB,kBALA4B,EAKoB9C,KAAKc,YAAYX,QAAO,SAAAoC,GAAQ,OAAAA,EAAKC,EAAKvC,SAAS8C,cAAcC,SAASF,EAAKC,kBAJ7E/C,KAAKc,sCAzEnCmC,EAAAA,UAASC,KAAA,CAAC,CACTC,SAAU,wBACVC,SAAA,84HACS,qHAIRC,EAAAA,qBACAA,EAAAA,sBACAA,EAAAA,iCACAA,EAAAA,0BACAA,EAAAA,kCACAA,EAAAA,sBACAA,EAAAA,yBACAA,EAAAA,uBACAA,EAAAA,4BACAA,EAAAA,0BACAA,EAAAA,+BACAA,EAAAA,sBACAA,EAAAA,2BACAA,EAAAA,iCACAC,EAAAA,gBCJH,iCAbCC,EAAAA,SAAQL,KAAA,CAAC,CACRM,aAAc,CAACzD,GACf0D,QAAS,CACPC,EAAAA,cACAC,EAAAA,cACAC,EAAAA,eACAC,EAAAA,cACAC,EAAAA,YACAC,EAAAA,mBACAC,EAAAA,gBAEFC,QAAS,CAAClE","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, exports) {\r\n for (var p in m) if (p !== \"default\" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n};\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { Component, Input, EventEmitter, IterableDiffers, Output, OnInit, OnChanges, ɵConsole } from '@angular/core';\r\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'material-dual-listbox',\r\n templateUrl: './material-dual-listbox.component.html',\r\n styles: ['./material-dual-listbox.component.scss']\r\n})\r\nexport class MaterialDualListboxComponent implements OnInit {\r\n\r\n @Input() display: any = 'name';\r\n @Input() width = '360px';\r\n @Input() filter = true;\r\n @Input() searchPlaceholder: string = 'Filter'\r\n @Input() itemsTitle: string = 'Items'\r\n @Input() selectedItemsTitle: string = 'Selected Items'\r\n @Input() header = false\r\n @Input() showIcons = true\r\n @Input() addIcon: string = 'add';\r\n @Input() addIconColor: string = 'black'\r\n @Input() removeIcon: string = 'delete';\r\n @Input() removeIconColor: string = 'black'\r\n @Input() source: Array = [];\r\n @Input() destination: Array = [];\r\n @Output() destinationChange = new EventEmitter();\r\n\r\n availableFiltered: Array = []\r\n confirmedFiltered: Array = []\r\n filterText: string = null\r\n filterSelectedText: string = null\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.update()\r\n }\r\n\r\n update() {\r\n this.filterItems(this.filterText);\r\n this.filterSelectedItems(this.filterSelectedText);\r\n }\r\n\r\n drop(event: CdkDragDrop) {\r\n if (event.previousContainer === event.container) {\r\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\r\n console.log(event)\r\n } else {\r\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n }\r\n\r\n clickedItem(item: string[], ...targets: string[]) {\r\n \r\n this[targets[0]] = [\r\n ...this[targets[1]].splice(this[targets[1]].findIndex(x=>x[this.display]==item), 1),\r\n ...this[targets[0]]\r\n ]\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n\r\n filterItems(text: string) {\r\n this.filterText = text;\r\n if (!text) {\r\n this.availableFiltered = this.source;\r\n return;\r\n }\r\n this.availableFiltered = this.source\r\n .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n filterSelectedItems(text: string) {\r\n this.filterSelectedText = text;\r\n if (!text) {\r\n this.confirmedFiltered = this.destination\r\n\r\n return;\r\n }\r\n this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { MaterialDualListboxComponent } from './material-dual-listbox.component';\r\nimport { MatInputModule } from '@angular/material/input'\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field'\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n@NgModule({\r\n declarations: [MaterialDualListboxComponent],\r\n imports: [\r\n BrowserModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n DragDropModule\r\n ],\r\n exports: [MaterialDualListboxComponent]\r\n})\r\nexport class MaterialDualListboxModule { }\r\n"]}
\ No newline at end of file
diff --git a/dist/material-dual-listbox/esm2015/lib/material-dual-listbox.component.js b/dist/material-dual-listbox/esm2015/lib/material-dual-listbox.component.js
index e9a0023..49f250d 100644
--- a/dist/material-dual-listbox/esm2015/lib/material-dual-listbox.component.js
+++ b/dist/material-dual-listbox/esm2015/lib/material-dual-listbox.component.js
@@ -2,7 +2,6 @@ import { Component, Input, EventEmitter, Output } from '@angular/core';
import { moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';
export class MaterialDualListboxComponent {
constructor() {
- this.key = '_id';
this.display = 'name';
this.width = '360px';
this.filter = true;
@@ -43,7 +42,7 @@ export class MaterialDualListboxComponent {
}
clickedItem(item, ...targets) {
this[targets[0]] = [
- ...this[targets[1]].splice(this[targets[1]].indexOf(item), 1),
+ ...this[targets[1]].splice(this[targets[1]].findIndex(x => x[this.display] == item), 1),
...this[targets[0]]
];
this.destination = this.confirmedFiltered;
@@ -70,13 +69,12 @@ export class MaterialDualListboxComponent {
MaterialDualListboxComponent.decorators = [
{ type: Component, args: [{
selector: 'material-dual-listbox',
- template: "\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
",
+ template: "\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
",
styles: ['./material-dual-listbox.component.scss']
},] }
];
MaterialDualListboxComponent.ctorParameters = () => [];
MaterialDualListboxComponent.propDecorators = {
- key: [{ type: Input }],
display: [{ type: Input }],
width: [{ type: Input }],
filter: [{ type: Input }],
@@ -93,4 +91,4 @@ MaterialDualListboxComponent.propDecorators = {
destination: [{ type: Input }],
destinationChange: [{ type: Output }]
};
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWF0ZXJpYWwtZH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AgICAgIC5maWx0ZXIoaXRlbSA9PiBpdGVtW3RoaXMuZGlzcGxheV0udG9Mb3dlckNhc2UoKS5pbmNsdWRlcyh0ZXh0LnRvTG93ZXJDYXNlKCkpKTtcclxuICB9XHJcblxyXG4gIGZpbHRlclNlbGVjdGVkSXRlbXModGV4dDogc3RyaW5nKSB7XHJcbiAgICB0aGlzLmZpbHRlclNlbGVjdGVkVGV4dCA9IHRleHQ7XHJcbiAgICBpZiAoIXRleHQpIHtcclxuICAgICAgdGhpcy5jb25maXJtZWRGaWx0ZXJlZCA9IHRoaXMuZGVzdGluYXRpb25cclxuXHJcbiAgICAgIHJldHVybjtcclxuICAgIH1cclxuICAgIHRoaXMuY29uZmlybWVkRmlsdGVyZWQgPSB0aGlzLmRlc3RpbmF0aW9uLmZpbHRlcihpdGVtID0+IGl0ZW1bdGhpcy5kaXNwbGF5XS50b0xvd2VyQ2FzZSgpLmluY2x1ZGVzKHRleHQudG9Mb3dlckNhc2UoKSkpO1xyXG4gIH1cclxuXHJcbn1cclxuXHJcblxyXG5cclxuIl19
\ No newline at end of file
diff --git a/dist/material-dual-listbox/fesm2015/material-dual-listbox.js b/dist/material-dual-listbox/fesm2015/material-dual-listbox.js
index 7795562..5c4c831 100644
--- a/dist/material-dual-listbox/fesm2015/material-dual-listbox.js
+++ b/dist/material-dual-listbox/fesm2015/material-dual-listbox.js
@@ -9,7 +9,6 @@ import { MatFormFieldModule } from '@angular/material/form-field';
class MaterialDualListboxComponent {
constructor() {
- this.key = '_id';
this.display = 'name';
this.width = '360px';
this.filter = true;
@@ -50,7 +49,7 @@ class MaterialDualListboxComponent {
}
clickedItem(item, ...targets) {
this[targets[0]] = [
- ...this[targets[1]].splice(this[targets[1]].indexOf(item), 1),
+ ...this[targets[1]].splice(this[targets[1]].findIndex(x => x[this.display] == item), 1),
...this[targets[0]]
];
this.destination = this.confirmedFiltered;
@@ -77,13 +76,12 @@ class MaterialDualListboxComponent {
MaterialDualListboxComponent.decorators = [
{ type: Component, args: [{
selector: 'material-dual-listbox',
- template: "\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
",
+ template: "\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
",
styles: ['./material-dual-listbox.component.scss']
},] }
];
MaterialDualListboxComponent.ctorParameters = () => [];
MaterialDualListboxComponent.propDecorators = {
- key: [{ type: Input }],
display: [{ type: Input }],
width: [{ type: Input }],
filter: [{ type: Input }],
diff --git a/dist/material-dual-listbox/fesm2015/material-dual-listbox.js.map b/dist/material-dual-listbox/fesm2015/material-dual-listbox.js.map
index ebaebcc..c2f1423 100644
--- a/dist/material-dual-listbox/fesm2015/material-dual-listbox.js.map
+++ b/dist/material-dual-listbox/fesm2015/material-dual-listbox.js.map
@@ -1 +1 @@
-{"version":3,"file":"material-dual-listbox.js","sources":["../../../projects/material-dual-listbox/src/lib/material-dual-listbox.component.ts","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.module.ts","../../../projects/material-dual-listbox/src/public-api.ts","../../../projects/material-dual-listbox/src/material-dual-listbox.ts"],"sourcesContent":["import { Component, Input, EventEmitter, IterableDiffers, Output, OnInit, OnChanges, ɵConsole } from '@angular/core';\r\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'material-dual-listbox',\r\n templateUrl: './material-dual-listbox.component.html',\r\n styles: ['./material-dual-listbox.component.scss']\r\n})\r\nexport class MaterialDualListboxComponent implements OnInit {\r\n\r\n @Input() key = '_id';\r\n @Input() display: any = 'name';\r\n @Input() width = '360px';\r\n @Input() filter = true;\r\n @Input() searchPlaceholder: string = 'Filter'\r\n @Input() itemsTitle: string = 'Items'\r\n @Input() selectedItemsTitle: string = 'Selected Items'\r\n @Input() header = false\r\n @Input() showIcons = true\r\n @Input() addIcon: string = 'add';\r\n @Input() addIconColor: string = 'black'\r\n @Input() removeIcon: string = 'delete';\r\n @Input() removeIconColor: string = 'black'\r\n @Input() source: Array = [];\r\n @Input() destination: Array = [];\r\n @Output() destinationChange = new EventEmitter();\r\n\r\n availableFiltered: Array = []\r\n confirmedFiltered: Array = []\r\n filterText: string = null\r\n filterSelectedText: string = null\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.update()\r\n }\r\n\r\n update() {\r\n this.filterItems(this.filterText);\r\n this.filterSelectedItems(this.filterSelectedText);\r\n }\r\n\r\n drop(event: CdkDragDrop) {\r\n if (event.previousContainer === event.container) {\r\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\r\n console.log(event)\r\n } else {\r\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n }\r\n\r\n clickedItem(item, ...targets: string[]) {\r\n this[targets[0]] = [\r\n ...this[targets[1]].splice(this[targets[1]].indexOf(item), 1),\r\n ...this[targets[0]]\r\n ]\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n\r\n filterItems(text: string) {\r\n this.filterText = text;\r\n if (!text) {\r\n this.availableFiltered = this.source;\r\n return;\r\n }\r\n this.availableFiltered = this.source\r\n .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n filterSelectedItems(text: string) {\r\n this.filterSelectedText = text;\r\n if (!text) {\r\n this.confirmedFiltered = this.destination\r\n\r\n return;\r\n }\r\n this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { MaterialDualListboxComponent } from './material-dual-listbox.component';\r\nimport { MatInputModule } from '@angular/material/input'\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field'\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n@NgModule({\r\n declarations: [MaterialDualListboxComponent],\r\n imports: [\r\n BrowserModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n DragDropModule\r\n ],\r\n exports: [MaterialDualListboxComponent]\r\n})\r\nexport class MaterialDualListboxModule { }\r\n","/*\r\n * Public API Surface of material-dual-listbox\r\n */\r\n\r\nexport * from './lib/material-dual-listbox.component';\r\nexport * from './lib/material-dual-listbox.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAUa,4BAA4B;IAwBvC;QAtBS,QAAG,GAAG,KAAK,CAAC;QACZ,YAAO,GAAQ,MAAM,CAAC;QACtB,UAAK,GAAG,OAAO,CAAC;QAChB,WAAM,GAAG,IAAI,CAAC;QACd,sBAAiB,GAAW,QAAQ,CAAA;QACpC,eAAU,GAAW,OAAO,CA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,uBAAuB;gBACjC,u9HAAqD;yBAC5C,wCAAwC;aAClD;;;;kBAGE,KAAK;sBACL,KAAK;oBACL,KAAK;qBACL,KAAK;gCACL,KAAK;yBACL,KAAK;iCACL,KAAK;qBACL,KAAK;wBACL,KAAK;sBACL,KAAK;2BACL,KAAK;yBACL,KAAK;8BACL,KAAK;qBACL,KAAK;0BACL,KAAK;gCACL,MAAM;;;MCLI,yBAAyB;;;YAbrC,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,4BAA4B,CAAC;gBAC5C,OAAO,EAAE;oBACP,aAAa;oBACb,aAAa;oBACb,cAAc;oBACd,aAAa;oBACb,WAAW;oBACX,kBAAkB;oBAClB,cAAc;iBACf;gBACD,OAAO,EAAE,CAAC,4BAA4B,CAAC;aACxC;;;ACrBD;;;;ACAA;;;;;;"}
\ No newline at end of file
+{"version":3,"file":"material-dual-listbox.js","sources":["../../../projects/material-dual-listbox/src/lib/material-dual-listbox.component.ts","../../../projects/material-dual-listbox/src/lib/material-dual-listbox.module.ts","../../../projects/material-dual-listbox/src/public-api.ts","../../../projects/material-dual-listbox/src/material-dual-listbox.ts"],"sourcesContent":["import { Component, Input, EventEmitter, IterableDiffers, Output, OnInit, OnChanges, ɵConsole } from '@angular/core';\r\nimport { CdkDragDrop, moveItemInArray, transferArrayItem } from '@angular/cdk/drag-drop';\r\n\r\n\r\n\r\n@Component({\r\n selector: 'material-dual-listbox',\r\n templateUrl: './material-dual-listbox.component.html',\r\n styles: ['./material-dual-listbox.component.scss']\r\n})\r\nexport class MaterialDualListboxComponent implements OnInit {\r\n\r\n @Input() display: any = 'name';\r\n @Input() width = '360px';\r\n @Input() filter = true;\r\n @Input() searchPlaceholder: string = 'Filter'\r\n @Input() itemsTitle: string = 'Items'\r\n @Input() selectedItemsTitle: string = 'Selected Items'\r\n @Input() header = false\r\n @Input() showIcons = true\r\n @Input() addIcon: string = 'add';\r\n @Input() addIconColor: string = 'black'\r\n @Input() removeIcon: string = 'delete';\r\n @Input() removeIconColor: string = 'black'\r\n @Input() source: Array = [];\r\n @Input() destination: Array = [];\r\n @Output() destinationChange = new EventEmitter();\r\n\r\n availableFiltered: Array = []\r\n confirmedFiltered: Array = []\r\n filterText: string = null\r\n filterSelectedText: string = null\r\n\r\n constructor() {}\r\n\r\n ngOnInit() {\r\n this.update()\r\n }\r\n\r\n update() {\r\n this.filterItems(this.filterText);\r\n this.filterSelectedItems(this.filterSelectedText);\r\n }\r\n\r\n drop(event: CdkDragDrop) {\r\n if (event.previousContainer === event.container) {\r\n moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);\r\n console.log(event)\r\n } else {\r\n transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n }\r\n\r\n clickedItem(item: string[], ...targets: string[]) {\r\n \r\n this[targets[0]] = [\r\n ...this[targets[1]].splice(this[targets[1]].findIndex(x=>x[this.display]==item), 1),\r\n ...this[targets[0]]\r\n ]\r\n this.destination = this.confirmedFiltered\r\n this.destinationChange.emit(this.destination);\r\n }\r\n\r\n filterItems(text: string) {\r\n this.filterText = text;\r\n if (!text) {\r\n this.availableFiltered = this.source;\r\n return;\r\n }\r\n this.availableFiltered = this.source\r\n .filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n filterSelectedItems(text: string) {\r\n this.filterSelectedText = text;\r\n if (!text) {\r\n this.confirmedFiltered = this.destination\r\n\r\n return;\r\n }\r\n this.confirmedFiltered = this.destination.filter(item => item[this.display].toLowerCase().includes(text.toLowerCase()));\r\n }\r\n\r\n}\r\n\r\n\r\n\r\n","import { NgModule } from '@angular/core';\r\nimport { BrowserModule } from '@angular/platform-browser';\r\nimport { MaterialDualListboxComponent } from './material-dual-listbox.component';\r\nimport { MatInputModule } from '@angular/material/input'\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatListModule } from '@angular/material/list';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { MatFormFieldModule } from '@angular/material/form-field'\r\nimport { DragDropModule } from '@angular/cdk/drag-drop';\r\n@NgModule({\r\n declarations: [MaterialDualListboxComponent],\r\n imports: [\r\n BrowserModule,\r\n MatIconModule,\r\n MatInputModule,\r\n MatListModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n DragDropModule\r\n ],\r\n exports: [MaterialDualListboxComponent]\r\n})\r\nexport class MaterialDualListboxModule { }\r\n","/*\r\n * Public API Surface of material-dual-listbox\r\n */\r\n\r\nexport * from './lib/material-dual-listbox.component';\r\nexport * from './lib/material-dual-listbox.module';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;MAUa,4BAA4B;IAuBvC;QArBS,YAAO,GAAQ,MAAM,CAAC;QACtB,UAAK,GAAG,OAAO,CAAC;QAChB,WAAM,GAAG,IAAI,CAAC;QACd,sBAAiB,GAAW,QAAQ,CAAA;QACpC,eAAU,GAAW,OAAO,CAAA;QAC5B,uBAAkB,GAAW,gBAAgB,CAAA;QAC7C,WAAM,GAAG,KAAK,CAAA;QACd,cAAS,GAAG,IAAI,CAAA;QAChB,YAAO,GAAW,KAAK,CAAC;QACxB,iBAAY,GAAW,OAAO,CAAA;QAC9B,eAAU,GAAW,QAAQ,CAAC;QAC9B,oBAAe,GAAW,OAAO,CAAA;QACjC,WAAM,GAAe,EAAE,CAAC;QACxB,gBAAW,GAAe,EAAE,CAAC;QAC5B,sBAAiB,GAAG,IAAI,YAAY,EAAE,CAAC;QAEjD,sBAAiB,GAAe,EAAE,CAAA;QAClC,sBAAiB,GAAe,EAAE,CAAA;QAClC,eAAU,GAAW,IAAI,CAAA;QACzB,uBAAkB,GAAW,IAAI,CAAA;KAEjB;IAEhB,QAAQ;QACN,IAAI,CAAC,MAAM,EAAE,CAAA;KACd;IAED,MAAM;QACJ,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAClC,IAA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.d.ts b/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts
index 47537b4..242f39a 100644
--- a/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts
+++ b/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts
@@ -1,8 +1,6 @@
import { EventEmitter, OnInit } from '@angular/core';
import { CdkDragDrop } from '@angular/cdk/drag-drop';
-import * as ɵngcc0 from '@angular/core';
export declare class MaterialDualListboxComponent implements OnInit {
- key: string;
display: any;
width: string;
filter: boolean;
@@ -26,11 +24,7 @@ export declare class MaterialDualListboxComponent implements OnInit {
ngOnInit(): void;
update(): void;
drop(event: CdkDragDrop): void;
- clickedItem(item: any, ...targets: string[]): void;
+ clickedItem(item: string[], ...targets: string[]): void;
filterItems(text: string): void;
filterSelectedItems(text: string): void;
- static ɵfac: ɵngcc0.ɵɵFactoryDef;
- static ɵcmp: ɵngcc0.ɵɵComponentDefWithMeta;
}
-
-//# sourceMappingURL=material-dual-listbox.component.d.ts.map
\ No newline at end of file
diff --git a/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts.__ivy_ngcc_bak b/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts.__ivy_ngcc_bak
deleted file mode 100644
index 9a5b5f6..0000000
--- a/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts.__ivy_ngcc_bak
+++ /dev/null
@@ -1,31 +0,0 @@
-import { EventEmitter, OnInit } from '@angular/core';
-import { CdkDragDrop } from '@angular/cdk/drag-drop';
-export declare class MaterialDualListboxComponent implements OnInit {
- key: string;
- display: any;
- width: string;
- filter: boolean;
- searchPlaceholder: string;
- itemsTitle: string;
- selectedItemsTitle: string;
- header: boolean;
- showIcons: boolean;
- addIcon: string;
- addIconColor: string;
- removeIcon: string;
- removeIconColor: string;
- source: Array;
- destination: Array;
- destinationChange: EventEmitter;
- availableFiltered: Array;
- confirmedFiltered: Array;
- filterText: string;
- filterSelectedText: string;
- constructor();
- ngOnInit(): void;
- update(): void;
- drop(event: CdkDragDrop): void;
- clickedItem(item: any, ...targets: string[]): void;
- filterItems(text: string): void;
- filterSelectedItems(text: string): void;
-}
diff --git a/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts.map b/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts.map
deleted file mode 100644
index 7d08022..0000000
--- a/dist/material-dual-listbox/lib/material-dual-listbox.component.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"material-dual-listbox.component.d.ts","sources":["material-dual-listbox.component.d.ts"],"names":[],"mappings":"AAAA;AACA;;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AACA","sourcesContent":["import { EventEmitter, OnInit } from '@angular/core';\r\nimport { CdkDragDrop } from '@angular/cdk/drag-drop';\r\nexport declare class MaterialDualListboxComponent implements OnInit {\r\n key: string;\r\n display: any;\r\n width: string;\r\n filter: boolean;\r\n searchPlaceholder: string;\r\n itemsTitle: string;\r\n selectedItemsTitle: string;\r\n header: boolean;\r\n showIcons: boolean;\r\n addIcon: string;\r\n addIconColor: string;\r\n removeIcon: string;\r\n removeIconColor: string;\r\n source: Array;\r\n destination: Array;\r\n destinationChange: EventEmitter;\r\n availableFiltered: Array;\r\n confirmedFiltered: Array;\r\n filterText: string;\r\n filterSelectedText: string;\r\n constructor();\r\n ngOnInit(): void;\r\n update(): void;\r\n drop(event: CdkDragDrop): void;\r\n clickedItem(item: any, ...targets: string[]): void;\r\n filterItems(text: string): void;\r\n filterSelectedItems(text: string): void;\r\n}\r\n"]}
\ No newline at end of file
diff --git a/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts b/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts
index 0b9b35f..afdf651 100644
--- a/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts
+++ b/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts
@@ -1,15 +1,2 @@
-import * as ɵngcc0 from '@angular/core';
-import * as ɵngcc1 from './material-dual-listbox.component';
-import * as ɵngcc2 from '@angular/platform-browser';
-import * as ɵngcc3 from '@angular/material/icon';
-import * as ɵngcc4 from '@angular/material/input';
-import * as ɵngcc5 from '@angular/material/list';
-import * as ɵngcc6 from '@angular/forms';
-import * as ɵngcc7 from '@angular/material/form-field';
-import * as ɵngcc8 from '@angular/cdk/drag-drop';
export declare class MaterialDualListboxModule {
- static ɵmod: ɵngcc0.ɵɵNgModuleDefWithMeta;
- static ɵinj: ɵngcc0.ɵɵInjectorDef;
}
-
-//# sourceMappingURL=material-dual-listbox.module.d.ts.map
\ No newline at end of file
diff --git a/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts.__ivy_ngcc_bak b/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts.__ivy_ngcc_bak
deleted file mode 100644
index afdf651..0000000
--- a/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts.__ivy_ngcc_bak
+++ /dev/null
@@ -1,2 +0,0 @@
-export declare class MaterialDualListboxModule {
-}
diff --git a/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts.map b/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts.map
deleted file mode 100644
index 37d5687..0000000
--- a/dist/material-dual-listbox/lib/material-dual-listbox.module.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"material-dual-listbox.module.d.ts","sources":["material-dual-listbox.module.d.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;AACA","sourcesContent":["export declare class MaterialDualListboxModule {\r\n}\r\n"]}
\ No newline at end of file
diff --git a/dist/material-dual-listbox/material-dual-listbox.d.ts b/dist/material-dual-listbox/material-dual-listbox.d.ts
index fb9ed81..e5daacf 100644
--- a/dist/material-dual-listbox/material-dual-listbox.d.ts
+++ b/dist/material-dual-listbox/material-dual-listbox.d.ts
@@ -2,5 +2,3 @@
* Generated bundle index. Do not edit.
*/
export * from './public-api';
-
-//# sourceMappingURL=material-dual-listbox.d.ts.map
\ No newline at end of file
diff --git a/dist/material-dual-listbox/material-dual-listbox.d.ts.__ivy_ngcc_bak b/dist/material-dual-listbox/material-dual-listbox.d.ts.__ivy_ngcc_bak
deleted file mode 100644
index e5daacf..0000000
--- a/dist/material-dual-listbox/material-dual-listbox.d.ts.__ivy_ngcc_bak
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * Generated bundle index. Do not edit.
- */
-export * from './public-api';
diff --git a/dist/material-dual-listbox/material-dual-listbox.d.ts.map b/dist/material-dual-listbox/material-dual-listbox.d.ts.map
deleted file mode 100644
index 477e064..0000000
--- a/dist/material-dual-listbox/material-dual-listbox.d.ts.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"material-dual-listbox.d.ts","sources":["material-dual-listbox.d.ts"],"names":[],"mappings":"AAAA;AACA;AACA;AACA","sourcesContent":["/**\r\n * Generated bundle index. Do not edit.\r\n */\r\nexport * from './public-api';\r\n"]}
\ No newline at end of file
diff --git a/dist/material-dual-listbox/material-dual-listbox.metadata.json b/dist/material-dual-listbox/material-dual-listbox.metadata.json
index b910b75..76dab76 100644
--- a/dist/material-dual-listbox/material-dual-listbox.metadata.json
+++ b/dist/material-dual-listbox/material-dual-listbox.metadata.json
@@ -1 +1 @@
-{"__symbolic":"module","version":4,"metadata":{"MaterialDualListboxComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"material-dual-listbox","styles":["./material-dual-listbox.component.scss"],"template":"\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
"}]}],"members":{"key":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"filter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"searchPlaceholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"itemsTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"selectedItemsTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"header":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"showIcons":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"addIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"addIconColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"removeIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"removeIconColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"source":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"destination":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"destinationChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":27,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"drop":[{"__symbolic":"method"}],"clickedItem":[{"__symbolic":"method"}],"filterItems":[{"__symbolic":"method"}],"filterSelectedItems":[{"__symbolic":"method"}]}},"MaterialDualListboxModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MaterialDualListboxComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/material/list","name":"MatListModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":16,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/cdk/drag-drop","name":"DragDropModule","line":18,"character":4}],"exports":[{"__symbolic":"reference","name":"MaterialDualListboxComponent"}]}]}],"members":{}}},"origins":{"MaterialDualListboxComponent":"./lib/material-dual-listbox.component","MaterialDualListboxModule":"./lib/material-dual-listbox.module"},"importAs":"material-dual-listbox"}
\ No newline at end of file
+{"__symbolic":"module","version":4,"metadata":{"MaterialDualListboxComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"material-dual-listbox","styles":["./material-dual-listbox.component.scss"],"template":"\r\n\r\n\r\n\r\n\r\n
\r\n
\r\n
{{itemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n\r\n \r\n
\r\n
{{addIcon}} {{item[display]}}
\r\n
\r\n\r\n
\r\n
\r\n
{{selectedItemsTitle}} \r\n
\r\n {{searchPlaceholder}} {{selectedItemsTitle}} \r\n \r\n {{searchPlaceholder}} {{itemsTitle}} \r\n \r\n
\r\n
{{removeIcon}} {{item[display]}}
\r\n
\r\n
\r\n \r\n
\r\n
"}]}],"members":{"display":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":12,"character":3}}]}],"width":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":13,"character":3}}]}],"filter":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":14,"character":3}}]}],"searchPlaceholder":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":3}}]}],"itemsTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":16,"character":3}}]}],"selectedItemsTitle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":17,"character":3}}]}],"header":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":18,"character":3}}]}],"showIcons":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":19,"character":3}}]}],"addIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":20,"character":3}}]}],"addIconColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":21,"character":3}}]}],"removeIcon":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"removeIconColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":23,"character":3}}]}],"source":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":3}}]}],"destination":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":25,"character":3}}]}],"destinationChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":26,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}],"drop":[{"__symbolic":"method"}],"clickedItem":[{"__symbolic":"method"}],"filterItems":[{"__symbolic":"method"}],"filterSelectedItems":[{"__symbolic":"method"}]}},"MaterialDualListboxModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":9,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"MaterialDualListboxComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule","line":12,"character":4},{"__symbolic":"reference","module":"@angular/material/icon","name":"MatIconModule","line":13,"character":4},{"__symbolic":"reference","module":"@angular/material/input","name":"MatInputModule","line":14,"character":4},{"__symbolic":"reference","module":"@angular/material/list","name":"MatListModule","line":15,"character":4},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule","line":16,"character":4},{"__symbolic":"reference","module":"@angular/material/form-field","name":"MatFormFieldModule","line":17,"character":4},{"__symbolic":"reference","module":"@angular/cdk/drag-drop","name":"DragDropModule","line":18,"character":4}],"exports":[{"__symbolic":"reference","name":"MaterialDualListboxComponent"}]}]}],"members":{}}},"origins":{"MaterialDualListboxComponent":"./lib/material-dual-listbox.component","MaterialDualListboxModule":"./lib/material-dual-listbox.module"},"importAs":"material-dual-listbox"}
\ No newline at end of file
diff --git a/dist/material-dual-listbox/package.json b/dist/material-dual-listbox/package.json
index ee09aac..bb0d3b9 100644
--- a/dist/material-dual-listbox/package.json
+++ b/dist/material-dual-listbox/package.json
@@ -1,6 +1,6 @@
{
"name": "material-dual-listbox",
- "version": "2.0.11",
+ "version": "2.0.13",
"description": "Simple dual listbox component to use with your Angular 10 App with Angular Material and CDK Drag and Drop.",
"homepage": "https://github.com/rockaru/material-dual-listbox/blob/master/README.md",
"bugs": {
@@ -30,23 +30,11 @@
"angular material dual listbox"
],
"main": "bundles/material-dual-listbox.umd.js",
- "module_ivy_ngcc": "__ivy_ngcc__/fesm2015/material-dual-listbox.js",
"module": "fesm2015/material-dual-listbox.js",
- "es2015_ivy_ngcc": "__ivy_ngcc__/fesm2015/material-dual-listbox.js",
"es2015": "fesm2015/material-dual-listbox.js",
"esm2015": "esm2015/material-dual-listbox.js",
- "fesm2015_ivy_ngcc": "__ivy_ngcc__/fesm2015/material-dual-listbox.js",
"fesm2015": "fesm2015/material-dual-listbox.js",
"typings": "material-dual-listbox.d.ts",
"metadata": "material-dual-listbox.metadata.json",
- "sideEffects": false,
- "__processed_by_ivy_ngcc__": {
- "es2015": "10.0.5",
- "fesm2015": "10.0.5",
- "module": "10.0.5",
- "typings": "10.0.5"
- },
- "scripts": {
- "prepublishOnly": "node --eval \"console.error('ERROR: Trying to publish a package that has been compiled by NGCC. This is not allowed.\\nPlease delete and rebuild the package, without compiling with NGCC, before attempting to publish.\\nNote that NGCC may have been run by importing this package into another project that is being built with Ivy enabled.\\n')\" && exit 1"
- }
+ "sideEffects": false
}
diff --git a/docs/index.html b/docs/index.html
index b797d89..4149819 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -3,12 +3,12 @@
Demo
-
+
-
+