@pepperi-addons/ngx-lib 0.3.8 → 0.3.9-beta.4
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 +173 -0
- package/bundles/pepperi-addons-ngx-lib-draggable-items.umd.js.map +1 -0
- package/bundles/pepperi-addons-ngx-lib-list.umd.js +13 -12
- package/bundles/pepperi-addons-ngx-lib-list.umd.js.map +1 -1
- package/bundles/pepperi-addons-ngx-lib-top-bar.umd.js +1 -1
- package/draggable-items/draggable-item/draggable-item.component.d.ts +8 -0
- package/draggable-items/draggable-items.component.d.ts +31 -0
- package/draggable-items/draggable-items.model.d.ts +7 -0
- package/draggable-items/draggable-items.module.d.ts +5 -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 +25 -0
- package/esm2015/draggable-items/draggable-items.component.js +90 -0
- package/esm2015/draggable-items/draggable-items.model.js +2 -0
- package/esm2015/draggable-items/draggable-items.module.js +43 -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 +12 -11
- package/esm2015/top-bar/top-bar.component.js +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js +164 -0
- package/fesm2015/pepperi-addons-ngx-lib-draggable-items.js.map +1 -0
- package/fesm2015/pepperi-addons-ngx-lib-list.js +11 -10
- package/fesm2015/pepperi-addons-ngx-lib-list.js.map +1 -1
- package/fesm2015/pepperi-addons-ngx-lib-top-bar.js +1 -1
- package/package.json +1 -1
- package/src/core/style/abstracts/variables.scss +4 -0
- package/src/core/style/vendors/normalize.scss +6 -0
- package/top-bar/pepperi-addons-ngx-lib-top-bar.metadata.json +1 -1
|
@@ -0,0 +1,173 @@
|
|
|
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'), require('@pepperi-addons/ngx-lib/icon')) :
|
|
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', '@pepperi-addons/ngx-lib/icon'], 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, global['pepperi-addons']['ngx-lib'].icon));
|
|
5
|
+
}(this, (function (exports, core, common, forms, ngxLib, button, search, dragDrop, rxjs, operators, icon) { 'use strict';
|
|
6
|
+
|
|
7
|
+
var DraggableItemComponent = /** @class */ (function () {
|
|
8
|
+
function DraggableItemComponent() {
|
|
9
|
+
this.title = '';
|
|
10
|
+
this.disabled = false;
|
|
11
|
+
//
|
|
12
|
+
}
|
|
13
|
+
DraggableItemComponent.prototype.ngOnInit = function () {
|
|
14
|
+
//
|
|
15
|
+
};
|
|
16
|
+
return DraggableItemComponent;
|
|
17
|
+
}());
|
|
18
|
+
DraggableItemComponent.decorators = [
|
|
19
|
+
{ type: core.Component, args: [{
|
|
20
|
+
selector: 'pep-draggable-item',
|
|
21
|
+
template: "<div class=\"pep-draggable-item-container\" [ngClass]=\"{ 'disable': 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>",
|
|
22
|
+
styles: [":host{display:block}.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%));box-shadow:0 .125rem .25rem 0 rgba(26,26,26,.16);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%),.16)}.pep-draggable-item-container.disable{opacity:.35;pointer-events:none}.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)}"]
|
|
23
|
+
},] }
|
|
24
|
+
];
|
|
25
|
+
DraggableItemComponent.ctorParameters = function () { return []; };
|
|
26
|
+
DraggableItemComponent.propDecorators = {
|
|
27
|
+
title: [{ type: core.Input }],
|
|
28
|
+
data: [{ type: core.Input }],
|
|
29
|
+
disabled: [{ type: core.Input }]
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
var DraggableItemsComponent = /** @class */ (function () {
|
|
33
|
+
function DraggableItemsComponent() {
|
|
34
|
+
this.showSearch = false;
|
|
35
|
+
this.title = '';
|
|
36
|
+
this.titleType = 'regular';
|
|
37
|
+
this.allowMultiple = '';
|
|
38
|
+
this.itemPlaceholderType = 'none';
|
|
39
|
+
this.dropAreaIds = [];
|
|
40
|
+
this._items = [];
|
|
41
|
+
this.itemDragStarted = new core.EventEmitter();
|
|
42
|
+
this.itemDragEnded = new core.EventEmitter();
|
|
43
|
+
this.searchControl = new forms.FormControl();
|
|
44
|
+
this.numberItemsToShowSearch = 3;
|
|
45
|
+
//
|
|
46
|
+
this._destroyed = new rxjs.Subject();
|
|
47
|
+
}
|
|
48
|
+
Object.defineProperty(DraggableItemsComponent.prototype, "items", {
|
|
49
|
+
get: function () {
|
|
50
|
+
return this._items;
|
|
51
|
+
},
|
|
52
|
+
set: function (value) {
|
|
53
|
+
var _a;
|
|
54
|
+
this._items = value;
|
|
55
|
+
if (((_a = this.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
56
|
+
this.searchControl.enable();
|
|
57
|
+
}
|
|
58
|
+
else {
|
|
59
|
+
this.searchControl.disable();
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
enumerable: false,
|
|
63
|
+
configurable: true
|
|
64
|
+
});
|
|
65
|
+
DraggableItemsComponent.prototype.filterItems = function (value) {
|
|
66
|
+
var filterValue = value.toLowerCase();
|
|
67
|
+
return this.items.filter(function (opt) { return opt.title &&
|
|
68
|
+
opt.title.toLowerCase().includes(filterValue.toLowerCase()); });
|
|
69
|
+
};
|
|
70
|
+
DraggableItemsComponent.prototype.changeCursorOnDragStart = function () {
|
|
71
|
+
document.body.classList.add('inheritCursors');
|
|
72
|
+
document.body.style.cursor = 'grabbing';
|
|
73
|
+
};
|
|
74
|
+
DraggableItemsComponent.prototype.changeCursorOnDragEnd = function () {
|
|
75
|
+
document.body.classList.remove('inheritCursors');
|
|
76
|
+
document.body.style.cursor = 'unset';
|
|
77
|
+
};
|
|
78
|
+
DraggableItemsComponent.prototype.getDestroyer = function () {
|
|
79
|
+
return operators.takeUntil(this._destroyed);
|
|
80
|
+
};
|
|
81
|
+
DraggableItemsComponent.prototype.ngOnInit = function () {
|
|
82
|
+
var _this = this;
|
|
83
|
+
// If there is no item disable the search.
|
|
84
|
+
if (this.items.length === 0) {
|
|
85
|
+
this.searchControl.disable();
|
|
86
|
+
}
|
|
87
|
+
// Filter the draggableItems by the search control.
|
|
88
|
+
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); }));
|
|
89
|
+
};
|
|
90
|
+
DraggableItemsComponent.prototype.ngOnDestroy = function () {
|
|
91
|
+
this._destroyed.next();
|
|
92
|
+
this._destroyed.complete();
|
|
93
|
+
};
|
|
94
|
+
DraggableItemsComponent.prototype.onDragStart = function (event) {
|
|
95
|
+
this.changeCursorOnDragStart();
|
|
96
|
+
this.itemDragStarted.emit(event);
|
|
97
|
+
};
|
|
98
|
+
DraggableItemsComponent.prototype.onDragEnd = function (event) {
|
|
99
|
+
this.changeCursorOnDragEnd();
|
|
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 id=\"test\" class=\"pep-draggable-items-container\" cdkDropList [cdkDropListData]=\"filteredItems$ | async\"\r\n cdkDropListSortingDisabled [cdkDropListConnectedTo]=\"dropAreaIds\">\r\n\r\n <div *ngIf=\"titleType !== 'none'\" class=\"title-container\"\r\n [ngClass]=\"{ 'pep-border-bottom': titleType === 'with-bottom-border'}\">\r\n <label class=\"body-xl bold ellipsis\">{{title}}</label>\r\n <pep-search *ngIf=\"showSearch && items?.length > numberItemsToShowSearch\" sizeType=\"sm\"\r\n [searchControl]=\"searchControl\" triggerOn=\"keydown\" [shrinkInSmallScreen]=\"true\"></pep-search>\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\" [data]=\"item.data\" [disabled]=\"item.disabled\" cdkDrag [cdkDragData]=\"item.data\"\r\n [cdkDragDisabled]=\"item.disabled\" (cdkDragStarted)=\"onDragStart($event)\" (cdkDragEnded)=\"onDragEnd($event)\">\r\n\r\n <ng-container *ngIf=\"itemPlaceholderType !== 'regular'\">\r\n <div class=\"placeholder-item {{itemPlaceholderType}}\" *cdkDragPlaceholder></div>\r\n </ng-container>\r\n </pep-draggable-item>\r\n</div>",
|
|
108
|
+
styles: [".draggble-item{margin-bottom:.5rem;margin-bottom:var(--pep-spacing-sm,.5rem);cursor:-webkit-grab;cursor:grab}.draggble-item.cdk-drag-disabled{cursor:not-allowed}.title-container{height:2.5rem;display:flex;flex-flow:row;justify-content:space-between}.title-container.pep-border-bottom{margin-bottom:1rem;margin-bottom:var(--pep-spacing-lg,1rem)}.placeholder-item{height:2.5rem;border-radius:.25rem;border-radius:var(--pep-border-radius-md,.25rem);width:100%;margin-bottom:.5rem;margin-bottom:var(--pep-spacing-sm,.5rem)}.placeholder-item.none{opacity:0}.placeholder-item.weak{background:rgba(26,26,26,.12);background:hsla(var(--pep-color-weak-h,0),var(--pep-color-weak-s,0%),var(--pep-color-weak-l,10%),.12)}"]
|
|
109
|
+
},] }
|
|
110
|
+
];
|
|
111
|
+
DraggableItemsComponent.ctorParameters = function () { return []; };
|
|
112
|
+
DraggableItemsComponent.propDecorators = {
|
|
113
|
+
showSearch: [{ type: core.Input }],
|
|
114
|
+
title: [{ type: core.Input }],
|
|
115
|
+
titleType: [{ type: core.Input }],
|
|
116
|
+
allowMultiple: [{ type: core.Input }],
|
|
117
|
+
itemPlaceholderType: [{ type: core.Input }],
|
|
118
|
+
dropAreaIds: [{ type: core.Input }],
|
|
119
|
+
items: [{ type: core.Input }],
|
|
120
|
+
itemDragStarted: [{ type: core.Output }],
|
|
121
|
+
itemDragEnded: [{ type: core.Output }]
|
|
122
|
+
};
|
|
123
|
+
|
|
124
|
+
var PepDraggableItemsModule = /** @class */ (function () {
|
|
125
|
+
function PepDraggableItemsModule(pepIconRegistry) {
|
|
126
|
+
this.pepIconRegistry = pepIconRegistry;
|
|
127
|
+
this.pepIconRegistry.registerIcons([
|
|
128
|
+
icon.pepIconSystemMove,
|
|
129
|
+
]);
|
|
130
|
+
}
|
|
131
|
+
return PepDraggableItemsModule;
|
|
132
|
+
}());
|
|
133
|
+
PepDraggableItemsModule.decorators = [
|
|
134
|
+
{ type: core.NgModule, args: [{
|
|
135
|
+
declarations: [
|
|
136
|
+
DraggableItemsComponent,
|
|
137
|
+
DraggableItemComponent
|
|
138
|
+
],
|
|
139
|
+
imports: [
|
|
140
|
+
common.CommonModule,
|
|
141
|
+
forms.ReactiveFormsModule,
|
|
142
|
+
ngxLib.PepNgxLibModule,
|
|
143
|
+
button.PepButtonModule,
|
|
144
|
+
icon.PepIconModule,
|
|
145
|
+
search.PepSearchModule,
|
|
146
|
+
dragDrop.DragDropModule
|
|
147
|
+
],
|
|
148
|
+
exports: [
|
|
149
|
+
DraggableItemsComponent,
|
|
150
|
+
DraggableItemComponent
|
|
151
|
+
],
|
|
152
|
+
},] }
|
|
153
|
+
];
|
|
154
|
+
PepDraggableItemsModule.ctorParameters = function () { return [
|
|
155
|
+
{ type: icon.PepIconRegistry }
|
|
156
|
+
]; };
|
|
157
|
+
|
|
158
|
+
/*
|
|
159
|
+
* Public API Surface of ngx-lib/draggable-items
|
|
160
|
+
*/
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Generated bundle index. Do not edit.
|
|
164
|
+
*/
|
|
165
|
+
|
|
166
|
+
exports.DraggableItemComponent = DraggableItemComponent;
|
|
167
|
+
exports.DraggableItemsComponent = DraggableItemsComponent;
|
|
168
|
+
exports.PepDraggableItemsModule = PepDraggableItemsModule;
|
|
169
|
+
|
|
170
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
171
|
+
|
|
172
|
+
})));
|
|
173
|
+
//# 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 @Input() title = '';\n @Input() data: any;\n @Input() disabled = false;\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, PepDraggableItemPlaceholderType, PepDraggableItemsTitleType } 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() showSearch = false;\n @Input() title = '';\n @Input() titleType: PepDraggableItemsTitleType = 'regular';\n @Input() allowMultiple = '';\n\n @Input() itemPlaceholderType: PepDraggableItemPlaceholderType = 'none';\n\n @Input() dropAreaIds = [];\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<IPepDraggableItem>> = new EventEmitter<CdkDragStart<IPepDraggableItem>>();\n @Output() itemDragEnded: EventEmitter<CdkDragEnd<IPepDraggableItem>> = new EventEmitter<CdkDragEnd<IPepDraggableItem>>();\n\n filteredItems$: Observable<any>;\n searchControl = new FormControl();\n numberItemsToShowSearch = 3;\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 private changeCursorOnDragStart() {\n document.body.classList.add('inheritCursors');\n document.body.style.cursor = 'grabbing';\n }\n\n private changeCursorOnDragEnd() {\n document.body.classList.remove('inheritCursors');\n document.body.style.cursor = 'unset';\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.changeCursorOnDragStart();\n this.itemDragStarted.emit(event);\n }\n\n onDragEnd(event: CdkDragEnd) {\n this.changeCursorOnDragEnd();\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';\nimport {\n PepIconModule,\n PepIconRegistry,\n pepIconSystemMove,\n} from '@pepperi-addons/ngx-lib/icon';\n\n@NgModule({\n declarations: [\n DraggableItemsComponent,\n DraggableItemComponent\n ],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n PepNgxLibModule,\n PepButtonModule,\n PepIconModule,\n PepSearchModule,\n DragDropModule\n ],\n exports: [\n DraggableItemsComponent,\n DraggableItemComponent\n ],\n})\nexport class PepDraggableItemsModule {\n constructor(private pepIconRegistry: PepIconRegistry) {\n this.pepIconRegistry.registerIcons([\n pepIconSystemMove,\n ]);\n }\n}\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","Input","EventEmitter","FormControl","Subject","takeUntil","startWith","map","Output","pepIconSystemMove","NgModule","CommonModule","ReactiveFormsModule","PepNgxLibModule","PepButtonModule","PepIconModule","PepSearchModule","DragDropModule","PepIconRegistry"],"mappings":";;;;;;;QAYI;YAJS,UAAK,GAAG,EAAE,CAAC;YA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C;YAC/B,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACpC;QAED,2CAAS,GAAT,UAAU,KAAiB;YACvB,IAAI,CAAC,qBAAqB,EAAE,CAAC;YAC7B,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SAClC;;;;gBAjGJP,cAAS,SAAC;oBACP,QAAQ,EAAE,qBAAqB;oBAC/B,2uCAA+C;;iBAElD;;;;6BAGIC,UAAK;wBACLA,UAAK;4BACLA,UAAK;gCACLA,UAAK;sCAELA,UAAK;8BAELA,UAAK;wBAGLA,UAAK;kCAcLO,WAAM;gCACNA,WAAM;;;;QCDP,iCAAoB,eAAgC;YAAhC,oBAAe,GAAf,eAAe,CAAiB;YAChD,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC;gBAC/BC,sBAAiB;aACpB,CAAC,CAAC;SACN;;;;gBAxBJC,aAAQ,SAAC;oBACN,YAAY,EAAE;wBACV,uBAAuB;wBACvB,sBAAsB;qBACzB;oBACD,OAAO,EAAE;wBACLC,mBAAY;wBACZC,yBAAmB;wBACnBC,sBAAe;wBACfC,sBAAe;wBACfC,kBAAa;wBACbC,sBAAe;wBACfC,uBAAc;qBACjB;oBACD,OAAO,EAAE;wBACL,uBAAuB;wBACvB,sBAAsB;qBACzB;iBACJ;;;gBAtBGC,oBAAe;;;ICdnB;;;;ICAA;;;;;;;;;;;;;;"}
|
|
@@ -2310,16 +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
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2317
|
+
if (this.selectedItemId.length > 0) {
|
|
2318
|
+
var tmp = this.selectedItemId.split(this.SEPARATOR);
|
|
2319
|
+
items.push(tmp[0]);
|
|
2320
|
+
itemTypes.push(tmp[1]);
|
|
2321
|
+
}
|
|
2318
2322
|
}
|
|
2319
2323
|
else if (this.selectionTypeForActions === 'multi') {
|
|
2320
|
-
var items_2 = [];
|
|
2321
|
-
var itemTypes_1 = [];
|
|
2322
|
-
var selectionType = 1;
|
|
2323
2324
|
var currentList_1 = [];
|
|
2324
2325
|
// For edit - only the selected items.
|
|
2325
2326
|
if (isForEdit) {
|
|
@@ -2346,14 +2347,14 @@
|
|
|
2346
2347
|
currentList_1.forEach(function (item) {
|
|
2347
2348
|
var tmp = item.split(_this.SEPARATOR);
|
|
2348
2349
|
if (tmp.length === 2) {
|
|
2349
|
-
|
|
2350
|
-
|
|
2350
|
+
items.push(tmp[0]);
|
|
2351
|
+
itemTypes.push(tmp[1]);
|
|
2351
2352
|
}
|
|
2352
2353
|
});
|
|
2353
|
-
res.selectionType = selectionType;
|
|
2354
|
-
res.rows = items_2;
|
|
2355
|
-
res.rowTypes = itemTypes_1;
|
|
2356
2354
|
}
|
|
2355
|
+
res.selectionType = selectionType;
|
|
2356
|
+
res.rows = items;
|
|
2357
|
+
res.rowTypes = itemTypes;
|
|
2357
2358
|
return res;
|
|
2358
2359
|
};
|
|
2359
2360
|
PepListComponent.prototype.getIsItemEditable = function (uid) {
|