@microsoft/sp-listview-extensibility 1.22.0-beta.4 → 1.22.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.
@@ -13,8 +13,8 @@
13
13
  "sp-listview-extensibility": {
14
14
  "type": "path",
15
15
  "path": {
16
- "path": "sp-listview-extensibility_none_143ae285615d592c60f9.js",
17
- "integrity": "sha256-Sr0xzgCXk7TM9SMFstQNC5efcz5+CtKk5n2WVVq0ZVI="
16
+ "path": "sp-listview-extensibility_none_d3c5791c076e246aae6b.js",
17
+ "integrity": "sha256-b4dHIB47Uq3+HTSO6mXG6sI8h8QoXtOO/nmqr9Maob0="
18
18
  }
19
19
  },
20
20
  "tslib": {
@@ -242,9 +242,9 @@ export declare class FieldCustomizerContext extends ExtensionContext {
242
242
  get field(): SPField;
243
243
  }
244
244
 
245
- /* Excluded from this release type: FormAction */
245
+ /* Excluded from this release type: _FormAction */
246
246
 
247
- /* Excluded from this release type: FormActionEventArgs */
247
+ /* Excluded from this release type: _FormActionEventArgs */
248
248
 
249
249
  /**
250
250
  * Form Customizer Context. This object contains contextual services and properties for the form.
@@ -259,7 +259,7 @@ export declare class FormCustomizerContext extends ExtensionContext implements I
259
259
  private _item;
260
260
  private _domElement;
261
261
  private _formCustomizerHost;
262
- constructor(extensionContextParameters: _IExtensionContextParameters, formCustomizerContextParameters: _IFormCustomizerContextParameters);
262
+ /* Excluded from this release type: __constructor */
263
263
  /**
264
264
  * The list associated with the form.
265
265
  */
@@ -287,7 +287,7 @@ export declare class FormCustomizerContext extends ExtensionContext implements I
287
287
  /* Excluded from this release type: _host */
288
288
  }
289
289
 
290
- /* Excluded from this release type: FormCustomizerHost */
290
+ /* Excluded from this release type: _FormCustomizerHost */
291
291
 
292
292
  /* Excluded from this release type: _IAdditionalInitParameters */
293
293
 
@@ -457,7 +457,7 @@ export declare interface IFormCustomizerContext {
457
457
 
458
458
  /* Excluded from this release type: _IFormCustomizerContextParameters */
459
459
 
460
- /* Excluded from this release type: IFormCustomizerHostParameters */
460
+ /* Excluded from this release type: _IFormCustomizerHostParameters */
461
461
 
462
462
  /**
463
463
  * Provides information about the list rendered by the ListView.
@@ -242,9 +242,9 @@ export declare class FieldCustomizerContext extends ExtensionContext {
242
242
  get field(): SPField;
243
243
  }
244
244
 
245
- /* Excluded from this release type: FormAction */
245
+ /* Excluded from this release type: _FormAction */
246
246
 
247
- /* Excluded from this release type: FormActionEventArgs */
247
+ /* Excluded from this release type: _FormActionEventArgs */
248
248
 
249
249
  /**
250
250
  * Form Customizer Context. This object contains contextual services and properties for the form.
@@ -259,7 +259,7 @@ export declare class FormCustomizerContext extends ExtensionContext implements I
259
259
  private _item;
260
260
  private _domElement;
261
261
  private _formCustomizerHost;
262
- constructor(extensionContextParameters: _IExtensionContextParameters, formCustomizerContextParameters: _IFormCustomizerContextParameters);
262
+ /* Excluded from this release type: __constructor */
263
263
  /**
264
264
  * The list associated with the form.
265
265
  */
@@ -287,7 +287,7 @@ export declare class FormCustomizerContext extends ExtensionContext implements I
287
287
  /* Excluded from this release type: _host */
288
288
  }
289
289
 
290
- /* Excluded from this release type: FormCustomizerHost */
290
+ /* Excluded from this release type: _FormCustomizerHost */
291
291
 
292
292
  /* Excluded from this release type: _IAdditionalInitParameters */
293
293
 
@@ -457,7 +457,7 @@ export declare interface IFormCustomizerContext {
457
457
 
458
458
  /* Excluded from this release type: _IFormCustomizerContextParameters */
459
459
 
460
- /* Excluded from this release type: IFormCustomizerHostParameters */
460
+ /* Excluded from this release type: _IFormCustomizerHostParameters */
461
461
 
462
462
  /**
463
463
  * Provides information about the list rendered by the ListView.
@@ -242,9 +242,9 @@ export declare class FieldCustomizerContext extends ExtensionContext {
242
242
  get field(): SPField;
243
243
  }
244
244
 
245
- /* Excluded from this release type: FormAction */
245
+ /* Excluded from this release type: _FormAction */
246
246
 
247
- /* Excluded from this release type: FormActionEventArgs */
247
+ /* Excluded from this release type: _FormActionEventArgs */
248
248
 
249
249
  /**
250
250
  * Form Customizer Context. This object contains contextual services and properties for the form.
@@ -259,7 +259,7 @@ export declare class FormCustomizerContext extends ExtensionContext implements I
259
259
  private _item;
260
260
  private _domElement;
261
261
  private _formCustomizerHost;
262
- constructor(extensionContextParameters: _IExtensionContextParameters, formCustomizerContextParameters: _IFormCustomizerContextParameters);
262
+ /* Excluded from this release type: __constructor */
263
263
  /**
264
264
  * The list associated with the form.
265
265
  */
@@ -287,7 +287,7 @@ export declare class FormCustomizerContext extends ExtensionContext implements I
287
287
  /* Excluded from this release type: _host */
288
288
  }
289
289
 
290
- /* Excluded from this release type: FormCustomizerHost */
290
+ /* Excluded from this release type: _FormCustomizerHost */
291
291
 
292
292
  /* Excluded from this release type: _IAdditionalInitParameters */
293
293
 
@@ -457,7 +457,7 @@ export declare interface IFormCustomizerContext {
457
457
 
458
458
  /* Excluded from this release type: _IFormCustomizerContextParameters */
459
459
 
460
- /* Excluded from this release type: IFormCustomizerHostParameters */
460
+ /* Excluded from this release type: _IFormCustomizerHostParameters */
461
461
 
462
462
  /**
463
463
  * Provides information about the list rendered by the ListView.
@@ -0,0 +1 @@
1
+ define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.22.0",["tslib","@microsoft/sp-core-library","@microsoft/sp-extension-base","@microsoft/sp-page-context"],(e,t,n,a)=>(()=>{"use strict";var i={676:e=>{e.exports=t},0:e=>{e.exports=n},408:e=>{e.exports=a},280:t=>{t.exports=e}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{BaseFieldCustomizer:()=>d,BaseFormCustomizer:()=>p,BaseListViewCommandSet:()=>a,ColumnAccessor:()=>b,Command:()=>i,FieldCustomizerContext:()=>l,FormCustomizerContext:()=>m,ListItemAccessor:()=>h,ListViewAccessor:()=>S,ListViewAccessorStateChanges:()=>D,ListViewCommandSetContext:()=>c,ListViewStateChangedEventArgs:()=>y,RowAccessor:()=>g,SelectedRowsChangedEventArgs:()=>v,_FormAction:()=>u,_FormActionEventArgs:()=>f,_FormCustomizerHost:()=>_});var e=o(280),t=o(676),n=o(0);const a=function(n){function a(){var e=null!==n&&n.apply(this,arguments)||this;return e._raiseOnChange=void 0,e}return(0,e.__extends)(a,n),a.prototype.tryGetCommand=function(e){return t.Validate.isNonemptyString(e,"id"),this.context._commands.filter(function(t){return t.id===e})[0]},a.prototype.onListViewUpdated=function(e){},a.prototype.onExecute=function(e){},a.prototype.raiseOnChange=function(){this._raiseOnChange&&this._raiseOnChange()},a}(n.BaseExtension),i=function(){};var r=o(408);const c=function(n){function a(e,a){var i=n.call(this,e)||this;i._listView=a.listView,i._commandArray=[];for(var o=i.manifest.items,s=0,c=Object.keys(o);s<c.length;s++){var d=c[s];if("command"===o[d].type){var l=o[d].iconImageUrl;l&&!t.UrlUtilities.isDataUrl(l)&&(l=t.UrlUtilities.resolve(l,i.manifest.loaderConfig.internalModuleBaseUrls[0])),i._commandArray.push({id:d,title:o[d].title.default||"",ariaLabel:o[d].ariaLabel?o[d].ariaLabel.default:void 0,iconImageUrl:l,visible:!0,disabled:void 0})}}return i._commandArray.length&&i.serviceScope.whenFinished(function(){var e=i.serviceScope.consume(r.PageContext.serviceKey).cultureInfo.currentUICultureName;i._commandArray.forEach(function(n){var a=o[n.id];n.title=t.Text._getLocalizedString(a.title,e)||"",a.ariaLabel&&(n.ariaLabel=t.Text._getLocalizedString(a.ariaLabel,e))})}),i}return(0,e.__extends)(a,n),Object.defineProperty(a.prototype,"listView",{get:function(){return this._listView},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"_commands",{get:function(){return this._commandArray},enumerable:!1,configurable:!0}),a}(n.ExtensionContext),d=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.onRenderCell=function(e){var t="".concat(e.fieldValue);e.fieldValue.innerText=t},n.prototype.onDisposeCell=function(e){},n}(n.BaseExtension),l=function(t){function n(e,n){var a=t.call(this,e)||this;return a._listView=n.listView,a._field=n.field,a}return(0,e.__extends)(n,t),n.prototype.tryGetListView=function(){return this._listView},Object.defineProperty(n.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),n}(n.ExtensionContext);var u;!function(e){e[e.Save=0]="Save",e[e.Close=1]="Close"}(u||(u={}));var f=function(t){function n(e){var n=t.call(this)||this;return n.action=e,n}return(0,e.__extends)(n,t),n}(t.SPEventArgs);const p=function(n){function a(){var e=null!==n&&n.apply(this,arguments)||this;return e._formActionEvent=new t.SPEvent(a._formActionEventName),e}return(0,e.__extends)(a,n),Object.defineProperty(a.prototype,"domElement",{get:function(){return this.context.domElement},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"formActionEvent",{get:function(){return this._formActionEvent},enumerable:!1,configurable:!0}),a.prototype._init=function(e,t,a){return a&&(this._displayMode=a.displayMode),n.prototype._init.call(this,e,t,a)},a.prototype._internalRender=function(){this.render()},a.prototype._internalSetDisplayMode=function(e){this._displayMode=e},a.prototype._save=function(){t._SPEventManager.instance.raiseStickyEvent(a._formActionEventName,new f(u.Save))},a.prototype._close=function(){t._SPEventManager.instance.raiseStickyEvent(a._formActionEventName,new f(u.Close))},a.prototype.dispose=function(){t._SPEventManager.instance.removeEvent(a._formActionEventName),n.prototype.dispose.call(this)},a.prototype._initializeExtensionType=function(){n.prototype._initializeExtensionType.call(this),this.context._host.logEngagement("init")},a.prototype.formSaved=function(){this.context._host.onSave()},a.prototype.formClosed=function(){this.context._host.onClose()},a._formActionEventName="formCustomizer.formAction",a}(n.BaseExtension),m=function(t){function n(e,n){var a=t.call(this,e)||this;return a._list=n.list,a._contentType=n.contentType,a._folderInfo=n.folderInfo,a._itemId=n.itemId,a._item=n.item,a._domElement=n.domElement,a._formCustomizerHost=n.host,a}return(0,e.__extends)(n,t),Object.defineProperty(n.prototype,"list",{get:function(){return this._list},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"contentType",{get:function(){return this._contentType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"folderInfo",{get:function(){return this._folderInfo},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"itemId",{get:function(){return this._itemId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"item",{get:function(){return this._item},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"domElement",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_host",{get:function(){return this._formCustomizerHost},enumerable:!1,configurable:!0}),n}(n.ExtensionContext);var _=function(){function e(e){this._onSaveCallback=e.onSaveCallback,this._onCloseCallback=e.onCloseCallback,this._onErrorCallback=e.onErrorCallback,this._logEngagement=e.logEngagement}return e.prototype.onSave=function(){this.logEngagement("onSave"),this._onSaveCallback()},e.prototype.onClose=function(){this.logEngagement("onClose"),this._onCloseCallback()},e.prototype.onError=function(e){this.logEngagement("onError"),this._onErrorCallback&&this._onErrorCallback(e)},e.prototype.logEngagement=function(e){this._logEngagement&&this._logEngagement(e)},e}();const h=function(){};var b=function(){},g=function(t){function n(){return t.call(this)||this}return(0,e.__extends)(n,t),n}(h),v=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n}(t.SPEventArgs),y=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n}(t.SPEventArgs);const S=function(){function e(n){this._isDisposed=!1,this._selectedRowsChangedEvent=new t.SPEvent(e._selectedRowsChangedEventName),this._listViewStateChangedEventName="".concat(e._listViewStateChangedEventName).concat(n||""),this._listViewStateChangedEvent=new t.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(){t._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}();var D;!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"}(D||(D={}))})(),s})());
@@ -60,6 +60,9 @@ export default class FormCustomizerContext extends ExtensionContext implements I
60
60
  private _item;
61
61
  private _domElement;
62
62
  private _formCustomizerHost;
63
+ /**
64
+ * @internal
65
+ */
63
66
  constructor(extensionContextParameters: _IExtensionContextParameters, formCustomizerContextParameters: IFormCustomizerContextParameters);
64
67
  /**
65
68
  * The list associated with the form.
@@ -1 +1 @@
1
- {"version":3,"file":"FormCustomizerContext.d.ts","sourceRoot":"","sources":["../../src/formCustomizer/FormCustomizerContext.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,KAAK,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AACnG,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AACrD,OAAO,KAAK,EAAE,YAAY,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,iCAAiC,CAAC;AACxF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAE/D;;;;GAIG;A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,CAAC;IACzB;;OAEG;IACH,QAAQ,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC;IAC1B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,WAAW,CAAC;CAClC;AAED;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,qBAAsB,SAAQ,gBAAiB,YAAW,sBAAsB;IACnG,OAAO,CAAC,KAAK,CAAQ;IACrB,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,KAAK,CAAwB;IACrC,OAAO,CAAC,WAAW,CAAc;IACjC,OAAO,CAAC,mBAAmB,CAAqB;IAEhD;;OAEG;gBAED,0BAA0B,EAAE,4BAA4B,EACxD,+BAA+B,EAAE,gCAAgC;IAanE;;OAEG;IACH,IAAW,IAAI,IAAI,KAAK,CAEvB;IAED;;OAEG;IACH,IAAW,WAAW,IAAI,YAAY,CAErC;IAED;;OAEG;IACH,IAAW,UAAU,IAAI,WAAW,CAEnC;IAED;;OAEG;IACH,IAAW,MAAM,IAAI,MAAM,GAAG,SAAS,CAEtC;IAED;;OAEG;IACH,IAAW,IAAI,IAAI,SAAS,GAAG,SAAS,CAEvC;IAED;;OAEG;IACH,IAAW,UAAU,IAAI,WAAW,CAEnC;IAED;;;;OAIG;IACH,IAAW,KAAK,IAAI,kBAAkB,CAErC;CACF"}
@@ -7,6 +7,9 @@ import { ExtensionContext } from '@microsoft/sp-extension-base';
7
7
  */
8
8
  var FormCustomizerContext = /** @class */ (function (_super) {
9
9
  __extends(FormCustomizerContext, _super);
10
+ /**
11
+ * @internal
12
+ */
10
13
  function FormCustomizerContext(extensionContextParameters, formCustomizerContextParameters) {
11
14
  var _this = _super.call(this, extensionContextParameters) || this;
12
15
  _this._list = formCustomizerContextParameters.list;
package/lib/index.d.ts CHANGED
@@ -10,8 +10,8 @@ export { default as BaseFieldCustomizer, type IFieldCustomizerCellEventParameter
10
10
  export { default as FieldCustomizerContext, type IFieldCustomizerContextParameters as _IFieldCustomizerContextParameters } from './fieldCustomizer/FieldCustomizerContext';
11
11
  export { default as BaseFormCustomizer, type IFormCustomizerAdditionalInitParameters as _IFormCustomizerAdditionalInitParameters } from './formCustomizer/BaseFormCustomizer';
12
12
  export { default as FormCustomizerContext, type IFormCustomizerContextParameters as _IFormCustomizerContextParameters, type IFormCustomizerContext } from './formCustomizer/FormCustomizerContext';
13
- export { FormCustomizerHost } from './formCustomizer/FormCustomizerHost';
14
- export { FormActionEventArgs, FormAction } from './formCustomizer/FormActionEventArgs';
13
+ export { FormCustomizerHost as _FormCustomizerHost, type IFormCustomizerHostParameters as _IFormCustomizerHostParameters } from './formCustomizer/FormCustomizerHost';
14
+ export { FormActionEventArgs as _FormActionEventArgs, FormAction as _FormAction } from './formCustomizer/FormActionEventArgs';
15
15
  export { default as ListItemAccessor } from './common/ListItemAccessor';
16
16
  export { ColumnAccessor, RowAccessor, SelectedRowsChangedEventArgs, ListViewStateChangedEventArgs, default as ListViewAccessor } from './common/ListViewAccessor';
17
17
  export { ListViewAccessorStateChanges, type IColumn, type IRow, type IFilter, type IFolderInfo, type IList, type IView, type IContentType, type IListViewAccessorState } from './common/ListViewAccessorState';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EACL,OAAO,IAAI,sBAAsB,EACjC,KAAK,4CAA4C,EACjD,KAAK,yCAAyC,EAC/C,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EAAE,OAAO,IAAI,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAE1D,OAAO,EACL,OAAO,IAAI,yBAAyB,EACpC,KAAK,oCAAoC,IAAI,qCAAqC,EACnF,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,OAAO,IAAI,mBAAmB,EAC9B,KAAK,mCAAmC,EACzC,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,OA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AAI,mBAAmB,EAC9B,KAAK,mCAAmC,EACzC,MAAM,uCAAuC,CAAC;AAE/C,OAAO,EACL,OAAO,IAAI,sBAAsB,EACjC,KAAK,iCAAiC,IAAI,kCAAkC,EAC7E,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,OAAO,IAAI,kBAAkB,EAC7B,KAAK,uCAAuC,IAAI,wCAAwC,EACzF,MAAM,qCAAqC,CAAC;AAE7C,OAAO,EACL,OAAO,IAAI,qBAAqB,EAChC,KAAK,gCAAgC,IAAI,iCAAiC,EAC1E,KAAK,sBAAsB,EAC5B,MAAM,wCAAwC,CAAC;AAEhD,OAAO,EACL,kBAAkB,IAAI,mBAAmB,EACzC,KAAK,6BAA6B,IAAI,8BAA8B,EACrE,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,mBAAmB,IAAI,oBAAoB,EAC3C,UAAU,IAAI,WAAW,EAC1B,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAExE,OAAO,EACL,cAAc,EACd,WAAW,EACX,4BAA4B,EAC5B,6BAA6B,EAC7B,OAAO,IAAI,gBAAgB,EAC5B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EACL,4BAA4B,EAC5B,KAAK,OAAO,EACZ,KAAK,IAAI,EACT,KAAK,OAAO,EACZ,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC5B,MAAM,gCAAgC,CAAC;AAExC,YAAY,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC"}
package/lib/index.js CHANGED
@@ -10,8 +10,8 @@ export { default as BaseFieldCustomizer } from './fieldCustomizer/BaseFieldCusto
10
10
  export { default as FieldCustomizerContext } from './fieldCustomizer/FieldCustomizerContext';
11
11
  export { default as BaseFormCustomizer } from './formCustomizer/BaseFormCustomizer';
12
12
  export { default as FormCustomizerContext } from './formCustomizer/FormCustomizerContext';
13
- export { FormCustomizerHost } from './formCustomizer/FormCustomizerHost';
14
- export { FormActionEventArgs, FormAction } from './formCustomizer/FormActionEventArgs';
13
+ export { FormCustomizerHost as _FormCustomizerHost } from './formCustomizer/FormCustomizerHost';
14
+ export { FormActionEventArgs as _FormActionEventArgs, FormAction as _FormAction } from './formCustomizer/FormActionEventArgs';
15
15
  export { default as ListItemAccessor } from './common/ListItemAccessor';
16
16
  export { ColumnAccessor, RowAccessor, SelectedRowsChangedEventArgs, ListViewStateChangedEventArgs, default as ListViewAccessor } from './common/ListViewAccessor';
17
17
  export { ListViewAccessorStateChanges } from './common/ListViewAccessorState';
@@ -9,6 +9,9 @@ var sp_extension_base_1 = require("@microsoft/sp-extension-base");
9
9
  */
10
10
  var FormCustomizerContext = /** @class */ (function (_super) {
11
11
  tslib_1.__extends(FormCustomizerContext, _super);
12
+ /**
13
+ * @internal
14
+ */
12
15
  function FormCustomizerContext(extensionContextParameters, formCustomizerContextParameters) {
13
16
  var _this = _super.call(this, extensionContextParameters) || this;
14
17
  _this._list = formCustomizerContextParameters.list;
@@ -8,7 +8,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
8
8
  return (mod && mod.__esModule) ? mod : { "default": mod };
9
9
  };
10
10
  Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.ListViewAccessorStateChanges = exports.ListViewAccessor = exports.ListViewStateChangedEventArgs = exports.SelectedRowsChangedEventArgs = exports.RowAccessor = exports.ColumnAccessor = exports.ListItemAccessor = exports.FormAction = exports.FormActionEventArgs = exports.FormCustomizerHost = exports.FormCustomizerContext = exports.BaseFormCustomizer = exports.FieldCustomizerContext = exports.BaseFieldCustomizer = exports.ListViewCommandSetContext = exports.Command = exports.BaseListViewCommandSet = void 0;
11
+ exports.ListViewAccessorStateChanges = exports.ListViewAccessor = exports.ListViewStateChangedEventArgs = exports.SelectedRowsChangedEventArgs = exports.RowAccessor = exports.ColumnAccessor = exports.ListItemAccessor = exports._FormAction = exports._FormActionEventArgs = exports._FormCustomizerHost = exports.FormCustomizerContext = exports.BaseFormCustomizer = exports.FieldCustomizerContext = exports.BaseFieldCustomizer = exports.ListViewCommandSetContext = exports.Command = exports.BaseListViewCommandSet = void 0;
12
12
  var BaseListViewCommandSet_1 = require("./commandSet/BaseListViewCommandSet");
13
13
  Object.defineProperty(exports, "BaseListViewCommandSet", { enumerable: true, get: function () { return __importDefault(BaseListViewCommandSet_1).default; } });
14
14
  var Command_1 = require("./commandSet/Command");
@@ -24,10 +24,10 @@ Object.defineProperty(exports, "BaseFormCustomizer", { enumerable: true, get: fu
24
24
  var FormCustomizerContext_1 = require("./formCustomizer/FormCustomizerContext");
25
25
  Object.defineProperty(exports, "FormCustomizerContext", { enumerable: true, get: function () { return __importDefault(FormCustomizerContext_1).default; } });
26
26
  var FormCustomizerHost_1 = require("./formCustomizer/FormCustomizerHost");
27
- Object.defineProperty(exports, "FormCustomizerHost", { enumerable: true, get: function () { return FormCustomizerHost_1.FormCustomizerHost; } });
27
+ Object.defineProperty(exports, "_FormCustomizerHost", { enumerable: true, get: function () { return FormCustomizerHost_1.FormCustomizerHost; } });
28
28
  var FormActionEventArgs_1 = require("./formCustomizer/FormActionEventArgs");
29
- Object.defineProperty(exports, "FormActionEventArgs", { enumerable: true, get: function () { return FormActionEventArgs_1.FormActionEventArgs; } });
30
- Object.defineProperty(exports, "FormAction", { enumerable: true, get: function () { return FormActionEventArgs_1.FormAction; } });
29
+ Object.defineProperty(exports, "_FormActionEventArgs", { enumerable: true, get: function () { return FormActionEventArgs_1.FormActionEventArgs; } });
30
+ Object.defineProperty(exports, "_FormAction", { enumerable: true, get: function () { return FormActionEventArgs_1.FormAction; } });
31
31
  var ListItemAccessor_1 = require("./common/ListItemAccessor");
32
32
  Object.defineProperty(exports, "ListItemAccessor", { enumerable: true, get: function () { return __importDefault(ListItemAccessor_1).default; } });
33
33
  var ListViewAccessor_1 = require("./common/ListViewAccessor");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/sp-listview-extensibility",
3
- "version": "1.22.0-beta.4",
3
+ "version": "1.22.0-beta.5",
4
4
  "description": "SharePoint Framework developer support for customizing the list view",
5
5
  "license": "https://aka.ms/spfx/license",
6
6
  "homepage": "http://aka.ms/spfx",
@@ -11,18 +11,18 @@
11
11
  "tsdocFlavor": "AEDoc"
12
12
  },
13
13
  "devDependencies": {
14
- "@rushstack/heft": "1.1.1",
14
+ "@rushstack/heft": "1.1.2",
15
15
  "eslint": "8.57.1",
16
- "@msinternal/spfx-internal-web-build-rig": "0.1.0",
17
- "@microsoft/sp-odata-types": "1.22.0-beta.4"
16
+ "@microsoft/sp-odata-types": "1.22.0-beta.5",
17
+ "@msinternal/spfx-internal-web-build-rig": "0.1.0"
18
18
  },
19
19
  "dependencies": {
20
20
  "@swc/helpers": "^0.5.12",
21
21
  "tslib": "2.3.1",
22
- "@microsoft/sp-core-library": "1.22.0-beta.4",
23
- "@microsoft/sp-module-interfaces": "1.22.0-beta.4",
24
- "@microsoft/sp-page-context": "1.22.0-beta.4",
25
- "@microsoft/sp-extension-base": "1.22.0-beta.4"
22
+ "@microsoft/sp-extension-base": "1.22.0-beta.5",
23
+ "@microsoft/sp-core-library": "1.22.0-beta.5",
24
+ "@microsoft/sp-page-context": "1.22.0-beta.5",
25
+ "@microsoft/sp-module-interfaces": "1.22.0-beta.5"
26
26
  },
27
27
  "engines": {
28
28
  "node": ">=18.17.1 <19.0.0 || >=22.14.0 < 23.0.0"
@@ -1 +0,0 @@
1
- define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.22.0",["tslib","@microsoft/sp-core-library","@microsoft/sp-extension-base","@microsoft/sp-page-context"],(e,t,n,a)=>(()=>{"use strict";var i={676:e=>{e.exports=t},0:e=>{e.exports=n},408:e=>{e.exports=a},280:t=>{t.exports=e}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return i[e](n,n.exports,o),n.exports}o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{o.r(s),o.d(s,{BaseFieldCustomizer:()=>d,BaseFormCustomizer:()=>p,BaseListViewCommandSet:()=>a,ColumnAccessor:()=>b,Command:()=>i,FieldCustomizerContext:()=>l,FormAction:()=>u,FormActionEventArgs:()=>f,FormCustomizerContext:()=>m,FormCustomizerHost:()=>_,ListItemAccessor:()=>h,ListViewAccessor:()=>S,ListViewAccessorStateChanges:()=>D,ListViewCommandSetContext:()=>c,ListViewStateChangedEventArgs:()=>y,RowAccessor:()=>g,SelectedRowsChangedEventArgs:()=>v});var e=o(280),t=o(676),n=o(0);const a=function(n){function a(){var e=null!==n&&n.apply(this,arguments)||this;return e._raiseOnChange=void 0,e}return(0,e.__extends)(a,n),a.prototype.tryGetCommand=function(e){return t.Validate.isNonemptyString(e,"id"),this.context._commands.filter(function(t){return t.id===e})[0]},a.prototype.onListViewUpdated=function(e){},a.prototype.onExecute=function(e){},a.prototype.raiseOnChange=function(){this._raiseOnChange&&this._raiseOnChange()},a}(n.BaseExtension),i=function(){};var r=o(408);const c=function(n){function a(e,a){var i=n.call(this,e)||this;i._listView=a.listView,i._commandArray=[];for(var o=i.manifest.items,s=0,c=Object.keys(o);s<c.length;s++){var d=c[s];if("command"===o[d].type){var l=o[d].iconImageUrl;l&&!t.UrlUtilities.isDataUrl(l)&&(l=t.UrlUtilities.resolve(l,i.manifest.loaderConfig.internalModuleBaseUrls[0])),i._commandArray.push({id:d,title:o[d].title.default||"",ariaLabel:o[d].ariaLabel?o[d].ariaLabel.default:void 0,iconImageUrl:l,visible:!0,disabled:void 0})}}return i._commandArray.length&&i.serviceScope.whenFinished(function(){var e=i.serviceScope.consume(r.PageContext.serviceKey).cultureInfo.currentUICultureName;i._commandArray.forEach(function(n){var a=o[n.id];n.title=t.Text._getLocalizedString(a.title,e)||"",a.ariaLabel&&(n.ariaLabel=t.Text._getLocalizedString(a.ariaLabel,e))})}),i}return(0,e.__extends)(a,n),Object.defineProperty(a.prototype,"listView",{get:function(){return this._listView},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"_commands",{get:function(){return this._commandArray},enumerable:!1,configurable:!0}),a}(n.ExtensionContext),d=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n.prototype.onRenderCell=function(e){var t="".concat(e.fieldValue);e.fieldValue.innerText=t},n.prototype.onDisposeCell=function(e){},n}(n.BaseExtension),l=function(t){function n(e,n){var a=t.call(this,e)||this;return a._listView=n.listView,a._field=n.field,a}return(0,e.__extends)(n,t),n.prototype.tryGetListView=function(){return this._listView},Object.defineProperty(n.prototype,"field",{get:function(){return this._field},enumerable:!1,configurable:!0}),n}(n.ExtensionContext);var u;!function(e){e[e.Save=0]="Save",e[e.Close=1]="Close"}(u||(u={}));var f=function(t){function n(e){var n=t.call(this)||this;return n.action=e,n}return(0,e.__extends)(n,t),n}(t.SPEventArgs);const p=function(n){function a(){var e=null!==n&&n.apply(this,arguments)||this;return e._formActionEvent=new t.SPEvent(a._formActionEventName),e}return(0,e.__extends)(a,n),Object.defineProperty(a.prototype,"domElement",{get:function(){return this.context.domElement},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(a.prototype,"formActionEvent",{get:function(){return this._formActionEvent},enumerable:!1,configurable:!0}),a.prototype._init=function(e,t,a){return a&&(this._displayMode=a.displayMode),n.prototype._init.call(this,e,t,a)},a.prototype._internalRender=function(){this.render()},a.prototype._internalSetDisplayMode=function(e){this._displayMode=e},a.prototype._save=function(){t._SPEventManager.instance.raiseStickyEvent(a._formActionEventName,new f(u.Save))},a.prototype._close=function(){t._SPEventManager.instance.raiseStickyEvent(a._formActionEventName,new f(u.Close))},a.prototype.dispose=function(){t._SPEventManager.instance.removeEvent(a._formActionEventName),n.prototype.dispose.call(this)},a.prototype._initializeExtensionType=function(){n.prototype._initializeExtensionType.call(this),this.context._host.logEngagement("init")},a.prototype.formSaved=function(){this.context._host.onSave()},a.prototype.formClosed=function(){this.context._host.onClose()},a._formActionEventName="formCustomizer.formAction",a}(n.BaseExtension),m=function(t){function n(e,n){var a=t.call(this,e)||this;return a._list=n.list,a._contentType=n.contentType,a._folderInfo=n.folderInfo,a._itemId=n.itemId,a._item=n.item,a._domElement=n.domElement,a._formCustomizerHost=n.host,a}return(0,e.__extends)(n,t),Object.defineProperty(n.prototype,"list",{get:function(){return this._list},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"contentType",{get:function(){return this._contentType},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"folderInfo",{get:function(){return this._folderInfo},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"itemId",{get:function(){return this._itemId},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"item",{get:function(){return this._item},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"domElement",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"_host",{get:function(){return this._formCustomizerHost},enumerable:!1,configurable:!0}),n}(n.ExtensionContext);var _=function(){function e(e){this._onSaveCallback=e.onSaveCallback,this._onCloseCallback=e.onCloseCallback,this._onErrorCallback=e.onErrorCallback,this._logEngagement=e.logEngagement}return e.prototype.onSave=function(){this.logEngagement("onSave"),this._onSaveCallback()},e.prototype.onClose=function(){this.logEngagement("onClose"),this._onCloseCallback()},e.prototype.onError=function(e){this.logEngagement("onError"),this._onErrorCallback&&this._onErrorCallback(e)},e.prototype.logEngagement=function(e){this._logEngagement&&this._logEngagement(e)},e}();const h=function(){};var b=function(){},g=function(t){function n(){return t.call(this)||this}return(0,e.__extends)(n,t),n}(h),v=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n}(t.SPEventArgs),y=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n}(t.SPEventArgs);const S=function(){function e(n){this._isDisposed=!1,this._selectedRowsChangedEvent=new t.SPEvent(e._selectedRowsChangedEventName),this._listViewStateChangedEventName="".concat(e._listViewStateChangedEventName).concat(n||""),this._listViewStateChangedEvent=new t.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(){t._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}();var D;!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"}(D||(D={}))})(),s})());