@microsoft/sp-listview-extensibility 1.18.0-beta.1 → 1.18.0-beta.3
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 +1 -1
- package/dist/index-internal-beta.d.ts +4 -5
- package/dist/index-internal-public.d.ts +4 -5
- package/dist/index-internal.d.ts +4 -5
- package/dist/sp-listview-extensibility_none_121ed3b01ba033f7fe47.js +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/commandSet/BaseListViewCommandSet.js +1 -4
- package/lib-commonjs/commandSet/ListViewCommandSetContext.js +1 -1
- package/lib-commonjs/formCustomizer/FormCustomizerContext.js +1 -1
- package/package.json +8 -7
- package/dist/sp-listview-extensibility_none_b7e6e9a06d7148b8958a.js +0 -1
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
8
8
|
import { ExtensionContext } from '@microsoft/sp-extension-base';
|
|
9
9
|
import { FormDisplayMode } from '@microsoft/sp-core-library';
|
|
10
|
-
import { Guid } from '@microsoft/sp-core-library';
|
|
11
|
-
import { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
|
|
10
|
+
import type { Guid } from '@microsoft/sp-core-library';
|
|
11
|
+
import type { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
|
|
12
12
|
import { IDisposable } from '@microsoft/sp-core-library';
|
|
13
13
|
import type { IODataListItem } from '@microsoft/sp-odata-types';
|
|
14
14
|
import { SPEvent } from '@microsoft/sp-core-library';
|
|
15
15
|
import { SPEventArgs } from '@microsoft/sp-core-library';
|
|
16
|
-
import { SPField } from '@microsoft/sp-page-context';
|
|
16
|
+
import type { SPField } from '@microsoft/sp-page-context';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* This is the base class that third parties should extend when implementing
|
|
@@ -109,7 +109,6 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
|
|
|
109
109
|
*/
|
|
110
110
|
readonly context: ListViewCommandSetContext;
|
|
111
111
|
/* Excluded from this release type: _raiseOnChange */
|
|
112
|
-
/* Excluded from this release type: __constructor */
|
|
113
112
|
/**
|
|
114
113
|
* Returns the command with the given id.
|
|
115
114
|
* Returns undefined if there is not command with the given id.
|
|
@@ -246,7 +245,7 @@ export declare class FieldCustomizerContext extends ExtensionContext {
|
|
|
246
245
|
/* Excluded from this release type: FormActionEventArgs */
|
|
247
246
|
|
|
248
247
|
/**
|
|
249
|
-
* Form Customizer Context. This object contains
|
|
248
|
+
* Form Customizer Context. This object contains contextual services and properties for the form.
|
|
250
249
|
*
|
|
251
250
|
* @public
|
|
252
251
|
*/
|
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
8
8
|
import { ExtensionContext } from '@microsoft/sp-extension-base';
|
|
9
9
|
import { FormDisplayMode } from '@microsoft/sp-core-library';
|
|
10
|
-
import { Guid } from '@microsoft/sp-core-library';
|
|
11
|
-
import { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
|
|
10
|
+
import type { Guid } from '@microsoft/sp-core-library';
|
|
11
|
+
import type { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
|
|
12
12
|
import { IDisposable } from '@microsoft/sp-core-library';
|
|
13
13
|
import type { IODataListItem } from '@microsoft/sp-odata-types';
|
|
14
14
|
import { SPEvent } from '@microsoft/sp-core-library';
|
|
15
15
|
import { SPEventArgs } from '@microsoft/sp-core-library';
|
|
16
|
-
import { SPField } from '@microsoft/sp-page-context';
|
|
16
|
+
import type { SPField } from '@microsoft/sp-page-context';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* This is the base class that third parties should extend when implementing
|
|
@@ -109,7 +109,6 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
|
|
|
109
109
|
*/
|
|
110
110
|
readonly context: ListViewCommandSetContext;
|
|
111
111
|
/* Excluded from this release type: _raiseOnChange */
|
|
112
|
-
/* Excluded from this release type: __constructor */
|
|
113
112
|
/**
|
|
114
113
|
* Returns the command with the given id.
|
|
115
114
|
* Returns undefined if there is not command with the given id.
|
|
@@ -246,7 +245,7 @@ export declare class FieldCustomizerContext extends ExtensionContext {
|
|
|
246
245
|
/* Excluded from this release type: FormActionEventArgs */
|
|
247
246
|
|
|
248
247
|
/**
|
|
249
|
-
* Form Customizer Context. This object contains
|
|
248
|
+
* Form Customizer Context. This object contains contextual services and properties for the form.
|
|
250
249
|
*
|
|
251
250
|
* @public
|
|
252
251
|
*/
|
package/dist/index-internal.d.ts
CHANGED
|
@@ -7,13 +7,13 @@
|
|
|
7
7
|
import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
8
8
|
import { ExtensionContext } from '@microsoft/sp-extension-base';
|
|
9
9
|
import { FormDisplayMode } from '@microsoft/sp-core-library';
|
|
10
|
-
import { Guid } from '@microsoft/sp-core-library';
|
|
11
|
-
import { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
|
|
10
|
+
import type { Guid } from '@microsoft/sp-core-library';
|
|
11
|
+
import type { ICommandSetExtensionManifest } from '@microsoft/sp-module-interfaces';
|
|
12
12
|
import { IDisposable } from '@microsoft/sp-core-library';
|
|
13
13
|
import type { IODataListItem } from '@microsoft/sp-odata-types';
|
|
14
14
|
import { SPEvent } from '@microsoft/sp-core-library';
|
|
15
15
|
import { SPEventArgs } from '@microsoft/sp-core-library';
|
|
16
|
-
import { SPField } from '@microsoft/sp-page-context';
|
|
16
|
+
import type { SPField } from '@microsoft/sp-page-context';
|
|
17
17
|
|
|
18
18
|
/**
|
|
19
19
|
* This is the base class that third parties should extend when implementing
|
|
@@ -109,7 +109,6 @@ export declare abstract class BaseListViewCommandSet<TProperties> extends BaseEx
|
|
|
109
109
|
*/
|
|
110
110
|
readonly context: ListViewCommandSetContext;
|
|
111
111
|
/* Excluded from this release type: _raiseOnChange */
|
|
112
|
-
/* Excluded from this release type: __constructor */
|
|
113
112
|
/**
|
|
114
113
|
* Returns the command with the given id.
|
|
115
114
|
* Returns undefined if there is not command with the given id.
|
|
@@ -246,7 +245,7 @@ export declare class FieldCustomizerContext extends ExtensionContext {
|
|
|
246
245
|
/* Excluded from this release type: FormActionEventArgs */
|
|
247
246
|
|
|
248
247
|
/**
|
|
249
|
-
* Form Customizer Context. This object contains
|
|
248
|
+
* Form Customizer Context. This object contains contextual services and properties for the form.
|
|
250
249
|
*
|
|
251
250
|
* @public
|
|
252
251
|
*/
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.18.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 c}),n.d(t,"Command",function(){return d}),n.d(t,"ListViewCommandSetContext",function(){return u}),n.d(t,"BaseFieldCustomizer",function(){return p}),n.d(t,"FieldCustomizerContext",function(){return m}),n.d(t,"BaseFormCustomizer",function(){return g}),n.d(t,"FormCustomizerContext",function(){return v}),n.d(t,"FormCustomizerHost",function(){return y}),n.d(t,"FormActionEventArgs",function(){return h}),n.d(t,"FormAction",function(){return a}),n.d(t,"ListItemAccessor",function(){return S}),n.d(t,"ColumnAccessor",function(){return D}),n.d(t,"RowAccessor",function(){return I}),n.d(t,"SelectedRowsChangedEventArgs",function(){return x}),n.d(t,"ListViewStateChangedEventArgs",function(){return C}),n.d(t,"ListViewAccessor",function(){return O}),n.d(t,"ListViewAccessorStateChanges",function(){return _});var a,i=n("17wl"),r=n("UWqr"),o=n("ZFc5"),s=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||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=s,d=function(){},l=n("X+PM"),u=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 d=i[c].iconImageUrl;d&&!r.UrlUtilities.isDataUrl(d)&&(d=r.UrlUtilities.resolve(d,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:d,visible:!0,disabled:void 0})}}return a._commandArray.length&&a.serviceScope.whenFinished(function(){var e=a.serviceScope.consume(l.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),f=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="".concat(e.fieldValue);e.fieldValue.innerText=t},t.prototype.onDisposeCell=function(e){},t}(o.BaseExtension),p=f,m=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);!function(e){e[e.Save=0]="Save",e[e.Close=1]="Close"}(a||(a={}));var _,h=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return Object(i.__extends)(t,e),t}(r.SPEventArgs),b=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n._formActionEvent=new r.SPEvent(t._formActionEventName),n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"domElement",{get:function(){return this.context.domElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formActionEvent",{get:function(){return this._formActionEvent},enumerable:!1,configurable:!0}),t.prototype._init=function(t,n,a){return a&&(this._displayMode=a.displayMode),e.prototype._init.call(this,t,n,a)},t.prototype._internalRender=function(){this.render()},t.prototype._internalSetDisplayMode=function(e){this._displayMode=e},t.prototype._save=function(){r._SPEventManager.instance.raiseStickyEvent(t._formActionEventName,new h(a.Save))},t.prototype._close=function(){r._SPEventManager.instance.raiseStickyEvent(t._formActionEventName,new h(a.Close))},t.prototype.dispose=function(){r._SPEventManager.instance.removeEvent(t._formActionEventName),e.prototype.dispose.call(this)},t.prototype._initializeExtensionType=function(){e.prototype._initializeExtensionType.call(this),this.context._host.logEngagement("init")},t.prototype.formSaved=function(){this.context._host.onSave()},t.prototype.formClosed=function(){this.context._host.onClose()},t._formActionEventName="formCustomizer.formAction",t}(o.BaseExtension),g=b,v=function(e){function t(t,n){var a=e.call(this,t)||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 Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"list",{get:function(){return this._list},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentType",{get:function(){return this._contentType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"folderInfo",{get:function(){return this._folderInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this._itemId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this._item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domElement",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_host",{get:function(){return this._formCustomizerHost},enumerable:!1,configurable:!0}),t}(o.ExtensionContext),y=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}(),S=function(){},D=function(){},I=function(e){function t(){return e.call(this)||this}return Object(i.__extends)(t,e),t}(S),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(r.SPEventArgs),C=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(r.SPEventArgs),O=function(){function e(t){this._isDisposed=!1,this._selectedRowsChangedEvent=new r.SPEvent(e._selectedRowsChangedEventName),this._listViewStateChangedEventName="".concat(e._listViewStateChangedEventName).concat(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"}(_||(_={}))}})});
|
package/dist/tsdoc-metadata.json
CHANGED
|
@@ -19,11 +19,8 @@ var sp_extension_base_1 = require("@microsoft/sp-extension-base");
|
|
|
19
19
|
*/
|
|
20
20
|
var BaseListViewCommandSet = /** @class */ (function (_super) {
|
|
21
21
|
tslib_1.__extends(BaseListViewCommandSet, _super);
|
|
22
|
-
/**
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
22
|
function BaseListViewCommandSet() {
|
|
26
|
-
var _this = _super.
|
|
23
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
27
24
|
/**
|
|
28
25
|
* @internal
|
|
29
26
|
*/
|
|
@@ -39,7 +39,7 @@ var ListViewCommandSetContext = /** @class */ (function (_super) {
|
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
// updating title and ariaLabel based on UI culture
|
|
42
|
-
if (
|
|
42
|
+
if (_this._commandArray.length) {
|
|
43
43
|
_this.serviceScope.whenFinished(function () {
|
|
44
44
|
var pageContext = _this.serviceScope.consume(sp_page_context_1.PageContext.serviceKey);
|
|
45
45
|
var currentUICulture = pageContext.cultureInfo.currentUICultureName;
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var sp_extension_base_1 = require("@microsoft/sp-extension-base");
|
|
5
5
|
/**
|
|
6
|
-
* Form Customizer Context. This object contains
|
|
6
|
+
* Form Customizer Context. This object contains contextual services and properties for the form.
|
|
7
7
|
*
|
|
8
8
|
* @public
|
|
9
9
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/sp-listview-extensibility",
|
|
3
|
-
"version": "1.18.0-beta.
|
|
3
|
+
"version": "1.18.0-beta.3",
|
|
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,16 +11,17 @@
|
|
|
11
11
|
"tsdocFlavor": "AEDoc"
|
|
12
12
|
},
|
|
13
13
|
"devDependencies": {
|
|
14
|
-
"@rushstack/heft": "0.
|
|
15
|
-
"
|
|
14
|
+
"@rushstack/heft": "0.56.0",
|
|
15
|
+
"eslint": "8.7.0",
|
|
16
|
+
"@microsoft/sp-odata-types": "1.18.0-beta.3",
|
|
16
17
|
"@ms/spfx-internal-web-build-next-rig": "0.1.0"
|
|
17
18
|
},
|
|
18
19
|
"dependencies": {
|
|
19
20
|
"tslib": "2.3.1",
|
|
20
|
-
"@microsoft/sp-core-library": "1.18.0-beta.
|
|
21
|
-
"@microsoft/sp-extension-base": "1.18.0-beta.
|
|
22
|
-
"@microsoft/sp-module-interfaces": "1.18.0-beta.
|
|
23
|
-
"@microsoft/sp-page-context": "1.18.0-beta.
|
|
21
|
+
"@microsoft/sp-core-library": "1.18.0-beta.3",
|
|
22
|
+
"@microsoft/sp-extension-base": "1.18.0-beta.3",
|
|
23
|
+
"@microsoft/sp-module-interfaces": "1.18.0-beta.3",
|
|
24
|
+
"@microsoft/sp-page-context": "1.18.0-beta.3"
|
|
24
25
|
},
|
|
25
26
|
"engines": {
|
|
26
27
|
"node": ">=12.13.0 <13.0.0 || >=14.15.0 <15.0.0 || >=16.13.0 <17.0.0"
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
define("d37b65ee-c7d8-4570-bc74-2b294ff3b380_1.18.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,"BaseFormCustomizer",function(){return b}),n.d(t,"FormCustomizerContext",function(){return g}),n.d(t,"FormCustomizerHost",function(){return v}),n.d(t,"FormActionEventArgs",function(){return _}),n.d(t,"FormAction",function(){return a}),n.d(t,"ListItemAccessor",function(){return y}),n.d(t,"ColumnAccessor",function(){return S}),n.d(t,"RowAccessor",function(){return D}),n.d(t,"SelectedRowsChangedEventArgs",function(){return I}),n.d(t,"ListViewStateChangedEventArgs",function(){return x}),n.d(t,"ListViewAccessor",function(){return C}),n.d(t,"ListViewAccessorStateChanges",function(){return m});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,disabled:void 0})}}return 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="".concat(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);!function(e){e[e.Save=0]="Save",e[e.Close=1]="Close"}(a||(a={}));var m,_=function(e){function t(t){var n=e.call(this)||this;return n.action=t,n}return Object(i.__extends)(t,e),t}(r.SPEventArgs),h=function(e){function t(){var n=null!==e&&e.apply(this,arguments)||this;return n._formActionEvent=new r.SPEvent(t._formActionEventName),n}return Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"domElement",{get:function(){return this.context.domElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"displayMode",{get:function(){return this._displayMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"formActionEvent",{get:function(){return this._formActionEvent},enumerable:!1,configurable:!0}),t.prototype._init=function(t,n,a){return a&&(this._displayMode=a.displayMode),e.prototype._init.call(this,t,n,a)},t.prototype._internalRender=function(){this.render()},t.prototype._internalSetDisplayMode=function(e){this._displayMode=e},t.prototype._save=function(){r._SPEventManager.instance.raiseStickyEvent(t._formActionEventName,new _(a.Save))},t.prototype._close=function(){r._SPEventManager.instance.raiseStickyEvent(t._formActionEventName,new _(a.Close))},t.prototype.dispose=function(){r._SPEventManager.instance.removeEvent(t._formActionEventName),e.prototype.dispose.call(this)},t.prototype._initializeExtensionType=function(){e.prototype._initializeExtensionType.call(this),this.context._host.logEngagement("init")},t.prototype.formSaved=function(){this.context._host.onSave()},t.prototype.formClosed=function(){this.context._host.onClose()},t._formActionEventName="formCustomizer.formAction",t}(o.BaseExtension),b=h,g=function(e){function t(t,n){var a=e.call(this,t)||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 Object(i.__extends)(t,e),Object.defineProperty(t.prototype,"list",{get:function(){return this._list},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"contentType",{get:function(){return this._contentType},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"folderInfo",{get:function(){return this._folderInfo},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"itemId",{get:function(){return this._itemId},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"item",{get:function(){return this._item},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"domElement",{get:function(){return this._domElement},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"_host",{get:function(){return this._formCustomizerHost},enumerable:!1,configurable:!0}),t}(o.ExtensionContext),v=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}(),y=function(){},S=function(){},D=function(e){function t(){return e.call(this)||this}return Object(i.__extends)(t,e),t}(y),I=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(r.SPEventArgs),x=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(i.__extends)(t,e),t}(r.SPEventArgs),C=function(){function e(t){this._isDisposed=!1,this._selectedRowsChangedEvent=new r.SPEvent(e._selectedRowsChangedEventName),this._listViewStateChangedEventName="".concat(e._listViewStateChangedEventName).concat(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"}(m||(m={}))}})});
|