@pepperi-addons/ngx-lib 0.3.9-beta.2 → 0.3.9-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js +164 -0
- package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js.map +1 -0
- package/bundles/pepperi-addons-ngx-lib-list.umd.js +10 -15
- package/bundles/pepperi-addons-ngx-lib-list.umd.js.map +1 -1
- package/draggable-items/draggable-item/draggable-item.component.d.ts +9 -0
- package/draggable-items/draggable-items.component.d.ts +28 -0
- package/draggable-items/draggable-items.model.d.ts +5 -0
- package/draggable-items/draggable-items.module.d.ts +2 -0
- package/draggable-items/package.json +14 -0
- package/draggable-items/pepperi-addons-ngx-lib-draggable-items.d.ts +4 -0
- package/draggable-items/pepperi-addons-ngx-lib-draggable-items.metadata.json +1 -0
- package/draggable-items/public-api.d.ts +3 -0
- package/esm2015/draggable-items/draggable-item/draggable-item.component.js +36 -0
- package/esm2015/draggable-items/draggable-items.component.js +78 -0
- package/esm2015/draggable-items/draggable-items.model.js +2 -0
- package/esm2015/draggable-items/draggable-items.module.js +32 -0
- package/esm2015/draggable-items/pepperi-addons-ngx-lib-draggable-items.js +5 -0
- package/esm2015/draggable-items/public-api.js +7 -0
- package/esm2015/list/list.component.js +9 -14
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js +152 -0
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-list.js +8 -13
- package/fesm2015/pepperi-addons-ngx-lib-list.js.map +1 -1
- package/package.json +1 -1
- package/src/core/style/abstracts/variables.scss +4 -0
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
(function (global, factory) {
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('@pepperi-addons/ngx-lib'), require('@pepperi-addons/ngx-lib/button'), require('@pepperi-addons/ngx-lib/search'), require('@angular/cdk/drag-drop'), require('rxjs'), require('rxjs/operators')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@pepperi-addons/ngx-lib/draggable-items', ['exports', '@angular/core', '@angular/common', '@angular/forms', '@pepperi-addons/ngx-lib', '@pepperi-addons/ngx-lib/button', '@pepperi-addons/ngx-lib/search', '@angular/cdk/drag-drop', 'rxjs', 'rxjs/operators'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global['pepperi-addons'] = global['pepperi-addons'] || {}, global['pepperi-addons']['ngx-lib'] = global['pepperi-addons']['ngx-lib'] || {}, global['pepperi-addons']['ngx-lib']['draggable-items'] = {}), global.ng.core, global.ng.common, global.ng.forms, global['pepperi-addons']['ngx-lib'], global['pepperi-addons']['ngx-lib'].button, global['pepperi-addons']['ngx-lib'].search, global.ng.cdk.dragDrop, global.rxjs, global.rxjs.operators));
|
|
5
|
+
}(this, (function (exports, core, common, forms, ngxLib, button, search, dragDrop, rxjs, operators) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var DraggableItemComponent = /** @class */ (function () {
|
|
8
|
+
// private _isDraggable = false;
|
|
9
|
+
// @Input()
|
|
10
|
+
// set isDraggable(value: boolean) {
|
|
11
|
+
// this._isDraggable = value;
|
|
12
|
+
// this._cursor = value ? 'move' : 'inherit'
|
|
13
|
+
// }
|
|
14
|
+
// get isDraggable(): boolean {
|
|
15
|
+
// return this._isDraggable;
|
|
16
|
+
// }
|
|
17
|
+
function DraggableItemComponent() {
|
|
18
|
+
this._cursor = 'move';
|
|
19
|
+
this.title = '';
|
|
20
|
+
this.disabled = false;
|
|
21
|
+
//
|
|
22
|
+
}
|
|
23
|
+
DraggableItemComponent.prototype.ngOnInit = function () {
|
|
24
|
+
//
|
|
25
|
+
};
|
|
26
|
+
return DraggableItemComponent;
|
|
27
|
+
}());
|
|
28
|
+
DraggableItemComponent.decorators = [
|
|
29
|
+
{ type: core.Component, args: [{
|
|
30
|
+
selector: 'pep-draggable-item',
|
|
31
|
+
template: "<div class=\"pep-draggable-item-container\" [ngClass]=\"{ 'disabled': disabled }\">\n <div class=\"\">\n <pep-button classNames=\"lock-events\" sizeType=\"xs\" iconName=\"system_move\"></pep-button>\n </div>\n <div *ngIf=\"title !== ''\" class=\"title-container\">\n <span class=\"body-sm bold ellipsis title\" title=\"{{title}}\">{{title}}</span>\n </div>\n <div class=\"actions\">\n <ng-content select=\"[pep-actions]\"></ng-content>\n </div>\n</div>",
|
|
32
|
+
styles: [":host{display:block;cursor:-webkit-grab;cursor:grab}.pep-draggable-item-container{height:2.5rem;width:100%;display:grid;grid-template-columns:auto 1fr auto;align-items:center;border-radius:.25rem;border-radius:var(--pep-border-radius-md,.25rem);padding-inline:.5rem;padding-inline:var(--pep-spacing-sm,.5rem);background:#fafafa;background:hsl(var(--pep-color-regular-h,0),var(--pep-color-regular-s,0%),98%);box-shadow:0 .125rem .25rem 0 rgba(26,26,26,.08);box-shadow:var(--pep-shadow-xs-offset,0 .125rem .25rem 0) hsla(var(--pep-color-system-primary-h,0),var(--pep-color-system-primary-s,0%),var(--pep-color-system-primary-l,10%),.08);border:1px solid hsl(0,0%,calc(10% + 30%));border:1px solid hsl(var(--pep-color-regular-h,0),var(--pep-color-regular-s,0%),calc(var(--pep-color-regular-l, 10%) + 30%))}.pep-draggable-item-container .title-container{overflow-x:hidden;margin-inline:.5rem;margin-inline:var(--pep-spacing-sm,.5rem)}.pep-draggable-item-container .title-container .title{display:block}.pep-draggable-item-container .actions{display:inline-flex;grid-gap:.25rem;gap:.25rem;grid-gap:var(--pep-spacing-xs,.25rem);gap:var(--pep-spacing-xs,.25rem)}"]
|
|
33
|
+
},] }
|
|
34
|
+
];
|
|
35
|
+
DraggableItemComponent.ctorParameters = function () { return []; };
|
|
36
|
+
DraggableItemComponent.propDecorators = {
|
|
37
|
+
_cursor: [{ type: core.HostBinding, args: ['style.cursor',] }],
|
|
38
|
+
title: [{ type: core.Input }],
|
|
39
|
+
data: [{ type: core.Input }],
|
|
40
|
+
disabled: [{ type: core.Input }]
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
var DraggableItemsComponent = /** @class */ (function () {
|
|
44
|
+
function DraggableItemsComponent() {
|
|
45
|
+
this.showTitle = false;
|
|
46
|
+
this.showSearch = false;
|
|
47
|
+
this.title = '';
|
|
48
|
+
this.allowMultiple = '';
|
|
49
|
+
this.listConnectedTo = [];
|
|
50
|
+
this._items = [];
|
|
51
|
+
this.itemDragStarted = new core.EventEmitter();
|
|
52
|
+
this.itemDragEnded = new core.EventEmitter();
|
|
53
|
+
this.searchControl = new forms.FormControl();
|
|
54
|
+
this.numberItemsToShowSearch = 10;
|
|
55
|
+
//
|
|
56
|
+
this._destroyed = new rxjs.Subject();
|
|
57
|
+
}
|
|
58
|
+
Object.defineProperty(DraggableItemsComponent.prototype, "items", {
|
|
59
|
+
get: function () {
|
|
60
|
+
return this._items;
|
|
61
|
+
},
|
|
62
|
+
set: function (value) {
|
|
63
|
+
var _a;
|
|
64
|
+
this._items = value;
|
|
65
|
+
if (((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
66
|
+
this.searchControl.enable();
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this.searchControl.disable();
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
enumerable: false,
|
|
73
|
+
configurable: true
|
|
74
|
+
});
|
|
75
|
+
DraggableItemsComponent.prototype.filterItems = function (value) {
|
|
76
|
+
var filterValue = value.toLowerCase();
|
|
77
|
+
return this.items.filter(function (opt) { return opt.title &&
|
|
78
|
+
opt.title.toLowerCase().includes(filterValue.toLowerCase()); });
|
|
79
|
+
};
|
|
80
|
+
DraggableItemsComponent.prototype.getDestroyer = function () {
|
|
81
|
+
return operators.takeUntil(this._destroyed);
|
|
82
|
+
};
|
|
83
|
+
DraggableItemsComponent.prototype.ngOnInit = function () {
|
|
84
|
+
var _this = this;
|
|
85
|
+
// If there is no item disable the search.
|
|
86
|
+
if (this.items.length === 0) {
|
|
87
|
+
this.searchControl.disable();
|
|
88
|
+
}
|
|
89
|
+
// Filter the draggableItems by the search control.
|
|
90
|
+
this.filteredItems$ = this.searchControl.valueChanges.pipe(this.getDestroyer(), operators.startWith(''), operators.map(function (option) { return typeof option === 'string' ? option : option && option.value; }), operators.map(function (value) { return (value ? _this.filterItems(value) : _this.items); }));
|
|
91
|
+
};
|
|
92
|
+
DraggableItemsComponent.prototype.ngOnDestroy = function () {
|
|
93
|
+
this._destroyed.next();
|
|
94
|
+
this._destroyed.complete();
|
|
95
|
+
};
|
|
96
|
+
DraggableItemsComponent.prototype.onDragStart = function (event) {
|
|
97
|
+
this.itemDragStarted.emit(event);
|
|
98
|
+
};
|
|
99
|
+
DraggableItemsComponent.prototype.onDragEnd = function (event) {
|
|
100
|
+
this.itemDragEnded.emit(event);
|
|
101
|
+
};
|
|
102
|
+
return DraggableItemsComponent;
|
|
103
|
+
}());
|
|
104
|
+
DraggableItemsComponent.decorators = [
|
|
105
|
+
{ type: core.Component, args: [{
|
|
106
|
+
selector: 'pep-draggable-items',
|
|
107
|
+
template: "<div class=\"pep-draggable-items-container\" cdkDropList [cdkDropListData]=\"items\"\r\n [cdkDropListConnectedTo]=\"listConnectedTo\">\r\n\r\n <div *ngIf=\"showTitle\">\r\n Title {{ title }}\r\n\r\n <div *ngIf=\"showSearch\" [ngClass]=\"{ 'pep-spacing-element': showSearch }\">\r\n <pep-search *ngIf=\"items?.length > numberItemsToShowSearch\" [searchControl]=\"searchControl\"\r\n [triggerOn]=\"'keydown'\" [shrinkInSmallScreen]=\"false\"></pep-search>\r\n </div>\r\n </div>\r\n\r\n <pep-draggable-item *ngFor=\"let item of filteredItems$ | async; let i=index;\" class=\"draggble-item\"\r\n [title]=\"item.title\" cdkDrag style=\"cursor: grab;\" [cdkDragData]=\"item.data\"\r\n (cdkDragStarted)=\"onDragStart($event)\" (cdkDragEnded)=\"onDragEnd($event)\">\r\n </pep-draggable-item>\r\n</div>",
|
|
108
|
+
styles: [""]
|
|
109
|
+
},] }
|
|
110
|
+
];
|
|
111
|
+
DraggableItemsComponent.ctorParameters = function () { return []; };
|
|
112
|
+
DraggableItemsComponent.propDecorators = {
|
|
113
|
+
showTitle: [{ type: core.Input }],
|
|
114
|
+
showSearch: [{ type: core.Input }],
|
|
115
|
+
title: [{ type: core.Input }],
|
|
116
|
+
allowMultiple: [{ type: core.Input }],
|
|
117
|
+
listConnectedTo: [{ type: core.Input }],
|
|
118
|
+
items: [{ type: core.Input }],
|
|
119
|
+
itemDragStarted: [{ type: core.Output }],
|
|
120
|
+
itemDragEnded: [{ type: core.Output }]
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
var PepDraggableItemsModule = /** @class */ (function () {
|
|
124
|
+
function PepDraggableItemsModule() {
|
|
125
|
+
}
|
|
126
|
+
return PepDraggableItemsModule;
|
|
127
|
+
}());
|
|
128
|
+
PepDraggableItemsModule.decorators = [
|
|
129
|
+
{ type: core.NgModule, args: [{
|
|
130
|
+
declarations: [
|
|
131
|
+
DraggableItemsComponent,
|
|
132
|
+
DraggableItemComponent
|
|
133
|
+
],
|
|
134
|
+
imports: [
|
|
135
|
+
common.CommonModule,
|
|
136
|
+
forms.ReactiveFormsModule,
|
|
137
|
+
ngxLib.PepNgxLibModule,
|
|
138
|
+
button.PepButtonModule,
|
|
139
|
+
search.PepSearchModule,
|
|
140
|
+
dragDrop.DragDropModule
|
|
141
|
+
],
|
|
142
|
+
exports: [
|
|
143
|
+
DraggableItemsComponent,
|
|
144
|
+
DraggableItemComponent
|
|
145
|
+
],
|
|
146
|
+
},] }
|
|
147
|
+
];
|
|
148
|
+
|
|
149
|
+
/*
|
|
150
|
+
* Public API Surface of ngx-lib/draggable-items
|
|
151
|
+
*/
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Generated bundle index. Do not edit.
|
|
155
|
+
*/
|
|
156
|
+
|
|
157
|
+
exports.DraggableItemComponent = DraggableItemComponent;
|
|
158
|
+
exports.DraggableItemsComponent = DraggableItemsComponent;
|
|
159
|
+
exports.PepDraggableItemsModule = PepDraggableItemsModule;
|
|
160
|
+
|
|
161
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
162
|
+
|
|
163
|
+
})));
|
|
164
|
+
//# sourceMappingURL=pepperi-addons-ngx-lib-draggable-items.umd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pepperi-addons-ngx-lib-draggable-items.umd.js","sources":["../../../projects/ngx-lib/draggable-items/draggable-item/draggable-item.component.ts","../../../projects/ngx-lib/draggable-items/draggable-items.component.ts","../../../projects/ngx-lib/draggable-items/draggable-items.module.ts","../../../projects/ngx-lib/draggable-items/public-api.ts","../../../projects/ngx-lib/draggable-items/pepperi-addons-ngx-lib-draggable-items.ts"],"sourcesContent":["import { Component, EventEmitter, HostBinding, Input, OnInit, Output } from '@angular/core';\n\n@Component({\n selector: 'pep-draggable-item',\n templateUrl: './draggable-item.component.html',\n styleUrls: ['./draggable-item.component.scss']\n})\nexport class DraggableItemComponent implements OnInit {\n\n @HostBinding('style.cursor') _cursor = 'move';\n\n @Input() title = '';\n @Input() data: any;\n @Input() disabled = false;\n\n // private _isDraggable = false;\n // @Input()\n // set isDraggable(value: boolean) {\n // this._isDraggable = value;\n\n // this._cursor = value ? 'move' : 'inherit'\n // }\n // get isDraggable(): boolean {\n // return this._isDraggable;\n // }\n\n constructor() {\n //\n }\n\n ngOnInit(): void {\n //\n }\n}\n","import { CdkDragEnd, CdkDragStart } from '@angular/cdk/drag-drop';\nimport { Component, EventEmitter, HostBinding, Input, OnDestroy, OnInit, Output } from '@angular/core';\nimport { FormControl } from '@angular/forms';\nimport { Observable, Subject } from 'rxjs';\nimport { map, startWith, takeUntil } from 'rxjs/operators';\nimport { IPepDraggableItem } from './draggable-items.model';\n\n@Component({\n selector: 'pep-draggable-items',\n templateUrl: './draggable-items.component.html',\n styleUrls: ['./draggable-items.component.scss']\n})\nexport class DraggableItemsComponent implements OnInit, OnDestroy {\n\n @Input() showTitle = false;\n @Input() showSearch = false;\n @Input() title = '';\n @Input() allowMultiple = '';\n\n @Input() listConnectedTo = [];\n\n private _items: Array<IPepDraggableItem> = [];\n @Input()\n set items(value: Array<IPepDraggableItem>) {\n this._items = value;\n\n if (this.items?.length > 0) {\n this.searchControl.enable();\n } else {\n this.searchControl.disable();\n }\n }\n get items(): Array<IPepDraggableItem> {\n return this._items;\n }\n\n @Output() itemDragStarted: EventEmitter<CdkDragStart> = new EventEmitter<CdkDragStart>();\n @Output() itemDragEnded: EventEmitter<CdkDragStart> = new EventEmitter<CdkDragStart>();\n\n filteredItems$: Observable<any>;\n searchControl = new FormControl();\n numberItemsToShowSearch = 10;\n private readonly _destroyed: Subject<void>;\n\n constructor() {\n //\n this._destroyed = new Subject();\n }\n\n private filterItems(value: string): any[] {\n const filterValue = value.toLowerCase();\n return this.items.filter(\n (opt) =>\n opt.title &&\n opt.title.toLowerCase().includes(filterValue.toLowerCase())\n );\n }\n\n protected getDestroyer() {\n return takeUntil(this._destroyed);\n }\n\n ngOnInit(): void {\n // If there is no item disable the search.\n if (this.items.length === 0) {\n this.searchControl.disable();\n }\n\n // Filter the draggableItems by the search control.\n this.filteredItems$ = this.searchControl.valueChanges.pipe(\n this.getDestroyer(),\n startWith<any>(''),\n map((option) =>\n typeof option === 'string' ? option : option && option.value\n ),\n map((value) => (value ? this.filterItems(value) : this.items))\n );\n }\n\n ngOnDestroy(): void {\n this._destroyed.next();\n this._destroyed.complete();\n }\n\n onDragStart(event: CdkDragStart) {\n this.itemDragStarted.emit(event);\n }\n\n onDragEnd(event: CdkDragEnd) {\n this.itemDragEnded.emit(event);\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\n\nimport { PepNgxLibModule } from '@pepperi-addons/ngx-lib';\nimport { PepButtonModule } from '@pepperi-addons/ngx-lib/button';\nimport { PepSearchModule } from '@pepperi-addons/ngx-lib/search';\n\nimport { DragDropModule } from '@angular/cdk/drag-drop';\n\nimport { DraggableItemsComponent } from './draggable-items.component';\nimport { DraggableItemComponent } from './draggable-item/draggable-item.component';\n\n@NgModule({\n declarations: [\n DraggableItemsComponent,\n DraggableItemComponent\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n PepNgxLibModule,\n PepButtonModule,\n PepSearchModule,\n DragDropModule\n ],\n exports: [\n DraggableItemsComponent,\n DraggableItemComponent\n ],\n})\nexport class PepDraggableItemsModule { }\n","/*\n * Public API Surface of ngx-lib/draggable-items\n */\nexport * from './draggable-item/draggable-item.component';\n\nexport * from './draggable-items.module';\nexport * from './draggable-items.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Component","HostBinding","Input","EventEmitter","FormControl","Subject","takeUntil","startWith","map","Output","NgModule","CommonModule","ReactiveFormsModule","PepNgxLibModule","PepButtonModule","PepSearchModule","DragDropModule"],"mappings":"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"}
|
|
@@ -2310,22 +2310,17 @@
|
|
|
2310
2310
|
var _this = this;
|
|
2311
2311
|
if (isForEdit === void 0) { isForEdit = false; }
|
|
2312
2312
|
var res = new PepSelectionData();
|
|
2313
|
+
var selectionType = 1;
|
|
2314
|
+
var items = [];
|
|
2315
|
+
var itemTypes = [];
|
|
2313
2316
|
if (this.selectionTypeForActions === 'single') {
|
|
2314
|
-
res.selectionType = 1;
|
|
2315
2317
|
if (this.selectedItemId.length > 0) {
|
|
2316
2318
|
var tmp = this.selectedItemId.split(this.SEPARATOR);
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
}
|
|
2320
|
-
else {
|
|
2321
|
-
res.rows = [];
|
|
2322
|
-
res.rowTypes = [];
|
|
2319
|
+
items.push(tmp[0]);
|
|
2320
|
+
itemTypes.push(tmp[1]);
|
|
2323
2321
|
}
|
|
2324
2322
|
}
|
|
2325
2323
|
else if (this.selectionTypeForActions === 'multi') {
|
|
2326
|
-
var items_2 = [];
|
|
2327
|
-
var itemTypes_1 = [];
|
|
2328
|
-
var selectionType = 1;
|
|
2329
2324
|
var currentList_1 = [];
|
|
2330
2325
|
// For edit - only the selected items.
|
|
2331
2326
|
if (isForEdit) {
|
|
@@ -2352,14 +2347,14 @@
|
|
|
2352
2347
|
currentList_1.forEach(function (item) {
|
|
2353
2348
|
var tmp = item.split(_this.SEPARATOR);
|
|
2354
2349
|
if (tmp.length === 2) {
|
|
2355
|
-
|
|
2356
|
-
|
|
2350
|
+
items.push(tmp[0]);
|
|
2351
|
+
itemTypes.push(tmp[1]);
|
|
2357
2352
|
}
|
|
2358
2353
|
});
|
|
2359
|
-
res.selectionType = selectionType;
|
|
2360
|
-
res.rows = items_2;
|
|
2361
|
-
res.rowTypes = itemTypes_1;
|
|
2362
2354
|
}
|
|
2355
|
+
res.selectionType = selectionType;
|
|
2356
|
+
res.rows = items;
|
|
2357
|
+
res.rowTypes = itemTypes;
|
|
2363
2358
|
return res;
|
|
2364
2359
|
};
|
|
2365
2360
|
PepListComponent.prototype.getIsItemEditable = function (uid) {
|