@one-grid-core/angular 0.1.0-beta.5 → 0.1.0-beta.6
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/esm2022/lib/index.mjs
CHANGED
|
@@ -15,5 +15,7 @@ export * from './core/models/one-pagination-types.model';
|
|
|
15
15
|
export * from './core/models/one-validation.model';
|
|
16
16
|
export * from './core/models/one-tree-data.model';
|
|
17
17
|
export * from './components/one-grid/one-grid.component';
|
|
18
|
+
export * from './components/one-grid-status/one-grid-status.component';
|
|
19
|
+
export * from './components/one-grid-cell-currency/one-grid-cell-currency.component';
|
|
18
20
|
export * from './one-grid.module';
|
|
19
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9vbmUtZ3JpZC9zcmMvbGliL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsaUNBQWlDLENBQUM7QUFDaEQsY0FBYyxpQ0FBaUMsQ0FBQztBQUNoRCxjQUFjLG9DQUFvQyxDQUFDO0FBQ25ELGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYyx3Q0FBd0MsQ0FBQztBQUN2RCxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMsNENBQTRDLENBQUM7QUFDM0QsY0FBYyx1Q0FBdUMsQ0FBQztBQUN0RCxjQUFjLDRDQUE0QyxDQUFDO0FBQzNELGNBQWMsaURBQWlELENBQUM7QUFDaEUsY0FBYywwQ0FBMEMsQ0FBQztBQUN6RCxjQUFjLHFDQUFxQyxDQUFDO0FBQ3BELGNBQWMsb0NBQW9DLENBQUM7QUFDbkQsY0FBYywwQ0FBMEMsQ0FBQztBQUN6RCxjQUFjLG9DQUFvQyxDQUFDO0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Lm1vZGVsJztcbmV4cG9ydCAqIGZyb20gJy4vY29yZS9tb2RlbHMvb25lLWdyaWQtdHlwZXMubW9kZWwnO1xuZXhwb3J0ICogZnJvbSAnLi9jb3JlL21vZGVscy9vbmUtcGFnaW5hdGlvbi10eXBlcy5tb2RlbCc7XG5leHBvcnQgKiBmcm9tICcuL2NvcmUvbW9kZWxzL29uZS12YWxpZGF0aW9uLm1vZGVsJztcbmV4cG9ydCAqIGZyb20gJy4vY29yZS9tb2RlbHMvb25lLXRyZWUtZGF0YS5tb2RlbCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvb25lLWdyaWQvb25lLWdyaWQuY29tcG9uZW50JztcbmV4cG9ydCAqIGZyb20gJy4vY29tcG9uZW50cy9vbmUtZ3JpZC1zdGF0dXMvb25lLWdyaWQtc3RhdHVzLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvb25lLWdyaWQtY2VsbC1jdXJyZW5jeS9vbmUtZ3JpZC1jZWxsLWN1cnJlbmN5LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL29uZS1ncmlkLm1vZHVsZSc7XG4iXX0=
|
|
@@ -3313,73 +3313,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3313
3313
|
args: [{ standalone: false, selector: 'one-grid-status', template: "<span class=\"one-cell-status\"\n [style.width.px]=\"params.columnDef?.width\"\n [style.min-width.px]=\"params.columnDef?.minWidth\"\n [style.max-width.px]=\"params.columnDef?.maxWidth\"\n >\n <span class=\"one-cell-status-body\" [ngClass]=\"label === 1 ? 'one-success-bg' : 'one-warning-bg'\">\n {{ value }}\n </span>\n</span>\n" }]
|
|
3314
3314
|
}] });
|
|
3315
3315
|
|
|
3316
|
-
class CellActionButtonVisiblePipe {
|
|
3317
|
-
transform(column, node) {
|
|
3318
|
-
return (node?.leaf && !(node?.group && node?.leafGroup) && !column?.autoGroupField) || (!node?.leaf && (node?.group || node?.leafGroup) && column?.autoGroupField && column?.editableLevels?.includes(node.level));
|
|
3319
|
-
}
|
|
3320
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3321
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, name: "cellActionButtonVisible" }); }
|
|
3322
|
-
}
|
|
3323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, decorators: [{
|
|
3324
|
-
type: Pipe,
|
|
3325
|
-
args: [{
|
|
3326
|
-
standalone: false,
|
|
3327
|
-
name: 'cellActionButtonVisible'
|
|
3328
|
-
}]
|
|
3329
|
-
}] });
|
|
3330
|
-
|
|
3331
|
-
class CellNumberValuePipe {
|
|
3332
|
-
transform(value) {
|
|
3333
|
-
if (value === null || value === undefined)
|
|
3334
|
-
return undefined;
|
|
3335
|
-
return Number(value);
|
|
3336
|
-
}
|
|
3337
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3338
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, name: "cellNumberValue" }); }
|
|
3339
|
-
}
|
|
3340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, decorators: [{
|
|
3341
|
-
type: Pipe,
|
|
3342
|
-
args: [{
|
|
3343
|
-
standalone: false,
|
|
3344
|
-
name: 'cellNumberValue'
|
|
3345
|
-
}]
|
|
3346
|
-
}] });
|
|
3347
|
-
|
|
3348
|
-
class CellFieldPipe {
|
|
3349
|
-
transform(rowIndex, field) {
|
|
3350
|
-
if (rowIndex === null || rowIndex === undefined || !field)
|
|
3351
|
-
return '';
|
|
3352
|
-
return getCellField(rowIndex, field);
|
|
3353
|
-
}
|
|
3354
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3355
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, name: "cellField" }); }
|
|
3356
|
-
}
|
|
3357
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, decorators: [{
|
|
3358
|
-
type: Pipe,
|
|
3359
|
-
args: [{
|
|
3360
|
-
standalone: false,
|
|
3361
|
-
name: 'cellField'
|
|
3362
|
-
}]
|
|
3363
|
-
}] });
|
|
3364
|
-
|
|
3365
|
-
class CellStateGroupRendererPipe {
|
|
3366
|
-
constructor() {
|
|
3367
|
-
this._cellFieldValue = new CellFieldValuePipe();
|
|
3368
|
-
}
|
|
3369
|
-
transform(value, data, column) {
|
|
3370
|
-
return value ? this._cellFieldValue.transform(data, column.field) : column?.cellRendererParams?.placeholder ?? '';
|
|
3371
|
-
}
|
|
3372
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3373
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, name: "cellStateGroupRenderer" }); }
|
|
3374
|
-
}
|
|
3375
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, decorators: [{
|
|
3376
|
-
type: Pipe,
|
|
3377
|
-
args: [{
|
|
3378
|
-
standalone: false,
|
|
3379
|
-
name: 'cellStateGroupRenderer'
|
|
3380
|
-
}]
|
|
3381
|
-
}] });
|
|
3382
|
-
|
|
3383
3316
|
class OneGridCellCurrencyComponent {
|
|
3384
3317
|
constructor(cellService, eventService) {
|
|
3385
3318
|
this.cellService = cellService;
|
|
@@ -3461,6 +3394,73 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3461
3394
|
type: Input
|
|
3462
3395
|
}] } });
|
|
3463
3396
|
|
|
3397
|
+
class CellActionButtonVisiblePipe {
|
|
3398
|
+
transform(column, node) {
|
|
3399
|
+
return (node?.leaf && !(node?.group && node?.leafGroup) && !column?.autoGroupField) || (!node?.leaf && (node?.group || node?.leafGroup) && column?.autoGroupField && column?.editableLevels?.includes(node.level));
|
|
3400
|
+
}
|
|
3401
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3402
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, name: "cellActionButtonVisible" }); }
|
|
3403
|
+
}
|
|
3404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellActionButtonVisiblePipe, decorators: [{
|
|
3405
|
+
type: Pipe,
|
|
3406
|
+
args: [{
|
|
3407
|
+
standalone: false,
|
|
3408
|
+
name: 'cellActionButtonVisible'
|
|
3409
|
+
}]
|
|
3410
|
+
}] });
|
|
3411
|
+
|
|
3412
|
+
class CellNumberValuePipe {
|
|
3413
|
+
transform(value) {
|
|
3414
|
+
if (value === null || value === undefined)
|
|
3415
|
+
return undefined;
|
|
3416
|
+
return Number(value);
|
|
3417
|
+
}
|
|
3418
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3419
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, name: "cellNumberValue" }); }
|
|
3420
|
+
}
|
|
3421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellNumberValuePipe, decorators: [{
|
|
3422
|
+
type: Pipe,
|
|
3423
|
+
args: [{
|
|
3424
|
+
standalone: false,
|
|
3425
|
+
name: 'cellNumberValue'
|
|
3426
|
+
}]
|
|
3427
|
+
}] });
|
|
3428
|
+
|
|
3429
|
+
class CellFieldPipe {
|
|
3430
|
+
transform(rowIndex, field) {
|
|
3431
|
+
if (rowIndex === null || rowIndex === undefined || !field)
|
|
3432
|
+
return '';
|
|
3433
|
+
return getCellField(rowIndex, field);
|
|
3434
|
+
}
|
|
3435
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3436
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, name: "cellField" }); }
|
|
3437
|
+
}
|
|
3438
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellFieldPipe, decorators: [{
|
|
3439
|
+
type: Pipe,
|
|
3440
|
+
args: [{
|
|
3441
|
+
standalone: false,
|
|
3442
|
+
name: 'cellField'
|
|
3443
|
+
}]
|
|
3444
|
+
}] });
|
|
3445
|
+
|
|
3446
|
+
class CellStateGroupRendererPipe {
|
|
3447
|
+
constructor() {
|
|
3448
|
+
this._cellFieldValue = new CellFieldValuePipe();
|
|
3449
|
+
}
|
|
3450
|
+
transform(value, data, column) {
|
|
3451
|
+
return value ? this._cellFieldValue.transform(data, column.field) : column?.cellRendererParams?.placeholder ?? '';
|
|
3452
|
+
}
|
|
3453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3454
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, name: "cellStateGroupRenderer" }); }
|
|
3455
|
+
}
|
|
3456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CellStateGroupRendererPipe, decorators: [{
|
|
3457
|
+
type: Pipe,
|
|
3458
|
+
args: [{
|
|
3459
|
+
standalone: false,
|
|
3460
|
+
name: 'cellStateGroupRenderer'
|
|
3461
|
+
}]
|
|
3462
|
+
}] });
|
|
3463
|
+
|
|
3464
3464
|
class OneGridModule {
|
|
3465
3465
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: OneGridModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3466
3466
|
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.12", ngImport: i0, type: OneGridModule, declarations: [OneGridComponent,
|
|
@@ -3569,5 +3569,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
|
|
|
3569
3569
|
* Generated bundle index. Do not edit.
|
|
3570
3570
|
*/
|
|
3571
3571
|
|
|
3572
|
-
export { OneGridApi, OneGridCellService, OneGridComponent, OneGridEventService, OneGridExpansionService, OneGridModule, OneGridSelectionService, OneGridTreeDataService, OnePageSizeOption, OneRowNode, ValidationRules, Validators, applyDefaultColumnDef, getCellError, resolveOneCellRendererParams, resolveOneColumDefParams, resolveOneValueGetterParams };
|
|
3572
|
+
export { OneGridApi, OneGridCellCurrencyComponent, OneGridCellService, OneGridComponent, OneGridEventService, OneGridExpansionService, OneGridModule, OneGridSelectionService, OneGridStatusComponent, OneGridTreeDataService, OnePageSizeOption, OneRowNode, ValidationRules, Validators, applyDefaultColumnDef, getCellError, resolveOneCellRendererParams, resolveOneColumDefParams, resolveOneValueGetterParams };
|
|
3573
3573
|
//# sourceMappingURL=one-grid-core-angular.mjs.map
|