jitz-sharepoint-utilities 2.0.20 → 2.0.22

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.
@@ -445,9 +445,9 @@ export class JitzGrid<T extends IModel> extends React.Component<
445
445
  this.state.showingItems.length > 0) && (
446
446
  <div className="ms-Grid-row">
447
447
  <div className="ms-Grid-col ms-sm12 ms-md12 ms-lg12">
448
- <div className={this.props.outerGridClass || ""}>
449
- <div className={this.props.fixedGridWidthCss || ""}>
450
- {this.state.displayMode === DisplayMode.Grid && (
448
+ {this.state.displayMode === DisplayMode.Grid && (
449
+ <div className={this.props.outerGridClass || ""}>
450
+ <div className={this.props.fixedGridWidthCss || ""}>
451
451
  <DetailsList
452
452
  items={
453
453
  this.state.showingItems != undefined
@@ -471,9 +471,9 @@ export class JitzGrid<T extends IModel> extends React.Component<
471
471
  }
472
472
  selection={this._selection}
473
473
  />
474
- )}
474
+ </div>
475
475
  </div>
476
- </div>
476
+ )}
477
477
  {this.state.displayMode === DisplayMode.Tile &&
478
478
  this.state.showingItems != undefined &&
479
479
  this.state.showingItems.length > 0 &&
@@ -208,7 +208,8 @@ export class JitzPeoplePicker extends React.Component<
208
208
  );
209
209
  pers.imageUrl = UtilityService.getProfilePictureUrl(
210
210
  this.props.hostSiteUrl || this.props.context.siteUrl,
211
- pers.User.Email || ""
211
+ pers.User.Email || "",
212
+ "1"
212
213
  );
213
214
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
214
215
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${pers.User.Email}`;
@@ -312,7 +313,8 @@ export class JitzPeoplePicker extends React.Component<
312
313
  persons[index].User.Email ||
313
314
  persons[index].User.Key.substr(
314
315
  persons[index].User.Key.lastIndexOf("|") + 1
315
- )
316
+ ),
317
+ "1"
316
318
  );
317
319
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
318
320
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${
@@ -81,7 +81,8 @@ export class JitzPersonInfo extends React.Component<
81
81
  const userDetails = {
82
82
  imageUrl: UtilityService.getProfilePictureUrl(
83
83
  this.props.siteUrl || this.props.context!.siteUrl,
84
- this.props.email || this.state.user.email || ""
84
+ this.props.email || this.state.user.email || "",
85
+ "1"
85
86
  ),
86
87
  // this.props.imageUrl ||
87
88
  // (this.props.siteUrl || this.props.context!.siteUrl) +
@@ -567,12 +567,13 @@ var JitzGrid = /** @class */ (function (_super) {
567
567
  (this.state.showingItems == undefined ||
568
568
  this.state.showingItems.length > 0) && (React.createElement("div", { className: "ms-Grid-row" },
569
569
  React.createElement("div", { className: "ms-Grid-col ms-sm12 ms-md12 ms-lg12" },
570
- React.createElement("div", { className: this.props.outerGridClass || "" },
571
- React.createElement("div", { className: this.props.fixedGridWidthCss || "" }, this.state.displayMode === DisplayMode.Grid && (React.createElement(react_1.DetailsList, { items: this.state.showingItems != undefined
572
- ? this.state.showingItems
573
- : [], setKey: "Id", columns: this.state.columns, onRenderItemColumn: this._renderItemColumn, onColumnHeaderClick: this._onColumnClick, onItemInvoked: this._onItemInvoked, onShouldVirtualize: function () { return false; }, onColumnHeaderContextMenu: this._onColumnHeaderContextMenu, onActiveItemChanged: function (item, index) {
574
- _this.itemSelected(item, index);
575
- }, selectionMode: this.props.selectionMode || react_1.SelectionMode.none, selection: this._selection })))),
570
+ this.state.displayMode === DisplayMode.Grid && (React.createElement("div", { className: this.props.outerGridClass || "" },
571
+ React.createElement("div", { className: this.props.fixedGridWidthCss || "" },
572
+ React.createElement(react_1.DetailsList, { items: this.state.showingItems != undefined
573
+ ? this.state.showingItems
574
+ : [], setKey: "Id", columns: this.state.columns, onRenderItemColumn: this._renderItemColumn, onColumnHeaderClick: this._onColumnClick, onItemInvoked: this._onItemInvoked, onShouldVirtualize: function () { return false; }, onColumnHeaderContextMenu: this._onColumnHeaderContextMenu, onActiveItemChanged: function (item, index) {
575
+ _this.itemSelected(item, index);
576
+ }, selectionMode: this.props.selectionMode || react_1.SelectionMode.none, selection: this._selection })))),
576
577
  this.state.displayMode === DisplayMode.Tile &&
577
578
  this.state.showingItems != undefined &&
578
579
  this.state.showingItems.length > 0 &&
@@ -74,7 +74,7 @@ var JitzPeoplePicker = /** @class */ (function (_super) {
74
74
  })
75
75
  .then(function (res) {
76
76
  var pers = new IObjects_1.SharePointUserPersona(res);
77
- pers.imageUrl = UtilityService_1.default.getProfilePictureUrl(_this.props.hostSiteUrl || _this.props.context.siteUrl, pers.User.Email || "");
77
+ pers.imageUrl = UtilityService_1.default.getProfilePictureUrl(_this.props.hostSiteUrl || _this.props.context.siteUrl, pers.User.Email || "", "1");
78
78
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
79
79
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${pers.User.Email}`;
80
80
  var prepopulatedItems = _this.state.selectedItems;
@@ -228,7 +228,7 @@ var JitzPeoplePicker = /** @class */ (function (_super) {
228
228
  var persons = userQueryResults.map(function (p) { return new IObjects_1.SharePointUserPersona(p); });
229
229
  persons.map(function (p, index) {
230
230
  persons[index].imageUrl = UtilityService_1.default.getProfilePictureUrl(_this.props.hostSiteUrl || _this.props.context.siteUrl, persons[index].User.Email ||
231
- persons[index].User.Key.substr(persons[index].User.Key.lastIndexOf("|") + 1));
231
+ persons[index].User.Key.substr(persons[index].User.Key.lastIndexOf("|") + 1), "1");
232
232
  // (this.props.hostSiteUrl || this.props.context.siteUrl) +
233
233
  // `/_layouts/15/userphoto.aspx?size=S&accountname=${
234
234
  // persons[index].User.Email ||
@@ -71,7 +71,7 @@ var JitzPersonInfo = /** @class */ (function (_super) {
71
71
  JitzPersonInfo.prototype.render = function () {
72
72
  // const userDetails = this.state.user;
73
73
  var userDetails = {
74
- imageUrl: UtilityService_1.default.getProfilePictureUrl(this.props.siteUrl || this.props.context.siteUrl, this.props.email || this.state.user.email || ""),
74
+ imageUrl: UtilityService_1.default.getProfilePictureUrl(this.props.siteUrl || this.props.context.siteUrl, this.props.email || this.state.user.email || "", "1"),
75
75
  // this.props.imageUrl ||
76
76
  // (this.props.siteUrl || this.props.context!.siteUrl) +
77
77
  // `/_layouts/15/userphoto.aspx?size=${
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jitz-sharepoint-utilities",
3
- "version": "2.0.20",
3
+ "version": "2.0.22",
4
4
  "description": "Essential SharePoint utilities for SharePoint Add-in and SPFx development",
5
5
  "author": "Jithendra Mani",
6
6
  "license": "ISC",