ng-tailwind 2.27.350 → 2.27.351
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/ng-tailwind.umd.js +5 -1
- package/bundles/ng-tailwind.umd.js.map +1 -1
- package/components/ngt-datatable/ngt-datatable.component.d.ts +2 -0
- package/esm2015/components/ngt-datatable/ngt-datatable.component.js +6 -2
- package/fesm2015/ng-tailwind.js +5 -1
- package/fesm2015/ng-tailwind.js.map +1 -1
- package/ng-tailwind.metadata.json +1 -1
- package/package.json +1 -1
|
@@ -3815,6 +3815,8 @@
|
|
|
3815
3815
|
this.ngtTranslateService = ngtTranslateService;
|
|
3816
3816
|
this.type = exports.NgtDatatableType.REMOTE;
|
|
3817
3817
|
this.filterTagBgColor = 'bg-blue-500';
|
|
3818
|
+
this.filterTagMargin = 'mb-4';
|
|
3819
|
+
this.paginationMargin = 'mt-2 md:mt-8';
|
|
3818
3820
|
this.searchDelay = 500;
|
|
3819
3821
|
this.searchTermMinLength = 1;
|
|
3820
3822
|
this.searchTermOnEnter = true;
|
|
@@ -4172,7 +4174,7 @@
|
|
|
4172
4174
|
NgtDatatableComponent.decorators = [
|
|
4173
4175
|
{ type: core.Component, args: [{
|
|
4174
4176
|
selector: 'ngt-datatable',
|
|
4175
|
-
template: "<div class=\"w-full\">\n <div class=\"flex flex-wrap w-full\">\n <ngt-tag *ngIf=\"hasAppliedFilters()\"
|
|
4177
|
+
template: "<div class=\"w-full\">\n <div class=\"flex flex-wrap w-full\">\n <ngt-tag *ngIf=\"hasAppliedFilters()\" class=\"w-full sm:w-auto {{ filterTagMargin }}\"\n [class.sm:mr-4]=\"filterTagMargin == 'mb-4'\" color.bg=\"bg-red-500\" (click)=\"removeFilter()\" ngt-stylizable>\n Limpar Filtros\n </ngt-tag>\n\n <ng-container *ngIf=\"hasAppliedFilters()\">\n <ng-container *ngFor=\"let filter of filtersTranslated\">\n <ngt-tag class=\"w-full sm:w-auto {{ filterTagMargin }}\" [class.sm:mr-4]=\"filterTagMargin == 'mb-4'\"\n [color.bg]=\"filterTagBgColor\" (click)=\"removeFilter(filter.reference)\" ngt-stylizable>\n {{ filter.translation + ': ' + (filter?.value?.tagValue ? filter.value.tagValue : filter.value)}}\n </ngt-tag>\n </ng-container>\n </ng-container>\n </div>\n\n <table style=\"display: table;\" class=\"text-left w-full border-collapse table-responsive\" #table>\n <ng-content></ng-content>\n </table>\n\n <p *ngIf=\"emptyStateVisible\" class=\"mt-8 mx-auto self-center text-center text-xl\">\n {{ ngtTranslateService.ngtDatatableNoDataFound }}\n </p>\n\n <div *ngIf=\"loading\">\n <div *ngFor=\"let i of [1, 2, 3, 4]\" class=\"flex w-full mt-3\">\n <ng-container *ngIf=\"columnCount.length >= 2\">\n <ng-container *ngFor=\"let j of columnCount; let last = last\">\n <ng-container *ngIf=\"last\">\n <ngt-shining class=\"h-10 w-full\"></ngt-shining>\n </ng-container>\n\n <ng-container *ngIf=\"!last\">\n <ngt-shining class=\"h-10 w-full mr-10\"></ngt-shining>\n </ng-container>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"columnCount.length < 2\">\n <ngt-shining class=\"h-10 w-full\"></ngt-shining>\n <ngt-shining class=\"h-10 w-full mr-10 ml-10\"></ngt-shining>\n <ngt-shining class=\"h-10 w-full\"></ngt-shining>\n </ng-container>\n </div>\n </div>\n</div>\n\n<div class=\"clearfix {{ paginationMargin }}\" [hidden]='!data || data.length == 0'>\n <ngt-pagination [pagesInterval]='4' (onPageChange)='apply($event, false)' (onPerPageChange)='apply(1, false)'\n #ngtPagination>\n </ngt-pagination>\n</div>\n\n<ngt-modal #searchModal [customLayout]='true'>\n <ng-container *ngTemplateOutlet=\"searchModalTemplate\"></ng-container>\n</ngt-modal>",
|
|
4176
4178
|
styles: ["@media (max-width:767px){.table-responsive{display:block;position:relative;width:100%}.table-responsive tbody,.table-responsive td,.table-responsive th,.table-responsive thead,.table-responsive tr{display:block}.table-responsive td,.table-responsive th{height:50px}.table-responsive thead{float:left;margin-bottom:15px}.table-responsive tbody{width:auto;position:relative;overflow-x:auto;-webkit-overflow-scrolling:touch;white-space:nowrap}.table-responsive tbody tr{display:inline-block;min-width:100%}}"]
|
|
4177
4179
|
},] }
|
|
4178
4180
|
];
|
|
@@ -4189,6 +4191,8 @@
|
|
|
4189
4191
|
remoteResource: [{ type: core.Input }],
|
|
4190
4192
|
type: [{ type: core.Input }],
|
|
4191
4193
|
filterTagBgColor: [{ type: core.Input }],
|
|
4194
|
+
filterTagMargin: [{ type: core.Input }],
|
|
4195
|
+
paginationMargin: [{ type: core.Input }],
|
|
4192
4196
|
inputSearch: [{ type: core.Input }],
|
|
4193
4197
|
searchDelay: [{ type: core.Input }],
|
|
4194
4198
|
searchTermMinLength: [{ type: core.Input }],
|