@salesforce/design-system-react 0.10.45 → 0.10.46
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/components/combobox/combobox.d.ts +3 -0
- package/components/combobox/combobox.jsx +3 -0
- package/components/component-docs.json +5 -1
- package/components/data-table/index.jsx +6 -2
- package/components/pill-container/__docs__/__snapshots__/storybook-stories.storyshot +15 -15
- package/components/pill-container/private/selected-listbox.jsx +1 -0
- package/components/slider.d.ts +10 -4
- package/lib/components/combobox/combobox.d.ts +3 -0
- package/lib/components/combobox/combobox.js +3 -0
- package/lib/components/component-docs.json +5 -1
- package/lib/components/data-table/index.js +7 -3
- package/lib/components/pill-container/__docs__/__snapshots__/storybook-stories.storyshot +15 -15
- package/lib/components/pill-container/private/selected-listbox.js +3 -0
- package/lib/components/slider.d.ts +10 -4
- package/lib/package.json +2 -2
- package/module/components/combobox/combobox.d.ts +3 -0
- package/module/components/combobox/combobox.js +3 -0
- package/module/components/combobox/combobox.js.map +1 -1
- package/module/components/component-docs.json +5 -1
- package/module/components/data-table/index.js +7 -3
- package/module/components/data-table/index.js.map +1 -1
- package/module/components/pill-container/__docs__/__snapshots__/storybook-stories.storyshot +15 -15
- package/module/components/pill-container/private/selected-listbox.js +3 -0
- package/module/components/pill-container/private/selected-listbox.js.map +1 -1
- package/module/components/slider.d.ts +10 -4
- package/package.json +2 -2
|
@@ -162,6 +162,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
162
162
|
* * `id`: A unique identifier string.
|
|
163
163
|
* * `label`: A primary string of text for a menu item or group separator.
|
|
164
164
|
* * `subTitle`: A secondary string of text added for clarity. (optional)
|
|
165
|
+
* * `title`: A string of text shown as the title of the selected item (optional)
|
|
165
166
|
* * `type`: 'separator' is the only type currently used
|
|
166
167
|
* * `disabled`: Set to true to disable this menu item.
|
|
167
168
|
* * `tooltipContent`: Content that is displayed in tooltip when item is disabled
|
|
@@ -170,6 +171,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
170
171
|
* id: '2',
|
|
171
172
|
* label: 'Salesforce.com, Inc.',
|
|
172
173
|
* subTitle: 'Account • San Francisco',
|
|
174
|
+
* title: 'Salesforce',
|
|
173
175
|
* type: 'account',
|
|
174
176
|
* disabled: true,
|
|
175
177
|
* tooltipContent: "You don't have permission to select this item."
|
|
@@ -182,6 +184,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
182
184
|
icon?: React.ReactNode;
|
|
183
185
|
label?: string;
|
|
184
186
|
subTitle?: string;
|
|
187
|
+
title?: string;
|
|
185
188
|
type?: string;
|
|
186
189
|
disabled?: boolean;
|
|
187
190
|
tooltipContent?: React.ReactNode;
|
|
@@ -235,6 +235,7 @@ const propTypes = {
|
|
|
235
235
|
* * `id`: A unique identifier string.
|
|
236
236
|
* * `label`: A primary string of text for a menu item or group separator.
|
|
237
237
|
* * `subTitle`: A secondary string of text added for clarity. (optional)
|
|
238
|
+
* * `title`: A string of text shown as the title of the selected item (optional)
|
|
238
239
|
* * `type`: 'separator' is the only type currently used
|
|
239
240
|
* * `disabled`: Set to true to disable this menu item.
|
|
240
241
|
* * `tooltipContent`: Content that is displayed in tooltip when item is disabled
|
|
@@ -243,6 +244,7 @@ const propTypes = {
|
|
|
243
244
|
* id: '2',
|
|
244
245
|
* label: 'Salesforce.com, Inc.',
|
|
245
246
|
* subTitle: 'Account • San Francisco',
|
|
247
|
+
* title: 'Salesforce',
|
|
246
248
|
* type: 'account',
|
|
247
249
|
* disabled: true,
|
|
248
250
|
* tooltipContent: "You don't have permission to select this item."
|
|
@@ -256,6 +258,7 @@ const propTypes = {
|
|
|
256
258
|
icon: PropTypes.node,
|
|
257
259
|
label: PropTypes.string,
|
|
258
260
|
subTitle: PropTypes.string,
|
|
261
|
+
title: PropTypes.string,
|
|
259
262
|
type: PropTypes.string,
|
|
260
263
|
disabled: PropTypes.boolean,
|
|
261
264
|
tooltipContent: PropTypes.node,
|
|
@@ -4958,6 +4958,10 @@
|
|
|
4958
4958
|
"name": "string",
|
|
4959
4959
|
"required": false
|
|
4960
4960
|
},
|
|
4961
|
+
"title": {
|
|
4962
|
+
"name": "string",
|
|
4963
|
+
"required": false
|
|
4964
|
+
},
|
|
4961
4965
|
"type": {
|
|
4962
4966
|
"name": "string",
|
|
4963
4967
|
"required": false
|
|
@@ -4975,7 +4979,7 @@
|
|
|
4975
4979
|
}
|
|
4976
4980
|
},
|
|
4977
4981
|
"required": false,
|
|
4978
|
-
"description": "**Array of item objects in the dropdown menu.**\nEach object can contain:\n* `icon`: An `Icon` component. (not used in read-only variant)\n* `id`: A unique identifier string.\n* `label`: A primary string of text for a menu item or group separator.\n* `subTitle`: A secondary string of text added for clarity. (optional)\n* `type`: 'separator' is the only type currently used\n* `disabled`: Set to true to disable this menu item.\n* `tooltipContent`: Content that is displayed in tooltip when item is disabled\n```\n{\n\tid: '2',\n\tlabel: 'Salesforce.com, Inc.',\n\tsubTitle: 'Account • San Francisco',\n\ttype: 'account',\n disabled: true,\n tooltipContent: \"You don't have permission to select this item.\"\n},\n```\nNote: At the moment, Combobox does not support two consecutive separators. _Tested with snapshot testing._"
|
|
4982
|
+
"description": "**Array of item objects in the dropdown menu.**\nEach object can contain:\n* `icon`: An `Icon` component. (not used in read-only variant)\n* `id`: A unique identifier string.\n* `label`: A primary string of text for a menu item or group separator.\n* `subTitle`: A secondary string of text added for clarity. (optional)\n* `title`: A string of text shown as the title of the selected item (optional)\n* `type`: 'separator' is the only type currently used\n* `disabled`: Set to true to disable this menu item.\n* `tooltipContent`: Content that is displayed in tooltip when item is disabled\n```\n{\n\tid: '2',\n\tlabel: 'Salesforce.com, Inc.',\n\tsubTitle: 'Account • San Francisco',\n\ttitle: 'Salesforce',\n\ttype: 'account',\n disabled: true,\n tooltipContent: \"You don't have permission to select this item.\"\n},\n```\nNote: At the moment, Combobox does not support two consecutive separators. _Tested with snapshot testing._"
|
|
4979
4983
|
},
|
|
4980
4984
|
"menuItemVisibleLength": {
|
|
4981
4985
|
"type": {
|
|
@@ -113,14 +113,17 @@ const getAssistiveText = memoize(
|
|
|
113
113
|
);
|
|
114
114
|
|
|
115
115
|
const getColumnsAndRowActions = memoize(
|
|
116
|
-
(children, id, fixedHeader, fixedLayout, search) => {
|
|
116
|
+
(children, id, fixedHeader, fixedLayout, items, search) => {
|
|
117
117
|
const columns = [];
|
|
118
118
|
let RowActions = null;
|
|
119
119
|
|
|
120
120
|
React.Children.forEach(children, (child) => {
|
|
121
121
|
if (child && child.type.displayName === DataTableColumn.displayName) {
|
|
122
122
|
const { children: columnChildren, ...columnProps } = child.props;
|
|
123
|
-
const props = { fixedLayout, search,
|
|
123
|
+
const props = { fixedLayout, search, items, ...columnProps };
|
|
124
|
+
if (id) {
|
|
125
|
+
props.id = id;
|
|
126
|
+
}
|
|
124
127
|
|
|
125
128
|
let Cell;
|
|
126
129
|
if (
|
|
@@ -1102,6 +1105,7 @@ class DataTable extends React.Component {
|
|
|
1102
1105
|
this.props.id,
|
|
1103
1106
|
this.getFixedHeader(),
|
|
1104
1107
|
this.props.fixedLayout,
|
|
1108
|
+
this.props.items,
|
|
1105
1109
|
this.props.search
|
|
1106
1110
|
);
|
|
1107
1111
|
|
|
@@ -43,7 +43,7 @@ exports[`DOM snapshots SLDSPillContainer Bare Pill Container 1`] = `
|
|
|
43
43
|
>
|
|
44
44
|
<span
|
|
45
45
|
className="slds-pill__label"
|
|
46
|
-
title="
|
|
46
|
+
title="Full pill label verbiage mirrored here"
|
|
47
47
|
>
|
|
48
48
|
Pill Label 1
|
|
49
49
|
</span>
|
|
@@ -89,7 +89,7 @@ exports[`DOM snapshots SLDSPillContainer Bare Pill Container 1`] = `
|
|
|
89
89
|
>
|
|
90
90
|
<span
|
|
91
91
|
className="slds-pill__label"
|
|
92
|
-
title="
|
|
92
|
+
title="Full pill label verbiage mirrored here"
|
|
93
93
|
>
|
|
94
94
|
Pill Label 2
|
|
95
95
|
</span>
|
|
@@ -169,7 +169,7 @@ exports[`DOM snapshots SLDSPillContainer Base Pill Container 1`] = `
|
|
|
169
169
|
>
|
|
170
170
|
<span
|
|
171
171
|
className="slds-pill__label"
|
|
172
|
-
title="
|
|
172
|
+
title="Full pill label verbiage mirrored here"
|
|
173
173
|
>
|
|
174
174
|
Pill Label 1
|
|
175
175
|
</span>
|
|
@@ -215,7 +215,7 @@ exports[`DOM snapshots SLDSPillContainer Base Pill Container 1`] = `
|
|
|
215
215
|
>
|
|
216
216
|
<span
|
|
217
217
|
className="slds-pill__label"
|
|
218
|
-
title="
|
|
218
|
+
title="Full pill label verbiage mirrored here"
|
|
219
219
|
>
|
|
220
220
|
Pill Label 2
|
|
221
221
|
</span>
|
|
@@ -311,7 +311,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Avatars 1`] = `
|
|
|
311
311
|
</span>
|
|
312
312
|
<span
|
|
313
313
|
className="slds-pill__label"
|
|
314
|
-
title="
|
|
314
|
+
title="Full pill label verbiage mirrored here"
|
|
315
315
|
>
|
|
316
316
|
Pill Label 1
|
|
317
317
|
</span>
|
|
@@ -373,7 +373,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Avatars 1`] = `
|
|
|
373
373
|
</span>
|
|
374
374
|
<span
|
|
375
375
|
className="slds-pill__label"
|
|
376
|
-
title="
|
|
376
|
+
title="Full pill label verbiage mirrored here"
|
|
377
377
|
>
|
|
378
378
|
Pill Label 2
|
|
379
379
|
</span>
|
|
@@ -471,7 +471,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
471
471
|
</span>
|
|
472
472
|
<span
|
|
473
473
|
className="slds-pill__label"
|
|
474
|
-
title="
|
|
474
|
+
title="Full pill label verbiage mirrored here"
|
|
475
475
|
>
|
|
476
476
|
Pill Label 1
|
|
477
477
|
</span>
|
|
@@ -535,7 +535,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
535
535
|
</span>
|
|
536
536
|
<span
|
|
537
537
|
className="slds-pill__label"
|
|
538
|
-
title="
|
|
538
|
+
title="Full pill label verbiage mirrored here"
|
|
539
539
|
>
|
|
540
540
|
Pill Label 2
|
|
541
541
|
</span>
|
|
@@ -598,7 +598,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
598
598
|
</span>
|
|
599
599
|
<span
|
|
600
600
|
className="slds-pill__label"
|
|
601
|
-
title="
|
|
601
|
+
title="Full pill label verbiage mirrored here"
|
|
602
602
|
>
|
|
603
603
|
Pill Label 3
|
|
604
604
|
</span>
|
|
@@ -662,7 +662,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
662
662
|
</span>
|
|
663
663
|
<span
|
|
664
664
|
className="slds-pill__label"
|
|
665
|
-
title="
|
|
665
|
+
title="Full pill label verbiage mirrored here"
|
|
666
666
|
>
|
|
667
667
|
Pill Label 4
|
|
668
668
|
</span>
|
|
@@ -726,7 +726,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
726
726
|
</span>
|
|
727
727
|
<span
|
|
728
728
|
className="slds-pill__label"
|
|
729
|
-
title="
|
|
729
|
+
title="Full pill label verbiage mirrored here"
|
|
730
730
|
>
|
|
731
731
|
Pill Label 5
|
|
732
732
|
</span>
|
|
@@ -790,7 +790,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
790
790
|
</span>
|
|
791
791
|
<span
|
|
792
792
|
className="slds-pill__label"
|
|
793
|
-
title="
|
|
793
|
+
title="Full pill label verbiage mirrored here"
|
|
794
794
|
>
|
|
795
795
|
Pill Label 6
|
|
796
796
|
</span>
|
|
@@ -854,7 +854,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
854
854
|
</span>
|
|
855
855
|
<span
|
|
856
856
|
className="slds-pill__label"
|
|
857
|
-
title="
|
|
857
|
+
title="Full pill label verbiage mirrored here"
|
|
858
858
|
>
|
|
859
859
|
Pill Label 7
|
|
860
860
|
</span>
|
|
@@ -918,7 +918,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
918
918
|
</span>
|
|
919
919
|
<span
|
|
920
920
|
className="slds-pill__label"
|
|
921
|
-
title="
|
|
921
|
+
title="Full pill label verbiage mirrored here"
|
|
922
922
|
>
|
|
923
923
|
Pill Label 8
|
|
924
924
|
</span>
|
|
@@ -982,7 +982,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
982
982
|
</span>
|
|
983
983
|
<span
|
|
984
984
|
className="slds-pill__label"
|
|
985
|
-
title="
|
|
985
|
+
title="Full pill label verbiage mirrored here"
|
|
986
986
|
>
|
|
987
987
|
Pill Label 9
|
|
988
988
|
</span>
|
package/components/slider.d.ts
CHANGED
|
@@ -55,13 +55,19 @@ declare module '@salesforce/design-system-react/components/slider' {
|
|
|
55
55
|
*/
|
|
56
56
|
name?: string;
|
|
57
57
|
/**
|
|
58
|
-
* This event fires whenever the user has modified the data of the control. This callback recieves the following parameters `event, { value:
|
|
58
|
+
* This event fires whenever the user has modified the data of the control. This callback recieves the following parameters `event, { value: number }`.
|
|
59
59
|
*/
|
|
60
|
-
onChange?: (
|
|
60
|
+
onChange?: (
|
|
61
|
+
event: React.ChangeEvent<HTMLInputElement>,
|
|
62
|
+
{ value: number }
|
|
63
|
+
) => void;
|
|
61
64
|
/**
|
|
62
|
-
* This event fires when the value is committed. This callback recieves the following parameters `event, { value:
|
|
65
|
+
* This event fires when the value is committed. This callback recieves the following parameters `event, { value: number }`.
|
|
63
66
|
*/
|
|
64
|
-
onInput?: (
|
|
67
|
+
onInput?: (
|
|
68
|
+
event: React.ChangeEvent<HTMLInputElement>,
|
|
69
|
+
{ value: number }
|
|
70
|
+
) => void;
|
|
65
71
|
/**
|
|
66
72
|
* Size of the slider.
|
|
67
73
|
*/
|
|
@@ -162,6 +162,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
162
162
|
* * `id`: A unique identifier string.
|
|
163
163
|
* * `label`: A primary string of text for a menu item or group separator.
|
|
164
164
|
* * `subTitle`: A secondary string of text added for clarity. (optional)
|
|
165
|
+
* * `title`: A string of text shown as the title of the selected item (optional)
|
|
165
166
|
* * `type`: 'separator' is the only type currently used
|
|
166
167
|
* * `disabled`: Set to true to disable this menu item.
|
|
167
168
|
* * `tooltipContent`: Content that is displayed in tooltip when item is disabled
|
|
@@ -170,6 +171,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
170
171
|
* id: '2',
|
|
171
172
|
* label: 'Salesforce.com, Inc.',
|
|
172
173
|
* subTitle: 'Account • San Francisco',
|
|
174
|
+
* title: 'Salesforce',
|
|
173
175
|
* type: 'account',
|
|
174
176
|
* disabled: true,
|
|
175
177
|
* tooltipContent: "You don't have permission to select this item."
|
|
@@ -182,6 +184,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
182
184
|
icon?: React.ReactNode;
|
|
183
185
|
label?: string;
|
|
184
186
|
subTitle?: string;
|
|
187
|
+
title?: string;
|
|
185
188
|
type?: string;
|
|
186
189
|
disabled?: boolean;
|
|
187
190
|
tooltipContent?: React.ReactNode;
|
|
@@ -302,6 +302,7 @@ var propTypes = {
|
|
|
302
302
|
* * `id`: A unique identifier string.
|
|
303
303
|
* * `label`: A primary string of text for a menu item or group separator.
|
|
304
304
|
* * `subTitle`: A secondary string of text added for clarity. (optional)
|
|
305
|
+
* * `title`: A string of text shown as the title of the selected item (optional)
|
|
305
306
|
* * `type`: 'separator' is the only type currently used
|
|
306
307
|
* * `disabled`: Set to true to disable this menu item.
|
|
307
308
|
* * `tooltipContent`: Content that is displayed in tooltip when item is disabled
|
|
@@ -310,6 +311,7 @@ var propTypes = {
|
|
|
310
311
|
* id: '2',
|
|
311
312
|
* label: 'Salesforce.com, Inc.',
|
|
312
313
|
* subTitle: 'Account • San Francisco',
|
|
314
|
+
* title: 'Salesforce',
|
|
313
315
|
* type: 'account',
|
|
314
316
|
* disabled: true,
|
|
315
317
|
* tooltipContent: "You don't have permission to select this item."
|
|
@@ -322,6 +324,7 @@ var propTypes = {
|
|
|
322
324
|
icon: _propTypes.default.node,
|
|
323
325
|
label: _propTypes.default.string,
|
|
324
326
|
subTitle: _propTypes.default.string,
|
|
327
|
+
title: _propTypes.default.string,
|
|
325
328
|
type: _propTypes.default.string,
|
|
326
329
|
disabled: _propTypes.default.boolean,
|
|
327
330
|
tooltipContent: _propTypes.default.node
|
|
@@ -4958,6 +4958,10 @@
|
|
|
4958
4958
|
"name": "string",
|
|
4959
4959
|
"required": false
|
|
4960
4960
|
},
|
|
4961
|
+
"title": {
|
|
4962
|
+
"name": "string",
|
|
4963
|
+
"required": false
|
|
4964
|
+
},
|
|
4961
4965
|
"type": {
|
|
4962
4966
|
"name": "string",
|
|
4963
4967
|
"required": false
|
|
@@ -4975,7 +4979,7 @@
|
|
|
4975
4979
|
}
|
|
4976
4980
|
},
|
|
4977
4981
|
"required": false,
|
|
4978
|
-
"description": "**Array of item objects in the dropdown menu.**\nEach object can contain:\n* `icon`: An `Icon` component. (not used in read-only variant)\n* `id`: A unique identifier string.\n* `label`: A primary string of text for a menu item or group separator.\n* `subTitle`: A secondary string of text added for clarity. (optional)\n* `type`: 'separator' is the only type currently used\n* `disabled`: Set to true to disable this menu item.\n* `tooltipContent`: Content that is displayed in tooltip when item is disabled\n```\n{\n\tid: '2',\n\tlabel: 'Salesforce.com, Inc.',\n\tsubTitle: 'Account • San Francisco',\n\ttype: 'account',\n disabled: true,\n tooltipContent: \"You don't have permission to select this item.\"\n},\n```\nNote: At the moment, Combobox does not support two consecutive separators. _Tested with snapshot testing._"
|
|
4982
|
+
"description": "**Array of item objects in the dropdown menu.**\nEach object can contain:\n* `icon`: An `Icon` component. (not used in read-only variant)\n* `id`: A unique identifier string.\n* `label`: A primary string of text for a menu item or group separator.\n* `subTitle`: A secondary string of text added for clarity. (optional)\n* `title`: A string of text shown as the title of the selected item (optional)\n* `type`: 'separator' is the only type currently used\n* `disabled`: Set to true to disable this menu item.\n* `tooltipContent`: Content that is displayed in tooltip when item is disabled\n```\n{\n\tid: '2',\n\tlabel: 'Salesforce.com, Inc.',\n\tsubTitle: 'Account • San Francisco',\n\ttitle: 'Salesforce',\n\ttype: 'account',\n disabled: true,\n tooltipContent: \"You don't have permission to select this item.\"\n},\n```\nNote: At the moment, Combobox does not support two consecutive separators. _Tested with snapshot testing._"
|
|
4979
4983
|
},
|
|
4980
4984
|
"menuItemVisibleLength": {
|
|
4981
4985
|
"type": {
|
|
@@ -165,7 +165,7 @@ var getAssistiveText = (0, _memoizeOne.default)(function (assistiveText, actions
|
|
|
165
165
|
|
|
166
166
|
return result;
|
|
167
167
|
}, _lodash2.default);
|
|
168
|
-
var getColumnsAndRowActions = (0, _memoizeOne.default)(function (children, id, fixedHeader, fixedLayout, search) {
|
|
168
|
+
var getColumnsAndRowActions = (0, _memoizeOne.default)(function (children, id, fixedHeader, fixedLayout, items, search) {
|
|
169
169
|
var columns = [];
|
|
170
170
|
var RowActions = null;
|
|
171
171
|
|
|
@@ -178,9 +178,13 @@ var getColumnsAndRowActions = (0, _memoizeOne.default)(function (children, id, f
|
|
|
178
178
|
var props = _objectSpread({
|
|
179
179
|
fixedLayout: fixedLayout,
|
|
180
180
|
search: search,
|
|
181
|
-
|
|
181
|
+
items: items
|
|
182
182
|
}, columnProps);
|
|
183
183
|
|
|
184
|
+
if (id) {
|
|
185
|
+
props.id = id;
|
|
186
|
+
}
|
|
187
|
+
|
|
184
188
|
var Cell;
|
|
185
189
|
|
|
186
190
|
if (columnChildren && columnChildren.type.displayName === _constants.DATA_TABLE_CELL) {
|
|
@@ -951,7 +955,7 @@ var DataTable = /*#__PURE__*/function (_React$Component) {
|
|
|
951
955
|
var allSelected = canSelectRows && numNonHeaderRows === numSelected;
|
|
952
956
|
var indeterminateSelected = canSelectRows && numNonHeaderRows !== numSelected && numSelected !== 0;
|
|
953
957
|
|
|
954
|
-
var _getColumnsAndRowActi = getColumnsAndRowActions(this.props.children, this.props.id, this.getFixedHeader(), this.props.fixedLayout, this.props.search),
|
|
958
|
+
var _getColumnsAndRowActi = getColumnsAndRowActions(this.props.children, this.props.id, this.getFixedHeader(), this.props.fixedLayout, this.props.items, this.props.search),
|
|
955
959
|
columns = _getColumnsAndRowActi.columns,
|
|
956
960
|
RowActions = _getColumnsAndRowActi.RowActions;
|
|
957
961
|
|
|
@@ -43,7 +43,7 @@ exports[`DOM snapshots SLDSPillContainer Bare Pill Container 1`] = `
|
|
|
43
43
|
>
|
|
44
44
|
<span
|
|
45
45
|
className="slds-pill__label"
|
|
46
|
-
title="
|
|
46
|
+
title="Full pill label verbiage mirrored here"
|
|
47
47
|
>
|
|
48
48
|
Pill Label 1
|
|
49
49
|
</span>
|
|
@@ -89,7 +89,7 @@ exports[`DOM snapshots SLDSPillContainer Bare Pill Container 1`] = `
|
|
|
89
89
|
>
|
|
90
90
|
<span
|
|
91
91
|
className="slds-pill__label"
|
|
92
|
-
title="
|
|
92
|
+
title="Full pill label verbiage mirrored here"
|
|
93
93
|
>
|
|
94
94
|
Pill Label 2
|
|
95
95
|
</span>
|
|
@@ -169,7 +169,7 @@ exports[`DOM snapshots SLDSPillContainer Base Pill Container 1`] = `
|
|
|
169
169
|
>
|
|
170
170
|
<span
|
|
171
171
|
className="slds-pill__label"
|
|
172
|
-
title="
|
|
172
|
+
title="Full pill label verbiage mirrored here"
|
|
173
173
|
>
|
|
174
174
|
Pill Label 1
|
|
175
175
|
</span>
|
|
@@ -215,7 +215,7 @@ exports[`DOM snapshots SLDSPillContainer Base Pill Container 1`] = `
|
|
|
215
215
|
>
|
|
216
216
|
<span
|
|
217
217
|
className="slds-pill__label"
|
|
218
|
-
title="
|
|
218
|
+
title="Full pill label verbiage mirrored here"
|
|
219
219
|
>
|
|
220
220
|
Pill Label 2
|
|
221
221
|
</span>
|
|
@@ -311,7 +311,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Avatars 1`] = `
|
|
|
311
311
|
</span>
|
|
312
312
|
<span
|
|
313
313
|
className="slds-pill__label"
|
|
314
|
-
title="
|
|
314
|
+
title="Full pill label verbiage mirrored here"
|
|
315
315
|
>
|
|
316
316
|
Pill Label 1
|
|
317
317
|
</span>
|
|
@@ -373,7 +373,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Avatars 1`] = `
|
|
|
373
373
|
</span>
|
|
374
374
|
<span
|
|
375
375
|
className="slds-pill__label"
|
|
376
|
-
title="
|
|
376
|
+
title="Full pill label verbiage mirrored here"
|
|
377
377
|
>
|
|
378
378
|
Pill Label 2
|
|
379
379
|
</span>
|
|
@@ -471,7 +471,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
471
471
|
</span>
|
|
472
472
|
<span
|
|
473
473
|
className="slds-pill__label"
|
|
474
|
-
title="
|
|
474
|
+
title="Full pill label verbiage mirrored here"
|
|
475
475
|
>
|
|
476
476
|
Pill Label 1
|
|
477
477
|
</span>
|
|
@@ -535,7 +535,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
535
535
|
</span>
|
|
536
536
|
<span
|
|
537
537
|
className="slds-pill__label"
|
|
538
|
-
title="
|
|
538
|
+
title="Full pill label verbiage mirrored here"
|
|
539
539
|
>
|
|
540
540
|
Pill Label 2
|
|
541
541
|
</span>
|
|
@@ -598,7 +598,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
598
598
|
</span>
|
|
599
599
|
<span
|
|
600
600
|
className="slds-pill__label"
|
|
601
|
-
title="
|
|
601
|
+
title="Full pill label verbiage mirrored here"
|
|
602
602
|
>
|
|
603
603
|
Pill Label 3
|
|
604
604
|
</span>
|
|
@@ -662,7 +662,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
662
662
|
</span>
|
|
663
663
|
<span
|
|
664
664
|
className="slds-pill__label"
|
|
665
|
-
title="
|
|
665
|
+
title="Full pill label verbiage mirrored here"
|
|
666
666
|
>
|
|
667
667
|
Pill Label 4
|
|
668
668
|
</span>
|
|
@@ -726,7 +726,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
726
726
|
</span>
|
|
727
727
|
<span
|
|
728
728
|
className="slds-pill__label"
|
|
729
|
-
title="
|
|
729
|
+
title="Full pill label verbiage mirrored here"
|
|
730
730
|
>
|
|
731
731
|
Pill Label 5
|
|
732
732
|
</span>
|
|
@@ -790,7 +790,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
790
790
|
</span>
|
|
791
791
|
<span
|
|
792
792
|
className="slds-pill__label"
|
|
793
|
-
title="
|
|
793
|
+
title="Full pill label verbiage mirrored here"
|
|
794
794
|
>
|
|
795
795
|
Pill Label 6
|
|
796
796
|
</span>
|
|
@@ -854,7 +854,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
854
854
|
</span>
|
|
855
855
|
<span
|
|
856
856
|
className="slds-pill__label"
|
|
857
|
-
title="
|
|
857
|
+
title="Full pill label verbiage mirrored here"
|
|
858
858
|
>
|
|
859
859
|
Pill Label 7
|
|
860
860
|
</span>
|
|
@@ -918,7 +918,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
918
918
|
</span>
|
|
919
919
|
<span
|
|
920
920
|
className="slds-pill__label"
|
|
921
|
-
title="
|
|
921
|
+
title="Full pill label verbiage mirrored here"
|
|
922
922
|
>
|
|
923
923
|
Pill Label 8
|
|
924
924
|
</span>
|
|
@@ -982,7 +982,7 @@ exports[`DOM snapshots SLDSPillContainer Pill Container With Icons 1`] = `
|
|
|
982
982
|
</span>
|
|
983
983
|
<span
|
|
984
984
|
className="slds-pill__label"
|
|
985
|
-
title="
|
|
985
|
+
title="Full pill label verbiage mirrored here"
|
|
986
986
|
>
|
|
987
987
|
Pill Label 9
|
|
988
988
|
</span>
|
|
@@ -217,6 +217,8 @@ var SelectedListBox = function SelectedListBox(props) {
|
|
|
217
217
|
role: props.listboxRole,
|
|
218
218
|
"aria-orientation": props.listboxAriaOrientation
|
|
219
219
|
}, props.selection.map(function (option, renderIndex) {
|
|
220
|
+
var _option$title;
|
|
221
|
+
|
|
220
222
|
var hasTabIndex = renderIndex === props.activeOptionIndex;
|
|
221
223
|
var icon = getIcon(option);
|
|
222
224
|
var avatar = !icon ? getAvatar(option) : null;
|
|
@@ -260,6 +262,7 @@ var SelectedListBox = function SelectedListBox(props) {
|
|
|
260
262
|
icon: icon,
|
|
261
263
|
labels: {
|
|
262
264
|
label: option.label,
|
|
265
|
+
title: (_option$title = option.title) !== null && _option$title !== void 0 ? _option$title : option.label,
|
|
263
266
|
removeTitle: props.labels.removePillTitle
|
|
264
267
|
},
|
|
265
268
|
requestFocus: props.listboxHasFocus,
|
|
@@ -55,13 +55,19 @@ declare module '@salesforce/design-system-react/components/slider' {
|
|
|
55
55
|
*/
|
|
56
56
|
name?: string;
|
|
57
57
|
/**
|
|
58
|
-
* This event fires whenever the user has modified the data of the control. This callback recieves the following parameters `event, { value:
|
|
58
|
+
* This event fires whenever the user has modified the data of the control. This callback recieves the following parameters `event, { value: number }`.
|
|
59
59
|
*/
|
|
60
|
-
onChange?: (
|
|
60
|
+
onChange?: (
|
|
61
|
+
event: React.ChangeEvent<HTMLInputElement>,
|
|
62
|
+
{ value: number }
|
|
63
|
+
) => void;
|
|
61
64
|
/**
|
|
62
|
-
* This event fires when the value is committed. This callback recieves the following parameters `event, { value:
|
|
65
|
+
* This event fires when the value is committed. This callback recieves the following parameters `event, { value: number }`.
|
|
63
66
|
*/
|
|
64
|
-
onInput?: (
|
|
67
|
+
onInput?: (
|
|
68
|
+
event: React.ChangeEvent<HTMLInputElement>,
|
|
69
|
+
{ value: number }
|
|
70
|
+
) => void;
|
|
65
71
|
/**
|
|
66
72
|
* Size of the slider.
|
|
67
73
|
*/
|
package/lib/package.json
CHANGED
|
@@ -162,6 +162,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
162
162
|
* * `id`: A unique identifier string.
|
|
163
163
|
* * `label`: A primary string of text for a menu item or group separator.
|
|
164
164
|
* * `subTitle`: A secondary string of text added for clarity. (optional)
|
|
165
|
+
* * `title`: A string of text shown as the title of the selected item (optional)
|
|
165
166
|
* * `type`: 'separator' is the only type currently used
|
|
166
167
|
* * `disabled`: Set to true to disable this menu item.
|
|
167
168
|
* * `tooltipContent`: Content that is displayed in tooltip when item is disabled
|
|
@@ -170,6 +171,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
170
171
|
* id: '2',
|
|
171
172
|
* label: 'Salesforce.com, Inc.',
|
|
172
173
|
* subTitle: 'Account • San Francisco',
|
|
174
|
+
* title: 'Salesforce',
|
|
173
175
|
* type: 'account',
|
|
174
176
|
* disabled: true,
|
|
175
177
|
* tooltipContent: "You don't have permission to select this item."
|
|
@@ -182,6 +184,7 @@ declare module '@salesforce/design-system-react/components/combobox/combobox' {
|
|
|
182
184
|
icon?: React.ReactNode;
|
|
183
185
|
label?: string;
|
|
184
186
|
subTitle?: string;
|
|
187
|
+
title?: string;
|
|
185
188
|
type?: string;
|
|
186
189
|
disabled?: boolean;
|
|
187
190
|
tooltipContent?: React.ReactNode;
|
|
@@ -272,6 +272,7 @@ var propTypes = {
|
|
|
272
272
|
* * `id`: A unique identifier string.
|
|
273
273
|
* * `label`: A primary string of text for a menu item or group separator.
|
|
274
274
|
* * `subTitle`: A secondary string of text added for clarity. (optional)
|
|
275
|
+
* * `title`: A string of text shown as the title of the selected item (optional)
|
|
275
276
|
* * `type`: 'separator' is the only type currently used
|
|
276
277
|
* * `disabled`: Set to true to disable this menu item.
|
|
277
278
|
* * `tooltipContent`: Content that is displayed in tooltip when item is disabled
|
|
@@ -280,6 +281,7 @@ var propTypes = {
|
|
|
280
281
|
* id: '2',
|
|
281
282
|
* label: 'Salesforce.com, Inc.',
|
|
282
283
|
* subTitle: 'Account • San Francisco',
|
|
284
|
+
* title: 'Salesforce',
|
|
283
285
|
* type: 'account',
|
|
284
286
|
* disabled: true,
|
|
285
287
|
* tooltipContent: "You don't have permission to select this item."
|
|
@@ -292,6 +294,7 @@ var propTypes = {
|
|
|
292
294
|
icon: PropTypes.node,
|
|
293
295
|
label: PropTypes.string,
|
|
294
296
|
subTitle: PropTypes.string,
|
|
297
|
+
title: PropTypes.string,
|
|
295
298
|
type: PropTypes.string,
|
|
296
299
|
disabled: PropTypes.boolean,
|
|
297
300
|
tooltipContent: PropTypes.node
|