@wizishop/angular-components 0.0.197 → 0.0.200

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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('@ngx-translate/core'), require('@angular/router'), require('ngx-autosize'), require('ngx-scrollbar'), require('ngx-scrollbar/reached-event')) :
3
- typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', '@ngx-translate/core', '@angular/router', 'ngx-autosize', 'ngx-scrollbar', 'ngx-scrollbar/reached-event'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global['@ngx-translate/core'], global.ng.router, global.ngxAutosize, global.ngxScrollbar, global.reachedEvent));
5
- }(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, core, router, ngxAutosize, ngxScrollbar, reachedEvent) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@wizishop/ng-wizi-bulma'), require('@angular/core'), require('@angular/common'), require('@angular/forms'), require('ngx-perfect-scrollbar'), require('rxjs'), require('rxjs/operators'), require('@angular/cdk/overlay'), require('@angular/cdk/table'), require('@angular/animations'), require('ngx-chips'), require('@ngx-translate/core'), require('@angular/router'), require('ngx-autosize'), require('ngx-scrollbar'), require('ngx-scrollbar/reached-event'), require('@angular/cdk/drag-drop')) :
3
+ typeof define === 'function' && define.amd ? define('@wizishop/angular-components', ['exports', '@wizishop/ng-wizi-bulma', '@angular/core', '@angular/common', '@angular/forms', 'ngx-perfect-scrollbar', 'rxjs', 'rxjs/operators', '@angular/cdk/overlay', '@angular/cdk/table', '@angular/animations', 'ngx-chips', '@ngx-translate/core', '@angular/router', 'ngx-autosize', 'ngx-scrollbar', 'ngx-scrollbar/reached-event', '@angular/cdk/drag-drop'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.wizishop = global.wizishop || {}, global.wizishop['angular-components'] = {}), global['ng-wizi-bulma'], global.ng.core, global.ng.common, global.ng.forms, global['ngx-perfect-scrollbar'], global.rxjs, global.rxjs.operators, global.ng.cdk.overlay, global.ng.cdk.table, global.ng.animations, global['ngx-chips'], global['@ngx-translate/core'], global.ng.router, global.ngxAutosize, global.ngxScrollbar, global.reachedEvent, global.ng.cdk.dragDrop));
5
+ }(this, (function (exports, i1$1, i0, common, forms, ngxPerfectScrollbar, rxjs, operators, i1, table, animations, ngxChips, core, router, ngxAutosize, ngxScrollbar, reachedEvent, dragDrop) { 'use strict';
6
6
 
7
7
  /*! *****************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -4569,6 +4569,32 @@
4569
4569
  ];
4570
4570
  WrapperMultipleBlockComponent.ctorParameters = function () { return []; };
4571
4571
 
4572
+ var DraganddropListComponent = /** @class */ (function () {
4573
+ function DraganddropListComponent() {
4574
+ this.itemsChange = new i0.EventEmitter();
4575
+ }
4576
+ DraganddropListComponent.prototype.drop = function (event) {
4577
+ dragDrop.moveItemInArray(this.items, event.previousIndex, event.currentIndex);
4578
+ this.itemsChange.emit(this.items);
4579
+ };
4580
+ DraganddropListComponent.prototype.delete = function (index) {
4581
+ this.items = this.items.filter(function (value, i) { return i !== index; });
4582
+ this.itemsChange.emit(this.items);
4583
+ };
4584
+ return DraganddropListComponent;
4585
+ }());
4586
+ DraganddropListComponent.decorators = [
4587
+ { type: i0.Component, args: [{
4588
+ selector: 'wac-draganddrop-list',
4589
+ template: "<div class=\"wac-draganddrop-list\">\n <div class=\"wac-draganddrop-list__wrapper\" cdkDropList (cdkDropListDropped)=\"drop($event)\">\n <div class=\"wac-draganddrop-list__wrapper__item\" *ngFor=\"let item of items;let i = index;\" cdkDrag>\n <div>\n <span class=\"wac-draganddrop-list__wrapper__item__icon\">\n <span></span>\n </span>\n <span class=\"wac-draganddrop-list__wrapper__item__label\" [innerHTML]=\"item\"></span>\n </div>\n <div>\n <wac-button [iconFontSize]=\"'14px'\" [opacity]=\"true\" [icon]=\"'fa-regular fa-trash-can'\" [extraClasses]=\"'is-danger'\" (click)=\"delete(i)\"></wac-button>\n </div>\n </div>\n </div>\n</div>\n",
4590
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
4591
+ },] }
4592
+ ];
4593
+ DraganddropListComponent.propDecorators = {
4594
+ items: [{ type: i0.Input }],
4595
+ itemsChange: [{ type: i0.Output }]
4596
+ };
4597
+
4572
4598
  var components = [
4573
4599
  TagComponent,
4574
4600
  TabComponent,
@@ -4619,7 +4645,8 @@
4619
4645
  ConfirmDeleteComponent,
4620
4646
  MosaicComponent,
4621
4647
  ContentWithButtonsComponent,
4622
- WrapperMultipleBlockComponent
4648
+ WrapperMultipleBlockComponent,
4649
+ DraganddropListComponent
4623
4650
  ];
4624
4651
  var exportsFromModule = [
4625
4652
  PaginationComponent,
@@ -4653,6 +4680,7 @@
4653
4680
  SharedPipes,
4654
4681
  table.CdkTableModule,
4655
4682
  ngxChips.TagInputModule,
4683
+ dragDrop.DragDropModule,
4656
4684
  PaginationModule,
4657
4685
  TableModule,
4658
4686
  InputSearchModule,
@@ -4734,6 +4762,7 @@
4734
4762
  exports.ContentWithButtonsComponent = ContentWithButtonsComponent;
4735
4763
  exports.DebounceKeyupDirective = DebounceKeyupDirective;
4736
4764
  exports.DeleteComponent = DeleteComponent;
4765
+ exports.DraganddropListComponent = DraganddropListComponent;
4737
4766
  exports.DropdownComponent = DropdownComponent;
4738
4767
  exports.FiltersComponent = FiltersComponent;
4739
4768
  exports.FiltersTableService = FiltersTableService;