@microsoft/sp-listview-extensibility 1.14.0-beta.4 → 1.14.0-beta.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.
@@ -12,7 +12,7 @@
12
12
  "scriptResources": {
13
13
  "sp-listview-extensibility": {
14
14
  "type": "path",
15
- "path": "sp-listview-extensibility_none_7c3cbbaef8efd67369bb.js"
15
+ "path": "sp-listview-extensibility_none_ed92a9a99f00e681761d.js"
16
16
  },
17
17
  "tslib": {
18
18
  "type": "component",
@@ -6,7 +6,9 @@
6
6
 
7
7
  import { BaseExtension } from '@microsoft/sp-extension-base';
8
8
  import { ExtensionContext } from '@microsoft/sp-extension-base';
9
+ import { Guid } from '@microsoft/sp-core-library';
9
10
  import { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
11
+ import { IDisposable } from '@microsoft/sp-core-library';
10
12
  import { SPEvent } from '@microsoft/sp-core-library';
11
13
  import { SPEventArgs } from '@microsoft/sp-core-library';
12
14
  import { SPField } from '@microsoft/sp-page-context';
@@ -48,6 +50,7 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
48
50
  * {@inheritDoc @microsoft/sp-extension-base#BaseExtension.context}
49
51
  */
50
52
  readonly context: ListViewCommandSetContext;
53
+ /* Excluded from this release type: _raiseOnChange */
51
54
  /* Excluded from this release type: __constructor */
52
55
  /**
53
56
  * Returns the command with the given id.
@@ -60,6 +63,8 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
60
63
  * virtual
61
64
  * @remarks
62
65
  * This event allows the implementor to tailor the visibility of the command.
66
+ *
67
+ * @deprecated Use context.listView.listViewStateChangedEvent instead.
63
68
  */
64
69
  onListViewUpdated(event: IListViewCommandSetListViewUpdatedParameters): void;
65
70
  /**
@@ -68,6 +73,10 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
68
73
  * virtual
69
74
  */
70
75
  onExecute(event: IListViewCommandSetExecuteEventParameters): void;
76
+ /**
77
+ * Use this method to fire OnChange event and initialize a reflow of the ListView.
78
+ */
79
+ raiseOnChange(): void;
71
80
  }
72
81
 
73
82
  /**
@@ -170,6 +179,50 @@ export declare class FieldCustomizerContext extends ExtensionContext {
170
179
  get field(): SPField;
171
180
  }
172
181
 
182
+ /**
183
+ * Provides information about the state of a column in the list view
184
+ *
185
+ * @beta
186
+ */
187
+ export declare interface IColumn {
188
+ /**
189
+ * The GUID identifier for this field.
190
+ */
191
+ readonly id: Guid;
192
+ /**
193
+ * The internal name of the field. This name is usually used to find the field.
194
+ */
195
+ readonly internalName: string;
196
+ /**
197
+ * The type of the field represented as a string
198
+ */
199
+ readonly fieldType: string;
200
+ /**
201
+ * Whether the field is required for each list item in the list
202
+ */
203
+ readonly isRequired: boolean;
204
+ /**
205
+ * Whether the column is visible in the view
206
+ */
207
+ readonly isVisible: boolean;
208
+ /**
209
+ * The display name of the field. This name is shown as column name in UI.
210
+ */
211
+ readonly displayName: string;
212
+ /**
213
+ * The unique identifier of the client-side component associated with the field.
214
+ */
215
+ readonly clientSideComponentId: Guid | undefined;
216
+ /**
217
+ * This property is only used when a `ClientSideComponentId` is specified. It is optional.
218
+ *
219
+ * @remarks
220
+ * If non-empty, the string must contain a JSON object with custom initialization properties
221
+ * whose format and meaning are defined by the client-side component.
222
+ */
223
+ readonly clientSideComponentProperties: string;
224
+ }
225
+
173
226
  /* Excluded from this release type: _IExtensionContextParameters */
174
227
 
175
228
  /**
@@ -204,6 +257,100 @@ export declare interface IFieldCustomizerCellEventParameters {
204
257
 
205
258
  /* Excluded from this release type: _IFieldCustomizerContextParameters */
206
259
 
260
+ /**
261
+ * Provides information about the state of the filters applied to the ListView.
262
+ *
263
+ * @beta
264
+ */
265
+ export declare interface IFilter {
266
+ /**
267
+ * Field name to filter on.
268
+ */
269
+ readonly fieldName: string;
270
+ /**
271
+ * Values to filter on.
272
+ */
273
+ values: ReadonlyArray<string>;
274
+ }
275
+
276
+ /**
277
+ * Provides information about the state of the folder in the ListView.
278
+ *
279
+ * @beta
280
+ */
281
+ export declare interface IFolderInfo {
282
+ /**
283
+ * Folder path.
284
+ */
285
+ readonly folderPath: string;
286
+ }
287
+
288
+ /**
289
+ * Provides information about the list rendered by the ListView.
290
+ *
291
+ * @beta
292
+ */
293
+ export declare interface IList {
294
+ /**
295
+ * List id.
296
+ */
297
+ readonly guid: Guid;
298
+ /**
299
+ * List title.
300
+ */
301
+ readonly title: string;
302
+ /**
303
+ * List server relative url.
304
+ */
305
+ readonly serverRelativeUrl: string;
306
+ }
307
+
308
+ /**
309
+ * Provides information about the state of the ListView.
310
+ *
311
+ * @beta
312
+ */
313
+ export declare interface IListViewAccessorState {
314
+ /**
315
+ * List information.
316
+ */
317
+ readonly list?: IList;
318
+ /**
319
+ * View information.
320
+ */
321
+ readonly view?: IView;
322
+ /**
323
+ * Current folder information.
324
+ */
325
+ readonly folderInfo?: IFolderInfo;
326
+ /**
327
+ * Columns information.
328
+ */
329
+ readonly columns: ReadonlyArray<IColumn>;
330
+ /**
331
+ * Selected rows information.
332
+ */
333
+ readonly selectedRows?: ReadonlyArray<IRow>;
334
+ /**
335
+ * Rows information.
336
+ */
337
+ readonly rows: ReadonlyArray<IRow>;
338
+ /**
339
+ * Applied filters information.
340
+ */
341
+ readonly appliedFilters?: {
342
+ [fieldName: string]: IFilter;
343
+ };
344
+ /**
345
+ * Sort field name.
346
+ */
347
+ readonly sortField?: string;
348
+ /**
349
+ * Sort direction.
350
+ */
351
+ readonly sortAscending?: boolean;
352
+ }
353
+
207
354
  /* Excluded from this release type: _IListViewCommandSetContextParameters */
208
355
 
209
356
  /**
@@ -235,6 +382,41 @@ export declare interface IListViewCommandSetListViewUpdatedParameters {
235
382
  readonly selectedRows: ReadonlyArray<RowAccessor>;
236
383
  }
237
384
 
385
+ /**
386
+ * Provides information about the list item's state rendered by the ListView.
387
+ *
388
+ * @beta
389
+ */
390
+ export declare interface IRow {
391
+ /**
392
+ * A map of column values for the row. They key is the column internal name and the value
393
+ * is its corresponding value in the row.
394
+ */
395
+ readonly values: {
396
+ [columnInternalName: string]: Readonly<any>;
397
+ };
398
+ }
399
+
400
+ /**
401
+ * Provides information about the view rendered by the ListView.
402
+ *
403
+ * @beta
404
+ */
405
+ export declare interface IView {
406
+ /**
407
+ * View id.
408
+ */
409
+ readonly id: Guid;
410
+ /**
411
+ * View title.
412
+ */
413
+ readonly title: string;
414
+ /**
415
+ * View server relative url.
416
+ */
417
+ readonly url: string;
418
+ }
419
+
238
420
  /**
239
421
  * When a field customizer extension is rendering a field, the ListItemAccessor provides
240
422
  * access to the associated SharePoint list item.
@@ -280,14 +462,68 @@ export declare abstract class ListItemAccessor {
280
462
  *
281
463
  * @public
282
464
  */
283
- export declare abstract class ListViewAccessor {
465
+ export declare abstract class ListViewAccessor implements IDisposable {
284
466
  /* Excluded from this release type: _selectedRowsChangedEventName */
467
+ /* Excluded from this release type: _listViewStateChangedEventName */
285
468
  private _selectedRowsChangedEvent;
469
+ private _listViewStateChangedEvent;
470
+ private readonly _listViewStateChangedEventName;
471
+ private _isDisposed;
286
472
  /* Excluded from this release type: __constructor */
287
473
  /**
288
474
  * The columns in associated with this view, including hidden columns.
289
475
  */
290
476
  abstract get columns(): ReadonlyArray<ColumnAccessor>;
477
+ /**
478
+ * Currently rendered rows in the list view.
479
+ *
480
+ * @beta
481
+ */
482
+ abstract get rows(): ReadonlyArray<RowAccessor>;
483
+ /**
484
+ * Selected rows in the list view.
485
+ *
486
+ * @beta
487
+ */
488
+ abstract get selectedRows(): ReadonlyArray<RowAccessor> | undefined;
489
+ /**
490
+ * Basic information about the list rendered by the list view.
491
+ *
492
+ * @beta
493
+ */
494
+ abstract get list(): IList | undefined;
495
+ /**
496
+ * Basic information about the view rendered by the list view.
497
+ *
498
+ * @beta
499
+ */
500
+ abstract get view(): IView | undefined;
501
+ /**
502
+ * Folder information for the list view.
503
+ *
504
+ * @beta
505
+ */
506
+ abstract get folderInfo(): IFolderInfo | undefined;
507
+ /**
508
+ * Filters applied to the list view.
509
+ *
510
+ * @beta
511
+ */
512
+ abstract get appliedFilters(): {
513
+ [fieldName: string]: IFilter;
514
+ } | undefined;
515
+ /**
516
+ * Sort field name
517
+ *
518
+ * @beta
519
+ */
520
+ abstract get sortField(): string | undefined;
521
+ /**
522
+ * Specifies whether the list view is sorted ascending or descending.
523
+ *
524
+ * @beta
525
+ */
526
+ abstract get sortAscending(): boolean | undefined;
291
527
  /**
292
528
  * Returns the list view column corresponding to the field with the specified internal name,
293
529
  * or undefined if none is found.
@@ -298,6 +534,32 @@ export declare abstract class ListViewAccessor {
298
534
  * @eventproperty
299
535
  */
300
536
  get selectedRowsChangedEvent(): SPEvent<SelectedRowsChangedEventArgs>;
537
+ /**
538
+ * Event that gets raised every time the list view state changes.
539
+ *
540
+ * @beta
541
+ * @eventproperty
542
+ */
543
+ get listViewStateChangedEvent(): SPEvent<ListViewStateChangedEventArgs>;
544
+ /* Excluded from this release type: dispose */
545
+ /* Excluded from this release type: isDisposed */
546
+ }
547
+
548
+ /**
549
+ * Describes the type of list view state changes.
550
+ *
551
+ * @beta
552
+ */
553
+ export declare enum ListViewAccessorStateChanges {
554
+ None = 0,
555
+ List = 1,
556
+ View = 2,
557
+ Columns = 4,
558
+ SelectedRows = 8,
559
+ Rows = 16,
560
+ AppliedFilters = 32,
561
+ Sort = 64,
562
+ FolderInfo = 128
301
563
  }
302
564
 
303
565
  /**
@@ -319,6 +581,22 @@ export declare class ListViewCommandSetContext extends ExtensionContext {
319
581
  /* Excluded from this release type: _commands */
320
582
  }
321
583
 
584
+ /**
585
+ * Arguments for the list view state changed event.
586
+ *
587
+ * @beta
588
+ */
589
+ export declare class ListViewStateChangedEventArgs extends SPEventArgs {
590
+ /**
591
+ * Previous state of the ListView.
592
+ */
593
+ prevState: Readonly<IListViewAccessorState>;
594
+ /**
595
+ * Changes that were made to the ListView state.
596
+ */
597
+ stateChanges: ListViewAccessorStateChanges;
598
+ }
599
+
322
600
  /**
323
601
  * Provides access to a ListView row, which is the visual presentation
324
602
  * of a SharePoint list item.
@@ -6,7 +6,9 @@
6
6
 
7
7
  import { BaseExtension } from '@microsoft/sp-extension-base';
8
8
  import { ExtensionContext } from '@microsoft/sp-extension-base';
9
+ import { Guid } from '@microsoft/sp-core-library';
9
10
  import { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
11
+ import { IDisposable } from '@microsoft/sp-core-library';
10
12
  import { SPEvent } from '@microsoft/sp-core-library';
11
13
  import { SPEventArgs } from '@microsoft/sp-core-library';
12
14
  import { SPField } from '@microsoft/sp-page-context';
@@ -48,6 +50,7 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
48
50
  * {@inheritDoc @microsoft/sp-extension-base#BaseExtension.context}
49
51
  */
50
52
  readonly context: ListViewCommandSetContext;
53
+ /* Excluded from this release type: _raiseOnChange */
51
54
  /* Excluded from this release type: __constructor */
52
55
  /**
53
56
  * Returns the command with the given id.
@@ -60,6 +63,8 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
60
63
  * virtual
61
64
  * @remarks
62
65
  * This event allows the implementor to tailor the visibility of the command.
66
+ *
67
+ * @deprecated Use context.listView.listViewStateChangedEvent instead.
63
68
  */
64
69
  onListViewUpdated(event: IListViewCommandSetListViewUpdatedParameters): void;
65
70
  /**
@@ -68,6 +73,10 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
68
73
  * virtual
69
74
  */
70
75
  onExecute(event: IListViewCommandSetExecuteEventParameters): void;
76
+ /**
77
+ * Use this method to fire OnChange event and initialize a reflow of the ListView.
78
+ */
79
+ raiseOnChange(): void;
71
80
  }
72
81
 
73
82
  /**
@@ -170,6 +179,8 @@ export declare class FieldCustomizerContext extends ExtensionContext {
170
179
  get field(): SPField;
171
180
  }
172
181
 
182
+ /* Excluded from this release type: IColumn */
183
+
173
184
  /* Excluded from this release type: _IExtensionContextParameters */
174
185
 
175
186
  /**
@@ -204,6 +215,14 @@ export declare interface IFieldCustomizerCellEventParameters {
204
215
 
205
216
  /* Excluded from this release type: _IFieldCustomizerContextParameters */
206
217
 
218
+ /* Excluded from this release type: IFilter */
219
+
220
+ /* Excluded from this release type: IFolderInfo */
221
+
222
+ /* Excluded from this release type: IList */
223
+
224
+ /* Excluded from this release type: IListViewAccessorState */
225
+
207
226
  /* Excluded from this release type: _IListViewCommandSetContextParameters */
208
227
 
209
228
  /**
@@ -235,6 +254,10 @@ export declare interface IListViewCommandSetListViewUpdatedParameters {
235
254
  readonly selectedRows: ReadonlyArray<RowAccessor>;
236
255
  }
237
256
 
257
+ /* Excluded from this release type: IRow */
258
+
259
+ /* Excluded from this release type: IView */
260
+
238
261
  /**
239
262
  * When a field customizer extension is rendering a field, the ListItemAccessor provides
240
263
  * access to the associated SharePoint list item.
@@ -280,14 +303,26 @@ export declare abstract class ListItemAccessor {
280
303
  *
281
304
  * @public
282
305
  */
283
- export declare abstract class ListViewAccessor {
306
+ export declare abstract class ListViewAccessor implements IDisposable {
284
307
  /* Excluded from this release type: _selectedRowsChangedEventName */
308
+ /* Excluded from this release type: _listViewStateChangedEventName */
285
309
  private _selectedRowsChangedEvent;
310
+ private _listViewStateChangedEvent;
311
+ private readonly _listViewStateChangedEventName;
312
+ private _isDisposed;
286
313
  /* Excluded from this release type: __constructor */
287
314
  /**
288
315
  * The columns in associated with this view, including hidden columns.
289
316
  */
290
317
  abstract get columns(): ReadonlyArray<ColumnAccessor>;
318
+ /* Excluded from this release type: rows */
319
+ /* Excluded from this release type: selectedRows */
320
+ /* Excluded from this release type: list */
321
+ /* Excluded from this release type: view */
322
+ /* Excluded from this release type: folderInfo */
323
+ /* Excluded from this release type: appliedFilters */
324
+ /* Excluded from this release type: sortField */
325
+ /* Excluded from this release type: sortAscending */
291
326
  /**
292
327
  * Returns the list view column corresponding to the field with the specified internal name,
293
328
  * or undefined if none is found.
@@ -298,8 +333,13 @@ export declare abstract class ListViewAccessor {
298
333
  * @eventproperty
299
334
  */
300
335
  get selectedRowsChangedEvent(): SPEvent<SelectedRowsChangedEventArgs>;
336
+ /* Excluded from this release type: listViewStateChangedEvent */
337
+ /* Excluded from this release type: dispose */
338
+ /* Excluded from this release type: isDisposed */
301
339
  }
302
340
 
341
+ /* Excluded from this release type: ListViewAccessorStateChanges */
342
+
303
343
  /**
304
344
  * This object provides contextual information for BaseListViewCommandSet.
305
345
  * @public
@@ -319,6 +359,8 @@ export declare class ListViewCommandSetContext extends ExtensionContext {
319
359
  /* Excluded from this release type: _commands */
320
360
  }
321
361
 
362
+ /* Excluded from this release type: ListViewStateChangedEventArgs */
363
+
322
364
  /**
323
365
  * Provides access to a ListView row, which is the visual presentation
324
366
  * of a SharePoint list item.
@@ -6,7 +6,9 @@
6
6
 
7
7
  import { BaseExtension } from '@microsoft/sp-extension-base';
8
8
  import { ExtensionContext } from '@microsoft/sp-extension-base';
9
+ import { Guid } from '@microsoft/sp-core-library';
9
10
  import { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
11
+ import { IDisposable } from '@microsoft/sp-core-library';
10
12
  import { SPEvent } from '@microsoft/sp-core-library';
11
13
  import { SPEventArgs } from '@microsoft/sp-core-library';
12
14
  import { SPField } from '@microsoft/sp-page-context';
@@ -48,6 +50,7 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
48
50
  * {@inheritDoc @microsoft/sp-extension-base#BaseExtension.context}
49
51
  */
50
52
  readonly context: ListViewCommandSetContext;
53
+ /* Excluded from this release type: _raiseOnChange */
51
54
  /* Excluded from this release type: __constructor */
52
55
  /**
53
56
  * Returns the command with the given id.
@@ -60,6 +63,8 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
60
63
  * virtual
61
64
  * @remarks
62
65
  * This event allows the implementor to tailor the visibility of the command.
66
+ *
67
+ * @deprecated Use context.listView.listViewStateChangedEvent instead.
63
68
  */
64
69
  onListViewUpdated(event: IListViewCommandSetListViewUpdatedParameters): void;
65
70
  /**
@@ -68,6 +73,10 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
68
73
  * virtual
69
74
  */
70
75
  onExecute(event: IListViewCommandSetExecuteEventParameters): void;
76
+ /**
77
+ * Use this method to fire OnChange event and initialize a reflow of the ListView.
78
+ */
79
+ raiseOnChange(): void;
71
80
  }
72
81
 
73
82
  /**
@@ -170,6 +179,50 @@ export declare class FieldCustomizerContext extends ExtensionContext {
170
179
  get field(): SPField;
171
180
  }
172
181
 
182
+ /**
183
+ * Provides information about the state of a column in the list view
184
+ *
185
+ * @beta
186
+ */
187
+ export declare interface IColumn {
188
+ /**
189
+ * The GUID identifier for this field.
190
+ */
191
+ readonly id: Guid;
192
+ /**
193
+ * The internal name of the field. This name is usually used to find the field.
194
+ */
195
+ readonly internalName: string;
196
+ /**
197
+ * The type of the field represented as a string
198
+ */
199
+ readonly fieldType: string;
200
+ /**
201
+ * Whether the field is required for each list item in the list
202
+ */
203
+ readonly isRequired: boolean;
204
+ /**
205
+ * Whether the column is visible in the view
206
+ */
207
+ readonly isVisible: boolean;
208
+ /**
209
+ * The display name of the field. This name is shown as column name in UI.
210
+ */
211
+ readonly displayName: string;
212
+ /**
213
+ * The unique identifier of the client-side component associated with the field.
214
+ */
215
+ readonly clientSideComponentId: Guid | undefined;
216
+ /**
217
+ * This property is only used when a `ClientSideComponentId` is specified. It is optional.
218
+ *
219
+ * @remarks
220
+ * If non-empty, the string must contain a JSON object with custom initialization properties
221
+ * whose format and meaning are defined by the client-side component.
222
+ */
223
+ readonly clientSideComponentProperties: string;
224
+ }
225
+
173
226
  /* Excluded from this release type: _IExtensionContextParameters */
174
227
 
175
228
  /**
@@ -204,6 +257,100 @@ export declare interface IFieldCustomizerCellEventParameters {
204
257
 
205
258
  /* Excluded from this release type: _IFieldCustomizerContextParameters */
206
259
 
260
+ /**
261
+ * Provides information about the state of the filters applied to the ListView.
262
+ *
263
+ * @beta
264
+ */
265
+ export declare interface IFilter {
266
+ /**
267
+ * Field name to filter on.
268
+ */
269
+ readonly fieldName: string;
270
+ /**
271
+ * Values to filter on.
272
+ */
273
+ values: ReadonlyArray<string>;
274
+ }
275
+
276
+ /**
277
+ * Provides information about the state of the folder in the ListView.
278
+ *
279
+ * @beta
280
+ */
281
+ export declare interface IFolderInfo {
282
+ /**
283
+ * Folder path.
284
+ */
285
+ readonly folderPath: string;
286
+ }
287
+
288
+ /**
289
+ * Provides information about the list rendered by the ListView.
290
+ *
291
+ * @beta
292
+ */
293
+ export declare interface IList {
294
+ /**
295
+ * List id.
296
+ */
297
+ readonly guid: Guid;
298
+ /**
299
+ * List title.
300
+ */
301
+ readonly title: string;
302
+ /**
303
+ * List server relative url.
304
+ */
305
+ readonly serverRelativeUrl: string;
306
+ }
307
+
308
+ /**
309
+ * Provides information about the state of the ListView.
310
+ *
311
+ * @beta
312
+ */
313
+ export declare interface IListViewAccessorState {
314
+ /**
315
+ * List information.
316
+ */
317
+ readonly list?: IList;
318
+ /**
319
+ * View information.
320
+ */
321
+ readonly view?: IView;
322
+ /**
323
+ * Current folder information.
324
+ */
325
+ readonly folderInfo?: IFolderInfo;
326
+ /**
327
+ * Columns information.
328
+ */
329
+ readonly columns: ReadonlyArray<IColumn>;
330
+ /**
331
+ * Selected rows information.
332
+ */
333
+ readonly selectedRows?: ReadonlyArray<IRow>;
334
+ /**
335
+ * Rows information.
336
+ */
337
+ readonly rows: ReadonlyArray<IRow>;
338
+ /**
339
+ * Applied filters information.
340
+ */
341
+ readonly appliedFilters?: {
342
+ [fieldName: string]: IFilter;
343
+ };
344
+ /**
345
+ * Sort field name.
346
+ */
347
+ readonly sortField?: string;
348
+ /**
349
+ * Sort direction.
350
+ */
351
+ readonly sortAscending?: boolean;
352
+ }
353
+
207
354
  /* Excluded from this release type: _IListViewCommandSetContextParameters */
208
355
 
209
356
  /**
@@ -235,6 +382,41 @@ export declare interface IListViewCommandSetListViewUpdatedParameters {
235
382
  readonly selectedRows: ReadonlyArray<RowAccessor>;
236
383
  }
237
384
 
385
+ /**
386
+ * Provides information about the list item's state rendered by the ListView.
387
+ *
388
+ * @beta
389
+ */
390
+ export declare interface IRow {
391
+ /**
392
+ * A map of column values for the row. They key is the column internal name and the value
393
+ * is its corresponding value in the row.
394
+ */
395
+ readonly values: {
396
+ [columnInternalName: string]: Readonly<any>;
397
+ };
398
+ }
399
+
400
+ /**
401
+ * Provides information about the view rendered by the ListView.
402
+ *
403
+ * @beta
404
+ */
405
+ export declare interface IView {
406
+ /**
407
+ * View id.
408
+ */
409
+ readonly id: Guid;
410
+ /**
411
+ * View title.
412
+ */
413
+ readonly title: string;
414
+ /**
415
+ * View server relative url.
416
+ */
417
+ readonly url: string;
418
+ }
419
+
238
420
  /**
239
421
  * When a field customizer extension is rendering a field, the ListItemAccessor provides
240
422
  * access to the associated SharePoint list item.
@@ -280,14 +462,68 @@ export declare abstract class ListItemAccessor {
280
462
  *
281
463
  * @public
282
464
  */
283
- export declare abstract class ListViewAccessor {
465
+ export declare abstract class ListViewAccessor implements IDisposable {
284
466
  /* Excluded from this release type: _selectedRowsChangedEventName */
467
+ /* Excluded from this release type: _listViewStateChangedEventName */
285
468
  private _selectedRowsChangedEvent;
469
+ private _listViewStateChangedEvent;
470
+ private readonly _listViewStateChangedEventName;
471
+ private _isDisposed;
286
472
  /* Excluded from this release type: __constructor */
287
473
  /**
288
474
  * The columns in associated with this view, including hidden columns.
289
475
  */
290
476
  abstract get columns(): ReadonlyArray<ColumnAccessor>;
477
+ /**
478
+ * Currently rendered rows in the list view.
479
+ *
480
+ * @beta
481
+ */
482
+ abstract get rows(): ReadonlyArray<RowAccessor>;
483
+ /**
484
+ * Selected rows in the list view.
485
+ *
486
+ * @beta
487
+ */
488
+ abstract get selectedRows(): ReadonlyArray<RowAccessor> | undefined;
489
+ /**
490
+ * Basic information about the list rendered by the list view.
491
+ *
492
+ * @beta
493
+ */
494
+ abstract get list(): IList | undefined;
495
+ /**
496
+ * Basic information about the view rendered by the list view.
497
+ *
498
+ * @beta
499
+ */
500
+ abstract get view(): IView | undefined;
501
+ /**
502
+ * Folder information for the list view.
503
+ *
504
+ * @beta
505
+ */
506
+ abstract get folderInfo(): IFolderInfo | undefined;
507
+ /**
508
+ * Filters applied to the list view.
509
+ *
510
+ * @beta
511
+ */
512
+ abstract get appliedFilters(): {
513
+ [fieldName: string]: IFilter;
514
+ } | undefined;
515
+ /**
516
+ * Sort field name
517
+ *
518
+ * @beta
519
+ */
520
+ abstract get sortField(): string | undefined;
521
+ /**
522
+ * Specifies whether the list view is sorted ascending or descending.
523
+ *
524
+ * @beta
525
+ */
526
+ abstract get sortAscending(): boolean | undefined;
291
527
  /**
292
528
  * Returns the list view column corresponding to the field with the specified internal name,
293
529
  * or undefined if none is found.
@@ -298,6 +534,32 @@ export declare abstract class ListViewAccessor {
298
534
  * @eventproperty
299
535
  */
300
536
  get selectedRowsChangedEvent(): SPEvent<SelectedRowsChangedEventArgs>;
537
+ /**
538
+ * Event that gets raised every time the list view state changes.
539
+ *
540
+ * @beta
541
+ * @eventproperty
542
+ */
543
+ get listViewStateChangedEvent(): SPEvent<ListViewStateChangedEventArgs>;
544
+ /* Excluded from this release type: dispose */
545
+ /* Excluded from this release type: isDisposed */
546
+ }
547
+
548
+ /**
549
+ * Describes the type of list view state changes.
550
+ *
551
+ * @beta
552
+ */
553
+ export declare enum ListViewAccessorStateChanges {
554
+ None = 0,
555
+ List = 1,
556
+ View = 2,
557
+ Columns = 4,
558
+ SelectedRows = 8,
559
+ Rows = 16,
560
+ AppliedFilters = 32,
561
+ Sort = 64,
562
+ FolderInfo = 128
301
563
  }
302
564
 
303
565
  /**
@@ -319,6 +581,22 @@ export declare class ListViewCommandSetContext extends ExtensionContext {
319
581
  /* Excluded from this release type: _commands */
320
582
  }
321
583
 
584
+ /**
585
+ * Arguments for the list view state changed event.
586
+ *
587
+ * @beta
588
+ */
589
+ export declare class ListViewStateChangedEventArgs extends SPEventArgs {
590
+ /**
591
+ * Previous state of the ListView.
592
+ */
593
+ prevState: Readonly<IListViewAccessorState>;
594
+ /**
595
+ * Changes that were made to the ListView state.
596
+ */
597
+ stateChanges: ListViewAccessorStateChanges;
598
+ }
599
+
322
600
  /**
323
601
  * Provides access to a ListView row, which is the visual presentation
324
602
  * of a SharePoint list item.
@@ -0,0 +1 @@
1
+ define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.14.0",["tslib","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/sp-extension-base"],function(n,a,i,r){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="mwqp")}({"17wl":function(e,t){e.exports=n},UWqr:function(e,t){e.exports=a},"X+PM":function(e,t){e.exports=i},ZFc5:function(e,t){e.exports=r},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"BaseListViewCommandSet",function(){return s}),n.d(t,"Command",function(){return c}),n.d(t,"ListViewCommandSetContext",function(){return l}),n.d(t,"BaseFieldCustomizer",function(){return f}),n.d(t,"FieldCustomizerContext",function(){return p}),n.d(t,"ListItemAccessor",function(){return m}),n.d(t,"ColumnAccessor",function(){return _}),n.d(t,"RowAccessor",function(){return h}),n.d(t,"SelectedRowsChangedEventArgs",function(){return b}),n.d(t,"ListViewStateChangedEventArgs",function(){return g}),n.d(t,"ListViewAccessor",function(){return v}),n.d(t,"ListViewAccessorStateChanges",function(){return a});var a,i=n("17wl"),r=n("UWqr"),o=n("ZFc5"),s=function(e){function t(){var t=e.call(this)||this;return t._raiseOnChange=void 0,t}return Object(i.__extends)(t,e),t.prototype.tryGetCommand=function(e){return r.Validate.isNonemptyString(e,"id"),this.context._commands.filter(function(t){return t.id===e})[0]},t.prototype.onListViewUpdated=function(e){},t.prototype.onExecute=function(e){},t.prototype.raiseOnChange=function(){this._raiseOnChange&&this._raiseOnChange()},t}(o.BaseExtension),c=function(){},d=n("X+PM"),l=function(e){function t(t,n){var a=e.call(this,t)||this;a._listView=n.listView,a._commandArray=[];for(var i=a.manifest.items,o=0,s=Object.keys(i);o<s.length;o++){var c=s[o];if("command"===i[c].type){var l=i[c].iconImageUrl;l&&!r.UrlUtilities.isDataUrl(l)&&(l=r.UrlUtilities.resolve(l,a.manifest.loaderConfig.internalModuleBaseUrls[0])),a._commandArray.push({id:c,title:i[c].title.default||"",ariaLabel:i[c].ariaLabel?i[c].ariaLabel.default:void 0,iconImageUrl:l,visible:!0})}}return!r._SPKillSwitch.isActivated("38c1f92c-5240-42ea-9c8c-8485ae721247")&&a._commandArray.length&&a.serviceScope.whenFinished(function(){var e=a.serviceScope.consume(d.PageContext.serviceKey).cultureInfo.currentUICultureName;a._commandArray.forEach(function(t){var n=i[t.id];t.title=r.Text._getLocalizedString(n.title,e)||"",n.ariaLabel&&(t.ariaLabel=r.Text._getLocalizedString(n.ariaLabel,e))})}),a}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"listView",{get:function(){return this._listView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_commands",{get:function(){return this._commandArray},enumerable:!1,configurable:!0}),t}(o.ExtensionContext),u=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t.prototype.onRenderCell=function(e){var t=""+e.fieldValue;e.fieldValue.innerText=t},t.prototype.onDisposeCell=function(e){},t}(o.BaseExtension),f=u,p=function(e){function t(t,n){var a=e.call(this,t)||this;return a._listView=n.listView,a._field=n.field,a}return Object(i.__extends)(t,e),t.prototype.tryGetListView=function(){return this._listView},Object.defineProperty(t.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),t}(o.ExtensionContext),m=function(){},_=function(){},h=function(e){function t(){return e.call(this)||this}return Object(i.__extends)(t,e),t}(m),b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(r.SPEventArgs),g=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(r.SPEventArgs),v=function(){function e(t){this._isDisposed=!1,this._selectedRowsChangedEvent=new r.SPEvent(e._selectedRowsChangedEventName),this._listViewStateChangedEventName=""+e._listViewStateChangedEventName+(t||""),this._listViewStateChangedEvent=new r.SPEvent(this._listViewStateChangedEventName)}return Object.defineProperty(e.prototype,"selectedRowsChangedEvent",{get:function(){return this._selectedRowsChangedEvent},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"listViewStateChangedEvent",{get:function(){return this._listViewStateChangedEvent},enumerable:!1,configurable:!0}),e.prototype.dispose=function(){r._SPEventManager.instance.removeEvent(this._listViewStateChangedEventName),this._isDisposed=!0},Object.defineProperty(e.prototype,"isDisposed",{get:function(){return this._isDisposed},enumerable:!1,configurable:!0}),e._selectedRowsChangedEventName="listView.selectedRowsChanged",e._listViewStateChangedEventName="listView.stateChanged",e}();!function(e){e[e.None=0]="None",e[e.List=1]="List",e[e.View=2]="View",e[e.Columns=4]="Columns",e[e.SelectedRows=8]="SelectedRows",e[e.Rows=16]="Rows",e[e.AppliedFilters=32]="AppliedFilters",e[e.Sort=64]="Sort",e[e.FolderInfo=128]="FolderInfo"}(a||(a={}))}})});
@@ -5,7 +5,7 @@
5
5
  "toolPackages": [
6
6
  {
7
7
  "packageName": "@microsoft/api-extractor",
8
- "packageVersion": "7.18.15"
8
+ "packageVersion": "7.19.4"
9
9
  }
10
10
  ]
11
11
  }
@@ -23,7 +23,12 @@ var BaseListViewCommandSet = /** @class */ (function (_super) {
23
23
  * @internal
24
24
  */
25
25
  function BaseListViewCommandSet() {
26
- return _super.call(this) || this;
26
+ var _this = _super.call(this) || this;
27
+ /**
28
+ * @internal
29
+ */
30
+ _this._raiseOnChange = undefined; // provided by Command set adapter
31
+ return _this;
27
32
  }
28
33
  /**
29
34
  * Returns the command with the given id.
@@ -40,6 +45,8 @@ var BaseListViewCommandSet = /** @class */ (function (_super) {
40
45
  * virtual
41
46
  * @remarks
42
47
  * This event allows the implementor to tailor the visibility of the command.
48
+ *
49
+ * @deprecated Use context.listView.listViewStateChangedEvent instead.
43
50
  */
44
51
  BaseListViewCommandSet.prototype.onListViewUpdated = function (event) {
45
52
  // (implemented by child class)
@@ -52,6 +59,14 @@ var BaseListViewCommandSet = /** @class */ (function (_super) {
52
59
  BaseListViewCommandSet.prototype.onExecute = function (event) {
53
60
  // (implemented by child class)
54
61
  };
62
+ /**
63
+ * Use this method to fire OnChange event and initialize a reflow of the ListView.
64
+ */
65
+ BaseListViewCommandSet.prototype.raiseOnChange = function () {
66
+ if (this._raiseOnChange) {
67
+ this._raiseOnChange();
68
+ }
69
+ };
55
70
  return BaseListViewCommandSet;
56
71
  }(sp_extension_base_1.BaseExtension));
57
72
  exports.default = BaseListViewCommandSet;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.SelectedRowsChangedEventArgs = exports.RowAccessor = exports.ColumnAccessor = void 0;
3
+ exports.ListViewStateChangedEventArgs = exports.SelectedRowsChangedEventArgs = exports.RowAccessor = exports.ColumnAccessor = void 0;
4
4
  var tslib_1 = require("tslib");
5
5
  var sp_core_library_1 = require("@microsoft/sp-core-library");
6
6
  var ListItemAccessor_1 = tslib_1.__importDefault(require("./ListItemAccessor"));
@@ -63,6 +63,19 @@ var SelectedRowsChangedEventArgs = /** @class */ (function (_super) {
63
63
  return SelectedRowsChangedEventArgs;
64
64
  }(sp_core_library_1.SPEventArgs));
65
65
  exports.SelectedRowsChangedEventArgs = SelectedRowsChangedEventArgs;
66
+ /**
67
+ * Arguments for the list view state changed event.
68
+ *
69
+ * @beta
70
+ */
71
+ var ListViewStateChangedEventArgs = /** @class */ (function (_super) {
72
+ tslib_1.__extends(ListViewStateChangedEventArgs, _super);
73
+ function ListViewStateChangedEventArgs() {
74
+ return _super !== null && _super.apply(this, arguments) || this;
75
+ }
76
+ return ListViewStateChangedEventArgs;
77
+ }(sp_core_library_1.SPEventArgs));
78
+ exports.ListViewStateChangedEventArgs = ListViewStateChangedEventArgs;
66
79
  /**
67
80
  * Provides access to a SharePoint ListView control.
68
81
  *
@@ -72,8 +85,11 @@ var ListViewAccessor = /** @class */ (function () {
72
85
  /**
73
86
  * @internal
74
87
  */
75
- function ListViewAccessor() {
88
+ function ListViewAccessor(eventPrefix) {
89
+ this._isDisposed = false;
76
90
  this._selectedRowsChangedEvent = new sp_core_library_1.SPEvent(ListViewAccessor._selectedRowsChangedEventName);
91
+ this._listViewStateChangedEventName = "" + ListViewAccessor._listViewStateChangedEventName + (eventPrefix || '');
92
+ this._listViewStateChangedEvent = new sp_core_library_1.SPEvent(this._listViewStateChangedEventName);
77
93
  }
78
94
  Object.defineProperty(ListViewAccessor.prototype, "selectedRowsChangedEvent", {
79
95
  /**
@@ -86,11 +102,48 @@ var ListViewAccessor = /** @class */ (function () {
86
102
  enumerable: false,
87
103
  configurable: true
88
104
  });
105
+ Object.defineProperty(ListViewAccessor.prototype, "listViewStateChangedEvent", {
106
+ /**
107
+ * Event that gets raised every time the list view state changes.
108
+ *
109
+ * @beta
110
+ * @eventproperty
111
+ */
112
+ get: function () {
113
+ return this._listViewStateChangedEvent;
114
+ },
115
+ enumerable: false,
116
+ configurable: true
117
+ });
118
+ /**
119
+ * @internal
120
+ */
121
+ ListViewAccessor.prototype.dispose = function () {
122
+ sp_core_library_1._SPEventManager.instance.removeEvent(this._listViewStateChangedEventName);
123
+ this._isDisposed = true;
124
+ };
125
+ Object.defineProperty(ListViewAccessor.prototype, "isDisposed", {
126
+ /**
127
+ * @internal
128
+ */
129
+ get: function () {
130
+ return this._isDisposed;
131
+ },
132
+ enumerable: false,
133
+ configurable: true
134
+ });
89
135
  /**
90
136
  * SPEvent name when the selected rows in a list have changed.
137
+ *
91
138
  * @internal
92
139
  */
93
140
  ListViewAccessor._selectedRowsChangedEventName = 'listView.selectedRowsChanged';
141
+ /**
142
+ * SPEvent name when the list view state has changed.
143
+ *
144
+ * @internal
145
+ */
146
+ ListViewAccessor._listViewStateChangedEventName = 'listView.stateChanged';
94
147
  return ListViewAccessor;
95
148
  }());
96
149
  exports.default = ListViewAccessor;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListViewAccessorStateChanges = void 0;
4
+ /**
5
+ * Describes the type of list view state changes.
6
+ *
7
+ * @beta
8
+ */
9
+ var ListViewAccessorStateChanges;
10
+ (function (ListViewAccessorStateChanges) {
11
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["None"] = 0] = "None";
12
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["List"] = 1] = "List";
13
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["View"] = 2] = "View";
14
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["Columns"] = 4] = "Columns";
15
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["SelectedRows"] = 8] = "SelectedRows";
16
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["Rows"] = 16] = "Rows";
17
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["AppliedFilters"] = 32] = "AppliedFilters";
18
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["Sort"] = 64] = "Sort";
19
+ ListViewAccessorStateChanges[ListViewAccessorStateChanges["FolderInfo"] = 128] = "FolderInfo";
20
+ })(ListViewAccessorStateChanges = exports.ListViewAccessorStateChanges || (exports.ListViewAccessorStateChanges = {}));
21
+ //# sourceMappingURL=ListViewAccessorState.js.map
@@ -21,5 +21,8 @@ var ListViewAccessor_1 = require("./common/ListViewAccessor");
21
21
  Object.defineProperty(exports, "ColumnAccessor", { enumerable: true, get: function () { return ListViewAccessor_1.ColumnAccessor; } });
22
22
  Object.defineProperty(exports, "RowAccessor", { enumerable: true, get: function () { return ListViewAccessor_1.RowAccessor; } });
23
23
  Object.defineProperty(exports, "SelectedRowsChangedEventArgs", { enumerable: true, get: function () { return ListViewAccessor_1.SelectedRowsChangedEventArgs; } });
24
+ Object.defineProperty(exports, "ListViewStateChangedEventArgs", { enumerable: true, get: function () { return ListViewAccessor_1.ListViewStateChangedEventArgs; } });
24
25
  Object.defineProperty(exports, "ListViewAccessor", { enumerable: true, get: function () { return ListViewAccessor_1.default; } });
26
+ var ListViewAccessorState_1 = require("./common/ListViewAccessorState");
27
+ Object.defineProperty(exports, "ListViewAccessorStateChanges", { enumerable: true, get: function () { return ListViewAccessorState_1.ListViewAccessorStateChanges; } });
25
28
  //# sourceMappingURL=index.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/sp-listview-extensibility",
3
- "version": "1.14.0-beta.4",
3
+ "version": "1.14.0-beta.5",
4
4
  "description": "SharePoint Framework developer support for customizing the list view",
5
5
  "license": "UNLICENSED",
6
6
  "main": "lib-commonjs/index.js",
@@ -10,10 +10,10 @@
10
10
  "tsdocFlavor": "AEDoc"
11
11
  },
12
12
  "dependencies": {
13
- "@microsoft/sp-core-library": "1.14.0-beta.4",
14
- "@microsoft/sp-extension-base": "1.14.0-beta.4",
15
- "@microsoft/sp-module-interfaces": "1.14.0-beta.4",
16
- "@microsoft/sp-page-context": "1.14.0-beta.4",
13
+ "@microsoft/sp-core-library": "1.14.0-beta.5",
14
+ "@microsoft/sp-extension-base": "1.14.0-beta.5",
15
+ "@microsoft/sp-module-interfaces": "1.14.0-beta.5",
16
+ "@microsoft/sp-page-context": "1.14.0-beta.5",
17
17
  "tslib": "~1.10.0"
18
18
  },
19
19
  "scripts": {},
@@ -1 +0,0 @@
1
- define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.14.0",["tslib","@microsoft/sp-core-library","@microsoft/sp-page-context","@microsoft/sp-extension-base"],function(n,a,i,r){return function(e){var t={};function n(a){if(t[a])return t[a].exports;var i=t[a]={i:a,l:!1,exports:{}};return e[a].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,a){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(a,i,function(t){return e[t]}.bind(null,i));return a},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="mwqp")}({"17wl":function(e,t){e.exports=n},UWqr:function(e,t){e.exports=a},"X+PM":function(e,t){e.exports=i},ZFc5:function(e,t){e.exports=r},mwqp:function(e,t,n){"use strict";n.r(t),n.d(t,"BaseListViewCommandSet",function(){return o}),n.d(t,"Command",function(){return s}),n.d(t,"ListViewCommandSetContext",function(){return d}),n.d(t,"BaseFieldCustomizer",function(){return l}),n.d(t,"FieldCustomizerContext",function(){return u}),n.d(t,"ListItemAccessor",function(){return f}),n.d(t,"ColumnAccessor",function(){return p}),n.d(t,"RowAccessor",function(){return m}),n.d(t,"SelectedRowsChangedEventArgs",function(){return _}),n.d(t,"ListViewAccessor",function(){return h});var a=n("17wl"),i=n("UWqr"),r=n("ZFc5"),o=function(e){function t(){return e.call(this)||this}return Object(a.__extends)(t,e),t.prototype.tryGetCommand=function(e){return i.Validate.isNonemptyString(e,"id"),this.context._commands.filter(function(t){return t.id===e})[0]},t.prototype.onListViewUpdated=function(e){},t.prototype.onExecute=function(e){},t}(r.BaseExtension),s=function(){},c=n("X+PM"),d=function(e){function t(t,n){var a=e.call(this,t)||this;a._listView=n.listView,a._commandArray=[];for(var r=a.manifest.items,o=0,s=Object.keys(r);o<s.length;o++){var d=s[o];if("command"===r[d].type){var l=r[d].iconImageUrl;l&&!i.UrlUtilities.isDataUrl(l)&&(l=i.UrlUtilities.resolve(l,a.manifest.loaderConfig.internalModuleBaseUrls[0])),a._commandArray.push({id:d,title:r[d].title.default||"",ariaLabel:r[d].ariaLabel?r[d].ariaLabel.default:void 0,iconImageUrl:l,visible:!0})}}return!i._SPKillSwitch.isActivated("38c1f92c-5240-42ea-9c8c-8485ae721247")&&a._commandArray.length&&a.serviceScope.whenFinished(function(){var e=a.serviceScope.consume(c.PageContext.serviceKey).cultureInfo.currentUICultureName;a._commandArray.forEach(function(t){var n=r[t.id];t.title=i.Text._getLocalizedString(n.title,e)||"",n.ariaLabel&&(t.ariaLabel=i.Text._getLocalizedString(n.ariaLabel,e))})}),a}return Object(a.__extends)(t,e),Object.defineProperty(t.prototype,"listView",{get:function(){return this._listView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_commands",{get:function(){return this._commandArray},enumerable:!1,configurable:!0}),t}(r.ExtensionContext),l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t.prototype.onRenderCell=function(e){var t=""+e.fieldValue;e.fieldValue.innerText=t},t.prototype.onDisposeCell=function(e){},t}(r.BaseExtension),u=function(e){function t(t,n){var a=e.call(this,t)||this;return a._listView=n.listView,a._field=n.field,a}return Object(a.__extends)(t,e),t.prototype.tryGetListView=function(){return this._listView},Object.defineProperty(t.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),t}(r.ExtensionContext),f=function(){},p=function(){},m=function(e){function t(){return e.call(this)||this}return Object(a.__extends)(t,e),t}(f),_=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(a.__extends)(t,e),t}(i.SPEventArgs),h=function(){function e(){this._selectedRowsChangedEvent=new i.SPEvent(e._selectedRowsChangedEventName)}return Object.defineProperty(e.prototype,"selectedRowsChangedEvent",{get:function(){return this._selectedRowsChangedEvent},enumerable:!1,configurable:!0}),e._selectedRowsChangedEventName="listView.selectedRowsChanged",e}()}})});