@webilix/ngx-table-m3 0.0.24 → 0.0.27

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/index.d.ts CHANGED
@@ -124,6 +124,12 @@ interface IColumnPeriod<T> extends Omit<IColumn<T>, 'english'> {
124
124
  readonly type: 'PERIOD';
125
125
  }
126
126
 
127
+ interface IColumnTag<T> extends Omit<IColumn<T>, 'title' | 'english' | 'subValue' | 'english' | 'mode' | 'onClick' | 'onCopy'> {
128
+ readonly type: 'TAG';
129
+ readonly title?: string;
130
+ readonly onTagClick?: (id: string) => string[] | void;
131
+ }
132
+
127
133
  interface IColumnText<T> extends IColumn<T> {
128
134
  readonly type: 'TEXT';
129
135
  }
@@ -159,7 +165,7 @@ interface IActionLog<T> extends Omit<IAction<T>, 'type' | 'title' | 'icon' | 'co
159
165
  readonly type: 'LOG';
160
166
  }
161
167
 
162
- type NgxTableColumn<T> = IColumnDate<T> | IColumnDuration<T> | IColumnFileSize<T> | IColumnMobile<T> | IColumnNumber<T> | IColumnPeriod<T> | IColumnText<T> | IColumnWeight<T>;
168
+ type NgxTableColumn<T> = IColumnDate<T> | IColumnDuration<T> | IColumnFileSize<T> | IColumnMobile<T> | IColumnNumber<T> | IColumnPeriod<T> | IColumnTag<T> | IColumnText<T> | IColumnWeight<T>;
163
169
  type NgxTableAction<T> = 'DIVIDER' | IAction<T> | IActionUpdate<T> | IActionDelete<T> | IActionStatus<T> | IActionLog<T>;
164
170
  interface INgxTable<T> {
165
171
  readonly route?: string[];
@@ -217,6 +223,32 @@ declare class FilterService {
217
223
  static ɵprov: i0.ɵɵInjectableDeclaration<FilterService>;
218
224
  }
219
225
 
226
+ interface IViewConfig {
227
+ readonly alternateRows: boolean;
228
+ readonly iconSize: string;
229
+ readonly emojiSize: string;
230
+ readonly actionMenuTitle: string;
231
+ readonly minimalCardView: boolean;
232
+ readonly stickyView?: {
233
+ readonly top?: {
234
+ readonly desktopView: string;
235
+ readonly mobileView: string;
236
+ };
237
+ readonly bottom?: {
238
+ readonly desktopView: string;
239
+ readonly mobileView: string;
240
+ };
241
+ };
242
+ }
243
+ interface IViewOrder {
244
+ readonly id: string;
245
+ readonly type: 'ASC' | 'DESC';
246
+ }
247
+ interface IViewFilter {
248
+ readonly id: string;
249
+ readonly value: any;
250
+ }
251
+
220
252
  type OrderType = 'ASC' | 'DESC';
221
253
  interface IOrder {
222
254
  readonly title: string;
@@ -232,6 +264,7 @@ declare class ViewService {
232
264
  constructor(activatedRoute: ActivatedRoute);
233
265
  getTitleIndex<T>(ngxTable: INgxTable<T>): number;
234
266
  getSubTitleIndex<T>(ngxTable: INgxTable<T>): number | undefined;
267
+ getValue<T>(column: NgxTableColumn<T>, item: T): any;
235
268
  getIcons<T>(ngxTable: INgxTable<T>, data: T[]): {
236
269
  icon: string;
237
270
  color?: string;
@@ -245,37 +278,13 @@ declare class ViewService {
245
278
  static ɵprov: i0.ɵɵInjectableDeclaration<ViewService>;
246
279
  }
247
280
 
248
- interface IViewConfig {
249
- readonly alternateRows: boolean;
250
- readonly iconSize: string;
251
- readonly emojiSize: string;
252
- readonly actionMenuTitle: string;
253
- readonly stickyView?: {
254
- readonly top?: {
255
- readonly desktopView: string;
256
- readonly mobileView: string;
257
- };
258
- readonly bottom?: {
259
- readonly desktopView: string;
260
- readonly mobileView: string;
261
- };
262
- };
263
- }
264
- interface IViewOrder {
265
- readonly id: string;
266
- readonly type: 'ASC' | 'DESC';
267
- }
268
- interface IViewFilter {
269
- readonly id: string;
270
- readonly value: any;
271
- }
272
-
273
281
  interface INgxTableConfig {
274
282
  readonly mobileWidth: number;
275
283
  readonly alternateRows: boolean;
276
284
  readonly iconSize: number;
277
285
  readonly emojiSize: number;
278
286
  readonly actionMenuTitle?: string;
287
+ readonly minimalCardView?: boolean;
279
288
  readonly stickyView: {
280
289
  readonly top?: string | {
281
290
  readonly desktopView: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webilix/ngx-table-m3",
3
- "version": "0.0.24",
3
+ "version": "0.0.27",
4
4
  "author": "Ali Amirnezhad",
5
5
  "description": "Responsive table view component for Angular and Material 3",
6
6
  "repository": {