ngx-aur-mat-table 12.1.9 → 12.2.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/bundles/ngx-aur-mat-table.umd.js +116 -91
- package/bundles/ngx-aur-mat-table.umd.js.map +1 -1
- package/esm2015/lib/style-builder/style-builder.js +115 -0
- package/esm2015/public-api.js +2 -3
- package/fesm2015/ngx-aur-mat-table.js +113 -86
- package/fesm2015/ngx-aur-mat-table.js.map +1 -1
- package/lib/style-builder/style-builder.d.ts +53 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -2
- package/esm2015/lib/style-builder/border.style-builder.js +0 -54
- package/esm2015/lib/style-builder/row.style-builder.js +0 -35
- package/lib/style-builder/border.style-builder.d.ts +0 -24
- package/lib/style-builder/row.style-builder.d.ts +0 -11
|
@@ -1173,95 +1173,122 @@
|
|
|
1173
1173
|
}]
|
|
1174
1174
|
}] });
|
|
1175
1175
|
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
styles
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1176
|
+
exports.StyleBuilder = void 0;
|
|
1177
|
+
(function (StyleBuilder) {
|
|
1178
|
+
var Row = /** @class */ (function () {
|
|
1179
|
+
function Row() {
|
|
1180
|
+
this._background = '';
|
|
1181
|
+
this._color = '';
|
|
1182
|
+
this._border = '';
|
|
1183
|
+
this._fontWeight = '';
|
|
1184
|
+
}
|
|
1185
|
+
Row.builder = function () {
|
|
1186
|
+
return new Row();
|
|
1187
|
+
};
|
|
1188
|
+
Row.prototype.background = function (color) {
|
|
1189
|
+
this._background = color;
|
|
1190
|
+
return this;
|
|
1191
|
+
};
|
|
1192
|
+
Row.prototype.color = function (color) {
|
|
1193
|
+
this._color = color;
|
|
1194
|
+
return this;
|
|
1195
|
+
};
|
|
1196
|
+
Row.prototype.border = function (borderBuilderFn) {
|
|
1197
|
+
var borderBuilder = new BorderStyleBuilder();
|
|
1198
|
+
this._border = borderBuilderFn(borderBuilder).build();
|
|
1199
|
+
return this;
|
|
1200
|
+
};
|
|
1201
|
+
Row.prototype.fontWeight = function (weight) {
|
|
1202
|
+
this._fontWeight = weight;
|
|
1203
|
+
return this;
|
|
1204
|
+
};
|
|
1205
|
+
Row.prototype.build = function () {
|
|
1206
|
+
var styles = '';
|
|
1207
|
+
if (this._background)
|
|
1208
|
+
styles += "background: " + this._background + "; ";
|
|
1209
|
+
if (this._color)
|
|
1210
|
+
styles += "color: " + this._color + "; ";
|
|
1211
|
+
if (this._fontWeight)
|
|
1212
|
+
styles += "font-weight: " + this._fontWeight + "; ";
|
|
1213
|
+
if (this._border)
|
|
1214
|
+
styles += "" + this._border;
|
|
1215
|
+
return styles;
|
|
1216
|
+
};
|
|
1217
|
+
return Row;
|
|
1218
|
+
}());
|
|
1219
|
+
StyleBuilder.Row = Row;
|
|
1220
|
+
var BorderStyleBuilder = /** @class */ (function () {
|
|
1221
|
+
function BorderStyleBuilder() {
|
|
1222
|
+
this._top = '';
|
|
1223
|
+
this._bottom = '';
|
|
1224
|
+
this._right = '';
|
|
1225
|
+
this._left = '';
|
|
1226
|
+
}
|
|
1227
|
+
BorderStyleBuilder.prototype.top = function (width, style, color) {
|
|
1228
|
+
this._top = width + " " + style + " " + color;
|
|
1229
|
+
return this;
|
|
1230
|
+
};
|
|
1231
|
+
BorderStyleBuilder.prototype.bottom = function (width, style, color) {
|
|
1232
|
+
this._bottom = width + " " + style + " " + color;
|
|
1233
|
+
return this;
|
|
1234
|
+
};
|
|
1235
|
+
BorderStyleBuilder.prototype.right = function (width, style, color) {
|
|
1236
|
+
this._right = width + " " + style + " " + color;
|
|
1237
|
+
return this;
|
|
1238
|
+
};
|
|
1239
|
+
BorderStyleBuilder.prototype.left = function (width, style, color) {
|
|
1240
|
+
this._left = width + " " + style + " " + color;
|
|
1241
|
+
return this;
|
|
1242
|
+
};
|
|
1243
|
+
BorderStyleBuilder.prototype.allBorders = function (width, style, color) {
|
|
1244
|
+
this._top = this._bottom = this._right = this._left = width + " " + style + " " + color;
|
|
1245
|
+
return this;
|
|
1246
|
+
};
|
|
1247
|
+
BorderStyleBuilder.prototype.build = function () {
|
|
1248
|
+
var styles = '';
|
|
1249
|
+
if (this._top)
|
|
1250
|
+
styles += "border-top: " + this._top + "; ";
|
|
1251
|
+
if (this._bottom)
|
|
1252
|
+
styles += "border-bottom: " + this._bottom + "; ";
|
|
1253
|
+
if (this._right)
|
|
1254
|
+
styles += "border-right: " + this._right + "; ";
|
|
1255
|
+
if (this._left)
|
|
1256
|
+
styles += "border-left: " + this._left + "; ";
|
|
1257
|
+
return styles;
|
|
1258
|
+
};
|
|
1259
|
+
return BorderStyleBuilder;
|
|
1260
|
+
}());
|
|
1261
|
+
StyleBuilder.BorderStyleBuilder = BorderStyleBuilder;
|
|
1262
|
+
var BorderStyle;
|
|
1263
|
+
(function (BorderStyle) {
|
|
1264
|
+
BorderStyle["SOLID"] = "solid";
|
|
1265
|
+
BorderStyle["DOTTED"] = "dotted";
|
|
1266
|
+
BorderStyle["DASHED"] = "dashed";
|
|
1267
|
+
BorderStyle["DOUBLE"] = "double";
|
|
1268
|
+
BorderStyle["GROOVE"] = "groove";
|
|
1269
|
+
BorderStyle["RIDGE"] = "ridge";
|
|
1270
|
+
BorderStyle["INSET"] = "inset";
|
|
1271
|
+
BorderStyle["OUTSET"] = "outset";
|
|
1272
|
+
BorderStyle["NONE"] = "none";
|
|
1273
|
+
BorderStyle["HIDDEN"] = "hidden";
|
|
1274
|
+
})(BorderStyle = StyleBuilder.BorderStyle || (StyleBuilder.BorderStyle = {}));
|
|
1275
|
+
var FontWeight;
|
|
1276
|
+
(function (FontWeight) {
|
|
1277
|
+
FontWeight["NORMAL"] = "normal";
|
|
1278
|
+
FontWeight["BOLD"] = "bold";
|
|
1279
|
+
FontWeight["BOLDER"] = "bolder";
|
|
1280
|
+
FontWeight["LIGHTER"] = "lighter";
|
|
1281
|
+
FontWeight["W_100"] = "100";
|
|
1282
|
+
FontWeight["W_200"] = "200";
|
|
1283
|
+
FontWeight["W_300"] = "300";
|
|
1284
|
+
FontWeight["W_400"] = "400";
|
|
1285
|
+
FontWeight["W_500"] = "500";
|
|
1286
|
+
FontWeight["W_600"] = "600";
|
|
1287
|
+
FontWeight["W_700"] = "700";
|
|
1288
|
+
FontWeight["W_800"] = "800";
|
|
1289
|
+
FontWeight["W_900"] = "900";
|
|
1290
|
+
})(FontWeight = StyleBuilder.FontWeight || (StyleBuilder.FontWeight = {}));
|
|
1291
|
+
})(exports.StyleBuilder || (exports.StyleBuilder = {}));
|
|
1265
1292
|
|
|
1266
1293
|
/*
|
|
1267
1294
|
* Public API Surface of ngx-aur-mat-table
|
|
@@ -1271,7 +1298,6 @@
|
|
|
1271
1298
|
* Generated bundle index. Do not edit.
|
|
1272
1299
|
*/
|
|
1273
1300
|
|
|
1274
|
-
exports.BorderStyleBuilder = BorderStyleBuilder;
|
|
1275
1301
|
exports.DataPropertyGetterPipe = DataPropertyGetterPipe;
|
|
1276
1302
|
exports.IndexProvider = IndexProvider;
|
|
1277
1303
|
exports.IndexProviderDummy = IndexProviderDummy;
|
|
@@ -1279,7 +1305,6 @@
|
|
|
1279
1305
|
exports.NgxAurMatTableModule = NgxAurMatTableModule;
|
|
1280
1306
|
exports.RowActionProvider = RowActionProvider;
|
|
1281
1307
|
exports.RowActionProviderDummy = RowActionProviderDummy;
|
|
1282
|
-
exports.RowStyleBuilder = RowStyleBuilder;
|
|
1283
1308
|
exports.SelectionProvider = SelectionProvider;
|
|
1284
1309
|
exports.SelectionProviderDummy = SelectionProviderDummy;
|
|
1285
1310
|
exports.TableRow = TableRow;
|