@mediusinc/mng-commons 7.0.0-rc.0 → 7.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/core/index.d.ts +8 -8
- package/fesm2022/mediusinc-mng-commons-core.mjs +2 -6
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs +20 -0
- package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +94 -11
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-table-api.mjs +0 -2
- package/fesm2022/mediusinc-mng-commons-table-api.mjs.map +1 -1
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs → mediusinc-mng-commons-table-column-toggle.component-0Dtv48mq.mjs} +2 -2
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-Dvenjj9n.mjs.map → mediusinc-mng-commons-table-column-toggle.component-0Dtv48mq.mjs.map} +1 -1
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BsAwyXiN.mjs +2417 -0
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BsAwyXiN.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +16 -3
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +43 -47
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/filter/index.d.ts +16 -3
- package/form/index.d.ts +48 -6
- package/i18n/en.json +5 -2
- package/i18n/sl.json +5 -2
- package/package.json +1 -1
- package/table/api/index.d.ts +2 -2
- package/table/index.d.ts +161 -126
- package/tableview/api/index.d.ts +1 -3
- package/tableview/index.d.ts +24 -33
- package/version-info.json +5 -5
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs +0 -2142
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-DFcdSUCN.mjs.map +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { C as COMMONS_TABLE_FEATURE_CONFIG_IT, F as FilterValuePipe, L as LocaleDefaultRowClassPipe,
|
|
1
|
+
export { C as COMMONS_TABLE_FEATURE_CONFIG_IT, F as FilterService, v as FilterValuePipe, L as LocaleDefaultRowClassPipe, c as TableColumnValueComponent, g as TableComponent, x as TableDataService, d as TableFilterActiveTagComponent, w as TableFilterClassPipe, b as TableFilterComponent, e as TableFilterFormComponent, f as TableHeaderWithFiltersComponent, h as TableTemplateDirective, r as createFilterDescriptorsFromGeneric, o as filterAdjustDisplayValueOnMatchModeChange, n as filterApplySerializationConfigToCmp, m as filterAreDatesEqual, i as filterGenerateMatchModeOptions, p as filterGetDateConfig, j as filterGetDefaultMatchMode, q as filterGetNumberConfig, k as filterSetStateOnChange, l as filterSetStateOnDisplayChange, u as generateTableLayoutPrefsKey, s as isFilterValueBlank, z as provideTableChild, t as tableNotificationError, y as withTable } from './mediusinc-mng-commons-table-mediusinc-mng-commons-table-BsAwyXiN.mjs';
|
|
2
2
|
//# sourceMappingURL=mediusinc-mng-commons-table.mjs.map
|
|
@@ -3,7 +3,7 @@ import { StyleLevelEnum, CommonsInternalError, DataProviderInst, LoggerService,
|
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, Input, Directive, inject, Injector } from '@angular/core';
|
|
5
5
|
import { LookupDataProviderInst } from '@mediusinc/mng-commons/form/api';
|
|
6
|
-
import { TableDataProviderInst, TableDescriptorInst, TableDynamicDescriptorInst } from '@mediusinc/mng-commons/table/api';
|
|
6
|
+
import { TableSizeEnum, TableDataProviderInst, TableDescriptorInst, TableDynamicDescriptorInst } from '@mediusinc/mng-commons/table/api';
|
|
7
7
|
import { model, ModelDescriptor } from '@mediusinc/mng-commons/model';
|
|
8
8
|
import '@angular/forms';
|
|
9
9
|
import { FieldType } from '@ngx-formly/core';
|
|
@@ -1903,6 +1903,10 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
1903
1903
|
this._lookupType = FieldLookupTypeEnum.Dialog;
|
|
1904
1904
|
this._dialogTableDescriptor = lookupTableDescriptor;
|
|
1905
1905
|
this._dialogTableDataProvider = tableDataProvider;
|
|
1906
|
+
// change default sizing
|
|
1907
|
+
if (this._dialogTableDescriptor.size == null) {
|
|
1908
|
+
this._dialogTableDescriptor.withSize(TableSizeEnum.Normal);
|
|
1909
|
+
}
|
|
1906
1910
|
return this;
|
|
1907
1911
|
}
|
|
1908
1912
|
asCustomComponent(customComponentName) {
|
|
@@ -2016,6 +2020,13 @@ class FieldManyToManyEditorDescriptor extends AFieldDescriptor {
|
|
|
2016
2020
|
else {
|
|
2017
2021
|
this._lookupTableDataProvider = new TableDataProviderInst(cfg?.lookupServiceType);
|
|
2018
2022
|
}
|
|
2023
|
+
// change default sizing if not set
|
|
2024
|
+
if (this._mainTableDescriptor.size == null) {
|
|
2025
|
+
this._mainTableDescriptor.withSize(TableSizeEnum.Normal);
|
|
2026
|
+
}
|
|
2027
|
+
if (this._lookupTableDescriptor.size == null) {
|
|
2028
|
+
this._lookupTableDescriptor.withSize(TableSizeEnum.Normal);
|
|
2029
|
+
}
|
|
2019
2030
|
}
|
|
2020
2031
|
get fieldType() {
|
|
2021
2032
|
return this._fieldType;
|
|
@@ -2080,6 +2091,10 @@ class FieldManyEditorDescriptor extends AFieldDescriptor {
|
|
|
2080
2091
|
this._actions = [];
|
|
2081
2092
|
this._tableviewDescriptor = tableviewDescriptor;
|
|
2082
2093
|
this._fieldActions.push(FieldManyEditorActionEnum.View, FieldManyEditorActionEnum.Add, FieldManyEditorActionEnum.Edit, FieldManyEditorActionEnum.Delete);
|
|
2094
|
+
// change default sizing
|
|
2095
|
+
if (this._tableviewDescriptor.table.size == null) {
|
|
2096
|
+
this._tableviewDescriptor.table.withSize(TableSizeEnum.Normal);
|
|
2097
|
+
}
|
|
2083
2098
|
}
|
|
2084
2099
|
get fieldType() {
|
|
2085
2100
|
return this._fieldType;
|
|
@@ -3022,8 +3037,6 @@ class FormFieldEventComponentSubtype {
|
|
|
3022
3037
|
}
|
|
3023
3038
|
class FormFieldEventDialogSubtype {
|
|
3024
3039
|
static { this.VISIBILITY = 'Dialog.Visibility'; }
|
|
3025
|
-
static { this.TABLE_CAPTION_COMPONENT_INSTANCE = 'Dialog.MngTable.CaptionComponentInstance'; }
|
|
3026
|
-
static { this.TABLE_COLUMN_ACTIONS_COMPONENT_INSTANCE = 'Dialog.MngTable.ColumnActionsComponentInstance'; }
|
|
3027
3040
|
}
|
|
3028
3041
|
|
|
3029
3042
|
class AFormlyCustomFieldComponent extends FieldType {
|