@wizishop/angular-components 0.0.198 → 0.0.201

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,38 @@
4569
4569
  ];
4570
4570
  WrapperMultipleBlockComponent.ctorParameters = function () { return []; };
4571
4571
 
4572
+ var DraganddropListComponent = /** @class */ (function () {
4573
+ function DraganddropListComponent() {
4574
+ this.disable = false;
4575
+ this.itemsChange = new i0.EventEmitter();
4576
+ }
4577
+ DraganddropListComponent.prototype.drop = function (event) {
4578
+ if (!this.disable) {
4579
+ dragDrop.moveItemInArray(this.items, event.previousIndex, event.currentIndex);
4580
+ this.itemsChange.emit(this.items);
4581
+ }
4582
+ };
4583
+ DraganddropListComponent.prototype.delete = function (index) {
4584
+ if (!this.disable) {
4585
+ this.items = this.items.filter(function (value, i) { return i !== index; });
4586
+ this.itemsChange.emit(this.items);
4587
+ }
4588
+ };
4589
+ return DraganddropListComponent;
4590
+ }());
4591
+ DraganddropListComponent.decorators = [
4592
+ { type: i0.Component, args: [{
4593
+ selector: 'wac-draganddrop-list',
4594
+ template: "<div class=\"wac-draganddrop-list\" *ngIf=\"!disable\">\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\n<div class=\"wac-draganddrop-list wac-draganddrop-list--disabled\" *ngIf=\"disable\">\n <div class=\"wac-draganddrop-list__wrapper\">\n <div class=\"wac-draganddrop-list__wrapper__item\" *ngFor=\"let item of items;let i = index;\">\n <div>\n <span class=\"wac-draganddrop-list__wrapper__item__label\" [innerHTML]=\"item\"></span>\n </div>\n </div>\n </div>\n</div>\n",
4595
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
4596
+ },] }
4597
+ ];
4598
+ DraganddropListComponent.propDecorators = {
4599
+ items: [{ type: i0.Input }],
4600
+ disable: [{ type: i0.Input }],
4601
+ itemsChange: [{ type: i0.Output }]
4602
+ };
4603
+
4572
4604
  var components = [
4573
4605
  TagComponent,
4574
4606
  TabComponent,
@@ -4619,7 +4651,8 @@
4619
4651
  ConfirmDeleteComponent,
4620
4652
  MosaicComponent,
4621
4653
  ContentWithButtonsComponent,
4622
- WrapperMultipleBlockComponent
4654
+ WrapperMultipleBlockComponent,
4655
+ DraganddropListComponent
4623
4656
  ];
4624
4657
  var exportsFromModule = [
4625
4658
  PaginationComponent,
@@ -4653,6 +4686,7 @@
4653
4686
  SharedPipes,
4654
4687
  table.CdkTableModule,
4655
4688
  ngxChips.TagInputModule,
4689
+ dragDrop.DragDropModule,
4656
4690
  PaginationModule,
4657
4691
  TableModule,
4658
4692
  InputSearchModule,
@@ -4734,6 +4768,7 @@
4734
4768
  exports.ContentWithButtonsComponent = ContentWithButtonsComponent;
4735
4769
  exports.DebounceKeyupDirective = DebounceKeyupDirective;
4736
4770
  exports.DeleteComponent = DeleteComponent;
4771
+ exports.DraganddropListComponent = DraganddropListComponent;
4737
4772
  exports.DropdownComponent = DropdownComponent;
4738
4773
  exports.FiltersComponent = FiltersComponent;
4739
4774
  exports.FiltersTableService = FiltersTableService;