@sebgroup/green-angular 3.5.1 → 3.6.0
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/esm2020/index.mjs +2 -1
- package/esm2020/lib/datepicker/datepicker.component.mjs +4 -1
- package/esm2020/lib/green-angular.module.mjs +7 -3
- package/esm2020/lib/sortable-list/index.mjs +3 -0
- package/esm2020/lib/sortable-list/sortable-list.component.mjs +181 -0
- package/esm2020/lib/sortable-list/sortable-list.module.mjs +20 -0
- package/fesm2015/sebgroup-green-angular.mjs +201 -3
- package/fesm2015/sebgroup-green-angular.mjs.map +1 -1
- package/fesm2020/sebgroup-green-angular.mjs +201 -3
- package/fesm2020/sebgroup-green-angular.mjs.map +1 -1
- package/index.d.ts +1 -0
- package/lib/datepicker/datepicker.component.d.ts +1 -1
- package/lib/green-angular.module.d.ts +2 -1
- package/lib/sortable-list/index.d.ts +2 -0
- package/lib/sortable-list/sortable-list.component.d.ts +91 -0
- package/lib/sortable-list/sortable-list.module.d.ts +10 -0
- package/package.json +2 -2
|
@@ -15,6 +15,8 @@ import * as i1$2 from '@angular/router';
|
|
|
15
15
|
import { RouterModule } from '@angular/router';
|
|
16
16
|
import { Subject, fromEvent, interval } from 'rxjs';
|
|
17
17
|
import { takeUntil, throttle } from 'rxjs/operators';
|
|
18
|
+
import * as i2$1 from '@angular/cdk/drag-drop';
|
|
19
|
+
import { moveItemInArray, transferArrayItem, DragDropModule } from '@angular/cdk/drag-drop';
|
|
18
20
|
import * as i1$3 from '@angular/platform-browser';
|
|
19
21
|
|
|
20
22
|
class NggAccordionListItemComponent {
|
|
@@ -428,6 +430,9 @@ class NggDatepickerComponent {
|
|
|
428
430
|
return this._value;
|
|
429
431
|
}
|
|
430
432
|
set value(newValue) {
|
|
433
|
+
if (typeof newValue === 'string') {
|
|
434
|
+
newValue = new Date(newValue);
|
|
435
|
+
}
|
|
431
436
|
if (newValue !== this._value) {
|
|
432
437
|
this._value = newValue || undefined;
|
|
433
438
|
}
|
|
@@ -1444,6 +1449,196 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1444
1449
|
}]
|
|
1445
1450
|
}] });
|
|
1446
1451
|
|
|
1452
|
+
class NggSortableListComponent {
|
|
1453
|
+
constructor() {
|
|
1454
|
+
this.groups = [];
|
|
1455
|
+
this.shouldDisplayCheckboxes = false;
|
|
1456
|
+
this.isReadOnly = false;
|
|
1457
|
+
this.isDraggable = true;
|
|
1458
|
+
this.description = '';
|
|
1459
|
+
this.suffixTemplate = null;
|
|
1460
|
+
this.itemSelectionChanged = new EventEmitter();
|
|
1461
|
+
this.itemOrderChanged = new EventEmitter();
|
|
1462
|
+
this.focusedIndex = { 0: 0 };
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* Toggles the selection of a checklist item and updates its position in the list.
|
|
1466
|
+
*
|
|
1467
|
+
* @param item - The checklist item to update.
|
|
1468
|
+
*/
|
|
1469
|
+
toggleSelection(item) {
|
|
1470
|
+
item.selected = !item.selected;
|
|
1471
|
+
this.emitCheckListItem(item);
|
|
1472
|
+
}
|
|
1473
|
+
/**
|
|
1474
|
+
* Handles the onDragDrop event.
|
|
1475
|
+
*
|
|
1476
|
+
* @param event - The drag and drop event.
|
|
1477
|
+
*/
|
|
1478
|
+
onDragDrop(event) {
|
|
1479
|
+
if (event.previousContainer === event.container) {
|
|
1480
|
+
moveItemInArray(event.container.data, event.previousIndex, event.currentIndex);
|
|
1481
|
+
}
|
|
1482
|
+
else {
|
|
1483
|
+
transferArrayItem(event.previousContainer.data, event.container.data, event.previousIndex, event.currentIndex);
|
|
1484
|
+
}
|
|
1485
|
+
this.emitItemOrderChanged([Number(event.previousContainer.id), event.previousIndex], [Number(event.container.id), event.currentIndex]);
|
|
1486
|
+
}
|
|
1487
|
+
/**
|
|
1488
|
+
* Handles moving items up or down using the alt + arrow up or alt + arrow down keys.
|
|
1489
|
+
*
|
|
1490
|
+
* @param groupIndex - The index of the group.
|
|
1491
|
+
* @param currentItemIndex - The current index of the item.
|
|
1492
|
+
* @param newItemIndex - The new index of the item.
|
|
1493
|
+
*/
|
|
1494
|
+
onAltArrowKeydown(groupIndex, currentItemIndex, newItemIndex, event) {
|
|
1495
|
+
event.preventDefault();
|
|
1496
|
+
let newIndex = newItemIndex;
|
|
1497
|
+
let newGroupIndex = groupIndex;
|
|
1498
|
+
let transfer = false;
|
|
1499
|
+
if (newIndex > this.groups[groupIndex].items.length - 1) {
|
|
1500
|
+
newIndex = 0;
|
|
1501
|
+
newGroupIndex = groupIndex + 1;
|
|
1502
|
+
transfer = true;
|
|
1503
|
+
this.focusedIndex[groupIndex] = this.groups[groupIndex].items.length - 2;
|
|
1504
|
+
}
|
|
1505
|
+
else if (newIndex < 0) {
|
|
1506
|
+
newGroupIndex = groupIndex - 1;
|
|
1507
|
+
newIndex = this.groups[newGroupIndex].items.length;
|
|
1508
|
+
transfer = true;
|
|
1509
|
+
this.focusedIndex[groupIndex] = 0;
|
|
1510
|
+
}
|
|
1511
|
+
if (transfer) {
|
|
1512
|
+
transferArrayItem(this.groups[groupIndex].items, this.groups[newGroupIndex].items, currentItemIndex, newIndex);
|
|
1513
|
+
}
|
|
1514
|
+
else {
|
|
1515
|
+
moveItemInArray(this.groups[groupIndex].items, currentItemIndex, newIndex);
|
|
1516
|
+
}
|
|
1517
|
+
this.emitItemOrderChanged([groupIndex, currentItemIndex], [newGroupIndex, newIndex]);
|
|
1518
|
+
setTimeout(() => {
|
|
1519
|
+
this.focusItem(newGroupIndex, newIndex);
|
|
1520
|
+
});
|
|
1521
|
+
}
|
|
1522
|
+
/**
|
|
1523
|
+
* Handles focus by arrow keydown event.
|
|
1524
|
+
*
|
|
1525
|
+
* @param groupIndex - The index of the group.
|
|
1526
|
+
* @param itemIndex - The index of the item.
|
|
1527
|
+
* @param event - The keyboard event.
|
|
1528
|
+
*/
|
|
1529
|
+
onArrowKeydown(groupIndex, itemIndex, event) {
|
|
1530
|
+
event.preventDefault();
|
|
1531
|
+
setTimeout(() => {
|
|
1532
|
+
let gi = groupIndex;
|
|
1533
|
+
if (itemIndex > this.groups[groupIndex].items.length - 1) {
|
|
1534
|
+
gi = groupIndex + 1;
|
|
1535
|
+
itemIndex = 0;
|
|
1536
|
+
}
|
|
1537
|
+
if (itemIndex < 0) {
|
|
1538
|
+
gi = groupIndex - 1;
|
|
1539
|
+
if (gi < 0) {
|
|
1540
|
+
return;
|
|
1541
|
+
}
|
|
1542
|
+
itemIndex = this.groups[gi].items.length - 1;
|
|
1543
|
+
}
|
|
1544
|
+
this.focusItem(gi, itemIndex);
|
|
1545
|
+
});
|
|
1546
|
+
}
|
|
1547
|
+
/**
|
|
1548
|
+
* Emits the item order changed event.
|
|
1549
|
+
*
|
|
1550
|
+
* @param previousIndex - The previous index of the item.
|
|
1551
|
+
* @param currentIndex - The current index of the item.
|
|
1552
|
+
*/
|
|
1553
|
+
emitItemOrderChanged(previousIndex, currentIndex) {
|
|
1554
|
+
this.itemOrderChanged.emit({
|
|
1555
|
+
previousIndex,
|
|
1556
|
+
currentIndex,
|
|
1557
|
+
groups: [...this.groups],
|
|
1558
|
+
});
|
|
1559
|
+
}
|
|
1560
|
+
/**
|
|
1561
|
+
* Emits the selected checklist item through an event.
|
|
1562
|
+
*
|
|
1563
|
+
* @param item - The checklist item to emit.
|
|
1564
|
+
*/
|
|
1565
|
+
emitCheckListItem(item) {
|
|
1566
|
+
this.itemSelectionChanged.emit({ changedItem: item, groups: this.groups });
|
|
1567
|
+
}
|
|
1568
|
+
/**
|
|
1569
|
+
* Focuses on a specific item in the sortable list.
|
|
1570
|
+
*
|
|
1571
|
+
* @param groupIndex - The index of the group.
|
|
1572
|
+
* @param itemIndex - The index of the item.
|
|
1573
|
+
*/
|
|
1574
|
+
focusItem(groupIndex, itemIndex) {
|
|
1575
|
+
const groupElements = this.sortableListGroups.nativeElement.querySelectorAll('.item-list-group');
|
|
1576
|
+
if (groupElements && groupElements.length > groupIndex) {
|
|
1577
|
+
const itemElements = groupElements[groupIndex].querySelectorAll('.item');
|
|
1578
|
+
if (itemElements && itemElements.length > itemIndex) {
|
|
1579
|
+
if (this.shouldDisplayCheckboxes) {
|
|
1580
|
+
itemElements[itemIndex].querySelector('input').focus();
|
|
1581
|
+
}
|
|
1582
|
+
else {
|
|
1583
|
+
itemElements[itemIndex].focus();
|
|
1584
|
+
}
|
|
1585
|
+
this.focusedIndex[groupIndex] = itemIndex;
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
/**
|
|
1590
|
+
* Checks if an item has focus.
|
|
1591
|
+
*
|
|
1592
|
+
* @param groupIndex - The index of the group.
|
|
1593
|
+
* @param itemIndex - The index of the item.
|
|
1594
|
+
*/
|
|
1595
|
+
itemHasFocus(groupIndex, itemIndex) {
|
|
1596
|
+
if (!this.focusedIndex[groupIndex]) {
|
|
1597
|
+
this.focusedIndex[groupIndex] = 0;
|
|
1598
|
+
}
|
|
1599
|
+
return this.focusedIndex[groupIndex] === itemIndex;
|
|
1600
|
+
}
|
|
1601
|
+
}
|
|
1602
|
+
NggSortableListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NggSortableListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1603
|
+
NggSortableListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: NggSortableListComponent, selector: "ngg-sortable-list", inputs: { groups: "groups", shouldDisplayCheckboxes: "shouldDisplayCheckboxes", isReadOnly: "isReadOnly", isDraggable: "isDraggable", description: "description", suffixTemplate: "suffixTemplate" }, outputs: { itemSelectionChanged: "itemSelectionChanged", itemOrderChanged: "itemOrderChanged" }, viewQueries: [{ propertyName: "sortableListGroups", first: true, predicate: ["sortableListGroups"], descendants: true }], ngImport: i0, template: "<div class=\"item-list\">\n <ng-container>\n <p class=\"item-list-header\">\n <span class=\"item-list-header-title\">{{ description }}</span>\n </p>\n <div #sortableListGroups cdkDropListGroup>\n <div\n *ngFor=\"let group of groups; let g_i = index\"\n class=\"item-list-group\"\n [class.drag-enabled]=\"isDraggable && !isReadOnly\"\n role=\"list\"\n cdkDropList\n [cdkDropListData]=\"group.items\"\n [id]=\"g_i.toString()\"\n (cdkDropListDropped)=\"onDragDrop($event)\"\n >\n <p\n *ngIf=\"group.title && group.title.length > 0\"\n class=\"item-list-header\"\n >\n <span class=\"item-list-header-title\">{{ group.title }}</span>\n </p>\n <p\n *ngIf=\"group.description && group.description.length > 0\"\n class=\"item-list-header-description\"\n >\n {{ group.description }}\n </p>\n <div\n *ngFor=\"let checklistItem of group.items; let i = index\"\n [cdkDragDisabled]=\"!isDraggable || isReadOnly\"\n [cdkDragData]=\"checklistItem\"\n cdkDrag\n cdkDragLockAxis=\"y\"\n class=\"item-box\"\n role=\"listitem\"\n >\n <div *cdkDragPlaceholder class=\"item-custom-placeholder\"></div>\n <label\n (keydown.alt.arrowDown)=\"onAltArrowKeydown(g_i, i, i + 1, $event)\"\n (keydown.alt.arrowUp)=\"onAltArrowKeydown(g_i, i, i - 1, $event)\"\n (keydown.arrowDown)=\"onArrowKeydown(g_i, i + 1, $event)\"\n (keydown.arrowUp)=\"onArrowKeydown(g_i, i - 1, $event)\"\n class=\"form-control item-control align-items-center item\"\n [tabindex]=\"shouldDisplayCheckboxes ? '-1' : '0'\"\n >\n <div class=\"form-control\">\n <input\n (change)=\"toggleSelection(checklistItem)\"\n [checked]=\"checklistItem.selected\"\n [disabled]=\"isReadOnly\"\n [type]=\"shouldDisplayCheckboxes ? 'checkbox' : 'hidden'\"\n />\n <div class=\"item-box-title\">\n <span name=\"agendaItemName\"\n >{{ checklistItem.name }}\n <span\n *ngIf=\"checklistItem.hasCustomSuffix\"\n class=\"item-list-suffix\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n suffixTemplate;\n context: { $implicit: checklistItem }\n \"\n class=\"user-icon\"\n >\n </ng-container>\n </span>\n </span>\n <br />\n <span *ngIf=\"!!checklistItem.description\">\n <span class=\"item-list-suffix\" name=\"agendaItemToolTip\">\n {{ checklistItem.description }}\n </span>\n <br />\n </span>\n </div>\n <i></i>\n </div>\n <div *ngIf=\"isDraggable && !isReadOnly\" class=\"item-grip-icon\">\n <i class=\"sg-icon sg-icon-grip-vertical text-primary\"></i>\n </div>\n </label>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n", styles: [".item-list{width:100%;display:block}label.item{padding:0!important}.item-box{background-color:var(--sg-card-background);color:var(--text-primary-color);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;font-size:14px;margin:5px 0;border:1px solid var(--border-color);border-radius:4px}.form-control{line-height:20px;font-size:16px;font-weight:500}.item-list-header{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:1rem}.item-list-header-title{font-weight:600;font-size:1rem;line-height:1.25rem;font-style:normal}.item-list-header-subtitle{font-size:.75rem;color:var(--text-primary-color);display:flex;justify-content:center;align-content:center}.item-list-suffix{font-weight:400;font-size:.85rem}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.item-grip-icon{font-weight:400;padding:.75rem 1rem .75rem 0rem}.cdk-drop-list.cdk-drop-list-dragging{cursor:grabbing!important;pointer-events:all!important}.item-custom-placeholder.cdk-drag-placeholder{pointer-events:all!important}.cdk-drop-list.drag-enabled:not(.cdk-drag-placeholder) label{cursor:grab}.cdk-drop-list label:focus-visible{outline-color:#333;outline-offset:4px}.item-list.cdk-drop-list-dragging .item-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1);pointer-events:all!important}.item-custom-placeholder{border:dotted 1px #999;min-height:44px;transition:transform .25s cubic-bezier(0,0,.2,1);border-radius:4px;margin:5px 0;padding:12px 12px 12px 16px}.user-icon{margin-right:.5rem}.item-control{width:100%;display:flex;flex-direction:row;justify-content:space-between}.form-control.item-layout{display:flex;justify-content:space-between}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2$1.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "cdkDropListData", "cdkDropListOrientation", "id", "cdkDropListLockAxis", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListAutoScrollDisabled", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { kind: "directive", type: i2$1.CdkDropListGroup, selector: "[cdkDropListGroup]", inputs: ["cdkDropListGroupDisabled"], exportAs: ["cdkDropListGroup"] }, { kind: "directive", type: i2$1.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragData", "cdkDragLockAxis", "cdkDragRootElement", "cdkDragBoundary", "cdkDragStartDelay", "cdkDragFreeDragPosition", "cdkDragDisabled", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragPreviewContainer"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { kind: "directive", type: i2$1.CdkDragPlaceholder, selector: "ng-template[cdkDragPlaceholder]", inputs: ["data"] }] });
|
|
1604
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NggSortableListComponent, decorators: [{
|
|
1605
|
+
type: Component,
|
|
1606
|
+
args: [{ selector: 'ngg-sortable-list', template: "<div class=\"item-list\">\n <ng-container>\n <p class=\"item-list-header\">\n <span class=\"item-list-header-title\">{{ description }}</span>\n </p>\n <div #sortableListGroups cdkDropListGroup>\n <div\n *ngFor=\"let group of groups; let g_i = index\"\n class=\"item-list-group\"\n [class.drag-enabled]=\"isDraggable && !isReadOnly\"\n role=\"list\"\n cdkDropList\n [cdkDropListData]=\"group.items\"\n [id]=\"g_i.toString()\"\n (cdkDropListDropped)=\"onDragDrop($event)\"\n >\n <p\n *ngIf=\"group.title && group.title.length > 0\"\n class=\"item-list-header\"\n >\n <span class=\"item-list-header-title\">{{ group.title }}</span>\n </p>\n <p\n *ngIf=\"group.description && group.description.length > 0\"\n class=\"item-list-header-description\"\n >\n {{ group.description }}\n </p>\n <div\n *ngFor=\"let checklistItem of group.items; let i = index\"\n [cdkDragDisabled]=\"!isDraggable || isReadOnly\"\n [cdkDragData]=\"checklistItem\"\n cdkDrag\n cdkDragLockAxis=\"y\"\n class=\"item-box\"\n role=\"listitem\"\n >\n <div *cdkDragPlaceholder class=\"item-custom-placeholder\"></div>\n <label\n (keydown.alt.arrowDown)=\"onAltArrowKeydown(g_i, i, i + 1, $event)\"\n (keydown.alt.arrowUp)=\"onAltArrowKeydown(g_i, i, i - 1, $event)\"\n (keydown.arrowDown)=\"onArrowKeydown(g_i, i + 1, $event)\"\n (keydown.arrowUp)=\"onArrowKeydown(g_i, i - 1, $event)\"\n class=\"form-control item-control align-items-center item\"\n [tabindex]=\"shouldDisplayCheckboxes ? '-1' : '0'\"\n >\n <div class=\"form-control\">\n <input\n (change)=\"toggleSelection(checklistItem)\"\n [checked]=\"checklistItem.selected\"\n [disabled]=\"isReadOnly\"\n [type]=\"shouldDisplayCheckboxes ? 'checkbox' : 'hidden'\"\n />\n <div class=\"item-box-title\">\n <span name=\"agendaItemName\"\n >{{ checklistItem.name }}\n <span\n *ngIf=\"checklistItem.hasCustomSuffix\"\n class=\"item-list-suffix\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n suffixTemplate;\n context: { $implicit: checklistItem }\n \"\n class=\"user-icon\"\n >\n </ng-container>\n </span>\n </span>\n <br />\n <span *ngIf=\"!!checklistItem.description\">\n <span class=\"item-list-suffix\" name=\"agendaItemToolTip\">\n {{ checklistItem.description }}\n </span>\n <br />\n </span>\n </div>\n <i></i>\n </div>\n <div *ngIf=\"isDraggable && !isReadOnly\" class=\"item-grip-icon\">\n <i class=\"sg-icon sg-icon-grip-vertical text-primary\"></i>\n </div>\n </label>\n </div>\n </div>\n </div>\n </ng-container>\n</div>\n", styles: [".item-list{width:100%;display:block}label.item{padding:0!important}.item-box{background-color:var(--sg-card-background);color:var(--text-primary-color);display:flex;flex-direction:row;align-items:center;justify-content:space-between;box-sizing:border-box;font-size:14px;margin:5px 0;border:1px solid var(--border-color);border-radius:4px}.form-control{line-height:20px;font-size:16px;font-weight:500}.item-list-header{display:flex;flex-direction:row;justify-content:space-between;margin-bottom:1rem}.item-list-header-title{font-weight:600;font-size:1rem;line-height:1.25rem;font-style:normal}.item-list-header-subtitle{font-size:.75rem;color:var(--text-primary-color);display:flex;justify-content:center;align-content:center}.item-list-suffix{font-weight:400;font-size:.85rem}.cdk-drag-preview{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-animating{transition:transform .25s cubic-bezier(0,0,.2,1)}.item-grip-icon{font-weight:400;padding:.75rem 1rem .75rem 0rem}.cdk-drop-list.cdk-drop-list-dragging{cursor:grabbing!important;pointer-events:all!important}.item-custom-placeholder.cdk-drag-placeholder{pointer-events:all!important}.cdk-drop-list.drag-enabled:not(.cdk-drag-placeholder) label{cursor:grab}.cdk-drop-list label:focus-visible{outline-color:#333;outline-offset:4px}.item-list.cdk-drop-list-dragging .item-box:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1);pointer-events:all!important}.item-custom-placeholder{border:dotted 1px #999;min-height:44px;transition:transform .25s cubic-bezier(0,0,.2,1);border-radius:4px;margin:5px 0;padding:12px 12px 12px 16px}.user-icon{margin-right:.5rem}.item-control{width:100%;display:flex;flex-direction:row;justify-content:space-between}.form-control.item-layout{display:flex;justify-content:space-between}\n"] }]
|
|
1607
|
+
}], propDecorators: { groups: [{
|
|
1608
|
+
type: Input
|
|
1609
|
+
}], shouldDisplayCheckboxes: [{
|
|
1610
|
+
type: Input
|
|
1611
|
+
}], isReadOnly: [{
|
|
1612
|
+
type: Input
|
|
1613
|
+
}], isDraggable: [{
|
|
1614
|
+
type: Input
|
|
1615
|
+
}], description: [{
|
|
1616
|
+
type: Input
|
|
1617
|
+
}], suffixTemplate: [{
|
|
1618
|
+
type: Input
|
|
1619
|
+
}], itemSelectionChanged: [{
|
|
1620
|
+
type: Output
|
|
1621
|
+
}], itemOrderChanged: [{
|
|
1622
|
+
type: Output
|
|
1623
|
+
}], sortableListGroups: [{
|
|
1624
|
+
type: ViewChild,
|
|
1625
|
+
args: ['sortableListGroups']
|
|
1626
|
+
}] } });
|
|
1627
|
+
|
|
1628
|
+
class NggSortableListModule {
|
|
1629
|
+
}
|
|
1630
|
+
NggSortableListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NggSortableListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1631
|
+
NggSortableListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.9", ngImport: i0, type: NggSortableListModule, declarations: [NggSortableListComponent], imports: [CommonModule, FormsModule, DragDropModule], exports: [NggSortableListComponent] });
|
|
1632
|
+
NggSortableListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NggSortableListModule, imports: [CommonModule, FormsModule, DragDropModule] });
|
|
1633
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NggSortableListModule, decorators: [{
|
|
1634
|
+
type: NgModule,
|
|
1635
|
+
args: [{
|
|
1636
|
+
imports: [CommonModule, FormsModule, DragDropModule],
|
|
1637
|
+
exports: [NggSortableListComponent],
|
|
1638
|
+
declarations: [NggSortableListComponent],
|
|
1639
|
+
}]
|
|
1640
|
+
}] });
|
|
1641
|
+
|
|
1447
1642
|
class SlidingUnderlineDirective {
|
|
1448
1643
|
constructor(element) {
|
|
1449
1644
|
this.element = element;
|
|
@@ -1717,7 +1912,8 @@ NggModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
|
1717
1912
|
NggContextMenuModule,
|
|
1718
1913
|
NggInPageWizardModule,
|
|
1719
1914
|
NggCellTableModule,
|
|
1720
|
-
NggSharedModule
|
|
1915
|
+
NggSharedModule,
|
|
1916
|
+
NggSortableListModule] });
|
|
1721
1917
|
NggModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NggModule, imports: [CommonModule, NggAccordionModule,
|
|
1722
1918
|
NggBadgeModule,
|
|
1723
1919
|
NggButtonModule,
|
|
@@ -1730,7 +1926,8 @@ NggModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
|
1730
1926
|
NggContextMenuModule,
|
|
1731
1927
|
NggInPageWizardModule,
|
|
1732
1928
|
NggCellTableModule,
|
|
1733
|
-
NggSharedModule
|
|
1929
|
+
NggSharedModule,
|
|
1930
|
+
NggSortableListModule] });
|
|
1734
1931
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: NggModule, decorators: [{
|
|
1735
1932
|
type: NgModule,
|
|
1736
1933
|
args: [{
|
|
@@ -1750,6 +1947,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1750
1947
|
NggInPageWizardModule,
|
|
1751
1948
|
NggCellTableModule,
|
|
1752
1949
|
NggSharedModule,
|
|
1950
|
+
NggSortableListModule,
|
|
1753
1951
|
],
|
|
1754
1952
|
}]
|
|
1755
1953
|
}] });
|
|
@@ -1943,5 +2141,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImpor
|
|
|
1943
2141
|
* Generated bundle index. Do not edit.
|
|
1944
2142
|
*/
|
|
1945
2143
|
|
|
1946
|
-
export { NggAccordionComponent, NggAccordionListItemComponent, NggAccordionModule, NggBadgeComponent, NggBadgeModule, NggButtonComponent, NggButtonModule, NggCellTableComponent, NggCellTableModule, NggContextMenuComponent, NggContextMenuModule, NggCoreElementDirective, NggCoreWrapperModule, NggDatepickerComponent, NggDatepickerModule, NggDropdownButtonDirective, NggDropdownComponent, NggDropdownModule, NggDropdownOptionDirective, NggInPageWizardModule, NggInPageWizardStepCardComponent, NggModalBodyComponent, NggModalComponent, NggModalFooterComponent, NggModalFooterDirective, NggModalHeaderComponent, NggModalHeaderDirective, NggModalModule, NggModule, NggOnScrollDirective, NggPaginationComponent, NggPaginationModule, NggProgressCircleComponent, NggProgressCircleModule, NggSegmentedControlComponent, NggSegmentedControlModule, NggSharedModule, NggSliderComponent, NggSliderModule, ON_SCROLL_TOKEN, dateValidator };
|
|
2144
|
+
export { NggAccordionComponent, NggAccordionListItemComponent, NggAccordionModule, NggBadgeComponent, NggBadgeModule, NggButtonComponent, NggButtonModule, NggCellTableComponent, NggCellTableModule, NggContextMenuComponent, NggContextMenuModule, NggCoreElementDirective, NggCoreWrapperModule, NggDatepickerComponent, NggDatepickerModule, NggDropdownButtonDirective, NggDropdownComponent, NggDropdownModule, NggDropdownOptionDirective, NggInPageWizardModule, NggInPageWizardStepCardComponent, NggModalBodyComponent, NggModalComponent, NggModalFooterComponent, NggModalFooterDirective, NggModalHeaderComponent, NggModalHeaderDirective, NggModalModule, NggModule, NggOnScrollDirective, NggPaginationComponent, NggPaginationModule, NggProgressCircleComponent, NggProgressCircleModule, NggSegmentedControlComponent, NggSegmentedControlModule, NggSharedModule, NggSliderComponent, NggSliderModule, NggSortableListComponent, NggSortableListModule, ON_SCROLL_TOKEN, dateValidator };
|
|
1947
2145
|
//# sourceMappingURL=sebgroup-green-angular.mjs.map
|