@microsoft/sp-listview-extensibility 1.23.2 → 1.24.0-beta.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 +6 -11
- package/dist/sp-listview-extensibility_none_e2a79004ecc8bfd2e643.js +1 -0
- package/dist/tsdoc-metadata.json +1 -1
- package/lib-commonjs/commandSet/BaseListViewCommandSet.js +49 -49
- package/lib-commonjs/commandSet/Command.js +13 -9
- package/lib-commonjs/commandSet/ListViewCommandSetContext.js +54 -70
- package/lib-commonjs/common/Flights.js +14 -8
- package/lib-commonjs/common/IListItem.js +5 -2
- package/lib-commonjs/common/ListItemAccessor.js +15 -25
- package/lib-commonjs/common/ListViewAccessor.js +83 -135
- package/lib-commonjs/common/ListViewAccessorState.js +13 -10
- package/lib-commonjs/fieldCustomizer/BaseFieldCustomizer.js +25 -25
- package/lib-commonjs/fieldCustomizer/FieldCustomizerContext.js +36 -43
- package/lib-commonjs/formCustomizer/BaseFormCustomizer.js +93 -114
- package/lib-commonjs/formCustomizer/FormActionEventArgs.js +27 -26
- package/lib-commonjs/formCustomizer/FormCustomizerContext.js +61 -98
- package/lib-commonjs/formCustomizer/FormCustomizerHost.js +34 -33
- package/lib-commonjs/index.js +79 -37
- package/lib-esm/commandSet/BaseListViewCommandSet.js +61 -0
- package/{lib → lib-esm}/commandSet/Command.js +4 -8
- package/lib-esm/commandSet/ListViewCommandSetContext.js +67 -0
- package/{lib → lib-esm}/common/Flights.js +3 -2
- package/lib-esm/common/IListItem.js +7 -0
- package/{lib → lib-esm}/common/ListItemAccessor.js +8 -10
- package/lib-esm/common/ListViewAccessor.js +102 -0
- package/{lib → lib-esm}/common/ListViewAccessorState.js +3 -7
- package/lib-esm/fieldCustomizer/BaseFieldCustomizer.js +27 -0
- package/lib-esm/fieldCustomizer/FieldCustomizerContext.js +34 -0
- package/lib-esm/formCustomizer/BaseFormCustomizer.js +106 -0
- package/lib-esm/formCustomizer/FormActionEventArgs.js +18 -0
- package/lib-esm/formCustomizer/FormCustomizerContext.js +59 -0
- package/lib-esm/formCustomizer/FormCustomizerHost.js +47 -0
- package/{lib → lib-esm}/index.js +3 -3
- package/package.json +35 -8
- package/dist/sp-listview-extensibility_none_94ba6a6b18c530c5bdda.js +0 -1
- package/lib/commandSet/BaseListViewCommandSet.d.ts.map +0 -1
- package/lib/commandSet/BaseListViewCommandSet.js +0 -69
- package/lib/commandSet/Command.d.ts.map +0 -1
- package/lib/commandSet/ListViewCommandSetContext.d.ts.map +0 -1
- package/lib/commandSet/ListViewCommandSetContext.js +0 -87
- package/lib/common/Flights.d.ts.map +0 -1
- package/lib/common/IListItem.d.ts.map +0 -1
- package/lib/common/IListItem.js +0 -2
- package/lib/common/ListItemAccessor.d.ts.map +0 -1
- package/lib/common/ListViewAccessor.d.ts.map +0 -1
- package/lib/common/ListViewAccessor.js +0 -146
- package/lib/common/ListViewAccessorState.d.ts.map +0 -1
- package/lib/fieldCustomizer/BaseFieldCustomizer.d.ts.map +0 -1
- package/lib/fieldCustomizer/BaseFieldCustomizer.js +0 -35
- package/lib/fieldCustomizer/FieldCustomizerContext.d.ts.map +0 -1
- package/lib/fieldCustomizer/FieldCustomizerContext.js +0 -45
- package/lib/formCustomizer/BaseFormCustomizer.d.ts.map +0 -1
- package/lib/formCustomizer/BaseFormCustomizer.js +0 -135
- package/lib/formCustomizer/FormActionEventArgs.d.ts.map +0 -1
- package/lib/formCustomizer/FormActionEventArgs.js +0 -28
- package/lib/formCustomizer/FormCustomizerContext.d.ts.map +0 -1
- package/lib/formCustomizer/FormCustomizerContext.js +0 -99
- package/lib/formCustomizer/FormCustomizerHost.d.ts.map +0 -1
- package/lib/formCustomizer/FormCustomizerHost.js +0 -49
- package/lib/index.d.ts.map +0 -1
- /package/{lib → lib-dts}/commandSet/BaseListViewCommandSet.d.ts +0 -0
- /package/{lib → lib-dts}/commandSet/Command.d.ts +0 -0
- /package/{lib → lib-dts}/commandSet/ListViewCommandSetContext.d.ts +0 -0
- /package/{lib → lib-dts}/common/Flights.d.ts +0 -0
- /package/{lib → lib-dts}/common/IListItem.d.ts +0 -0
- /package/{lib → lib-dts}/common/ListItemAccessor.d.ts +0 -0
- /package/{lib → lib-dts}/common/ListViewAccessor.d.ts +0 -0
- /package/{lib → lib-dts}/common/ListViewAccessorState.d.ts +0 -0
- /package/{lib → lib-dts}/fieldCustomizer/BaseFieldCustomizer.d.ts +0 -0
- /package/{lib → lib-dts}/fieldCustomizer/FieldCustomizerContext.d.ts +0 -0
- /package/{lib → lib-dts}/formCustomizer/BaseFormCustomizer.d.ts +0 -0
- /package/{lib → lib-dts}/formCustomizer/FormActionEventArgs.d.ts +0 -0
- /package/{lib → lib-dts}/formCustomizer/FormCustomizerContext.d.ts +0 -0
- /package/{lib → lib-dts}/formCustomizer/FormCustomizerHost.d.ts +0 -0
- /package/{lib → lib-dts}/index.d.ts +0 -0
- /package/{lib → lib-esm}/sp-listview-extensibility.manifest.json +0 -0
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { ExtensionContext } from '@microsoft/sp-extension-base';
|
|
3
|
-
import { Text, UrlUtilities } from '@microsoft/sp-core-library';
|
|
4
|
-
import { PageContext } from '@microsoft/sp-page-context';
|
|
5
|
-
import { isSPFxListviewCommandSetGroupingEnabled } from '../common/Flights';
|
|
6
|
-
/**
|
|
7
|
-
* This object provides contextual information for BaseListViewCommandSet.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
var ListViewCommandSetContext = /** @class */ (function (_super) {
|
|
11
|
-
__extends(ListViewCommandSetContext, _super);
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
function ListViewCommandSetContext(extensionContextParameters, listViewCommandSetContextParameters) {
|
|
16
|
-
var _this = _super.call(this, extensionContextParameters) || this;
|
|
17
|
-
_this._listView = listViewCommandSetContextParameters.listView;
|
|
18
|
-
_this._commandArray = [];
|
|
19
|
-
var itemsMap = _this.manifest.items;
|
|
20
|
-
for (var _i = 0, _a = Object.keys(itemsMap); _i < _a.length; _i++) {
|
|
21
|
-
var itemId = _a[_i];
|
|
22
|
-
var isValidCommand = isSPFxListviewCommandSetGroupingEnabled()
|
|
23
|
-
? itemsMap[itemId].type === 'command' || itemsMap[itemId].type === 'group'
|
|
24
|
-
: itemsMap[itemId].type === 'command';
|
|
25
|
-
if (isValidCommand) {
|
|
26
|
-
var iconUrl = itemsMap[itemId].iconImageUrl;
|
|
27
|
-
if (iconUrl && !UrlUtilities.isDataUrl(iconUrl)) {
|
|
28
|
-
iconUrl = UrlUtilities.resolve(iconUrl, _this.manifest.loaderConfig.internalModuleBaseUrls[0]);
|
|
29
|
-
}
|
|
30
|
-
_this._commandArray.push({
|
|
31
|
-
id: itemId,
|
|
32
|
-
title: itemsMap[itemId].title.default || '',
|
|
33
|
-
ariaLabel: itemsMap[itemId].ariaLabel
|
|
34
|
-
? itemsMap[itemId].ariaLabel.default
|
|
35
|
-
: undefined,
|
|
36
|
-
iconImageUrl: iconUrl,
|
|
37
|
-
visible: true,
|
|
38
|
-
disabled: undefined
|
|
39
|
-
});
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
// updating title and ariaLabel based on UI culture
|
|
43
|
-
if (_this._commandArray.length) {
|
|
44
|
-
_this.serviceScope.whenFinished(function () {
|
|
45
|
-
var pageContext = _this.serviceScope.consume(PageContext.serviceKey);
|
|
46
|
-
var currentUICulture = pageContext.cultureInfo.currentUICultureName;
|
|
47
|
-
_this._commandArray.forEach(function (command) {
|
|
48
|
-
var item = itemsMap[command.id];
|
|
49
|
-
command.title = Text._getLocalizedString(item.title, currentUICulture) || '';
|
|
50
|
-
if (item.ariaLabel) {
|
|
51
|
-
command.ariaLabel = Text._getLocalizedString(item.ariaLabel, currentUICulture);
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
return _this;
|
|
57
|
-
}
|
|
58
|
-
Object.defineProperty(ListViewCommandSetContext.prototype, "listView", {
|
|
59
|
-
/**
|
|
60
|
-
* Provides access to the ListView control that the customizer will operate on.
|
|
61
|
-
*/
|
|
62
|
-
get: function () {
|
|
63
|
-
return this._listView;
|
|
64
|
-
},
|
|
65
|
-
enumerable: false,
|
|
66
|
-
configurable: true
|
|
67
|
-
});
|
|
68
|
-
Object.defineProperty(ListViewCommandSetContext.prototype, "_commands", {
|
|
69
|
-
/**
|
|
70
|
-
* Returns an array with all commands.
|
|
71
|
-
*
|
|
72
|
-
* @privateRemarks
|
|
73
|
-
* In the future commands won't be a flat list. This allows us to get all commands together, so we can
|
|
74
|
-
* provide a straight-forward API tryGetCommand in the BaseListViewCommandSet itself.
|
|
75
|
-
*
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
|
-
get: function () {
|
|
79
|
-
return this._commandArray;
|
|
80
|
-
},
|
|
81
|
-
enumerable: false,
|
|
82
|
-
configurable: true
|
|
83
|
-
});
|
|
84
|
-
return ListViewCommandSetContext;
|
|
85
|
-
}(ExtensionContext));
|
|
86
|
-
export default ListViewCommandSetContext;
|
|
87
|
-
//# sourceMappingURL=ListViewCommandSetContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Flights.d.ts","sourceRoot":"","sources":["../../src/common/Flights.ts"],"names":[],"mappings":"AAKA,wBAAgB,uCAAuC,IAAI,OAAO,CAEjE"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"IListItem.d.ts","sourceRoot":"","sources":["../../src/common/IListItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,SAAU,SAAQ,cAAc;CAAG"}
|
package/lib/common/IListItem.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListItemAccessor.d.ts","sourceRoot":"","sources":["../../src/common/ListItemAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D;;;;;;;;;;;;;;;GAeG;AACH,MAAM,CAAC,OAAO,CAAC,QAAQ,OAAO,gBAAgB;IAC5C,gBAAgB;;IAKhB;;;;;;;;OAQG;IACH,aAAoB,MAAM,IAAI,aAAa,CAAC,OAAO,CAAC,CAAC;IAErD;;;OAGG;aAEa,cAAc,CAAC,YAAY,EAAE,MAAM,GAAG,GAAG;IAEzD;;;OAGG;aAEa,QAAQ,CAAC,KAAK,EAAE,OAAO,GAAG,GAAG;CAC9C"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListViewAccessor.d.ts","sourceRoot":"","sources":["../../src/common/ListViewAccessor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,KAAK,WAAW,EAAE,OAAO,EAAE,WAAW,EAAmB,MAAM,4BAA4B,CAAC;AACrG,OAAO,gBAAgB,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EACV,OAAO,EACP,WAAW,EACX,KAAK,EACL,sBAAsB,EACtB,KAAK,EACL,4BAA4B,EAC7B,MAAM,yBAAyB,CAAC;AAEjC;;;;;;;;;;;;GAYG;AACH,8BAAsB,cAAc;IAClC,gBAAgB;;IAKhB;;;OAGG;IACH,aAAoB,KAAK,IAAI,OAAO,CAAC;IAErC;;;OAGG;IACH,aAAoB,OAAO,IAAI,OAAO,CAAC;CACxC;AAED;;;;;;;;;;;;;GAaG;AACH,8BAAsB,WAAY,SAAQ,gBAAgB;IACxD;;OAEG;;CAIJ;AAED;;;;GAIG;AACH,qBAAa,4BAA6B,SAAQ,WAAW;IAC3D;;OAEG;IACI,YAAY,EAAG,aAAa,CAAC,WAAW,CAAC,CAAC;CAClD;AAED;;;;GAIG;AACH,qBAA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BAAwB,IAAI,OAAO,CAAC,4BAA4B,CAAC,CAE3E;IAED;;;;OAIG;IACH,IAAW,yBAAyB,IAAI,OAAO,CAAC,6BAA6B,CAAC,CAE7E;IAED;;OAEG;IACI,OAAO,IAAI,IAAI;IAKtB;;OAEG;IACH,IAAW,UAAU,IAAI,OAAO,CAE/B;CACF;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { SPEvent, SPEventArgs, _SPEventManager } from '@microsoft/sp-core-library';
|
|
3
|
-
import ListItemAccessor from './ListItemAccessor';
|
|
4
|
-
/**
|
|
5
|
-
* Provides access to a ListView column, which is the visual presentation
|
|
6
|
-
* of a field.
|
|
7
|
-
*
|
|
8
|
-
* @remarks
|
|
9
|
-
*
|
|
10
|
-
* A SharePoint "field" (SPField) defines the data storage for a property of a list item.
|
|
11
|
-
* (If the list item represents a document, then the field is sometimes called a "property".)
|
|
12
|
-
*
|
|
13
|
-
* A "column" is the visual presentation of a field, when displayed by the ListView.
|
|
14
|
-
*
|
|
15
|
-
* @public
|
|
16
|
-
*/
|
|
17
|
-
var ColumnAccessor = /** @class */ (function () {
|
|
18
|
-
/** @internal */
|
|
19
|
-
function ColumnAccessor() {
|
|
20
|
-
// (mark constructor as internal)
|
|
21
|
-
}
|
|
22
|
-
return ColumnAccessor;
|
|
23
|
-
}());
|
|
24
|
-
export { ColumnAccessor };
|
|
25
|
-
/**
|
|
26
|
-
* Provides access to a ListView row, which is the visual presentation
|
|
27
|
-
* of a SharePoint list item.
|
|
28
|
-
*
|
|
29
|
-
* @remarks
|
|
30
|
-
*
|
|
31
|
-
* A SharePoint "list item" (SPListItem) is a data storage record in the content
|
|
32
|
-
* management system; it stores an array of values for the associated fields.
|
|
33
|
-
*
|
|
34
|
-
* A "row" is the visual presentation of a list item, when displayed by the ListView;
|
|
35
|
-
* it stores an array of cell values for the associated columns.
|
|
36
|
-
*
|
|
37
|
-
* @public
|
|
38
|
-
*/
|
|
39
|
-
var RowAccessor = /** @class */ (function (_super) {
|
|
40
|
-
__extends(RowAccessor, _super);
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
function RowAccessor() {
|
|
45
|
-
return _super.call(this) || this;
|
|
46
|
-
}
|
|
47
|
-
return RowAccessor;
|
|
48
|
-
}(ListItemAccessor));
|
|
49
|
-
export { RowAccessor };
|
|
50
|
-
/**
|
|
51
|
-
* Arguments for the selected rows changed event.
|
|
52
|
-
*
|
|
53
|
-
* @public
|
|
54
|
-
*/
|
|
55
|
-
var SelectedRowsChangedEventArgs = /** @class */ (function (_super) {
|
|
56
|
-
__extends(SelectedRowsChangedEventArgs, _super);
|
|
57
|
-
function SelectedRowsChangedEventArgs() {
|
|
58
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
59
|
-
}
|
|
60
|
-
return SelectedRowsChangedEventArgs;
|
|
61
|
-
}(SPEventArgs));
|
|
62
|
-
export { SelectedRowsChangedEventArgs };
|
|
63
|
-
/**
|
|
64
|
-
* Arguments for the list view state changed event.
|
|
65
|
-
*
|
|
66
|
-
* @public
|
|
67
|
-
*/
|
|
68
|
-
var ListViewStateChangedEventArgs = /** @class */ (function (_super) {
|
|
69
|
-
__extends(ListViewStateChangedEventArgs, _super);
|
|
70
|
-
function ListViewStateChangedEventArgs() {
|
|
71
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
72
|
-
}
|
|
73
|
-
return ListViewStateChangedEventArgs;
|
|
74
|
-
}(SPEventArgs));
|
|
75
|
-
export { ListViewStateChangedEventArgs };
|
|
76
|
-
/**
|
|
77
|
-
* Provides access to a SharePoint ListView control.
|
|
78
|
-
*
|
|
79
|
-
* @public
|
|
80
|
-
*/
|
|
81
|
-
var ListViewAccessor = /** @class */ (function () {
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
function ListViewAccessor(eventPrefix) {
|
|
86
|
-
this._isDisposed = false;
|
|
87
|
-
this._selectedRowsChangedEvent = new SPEvent(ListViewAccessor._selectedRowsChangedEventName);
|
|
88
|
-
this._listViewStateChangedEventName = "".concat(ListViewAccessor._listViewStateChangedEventName).concat(eventPrefix || '');
|
|
89
|
-
this._listViewStateChangedEvent = new SPEvent(this._listViewStateChangedEventName);
|
|
90
|
-
}
|
|
91
|
-
Object.defineProperty(ListViewAccessor.prototype, "selectedRowsChangedEvent", {
|
|
92
|
-
/**
|
|
93
|
-
* Event that gets raised every time the selected items in the list view change.
|
|
94
|
-
* @eventproperty
|
|
95
|
-
*/
|
|
96
|
-
get: function () {
|
|
97
|
-
return this._selectedRowsChangedEvent;
|
|
98
|
-
},
|
|
99
|
-
enumerable: false,
|
|
100
|
-
configurable: true
|
|
101
|
-
});
|
|
102
|
-
Object.defineProperty(ListViewAccessor.prototype, "listViewStateChangedEvent", {
|
|
103
|
-
/**
|
|
104
|
-
* Event that gets raised every time the list view state changes.
|
|
105
|
-
*
|
|
106
|
-
* @eventproperty
|
|
107
|
-
*/
|
|
108
|
-
get: function () {
|
|
109
|
-
return this._listViewStateChangedEvent;
|
|
110
|
-
},
|
|
111
|
-
enumerable: false,
|
|
112
|
-
configurable: true
|
|
113
|
-
});
|
|
114
|
-
/**
|
|
115
|
-
* @internal
|
|
116
|
-
*/
|
|
117
|
-
ListViewAccessor.prototype.dispose = function () {
|
|
118
|
-
_SPEventManager.instance.removeEvent(this._listViewStateChangedEventName);
|
|
119
|
-
this._isDisposed = true;
|
|
120
|
-
};
|
|
121
|
-
Object.defineProperty(ListViewAccessor.prototype, "isDisposed", {
|
|
122
|
-
/**
|
|
123
|
-
* @internal
|
|
124
|
-
*/
|
|
125
|
-
get: function () {
|
|
126
|
-
return this._isDisposed;
|
|
127
|
-
},
|
|
128
|
-
enumerable: false,
|
|
129
|
-
configurable: true
|
|
130
|
-
});
|
|
131
|
-
/**
|
|
132
|
-
* SPEvent name when the selected rows in a list have changed.
|
|
133
|
-
*
|
|
134
|
-
* @internal
|
|
135
|
-
*/
|
|
136
|
-
ListViewAccessor._selectedRowsChangedEventName = 'listView.selectedRowsChanged';
|
|
137
|
-
/**
|
|
138
|
-
* SPEvent name when the list view state has changed.
|
|
139
|
-
*
|
|
140
|
-
* @internal
|
|
141
|
-
*/
|
|
142
|
-
ListViewAccessor._listViewStateChangedEventName = 'listView.stateChanged';
|
|
143
|
-
return ListViewAccessor;
|
|
144
|
-
}());
|
|
145
|
-
export default ListViewAccessor;
|
|
146
|
-
//# sourceMappingURL=ListViewAccessor.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListViewAccessorState.d.ts","sourceRoot":"","sources":["../../src/common/ListViewAccessorState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAEvD;;;;GAIG;AACH,oBAAY,4BAA4B;IACtC,IAAI,IAAI;IACR,IAAI,IAAI;IACR,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,IAAI;IAChB,IAAI,KAAK;IACT,cAAc,KAAK;IACnB,IAAI,KAAK;IACT,UAAU,MAAM;CACjB;AAED;;;;GAIG;AACH,MAAM,WAAW,OAAO;IACtB;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAC;IAElB;;OAEG;IACH,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B;;OAEG;IACH,QAAQ,CAAC,UAAU,EAAE,OAAO,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,qBAAqB,EAAE,IAAI,GAAG,SAAS,CAAC;IAEjD;;;;;;OAMG;IACH,QAAQ,CAAC,6BAA6B,EAAE,MAAM,CAAC;CAChD;A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C,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,35 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { _ES5CompatibleClass } from '@microsoft/sp-core-library';
|
|
3
|
-
import { BaseExtension } from '@microsoft/sp-extension-base';
|
|
4
|
-
/**
|
|
5
|
-
* This is the base class that third parties should extend when implementing
|
|
6
|
-
* a client-side extension that customizes the appearance of fields in
|
|
7
|
-
* a SharePoint ListView.
|
|
8
|
-
*
|
|
9
|
-
* In the component manifest, the "extensionType" should be set to "FieldCustomizer".
|
|
10
|
-
*
|
|
11
|
-
* @public
|
|
12
|
-
*/
|
|
13
|
-
var BaseFieldCustomizer = /** @class */ (function (_super) {
|
|
14
|
-
__extends(BaseFieldCustomizer, _super);
|
|
15
|
-
function BaseFieldCustomizer() {
|
|
16
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
17
|
-
}
|
|
18
|
-
/*
|
|
19
|
-
* virtual
|
|
20
|
-
*/
|
|
21
|
-
BaseFieldCustomizer.prototype.onRenderCell = function (event) {
|
|
22
|
-
var text = "".concat(event.fieldValue);
|
|
23
|
-
event.fieldValue.innerText = text;
|
|
24
|
-
};
|
|
25
|
-
/*
|
|
26
|
-
* virtual
|
|
27
|
-
*/
|
|
28
|
-
BaseFieldCustomizer.prototype.onDisposeCell = function (event) {
|
|
29
|
-
// (implemented by child class)
|
|
30
|
-
};
|
|
31
|
-
return BaseFieldCustomizer;
|
|
32
|
-
}(BaseExtension));
|
|
33
|
-
_ES5CompatibleClass(BaseFieldCustomizer);
|
|
34
|
-
export default BaseFieldCustomizer;
|
|
35
|
-
//# sourceMappingURL=BaseFieldCustomizer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FieldCustomizerContext.d.ts","sourceRoot":"","sources":["../../src/fieldCustomizer/FieldCustomizerContext.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,KAAK,4BAA4B,EAAE,MAAM,8BAA8B,CAAC;AAEnG,OAAO,KAAK,gBAAgB,MAAM,4BAA4B,CAAC;AAE/D;;;;GAIG;AACH,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,QAAQ,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAChD,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,sBAAuB,SAAQ,gBAAgB;IAClE,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,MAAM,CAAU;IAExB;;OAEG;gBAED,0BAA0B,EAAE,4BAA4B,EACxD,gCAAgC,EAAE,iCAAiC;IAQrE;;;;;;;;;;OAUG;IACI,cAAc,IAAI,gBAAgB,GAAG,SAAS;IAIrD;;OAEG;IACH,IAAW,KAAK,IAAI,OAAO,CAE1B;CACF"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { ExtensionContext } from '@microsoft/sp-extension-base';
|
|
3
|
-
/**
|
|
4
|
-
* This object provides contextual information for BaseFieldCustomizer.
|
|
5
|
-
* @public
|
|
6
|
-
*/
|
|
7
|
-
var FieldCustomizerContext = /** @class */ (function (_super) {
|
|
8
|
-
__extends(FieldCustomizerContext, _super);
|
|
9
|
-
/**
|
|
10
|
-
* @internal
|
|
11
|
-
*/
|
|
12
|
-
function FieldCustomizerContext(extensionContextParameters, fieldCustomizerContextParameters) {
|
|
13
|
-
var _this = _super.call(this, extensionContextParameters) || this;
|
|
14
|
-
_this._listView = fieldCustomizerContextParameters.listView;
|
|
15
|
-
_this._field = fieldCustomizerContextParameters.field;
|
|
16
|
-
return _this;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* If the field customizer is bounded to the SharePoint list view, this provides access
|
|
20
|
-
* to the list view specific functionality; otherwise the value is undefined.
|
|
21
|
-
*
|
|
22
|
-
* @remarks
|
|
23
|
-
* Although the SharePoint list view is the main usage scenario, field customizers
|
|
24
|
-
* can be used by other user interface surfaces. For example, in the future SharePoint
|
|
25
|
-
* may support field customizers on a display/edit form.
|
|
26
|
-
*
|
|
27
|
-
* @returns the SharePoint list view, or undefined if there is none.
|
|
28
|
-
*/
|
|
29
|
-
FieldCustomizerContext.prototype.tryGetListView = function () {
|
|
30
|
-
return this._listView;
|
|
31
|
-
};
|
|
32
|
-
Object.defineProperty(FieldCustomizerContext.prototype, "field", {
|
|
33
|
-
/**
|
|
34
|
-
* Provides access to the SharePoint field that the customizer will operate on.
|
|
35
|
-
*/
|
|
36
|
-
get: function () {
|
|
37
|
-
return this._field;
|
|
38
|
-
},
|
|
39
|
-
enumerable: false,
|
|
40
|
-
configurable: true
|
|
41
|
-
});
|
|
42
|
-
return FieldCustomizerContext;
|
|
43
|
-
}(ExtensionContext));
|
|
44
|
-
export default FieldCustomizerContext;
|
|
45
|
-
//# sourceMappingURL=FieldCustomizerContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,WA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} from '@microsoft/sp-extension-base';
|
|
3
|
-
import { SPEvent, _SPEventManager, _ES5CompatibleClass } from '@microsoft/sp-core-library';
|
|
4
|
-
import { FormAction, FormActionEventArgs } from './FormActionEventArgs';
|
|
5
|
-
/**
|
|
6
|
-
* This is the base class that third parties should extend when implementing
|
|
7
|
-
* a client-side extension that provides a custom list form (display, new, edit) for a SharePoint list.
|
|
8
|
-
* @public
|
|
9
|
-
*/
|
|
10
|
-
var BaseFormCustomizer = /** @class */ (function (_super) {
|
|
11
|
-
__extends(BaseFormCustomizer, _super);
|
|
12
|
-
function BaseFormCustomizer() {
|
|
13
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
14
|
-
_this._formActionEvent = new SPEvent(BaseFormCustomizer._formActionEventName);
|
|
15
|
-
return _this;
|
|
16
|
-
}
|
|
17
|
-
Object.defineProperty(BaseFormCustomizer.prototype, "domElement", {
|
|
18
|
-
// Readonly protected properties. To change these to readonly once TypeScript supports that feature.
|
|
19
|
-
/**
|
|
20
|
-
* This property is a pointer to the root DOM element of the form. This is a DIV element and contains the whole
|
|
21
|
-
* DOM subtree of the form.
|
|
22
|
-
*
|
|
23
|
-
* @readonly
|
|
24
|
-
*/
|
|
25
|
-
get: function () {
|
|
26
|
-
return this.context.domElement;
|
|
27
|
-
},
|
|
28
|
-
enumerable: false,
|
|
29
|
-
configurable: true
|
|
30
|
-
});
|
|
31
|
-
Object.defineProperty(BaseFormCustomizer.prototype, "displayMode", {
|
|
32
|
-
/**
|
|
33
|
-
* Display mode of the form: Edit, Display or New.
|
|
34
|
-
*
|
|
35
|
-
* @readonly
|
|
36
|
-
*/
|
|
37
|
-
get: function () {
|
|
38
|
-
return this._displayMode;
|
|
39
|
-
},
|
|
40
|
-
enumerable: false,
|
|
41
|
-
configurable: true
|
|
42
|
-
});
|
|
43
|
-
Object.defineProperty(BaseFormCustomizer.prototype, "formActionEvent", {
|
|
44
|
-
/**
|
|
45
|
-
* Event that gets raised every time the selected items in the list view change.
|
|
46
|
-
* Reserved for the future.
|
|
47
|
-
*
|
|
48
|
-
* @eventproperty
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
get: function () {
|
|
52
|
-
return this._formActionEvent;
|
|
53
|
-
},
|
|
54
|
-
enumerable: false,
|
|
55
|
-
configurable: true
|
|
56
|
-
});
|
|
57
|
-
/**
|
|
58
|
-
* @internal
|
|
59
|
-
*/
|
|
60
|
-
BaseFormCustomizer.prototype._init = function (context, propertiesJson, additionalInitParameters) {
|
|
61
|
-
if (additionalInitParameters) {
|
|
62
|
-
this._displayMode = additionalInitParameters.displayMode;
|
|
63
|
-
}
|
|
64
|
-
return _super.prototype._init.call(this, context, propertiesJson, additionalInitParameters);
|
|
65
|
-
};
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
BaseFormCustomizer.prototype._internalRender = function () {
|
|
70
|
-
this.render();
|
|
71
|
-
};
|
|
72
|
-
/**
|
|
73
|
-
* Internal API to set form's display mode.
|
|
74
|
-
* @internal
|
|
75
|
-
*/
|
|
76
|
-
BaseFormCustomizer.prototype._internalSetDisplayMode = function (newDisplayMode) {
|
|
77
|
-
this._displayMode = newDisplayMode;
|
|
78
|
-
};
|
|
79
|
-
/**
|
|
80
|
-
* Use this method to initiate saving of the form.
|
|
81
|
-
*
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
BaseFormCustomizer.prototype._save = function () {
|
|
85
|
-
_SPEventManager.instance.raiseStickyEvent(BaseFormCustomizer._formActionEventName, new FormActionEventArgs(FormAction.Save));
|
|
86
|
-
};
|
|
87
|
-
/**
|
|
88
|
-
* Use this method to initiate closing/cancelling of the form.
|
|
89
|
-
*
|
|
90
|
-
* @internal
|
|
91
|
-
*/
|
|
92
|
-
BaseFormCustomizer.prototype._close = function () {
|
|
93
|
-
_SPEventManager.instance.raiseStickyEvent(BaseFormCustomizer._formActionEventName, new FormActionEventArgs(FormAction.Close));
|
|
94
|
-
};
|
|
95
|
-
/**
|
|
96
|
-
* Disposes the component.
|
|
97
|
-
*
|
|
98
|
-
* @remarks
|
|
99
|
-
* Please, do not override this method.
|
|
100
|
-
* Override the `onDispose` method instead.
|
|
101
|
-
*/
|
|
102
|
-
BaseFormCustomizer.prototype.dispose = function () {
|
|
103
|
-
_SPEventManager.instance.removeEvent(BaseFormCustomizer._formActionEventName);
|
|
104
|
-
_super.prototype.dispose.call(this);
|
|
105
|
-
};
|
|
106
|
-
/**
|
|
107
|
-
* @internal
|
|
108
|
-
*/
|
|
109
|
-
BaseFormCustomizer.prototype._initializeExtensionType = function () {
|
|
110
|
-
_super.prototype._initializeExtensionType.call(this);
|
|
111
|
-
this.context._host.logEngagement('init');
|
|
112
|
-
};
|
|
113
|
-
/**
|
|
114
|
-
* Call this method after the form has been saved to inform the application that the form has been saved.
|
|
115
|
-
*/
|
|
116
|
-
BaseFormCustomizer.prototype.formSaved = function () {
|
|
117
|
-
this.context._host.onSave();
|
|
118
|
-
};
|
|
119
|
-
/**
|
|
120
|
-
* Call this method after the form has been closed/cancelled to inform the application that the form has been closed.
|
|
121
|
-
*/
|
|
122
|
-
BaseFormCustomizer.prototype.formClosed = function () {
|
|
123
|
-
this.context._host.onClose();
|
|
124
|
-
};
|
|
125
|
-
/**
|
|
126
|
-
* SPEvent name when the form action should be performed.
|
|
127
|
-
*
|
|
128
|
-
* @internal
|
|
129
|
-
*/
|
|
130
|
-
BaseFormCustomizer._formActionEventName = 'formCustomizer.formAction';
|
|
131
|
-
return BaseFormCustomizer;
|
|
132
|
-
}(BaseExtension));
|
|
133
|
-
_ES5CompatibleClass(BaseFormCustomizer);
|
|
134
|
-
export default BaseFormCustomizer;
|
|
135
|
-
//# sourceMappingURL=BaseFormCustomizer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormActionEventArgs.d.ts","sourceRoot":"","sources":["../../src/formCustomizer/FormActionEventArgs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAC;AAEzD;;;;GAIG;AACH,oBAAY,UAAU;IACpB,IAAI,IAAA;IACJ,KAAK,IAAA;CACN;AAED;;;;GAIG;AACH,qBAAa,mBAAoB,SAAQ,WAAW;IAClD;;OAEG;IACI,MAAM,EAAG,UAAU,CAAC;gBAER,UAAU,EAAE,UAAU;CAI1C"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { SPEventArgs } from '@microsoft/sp-core-library';
|
|
3
|
-
/**
|
|
4
|
-
* Available Form actions.
|
|
5
|
-
*
|
|
6
|
-
* @internal
|
|
7
|
-
*/
|
|
8
|
-
export var FormAction;
|
|
9
|
-
(function (FormAction) {
|
|
10
|
-
FormAction[FormAction["Save"] = 0] = "Save";
|
|
11
|
-
FormAction[FormAction["Close"] = 1] = "Close";
|
|
12
|
-
})(FormAction || (FormAction = {}));
|
|
13
|
-
/**
|
|
14
|
-
* Arguments for the form close/save event.
|
|
15
|
-
*
|
|
16
|
-
* @internal
|
|
17
|
-
*/
|
|
18
|
-
var FormActionEventArgs = /** @class */ (function (_super) {
|
|
19
|
-
__extends(FormActionEventArgs, _super);
|
|
20
|
-
function FormActionEventArgs(formAction) {
|
|
21
|
-
var _this = _super.call(this) || this;
|
|
22
|
-
_this.action = formAction;
|
|
23
|
-
return _this;
|
|
24
|
-
}
|
|
25
|
-
return FormActionEventArgs;
|
|
26
|
-
}(SPEventArgs));
|
|
27
|
-
export { FormActionEventArgs };
|
|
28
|
-
//# sourceMappingURL=FormActionEventArgs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,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,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"}
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { __extends } from "tslib";
|
|
2
|
-
import { ExtensionContext } from '@microsoft/sp-extension-base';
|
|
3
|
-
/**
|
|
4
|
-
* Form Customizer Context. This object contains contextual services and properties for the form.
|
|
5
|
-
*
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
var FormCustomizerContext = /** @class */ (function (_super) {
|
|
9
|
-
__extends(FormCustomizerContext, _super);
|
|
10
|
-
/**
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
function FormCustomizerContext(extensionContextParameters, formCustomizerContextParameters) {
|
|
14
|
-
var _this = _super.call(this, extensionContextParameters) || this;
|
|
15
|
-
_this._list = formCustomizerContextParameters.list;
|
|
16
|
-
_this._contentType = formCustomizerContextParameters.contentType;
|
|
17
|
-
_this._folderInfo = formCustomizerContextParameters.folderInfo;
|
|
18
|
-
_this._itemId = formCustomizerContextParameters.itemId;
|
|
19
|
-
_this._item = formCustomizerContextParameters.item;
|
|
20
|
-
_this._domElement = formCustomizerContextParameters.domElement;
|
|
21
|
-
_this._formCustomizerHost = formCustomizerContextParameters.host;
|
|
22
|
-
return _this;
|
|
23
|
-
}
|
|
24
|
-
Object.defineProperty(FormCustomizerContext.prototype, "list", {
|
|
25
|
-
/**
|
|
26
|
-
* The list associated with the form.
|
|
27
|
-
*/
|
|
28
|
-
get: function () {
|
|
29
|
-
return this._list;
|
|
30
|
-
},
|
|
31
|
-
enumerable: false,
|
|
32
|
-
configurable: true
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(FormCustomizerContext.prototype, "contentType", {
|
|
35
|
-
/**
|
|
36
|
-
* The content type associated with the form.
|
|
37
|
-
*/
|
|
38
|
-
get: function () {
|
|
39
|
-
return this._contentType;
|
|
40
|
-
},
|
|
41
|
-
enumerable: false,
|
|
42
|
-
configurable: true
|
|
43
|
-
});
|
|
44
|
-
Object.defineProperty(FormCustomizerContext.prototype, "folderInfo", {
|
|
45
|
-
/**
|
|
46
|
-
* The folder information where the item is located/should be created.
|
|
47
|
-
*/
|
|
48
|
-
get: function () {
|
|
49
|
-
return this._folderInfo;
|
|
50
|
-
},
|
|
51
|
-
enumerable: false,
|
|
52
|
-
configurable: true
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(FormCustomizerContext.prototype, "itemId", {
|
|
55
|
-
/**
|
|
56
|
-
* The item id of the item being edited or viewed.
|
|
57
|
-
*/
|
|
58
|
-
get: function () {
|
|
59
|
-
return this._itemId;
|
|
60
|
-
},
|
|
61
|
-
enumerable: false,
|
|
62
|
-
configurable: true
|
|
63
|
-
});
|
|
64
|
-
Object.defineProperty(FormCustomizerContext.prototype, "item", {
|
|
65
|
-
/**
|
|
66
|
-
* The item data of the item being edited or viewed.
|
|
67
|
-
*/
|
|
68
|
-
get: function () {
|
|
69
|
-
return this._item;
|
|
70
|
-
},
|
|
71
|
-
enumerable: false,
|
|
72
|
-
configurable: true
|
|
73
|
-
});
|
|
74
|
-
Object.defineProperty(FormCustomizerContext.prototype, "domElement", {
|
|
75
|
-
/**
|
|
76
|
-
* The root DOM element of the form. This is a DIV element container for the custom form.
|
|
77
|
-
*/
|
|
78
|
-
get: function () {
|
|
79
|
-
return this._domElement;
|
|
80
|
-
},
|
|
81
|
-
enumerable: false,
|
|
82
|
-
configurable: true
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(FormCustomizerContext.prototype, "_host", {
|
|
85
|
-
/**
|
|
86
|
-
* Form host to interact with the host application.
|
|
87
|
-
*
|
|
88
|
-
* @internal
|
|
89
|
-
*/
|
|
90
|
-
get: function () {
|
|
91
|
-
return this._formCustomizerHost;
|
|
92
|
-
},
|
|
93
|
-
enumerable: false,
|
|
94
|
-
configurable: true
|
|
95
|
-
});
|
|
96
|
-
return FormCustomizerContext;
|
|
97
|
-
}(ExtensionContext));
|
|
98
|
-
export default FormCustomizerContext;
|
|
99
|
-
//# sourceMappingURL=FormCustomizerContext.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FormCustomizerHost.d.ts","sourceRoot":"","sources":["../../src/formCustomizer/FormCustomizerHost.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,MAAM,WAAW,6BAA6B;IAC5C,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B,eAAe,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1C,aAAa,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,CAAC;CAC7C;AAED;;;;GAIG;AACH,qBAAa,kBAAkB;IAC7B,OAAO,CAAC,QAAQ,CAAC,eAAe,CAAa;IAC7C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAa;IAC9C,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAwC;IACzE,OAAO,CAAC,QAAQ,CAAC,cAAc,CAA4C;gBAExD,MAAM,EAAE,6BAA6B;IAOxD;;OAEG;IACI,MAAM,IAAI,IAAI;IAKrB;;OAEG;IACI,OAAO,IAAI,IAAI;IAKtB;;;OAGG;IACI,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI;IAOnC;;;OAGG;IACI,aAAa,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI;CAK9C"}
|