@mediusinc/mng-commons 0.2.13 → 0.2.16
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/esm2020/lib/api/models/filter-match-type.model.mjs +11 -12
- package/esm2020/lib/api/models/filter-param.model.mjs +11 -12
- package/esm2020/lib/api/models/query-mode.model.mjs +4 -4
- package/esm2020/lib/api/models/query-param.model.mjs +29 -30
- package/esm2020/lib/components/form/autocomplete/autocomplete.component.mjs +1 -4
- package/esm2020/lib/components/form/dropdown/dropdown.component.mjs +11 -11
- package/esm2020/lib/components/form/formly/fields/formly-field-dropdown/formly-field-dropdown.component.mjs +3 -3
- package/esm2020/lib/components/layout/main-layout.component.mjs +1 -3
- package/esm2020/lib/components/tableview/table/column-filter/column-filter.component.mjs +1 -1
- package/esm2020/lib/components/tableview/table/column-value/column-value.component.mjs +5 -3
- package/esm2020/lib/descriptors/editor.descriptor.mjs +1 -2
- package/esm2020/lib/descriptors/table.descriptor.mjs +1 -2
- package/fesm2015/mediusinc-mng-commons.mjs +85 -96
- package/fesm2015/mediusinc-mng-commons.mjs.map +1 -1
- package/fesm2020/mediusinc-mng-commons.mjs +85 -95
- package/fesm2020/mediusinc-mng-commons.mjs.map +1 -1
- package/lib/api/models/filter-match-type.model.d.ts +10 -10
- package/lib/api/models/filter-param.model.d.ts +7 -7
- package/lib/api/models/query-mode.model.d.ts +3 -3
- package/lib/api/models/query-param.model.d.ts +14 -14
- package/lib/components/form/dropdown/dropdown.component.d.ts +4 -1
- package/lib/components/layout/main-layout.component.d.ts +2 -3
- package/openapi/templates/model.mustache +82 -0
- package/openapi/templates/models.mustache +50 -0
- package/package.json +1 -1
|
@@ -472,7 +472,6 @@ class LookupDataProvider extends DataProvider {
|
|
|
472
472
|
}
|
|
473
473
|
}
|
|
474
474
|
|
|
475
|
-
/* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
|
|
476
475
|
/**
|
|
477
476
|
* Generated API
|
|
478
477
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -486,16 +485,16 @@ class LookupDataProvider extends DataProvider {
|
|
|
486
485
|
*/
|
|
487
486
|
var MediusFilterMatchType;
|
|
488
487
|
(function (MediusFilterMatchType) {
|
|
489
|
-
MediusFilterMatchType[
|
|
490
|
-
MediusFilterMatchType[
|
|
491
|
-
MediusFilterMatchType[
|
|
492
|
-
MediusFilterMatchType[
|
|
493
|
-
MediusFilterMatchType[
|
|
494
|
-
MediusFilterMatchType[
|
|
495
|
-
MediusFilterMatchType[
|
|
496
|
-
MediusFilterMatchType[
|
|
497
|
-
MediusFilterMatchType[
|
|
498
|
-
MediusFilterMatchType[
|
|
488
|
+
MediusFilterMatchType["Equals"] = "EQUALS";
|
|
489
|
+
MediusFilterMatchType["NotEquals"] = "NOT_EQUALS";
|
|
490
|
+
MediusFilterMatchType["FromTo"] = "FROM_TO";
|
|
491
|
+
MediusFilterMatchType["Contains"] = "CONTAINS";
|
|
492
|
+
MediusFilterMatchType["StartsWith"] = "STARTS_WITH";
|
|
493
|
+
MediusFilterMatchType["EndsWith"] = "ENDS_WITH";
|
|
494
|
+
MediusFilterMatchType["In"] = "IN";
|
|
495
|
+
MediusFilterMatchType["NotIn"] = "NOT_IN";
|
|
496
|
+
MediusFilterMatchType["SmallerThan"] = "SMALLER_THAN";
|
|
497
|
+
MediusFilterMatchType["GreaterThan"] = "GREATER_THAN";
|
|
499
498
|
})(MediusFilterMatchType || (MediusFilterMatchType = {}));
|
|
500
499
|
|
|
501
500
|
/* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
|
|
@@ -504,23 +503,12 @@ class MediusFilterParam {
|
|
|
504
503
|
return MediusFilterParam.attributeTypeMap;
|
|
505
504
|
}
|
|
506
505
|
}
|
|
507
|
-
MediusFilterParam.discriminator = undefined;
|
|
508
506
|
MediusFilterParam.attributeTypeMap = [
|
|
509
507
|
{
|
|
510
508
|
name: 'property',
|
|
511
509
|
baseName: 'property',
|
|
512
510
|
type: 'string'
|
|
513
511
|
},
|
|
514
|
-
{
|
|
515
|
-
name: 'filterMatchCaseSensitive',
|
|
516
|
-
baseName: 'filter_match_case_sensitive',
|
|
517
|
-
type: 'boolean'
|
|
518
|
-
},
|
|
519
|
-
{
|
|
520
|
-
name: 'filterMatchType',
|
|
521
|
-
baseName: 'filter_match_type',
|
|
522
|
-
type: 'FilterMatchType'
|
|
523
|
-
},
|
|
524
512
|
{
|
|
525
513
|
name: 'filterValue',
|
|
526
514
|
baseName: 'filter_value',
|
|
@@ -530,6 +518,16 @@ MediusFilterParam.attributeTypeMap = [
|
|
|
530
518
|
name: 'filterValueTo',
|
|
531
519
|
baseName: 'filter_value_to',
|
|
532
520
|
type: 'object'
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
name: 'filterMatchType',
|
|
524
|
+
baseName: 'filter_match_type',
|
|
525
|
+
type: 'FilterMatchType'
|
|
526
|
+
},
|
|
527
|
+
{
|
|
528
|
+
name: 'filterMatchCaseSensitive',
|
|
529
|
+
baseName: 'filter_match_case_sensitive',
|
|
530
|
+
type: 'boolean'
|
|
533
531
|
}
|
|
534
532
|
];
|
|
535
533
|
|
|
@@ -547,9 +545,9 @@ MediusFilterParam.attributeTypeMap = [
|
|
|
547
545
|
*/
|
|
548
546
|
var MediusQueryMode;
|
|
549
547
|
(function (MediusQueryMode) {
|
|
550
|
-
MediusQueryMode[
|
|
551
|
-
MediusQueryMode[
|
|
552
|
-
MediusQueryMode[
|
|
548
|
+
MediusQueryMode["Count"] = "COUNT";
|
|
549
|
+
MediusQueryMode["Data"] = "DATA";
|
|
550
|
+
MediusQueryMode["All"] = "ALL";
|
|
553
551
|
})(MediusQueryMode || (MediusQueryMode = {}));
|
|
554
552
|
|
|
555
553
|
/* tslint:disable:no-angle-bracket-type-assertion no-trailing-whitespace member-ordering object-literal-key-quotes */
|
|
@@ -558,27 +556,16 @@ class MediusQueryParam {
|
|
|
558
556
|
return MediusQueryParam.attributeTypeMap;
|
|
559
557
|
}
|
|
560
558
|
}
|
|
561
|
-
MediusQueryParam.discriminator = undefined;
|
|
562
559
|
MediusQueryParam.attributeTypeMap = [
|
|
563
560
|
{
|
|
564
|
-
name: '
|
|
565
|
-
baseName: '
|
|
566
|
-
type: 'string'
|
|
567
|
-
},
|
|
568
|
-
{
|
|
569
|
-
name: 'filterAllProperties',
|
|
570
|
-
baseName: 'filter_all_properties',
|
|
561
|
+
name: 'sortProperty',
|
|
562
|
+
baseName: 'sort_property',
|
|
571
563
|
type: 'Array<string>'
|
|
572
564
|
},
|
|
573
565
|
{
|
|
574
|
-
name: '
|
|
575
|
-
baseName: '
|
|
576
|
-
type: 'Array<
|
|
577
|
-
},
|
|
578
|
-
{
|
|
579
|
-
name: 'groupByProperties',
|
|
580
|
-
baseName: 'group_by_properties',
|
|
581
|
-
type: 'Array<string>'
|
|
566
|
+
name: 'sortAsc',
|
|
567
|
+
baseName: 'sort_asc',
|
|
568
|
+
type: 'Array<boolean>'
|
|
582
569
|
},
|
|
583
570
|
{
|
|
584
571
|
name: 'itemsOffset',
|
|
@@ -591,34 +578,44 @@ MediusQueryParam.attributeTypeMap = [
|
|
|
591
578
|
type: 'number'
|
|
592
579
|
},
|
|
593
580
|
{
|
|
594
|
-
name: '
|
|
595
|
-
baseName: '
|
|
596
|
-
type: '
|
|
581
|
+
name: 'filterParams',
|
|
582
|
+
baseName: 'filter_params',
|
|
583
|
+
type: 'Array<MediusFilterParam>'
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
name: 'filterAllParam',
|
|
587
|
+
baseName: 'filter_all_param',
|
|
588
|
+
type: 'string'
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
name: 'filterAllProperties',
|
|
592
|
+
baseName: 'filter_all_properties',
|
|
593
|
+
type: 'Array<string>'
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
name: 'validateProperties',
|
|
597
|
+
baseName: 'validate_properties',
|
|
598
|
+
type: 'Array<string>'
|
|
597
599
|
},
|
|
598
600
|
{
|
|
599
601
|
name: 'selectInTwoSteps',
|
|
600
602
|
baseName: 'select_in_two_steps',
|
|
601
603
|
type: 'boolean'
|
|
602
604
|
},
|
|
603
|
-
{
|
|
604
|
-
name: 'sortAsc',
|
|
605
|
-
baseName: 'sort_asc',
|
|
606
|
-
type: 'Array<boolean>'
|
|
607
|
-
},
|
|
608
605
|
{
|
|
609
606
|
name: 'sortEnumByOrdinal',
|
|
610
607
|
baseName: 'sort_enum_by_ordinal',
|
|
611
608
|
type: 'boolean'
|
|
612
609
|
},
|
|
613
610
|
{
|
|
614
|
-
name: '
|
|
615
|
-
baseName: '
|
|
611
|
+
name: 'groupByProperties',
|
|
612
|
+
baseName: 'group_by_properties',
|
|
616
613
|
type: 'Array<string>'
|
|
617
614
|
},
|
|
618
615
|
{
|
|
619
|
-
name: '
|
|
620
|
-
baseName: '
|
|
621
|
-
type: '
|
|
616
|
+
name: 'queryMode',
|
|
617
|
+
baseName: 'query_mode',
|
|
618
|
+
type: 'MediusQueryMode'
|
|
622
619
|
}
|
|
623
620
|
];
|
|
624
621
|
|
|
@@ -1236,7 +1233,6 @@ class FieldLookupEnumDescriptor extends FieldLookupDescriptor {
|
|
|
1236
1233
|
this.withLookupDataProvider(dataProvider);
|
|
1237
1234
|
this.withItemsLabelProperty('title');
|
|
1238
1235
|
this.withItemsValueProperty('value');
|
|
1239
|
-
this.withDataKeyProperty('value');
|
|
1240
1236
|
}
|
|
1241
1237
|
get enumType() {
|
|
1242
1238
|
return this._enumType;
|
|
@@ -2011,7 +2007,6 @@ class FilterLookupEnumDescriptor extends FilterLookupDescriptor {
|
|
|
2011
2007
|
this.withLookupDataProvider(dataProvider);
|
|
2012
2008
|
this.withItemsLabelProperty('title');
|
|
2013
2009
|
this.withItemsValueProperty('value');
|
|
2014
|
-
this.withDataKeyProperty('value');
|
|
2015
2010
|
}
|
|
2016
2011
|
get enumType() {
|
|
2017
2012
|
return this._enumType;
|
|
@@ -4327,9 +4322,6 @@ class MngAutocompleteComponent {
|
|
|
4327
4322
|
}
|
|
4328
4323
|
writeValue(obj) {
|
|
4329
4324
|
this.autocompleteFormControl.setValue(obj, { emitEvent: false });
|
|
4330
|
-
if (this.primeAutocomplete) {
|
|
4331
|
-
this.primeAutocomplete.writeValue(obj);
|
|
4332
|
-
}
|
|
4333
4325
|
}
|
|
4334
4326
|
}
|
|
4335
4327
|
MngAutocompleteComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngAutocompleteComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -4369,6 +4361,7 @@ class MngDropdownComponent {
|
|
|
4369
4361
|
this.injector = injector;
|
|
4370
4362
|
this.multiselect = false;
|
|
4371
4363
|
this.showClear = true;
|
|
4364
|
+
this.selectFirstItem = false;
|
|
4372
4365
|
this.className = null;
|
|
4373
4366
|
this.dropdownClassName = null;
|
|
4374
4367
|
this.valueChangeEventEmitter = new EventEmitter();
|
|
@@ -4380,6 +4373,8 @@ class MngDropdownComponent {
|
|
|
4380
4373
|
this.onTouchedFn = () => { };
|
|
4381
4374
|
this.dropdownFormControl = new FormControl();
|
|
4382
4375
|
this.items$ = this.itemsSubject.asObservable();
|
|
4376
|
+
this.items = [];
|
|
4377
|
+
this.itemsLoaded = false;
|
|
4383
4378
|
}
|
|
4384
4379
|
ngOnInit() {
|
|
4385
4380
|
this.dropdownFormControl.valueChanges.subscribe(v => {
|
|
@@ -4395,14 +4390,10 @@ class MngDropdownComponent {
|
|
|
4395
4390
|
.subscribe(res => {
|
|
4396
4391
|
this.itemsSubject.next(res);
|
|
4397
4392
|
});
|
|
4398
|
-
if (!this.dropdownFormControl?.value) {
|
|
4393
|
+
if (this.selectFirstItem && !this.dropdownFormControl?.value) {
|
|
4399
4394
|
this.items$.pipe(first()).subscribe(res => {
|
|
4400
|
-
|
|
4401
|
-
|
|
4402
|
-
const value = this.itemsValueProperty ? res[0][this.itemsValueProperty] : res[0];
|
|
4403
|
-
this.dropdownFormControl?.patchValue(value);
|
|
4404
|
-
console.log('patched dropdown form value with', value);
|
|
4405
|
-
}
|
|
4395
|
+
const value = this.itemsValueProperty ? res[0][this.itemsValueProperty] : res[0];
|
|
4396
|
+
this.dropdownFormControl?.setValue(value);
|
|
4406
4397
|
});
|
|
4407
4398
|
}
|
|
4408
4399
|
}
|
|
@@ -4426,14 +4417,13 @@ class MngDropdownComponent {
|
|
|
4426
4417
|
}
|
|
4427
4418
|
writeValue(obj) {
|
|
4428
4419
|
this.dropdownFormControl.setValue(obj, { emitEvent: false });
|
|
4429
|
-
this.primeDropdown?.writeValue(obj);
|
|
4430
4420
|
}
|
|
4431
4421
|
}
|
|
4432
4422
|
MngDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngDropdownComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
4433
|
-
MngDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngDropdownComponent, selector: "mng-dropdown", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsLabelProperty: "itemsLabelProperty", itemsValueProperty: "itemsValueProperty", multiselect: "multiselect", placeholder: "placeholder", showClear: "showClear", className: "className", dropdownClassName: "dropdownClassName" }, outputs: { valueChangeEventEmitter: "valueChange" }, providers: [MNG_DROPDOWN_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeDropdown", first: true, predicate: Dropdown, descendants: true }], ngImport: i0, template: "<p-dropdown\n *ngIf=\"!multiselect; else pMultiselect\"\n [formControl]=\"dropdownFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async)
|
|
4423
|
+
MngDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngDropdownComponent, selector: "mng-dropdown", inputs: { dataProvider: "dataProvider", dataKeyProperty: "dataKeyProperty", itemsLabelProperty: "itemsLabelProperty", itemsValueProperty: "itemsValueProperty", multiselect: "multiselect", placeholder: "placeholder", showClear: "showClear", selectFirstItem: "selectFirstItem", className: "className", dropdownClassName: "dropdownClassName" }, outputs: { valueChangeEventEmitter: "valueChange" }, providers: [MNG_DROPDOWN_VALUE_ACCESSOR], viewQueries: [{ propertyName: "primeDropdown", first: true, predicate: Dropdown, descendants: true }], ngImport: i0, template: "<p-dropdown\n *ngIf=\"!multiselect; else pMultiselect\"\n [formControl]=\"dropdownFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"$any(items$ | async)\"\n [showClear]=\"showClear\"\n [autoDisplayFirst]=\"false\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n appendTo=\"body\">\n</p-dropdown>\n<ng-template #pMultiselect>\n <p-multiSelect\n display=\"chip\"\n [formControl]=\"dropdownFormControl\"\n [defaultLabel]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [filter]=\"false\"\n appendTo=\"body\">\n </p-multiSelect>\n</ng-template>\n", components: [{ type: i1$2.Dropdown, selector: "p-dropdown", inputs: ["scrollHeight", "filter", "name", "style", "panelStyle", "styleClass", "panelStyleClass", "readonly", "required", "editable", "appendTo", "tabindex", "placeholder", "filterPlaceholder", "filterLocale", "inputId", "selectId", "dataKey", "filterBy", "autofocus", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "autoDisplayFirst", "group", "showClear", "emptyFilterMessage", "emptyMessage", "virtualScroll", "itemSize", "autoZIndex", "baseZIndex", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "ariaLabelledBy", "filterMatchMode", "maxlength", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "disabled", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onShow", "onHide", "onClear"] }, { type: i2$4.MultiSelect, selector: "p-multiSelect", inputs: ["style", "styleClass", "panelStyle", "panelStyleClass", "inputId", "disabled", "readonly", "group", "filter", "filterPlaceHolder", "filterLocale", "overlayVisible", "tabindex", "appendTo", "dataKey", "name", "ariaLabelledBy", "displaySelectedLabel", "maxSelectedLabels", "selectionLimit", "selectedItemsLabel", "showToggleAll", "emptyFilterMessage", "emptyMessage", "resetFilterOnHide", "dropdownIcon", "optionLabel", "optionValue", "optionDisabled", "optionGroupLabel", "optionGroupChildren", "showHeader", "autoZIndex", "baseZIndex", "filterBy", "virtualScroll", "itemSize", "showTransitionOptions", "hideTransitionOptions", "ariaFilterLabel", "filterMatchMode", "tooltip", "tooltipPosition", "tooltipPositionStyle", "tooltipStyleClass", "autofocusFilter", "display", "scrollHeight", "defaultLabel", "placeholder", "options", "filterValue"], outputs: ["onChange", "onFilter", "onFocus", "onBlur", "onClick", "onPanelShow", "onPanelHide"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }], pipes: { "async": i4$1.AsyncPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4434
4424
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngDropdownComponent, decorators: [{
|
|
4435
4425
|
type: Component,
|
|
4436
|
-
args: [{ selector: 'mng-dropdown', providers: [MNG_DROPDOWN_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-dropdown\n *ngIf=\"!multiselect; else pMultiselect\"\n [formControl]=\"dropdownFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async)
|
|
4426
|
+
args: [{ selector: 'mng-dropdown', providers: [MNG_DROPDOWN_VALUE_ACCESSOR], changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-dropdown\n *ngIf=\"!multiselect; else pMultiselect\"\n [formControl]=\"dropdownFormControl\"\n [placeholder]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"$any(items$ | async)\"\n [showClear]=\"showClear\"\n [autoDisplayFirst]=\"false\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n appendTo=\"body\">\n</p-dropdown>\n<ng-template #pMultiselect>\n <p-multiSelect\n display=\"chip\"\n [formControl]=\"dropdownFormControl\"\n [defaultLabel]=\"$any(placeholder)\"\n [dataKey]=\"$any(dataKeyProperty)\"\n [optionLabel]=\"$any(itemsLabelProperty)\"\n [optionValue]=\"$any(itemsValueProperty)\"\n [options]=\"(items$ | async) ?? []\"\n [styleClass]=\"$any(className)\"\n [panelStyleClass]=\"$any(dropdownClassName)\"\n [filter]=\"false\"\n appendTo=\"body\">\n </p-multiSelect>\n</ng-template>\n" }]
|
|
4437
4427
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { dataProvider: [{
|
|
4438
4428
|
type: Input
|
|
4439
4429
|
}], dataKeyProperty: [{
|
|
@@ -4448,6 +4438,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
4448
4438
|
type: Input
|
|
4449
4439
|
}], showClear: [{
|
|
4450
4440
|
type: Input
|
|
4441
|
+
}], selectFirstItem: [{
|
|
4442
|
+
type: Input
|
|
4451
4443
|
}], className: [{
|
|
4452
4444
|
type: Input
|
|
4453
4445
|
}], dropdownClassName: [{
|
|
@@ -4632,10 +4624,10 @@ class MngFormlyFieldDropdownComponent extends FieldType {
|
|
|
4632
4624
|
}
|
|
4633
4625
|
}
|
|
4634
4626
|
MngFormlyFieldDropdownComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngFormlyFieldDropdownComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4635
|
-
MngFormlyFieldDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngFormlyFieldDropdownComponent, selector: "mng-formly-field-dropdown", usesInheritance: true, ngImport: i0, template: "<mng-dropdown\n [id]=\"$any(key)\"\n [formControl]=\"dFormControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"$any(descriptor.placeholder)\"\n [dataProvider]=\"descriptor.dataProvider\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [
|
|
4627
|
+
MngFormlyFieldDropdownComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngFormlyFieldDropdownComponent, selector: "mng-formly-field-dropdown", usesInheritance: true, ngImport: i0, template: "<mng-dropdown\n [id]=\"$any(key)\"\n [formControl]=\"dFormControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"$any(descriptor.placeholder)\"\n [dataProvider]=\"descriptor.dataProvider\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [showClear]=\"!this.to.required\">\n</mng-dropdown>\n", components: [{ type: MngDropdownComponent, selector: "mng-dropdown", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "itemsValueProperty", "multiselect", "placeholder", "showClear", "selectFirstItem", "className", "dropdownClassName"], outputs: ["valueChange"] }], directives: [{ type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$3.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4636
4628
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngFormlyFieldDropdownComponent, decorators: [{
|
|
4637
4629
|
type: Component,
|
|
4638
|
-
args: [{ selector: 'mng-formly-field-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-dropdown\n [id]=\"$any(key)\"\n [formControl]=\"dFormControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"$any(descriptor.placeholder)\"\n [dataProvider]=\"descriptor.dataProvider\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [
|
|
4630
|
+
args: [{ selector: 'mng-formly-field-dropdown', changeDetection: ChangeDetectionStrategy.OnPush, template: "<mng-dropdown\n [id]=\"$any(key)\"\n [formControl]=\"dFormControl\"\n [formlyAttributes]=\"field\"\n [placeholder]=\"$any(descriptor.placeholder)\"\n [dataProvider]=\"descriptor.dataProvider\"\n [itemsLabelProperty]=\"$any(descriptor.itemsLabelProperty)\"\n [itemsValueProperty]=\"$any(descriptor.itemsValueProperty)\"\n [dataKeyProperty]=\"$any(descriptor.dataKeyProperty)\"\n [showClear]=\"!this.to.required\">\n</mng-dropdown>\n" }]
|
|
4639
4631
|
}] });
|
|
4640
4632
|
|
|
4641
4633
|
class MngTableLoadEvent {
|
|
@@ -4719,7 +4711,7 @@ class MngTableColumnFilterComponent {
|
|
|
4719
4711
|
}
|
|
4720
4712
|
}
|
|
4721
4713
|
MngTableColumnFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngTableColumnFilterComponent, deps: [{ token: i2$1.PrimeNGConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
4722
|
-
MngTableColumnFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: { descriptor: "descriptor", display: "display" }, ngImport: i0, template: "<p-columnFilter\n class=\"ml-auto\"\n [type]=\"primeType\"\n matchMode=\"equals\"\n [field]=\"descriptor.property\"\n [display]=\"primeDisplay\"\n [matchMode]=\"primeDefaultMatchMode\"\n [matchModeOptions]=\"$any(primeMatchModes)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showMatchModes]=\"true\"\n [showOperator]=\"false\"\n [showAddButton]=\"false\"\n [hideOnClear]=\"true\">\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete\n *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.searchToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (valueChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown\n *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.selectToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"true\"\n (valueChange)=\"filterCallback($event)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n", components: [{ type: i4$4.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "multiselect", "placeholder", "className", "dropdownClassName"], outputs: ["valueChange"] }, { type: MngDropdownComponent, selector: "mng-dropdown", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "itemsValueProperty", "multiselect", "placeholder", "showClear", "className", "dropdownClassName"], outputs: ["valueChange"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "translate": i2$2.TranslatePipe } });
|
|
4714
|
+
MngTableColumnFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngTableColumnFilterComponent, selector: "mng-table-column-filter", inputs: { descriptor: "descriptor", display: "display" }, ngImport: i0, template: "<p-columnFilter\n class=\"ml-auto\"\n [type]=\"primeType\"\n matchMode=\"equals\"\n [field]=\"descriptor.property\"\n [display]=\"primeDisplay\"\n [matchMode]=\"primeDefaultMatchMode\"\n [matchModeOptions]=\"$any(primeMatchModes)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showMatchModes]=\"true\"\n [showOperator]=\"false\"\n [showAddButton]=\"false\"\n [hideOnClear]=\"true\">\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete\n *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.searchToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (valueChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown\n *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.selectToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"true\"\n (valueChange)=\"filterCallback($event)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n", components: [{ type: i4$4.ColumnFilter, selector: "p-columnFilter", inputs: ["field", "type", "display", "showMenu", "matchMode", "operator", "showOperator", "showClearButton", "showApplyButton", "showMatchModes", "showAddButton", "hideOnClear", "placeholder", "matchModeOptions", "maxConstraints", "minFractionDigits", "maxFractionDigits", "prefix", "suffix", "locale", "localeMatcher", "currency", "currencyDisplay", "useGrouping"] }, { type: MngAutocompleteComponent, selector: "mng-autocomplete", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "multiselect", "placeholder", "className", "dropdownClassName"], outputs: ["valueChange"] }, { type: MngDropdownComponent, selector: "mng-dropdown", inputs: ["dataProvider", "dataKeyProperty", "itemsLabelProperty", "itemsValueProperty", "multiselect", "placeholder", "showClear", "selectFirstItem", "className", "dropdownClassName"], outputs: ["valueChange"] }], directives: [{ type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$1.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }], pipes: { "translate": i2$2.TranslatePipe } });
|
|
4723
4715
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngTableColumnFilterComponent, decorators: [{
|
|
4724
4716
|
type: Component,
|
|
4725
4717
|
args: [{ selector: 'mng-table-column-filter', template: "<p-columnFilter\n class=\"ml-auto\"\n [type]=\"primeType\"\n matchMode=\"equals\"\n [field]=\"descriptor.property\"\n [display]=\"primeDisplay\"\n [matchMode]=\"primeDefaultMatchMode\"\n [matchModeOptions]=\"$any(primeMatchModes)\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.typeToFilter' | translate\"\n [showMatchModes]=\"true\"\n [showOperator]=\"false\"\n [showAddButton]=\"false\"\n [hideOnClear]=\"true\">\n <ng-template *ngIf=\"lookupDescriptor\" pTemplate=\"filter\" let-value let-filterCallback=\"filterCallback\">\n <ng-container [ngSwitch]=\"lookupDescriptor.lookupType\">\n <mng-autocomplete\n *ngSwitchCase=\"lookupTypeAutocomplete\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.searchToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n (valueChange)=\"autocompleteFilter($event, filterCallback)\">\n </mng-autocomplete>\n <mng-dropdown\n *ngSwitchCase=\"lookupTypeDropdown\"\n [ngModel]=\"value\"\n [dataProvider]=\"lookupDescriptor.dataProvider\"\n [dataKeyProperty]=\"lookupDescriptor.dataKeyProperty\"\n [itemsLabelProperty]=\"lookupDescriptor.itemsLabelProperty\"\n [itemsValueProperty]=\"lookupDescriptor.itemsValueProperty\"\n [multiselect]=\"lookupDescriptor.multiselect\"\n [placeholder]=\"descriptor.placeholder ?? 'mngTable.selectToFilter' | translate\"\n [className]=\"lookupDescriptor.className\"\n [dropdownClassName]=\"lookupDescriptor.dropdownClassName\"\n [showClear]=\"true\"\n (valueChange)=\"filterCallback($event)\">\n </mng-dropdown>\n </ng-container>\n </ng-template>\n</p-columnFilter>\n" }]
|
|
@@ -4783,6 +4775,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
4783
4775
|
}]
|
|
4784
4776
|
}] });
|
|
4785
4777
|
|
|
4778
|
+
class MngEnumPipe {
|
|
4779
|
+
transform(value, enumObj, i18nPath, nameAsValue = false) {
|
|
4780
|
+
const enumConstantName = nameAsValue ? value : EnumUtil.getConstantNameFromEnumObject(enumObj, value);
|
|
4781
|
+
if (typeof i18nPath === 'undefined') {
|
|
4782
|
+
i18nPath = TypeUtil.findEnumName(enumObj);
|
|
4783
|
+
}
|
|
4784
|
+
return i18nPath ? `${i18nPath}.${enumConstantName}` : enumConstantName;
|
|
4785
|
+
}
|
|
4786
|
+
}
|
|
4787
|
+
MngEnumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngEnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
4788
|
+
MngEnumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngEnumPipe, name: "enum" });
|
|
4789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngEnumPipe, decorators: [{
|
|
4790
|
+
type: Pipe,
|
|
4791
|
+
args: [{
|
|
4792
|
+
name: 'enum',
|
|
4793
|
+
pure: true
|
|
4794
|
+
}]
|
|
4795
|
+
}] });
|
|
4796
|
+
|
|
4786
4797
|
class MngTableColumnValueComponent {
|
|
4787
4798
|
constructor() {
|
|
4788
4799
|
this.columnTypeString = ColumnDescriptor.TypeEnum.String;
|
|
@@ -4793,10 +4804,10 @@ class MngTableColumnValueComponent {
|
|
|
4793
4804
|
}
|
|
4794
4805
|
}
|
|
4795
4806
|
MngTableColumnValueComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngTableColumnValueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4796
|
-
MngTableColumnValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngTableColumnValueComponent, selector: "mng-table-column-value", inputs: { descriptor: "descriptor", item: "item" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"descriptor.columnType\">\n <ng-container *ngSwitchCase=\"columnTypeString\">\n {{ descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property] }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeNumber\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | number: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeDate\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | date: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeBoolean\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | boolean }}\n </ng-container>\n</ng-container>\n", directives: [{ type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "propertyPath": MngPropertyPathPipe, "number": i4$1.DecimalPipe, "date": i4$1.DatePipe, "boolean": MngBooleanPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4807
|
+
MngTableColumnValueComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.3", type: MngTableColumnValueComponent, selector: "mng-table-column-value", inputs: { descriptor: "descriptor", item: "item" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"descriptor.columnType\">\n <ng-container *ngSwitchCase=\"columnTypeString\">\n {{ descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property] }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeNumber\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | number: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeDate\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | date: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeBoolean\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | boolean }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeEnum\">\n {{\n (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property])\n | enum: descriptor.enumType:descriptor.enumTitlePath:descriptor.enumNameAsValue\n | translate\n }}\n </ng-container>\n</ng-container>\n", directives: [{ type: i4$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i4$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }], pipes: { "propertyPath": MngPropertyPathPipe, "number": i4$1.DecimalPipe, "date": i4$1.DatePipe, "boolean": MngBooleanPipe, "translate": i2$2.TranslatePipe, "enum": MngEnumPipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4797
4808
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngTableColumnValueComponent, decorators: [{
|
|
4798
4809
|
type: Component,
|
|
4799
|
-
args: [{ selector: 'mng-table-column-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"descriptor.columnType\">\n <ng-container *ngSwitchCase=\"columnTypeString\">\n {{ descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property] }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeNumber\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | number: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeDate\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | date: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeBoolean\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | boolean }}\n </ng-container>\n</ng-container>\n" }]
|
|
4810
|
+
args: [{ selector: 'mng-table-column-value', changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-container [ngSwitch]=\"descriptor.columnType\">\n <ng-container *ngSwitchCase=\"columnTypeString\">\n {{ descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property] }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeNumber\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | number: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeDate\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | date: descriptor.displayFormat }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeBoolean\">\n {{ (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property]) | boolean }}\n </ng-container>\n <ng-container *ngSwitchCase=\"columnTypeEnum\">\n {{\n (descriptor.displayPropertyPath ? (item | propertyPath: descriptor.displayPropertyPath) : item[descriptor.property])\n | enum: descriptor.enumType:descriptor.enumTitlePath:descriptor.enumNameAsValue\n | translate\n }}\n </ng-container>\n</ng-container>\n" }]
|
|
4800
4811
|
}], propDecorators: { descriptor: [{
|
|
4801
4812
|
type: Input
|
|
4802
4813
|
}], item: [{
|
|
@@ -5844,8 +5855,6 @@ class MngMainLayoutComponent {
|
|
|
5844
5855
|
if (routeData?.footerComponent) {
|
|
5845
5856
|
this.footerComponent = routeData.footerComponent;
|
|
5846
5857
|
}
|
|
5847
|
-
}
|
|
5848
|
-
ngAfterViewInit() {
|
|
5849
5858
|
this.mainLayoutService.innerWidth = window.innerWidth;
|
|
5850
5859
|
}
|
|
5851
5860
|
onWindowResize(event) {
|
|
@@ -5987,25 +5996,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImpor
|
|
|
5987
5996
|
args: [{ selector: 'mng-tableview-route', template: "<div class=\"grid\">\n <div class=\"col-12\">\n <mng-tableview [descriptor]=\"descriptor\" [dataProvider]=\"dataProvider\" [actions]=\"actions\"></mng-tableview>\n </div>\n</div>\n" }]
|
|
5988
5997
|
}], ctorParameters: function () { return [{ type: i1.ActivatedRoute }]; } });
|
|
5989
5998
|
|
|
5990
|
-
class MngEnumPipe {
|
|
5991
|
-
transform(value, enumObj, i18nPath, nameAsValue = false) {
|
|
5992
|
-
const enumConstantName = nameAsValue ? value : EnumUtil.getConstantNameFromEnumObject(enumObj, value);
|
|
5993
|
-
if (typeof i18nPath === 'undefined') {
|
|
5994
|
-
i18nPath = TypeUtil.findEnumName(enumObj);
|
|
5995
|
-
}
|
|
5996
|
-
return i18nPath ? `${i18nPath}.${enumConstantName}` : enumConstantName;
|
|
5997
|
-
}
|
|
5998
|
-
}
|
|
5999
|
-
MngEnumPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngEnumPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
6000
|
-
MngEnumPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngEnumPipe, name: "enum" });
|
|
6001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.3", ngImport: i0, type: MngEnumPipe, decorators: [{
|
|
6002
|
-
type: Pipe,
|
|
6003
|
-
args: [{
|
|
6004
|
-
name: 'enum',
|
|
6005
|
-
pure: true
|
|
6006
|
-
}]
|
|
6007
|
-
}] });
|
|
6008
|
-
|
|
6009
5999
|
function mngCommonsInitializerProvider(mngCommons) {
|
|
6010
6000
|
return () => mngCommons.initialize();
|
|
6011
6001
|
}
|