ngx-vector-components 4.1.1 → 4.3.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/CHANGELOG.md +21 -0
- package/esm2020/lib/components/fields/data-table/data-table.component.mjs +5 -1
- package/esm2020/lib/models/data-table.model.mjs +2 -1
- package/esm2020/lib/models/http-response.model.mjs +1 -1
- package/esm2020/lib/models/profile.model.mjs +4 -1
- package/fesm2015/ngx-vector-components.mjs +8 -0
- package/fesm2015/ngx-vector-components.mjs.map +1 -1
- package/fesm2020/ngx-vector-components.mjs +8 -0
- package/fesm2020/ngx-vector-components.mjs.map +1 -1
- package/lib/models/data-table.model.d.ts +3 -1
- package/lib/models/http-response.model.d.ts +8 -0
- package/lib/models/profile.model.d.ts +4 -1
- package/package.json +1 -1
|
@@ -101,6 +101,7 @@ var TableColumnType;
|
|
|
101
101
|
TableColumnType["STATUS_BADGE"] = "STATUS_BADGE";
|
|
102
102
|
TableColumnType["ACTIVE_BOOLEAN_BADGE"] = "ACTIVE_BOOLEAN_BADGE";
|
|
103
103
|
TableColumnType["BUTTON"] = "BUTTON";
|
|
104
|
+
TableColumnType["CUSTOM_STYLE"] = "CUSTOM_STYLE";
|
|
104
105
|
})(TableColumnType || (TableColumnType = {}));
|
|
105
106
|
|
|
106
107
|
var DocumentType;
|
|
@@ -236,6 +237,9 @@ var ProfileModuleActionType;
|
|
|
236
237
|
ProfileModuleActionType["ADD_USER"] = "Add User";
|
|
237
238
|
ProfileModuleActionType["EDIT_USER"] = "Edit User";
|
|
238
239
|
ProfileModuleActionType["DELETE_USER"] = "Delete User";
|
|
240
|
+
ProfileModuleActionType["ADD_REGION"] = "Add Region";
|
|
241
|
+
ProfileModuleActionType["SHOW_REGION"] = "Show Region";
|
|
242
|
+
ProfileModuleActionType["EDIT_REGION"] = "Edit Region";
|
|
239
243
|
})(ProfileModuleActionType || (ProfileModuleActionType = {}));
|
|
240
244
|
|
|
241
245
|
var Role;
|
|
@@ -2265,6 +2269,9 @@ class DataTableComponent {
|
|
|
2265
2269
|
if (!col.type || col.type === TableColumnType.TEXT) {
|
|
2266
2270
|
content += item[col.field] || '';
|
|
2267
2271
|
}
|
|
2272
|
+
if (col.type === TableColumnType.CUSTOM_STYLE) {
|
|
2273
|
+
content += `<span class="${col.textFieldClass ? item[col.textFieldClass] : ''}">${item[col.field || '']}</span>`;
|
|
2274
|
+
}
|
|
2268
2275
|
if (col.type === TableColumnType.BOOLEAN) {
|
|
2269
2276
|
content += `<div class="text-centered"><i class=" status-table-field fas fa-${item[col.field] ? 'check boolean-value-positive' : 'times boolean-value-negative'}"></i></div>`;
|
|
2270
2277
|
}
|
|
@@ -2316,6 +2323,7 @@ class DataTableComponent {
|
|
|
2316
2323
|
case Status.REJECTED:
|
|
2317
2324
|
return 'error';
|
|
2318
2325
|
}
|
|
2326
|
+
return '';
|
|
2319
2327
|
}
|
|
2320
2328
|
getActiveStatusColor(active) {
|
|
2321
2329
|
return active ? 'success' : 'error';
|