sag_components 2.0.0-beta3 → 2.0.0-beta4
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.d.ts +11 -0
- package/dist/index.esm.js +158 -139
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +158 -139
- package/dist/index.js.map +1 -1
- package/dist/types/components/FilterPanel/FilterPanel.d.ts +11 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -51275,67 +51275,70 @@ const DropdownMain = dt.div`
|
|
|
51275
51275
|
`;
|
|
51276
51276
|
|
|
51277
51277
|
/* eslint-disable react/prop-types */
|
|
51278
|
-
const DropdownNew =
|
|
51279
|
-
|
|
51280
|
-
|
|
51281
|
-
|
|
51282
|
-
|
|
51283
|
-
|
|
51284
|
-
|
|
51285
|
-
|
|
51286
|
-
|
|
51287
|
-
|
|
51288
|
-
|
|
51289
|
-
|
|
51290
|
-
|
|
51291
|
-
|
|
51292
|
-
|
|
51293
|
-
|
|
51294
|
-
|
|
51295
|
-
|
|
51296
|
-
|
|
51297
|
-
|
|
51298
|
-
|
|
51299
|
-
|
|
51300
|
-
|
|
51301
|
-
|
|
51302
|
-
|
|
51303
|
-
|
|
51304
|
-
|
|
51305
|
-
|
|
51306
|
-
|
|
51307
|
-
|
|
51308
|
-
|
|
51309
|
-
|
|
51310
|
-
|
|
51311
|
-
|
|
51312
|
-
|
|
51313
|
-
|
|
51314
|
-
|
|
51315
|
-
|
|
51316
|
-
|
|
51317
|
-
|
|
51318
|
-
|
|
51319
|
-
|
|
51320
|
-
|
|
51321
|
-
|
|
51322
|
-
|
|
51323
|
-
|
|
51324
|
-
|
|
51325
|
-
|
|
51326
|
-
|
|
51327
|
-
|
|
51328
|
-
|
|
51329
|
-
|
|
51330
|
-
|
|
51331
|
-
|
|
51332
|
-
|
|
51333
|
-
|
|
51334
|
-
|
|
51335
|
-
|
|
51336
|
-
|
|
51337
|
-
|
|
51338
|
-
|
|
51278
|
+
const DropdownNew = _ref => {
|
|
51279
|
+
let {
|
|
51280
|
+
isMulti,
|
|
51281
|
+
label,
|
|
51282
|
+
labelEmptyValue,
|
|
51283
|
+
options,
|
|
51284
|
+
selectedValue,
|
|
51285
|
+
placeHolder,
|
|
51286
|
+
onChange,
|
|
51287
|
+
required,
|
|
51288
|
+
disabled,
|
|
51289
|
+
width,
|
|
51290
|
+
error,
|
|
51291
|
+
errorMessage,
|
|
51292
|
+
labelColor,
|
|
51293
|
+
checkBoxColor,
|
|
51294
|
+
xIconShow,
|
|
51295
|
+
showLabelOnTop,
|
|
51296
|
+
orderBy,
|
|
51297
|
+
elementType
|
|
51298
|
+
} = _ref;
|
|
51299
|
+
return /*#__PURE__*/React__default["default"].createElement(DropdownMain, {
|
|
51300
|
+
className: "DropdownMain",
|
|
51301
|
+
width: width
|
|
51302
|
+
}, isMulti ? /*#__PURE__*/React__default["default"].createElement(DropdownMultiNew, {
|
|
51303
|
+
className: "DropdownMultiNew",
|
|
51304
|
+
placeHolder: placeHolder,
|
|
51305
|
+
label: label,
|
|
51306
|
+
labelEmptyValue: labelEmptyValue,
|
|
51307
|
+
labelColor: labelColor,
|
|
51308
|
+
checkBoxColor: checkBoxColor,
|
|
51309
|
+
required: required,
|
|
51310
|
+
options: options,
|
|
51311
|
+
width: width,
|
|
51312
|
+
disabled: disabled,
|
|
51313
|
+
error: error,
|
|
51314
|
+
errorMessage: errorMessage,
|
|
51315
|
+
selectedValue: selectedValue,
|
|
51316
|
+
xIconShow: xIconShow,
|
|
51317
|
+
onChange: onChange,
|
|
51318
|
+
showLabelOnTop: showLabelOnTop,
|
|
51319
|
+
orderBy: orderBy,
|
|
51320
|
+
elementType: elementType
|
|
51321
|
+
}) : /*#__PURE__*/React__default["default"].createElement(DropdownSingleNew, {
|
|
51322
|
+
className: "DropdownSingleNew",
|
|
51323
|
+
placeHolder: placeHolder,
|
|
51324
|
+
label: label,
|
|
51325
|
+
labelEmptyValue: labelEmptyValue,
|
|
51326
|
+
labelColor: labelColor,
|
|
51327
|
+
checkBoxColor: checkBoxColor,
|
|
51328
|
+
required: required,
|
|
51329
|
+
options: options,
|
|
51330
|
+
width: width,
|
|
51331
|
+
disabled: disabled,
|
|
51332
|
+
error: error,
|
|
51333
|
+
errorMessage: errorMessage,
|
|
51334
|
+
selectedValue: selectedValue,
|
|
51335
|
+
xIconShow: xIconShow,
|
|
51336
|
+
onChange: onChange,
|
|
51337
|
+
showLabelOnTop: showLabelOnTop,
|
|
51338
|
+
orderBy: orderBy,
|
|
51339
|
+
elementType: elementType
|
|
51340
|
+
}));
|
|
51341
|
+
};
|
|
51339
51342
|
DropdownNew.propTypes = {
|
|
51340
51343
|
placeHolder: PropTypes.string,
|
|
51341
51344
|
label: PropTypes.string,
|
|
@@ -51749,20 +51752,21 @@ const DatePicker = ({
|
|
|
51749
51752
|
};
|
|
51750
51753
|
|
|
51751
51754
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
51752
|
-
const RangePicker =
|
|
51753
|
-
|
|
51754
|
-
|
|
51755
|
-
|
|
51756
|
-
|
|
51757
|
-
|
|
51758
|
-
|
|
51759
|
-
|
|
51760
|
-
|
|
51761
|
-
|
|
51762
|
-
|
|
51763
|
-
|
|
51764
|
-
|
|
51765
|
-
|
|
51755
|
+
const RangePicker = _ref => {
|
|
51756
|
+
let {
|
|
51757
|
+
label,
|
|
51758
|
+
onChange,
|
|
51759
|
+
borderRadius,
|
|
51760
|
+
required,
|
|
51761
|
+
width,
|
|
51762
|
+
height,
|
|
51763
|
+
placeholder,
|
|
51764
|
+
disabled,
|
|
51765
|
+
borderColor,
|
|
51766
|
+
borderColorFocus,
|
|
51767
|
+
textColor,
|
|
51768
|
+
selectedValue
|
|
51769
|
+
} = _ref;
|
|
51766
51770
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
51767
51771
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
51768
51772
|
const [value, setValue] = React.useState(''); // Added value state
|
|
@@ -52194,22 +52198,23 @@ const QuarterPopupPicker = ({
|
|
|
52194
52198
|
};
|
|
52195
52199
|
|
|
52196
52200
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
52197
|
-
const QuarterPicker =
|
|
52198
|
-
|
|
52199
|
-
|
|
52200
|
-
|
|
52201
|
-
|
|
52202
|
-
|
|
52203
|
-
|
|
52204
|
-
|
|
52205
|
-
|
|
52206
|
-
|
|
52207
|
-
|
|
52208
|
-
|
|
52209
|
-
|
|
52210
|
-
|
|
52211
|
-
|
|
52212
|
-
|
|
52201
|
+
const QuarterPicker = _ref => {
|
|
52202
|
+
let {
|
|
52203
|
+
availableQuarters,
|
|
52204
|
+
// ["Q1-2024"]
|
|
52205
|
+
label,
|
|
52206
|
+
onChange,
|
|
52207
|
+
borderRadius,
|
|
52208
|
+
required,
|
|
52209
|
+
width,
|
|
52210
|
+
height,
|
|
52211
|
+
placeholder,
|
|
52212
|
+
disabled,
|
|
52213
|
+
borderColor,
|
|
52214
|
+
borderColorFocus,
|
|
52215
|
+
textColor,
|
|
52216
|
+
selectedValue
|
|
52217
|
+
} = _ref;
|
|
52213
52218
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
52214
52219
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
52215
52220
|
const [value, setValue] = React.useState('');
|
|
@@ -52648,21 +52653,22 @@ const MonthPopupPicker = ({
|
|
|
52648
52653
|
};
|
|
52649
52654
|
|
|
52650
52655
|
/* eslint-disable import/no-extraneous-dependencies */
|
|
52651
|
-
const MonthPicker =
|
|
52652
|
-
|
|
52653
|
-
|
|
52654
|
-
|
|
52655
|
-
|
|
52656
|
-
|
|
52657
|
-
|
|
52658
|
-
|
|
52659
|
-
|
|
52660
|
-
|
|
52661
|
-
|
|
52662
|
-
|
|
52663
|
-
|
|
52664
|
-
|
|
52665
|
-
|
|
52656
|
+
const MonthPicker = _ref => {
|
|
52657
|
+
let {
|
|
52658
|
+
availableMonths,
|
|
52659
|
+
label,
|
|
52660
|
+
onChange,
|
|
52661
|
+
borderRadius,
|
|
52662
|
+
required,
|
|
52663
|
+
width,
|
|
52664
|
+
height,
|
|
52665
|
+
placeholder,
|
|
52666
|
+
disabled,
|
|
52667
|
+
borderColor,
|
|
52668
|
+
borderColorFocus,
|
|
52669
|
+
textColor,
|
|
52670
|
+
selectedValue
|
|
52671
|
+
} = _ref;
|
|
52666
52672
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
52667
52673
|
const [isOpen, setIsOpen] = React.useState(false);
|
|
52668
52674
|
const [value, setValue] = React.useState('');
|
|
@@ -53468,9 +53474,20 @@ FilterPanel.propTypes = {
|
|
|
53468
53474
|
availableMonths: PropTypes.arrayOf(PropTypes.string),
|
|
53469
53475
|
availableYears: PropTypes.arrayOf(PropTypes.string),
|
|
53470
53476
|
fieldsData: PropTypes.arrayOf(PropTypes.shape({
|
|
53477
|
+
disabled: PropTypes.bool,
|
|
53478
|
+
required: PropTypes.bool,
|
|
53479
|
+
inputType: PropTypes.string,
|
|
53480
|
+
placeHolder: PropTypes.string,
|
|
53481
|
+
xIconShow: PropTypes.bool,
|
|
53482
|
+
label: PropTypes.string,
|
|
53483
|
+
labelEmptyValue: PropTypes.string,
|
|
53471
53484
|
name: PropTypes.string,
|
|
53472
53485
|
value: PropTypes.number,
|
|
53473
|
-
color: PropTypes.string
|
|
53486
|
+
color: PropTypes.string,
|
|
53487
|
+
dropdownOptions: PropTypes.arrayOf(PropTypes.shape({
|
|
53488
|
+
value: PropTypes.string,
|
|
53489
|
+
label: PropTypes.string
|
|
53490
|
+
}))
|
|
53474
53491
|
})),
|
|
53475
53492
|
width: PropTypes.string,
|
|
53476
53493
|
height: PropTypes.string,
|
|
@@ -65833,21 +65850,22 @@ const DeleteIcon = dt.div`
|
|
|
65833
65850
|
position: absolute;
|
|
65834
65851
|
`;
|
|
65835
65852
|
|
|
65836
|
-
const QuickFilterDropdownSingle =
|
|
65837
|
-
|
|
65838
|
-
|
|
65839
|
-
|
|
65840
|
-
|
|
65841
|
-
|
|
65842
|
-
|
|
65843
|
-
|
|
65844
|
-
|
|
65845
|
-
|
|
65846
|
-
|
|
65847
|
-
|
|
65848
|
-
|
|
65849
|
-
|
|
65850
|
-
|
|
65853
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
65854
|
+
let {
|
|
65855
|
+
label,
|
|
65856
|
+
hoverColor,
|
|
65857
|
+
options,
|
|
65858
|
+
selectedValue,
|
|
65859
|
+
placeHolder,
|
|
65860
|
+
onChange,
|
|
65861
|
+
disabled,
|
|
65862
|
+
width,
|
|
65863
|
+
error,
|
|
65864
|
+
errorMessage,
|
|
65865
|
+
xIconShow,
|
|
65866
|
+
labelColor,
|
|
65867
|
+
showLabelOnTop
|
|
65868
|
+
} = _ref;
|
|
65851
65869
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
65852
65870
|
const [showOptions, setShowOptions] = React.useState(false);
|
|
65853
65871
|
const [inputValue, setInputValue] = React.useState("");
|
|
@@ -66245,23 +66263,24 @@ const IconContainer$1 = dt.div`
|
|
|
66245
66263
|
cursor: pointer;
|
|
66246
66264
|
`;
|
|
66247
66265
|
|
|
66248
|
-
const QuickFilterDropdownMultiSelection =
|
|
66249
|
-
|
|
66250
|
-
|
|
66251
|
-
|
|
66252
|
-
|
|
66253
|
-
|
|
66254
|
-
|
|
66255
|
-
|
|
66256
|
-
|
|
66257
|
-
|
|
66258
|
-
|
|
66259
|
-
|
|
66260
|
-
|
|
66261
|
-
|
|
66262
|
-
|
|
66263
|
-
|
|
66264
|
-
|
|
66266
|
+
const QuickFilterDropdownMultiSelection = _ref => {
|
|
66267
|
+
let {
|
|
66268
|
+
label,
|
|
66269
|
+
labelEmptyValue,
|
|
66270
|
+
options,
|
|
66271
|
+
selectedValue,
|
|
66272
|
+
placeHolder,
|
|
66273
|
+
onChange,
|
|
66274
|
+
required,
|
|
66275
|
+
disabled,
|
|
66276
|
+
width,
|
|
66277
|
+
error,
|
|
66278
|
+
errorMessage,
|
|
66279
|
+
labelColor,
|
|
66280
|
+
xIconShow,
|
|
66281
|
+
checkBoxColor,
|
|
66282
|
+
showLabelOnTop
|
|
66283
|
+
} = _ref;
|
|
66265
66284
|
const [isFocused, setIsFocused] = React.useState(false);
|
|
66266
66285
|
const [showOptions, setShowOptions] = React.useState(false);
|
|
66267
66286
|
const [inputValue, setInputValue] = React.useState('');
|