@mediusinc/mng-commons 7.4.0-rc.0 → 7.4.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/dev-scripts/version-info.js +18 -19
- package/fesm2022/mediusinc-mng-commons-core.mjs +69 -6
- package/fesm2022/mediusinc-mng-commons-core.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-filter.mjs +9 -3
- package/fesm2022/mediusinc-mng-commons-filter.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-form.mjs +287 -230
- package/fesm2022/mediusinc-mng-commons-form.mjs.map +1 -1
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-D7fm83ug.mjs → mediusinc-mng-commons-table-column-toggle.component-BS5xvoDR.mjs} +2 -2
- package/fesm2022/{mediusinc-mng-commons-table-column-toggle.component-D7fm83ug.mjs.map → mediusinc-mng-commons-table-column-toggle.component-BS5xvoDR.mjs.map} +1 -1
- package/fesm2022/{mediusinc-mng-commons-table-mediusinc-mng-commons-table-Czmm5fLT.mjs → mediusinc-mng-commons-table-mediusinc-mng-commons-table-BfEYZG7s.mjs} +279 -117
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-BfEYZG7s.mjs.map +1 -0
- package/fesm2022/mediusinc-mng-commons-table.mjs +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs +42 -13
- package/fesm2022/mediusinc-mng-commons-tableview-api.mjs.map +1 -1
- package/fesm2022/mediusinc-mng-commons-tableview.mjs +40 -19
- package/fesm2022/mediusinc-mng-commons-tableview.mjs.map +1 -1
- package/i18n/en.json +5 -2
- package/i18n/sl.json +5 -1
- package/package.json +1 -1
- package/types/mediusinc-mng-commons-core.d.ts +2 -1
- package/types/mediusinc-mng-commons-filter.d.ts +6 -3
- package/types/mediusinc-mng-commons-form.d.ts +49 -77
- package/types/mediusinc-mng-commons-table-api.d.ts +12 -2
- package/types/mediusinc-mng-commons-table.d.ts +13 -5
- package/types/mediusinc-mng-commons-tableview-api.d.ts +47 -8
- package/types/mediusinc-mng-commons-tableview.d.ts +8 -2
- package/fesm2022/mediusinc-mng-commons-table-mediusinc-mng-commons-table-Czmm5fLT.mjs.map +0 -1
- package/version-info.json +0 -11
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { B as ADataListMetaService, A as ADataListService, D as COMMONS_TABLE_FEATURE_CONFIG_IT, F as FilterService, y as FilterValuePipe, L as LocaleDefaultRowClassPipe, c as TableColumnValueComponent, h as TableComponent, C as TableDataService, d as TableFilterActiveTagComponent, z as TableFilterClassPipe, b as TableFilterComponent, e as TableFilterFormComponent, f as TableHeaderWithFiltersComponent, g as TableHeaderWithFiltersTemplateDirective, i as TableTemplateDirective, s as createFilterDescriptorsFromGeneric, p as filterAdjustDisplayValueOnMatchModeChange, o as filterApplySerializationConfigToCmp, n as filterAreDatesEqual, j as filterGenerateMatchModeOptions, q as filterGetDateConfig, k as filterGetDefaultMatchMode, r as filterGetNumberConfig, l as filterSetStateOnChange, m as filterSetStateOnDisplayChange, x as generateTableLayoutPrefsKey, t as isFilterValueBlank, G as provideTableChild, v as tableCreateFilterState, w as tableCreateSortState, u as tableNotificationError, E as withTable } from './mediusinc-mng-commons-table-mediusinc-mng-commons-table-
|
|
1
|
+
export { B as ADataListMetaService, A as ADataListService, D as COMMONS_TABLE_FEATURE_CONFIG_IT, F as FilterService, y as FilterValuePipe, L as LocaleDefaultRowClassPipe, c as TableColumnValueComponent, h as TableComponent, C as TableDataService, d as TableFilterActiveTagComponent, z as TableFilterClassPipe, b as TableFilterComponent, e as TableFilterFormComponent, f as TableHeaderWithFiltersComponent, g as TableHeaderWithFiltersTemplateDirective, i as TableTemplateDirective, s as createFilterDescriptorsFromGeneric, p as filterAdjustDisplayValueOnMatchModeChange, o as filterApplySerializationConfigToCmp, n as filterAreDatesEqual, j as filterGenerateMatchModeOptions, q as filterGetDateConfig, k as filterGetDefaultMatchMode, r as filterGetNumberConfig, l as filterSetStateOnChange, m as filterSetStateOnDisplayChange, x as generateTableLayoutPrefsKey, t as isFilterValueBlank, G as provideTableChild, v as tableCreateFilterState, w as tableCreateSortState, u as tableNotificationError, E as withTable } from './mediusinc-mng-commons-table-mediusinc-mng-commons-table-BfEYZG7s.mjs';
|
|
2
2
|
//# sourceMappingURL=mediusinc-mng-commons-table.mjs.map
|
|
@@ -482,7 +482,7 @@ class ActionEditorDescriptorInst extends ActionDescriptorInst {
|
|
|
482
482
|
this._editorActions = [];
|
|
483
483
|
this._editorTitle = undefined;
|
|
484
484
|
this._editorTitleParams = undefined;
|
|
485
|
-
this.
|
|
485
|
+
this._dialogOpts = {};
|
|
486
486
|
this._resubmitRefetch = true;
|
|
487
487
|
this._unsavedChangesConfirmation = false;
|
|
488
488
|
if (cfg?.serviceType) {
|
|
@@ -504,14 +504,26 @@ class ActionEditorDescriptorInst extends ActionDescriptorInst {
|
|
|
504
504
|
get editorDescriptor() {
|
|
505
505
|
return this._editorDescriptor;
|
|
506
506
|
}
|
|
507
|
+
/**
|
|
508
|
+
* @deprecated Use dialogConfig instead.
|
|
509
|
+
*/
|
|
507
510
|
get dialogSize() {
|
|
508
|
-
return this.
|
|
511
|
+
return this._dialogOpts.size;
|
|
509
512
|
}
|
|
513
|
+
/**
|
|
514
|
+
* @deprecated Use dialogConfig instead.
|
|
515
|
+
*/
|
|
510
516
|
get dialogClassName() {
|
|
511
|
-
return this.
|
|
517
|
+
return this._dialogOpts.className;
|
|
512
518
|
}
|
|
519
|
+
/**
|
|
520
|
+
* @deprecated Use dialogConfig instead.
|
|
521
|
+
*/
|
|
513
522
|
get dialogIsMaximizable() {
|
|
514
|
-
return this.
|
|
523
|
+
return this._dialogOpts.maximizable;
|
|
524
|
+
}
|
|
525
|
+
get dialogConfig() {
|
|
526
|
+
return this._dialogOpts;
|
|
515
527
|
}
|
|
516
528
|
get fetchNotificationOnSuccess() {
|
|
517
529
|
return this._fetchNotificationOnSuccess;
|
|
@@ -560,16 +572,29 @@ class ActionEditorDescriptorInst extends ActionDescriptorInst {
|
|
|
560
572
|
this._editorTitleParams = params;
|
|
561
573
|
return this;
|
|
562
574
|
}
|
|
575
|
+
/**
|
|
576
|
+
* @deprecated Use withDialogConfig instead.
|
|
577
|
+
*/
|
|
563
578
|
withDialogSize(size = StyleSizeEnum.Normal) {
|
|
564
|
-
this.
|
|
579
|
+
this._dialogOpts.size = size;
|
|
565
580
|
return this;
|
|
566
581
|
}
|
|
582
|
+
/**
|
|
583
|
+
* @deprecated Use withDialogConfig instead.
|
|
584
|
+
*/
|
|
567
585
|
withDialogClassName(className) {
|
|
568
|
-
this.
|
|
586
|
+
this._dialogOpts.className = className;
|
|
569
587
|
return this;
|
|
570
588
|
}
|
|
589
|
+
/**
|
|
590
|
+
* @deprecated Use withDialogConfig instead.
|
|
591
|
+
*/
|
|
571
592
|
withDialogMaximizable(isMaximizable = true) {
|
|
572
|
-
this.
|
|
593
|
+
this._dialogOpts.maximizable = isMaximizable;
|
|
594
|
+
return this;
|
|
595
|
+
}
|
|
596
|
+
withDialogConfig(opts) {
|
|
597
|
+
this._dialogOpts = opts;
|
|
573
598
|
return this;
|
|
574
599
|
}
|
|
575
600
|
withRunFunction(fn) {
|
|
@@ -635,9 +660,7 @@ class ActionEditorDescriptorInst extends ActionDescriptorInst {
|
|
|
635
660
|
descriptor._editorTitleParams = this._editorTitleParams != null ? { ...this._editorTitleParams } : undefined;
|
|
636
661
|
descriptor._fetchNotificationOnSuccess = typeof this._fetchNotificationOnSuccess === 'object' ? { ...this._fetchNotificationOnSuccess } : this._fetchNotificationOnSuccess;
|
|
637
662
|
descriptor._fetchNotificationOnError = typeof this._fetchNotificationOnError === 'object' ? { ...this._fetchNotificationOnError } : this._fetchNotificationOnError;
|
|
638
|
-
descriptor.
|
|
639
|
-
descriptor._dialogClassName = this._dialogClassName;
|
|
640
|
-
descriptor._dialogIsMaximizable = this._dialogIsMaximizable;
|
|
663
|
+
descriptor._dialogOpts = { ...this._dialogOpts };
|
|
641
664
|
descriptor._fetchFunction = this._fetchFunction;
|
|
642
665
|
descriptor._submitFunction = this._submitFunction;
|
|
643
666
|
descriptor._editorComponent = this._editorComponent;
|
|
@@ -1841,8 +1864,14 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
1841
1864
|
get inlineSearch() {
|
|
1842
1865
|
return this._inlineSearch;
|
|
1843
1866
|
}
|
|
1867
|
+
/**
|
|
1868
|
+
* @deprecated Use `allowInput` instead.
|
|
1869
|
+
*/
|
|
1844
1870
|
get dropdownAllowInput() {
|
|
1845
|
-
return this.
|
|
1871
|
+
return this._allowInput;
|
|
1872
|
+
}
|
|
1873
|
+
get allowInput() {
|
|
1874
|
+
return this._allowInput;
|
|
1846
1875
|
}
|
|
1847
1876
|
get autocompleteOpenOnFocus() {
|
|
1848
1877
|
return this._autocompleteOpenOnFocus;
|
|
@@ -1929,7 +1958,6 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
1929
1958
|
}
|
|
1930
1959
|
asDropdown(opts) {
|
|
1931
1960
|
this._lookupType = FieldLookupTypeEnum.Dropdown;
|
|
1932
|
-
this._dropdownAllowInput = opts?.allowInput;
|
|
1933
1961
|
this.#setCommonProps(opts);
|
|
1934
1962
|
return this;
|
|
1935
1963
|
}
|
|
@@ -1943,6 +1971,7 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
1943
1971
|
}
|
|
1944
1972
|
#setCommonProps(opts) {
|
|
1945
1973
|
this._inlineSearch = opts?.inlineSearch;
|
|
1974
|
+
this._allowInput = opts?.allowInput;
|
|
1946
1975
|
}
|
|
1947
1976
|
asDialog(lookupTableDescriptor, tableDataProvider, dialogTitle) {
|
|
1948
1977
|
this._lookupType = FieldLookupTypeEnum.Dialog;
|
|
@@ -1973,7 +2002,7 @@ class FieldLookupDescriptor extends AFieldDescriptor {
|
|
|
1973
2002
|
field._optionsTrackProperty = this._optionsTrackProperty;
|
|
1974
2003
|
field._dropdownClassName = this._dropdownClassName;
|
|
1975
2004
|
field._inlineSearch = this._inlineSearch;
|
|
1976
|
-
field.
|
|
2005
|
+
field._allowInput = this._allowInput;
|
|
1977
2006
|
field._autocompleteOpenOnFocus = this._autocompleteOpenOnFocus;
|
|
1978
2007
|
field._dialogTableDescriptor = this._dialogTableDescriptor;
|
|
1979
2008
|
field._dialogTitle = this._dialogTitle;
|