arengibook 3.0.5-select → 3.0.6-select
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/index.js +29 -50
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -36896,7 +36896,12 @@ var Dropdown = function Dropdown(props) {
|
|
|
36896
36896
|
} : _props$valueStyle,
|
|
36897
36897
|
onChange = props.onChange,
|
|
36898
36898
|
_props$optionStyle = props.optionStyle,
|
|
36899
|
-
optionStyle = _props$optionStyle === void 0 ? {
|
|
36899
|
+
optionStyle = _props$optionStyle === void 0 ? {
|
|
36900
|
+
maxWidth: '250px',
|
|
36901
|
+
overflow: 'hidden',
|
|
36902
|
+
textOverflow: 'ellipsis',
|
|
36903
|
+
whiteSpace: 'nowrap'
|
|
36904
|
+
} : _props$optionStyle,
|
|
36900
36905
|
_props$editable = props.editable,
|
|
36901
36906
|
editable = _props$editable === void 0 ? false : _props$editable,
|
|
36902
36907
|
name = props.name,
|
|
@@ -36962,6 +36967,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
36962
36967
|
setOptionSelected = _useState2[1];
|
|
36963
36968
|
var dropdownRef = useRef(null);
|
|
36964
36969
|
var dropdownComposantRef = useRef(null);
|
|
36970
|
+
var containerRef = useRef(null);
|
|
36965
36971
|
var clickedFromList = useRef(false);
|
|
36966
36972
|
var currentPageRef = useRef(1);
|
|
36967
36973
|
var filterRef = useRef('');
|
|
@@ -37538,6 +37544,7 @@ var Dropdown = function Dropdown(props) {
|
|
|
37538
37544
|
width: '100%'
|
|
37539
37545
|
}
|
|
37540
37546
|
}), /*#__PURE__*/React__default.createElement("div", {
|
|
37547
|
+
ref: containerRef,
|
|
37541
37548
|
className: "dropdown-container",
|
|
37542
37549
|
style: {
|
|
37543
37550
|
width: '100%',
|
|
@@ -37571,7 +37578,8 @@ var Dropdown = function Dropdown(props) {
|
|
|
37571
37578
|
panelStyle: {
|
|
37572
37579
|
maxHeight: 'auto',
|
|
37573
37580
|
overflowY: 'auto',
|
|
37574
|
-
zIndex: 999999
|
|
37581
|
+
zIndex: 999999,
|
|
37582
|
+
width: containerRef.current ? containerRef.current.offsetWidth + 'px' : undefined
|
|
37575
37583
|
},
|
|
37576
37584
|
panelClassName: 'dropdownbook',
|
|
37577
37585
|
itemTemplate: optionTemplate
|
|
@@ -40931,7 +40939,12 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
40931
40939
|
_props$valueStyle = props.valueStyle,
|
|
40932
40940
|
valueStyle = _props$valueStyle === void 0 ? {} : _props$valueStyle,
|
|
40933
40941
|
_props$optionStyle = props.optionStyle,
|
|
40934
|
-
optionStyle = _props$optionStyle === void 0 ? {
|
|
40942
|
+
optionStyle = _props$optionStyle === void 0 ? {
|
|
40943
|
+
maxWidth: '250px',
|
|
40944
|
+
overflow: 'hidden',
|
|
40945
|
+
textOverflow: 'ellipsis',
|
|
40946
|
+
whiteSpace: 'nowrap'
|
|
40947
|
+
} : _props$optionStyle,
|
|
40935
40948
|
_props$loading = props.loading,
|
|
40936
40949
|
loading = _props$loading === void 0 ? false : _props$loading,
|
|
40937
40950
|
name = props.name,
|
|
@@ -41031,6 +41044,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
41031
41044
|
tooltipKey = _useState8[0],
|
|
41032
41045
|
setTooltipKey = _useState8[1];
|
|
41033
41046
|
var multiSelectRef = useRef(null);
|
|
41047
|
+
var containerRef = useRef(null);
|
|
41034
41048
|
var _useState9 = useState(null),
|
|
41035
41049
|
_useState0 = _slicedToArray$9(_useState9, 2),
|
|
41036
41050
|
sortOrder = _useState0[0],
|
|
@@ -41816,6 +41830,7 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
41816
41830
|
"data-pr-position": "right",
|
|
41817
41831
|
"data-pr-at": "right+5 top",
|
|
41818
41832
|
"data-pr-my": "left center-2",
|
|
41833
|
+
ref: containerRef,
|
|
41819
41834
|
className: "multiselect-container custom-target-icon",
|
|
41820
41835
|
style: {
|
|
41821
41836
|
width: '100%',
|
|
@@ -41924,6 +41939,9 @@ var MultiSelect = function MultiSelect(props) {
|
|
|
41924
41939
|
// selectAll={selectAll}
|
|
41925
41940
|
,
|
|
41926
41941
|
showSelectAll: showSelectAll,
|
|
41942
|
+
panelStyle: {
|
|
41943
|
+
width: containerRef.current ? containerRef.current.offsetWidth + 'px' : undefined
|
|
41944
|
+
},
|
|
41927
41945
|
panelHeaderTemplate: customPanelHeader,
|
|
41928
41946
|
panelFooterTemplate: customPanelFooter
|
|
41929
41947
|
}, isGroupedOption && {
|
|
@@ -42152,13 +42170,7 @@ var MultiSelectPresets = {
|
|
|
42152
42170
|
withIcon: false,
|
|
42153
42171
|
withColor: true,
|
|
42154
42172
|
maxSelectedLabels: 4,
|
|
42155
|
-
itemsCheckedToTheTop: true
|
|
42156
|
-
onApply: function onApply(values) {
|
|
42157
|
-
return console.log('onApply', values);
|
|
42158
|
-
},
|
|
42159
|
-
onChange: function onChange(values) {
|
|
42160
|
-
return console.log('onChange', values);
|
|
42161
|
-
}
|
|
42173
|
+
itemsCheckedToTheTop: true
|
|
42162
42174
|
},
|
|
42163
42175
|
DefaultValue: {
|
|
42164
42176
|
value: ['1', '3'],
|
|
@@ -42168,13 +42180,7 @@ var MultiSelectPresets = {
|
|
|
42168
42180
|
enableSorting: true,
|
|
42169
42181
|
showSelectAll: true,
|
|
42170
42182
|
useCheckbox: true,
|
|
42171
|
-
withIcon: false
|
|
42172
|
-
onApply: function onApply(values) {
|
|
42173
|
-
return console.log('onApply', values);
|
|
42174
|
-
},
|
|
42175
|
-
onChange: function onChange(values) {
|
|
42176
|
-
return console.log('onChange', values);
|
|
42177
|
-
}
|
|
42183
|
+
withIcon: false
|
|
42178
42184
|
},
|
|
42179
42185
|
Placeholder: {
|
|
42180
42186
|
placeholder: 'Veuillez sélectionnez vos options',
|
|
@@ -42185,22 +42191,13 @@ var MultiSelectPresets = {
|
|
|
42185
42191
|
showSelectAll: true,
|
|
42186
42192
|
placeholder: 'Tout sélectionner',
|
|
42187
42193
|
options: optionsExample,
|
|
42188
|
-
useCheckbox: true
|
|
42189
|
-
onSelectAll: function onSelectAll(values) {
|
|
42190
|
-
console.log('onSelectAll', values);
|
|
42191
|
-
},
|
|
42192
|
-
onChange: function onChange(values) {
|
|
42193
|
-
console.log('onChange', values);
|
|
42194
|
-
}
|
|
42194
|
+
useCheckbox: true
|
|
42195
42195
|
},
|
|
42196
42196
|
MaxSelected: {
|
|
42197
42197
|
maxSelected: 3,
|
|
42198
42198
|
value: [],
|
|
42199
42199
|
placeholder: 'Maximum 3 options',
|
|
42200
|
-
options: optionsExample
|
|
42201
|
-
onChange: function onChange(values) {
|
|
42202
|
-
console.log('onChange (maxSelected)', values);
|
|
42203
|
-
}
|
|
42200
|
+
options: optionsExample
|
|
42204
42201
|
},
|
|
42205
42202
|
Disabled: {
|
|
42206
42203
|
disabled: true,
|
|
@@ -42223,13 +42220,7 @@ var MultiSelectPresets = {
|
|
|
42223
42220
|
value: ['option_2', 'option_4'],
|
|
42224
42221
|
placeholder: 'Tout effacer',
|
|
42225
42222
|
options: optionsExample,
|
|
42226
|
-
showClear: true
|
|
42227
|
-
onClearAll: function onClearAll() {
|
|
42228
|
-
console.log('onClearAll');
|
|
42229
|
-
},
|
|
42230
|
-
onChange: function onChange(values) {
|
|
42231
|
-
console.log('onChange', values);
|
|
42232
|
-
}
|
|
42223
|
+
showClear: true
|
|
42233
42224
|
},
|
|
42234
42225
|
ErrorSystem: {
|
|
42235
42226
|
status: 'error',
|
|
@@ -42250,13 +42241,7 @@ var MultiSelectPresets = {
|
|
|
42250
42241
|
Apply: {
|
|
42251
42242
|
placeholder: 'Appliquer la sélection',
|
|
42252
42243
|
options: optionsExample,
|
|
42253
|
-
valueToapply: ['option_6', 'option_4', 'option_1']
|
|
42254
|
-
onApply: function onApply(values) {
|
|
42255
|
-
console.log('onApply', values);
|
|
42256
|
-
},
|
|
42257
|
-
onChange: function onChange(values) {
|
|
42258
|
-
console.log('onChange (temp)', values);
|
|
42259
|
-
}
|
|
42244
|
+
valueToapply: ['option_6', 'option_4', 'option_1']
|
|
42260
42245
|
},
|
|
42261
42246
|
LongText: {
|
|
42262
42247
|
value: ['option_long'],
|
|
@@ -42285,10 +42270,7 @@ var MultiSelectPresets = {
|
|
|
42285
42270
|
filter: true,
|
|
42286
42271
|
enableSorting: true,
|
|
42287
42272
|
showSelectAll: true,
|
|
42288
|
-
useCheckbox: true
|
|
42289
|
-
onApply: function onApply(values) {
|
|
42290
|
-
return console.log('onApply', values);
|
|
42291
|
-
}
|
|
42273
|
+
useCheckbox: true
|
|
42292
42274
|
},
|
|
42293
42275
|
ItemWithInfoAtTheEndOfLine: {
|
|
42294
42276
|
placeholder: 'Sélectionnez des utilisateurs',
|
|
@@ -42380,10 +42362,7 @@ var MultiSelectPresets = {
|
|
|
42380
42362
|
filter: true,
|
|
42381
42363
|
enableSorting: true,
|
|
42382
42364
|
showSelectAll: true,
|
|
42383
|
-
useCheckbox: true
|
|
42384
|
-
onApply: function onApply(values) {
|
|
42385
|
-
return console.log('onApply', values);
|
|
42386
|
-
}
|
|
42365
|
+
useCheckbox: true
|
|
42387
42366
|
},
|
|
42388
42367
|
SearchAjaxLoading: {
|
|
42389
42368
|
placeholder: 'Rechercher (Ajax)…',
|