@den4ik92/ng2-smart-table 19.2.0 → 19.2.1
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/fesm2022/den4ik92-ng2-smart-table.mjs +110 -217
- package/fesm2022/den4ik92-ng2-smart-table.mjs.map +1 -1
- package/lib/components/cell/cell-edit-mode/build-in-editor.component.d.ts +1 -1
- package/lib/components/cell/cell-edit-mode/custom-edit.component.d.ts +2 -2
- package/lib/components/filter/build-in-filter.component.d.ts +2 -1
- package/lib/components/filter/custom-filter.component.d.ts +2 -1
- package/lib/components/filter/filter-types/base-filter.component.d.ts +1 -1
- package/lib/components/pager/pager.component.d.ts +2 -2
- package/lib/components/table-columns-editor/column-editor.directive.d.ts +3 -3
- package/lib/components/table-columns-editor/table-columns-editor.component.d.ts +3 -3
- package/lib/components/tbody/cells/custom.component.d.ts +4 -4
- package/lib/components/tbody/cells/edit-delete.component.d.ts +4 -4
- package/lib/components/tbody/tbody.component.d.ts +3 -3
- package/lib/components/thead/cells/add-button.component.d.ts +2 -2
- package/lib/components/thead/cells/column-title.component.d.ts +2 -2
- package/lib/components/thead/cells/title/title.component.d.ts +2 -2
- package/lib/components/thead/rows/thead-filters-row.component.d.ts +2 -2
- package/lib/components/thead/rows/thead-form-row.component.d.ts +3 -3
- package/lib/components/thead/rows/thead-titles-row.component.d.ts +2 -2
- package/lib/components/thead/thead.component.d.ts +3 -3
- package/lib/lib/data-source/local/local.filter.d.ts +1 -1
- package/lib/lib/data-source/server/server.data-source.d.ts +1 -1
- package/lib/lib/grid.d.ts +1 -1
- package/lib/lib/interfaces/smart-table.models.d.ts +1 -1
- package/lib/ng2-smart-table.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -7,7 +7,6 @@ import { Overlay, OverlayConfig } from '@angular/cdk/overlay';
|
|
|
7
7
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
8
8
|
import { Subject } from 'rxjs';
|
|
9
9
|
import { moveItemInArray, CdkDropList, CdkDrag, CdkDragPlaceholder } from '@angular/cdk/drag-drop';
|
|
10
|
-
import { SmartTableOnChangedEventName as SmartTableOnChangedEventName$1, BaseEditorComponent as BaseEditorComponent$1 } from 'ng2-smart-table';
|
|
11
10
|
import { NgComponentOutlet, NgTemplateOutlet } from '@angular/common';
|
|
12
11
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
13
12
|
|
|
@@ -179,7 +178,7 @@ function getLocalStorage(key) {
|
|
|
179
178
|
|
|
180
179
|
class TableColumnsEditorComponent {
|
|
181
180
|
constructor() {
|
|
182
|
-
this.infoText =
|
|
181
|
+
this.infoText = 'You can drag and drop columns as you wish and also disable unnecessary ones.';
|
|
183
182
|
this.grid = input();
|
|
184
183
|
this.close = input.required();
|
|
185
184
|
this.currentState = [];
|
|
@@ -213,7 +212,7 @@ class TableColumnsEditorComponent {
|
|
|
213
212
|
}
|
|
214
213
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TableColumnsEditorComponent, decorators: [{
|
|
215
214
|
type: Component,
|
|
216
|
-
args: [{ selector:
|
|
215
|
+
args: [{ selector: 'ng2-table-columns-editor', imports: [CdkDropList, CdkDrag, CdkDragPlaceholder], template: "<div class=\"sort-card\">\n <div class=\"sort-card-header\">\n <h6>Table columns setup</h6>\n </div>\n <div class=\"sort-card-body\">\n <div\n class=\"list\"\n cdkDropList\n [cdkDropListData]=\"currentState\"\n (cdkDropListDropped)=\"drop($event)\"\n >\n @for (column of currentState; track column.key + i; let i = $index) {\n\n <div\n cdkDrag\n [cdkDragLockAxis]=\"'y'\"\n [cdkDragStartDelay]=\"300\"\n [cdkDragDisabled]=\"column.moveDisabled\"\n class=\"drag-row\"\n #dragRow\n [style.--drag-row-height]=\"50\"\n >\n <div class=\"drag-placeholder\" *cdkDragPlaceholder></div>\n <div class=\"index-cell\">\n {{ i + 1 }}\n </div>\n <label class=\"sort-column-checkbox-wrap\" [for]=\"'sort-column-checkbox-' + i\">\n <span></span>\n <input\n [disabled]=\"column.moveDisabled\"\n [id]=\"'sort-column-checkbox-' + i\"\n title=\"Active state. If checked the column will be displayed\"\n type=\"checkbox\"\n class=\"sort-column-checkbox-input\"\n [checked]=\"!column.hide\"\n (change)=\"setVisibility(i)\"\n />\n <span></span>\n </label>\n {{ column.title }}\n </div>\n }\n </div>\n </div>\n @if (stateHasChanged()) {\n <div class=\"sort-card-footer\">\n <button class=\"reset-button\" (click)=\"resetChanges()\">reset</button>\n <button class=\"update-button\" (click)=\"setAndUpdate()\">Update</button>\n </div>\n }\n</div>\n", styles: [".list{overflow:auto;display:flex;flex-direction:column;gap:.3rem;max-height:100%}.drag-row{border:solid 1px var(--drag-row-border-color, #ccc);border-radius:.3rem;display:flex;align-items:center;box-sizing:border-box;cursor:grab;background:var(--drag-row-background, #ffffff);box-shadow:0 0 6px 1px #ebebeb33}.drag-row.cdk-drag-disabled{filter:opacity(.5);cursor:not-allowed}.drag-row .index-cell{min-width:2.2rem;border-right:1px solid var(--drag-row-border-color, #ccc)}.drag-row>div{padding:.3rem}.drag-row .sort-column-checkbox-wrap{margin:0 .5rem}.cdk-drag-preview{box-sizing:border-box;border-radius:.3rem;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)}.list.cdk-drop-list-dragging .drag-row:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}.drag-placeholder{background:var(--drag-placeholder-background, #ccc);border:dotted 3px #999;min-height:var(--drag-row-heightpx, 2.5rem);transition:transform .25s cubic-bezier(0,0,.2,1)}.overlay-card nb-card-body{padding:.25rem;max-height:100%}.sort-card{box-shadow:0 0 6px 1px #0003;min-width:18rem;padding:.25rem;max-height:80dvh;background:var(--sort-card-background, #ffffff);border-radius:.5rem}.sort-card .sort-card-header{display:flex;align-items:center;gap:1rem;padding:1rem;border-bottom:1px solid var(--sort-card-header-divider-color, #edf1f7)}.sort-card .sort-card-header h6{margin:0}.sort-card .sort-card-body{padding:.5rem 0}.sort-card .sort-card-footer{border-top:1px solid var(--sort-card-header-divider-color, #edf1f7);display:flex;align-items:center;justify-content:end;gap:1rem;padding:1rem}.sort-card .sort-card-footer .update-button,.sort-card .sort-card-footer .reset-button{border-radius:.3rem;padding:.4rem 1rem;border:none;color:#fff;font-size:.875rem;font-weight:700;text-transform:uppercase}.sort-card .sort-card-footer .update-button{background-color:#36f}.sort-card .sort-card-footer .update-button:hover{background-color:#598bff}.sort-card .sort-card-footer .reset-button{background-color:#ff3d71}.sort-card .sort-card-footer .reset-button:hover{background-color:#ff708d}\n"] }]
|
|
217
216
|
}], ctorParameters: () => [] });
|
|
218
217
|
|
|
219
218
|
class SmartTableColumnEditorDirective {
|
|
@@ -235,9 +234,12 @@ class SmartTableColumnEditorDirective {
|
|
|
235
234
|
this.overlayRef = this.overlay.create(this.getOverlayConfig());
|
|
236
235
|
const componentPortal = new ComponentPortal(TableColumnsEditorComponent);
|
|
237
236
|
const dropdownRef = this.overlayRef.attach(componentPortal);
|
|
238
|
-
dropdownRef.setInput(
|
|
239
|
-
dropdownRef.setInput(
|
|
240
|
-
this.overlayRef
|
|
237
|
+
dropdownRef.setInput('grid', this.grid());
|
|
238
|
+
dropdownRef.setInput('close', this.hide.bind(this));
|
|
239
|
+
this.overlayRef
|
|
240
|
+
?.backdropClick()
|
|
241
|
+
.pipe(takeUntil(this.destroy$))
|
|
242
|
+
.subscribe(() => this.hide());
|
|
241
243
|
}
|
|
242
244
|
hide() {
|
|
243
245
|
this.overlayRef?.detach();
|
|
@@ -254,46 +256,46 @@ class SmartTableColumnEditorDirective {
|
|
|
254
256
|
.withPush(false)
|
|
255
257
|
.withPositions([
|
|
256
258
|
{
|
|
257
|
-
originX:
|
|
258
|
-
originY:
|
|
259
|
-
overlayX:
|
|
260
|
-
overlayY:
|
|
259
|
+
originX: 'center',
|
|
260
|
+
originY: 'bottom',
|
|
261
|
+
overlayX: 'end',
|
|
262
|
+
overlayY: 'top',
|
|
261
263
|
},
|
|
262
264
|
{
|
|
263
|
-
originX:
|
|
264
|
-
originY:
|
|
265
|
-
overlayX:
|
|
266
|
-
overlayY:
|
|
265
|
+
originX: 'center',
|
|
266
|
+
originY: 'bottom',
|
|
267
|
+
overlayX: 'center',
|
|
268
|
+
overlayY: 'top',
|
|
267
269
|
},
|
|
268
270
|
{
|
|
269
|
-
originX:
|
|
270
|
-
originY:
|
|
271
|
-
overlayX:
|
|
272
|
-
overlayY:
|
|
271
|
+
originX: 'center',
|
|
272
|
+
originY: 'bottom',
|
|
273
|
+
overlayX: 'start',
|
|
274
|
+
overlayY: 'top',
|
|
273
275
|
},
|
|
274
276
|
{
|
|
275
|
-
originX:
|
|
276
|
-
originY:
|
|
277
|
-
overlayX:
|
|
278
|
-
overlayY:
|
|
277
|
+
originX: 'center',
|
|
278
|
+
originY: 'top',
|
|
279
|
+
overlayX: 'start',
|
|
280
|
+
overlayY: 'bottom',
|
|
279
281
|
},
|
|
280
282
|
{
|
|
281
|
-
originX:
|
|
282
|
-
originY:
|
|
283
|
-
overlayX:
|
|
284
|
-
overlayY:
|
|
283
|
+
originX: 'center',
|
|
284
|
+
originY: 'top',
|
|
285
|
+
overlayX: 'center',
|
|
286
|
+
overlayY: 'bottom',
|
|
285
287
|
},
|
|
286
288
|
{
|
|
287
|
-
originX:
|
|
288
|
-
originY:
|
|
289
|
-
overlayX:
|
|
290
|
-
overlayY:
|
|
289
|
+
originX: 'center',
|
|
290
|
+
originY: 'top',
|
|
291
|
+
overlayX: 'start',
|
|
292
|
+
overlayY: 'bottom',
|
|
291
293
|
},
|
|
292
294
|
]);
|
|
293
295
|
return new OverlayConfig({
|
|
294
296
|
positionStrategy: positionStrategy,
|
|
295
297
|
hasBackdrop: true,
|
|
296
|
-
backdropClass:
|
|
298
|
+
backdropClass: 'cdk-overlay-transparent-backdrop',
|
|
297
299
|
});
|
|
298
300
|
}
|
|
299
301
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SmartTableColumnEditorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -302,9 +304,9 @@ class SmartTableColumnEditorDirective {
|
|
|
302
304
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: SmartTableColumnEditorDirective, decorators: [{
|
|
303
305
|
type: Directive,
|
|
304
306
|
args: [{
|
|
305
|
-
selector:
|
|
307
|
+
selector: '[ng2SmartTableColumnEditor]',
|
|
306
308
|
host: {
|
|
307
|
-
|
|
309
|
+
'(click)': 'buttclicked()',
|
|
308
310
|
},
|
|
309
311
|
}]
|
|
310
312
|
}] });
|
|
@@ -755,11 +757,11 @@ class ServerDataSource extends DataSource {
|
|
|
755
757
|
}
|
|
756
758
|
emitOnChanged(eventData, newElements) {
|
|
757
759
|
if ([
|
|
758
|
-
SmartTableOnChangedEventName
|
|
759
|
-
SmartTableOnChangedEventName
|
|
760
|
-
SmartTableOnChangedEventName
|
|
761
|
-
SmartTableOnChangedEventName
|
|
762
|
-
SmartTableOnChangedEventName
|
|
760
|
+
SmartTableOnChangedEventName.filter,
|
|
761
|
+
SmartTableOnChangedEventName.sort,
|
|
762
|
+
SmartTableOnChangedEventName.page,
|
|
763
|
+
SmartTableOnChangedEventName.paging,
|
|
764
|
+
SmartTableOnChangedEventName.refresh,
|
|
763
765
|
].includes(eventData.action)) {
|
|
764
766
|
this.paramPrepareFunction({
|
|
765
767
|
sort: this.sortConf,
|
|
@@ -970,7 +972,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
970
972
|
`, standalone: true, imports: [FormsModule], styles: [":host input,:host textarea{width:100%;line-height:normal;padding:.375em .75em}\n"] }]
|
|
971
973
|
}] });
|
|
972
974
|
|
|
973
|
-
class BuildInEditorComponent extends BaseEditorComponent
|
|
975
|
+
class BuildInEditorComponent extends BaseEditorComponent {
|
|
974
976
|
constructor() {
|
|
975
977
|
super(...arguments);
|
|
976
978
|
this.editorType = computed(() => {
|
|
@@ -989,7 +991,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
989
991
|
args: [{ selector: 'ng2-table-cell-build-in-editor', imports: [SelectEditorComponent, TextareaEditorComponent, CheckboxEditorComponent, InputEditorComponent], standalone: true, template: "<div role=\"none\" (click)=\"$event.stopPropagation()\">\n @switch (editorType()) {\n @case ('list') {\n <ng2-select-editor\n [cell]=\"cell()\"\n [inputClass]=\"inputClass()\">\n </ng2-select-editor>\n }\n @case ('textarea') {\n <ng2-textarea-editor\n [cell]=\"cell()\"\n [inputClass]=\"inputClass()\">\n </ng2-textarea-editor>\n }\n @case ('checkbox') {\n <ng2-checkbox-editor\n [cell]=\"cell()\"\n [inputClass]=\"inputClass()\">\n </ng2-checkbox-editor>\n }\n @default {\n <ng2-input-editor\n [cell]=\"cell()\"\n [inputClass]=\"inputClass()\">\n </ng2-input-editor>\n }\n}\n</div>" }]
|
|
990
992
|
}] });
|
|
991
993
|
|
|
992
|
-
class CustomEditComponent extends BaseEditorComponent
|
|
994
|
+
class CustomEditComponent extends BaseEditorComponent {
|
|
993
995
|
ngOnChanges(changes) {
|
|
994
996
|
const editor = this.cell().getColumn().editor;
|
|
995
997
|
if (this.customComponent) {
|
|
@@ -999,10 +1001,7 @@ class CustomEditComponent extends BaseEditorComponent$1 {
|
|
|
999
1001
|
}
|
|
1000
1002
|
return;
|
|
1001
1003
|
}
|
|
1002
|
-
if (this.cell() &&
|
|
1003
|
-
!this.customComponent &&
|
|
1004
|
-
editor &&
|
|
1005
|
-
editor.type == "custom") {
|
|
1004
|
+
if (this.cell() && !this.customComponent && editor && editor.type == 'custom') {
|
|
1006
1005
|
this.customComponent = this.dynamicTarget?.createComponent(editor.component);
|
|
1007
1006
|
this.customComponent?.setInput('cell', this.cell());
|
|
1008
1007
|
this.customComponent?.setInput('inputClass', this.inputClass());
|
|
@@ -1019,13 +1018,13 @@ class CustomEditComponent extends BaseEditorComponent$1 {
|
|
|
1019
1018
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: CustomEditComponent, decorators: [{
|
|
1020
1019
|
type: Component,
|
|
1021
1020
|
args: [{
|
|
1022
|
-
selector:
|
|
1021
|
+
selector: 'ng2-table-cell-custom-editor',
|
|
1023
1022
|
template: ` <ng-template #dynamicTarget></ng-template> `,
|
|
1024
1023
|
standalone: true,
|
|
1025
1024
|
}]
|
|
1026
1025
|
}], propDecorators: { dynamicTarget: [{
|
|
1027
1026
|
type: ViewChild,
|
|
1028
|
-
args: [
|
|
1027
|
+
args: ['dynamicTarget', { read: ViewContainerRef, static: true }]
|
|
1029
1028
|
}] } });
|
|
1030
1029
|
|
|
1031
1030
|
class EditCellComponent {
|
|
@@ -1754,7 +1753,7 @@ class TbodyCustomComponent {
|
|
|
1754
1753
|
});
|
|
1755
1754
|
}
|
|
1756
1755
|
customActions() {
|
|
1757
|
-
return this.grid.getSetting(
|
|
1756
|
+
return this.grid.getSetting('actions.custom');
|
|
1758
1757
|
}
|
|
1759
1758
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TbodyCustomComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1760
1759
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: TbodyCustomComponent, isStandalone: true, selector: "ng2-st-tbody-custom", inputs: { grid: "grid", row: "row", source: "source" }, outputs: { custom: "custom" }, ngImport: i0, template: `
|
|
@@ -1764,17 +1763,14 @@ class TbodyCustomComponent {
|
|
|
1764
1763
|
href="#"
|
|
1765
1764
|
class="ng2-smart-action ng2-smart-action-custom-custom"
|
|
1766
1765
|
[innerHTML]="action.title"
|
|
1767
|
-
(click)="
|
|
1768
|
-
$event.stopPropagation(); $event.preventDefault(); onCustom(action)
|
|
1769
|
-
"
|
|
1770
|
-
></a>
|
|
1766
|
+
(click)="$event.stopPropagation(); $event.preventDefault(); onCustom(action)"></a>
|
|
1771
1767
|
}
|
|
1772
1768
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
1773
1769
|
}
|
|
1774
1770
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TbodyCustomComponent, decorators: [{
|
|
1775
1771
|
type: Component,
|
|
1776
1772
|
args: [{
|
|
1777
|
-
selector:
|
|
1773
|
+
selector: 'ng2-st-tbody-custom',
|
|
1778
1774
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1779
1775
|
template: `
|
|
1780
1776
|
@for (action of customActions(); track $index) {
|
|
@@ -1783,10 +1779,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
1783
1779
|
href="#"
|
|
1784
1780
|
class="ng2-smart-action ng2-smart-action-custom-custom"
|
|
1785
1781
|
[innerHTML]="action.title"
|
|
1786
|
-
(click)="
|
|
1787
|
-
$event.stopPropagation(); $event.preventDefault(); onCustom(action)
|
|
1788
|
-
"
|
|
1789
|
-
></a>
|
|
1782
|
+
(click)="$event.stopPropagation(); $event.preventDefault(); onCustom(action)"></a>
|
|
1790
1783
|
}
|
|
1791
1784
|
`,
|
|
1792
1785
|
standalone: true,
|
|
@@ -1811,8 +1804,8 @@ class TbodyEditDeleteComponent {
|
|
|
1811
1804
|
this.isActionEdit = false;
|
|
1812
1805
|
this.isActionDelete = false;
|
|
1813
1806
|
this.isExternalMode = false;
|
|
1814
|
-
this.editRowButtonContent =
|
|
1815
|
-
this.deleteRowButtonContent =
|
|
1807
|
+
this.editRowButtonContent = 'Edit';
|
|
1808
|
+
this.deleteRowButtonContent = 'Delete';
|
|
1816
1809
|
effect(() => {
|
|
1817
1810
|
const settings = this.grid().settings();
|
|
1818
1811
|
const actions = settings.actions;
|
|
@@ -1821,12 +1814,8 @@ class TbodyEditDeleteComponent {
|
|
|
1821
1814
|
this.isActionEdit = !!actions.edit;
|
|
1822
1815
|
}
|
|
1823
1816
|
this.isExternalMode = settings.mode === 'external';
|
|
1824
|
-
this.editRowButtonContent = settings.edit
|
|
1825
|
-
|
|
1826
|
-
: "Edit";
|
|
1827
|
-
this.deleteRowButtonContent = settings.delete
|
|
1828
|
-
? settings.delete.deleteButtonContent || "Delete"
|
|
1829
|
-
: "Delete";
|
|
1817
|
+
this.editRowButtonContent = settings.edit ? settings.edit.editButtonContent || 'Edit' : 'Edit';
|
|
1818
|
+
this.deleteRowButtonContent = settings.delete ? settings.delete.deleteButtonContent || 'Delete' : 'Delete';
|
|
1830
1819
|
this.cdr.detectChanges();
|
|
1831
1820
|
});
|
|
1832
1821
|
}
|
|
@@ -1862,16 +1851,14 @@ class TbodyEditDeleteComponent {
|
|
|
1862
1851
|
[id]="'row-' + row().index + '_action-edit-button'"
|
|
1863
1852
|
class="ng2-smart-action ng2-smart-action-edit-edit"
|
|
1864
1853
|
[innerHTML]="editRowButtonContent"
|
|
1865
|
-
(click)="onEdit($event)"
|
|
1866
|
-
></a>
|
|
1854
|
+
(click)="onEdit($event)"></a>
|
|
1867
1855
|
} @if (isActionDelete) {
|
|
1868
1856
|
<a
|
|
1869
1857
|
href="#"
|
|
1870
1858
|
[id]="'row-' + row().index + '_action-delete-button'"
|
|
1871
1859
|
class="ng2-smart-action ng2-smart-action-delete-delete"
|
|
1872
1860
|
[innerHTML]="deleteRowButtonContent"
|
|
1873
|
-
(click)="onDelete($event)"
|
|
1874
|
-
></a>
|
|
1861
|
+
(click)="onDelete($event)"></a>
|
|
1875
1862
|
} } @else {
|
|
1876
1863
|
<div style="display: flex;">
|
|
1877
1864
|
@if (isActionEdit) {
|
|
@@ -1887,12 +1874,10 @@ class TbodyEditDeleteComponent {
|
|
|
1887
1874
|
y="0px"
|
|
1888
1875
|
viewBox="0 0 100 100"
|
|
1889
1876
|
enable-background="new 0 0 0 0"
|
|
1890
|
-
xml:space="preserve"
|
|
1891
|
-
>
|
|
1877
|
+
xml:space="preserve">
|
|
1892
1878
|
<path
|
|
1893
1879
|
fill="#e9e9e9"
|
|
1894
|
-
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
1895
|
-
>
|
|
1880
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
|
|
1896
1881
|
<animateTransform
|
|
1897
1882
|
attributeName="transform"
|
|
1898
1883
|
attributeType="XML"
|
|
@@ -1900,8 +1885,7 @@ class TbodyEditDeleteComponent {
|
|
|
1900
1885
|
dur="1s"
|
|
1901
1886
|
from="0 50 50"
|
|
1902
1887
|
to="360 50 50"
|
|
1903
|
-
repeatCount="indefinite"
|
|
1904
|
-
/>
|
|
1888
|
+
repeatCount="indefinite" />
|
|
1905
1889
|
</path>
|
|
1906
1890
|
</svg>
|
|
1907
1891
|
} @if (isActionDelete) {
|
|
@@ -1917,12 +1901,10 @@ class TbodyEditDeleteComponent {
|
|
|
1917
1901
|
y="0px"
|
|
1918
1902
|
viewBox="0 0 100 100"
|
|
1919
1903
|
enable-background="new 0 0 0 0"
|
|
1920
|
-
xml:space="preserve"
|
|
1921
|
-
>
|
|
1904
|
+
xml:space="preserve">
|
|
1922
1905
|
<path
|
|
1923
1906
|
fill="#e9e9e9"
|
|
1924
|
-
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
1925
|
-
>
|
|
1907
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
|
|
1926
1908
|
<animateTransform
|
|
1927
1909
|
attributeName="transform"
|
|
1928
1910
|
attributeType="XML"
|
|
@@ -1930,8 +1912,7 @@ class TbodyEditDeleteComponent {
|
|
|
1930
1912
|
dur="1s"
|
|
1931
1913
|
from="0 50 50"
|
|
1932
1914
|
to="360 50 50"
|
|
1933
|
-
repeatCount="indefinite"
|
|
1934
|
-
/>
|
|
1915
|
+
repeatCount="indefinite" />
|
|
1935
1916
|
</path>
|
|
1936
1917
|
</svg>
|
|
1937
1918
|
}
|
|
@@ -1942,7 +1923,7 @@ class TbodyEditDeleteComponent {
|
|
|
1942
1923
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TbodyEditDeleteComponent, decorators: [{
|
|
1943
1924
|
type: Component,
|
|
1944
1925
|
args: [{
|
|
1945
|
-
selector:
|
|
1926
|
+
selector: 'ng2-st-tbody-edit-delete',
|
|
1946
1927
|
template: `
|
|
1947
1928
|
@if (!row().pending()) { @if (isActionEdit) {
|
|
1948
1929
|
<a
|
|
@@ -1950,16 +1931,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
1950
1931
|
[id]="'row-' + row().index + '_action-edit-button'"
|
|
1951
1932
|
class="ng2-smart-action ng2-smart-action-edit-edit"
|
|
1952
1933
|
[innerHTML]="editRowButtonContent"
|
|
1953
|
-
(click)="onEdit($event)"
|
|
1954
|
-
></a>
|
|
1934
|
+
(click)="onEdit($event)"></a>
|
|
1955
1935
|
} @if (isActionDelete) {
|
|
1956
1936
|
<a
|
|
1957
1937
|
href="#"
|
|
1958
1938
|
[id]="'row-' + row().index + '_action-delete-button'"
|
|
1959
1939
|
class="ng2-smart-action ng2-smart-action-delete-delete"
|
|
1960
1940
|
[innerHTML]="deleteRowButtonContent"
|
|
1961
|
-
(click)="onDelete($event)"
|
|
1962
|
-
></a>
|
|
1941
|
+
(click)="onDelete($event)"></a>
|
|
1963
1942
|
} } @else {
|
|
1964
1943
|
<div style="display: flex;">
|
|
1965
1944
|
@if (isActionEdit) {
|
|
@@ -1975,12 +1954,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
1975
1954
|
y="0px"
|
|
1976
1955
|
viewBox="0 0 100 100"
|
|
1977
1956
|
enable-background="new 0 0 0 0"
|
|
1978
|
-
xml:space="preserve"
|
|
1979
|
-
>
|
|
1957
|
+
xml:space="preserve">
|
|
1980
1958
|
<path
|
|
1981
1959
|
fill="#e9e9e9"
|
|
1982
|
-
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
1983
|
-
>
|
|
1960
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
|
|
1984
1961
|
<animateTransform
|
|
1985
1962
|
attributeName="transform"
|
|
1986
1963
|
attributeType="XML"
|
|
@@ -1988,8 +1965,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
1988
1965
|
dur="1s"
|
|
1989
1966
|
from="0 50 50"
|
|
1990
1967
|
to="360 50 50"
|
|
1991
|
-
repeatCount="indefinite"
|
|
1992
|
-
/>
|
|
1968
|
+
repeatCount="indefinite" />
|
|
1993
1969
|
</path>
|
|
1994
1970
|
</svg>
|
|
1995
1971
|
} @if (isActionDelete) {
|
|
@@ -2005,12 +1981,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
2005
1981
|
y="0px"
|
|
2006
1982
|
viewBox="0 0 100 100"
|
|
2007
1983
|
enable-background="new 0 0 0 0"
|
|
2008
|
-
xml:space="preserve"
|
|
2009
|
-
>
|
|
1984
|
+
xml:space="preserve">
|
|
2010
1985
|
<path
|
|
2011
1986
|
fill="#e9e9e9"
|
|
2012
|
-
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50"
|
|
2013
|
-
>
|
|
1987
|
+
d="M73,50c0-12.7-10.3-23-23-23S27,37.3,27,50 M30.9,50c0-10.5,8.5-19.1,19.1-19.1S69.1,39.5,69.1,50">
|
|
2014
1988
|
<animateTransform
|
|
2015
1989
|
attributeName="transform"
|
|
2016
1990
|
attributeType="XML"
|
|
@@ -2018,8 +1992,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
|
|
|
2018
1992
|
dur="1s"
|
|
2019
1993
|
from="0 50 50"
|
|
2020
1994
|
to="360 50 50"
|
|
2021
|
-
repeatCount="indefinite"
|
|
2022
|
-
/>
|
|
1995
|
+
repeatCount="indefinite" />
|
|
2023
1996
|
</path>
|
|
2024
1997
|
</svg>
|
|
2025
1998
|
}
|
|
@@ -2038,7 +2011,7 @@ class Ng2SmartTableTbodyComponent {
|
|
|
2038
2011
|
this.deleteConfirm = input.required();
|
|
2039
2012
|
this.createConfirm = input.required();
|
|
2040
2013
|
this.editConfirm = input.required();
|
|
2041
|
-
this.rowClassFunction = input(() =>
|
|
2014
|
+
this.rowClassFunction = input(() => '');
|
|
2042
2015
|
this.save = output();
|
|
2043
2016
|
this.edit = output();
|
|
2044
2017
|
this.editCancel = output();
|
|
@@ -2056,7 +2029,7 @@ class Ng2SmartTableTbodyComponent {
|
|
|
2056
2029
|
return editOptions.inputClass || '';
|
|
2057
2030
|
});
|
|
2058
2031
|
this.noDataMessage = computed(() => {
|
|
2059
|
-
return this.grid().settings().noDataMessage ||
|
|
2032
|
+
return this.grid().settings().noDataMessage || 'No data found';
|
|
2060
2033
|
});
|
|
2061
2034
|
}
|
|
2062
2035
|
trackByIdOrIndex(index, item) {
|
|
@@ -2067,7 +2040,7 @@ class Ng2SmartTableTbodyComponent {
|
|
|
2067
2040
|
}
|
|
2068
2041
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: Ng2SmartTableTbodyComponent, decorators: [{
|
|
2069
2042
|
type: Component,
|
|
2070
|
-
args: [{ selector:
|
|
2043
|
+
args: [{ selector: '[ng2-st-tbody]', standalone: true, imports: [
|
|
2071
2044
|
FormsModule,
|
|
2072
2045
|
TbodyCustomComponent,
|
|
2073
2046
|
TbodyEditDeleteComponent,
|
|
@@ -2417,15 +2390,15 @@ class AddButtonComponent {
|
|
|
2417
2390
|
this.addNewButtonContent = computed(() => {
|
|
2418
2391
|
const addParams = this.grid().settings()?.add;
|
|
2419
2392
|
if (!addParams) {
|
|
2420
|
-
return
|
|
2393
|
+
return 'Add New';
|
|
2421
2394
|
}
|
|
2422
|
-
return addParams?.addButtonContent ||
|
|
2395
|
+
return addParams?.addButtonContent || 'Add New';
|
|
2423
2396
|
});
|
|
2424
2397
|
}
|
|
2425
2398
|
onAdd(event) {
|
|
2426
2399
|
event.preventDefault();
|
|
2427
2400
|
event.stopPropagation();
|
|
2428
|
-
if (this.grid().getSetting(
|
|
2401
|
+
if (this.grid().getSetting('mode') === 'external') {
|
|
2429
2402
|
this.create.emit({
|
|
2430
2403
|
source: this.source(),
|
|
2431
2404
|
});
|
|
@@ -2441,27 +2414,25 @@ class AddButtonComponent {
|
|
|
2441
2414
|
href="#"
|
|
2442
2415
|
class="ng2-smart-action ng2-smart-action-add-add"
|
|
2443
2416
|
[innerHTML]="addNewButtonContent()"
|
|
2444
|
-
(click)="onAdd($event)"
|
|
2445
|
-
></a>
|
|
2417
|
+
(click)="onAdd($event)"></a>
|
|
2446
2418
|
}
|
|
2447
2419
|
`, isInline: true }); }
|
|
2448
2420
|
}
|
|
2449
2421
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AddButtonComponent, decorators: [{
|
|
2450
2422
|
type: Component,
|
|
2451
2423
|
args: [{
|
|
2452
|
-
selector:
|
|
2424
|
+
selector: '[ng2-st-add-button]',
|
|
2453
2425
|
template: `
|
|
2454
2426
|
@if (isActionAdd()) {
|
|
2455
2427
|
<a
|
|
2456
2428
|
href="#"
|
|
2457
2429
|
class="ng2-smart-action ng2-smart-action-add-add"
|
|
2458
2430
|
[innerHTML]="addNewButtonContent()"
|
|
2459
|
-
(click)="onAdd($event)"
|
|
2460
|
-
></a>
|
|
2431
|
+
(click)="onAdd($event)"></a>
|
|
2461
2432
|
}
|
|
2462
2433
|
`,
|
|
2463
2434
|
host: {
|
|
2464
|
-
class:
|
|
2435
|
+
class: 'ng2-smart-actions-title ng2-smart-actions-title-add',
|
|
2465
2436
|
},
|
|
2466
2437
|
standalone: true,
|
|
2467
2438
|
}]
|
|
@@ -2475,9 +2446,9 @@ class TheadFiltersRowComponent {
|
|
|
2475
2446
|
this.filterInputClass = computed(() => {
|
|
2476
2447
|
const filterOptions = this.grid().settings()?.filter;
|
|
2477
2448
|
if (!filterOptions) {
|
|
2478
|
-
return
|
|
2449
|
+
return '';
|
|
2479
2450
|
}
|
|
2480
|
-
return filterOptions.inputClass ||
|
|
2451
|
+
return filterOptions.inputClass || '';
|
|
2481
2452
|
});
|
|
2482
2453
|
}
|
|
2483
2454
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TheadFiltersRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
@@ -2485,61 +2456,33 @@ class TheadFiltersRowComponent {
|
|
|
2485
2456
|
@if (grid().isMultiSelectVisible()) {
|
|
2486
2457
|
<th></th>
|
|
2487
2458
|
} @if (grid().actionIsOnLeft() && grid().isActionsVisible()) {
|
|
2488
|
-
<th
|
|
2489
|
-
ng2-st-add-button
|
|
2490
|
-
[source]="source()"
|
|
2491
|
-
[grid]="grid()"
|
|
2492
|
-
(create)="create.emit($event)"
|
|
2493
|
-
></th>
|
|
2459
|
+
<th ng2-st-add-button [source]="source()" [grid]="grid()" (create)="create.emit($event)"></th>
|
|
2494
2460
|
} @for (column of grid().dataSet.getVisibleColumns(); track column.id + $index) {
|
|
2495
2461
|
<th class="ng2-smart-th {{ column.id }}">
|
|
2496
|
-
<ng2-smart-table-filter
|
|
2497
|
-
[source]="source()"
|
|
2498
|
-
[column]="column"
|
|
2499
|
-
[inputClass]="filterInputClass()"
|
|
2500
|
-
>
|
|
2462
|
+
<ng2-smart-table-filter [source]="source()" [column]="column" [inputClass]="filterInputClass()">
|
|
2501
2463
|
</ng2-smart-table-filter>
|
|
2502
2464
|
</th>
|
|
2503
2465
|
} @if (grid().actionIsOnRight() && grid().isActionsVisible()) {
|
|
2504
|
-
<th
|
|
2505
|
-
ng2-st-add-button
|
|
2506
|
-
[grid]="grid()"
|
|
2507
|
-
[source]="source()"
|
|
2508
|
-
(create)="create.emit($event)"
|
|
2509
|
-
></th>
|
|
2466
|
+
<th ng2-st-add-button [grid]="grid()" [source]="source()" (create)="create.emit($event)"></th>
|
|
2510
2467
|
}
|
|
2511
2468
|
`, isInline: true, dependencies: [{ kind: "component", type: AddButtonComponent, selector: "[ng2-st-add-button]", inputs: ["grid", "source"], outputs: ["create"] }, { kind: "component", type: FilterComponent, selector: "ng2-smart-table-filter", inputs: ["column", "source", "inputClass"] }] }); }
|
|
2512
2469
|
}
|
|
2513
2470
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TheadFiltersRowComponent, decorators: [{
|
|
2514
2471
|
type: Component,
|
|
2515
2472
|
args: [{
|
|
2516
|
-
selector:
|
|
2473
|
+
selector: '[ng2-st-thead-filters-row]',
|
|
2517
2474
|
template: `
|
|
2518
2475
|
@if (grid().isMultiSelectVisible()) {
|
|
2519
2476
|
<th></th>
|
|
2520
2477
|
} @if (grid().actionIsOnLeft() && grid().isActionsVisible()) {
|
|
2521
|
-
<th
|
|
2522
|
-
ng2-st-add-button
|
|
2523
|
-
[source]="source()"
|
|
2524
|
-
[grid]="grid()"
|
|
2525
|
-
(create)="create.emit($event)"
|
|
2526
|
-
></th>
|
|
2478
|
+
<th ng2-st-add-button [source]="source()" [grid]="grid()" (create)="create.emit($event)"></th>
|
|
2527
2479
|
} @for (column of grid().dataSet.getVisibleColumns(); track column.id + $index) {
|
|
2528
2480
|
<th class="ng2-smart-th {{ column.id }}">
|
|
2529
|
-
<ng2-smart-table-filter
|
|
2530
|
-
[source]="source()"
|
|
2531
|
-
[column]="column"
|
|
2532
|
-
[inputClass]="filterInputClass()"
|
|
2533
|
-
>
|
|
2481
|
+
<ng2-smart-table-filter [source]="source()" [column]="column" [inputClass]="filterInputClass()">
|
|
2534
2482
|
</ng2-smart-table-filter>
|
|
2535
2483
|
</th>
|
|
2536
2484
|
} @if (grid().actionIsOnRight() && grid().isActionsVisible()) {
|
|
2537
|
-
<th
|
|
2538
|
-
ng2-st-add-button
|
|
2539
|
-
[grid]="grid()"
|
|
2540
|
-
[source]="source()"
|
|
2541
|
-
(create)="create.emit($event)"
|
|
2542
|
-
></th>
|
|
2485
|
+
<th ng2-st-add-button [grid]="grid()" [source]="source()" (create)="create.emit($event)"></th>
|
|
2543
2486
|
}
|
|
2544
2487
|
`,
|
|
2545
2488
|
standalone: true,
|
|
@@ -2611,9 +2554,9 @@ class TheadFormRowComponent {
|
|
|
2611
2554
|
this.addInputClass = computed(() => {
|
|
2612
2555
|
const addOptions = this.grid().settings()?.add;
|
|
2613
2556
|
if (!addOptions) {
|
|
2614
|
-
return
|
|
2557
|
+
return '';
|
|
2615
2558
|
}
|
|
2616
|
-
return addOptions.inputClass ||
|
|
2559
|
+
return addOptions.inputClass || '';
|
|
2617
2560
|
});
|
|
2618
2561
|
}
|
|
2619
2562
|
onCreate(event) {
|
|
@@ -2629,26 +2572,19 @@ class TheadFormRowComponent {
|
|
|
2629
2572
|
<td></td>
|
|
2630
2573
|
} @if (grid().actionIsOnLeft() && grid().isActionsVisible()) {
|
|
2631
2574
|
<td class="ng2-smart-actions">
|
|
2632
|
-
<ng2-st-actions
|
|
2633
|
-
[grid]="grid()"
|
|
2634
|
-
(create)="onCreate($event)"
|
|
2635
|
-
></ng2-st-actions>
|
|
2575
|
+
<ng2-st-actions [grid]="grid()" (create)="onCreate($event)"></ng2-st-actions>
|
|
2636
2576
|
</td>
|
|
2637
2577
|
} @for (cell of getVisibleCells(); track cell.getId()+ $index) {
|
|
2638
2578
|
<td>
|
|
2639
2579
|
<ng2-smart-table-cell
|
|
2640
2580
|
[cell]="cell"
|
|
2641
2581
|
[inputClass]="addInputClass()"
|
|
2642
|
-
[isInEditing]="grid().getNewRow().isInEditing()"
|
|
2643
|
-
>
|
|
2582
|
+
[isInEditing]="grid().getNewRow().isInEditing()">
|
|
2644
2583
|
</ng2-smart-table-cell>
|
|
2645
2584
|
</td>
|
|
2646
2585
|
} @if (grid().actionIsOnRight() && grid().isActionsVisible()) {
|
|
2647
2586
|
<td class="ng2-smart-actions">
|
|
2648
|
-
<ng2-st-actions
|
|
2649
|
-
[grid]="grid()"
|
|
2650
|
-
(create)="onCreate($event)"
|
|
2651
|
-
></ng2-st-actions>
|
|
2587
|
+
<ng2-st-actions [grid]="grid()" (create)="onCreate($event)"></ng2-st-actions>
|
|
2652
2588
|
</td>
|
|
2653
2589
|
}
|
|
2654
2590
|
`, isInline: true, dependencies: [{ kind: "component", type: ActionsComponent, selector: "ng2-st-actions", inputs: ["grid"], outputs: ["create"] }, { kind: "component", type: CellComponent, selector: "ng2-smart-table-cell", inputs: ["cell", "inputClass", "isInEditing"] }] }); }
|
|
@@ -2656,32 +2592,25 @@ class TheadFormRowComponent {
|
|
|
2656
2592
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TheadFormRowComponent, decorators: [{
|
|
2657
2593
|
type: Component,
|
|
2658
2594
|
args: [{
|
|
2659
|
-
selector:
|
|
2595
|
+
selector: '[ng2-st-thead-form-row]',
|
|
2660
2596
|
template: `
|
|
2661
2597
|
@if (grid().isMultiSelectVisible()) {
|
|
2662
2598
|
<td></td>
|
|
2663
2599
|
} @if (grid().actionIsOnLeft() && grid().isActionsVisible()) {
|
|
2664
2600
|
<td class="ng2-smart-actions">
|
|
2665
|
-
<ng2-st-actions
|
|
2666
|
-
[grid]="grid()"
|
|
2667
|
-
(create)="onCreate($event)"
|
|
2668
|
-
></ng2-st-actions>
|
|
2601
|
+
<ng2-st-actions [grid]="grid()" (create)="onCreate($event)"></ng2-st-actions>
|
|
2669
2602
|
</td>
|
|
2670
2603
|
} @for (cell of getVisibleCells(); track cell.getId()+ $index) {
|
|
2671
2604
|
<td>
|
|
2672
2605
|
<ng2-smart-table-cell
|
|
2673
2606
|
[cell]="cell"
|
|
2674
2607
|
[inputClass]="addInputClass()"
|
|
2675
|
-
[isInEditing]="grid().getNewRow().isInEditing()"
|
|
2676
|
-
>
|
|
2608
|
+
[isInEditing]="grid().getNewRow().isInEditing()">
|
|
2677
2609
|
</ng2-smart-table-cell>
|
|
2678
2610
|
</td>
|
|
2679
2611
|
} @if (grid().actionIsOnRight() && grid().isActionsVisible()) {
|
|
2680
2612
|
<td class="ng2-smart-actions">
|
|
2681
|
-
<ng2-st-actions
|
|
2682
|
-
[grid]="grid()"
|
|
2683
|
-
(create)="onCreate($event)"
|
|
2684
|
-
></ng2-st-actions>
|
|
2613
|
+
<ng2-st-actions [grid]="grid()" (create)="onCreate($event)"></ng2-st-actions>
|
|
2685
2614
|
</td>
|
|
2686
2615
|
}
|
|
2687
2616
|
`,
|
|
@@ -2799,23 +2728,17 @@ class ColumnTitleComponent {
|
|
|
2799
2728
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ColumnTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2800
2729
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.0.3", type: ColumnTitleComponent, isStandalone: true, selector: "ng2-st-column-title", inputs: { source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null }, column: { classPropertyName: "column", publicName: "column", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: `
|
|
2801
2730
|
<div class="ng2-smart-title">
|
|
2802
|
-
<ng2-smart-table-title
|
|
2803
|
-
[source]="source()"
|
|
2804
|
-
[column]="column()"
|
|
2805
|
-
></ng2-smart-table-title>
|
|
2731
|
+
<ng2-smart-table-title [source]="source()" [column]="column()"></ng2-smart-table-title>
|
|
2806
2732
|
</div>
|
|
2807
2733
|
`, isInline: true, dependencies: [{ kind: "component", type: TitleComponent, selector: "ng2-smart-table-title", inputs: ["source", "column"] }] }); }
|
|
2808
2734
|
}
|
|
2809
2735
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: ColumnTitleComponent, decorators: [{
|
|
2810
2736
|
type: Component,
|
|
2811
2737
|
args: [{
|
|
2812
|
-
selector:
|
|
2738
|
+
selector: 'ng2-st-column-title',
|
|
2813
2739
|
template: `
|
|
2814
2740
|
<div class="ng2-smart-title">
|
|
2815
|
-
<ng2-smart-table-title
|
|
2816
|
-
[source]="source()"
|
|
2817
|
-
[column]="column()"
|
|
2818
|
-
></ng2-smart-table-title>
|
|
2741
|
+
<ng2-smart-table-title [source]="source()" [column]="column()"></ng2-smart-table-title>
|
|
2819
2742
|
</div>
|
|
2820
2743
|
`,
|
|
2821
2744
|
standalone: true,
|
|
@@ -2832,24 +2755,13 @@ class TheadTitlesRowComponent {
|
|
|
2832
2755
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TheadTitlesRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2833
2756
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.3", type: TheadTitlesRowComponent, isStandalone: true, selector: "[ng2-st-thead-titles-row]", inputs: { grid: { classPropertyName: "grid", publicName: "grid", isSignal: true, isRequired: true, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { selectAllRows: "selectAllRows" }, ngImport: i0, template: `
|
|
2834
2757
|
@if (grid().isMultiSelectVisible()) {
|
|
2835
|
-
<th
|
|
2836
|
-
ng2-st-checkbox-select-all
|
|
2837
|
-
[grid]="grid()"
|
|
2838
|
-
(click)="selectAllRows.emit()"
|
|
2839
|
-
></th>
|
|
2758
|
+
<th ng2-st-checkbox-select-all [grid]="grid()" (click)="selectAllRows.emit()"></th>
|
|
2840
2759
|
} @if (grid().actionIsOnLeft() && grid().isActionsVisible()) {
|
|
2841
2760
|
|
|
2842
2761
|
<th ng2-st-actions-title [grid]="grid()"></th>
|
|
2843
2762
|
} @for (column of grid().dataSet.getVisibleColumns(); track column.id + $index) {
|
|
2844
|
-
<th
|
|
2845
|
-
|
|
2846
|
-
[class]="column.class"
|
|
2847
|
-
[style.width]="column.width"
|
|
2848
|
-
>
|
|
2849
|
-
<ng2-st-column-title
|
|
2850
|
-
[source]="source()"
|
|
2851
|
-
[column]="column"
|
|
2852
|
-
></ng2-st-column-title>
|
|
2763
|
+
<th class="ng2-smart-th {{ column.id }}" [class]="column.class" [style.width]="column.width">
|
|
2764
|
+
<ng2-st-column-title [source]="source()" [column]="column"></ng2-st-column-title>
|
|
2853
2765
|
</th>
|
|
2854
2766
|
} @if (grid().actionIsOnRight() && grid().isActionsVisible()) {
|
|
2855
2767
|
<th ng2-st-actions-title [grid]="grid()"></th>
|
|
@@ -2859,38 +2771,23 @@ class TheadTitlesRowComponent {
|
|
|
2859
2771
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: TheadTitlesRowComponent, decorators: [{
|
|
2860
2772
|
type: Component,
|
|
2861
2773
|
args: [{
|
|
2862
|
-
selector:
|
|
2774
|
+
selector: '[ng2-st-thead-titles-row]',
|
|
2863
2775
|
template: `
|
|
2864
2776
|
@if (grid().isMultiSelectVisible()) {
|
|
2865
|
-
<th
|
|
2866
|
-
ng2-st-checkbox-select-all
|
|
2867
|
-
[grid]="grid()"
|
|
2868
|
-
(click)="selectAllRows.emit()"
|
|
2869
|
-
></th>
|
|
2777
|
+
<th ng2-st-checkbox-select-all [grid]="grid()" (click)="selectAllRows.emit()"></th>
|
|
2870
2778
|
} @if (grid().actionIsOnLeft() && grid().isActionsVisible()) {
|
|
2871
2779
|
|
|
2872
2780
|
<th ng2-st-actions-title [grid]="grid()"></th>
|
|
2873
2781
|
} @for (column of grid().dataSet.getVisibleColumns(); track column.id + $index) {
|
|
2874
|
-
<th
|
|
2875
|
-
|
|
2876
|
-
[class]="column.class"
|
|
2877
|
-
[style.width]="column.width"
|
|
2878
|
-
>
|
|
2879
|
-
<ng2-st-column-title
|
|
2880
|
-
[source]="source()"
|
|
2881
|
-
[column]="column"
|
|
2882
|
-
></ng2-st-column-title>
|
|
2782
|
+
<th class="ng2-smart-th {{ column.id }}" [class]="column.class" [style.width]="column.width">
|
|
2783
|
+
<ng2-st-column-title [source]="source()" [column]="column"></ng2-st-column-title>
|
|
2883
2784
|
</th>
|
|
2884
2785
|
} @if (grid().actionIsOnRight() && grid().isActionsVisible()) {
|
|
2885
2786
|
<th ng2-st-actions-title [grid]="grid()"></th>
|
|
2886
2787
|
}
|
|
2887
2788
|
`,
|
|
2888
2789
|
standalone: true,
|
|
2889
|
-
imports: [
|
|
2890
|
-
CheckboxSelectAllComponent,
|
|
2891
|
-
ActionsTitleComponent,
|
|
2892
|
-
ColumnTitleComponent,
|
|
2893
|
-
],
|
|
2790
|
+
imports: [CheckboxSelectAllComponent, ActionsTitleComponent, ColumnTitleComponent],
|
|
2894
2791
|
}]
|
|
2895
2792
|
}] });
|
|
2896
2793
|
|
|
@@ -2912,11 +2809,7 @@ class Ng2SmartTableTheadComponent {
|
|
|
2912
2809
|
}
|
|
2913
2810
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: Ng2SmartTableTheadComponent, decorators: [{
|
|
2914
2811
|
type: Component,
|
|
2915
|
-
args: [{ selector:
|
|
2916
|
-
TheadTitlesRowComponent,
|
|
2917
|
-
TheadFiltersRowComponent,
|
|
2918
|
-
TheadFormRowComponent,
|
|
2919
|
-
], template: "@if (!isHideHeader()) {\n <tr ng2-st-thead-titles-row\n class=\"ng2-smart-titles\"\n [grid]=\"grid()\"\n [source]=\"source()\"\n (selectAllRows)=\"selectAllRows.emit()\">\n </tr>\n}\n\n@if (!isHideSubHeader()) {\n <tr ng2-st-thead-filters-row\n class=\"ng2-smart-filters\"\n [grid]=\"grid()\"\n [source]=\"source()\"\n (create)=\"create.emit($event)\">\n </tr>\n}\n\n@if (grid().createFormShown) {\n <tr ng2-st-thead-form-row\n [grid]=\"grid()\"\n [createConfirm]=\"createConfirm\">\n </tr>\n}\n" }]
|
|
2812
|
+
args: [{ selector: '[ng2-st-thead]', standalone: true, imports: [TheadTitlesRowComponent, TheadFiltersRowComponent, TheadFormRowComponent], template: "@if (!isHideHeader()) {\n <tr ng2-st-thead-titles-row\n class=\"ng2-smart-titles\"\n [grid]=\"grid()\"\n [source]=\"source()\"\n (selectAllRows)=\"selectAllRows.emit()\">\n </tr>\n}\n\n@if (!isHideSubHeader()) {\n <tr ng2-st-thead-filters-row\n class=\"ng2-smart-filters\"\n [grid]=\"grid()\"\n [source]=\"source()\"\n (create)=\"create.emit($event)\">\n </tr>\n}\n\n@if (grid().createFormShown) {\n <tr ng2-st-thead-form-row\n [grid]=\"grid()\"\n [createConfirm]=\"createConfirm\">\n </tr>\n}\n" }]
|
|
2920
2813
|
}], propDecorators: { createConfirm: [{
|
|
2921
2814
|
type: Input
|
|
2922
2815
|
}] } });
|