@unipin/angular-applet 21.3.1 → 21.5.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/README.md +4 -2
- package/fesm2022/unipin-angular-applet-accordion.mjs +39 -37
- package/fesm2022/unipin-angular-applet-accordion.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs +9 -9
- package/fesm2022/unipin-angular-applet-alert-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-alert.mjs +16 -19
- package/fesm2022/unipin-angular-applet-alert.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-approval.mjs +11 -11
- package/fesm2022/unipin-angular-applet-approval.mjs.map +1 -1
- package/fesm2022/{unipin-angular-applet-audit-audit-modal.component-3a2P0bZr.mjs → unipin-angular-applet-audit-audit-modal.component-Y61VDaze.mjs} +6 -7
- package/fesm2022/unipin-angular-applet-audit-audit-modal.component-Y61VDaze.mjs.map +1 -0
- package/fesm2022/unipin-angular-applet-audit.mjs +14 -14
- package/fesm2022/unipin-angular-applet-audit.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-auth.mjs +23 -26
- package/fesm2022/unipin-angular-applet-auth.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-avatar.mjs +6 -7
- package/fesm2022/unipin-angular-applet-avatar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-badge.mjs +6 -7
- package/fesm2022/unipin-angular-applet-badge.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-buttons.mjs +13 -15
- package/fesm2022/unipin-angular-applet-buttons.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-calendar.mjs +23 -27
- package/fesm2022/unipin-angular-applet-calendar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-collapsible.mjs +17 -20
- package/fesm2022/unipin-angular-applet-collapsible.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-common.mjs +25 -30
- package/fesm2022/unipin-angular-applet-common.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-containers.mjs +23 -26
- package/fesm2022/unipin-angular-applet-containers.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-dialog.mjs +64 -70
- package/fesm2022/unipin-angular-applet-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-forms.mjs +231 -236
- package/fesm2022/unipin-angular-applet-forms.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-froala.mjs +10 -11
- package/fesm2022/unipin-angular-applet-froala.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-grids.mjs +430 -17
- package/fesm2022/unipin-angular-applet-grids.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-infinite-scroll.mjs +5 -6
- package/fesm2022/unipin-angular-applet-infinite-scroll.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-json-viewer.mjs +8 -9
- package/fesm2022/unipin-angular-applet-json-viewer.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-kbd.mjs +5 -6
- package/fesm2022/unipin-angular-applet-kbd.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-loading-dialog.mjs +8 -9
- package/fesm2022/unipin-angular-applet-loading-dialog.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-markdown.mjs +20 -21
- package/fesm2022/unipin-angular-applet-markdown.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-popover.mjs +26 -30
- package/fesm2022/unipin-angular-applet-popover.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-progress-bar.mjs +8 -9
- package/fesm2022/unipin-angular-applet-progress-bar.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-skeleton.mjs +5 -6
- package/fesm2022/unipin-angular-applet-skeleton.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-spinner.mjs +7 -7
- package/fesm2022/unipin-angular-applet-spinner.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-stepper.mjs +17 -19
- package/fesm2022/unipin-angular-applet-stepper.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-swipeable.mjs +26 -30
- package/fesm2022/unipin-angular-applet-swipeable.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-tabs.mjs +22 -25
- package/fesm2022/unipin-angular-applet-tabs.mjs.map +1 -1
- package/fesm2022/unipin-angular-applet-tooltip.mjs +5 -6
- package/fesm2022/unipin-angular-applet-tooltip.mjs.map +1 -1
- package/package.json +6 -2
- package/types/unipin-angular-applet-accordion.d.ts +4 -2
- package/types/unipin-angular-applet-forms.d.ts +6 -3
- package/types/unipin-angular-applet-grids.d.ts +102 -15
- package/types/unipin-angular-applet-popover.d.ts +3 -3
- package/common/assets/sprites/flagGlobal.png +0 -0
- package/fesm2022/unipin-angular-applet-audit-audit-modal.component-3a2P0bZr.mjs.map +0 -1
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { themeQuartz, RowApiModule, RowStyleModule, PinnedRowModule, CellStyleModule, TextEditorModule, PaginationModule, RowSelectionModule, ClientSideRowModelModule, ClientSideRowModelApiModule, InfiniteRowModelModule, ModuleRegistry } from 'ag-grid-community';
|
|
2
|
+
import { up, generateContrastColor, formatCapitalize } from '@unipin/angular-applet/common';
|
|
2
3
|
import { badgeVariants } from '@unipin/angular-applet/badge';
|
|
4
|
+
import * as i0 from '@angular/core';
|
|
5
|
+
import { Injectable, input, model, booleanAttribute, output, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
6
|
+
import { AgGridAngular } from 'ag-grid-angular';
|
|
3
7
|
|
|
4
8
|
const rowNumberColumn = {
|
|
5
|
-
maxWidth:
|
|
9
|
+
maxWidth: 60,
|
|
6
10
|
pinned: 'left',
|
|
7
11
|
sortable: false,
|
|
8
12
|
lockPinned: true,
|
|
@@ -17,21 +21,53 @@ const rowNumberColumn = {
|
|
|
17
21
|
}
|
|
18
22
|
};
|
|
19
23
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
24
|
+
const gridDefaultColDef = {
|
|
25
|
+
flex: 1,
|
|
26
|
+
minWidth: 200,
|
|
27
|
+
sortable: true,
|
|
28
|
+
resizable: true,
|
|
29
|
+
editable: true,
|
|
30
|
+
sortingOrder: ['asc', 'desc'],
|
|
31
|
+
cellStyle: {
|
|
32
|
+
textAlign: 'left'
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
const gridTheme = themeQuartz.withParams({
|
|
36
|
+
headerFontWeight: 'bold',
|
|
37
|
+
accentColor: 'var(--primary)',
|
|
38
|
+
wrapperBorderRadius: 'var(--radius)',
|
|
39
|
+
wrapperBorder: '1px solid var(--border)',
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
function renderFlag(countryCode) {
|
|
43
|
+
const codes = [countryCode].flat().filter(Boolean);
|
|
44
|
+
if (!codes.length) {
|
|
23
45
|
return '';
|
|
24
46
|
}
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
47
|
+
const flagTemplate = codes.map((c) => {
|
|
48
|
+
const code = String(c).trim().toLowerCase();
|
|
49
|
+
const countryFlagSrc = `https://flagicons.lipis.dev/flags/1x1/${code}.svg`;
|
|
50
|
+
const globalFlagSrc = 'https://www.svgrepo.com/show/405734/globe-showing-asia-australia.svg';
|
|
51
|
+
const isGlobal = !code || code === 'go';
|
|
52
|
+
const style = isGlobal ? 'scale-[1.4]' : '';
|
|
53
|
+
const source = isGlobal ? globalFlagSrc : countryFlagSrc;
|
|
29
54
|
return `
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
55
|
+
<div
|
|
56
|
+
class="h-full overflow-hidden border border-border rounded-md relative"
|
|
57
|
+
title="${code}"
|
|
58
|
+
>
|
|
59
|
+
<img
|
|
60
|
+
loading="lazy"
|
|
61
|
+
alt="${code}"
|
|
62
|
+
src="${source}"
|
|
63
|
+
class="block size-full object-cover ${style}"
|
|
64
|
+
/>
|
|
65
|
+
</div>
|
|
66
|
+
`;
|
|
67
|
+
});
|
|
68
|
+
return `
|
|
69
|
+
<div class="flex items-center justify-center gap-2 size-full">
|
|
70
|
+
${flagTemplate.join('')}
|
|
35
71
|
</div>
|
|
36
72
|
`;
|
|
37
73
|
}
|
|
@@ -106,16 +142,393 @@ function renderStatusBadge(value, { additionalStatus, additionalClass = '' }) {
|
|
|
106
142
|
additionalClass
|
|
107
143
|
});
|
|
108
144
|
}
|
|
109
|
-
return renderGridBadge(value, {
|
|
110
|
-
isAutoGenerateColor:
|
|
145
|
+
return renderGridBadge(formatCapitalize(value), {
|
|
146
|
+
isAutoGenerateColor: false,
|
|
111
147
|
variant: used.variant,
|
|
112
148
|
additionalClass: up(used.class, additionalClass)
|
|
113
149
|
});
|
|
114
150
|
}
|
|
115
151
|
|
|
152
|
+
class GridService {
|
|
153
|
+
constructor() {
|
|
154
|
+
this.apis = new Map();
|
|
155
|
+
}
|
|
156
|
+
setApi(id, api) {
|
|
157
|
+
this.apis.set(id, api);
|
|
158
|
+
}
|
|
159
|
+
getApi(id) {
|
|
160
|
+
return this.apis.get(id);
|
|
161
|
+
}
|
|
162
|
+
refreshGridCache(id, forceRefresh = false) {
|
|
163
|
+
const api = this.apis.get(id);
|
|
164
|
+
if (!api) {
|
|
165
|
+
return;
|
|
166
|
+
}
|
|
167
|
+
api.refreshInfiniteCache();
|
|
168
|
+
if (forceRefresh) {
|
|
169
|
+
api.paginationGoToFirstPage();
|
|
170
|
+
api.purgeInfiniteCache();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: GridService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
174
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: GridService, providedIn: 'root' }); }
|
|
175
|
+
}
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: GridService, decorators: [{
|
|
177
|
+
type: Injectable,
|
|
178
|
+
args: [{
|
|
179
|
+
providedIn: 'root'
|
|
180
|
+
}]
|
|
181
|
+
}] });
|
|
182
|
+
|
|
183
|
+
class UpGridComponent {
|
|
184
|
+
constructor(service) {
|
|
185
|
+
this.service = service;
|
|
186
|
+
this.columnDefs = input.required(...(ngDevMode ? [{ debugName: "columnDefs" }] : /* istanbul ignore next */ []));
|
|
187
|
+
this.noRowText = input('Data not found', ...(ngDevMode ? [{ debugName: "noRowText" }] : /* istanbul ignore next */ []));
|
|
188
|
+
this.rowModelType = input('infinite', ...(ngDevMode ? [{ debugName: "rowModelType" }] : /* istanbul ignore next */ []));
|
|
189
|
+
this.rowSelection = input('single', ...(ngDevMode ? [{ debugName: "rowSelection" }] : /* istanbul ignore next */ []));
|
|
190
|
+
this.getRowClass = input(undefined, ...(ngDevMode ? [{ debugName: "getRowClass" }] : /* istanbul ignore next */ []));
|
|
191
|
+
this.id = input('grid-pagination', ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
192
|
+
this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : /* istanbul ignore next */ {}), alias: 'class' });
|
|
193
|
+
this.rowPerPage = model(50, ...(ngDevMode ? [{ debugName: "rowPerPage" }] : /* istanbul ignore next */ []));
|
|
194
|
+
this.pagination = input(true, { ...(ngDevMode ? { debugName: "pagination" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
195
|
+
this.gridReady = output();
|
|
196
|
+
this.rowClicked = output();
|
|
197
|
+
this.selectionChanged = output();
|
|
198
|
+
this.datasourceRefreshed = output();
|
|
199
|
+
this.theme = gridTheme;
|
|
200
|
+
this.defaultColDef = gridDefaultColDef;
|
|
201
|
+
this._computedClass = computed(() => {
|
|
202
|
+
return up('block size-full', this.inlineClass());
|
|
203
|
+
}, ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
|
|
204
|
+
}
|
|
205
|
+
ngOnInit() {
|
|
206
|
+
const modules = [
|
|
207
|
+
RowApiModule,
|
|
208
|
+
RowStyleModule,
|
|
209
|
+
PinnedRowModule,
|
|
210
|
+
CellStyleModule,
|
|
211
|
+
TextEditorModule,
|
|
212
|
+
PaginationModule,
|
|
213
|
+
RowSelectionModule,
|
|
214
|
+
];
|
|
215
|
+
switch (this.rowModelType()) {
|
|
216
|
+
case 'infinite':
|
|
217
|
+
modules.push(InfiniteRowModelModule);
|
|
218
|
+
break;
|
|
219
|
+
case 'clientSide':
|
|
220
|
+
modules.push(ClientSideRowModelModule, ClientSideRowModelApiModule);
|
|
221
|
+
break;
|
|
222
|
+
}
|
|
223
|
+
ModuleRegistry.registerModules(modules);
|
|
224
|
+
}
|
|
225
|
+
changePagination({ newPageSize, api }) {
|
|
226
|
+
if (newPageSize) {
|
|
227
|
+
this.rowPerPage.set(api.paginationGetPageSize());
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
dragColumn({ api }) {
|
|
231
|
+
localStorage.setItem(this.id(), btoa(JSON.stringify(api.getColumnState())));
|
|
232
|
+
}
|
|
233
|
+
setDatasource(ev) {
|
|
234
|
+
this.gridReady.emit(ev);
|
|
235
|
+
this.service.setApi(this.id(), ev.api);
|
|
236
|
+
this.setNoRowTemplate(ev.api, this.noRowText());
|
|
237
|
+
const saved = localStorage.getItem(this.id());
|
|
238
|
+
if (saved) {
|
|
239
|
+
try {
|
|
240
|
+
const state = JSON.parse(atob(saved));
|
|
241
|
+
ev.api.setColumnsVisible(ev.api.getAllGridColumns(), true);
|
|
242
|
+
ev.api.applyColumnState({
|
|
243
|
+
state,
|
|
244
|
+
applyOrder: true
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
catch { }
|
|
248
|
+
}
|
|
249
|
+
if (this.rowModelType() === 'infinite') {
|
|
250
|
+
ev.api.setGridOption('datasource', {
|
|
251
|
+
getRows: ({ api, sortModel, failCallback: fail, successCallback: success, }) => {
|
|
252
|
+
api.setGridOption('loading', true);
|
|
253
|
+
this.setNoRowTemplate(api, this.noRowText());
|
|
254
|
+
const page = api.paginationGetCurrentPage();
|
|
255
|
+
const pageSize = api.paginationGetPageSize();
|
|
256
|
+
const failCallback = (message) => {
|
|
257
|
+
fail();
|
|
258
|
+
api.setGridOption('loading', false);
|
|
259
|
+
if (message) {
|
|
260
|
+
this.setNoRowTemplate(api, message);
|
|
261
|
+
}
|
|
262
|
+
api.showNoRowsOverlay();
|
|
263
|
+
};
|
|
264
|
+
const successCallback = (data, count) => {
|
|
265
|
+
api.setGridOption('loading', false);
|
|
266
|
+
if (page === 0) {
|
|
267
|
+
if (!data.length) {
|
|
268
|
+
this.setNoRowTemplate(api, this.noRowText());
|
|
269
|
+
api.showNoRowsOverlay();
|
|
270
|
+
}
|
|
271
|
+
this.count = count;
|
|
272
|
+
}
|
|
273
|
+
success(data, this.count);
|
|
274
|
+
};
|
|
275
|
+
this.datasourceRefreshed.emit({
|
|
276
|
+
page,
|
|
277
|
+
pageSize,
|
|
278
|
+
failCallback,
|
|
279
|
+
successCallback,
|
|
280
|
+
sort: !sortModel.length ? undefined : {
|
|
281
|
+
colId: sortModel[0].colId || '',
|
|
282
|
+
sort: sortModel[0].sort || 'asc'
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
}
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
setNoRowTemplate(api, text) {
|
|
290
|
+
api.setGridOption('overlayNoRowsTemplate', `<span class="text-lg">${text}</span>`);
|
|
291
|
+
}
|
|
292
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: UpGridComponent, deps: [{ token: GridService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
293
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.7", type: UpGridComponent, isStandalone: true, selector: "up-grid", inputs: { columnDefs: { classPropertyName: "columnDefs", publicName: "columnDefs", isSignal: true, isRequired: true, transformFunction: null }, noRowText: { classPropertyName: "noRowText", publicName: "noRowText", isSignal: true, isRequired: false, transformFunction: null }, rowModelType: { classPropertyName: "rowModelType", publicName: "rowModelType", isSignal: true, isRequired: false, transformFunction: null }, rowSelection: { classPropertyName: "rowSelection", publicName: "rowSelection", isSignal: true, isRequired: false, transformFunction: null }, getRowClass: { classPropertyName: "getRowClass", publicName: "getRowClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, rowPerPage: { classPropertyName: "rowPerPage", publicName: "rowPerPage", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rowPerPage: "rowPerPageChange", gridReady: "gridReady", rowClicked: "rowClicked", selectionChanged: "selectionChanged", datasourceRefreshed: "datasourceRefreshed" }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0, template: `
|
|
294
|
+
<ag-grid-angular
|
|
295
|
+
class="size-full"
|
|
296
|
+
|
|
297
|
+
[theme]="theme"
|
|
298
|
+
[animateRows]="true"
|
|
299
|
+
[defaultColDef]="defaultColDef"
|
|
300
|
+
|
|
301
|
+
[columnDefs]="columnDefs()"
|
|
302
|
+
[getRowClass]="getRowClass()"
|
|
303
|
+
[rowModelType]="rowModelType()"
|
|
304
|
+
[rowSelection]="rowSelection()"
|
|
305
|
+
|
|
306
|
+
[pagination]="pagination()"
|
|
307
|
+
[cacheBlockSize]="rowPerPage()"
|
|
308
|
+
[paginationPageSize]="rowPerPage()"
|
|
309
|
+
|
|
310
|
+
(rowClicked)="rowClicked.emit($event)"
|
|
311
|
+
(selectionChanged)="selectionChanged.emit($event)"
|
|
312
|
+
|
|
313
|
+
(dragStopped)="dragColumn($event)"
|
|
314
|
+
(gridReady)="setDatasource($event)"
|
|
315
|
+
(paginationChanged)="changePagination($event)"
|
|
316
|
+
/>
|
|
317
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipSwitchShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "hidePaddedHeaderRows", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "animateColumnResizing", "components", "editType", "suppressStartEditOnTab", "getFullRowEditValidationErrors", "invalidEditValueMode", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "findSearchValue", "findOptions", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "advancedFilterParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableFilterHandlers", "filterHandlers", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "suppressOverlays", "overlayComponent", "overlayComponentParams", "overlayComponentSelector", "activeOverlay", "activeOverlayParams", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "formulaDataSource", "formulaFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableCellSpan", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "refreshAfterGroupEdit", "rowDragInsertDelay", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupHideColumnsUntilExpanded", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "treeDataChildrenField", "treeDataParentIdField", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "groupHierarchyConfig", "pinnedTopRowData", "pinnedBottomRowData", "enableRowPinning", "isRowPinnable", "isRowPinned", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "rowNumbers", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "themeCssLayer", "styleNonce", "themeStyleContainer", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "tabToNextGridContainer", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "ssrmExpandAllAffectsAllRows", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow", "isRowValidDropPosition"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnsReset", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "bulkEditingStarted", "bulkEditingStopped", "batchEditingStarted", "batchEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "filterUiChanged", "floatingFilterUiChanged", "advancedFilterBuilderVisibleChanged", "findChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "rowResizeStarted", "rowResizeEnded", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "pinnedRowsChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
318
|
+
}
|
|
319
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: UpGridComponent, decorators: [{
|
|
320
|
+
type: Component,
|
|
321
|
+
args: [{
|
|
322
|
+
selector: 'up-grid',
|
|
323
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
324
|
+
host: {
|
|
325
|
+
'[class]': '_computedClass()',
|
|
326
|
+
},
|
|
327
|
+
imports: [
|
|
328
|
+
AgGridAngular,
|
|
329
|
+
],
|
|
330
|
+
template: `
|
|
331
|
+
<ag-grid-angular
|
|
332
|
+
class="size-full"
|
|
333
|
+
|
|
334
|
+
[theme]="theme"
|
|
335
|
+
[animateRows]="true"
|
|
336
|
+
[defaultColDef]="defaultColDef"
|
|
337
|
+
|
|
338
|
+
[columnDefs]="columnDefs()"
|
|
339
|
+
[getRowClass]="getRowClass()"
|
|
340
|
+
[rowModelType]="rowModelType()"
|
|
341
|
+
[rowSelection]="rowSelection()"
|
|
342
|
+
|
|
343
|
+
[pagination]="pagination()"
|
|
344
|
+
[cacheBlockSize]="rowPerPage()"
|
|
345
|
+
[paginationPageSize]="rowPerPage()"
|
|
346
|
+
|
|
347
|
+
(rowClicked)="rowClicked.emit($event)"
|
|
348
|
+
(selectionChanged)="selectionChanged.emit($event)"
|
|
349
|
+
|
|
350
|
+
(dragStopped)="dragColumn($event)"
|
|
351
|
+
(gridReady)="setDatasource($event)"
|
|
352
|
+
(paginationChanged)="changePagination($event)"
|
|
353
|
+
/>
|
|
354
|
+
`,
|
|
355
|
+
}]
|
|
356
|
+
}], ctorParameters: () => [{ type: GridService }], propDecorators: { columnDefs: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnDefs", required: true }] }], noRowText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noRowText", required: false }] }], rowModelType: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowModelType", required: false }] }], rowSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSelection", required: false }] }], getRowClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRowClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], inlineClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], rowPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowPerPage", required: false }] }, { type: i0.Output, args: ["rowPerPageChange"] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], gridReady: [{ type: i0.Output, args: ["gridReady"] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], selectionChanged: [{ type: i0.Output, args: ["selectionChanged"] }], datasourceRefreshed: [{ type: i0.Output, args: ["datasourceRefreshed"] }] } });
|
|
357
|
+
|
|
358
|
+
class UpSnapshotGridComponent {
|
|
359
|
+
constructor(service) {
|
|
360
|
+
this.service = service;
|
|
361
|
+
this.columnDefs = input.required(...(ngDevMode ? [{ debugName: "columnDefs" }] : /* istanbul ignore next */ []));
|
|
362
|
+
this.noRowText = input('Data not found', ...(ngDevMode ? [{ debugName: "noRowText" }] : /* istanbul ignore next */ []));
|
|
363
|
+
this.rowSelection = input('single', ...(ngDevMode ? [{ debugName: "rowSelection" }] : /* istanbul ignore next */ []));
|
|
364
|
+
this.getRowClass = input(undefined, ...(ngDevMode ? [{ debugName: "getRowClass" }] : /* istanbul ignore next */ []));
|
|
365
|
+
this.id = input('grid-snapshot', ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
366
|
+
this.inlineClass = input('', { ...(ngDevMode ? { debugName: "inlineClass" } : /* istanbul ignore next */ {}), alias: 'class' });
|
|
367
|
+
this.rowPerPage = model(50, ...(ngDevMode ? [{ debugName: "rowPerPage" }] : /* istanbul ignore next */ []));
|
|
368
|
+
this.pagination = input(true, { ...(ngDevMode ? { debugName: "pagination" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
369
|
+
this.gridReady = output();
|
|
370
|
+
this.rowClicked = output();
|
|
371
|
+
this.selectionChanged = output();
|
|
372
|
+
this.datasourceRefreshed = output();
|
|
373
|
+
this.theme = gridTheme;
|
|
374
|
+
this.defaultColDef = gridDefaultColDef;
|
|
375
|
+
this._computedClass = computed(() => {
|
|
376
|
+
return up('block size-full', this.inlineClass());
|
|
377
|
+
}, ...(ngDevMode ? [{ debugName: "_computedClass" }] : /* istanbul ignore next */ []));
|
|
378
|
+
}
|
|
379
|
+
ngOnInit() {
|
|
380
|
+
ModuleRegistry.registerModules([
|
|
381
|
+
RowApiModule,
|
|
382
|
+
RowStyleModule,
|
|
383
|
+
PinnedRowModule,
|
|
384
|
+
CellStyleModule,
|
|
385
|
+
TextEditorModule,
|
|
386
|
+
PaginationModule,
|
|
387
|
+
RowSelectionModule,
|
|
388
|
+
InfiniteRowModelModule
|
|
389
|
+
]);
|
|
390
|
+
}
|
|
391
|
+
changePagination({ newPageSize, api }) {
|
|
392
|
+
if (newPageSize) {
|
|
393
|
+
this.rowPerPage.set(api.paginationGetPageSize());
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
dragColumn({ api }) {
|
|
397
|
+
localStorage.setItem(this.id(), btoa(JSON.stringify(api.getColumnState())));
|
|
398
|
+
}
|
|
399
|
+
setDatasource(ev) {
|
|
400
|
+
this.gridReady.emit(ev);
|
|
401
|
+
this.service.setApi(this.id(), ev.api);
|
|
402
|
+
this.setNoRowTemplate(ev.api, this.noRowText());
|
|
403
|
+
const saved = localStorage.getItem(this.id());
|
|
404
|
+
if (saved) {
|
|
405
|
+
try {
|
|
406
|
+
const state = JSON.parse(atob(saved));
|
|
407
|
+
ev.api.setColumnsVisible(ev.api.getAllGridColumns(), true);
|
|
408
|
+
ev.api.applyColumnState({
|
|
409
|
+
state,
|
|
410
|
+
applyOrder: true
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
catch { }
|
|
414
|
+
}
|
|
415
|
+
ev.api.setGridOption('datasource', {
|
|
416
|
+
getRows: ({ api, sortModel, failCallback: fail, successCallback: success, }) => {
|
|
417
|
+
api.setGridOption('loading', true);
|
|
418
|
+
this.setNoRowTemplate(api, this.noRowText());
|
|
419
|
+
const page = api.paginationGetCurrentPage();
|
|
420
|
+
const pageSize = api.paginationGetPageSize();
|
|
421
|
+
if (page === 0) {
|
|
422
|
+
this.after = undefined;
|
|
423
|
+
}
|
|
424
|
+
const failCallback = (message) => {
|
|
425
|
+
fail();
|
|
426
|
+
api.setGridOption('loading', false);
|
|
427
|
+
if (message) {
|
|
428
|
+
this.setNoRowTemplate(api, message);
|
|
429
|
+
}
|
|
430
|
+
api.showNoRowsOverlay();
|
|
431
|
+
};
|
|
432
|
+
const successCallback = (data, { endCursor, hasNextPage }) => {
|
|
433
|
+
api.setGridOption('loading', false);
|
|
434
|
+
if (!data.length &&
|
|
435
|
+
page === 0) {
|
|
436
|
+
this.setNoRowTemplate(api, this.noRowText());
|
|
437
|
+
api.showNoRowsOverlay();
|
|
438
|
+
}
|
|
439
|
+
if (hasNextPage &&
|
|
440
|
+
endCursor) {
|
|
441
|
+
this.after = endCursor;
|
|
442
|
+
success(data, undefined);
|
|
443
|
+
return;
|
|
444
|
+
}
|
|
445
|
+
success(data, page * pageSize + data.length);
|
|
446
|
+
};
|
|
447
|
+
this.datasourceRefreshed.emit({
|
|
448
|
+
after: this.after ?? null,
|
|
449
|
+
pageSize,
|
|
450
|
+
failCallback,
|
|
451
|
+
successCallback,
|
|
452
|
+
sort: !sortModel.length ? undefined : {
|
|
453
|
+
colId: sortModel[0].colId || '',
|
|
454
|
+
sort: sortModel[0].sort || 'asc'
|
|
455
|
+
}
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
}
|
|
460
|
+
setNoRowTemplate(api, text) {
|
|
461
|
+
api.setGridOption('overlayNoRowsTemplate', `<span class="text-lg">${text}</span>`);
|
|
462
|
+
}
|
|
463
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: UpSnapshotGridComponent, deps: [{ token: GridService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
464
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.7", type: UpSnapshotGridComponent, isStandalone: true, selector: "up-snapshot-grid", inputs: { columnDefs: { classPropertyName: "columnDefs", publicName: "columnDefs", isSignal: true, isRequired: true, transformFunction: null }, noRowText: { classPropertyName: "noRowText", publicName: "noRowText", isSignal: true, isRequired: false, transformFunction: null }, rowSelection: { classPropertyName: "rowSelection", publicName: "rowSelection", isSignal: true, isRequired: false, transformFunction: null }, getRowClass: { classPropertyName: "getRowClass", publicName: "getRowClass", isSignal: true, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, inlineClass: { classPropertyName: "inlineClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null }, rowPerPage: { classPropertyName: "rowPerPage", publicName: "rowPerPage", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { rowPerPage: "rowPerPageChange", gridReady: "gridReady", rowClicked: "rowClicked", selectionChanged: "selectionChanged", datasourceRefreshed: "datasourceRefreshed" }, host: { properties: { "class": "_computedClass()" } }, ngImport: i0, template: `
|
|
465
|
+
<ag-grid-angular
|
|
466
|
+
class="size-full"
|
|
467
|
+
rowModelType="infinite"
|
|
468
|
+
|
|
469
|
+
[theme]="theme"
|
|
470
|
+
[animateRows]="true"
|
|
471
|
+
[defaultColDef]="defaultColDef"
|
|
472
|
+
|
|
473
|
+
[columnDefs]="columnDefs()"
|
|
474
|
+
[getRowClass]="getRowClass()"
|
|
475
|
+
[rowSelection]="rowSelection()"
|
|
476
|
+
|
|
477
|
+
[pagination]="pagination()"
|
|
478
|
+
[cacheBlockSize]="rowPerPage()"
|
|
479
|
+
[paginationPageSize]="rowPerPage()"
|
|
480
|
+
|
|
481
|
+
(rowClicked)="rowClicked.emit($event)"
|
|
482
|
+
(selectionChanged)="selectionChanged.emit($event)"
|
|
483
|
+
|
|
484
|
+
(dragStopped)="dragColumn($event)"
|
|
485
|
+
(gridReady)="setDatasource($event)"
|
|
486
|
+
(paginationChanged)="changePagination($event)"
|
|
487
|
+
/>
|
|
488
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgGridAngular, selector: "ag-grid-angular", inputs: ["gridOptions", "modules", "statusBar", "sideBar", "suppressContextMenu", "preventDefaultOnContextMenu", "allowContextMenuWithControlKey", "columnMenu", "suppressMenuHide", "enableBrowserTooltips", "tooltipTrigger", "tooltipShowDelay", "tooltipSwitchShowDelay", "tooltipHideDelay", "tooltipMouseTrack", "tooltipShowMode", "tooltipInteraction", "popupParent", "copyHeadersToClipboard", "copyGroupHeadersToClipboard", "clipboardDelimiter", "suppressCopyRowsToClipboard", "suppressCopySingleCellRanges", "suppressLastEmptyLineOnPaste", "suppressClipboardPaste", "suppressClipboardApi", "suppressCutToClipboard", "columnDefs", "defaultColDef", "defaultColGroupDef", "columnTypes", "dataTypeDefinitions", "maintainColumnOrder", "enableStrictPivotColumnOrder", "suppressFieldDotNotation", "headerHeight", "groupHeaderHeight", "floatingFiltersHeight", "pivotHeaderHeight", "pivotGroupHeaderHeight", "hidePaddedHeaderRows", "allowDragFromColumnsToolPanel", "suppressMovableColumns", "suppressColumnMoveAnimation", "suppressMoveWhenColumnDragging", "suppressDragLeaveHidesColumns", "suppressGroupChangesColumnVisibility", "suppressMakeColumnVisibleAfterUnGroup", "suppressRowGroupHidesColumns", "colResizeDefault", "suppressAutoSize", "autoSizePadding", "skipHeaderOnAutoSize", "autoSizeStrategy", "animateColumnResizing", "components", "editType", "suppressStartEditOnTab", "getFullRowEditValidationErrors", "invalidEditValueMode", "singleClickEdit", "suppressClickEdit", "readOnlyEdit", "stopEditingWhenCellsLoseFocus", "enterNavigatesVertically", "enterNavigatesVerticallyAfterEdit", "enableCellEditingOnBackspace", "undoRedoCellEditing", "undoRedoCellEditingLimit", "defaultCsvExportParams", "suppressCsvExport", "defaultExcelExportParams", "suppressExcelExport", "excelStyles", "findSearchValue", "findOptions", "quickFilterText", "cacheQuickFilter", "includeHiddenColumnsInQuickFilter", "quickFilterParser", "quickFilterMatcher", "applyQuickFilterBeforePivotOrAgg", "excludeChildrenWhenTreeDataFiltering", "enableAdvancedFilter", "alwaysPassFilter", "includeHiddenColumnsInAdvancedFilter", "advancedFilterParent", "advancedFilterBuilderParams", "advancedFilterParams", "suppressAdvancedFilterEval", "suppressSetFilterByDefault", "enableFilterHandlers", "filterHandlers", "enableCharts", "chartThemes", "customChartThemes", "chartThemeOverrides", "chartToolPanelsDef", "chartMenuItems", "loadingCellRenderer", "loadingCellRendererParams", "loadingCellRendererSelector", "localeText", "masterDetail", "keepDetailRows", "keepDetailRowsCount", "detailCellRenderer", "detailCellRendererParams", "detailRowHeight", "detailRowAutoHeight", "context", "alignedGrids", "tabIndex", "rowBuffer", "valueCache", "valueCacheNeverExpires", "enableCellExpressions", "suppressTouch", "suppressFocusAfterRefresh", "suppressBrowserResizeObserver", "suppressPropertyNamesCheck", "suppressChangeDetection", "debug", "loading", "overlayLoadingTemplate", "loadingOverlayComponent", "loadingOverlayComponentParams", "suppressLoadingOverlay", "overlayNoRowsTemplate", "noRowsOverlayComponent", "noRowsOverlayComponentParams", "suppressNoRowsOverlay", "suppressOverlays", "overlayComponent", "overlayComponentParams", "overlayComponentSelector", "activeOverlay", "activeOverlayParams", "pagination", "paginationPageSize", "paginationPageSizeSelector", "paginationAutoPageSize", "paginateChildRows", "suppressPaginationPanel", "pivotMode", "pivotPanelShow", "pivotMaxGeneratedColumns", "pivotDefaultExpanded", "pivotColumnGroupTotals", "pivotRowTotals", "pivotSuppressAutoColumn", "suppressExpandablePivotGroups", "functionsReadOnly", "aggFuncs", "formulaDataSource", "formulaFuncs", "suppressAggFuncInHeader", "alwaysAggregateAtRootLevel", "aggregateOnlyChangedColumns", "suppressAggFilteredOnly", "removePivotHeaderRowWhenSingleValueColumn", "animateRows", "cellFlashDuration", "cellFadeDuration", "allowShowChangeAfterFilter", "domLayout", "ensureDomOrder", "enableCellSpan", "enableRtl", "suppressColumnVirtualisation", "suppressMaxRenderedRowRestriction", "suppressRowVirtualisation", "rowDragManaged", "refreshAfterGroupEdit", "rowDragInsertDelay", "suppressRowDrag", "suppressMoveWhenRowDragging", "rowDragEntireRow", "rowDragMultiRow", "rowDragText", "dragAndDropImageComponent", "dragAndDropImageComponentParams", "fullWidthCellRenderer", "fullWidthCellRendererParams", "embedFullWidthRows", "groupDisplayType", "groupDefaultExpanded", "autoGroupColumnDef", "groupMaintainOrder", "groupSelectsChildren", "groupLockGroupColumns", "groupAggFiltering", "groupTotalRow", "grandTotalRow", "suppressStickyTotalRow", "groupSuppressBlankHeader", "groupSelectsFiltered", "showOpenedGroup", "groupHideParentOfSingleChild", "groupRemoveSingleChildren", "groupRemoveLowestSingleChildren", "groupHideOpenParents", "groupHideColumnsUntilExpanded", "groupAllowUnbalanced", "rowGroupPanelShow", "groupRowRenderer", "groupRowRendererParams", "treeData", "treeDataChildrenField", "treeDataParentIdField", "rowGroupPanelSuppressSort", "suppressGroupRowsSticky", "groupHierarchyConfig", "pinnedTopRowData", "pinnedBottomRowData", "enableRowPinning", "isRowPinnable", "isRowPinned", "rowModelType", "rowData", "asyncTransactionWaitMillis", "suppressModelUpdateAfterUpdateTransaction", "datasource", "cacheOverflowSize", "infiniteInitialRowCount", "serverSideInitialRowCount", "suppressServerSideFullWidthLoadingRow", "cacheBlockSize", "maxBlocksInCache", "maxConcurrentDatasourceRequests", "blockLoadDebounceMillis", "purgeClosedRowNodes", "serverSideDatasource", "serverSideSortAllLevels", "serverSideEnableClientSideSort", "serverSideOnlyRefreshFilteredGroups", "serverSidePivotResultFieldSeparator", "viewportDatasource", "viewportRowModelPageSize", "viewportRowModelBufferSize", "alwaysShowHorizontalScroll", "alwaysShowVerticalScroll", "debounceVerticalScrollbar", "suppressHorizontalScroll", "suppressScrollOnNewData", "suppressScrollWhenPopupsAreOpen", "suppressAnimationFrame", "suppressMiddleClickScrolls", "suppressPreventDefaultOnMouseWheel", "scrollbarWidth", "rowSelection", "cellSelection", "rowMultiSelectWithClick", "suppressRowDeselection", "suppressRowClickSelection", "suppressCellFocus", "suppressHeaderFocus", "selectionColumnDef", "rowNumbers", "suppressMultiRangeSelection", "enableCellTextSelection", "enableRangeSelection", "enableRangeHandle", "enableFillHandle", "fillHandleDirection", "suppressClearOnFillReduction", "sortingOrder", "accentedSort", "unSortIcon", "suppressMultiSort", "alwaysMultiSort", "multiSortKey", "suppressMaintainUnsortedOrder", "icons", "rowHeight", "rowStyle", "rowClass", "rowClassRules", "suppressRowHoverHighlight", "suppressRowTransform", "columnHoverHighlight", "gridId", "deltaSort", "treeDataDisplayType", "enableGroupEdit", "initialState", "theme", "loadThemeGoogleFonts", "themeCssLayer", "styleNonce", "themeStyleContainer", "getContextMenuItems", "getMainMenuItems", "postProcessPopup", "processUnpinnedColumns", "processCellForClipboard", "processHeaderForClipboard", "processGroupHeaderForClipboard", "processCellFromClipboard", "sendToClipboard", "processDataFromClipboard", "isExternalFilterPresent", "doesExternalFilterPass", "getChartToolbarItems", "createChartContainer", "focusGridInnerElement", "navigateToNextHeader", "tabToNextHeader", "navigateToNextCell", "tabToNextCell", "tabToNextGridContainer", "getLocaleText", "getDocument", "paginationNumberFormatter", "getGroupRowAgg", "isGroupOpenByDefault", "ssrmExpandAllAffectsAllRows", "initialGroupOrderComparator", "processPivotResultColDef", "processPivotResultColGroupDef", "getDataPath", "getChildCount", "getServerSideGroupLevelParams", "isServerSideGroupOpenByDefault", "isApplyServerSideTransaction", "isServerSideGroup", "getServerSideGroupKey", "getBusinessKeyForNode", "getRowId", "resetRowDataOnUpdate", "processRowPostCreate", "isRowSelectable", "isRowMaster", "fillOperation", "postSortRows", "getRowStyle", "getRowClass", "getRowHeight", "isFullWidthRow", "isRowValidDropPosition"], outputs: ["toolPanelVisibleChanged", "toolPanelSizeChanged", "columnMenuVisibleChanged", "contextMenuVisibleChanged", "cutStart", "cutEnd", "pasteStart", "pasteEnd", "columnVisible", "columnPinned", "columnResized", "columnMoved", "columnValueChanged", "columnPivotModeChanged", "columnPivotChanged", "columnGroupOpened", "newColumnsLoaded", "gridColumnsChanged", "displayedColumnsChanged", "virtualColumnsChanged", "columnEverythingChanged", "columnsReset", "columnHeaderMouseOver", "columnHeaderMouseLeave", "columnHeaderClicked", "columnHeaderContextMenu", "componentStateChanged", "cellValueChanged", "cellEditRequest", "rowValueChanged", "cellEditingStarted", "cellEditingStopped", "rowEditingStarted", "rowEditingStopped", "bulkEditingStarted", "bulkEditingStopped", "batchEditingStarted", "batchEditingStopped", "undoStarted", "undoEnded", "redoStarted", "redoEnded", "cellSelectionDeleteStart", "cellSelectionDeleteEnd", "rangeDeleteStart", "rangeDeleteEnd", "fillStart", "fillEnd", "filterOpened", "filterChanged", "filterModified", "filterUiChanged", "floatingFilterUiChanged", "advancedFilterBuilderVisibleChanged", "findChanged", "chartCreated", "chartRangeSelectionChanged", "chartOptionsChanged", "chartDestroyed", "cellKeyDown", "gridReady", "firstDataRendered", "gridSizeChanged", "modelUpdated", "virtualRowRemoved", "viewportChanged", "bodyScroll", "bodyScrollEnd", "dragStarted", "dragStopped", "dragCancelled", "stateUpdated", "paginationChanged", "rowDragEnter", "rowDragMove", "rowDragLeave", "rowDragEnd", "rowDragCancel", "rowResizeStarted", "rowResizeEnded", "columnRowGroupChanged", "rowGroupOpened", "expandOrCollapseAll", "pivotMaxColumnsExceeded", "pinnedRowDataChanged", "pinnedRowsChanged", "rowDataUpdated", "asyncTransactionsFlushed", "storeRefreshed", "headerFocused", "cellClicked", "cellDoubleClicked", "cellFocused", "cellMouseOver", "cellMouseOut", "cellMouseDown", "rowClicked", "rowDoubleClicked", "rowSelected", "selectionChanged", "cellContextMenu", "rangeSelectionChanged", "cellSelectionChanged", "tooltipShow", "tooltipHide", "sortChanged"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
489
|
+
}
|
|
490
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.7", ngImport: i0, type: UpSnapshotGridComponent, decorators: [{
|
|
491
|
+
type: Component,
|
|
492
|
+
args: [{
|
|
493
|
+
selector: 'up-snapshot-grid',
|
|
494
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
495
|
+
host: {
|
|
496
|
+
'[class]': '_computedClass()',
|
|
497
|
+
},
|
|
498
|
+
imports: [
|
|
499
|
+
AgGridAngular,
|
|
500
|
+
],
|
|
501
|
+
template: `
|
|
502
|
+
<ag-grid-angular
|
|
503
|
+
class="size-full"
|
|
504
|
+
rowModelType="infinite"
|
|
505
|
+
|
|
506
|
+
[theme]="theme"
|
|
507
|
+
[animateRows]="true"
|
|
508
|
+
[defaultColDef]="defaultColDef"
|
|
509
|
+
|
|
510
|
+
[columnDefs]="columnDefs()"
|
|
511
|
+
[getRowClass]="getRowClass()"
|
|
512
|
+
[rowSelection]="rowSelection()"
|
|
513
|
+
|
|
514
|
+
[pagination]="pagination()"
|
|
515
|
+
[cacheBlockSize]="rowPerPage()"
|
|
516
|
+
[paginationPageSize]="rowPerPage()"
|
|
517
|
+
|
|
518
|
+
(rowClicked)="rowClicked.emit($event)"
|
|
519
|
+
(selectionChanged)="selectionChanged.emit($event)"
|
|
520
|
+
|
|
521
|
+
(dragStopped)="dragColumn($event)"
|
|
522
|
+
(gridReady)="setDatasource($event)"
|
|
523
|
+
(paginationChanged)="changePagination($event)"
|
|
524
|
+
/>
|
|
525
|
+
`,
|
|
526
|
+
}]
|
|
527
|
+
}], ctorParameters: () => [{ type: GridService }], propDecorators: { columnDefs: [{ type: i0.Input, args: [{ isSignal: true, alias: "columnDefs", required: true }] }], noRowText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noRowText", required: false }] }], rowSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowSelection", required: false }] }], getRowClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "getRowClass", required: false }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], inlineClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }], rowPerPage: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowPerPage", required: false }] }, { type: i0.Output, args: ["rowPerPageChange"] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], gridReady: [{ type: i0.Output, args: ["gridReady"] }], rowClicked: [{ type: i0.Output, args: ["rowClicked"] }], selectionChanged: [{ type: i0.Output, args: ["selectionChanged"] }], datasourceRefreshed: [{ type: i0.Output, args: ["datasourceRefreshed"] }] } });
|
|
528
|
+
|
|
116
529
|
/**
|
|
117
530
|
* Generated bundle index. Do not edit.
|
|
118
531
|
*/
|
|
119
532
|
|
|
120
|
-
export { renderFlag, renderGridBadge, renderStatusBadge, rowNumberColumn };
|
|
533
|
+
export { GridService, UpGridComponent, UpSnapshotGridComponent, gridDefaultColDef, gridTheme, renderFlag, renderGridBadge, renderStatusBadge, rowNumberColumn };
|
|
121
534
|
//# sourceMappingURL=unipin-angular-applet-grids.mjs.map
|