@microsoft/sp-listview-extensibility 1.23.0-rc.0 → 1.23.0-rc.2
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/dist/d37b65ee-c7d8-4570-bc74-2b294ff3b380.manifest.json +2 -2
- package/dist/sp-listview-extensibility_none_32211638f8dca1a8efaa.js +1 -0
- package/lib/commandSet/BaseListViewCommandSet.d.ts.map +1 -1
- package/lib/commandSet/BaseListViewCommandSet.js +2 -1
- package/lib/fieldCustomizer/BaseFieldCustomizer.d.ts.map +1 -1
- package/lib/fieldCustomizer/BaseFieldCustomizer.js +2 -0
- package/lib/formCustomizer/BaseFormCustomizer.d.ts.map +1 -1
- package/lib/formCustomizer/BaseFormCustomizer.js +2 -1
- package/lib-commonjs/commandSet/BaseListViewCommandSet.js +1 -0
- package/lib-commonjs/fieldCustomizer/BaseFieldCustomizer.js +2 -0
- package/lib-commonjs/formCustomizer/BaseFormCustomizer.js +1 -0
- package/package.json +8 -8
- package/dist/sp-listview-extensibility_none_58654107ac7b7e2dd126.js +0 -1
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"sp-listview-extensibility": {
|
|
14
14
|
"type": "path",
|
|
15
15
|
"path": {
|
|
16
|
-
"path": "sp-listview-
|
|
17
|
-
"integrity": "sha256-
|
|
16
|
+
"path": "sp-listview-extensibility_none_32211638f8dca1a8efaa.js",
|
|
17
|
+
"integrity": "sha256-gwcgbCb+sHDCeXKEeMpEWp2ECWLRCevuliDzSGL9HPM="
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"tslib": {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.23.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:()=>u,BaseFormCustomizer:()=>h,BaseListViewCommandSet:()=>i,ColumnAccessor:()=>y,Command:()=>r,FieldCustomizerContext:()=>f,FormCustomizerContext:()=>b,ListItemAccessor:()=>v,ListViewAccessor:()=>x,ListViewAccessorStateChanges:()=>C,ListViewCommandSetContext:()=>d,ListViewStateChangedEventArgs:()=>I,RowAccessor:()=>S,SelectedRowsChangedEventArgs:()=>D,_FormAction:()=>p,_FormActionEventArgs:()=>m,_FormCustomizerHost:()=>g});var e=o(280),t=o(676),n=o(0),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);(0,t._ES5CompatibleClass)(a);const i=a,r=function(){};var c=o(408);const d=function(n){function a(e,a){var i=n.call(this,e)||this;i._listView=a.listView,i._commandArray=[];for(var r=i.manifest.items,o=0,s=Object.keys(r);o<s.length;o++){var d=s[o];if(t._SPFlight.isEnabled(62894)?"command"===r[d].type||"group"===r[d].type:"command"===r[d].type){var l=r[d].iconImageUrl;l&&!t.UrlUtilities.isDataUrl(l)&&(l=t.UrlUtilities.resolve(l,i.manifest.loaderConfig.internalModuleBaseUrls[0])),i._commandArray.push({id:d,title:r[d].title.default||"",ariaLabel:r[d].ariaLabel?r[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(c.PageContext.serviceKey).cultureInfo.currentUICultureName;i._commandArray.forEach(function(n){var a=r[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);var l=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);(0,t._ES5CompatibleClass)(l);const u=l,f=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 p;!function(e){e[e.Save=0]="Save",e[e.Close=1]="Close"}(p||(p={}));var m=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),_=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 m(p.Save))},a.prototype._close=function(){t._SPEventManager.instance.raiseStickyEvent(a._formActionEventName,new m(p.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);(0,t._ES5CompatibleClass)(_);const h=_,b=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 g=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 v=function(){};var y=function(){},S=function(t){function n(){return t.call(this)||this}return(0,e.__extends)(n,t),n}(v),D=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n}(t.SPEventArgs),I=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return(0,e.__extends)(n,t),n}(t.SPEventArgs);const x=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 C;!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"}(C||(C={}))})(),s})());
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseListViewCommandSet.d.ts","sourceRoot":"","sources":["../../src/commandSet/BaseListViewCommandSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,yBAAyB,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,4CAA4C;IAC3D;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACnD;AAED;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACxD;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACnD;AAED;;;;;;;;;;;;;GAaG;AACH,uBAAe,sBAAsB,CAAC,WAAW,CAAE,SAAQ,aAAa,CAAC,WAAW,CAAC;IACnF;;OAEG;IAEH,SAAgB,OAAO,EAAG,yBAAyB,CAAC;IAEpD;;OAEG;IACI,cAAc,CAAC,EAAE,MAAM,IAAI,CAAa;IAE/C;;;;OAIG;IACI,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAMzC;;;;;;;OAOG;IACI,iBAAiB,CAAC,KAAK,EAAE,4CAA4C,GAAG,IAAI;IAInF;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,yCAAyC,GAAG,IAAI;IAIxE;;OAEG;IACI,aAAa,IAAI,IAAI;CAK7B;
|
|
1
|
+
{"version":3,"file":"BaseListViewCommandSet.d.ts","sourceRoot":"","sources":["../../src/commandSet/BaseListViewCommandSet.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAE7D,OAAO,KAAK,yBAAyB,MAAM,6BAA6B,CAAC;AACzE,OAAO,KAAK,OAAO,MAAM,WAAW,CAAC;AAErC,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAE9D;;;;GAIG;AACH,MAAM,WAAW,4CAA4C;IAC3D;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACnD;AAED;;;;GAIG;AACH,MAAM,WAAW,yCAAyC;IACxD;;;OAGG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,aAAa,CAAC,WAAW,CAAC,CAAC;CACnD;AAED;;;;;;;;;;;;;GAaG;AACH,uBAAe,sBAAsB,CAAC,WAAW,CAAE,SAAQ,aAAa,CAAC,WAAW,CAAC;IACnF;;OAEG;IAEH,SAAgB,OAAO,EAAG,yBAAyB,CAAC;IAEpD;;OAEG;IACI,cAAc,CAAC,EAAE,MAAM,IAAI,CAAa;IAE/C;;;;OAIG;IACI,aAAa,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO;IAMzC;;;;;;;OAOG;IACI,iBAAiB,CAAC,KAAK,EAAE,4CAA4C,GAAG,IAAI;IAInF;;;;OAIG;IACI,SAAS,CAAC,KAAK,EAAE,yCAAyC,GAAG,IAAI;IAIxE;;OAEG;IACI,aAAa,IAAI,IAAI;CAK7B;AAID,eAAe,sBAAsB,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
-
import { Validate } from '@microsoft/sp-core-library';
|
|
2
|
+
import { Validate, _ES5CompatibleClass } from '@microsoft/sp-core-library';
|
|
3
3
|
import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
4
4
|
/**
|
|
5
5
|
* This is the base class that third parties should extend when implementing
|
|
@@ -64,5 +64,6 @@ var BaseListViewCommandSet = /** @class */ (function (_super) {
|
|
|
64
64
|
};
|
|
65
65
|
return BaseListViewCommandSet;
|
|
66
66
|
}(BaseExtension));
|
|
67
|
+
_ES5CompatibleClass(BaseListViewCommandSet);
|
|
67
68
|
export default BaseListViewCommandSet;
|
|
68
69
|
//# sourceMappingURL=BaseListViewCommandSet.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseFieldCustomizer.d.ts","sourceRoot":"","sources":["../../src/fieldCustomizer/BaseFieldCustomizer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"BaseFieldCustomizer.d.ts","sourceRoot":"","sources":["../../src/fieldCustomizer/BaseFieldCustomizer.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,sBAAsB,MAAM,0BAA0B,CAAC;AACnE,OAAO,KAAK,gBAAgB,MAAM,4BAA4B,CAAC;AAE/D;;;GAGG;AACH,MAAM,WAAW,mCAAmC;IAClD;;;OAGG;IACH,QAAQ,CAAC,UAAU,EAAE,cAAc,CAAC;IAEpC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,CAAC;IAEpC;;OAEG;IAEH,QAAQ,CAAC,UAAU,EAAE,GAAG,CAAC;IAEzB;;;;;;;;OAQG;IAEH,QAAQ,EAAE,GAAG,CAAC;CACf;AAED;;;;;;;;GAQG;AACH,uBAAe,mBAAmB,CAAC,WAAW,CAAE,SAAQ,aAAa,CAAC,WAAW,CAAC;IAChF;;OAEG;IAEH,SAAS,CAAC,QAAQ,CAAC,OAAO,EAAG,sBAAsB,CAAC;IAK7C,YAAY,CAAC,KAAK,EAAE,mCAAmC,GAAG,IAAI;IAQ9D,aAAa,CAAC,KAAK,EAAE,mCAAmC,GAAG,IAAI;CAGvE;AAID,eAAe,mBAAmB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
|
+
import { _ES5CompatibleClass } from '@microsoft/sp-core-library';
|
|
2
3
|
import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
3
4
|
/**
|
|
4
5
|
* This is the base class that third parties should extend when implementing
|
|
@@ -29,5 +30,6 @@ var BaseFieldCustomizer = /** @class */ (function (_super) {
|
|
|
29
30
|
};
|
|
30
31
|
return BaseFieldCustomizer;
|
|
31
32
|
}(BaseExtension));
|
|
33
|
+
_ES5CompatibleClass(BaseFieldCustomizer);
|
|
32
34
|
export default BaseFieldCustomizer;
|
|
33
35
|
//# sourceMappingURL=BaseFieldCustomizer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseFormCustomizer.d.ts","sourceRoot":"","sources":["../../src/formCustomizer/BaseFormCustomizer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,
|
|
1
|
+
{"version":3,"file":"BaseFormCustomizer.d.ts","sourceRoot":"","sources":["../../src/formCustomizer/BaseFormCustomizer.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,aAAa,EACb,KAAK,gBAAgB,EACrB,KAAK,0BAA0B,EAChC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,KAAK,eAAe,EACpB,OAAO,EAGR,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,qBAAqB,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAc,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAExE;;GAEG;AACH,MAAM,WAAW,uCAAwC,SAAQ,0BAA0B;IACzF,WAAW,EAAE,eAAe,CAAC;CAC9B;AAED;;;;GAIG;AACH,uBAAe,kBAAkB,CAAC,WAAW,CAAE,SAAQ,aAAa,CAAC,WAAW,CAAC;IAC/E;;;;OAIG;IACH,OAAc,oBAAoB,EAAE,MAAM,CAA+B;IAEzE;;OAEG;IAEH,SAAgB,OAAO,EAAG,qBAAqB,CAAC;IAEhD,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAE/B;IACF,OAAO,CAAC,YAAY,CAAmB;IAGvC;;;;;OAKG;IACH,SAAS,KAAK,UAAU,IAAI,WAAW,CAEtC;IAED;;;;OAIG;IACH,SAAS,KAAK,WAAW,IAAI,eAAe,CAE3C;IAED;;;;;;OAMG;IACH,IAAW,eAAe,IAAI,OAAO,CAAC,mBAAmB,CAAC,CAEzD;IAED;;OAEG;IACI,KAAK,CACV,OAAO,EAAE,gBAAgB,EACzB,cAAc,EAAE,MAAM,GAAG,SAAS,EAClC,wBAAwB,EAAE,uCAAuC,GAAG,SAAS,GAC5E,OAAO,CAAC,IAAI,CAAC;IAOhB;;OAEG;IACI,eAAe,IAAI,IAAI;IAI9B;;;OAGG;IACI,uBAAuB,CAAC,cAAc,EAAE,eAAe,GAAG,IAAI;IAIrE;;;;OAIG;IACI,KAAK,IAAI,IAAI;IAOpB;;;;OAIG;IACI,MAAM,IAAI,IAAI;IAOrB;;;;;;OAMG;IACI,OAAO,IAAI,IAAI;IAKtB;;OAEG;IACH,SAAS,CAAC,wBAAwB,IAAI,IAAI;IAK1C;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,MAAM,IAAI,IAAI;IAEjC;;OAEG;IACH,SAAS,CAAC,SAAS,IAAI,IAAI;IAI3B;;OAEG;IACH,SAAS,CAAC,UAAU,IAAI,IAAI;CAG7B;AAID,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __extends } from "tslib";
|
|
2
2
|
import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
3
|
-
import { SPEvent, _SPEventManager } from '@microsoft/sp-core-library';
|
|
3
|
+
import { SPEvent, _SPEventManager, _ES5CompatibleClass } from '@microsoft/sp-core-library';
|
|
4
4
|
import { FormAction, FormActionEventArgs } from './FormActionEventArgs';
|
|
5
5
|
/**
|
|
6
6
|
* This is the base class that third parties should extend when implementing
|
|
@@ -130,5 +130,6 @@ var BaseFormCustomizer = /** @class */ (function (_super) {
|
|
|
130
130
|
BaseFormCustomizer._formActionEventName = 'formCustomizer.formAction';
|
|
131
131
|
return BaseFormCustomizer;
|
|
132
132
|
}(BaseExtension));
|
|
133
|
+
_ES5CompatibleClass(BaseFormCustomizer);
|
|
133
134
|
export default BaseFormCustomizer;
|
|
134
135
|
//# sourceMappingURL=BaseFormCustomizer.js.map
|
|
@@ -66,5 +66,6 @@ var BaseListViewCommandSet = /** @class */ (function (_super) {
|
|
|
66
66
|
};
|
|
67
67
|
return BaseListViewCommandSet;
|
|
68
68
|
}(sp_extension_base_1.BaseExtension));
|
|
69
|
+
(0, sp_core_library_1._ES5CompatibleClass)(BaseListViewCommandSet);
|
|
69
70
|
exports.default = BaseListViewCommandSet;
|
|
70
71
|
//# sourceMappingURL=BaseListViewCommandSet.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
|
+
var sp_core_library_1 = require("@microsoft/sp-core-library");
|
|
4
5
|
var sp_extension_base_1 = require("@microsoft/sp-extension-base");
|
|
5
6
|
/**
|
|
6
7
|
* This is the base class that third parties should extend when implementing
|
|
@@ -31,5 +32,6 @@ var BaseFieldCustomizer = /** @class */ (function (_super) {
|
|
|
31
32
|
};
|
|
32
33
|
return BaseFieldCustomizer;
|
|
33
34
|
}(sp_extension_base_1.BaseExtension));
|
|
35
|
+
(0, sp_core_library_1._ES5CompatibleClass)(BaseFieldCustomizer);
|
|
34
36
|
exports.default = BaseFieldCustomizer;
|
|
35
37
|
//# sourceMappingURL=BaseFieldCustomizer.js.map
|
|
@@ -132,5 +132,6 @@ var BaseFormCustomizer = /** @class */ (function (_super) {
|
|
|
132
132
|
BaseFormCustomizer._formActionEventName = 'formCustomizer.formAction';
|
|
133
133
|
return BaseFormCustomizer;
|
|
134
134
|
}(sp_extension_base_1.BaseExtension));
|
|
135
|
+
(0, sp_core_library_1._ES5CompatibleClass)(BaseFormCustomizer);
|
|
135
136
|
exports.default = BaseFormCustomizer;
|
|
136
137
|
//# sourceMappingURL=BaseFormCustomizer.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-listview-extensibility",
|
|
3
|
-
"version": "1.23.0-rc.
|
|
3
|
+
"version": "1.23.0-rc.2",
|
|
4
4
|
"description": "SharePoint Framework developer support for customizing the list view",
|
|
5
5
|
"homepage": "http://aka.ms/spfx",
|
|
6
6
|
"license": "https://aka.ms/spfx/license",
|
|
@@ -16,16 +16,16 @@
|
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@swc/helpers": "^0.5.12",
|
|
18
18
|
"tslib": "2.3.1",
|
|
19
|
-
"@microsoft/sp-core-library": "1.23.0-rc.
|
|
20
|
-
"@microsoft/sp-module-interfaces": "1.23.0-rc.
|
|
21
|
-
"@microsoft/sp-
|
|
22
|
-
"@microsoft/sp-
|
|
19
|
+
"@microsoft/sp-core-library": "1.23.0-rc.2",
|
|
20
|
+
"@microsoft/sp-module-interfaces": "1.23.0-rc.2",
|
|
21
|
+
"@microsoft/sp-extension-base": "1.23.0-rc.2",
|
|
22
|
+
"@microsoft/sp-page-context": "1.23.0-rc.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@rushstack/heft": "1.2.
|
|
25
|
+
"@rushstack/heft": "1.2.17",
|
|
26
26
|
"eslint": "9.37.0",
|
|
27
|
-
"@
|
|
28
|
-
"@
|
|
27
|
+
"@microsoft/sp-odata-types": "1.23.0-rc.2",
|
|
28
|
+
"@msinternal/spfx-internal-web-build-rig": "0.1.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "heft test --clean",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.23.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(t._SPFlight.isEnabled(62894)?"command"===o[d].type||"group"===o[d].type:"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})());
|