@one-paragon/angular-utilities 2.7.5 → 2.7.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.
|
@@ -746,6 +746,16 @@ class RequestStateStore {
|
|
|
746
746
|
destroy() {
|
|
747
747
|
this.destroy$.next();
|
|
748
748
|
}
|
|
749
|
+
refresh() {
|
|
750
|
+
if (this.$isNotStarted()) {
|
|
751
|
+
throw new Error("Cannot refresh a request that has not been started. Call request() first.");
|
|
752
|
+
}
|
|
753
|
+
if (this.$isError()) {
|
|
754
|
+
throw new Error("Cannot refresh a request that is in error state. Call reset() and request() first.");
|
|
755
|
+
}
|
|
756
|
+
const params = this.state().requestParams;
|
|
757
|
+
this.request(...params);
|
|
758
|
+
}
|
|
749
759
|
}
|
|
750
760
|
class CancellationToken {
|
|
751
761
|
}
|
|
@@ -1145,6 +1155,10 @@ class CustomCellDirective {
|
|
|
1145
1155
|
* true if column not mapped to a property in the data source. Default is false.
|
|
1146
1156
|
*/
|
|
1147
1157
|
this.$customCellNotMapped = input(false, { ...(ngDevMode ? { debugName: "$customCellNotMapped" } : {}), alias: 'customCellNotMapped', transform: coerceBooleanProperty });
|
|
1158
|
+
/**
|
|
1159
|
+
* Styles to apply to the cell element
|
|
1160
|
+
*/
|
|
1161
|
+
this.$customCellCellStyles = input(undefined, { ...(ngDevMode ? { debugName: "$customCellCellStyles" } : {}), alias: 'customCellCellStyles' });
|
|
1148
1162
|
this.$metaData = computed(() => {
|
|
1149
1163
|
const c = this.$customCell();
|
|
1150
1164
|
if (!c)
|
|
@@ -1158,6 +1172,7 @@ class CustomCellDirective {
|
|
|
1158
1172
|
width: this.$customCellWidth(),
|
|
1159
1173
|
customCell: true,
|
|
1160
1174
|
noExport: true,
|
|
1175
|
+
additional: { styles: this.$customCellCellStyles() },
|
|
1161
1176
|
});
|
|
1162
1177
|
}, { ...(ngDevMode ? { debugName: "$metaData" } : {}) });
|
|
1163
1178
|
this.$inited = signal(false, { ...(ngDevMode ? { debugName: "$inited" } : {}) });
|
|
@@ -1169,12 +1184,12 @@ class CustomCellDirective {
|
|
|
1169
1184
|
return true;
|
|
1170
1185
|
}
|
|
1171
1186
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: CustomCellDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1172
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.2", type: CustomCellDirective, isStandalone: true, selector: "[customCell]", inputs: { $customCell: { classPropertyName: "$customCell", publicName: "customCell", isSignal: true, isRequired: true, transformFunction: null }, $displayName: { classPropertyName: "$displayName", publicName: "customCellDisplayName", isSignal: true, isRequired: false, transformFunction: null }, $preSort: { classPropertyName: "$preSort", publicName: "preSort", isSignal: true, isRequired: false, transformFunction: null }, $templateRef: { classPropertyName: "$templateRef", publicName: "templateRef", isSignal: true, isRequired: false, transformFunction: null }, $customCellOrder: { classPropertyName: "$customCellOrder", publicName: "customCellOrder", isSignal: true, isRequired: false, transformFunction: null }, $customCellWidth: { classPropertyName: "$customCellWidth", publicName: "customCellWidth", isSignal: true, isRequired: false, transformFunction: null }, $customCellTableRef: { classPropertyName: "$customCellTableRef", publicName: "customCellTableRef", isSignal: true, isRequired: false, transformFunction: null }, $customCellNotMapped: { classPropertyName: "$customCellNotMapped", publicName: "customCellNotMapped", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
1187
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.2", type: CustomCellDirective, isStandalone: true, selector: "[customCell]", inputs: { $customCell: { classPropertyName: "$customCell", publicName: "customCell", isSignal: true, isRequired: true, transformFunction: null }, $displayName: { classPropertyName: "$displayName", publicName: "customCellDisplayName", isSignal: true, isRequired: false, transformFunction: null }, $preSort: { classPropertyName: "$preSort", publicName: "preSort", isSignal: true, isRequired: false, transformFunction: null }, $templateRef: { classPropertyName: "$templateRef", publicName: "templateRef", isSignal: true, isRequired: false, transformFunction: null }, $customCellOrder: { classPropertyName: "$customCellOrder", publicName: "customCellOrder", isSignal: true, isRequired: false, transformFunction: null }, $customCellWidth: { classPropertyName: "$customCellWidth", publicName: "customCellWidth", isSignal: true, isRequired: false, transformFunction: null }, $customCellTableRef: { classPropertyName: "$customCellTableRef", publicName: "customCellTableRef", isSignal: true, isRequired: false, transformFunction: null }, $customCellNotMapped: { classPropertyName: "$customCellNotMapped", publicName: "customCellNotMapped", isSignal: true, isRequired: false, transformFunction: null }, $customCellCellStyles: { classPropertyName: "$customCellCellStyles", publicName: "customCellCellStyles", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
1173
1188
|
}
|
|
1174
1189
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.2", ngImport: i0, type: CustomCellDirective, decorators: [{
|
|
1175
1190
|
type: Directive,
|
|
1176
1191
|
args: [{ selector: '[customCell]' }]
|
|
1177
|
-
}], propDecorators: { $customCell: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCell", required: true }] }], $displayName: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellDisplayName", required: false }] }], $preSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "preSort", required: false }] }], $templateRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateRef", required: false }] }], $customCellOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellOrder", required: false }] }], $customCellWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellWidth", required: false }] }], $customCellTableRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellTableRef", required: false }] }], $customCellNotMapped: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellNotMapped", required: false }] }] } });
|
|
1192
|
+
}], propDecorators: { $customCell: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCell", required: true }] }], $displayName: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellDisplayName", required: false }] }], $preSort: [{ type: i0.Input, args: [{ isSignal: true, alias: "preSort", required: false }] }], $templateRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateRef", required: false }] }], $customCellOrder: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellOrder", required: false }] }], $customCellWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellWidth", required: false }] }], $customCellTableRef: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellTableRef", required: false }] }], $customCellNotMapped: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellNotMapped", required: false }] }], $customCellCellStyles: [{ type: i0.Input, args: [{ isSignal: true, alias: "customCellCellStyles", required: false }] }] } });
|
|
1178
1193
|
|
|
1179
1194
|
// Usage examples:
|
|
1180
1195
|
// <!-- Custom group row for all groupings -->
|
|
@@ -5946,10 +5961,13 @@ function mergeCustomCellMetaData(metaData1, metaData2) {
|
|
|
5946
5961
|
metaData1.order = metaData2.order;
|
|
5947
5962
|
if (!metaData1.width)
|
|
5948
5963
|
metaData1.width = metaData2.width;
|
|
5964
|
+
if (!metaData1.additional?.styles && metaData2.additional?.styles)
|
|
5965
|
+
metaData1.additional = { ...metaData1.additional, styles: metaData2.additional.styles };
|
|
5949
5966
|
if (metaData2.fieldType)
|
|
5950
5967
|
metaData1.fieldType = metaData2.fieldType;
|
|
5951
5968
|
metaData1.noExport = metaData2.noExport;
|
|
5952
|
-
|
|
5969
|
+
const meta = { ...metaData2, ...metaData1 };
|
|
5970
|
+
return meta;
|
|
5953
5971
|
}
|
|
5954
5972
|
|
|
5955
5973
|
class GroupByListComponent {
|