@messaia/cdk 13.3.5-rc29 → 13.3.5
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/base/components/base.component.mjs +8 -3
- package/esm2020/lib/chips/components/chips.component.mjs +6 -2
- package/esm2020/lib/table/functions/functions.mjs +3 -2
- package/fesm2015/messaia-cdk.mjs +33 -24
- package/fesm2015/messaia-cdk.mjs.map +1 -1
- package/fesm2020/messaia-cdk.mjs +30 -21
- package/fesm2020/messaia-cdk.mjs.map +1 -1
- package/lib/base/components/base.component.d.ts +1 -1
- package/package.json +1 -1
package/fesm2020/messaia-cdk.mjs
CHANGED
|
@@ -3028,8 +3028,13 @@ class BaseComponent {
|
|
|
3028
3028
|
* Navigate based on the provided array of commands and a starting point.
|
|
3029
3029
|
* @param commands
|
|
3030
3030
|
*/
|
|
3031
|
-
navigate(commands, queryParams) {
|
|
3032
|
-
this.router.navigate(commands, {
|
|
3031
|
+
navigate(commands, queryParams, fragment, preserveFragment) {
|
|
3032
|
+
this.router.navigate(commands, {
|
|
3033
|
+
queryParams: Object.assign({ returnUrl: this.currentRoute }, queryParams || {}),
|
|
3034
|
+
fragment: fragment,
|
|
3035
|
+
preserveFragment: preserveFragment,
|
|
3036
|
+
relativeTo: this.route
|
|
3037
|
+
});
|
|
3033
3038
|
}
|
|
3034
3039
|
/**
|
|
3035
3040
|
* Convert Object to HttpHeaders
|
|
@@ -3836,6 +3841,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
3836
3841
|
type: Directive
|
|
3837
3842
|
}], ctorParameters: function () { return [{ type: undefined }, { type: undefined }, { type: i1$4.ActivatedRoute }, { type: i0.ChangeDetectorRef }]; } });
|
|
3838
3843
|
|
|
3844
|
+
class TableDefinition {
|
|
3845
|
+
/**
|
|
3846
|
+
* constructor
|
|
3847
|
+
* @param init
|
|
3848
|
+
*/
|
|
3849
|
+
constructor(init) {
|
|
3850
|
+
this.showAction = true;
|
|
3851
|
+
this.selectable = true;
|
|
3852
|
+
this.addable = true;
|
|
3853
|
+
this.editable = true;
|
|
3854
|
+
this.deletable = true;
|
|
3855
|
+
this.columns = [];
|
|
3856
|
+
this.actions = [];
|
|
3857
|
+
Object.assign(this, init);
|
|
3858
|
+
}
|
|
3859
|
+
}
|
|
3860
|
+
|
|
3839
3861
|
/**
|
|
3840
3862
|
* Gets classes decoarated with @Table
|
|
3841
3863
|
* @param origin
|
|
@@ -3843,7 +3865,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
3843
3865
|
*/
|
|
3844
3866
|
function getTableDefinition(origin) {
|
|
3845
3867
|
/* Save the table defintion in the metadata */
|
|
3846
|
-
var tableDefinition = Reflect.getMetadata(tableDefinitionMetadataKey, origin);
|
|
3868
|
+
var tableDefinition = Reflect.getMetadata(tableDefinitionMetadataKey, origin) ?? new TableDefinition({});
|
|
3847
3869
|
if (tableDefinition) {
|
|
3848
3870
|
/* Set column in the table definition */
|
|
3849
3871
|
tableDefinition.columns = Reflect.getMetadata(tableColumnsMetadataKey, Reflect.construct(origin, []))
|
|
@@ -12811,10 +12833,14 @@ class VdChipsComponent extends AbstractMatFormField {
|
|
|
12811
12833
|
if (value && this.chips?.length <= 0) {
|
|
12812
12834
|
this.loading = true;
|
|
12813
12835
|
let _params = {};
|
|
12814
|
-
/* Add includes, if any */
|
|
12836
|
+
/* Add includes from params, if any */
|
|
12815
12837
|
if (this._params?.includes) {
|
|
12816
12838
|
_params.includes = this._params.includes;
|
|
12817
12839
|
}
|
|
12840
|
+
/* Add projection from params, if any */
|
|
12841
|
+
if (this._params?.projection) {
|
|
12842
|
+
_params.projection = this._params.projection;
|
|
12843
|
+
}
|
|
12818
12844
|
/* Add projection, if any */
|
|
12819
12845
|
if (this.projection) {
|
|
12820
12846
|
_params.projection = this.projection;
|
|
@@ -16758,23 +16784,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.0", ngImpor
|
|
|
16758
16784
|
class Pagination {
|
|
16759
16785
|
}
|
|
16760
16786
|
|
|
16761
|
-
class TableDefinition {
|
|
16762
|
-
/**
|
|
16763
|
-
* constructor
|
|
16764
|
-
* @param init
|
|
16765
|
-
*/
|
|
16766
|
-
constructor(init) {
|
|
16767
|
-
this.showAction = true;
|
|
16768
|
-
this.selectable = true;
|
|
16769
|
-
this.addable = true;
|
|
16770
|
-
this.editable = true;
|
|
16771
|
-
this.deletable = true;
|
|
16772
|
-
this.columns = [];
|
|
16773
|
-
this.actions = [];
|
|
16774
|
-
Object.assign(this, init);
|
|
16775
|
-
}
|
|
16776
|
-
}
|
|
16777
|
-
|
|
16778
16787
|
class TableMenuItem extends ActionMenuItem {
|
|
16779
16788
|
/**
|
|
16780
16789
|
* constructor
|