jitz-sharepoint-utilities 2.0.22 → 2.0.23
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.
|
@@ -39,6 +39,7 @@ export interface IJitzPeoplePickerProps {
|
|
|
39
39
|
errorMessage?: string;
|
|
40
40
|
errorCss?: string;
|
|
41
41
|
multiSelect: boolean;
|
|
42
|
+
placeholderText?: string;
|
|
42
43
|
}
|
|
43
44
|
|
|
44
45
|
export class JitzPeoplePicker extends React.Component<
|
|
@@ -113,6 +114,7 @@ export class JitzPeoplePicker extends React.Component<
|
|
|
113
114
|
<NormalPeoplePicker
|
|
114
115
|
onChange={this._onChange.bind(this)}
|
|
115
116
|
disabled={this.state.disabled}
|
|
117
|
+
inputProps={{ placeholder: this.props.placeholderText || "" }}
|
|
116
118
|
onResolveSuggestions={this._onFilterChanged}
|
|
117
119
|
getTextFromItem={(persona: IPersonaProps) =>
|
|
118
120
|
persona.primaryText || ""
|
|
@@ -136,6 +138,7 @@ export class JitzPeoplePicker extends React.Component<
|
|
|
136
138
|
onChange={this._onChange.bind(this)}
|
|
137
139
|
onResolveSuggestions={this._onFilterChanged}
|
|
138
140
|
disabled={this.state.disabled}
|
|
141
|
+
inputProps={{ placeholder: this.props.placeholderText || "" }}
|
|
139
142
|
getTextFromItem={(persona: IPersonaProps) =>
|
|
140
143
|
persona.primaryText || ""
|
|
141
144
|
}
|
|
@@ -17,6 +17,7 @@ export interface IJitzPeoplePickerProps {
|
|
|
17
17
|
errorMessage?: string;
|
|
18
18
|
errorCss?: string;
|
|
19
19
|
multiSelect: boolean;
|
|
20
|
+
placeholderText?: string;
|
|
20
21
|
}
|
|
21
22
|
export declare class JitzPeoplePicker extends React.Component<IJitzPeoplePickerProps, IJitzPeoplePickerState> {
|
|
22
23
|
private _peopleList;
|
|
@@ -128,7 +128,7 @@ var JitzPeoplePicker = /** @class */ (function (_super) {
|
|
|
128
128
|
};
|
|
129
129
|
JitzPeoplePicker.prototype.render = function () {
|
|
130
130
|
if (this.props.typePicker == "Normal") {
|
|
131
|
-
return (React.createElement(react_1.NormalPeoplePicker, { onChange: this._onChange.bind(this), disabled: this.state.disabled, onResolveSuggestions: this._onFilterChanged, getTextFromItem: function (persona) {
|
|
131
|
+
return (React.createElement(react_1.NormalPeoplePicker, { onChange: this._onChange.bind(this), disabled: this.state.disabled, inputProps: { placeholder: this.props.placeholderText || "" }, onResolveSuggestions: this._onFilterChanged, getTextFromItem: function (persona) {
|
|
132
132
|
return persona.primaryText || "";
|
|
133
133
|
}, pickerSuggestionsProps: suggestionProps, selectedItems: this.state.selectedItems, className: "ms-PeoplePicker " +
|
|
134
134
|
(this.props.errorMessage != null &&
|
|
@@ -138,7 +138,7 @@ var JitzPeoplePicker = /** @class */ (function (_super) {
|
|
|
138
138
|
: ""), key: "normal" }));
|
|
139
139
|
}
|
|
140
140
|
else {
|
|
141
|
-
return (React.createElement(react_1.CompactPeoplePicker, { onChange: this._onChange.bind(this), onResolveSuggestions: this._onFilterChanged, disabled: this.state.disabled, getTextFromItem: function (persona) {
|
|
141
|
+
return (React.createElement(react_1.CompactPeoplePicker, { onChange: this._onChange.bind(this), onResolveSuggestions: this._onFilterChanged, disabled: this.state.disabled, inputProps: { placeholder: this.props.placeholderText || "" }, getTextFromItem: function (persona) {
|
|
142
142
|
return persona.primaryText || "";
|
|
143
143
|
}, pickerSuggestionsProps: suggestionProps, selectedItems: this.state.selectedItems, className: "ms-PeoplePicker" +
|
|
144
144
|
(this.props.errorMessage != null &&
|