@zohodesk/components
Version:
In this Package, we Provide Some Basic Components to Build Web App
125 lines (120 loc) • 4.6 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.Select_defaultProps = exports.SelectWithIcon_defaultProps = exports.SelectWithAvatar_defaultProps = exports.GroupSelect_defaultProps = void 0;
var _Config = require("../../../Provider/Config");
var _SelectWithIcon_defau;
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
var Select_defaultProps = {
animationStyle: 'bounce',
autoComplete: (0, _Config.getLibraryConfig)('autoComplete'),
autoSelectOnType: true,
dataId: 'selectComponent',
dataSelectorId: 'select',
dropBoxSize: 'small',
isDefaultSelectValue: true,
isDisabled: false,
isPopupOpenOnEnter: false,
isReadOnly: false,
needBorder: true,
needLocalSearch: true,
needSearch: false,
needSelectDownIcon: true,
placeHolder: '',
searchBoxPlaceHolder: 'Search',
searchBoxSize: 'small',
size: 'medium',
textBoxSize: 'medium',
textBoxVariant: 'default',
textField: 'text',
valueField: 'id',
borderColor: 'default',
needTick: true,
boxSize: 'default',
needListBorder: false,
needCloseOnSelect: true,
isParentBased: true,
isSearchClearOnClose: true,
i18nKeys: {},
iconOnHover: false,
customProps: {},
isLoading: false,
isAbsolutePositioningNeeded: true
};
exports.Select_defaultProps = Select_defaultProps;
var GroupSelect_defaultProps = {
animationStyle: 'bounce',
defaultDropBoxPosition: 'bottom',
dropBoxSize: 'small',
dataSelectorId: 'groupSelect',
isDefaultSelectValue: true,
isDisabled: false,
isReadOnly: false,
needBorder: true,
needSearch: false,
needSelectDownIcon: true,
placeHolder: '',
searchBoxPlaceHolder: 'Search',
searchBoxSize: 'small',
size: 'medium',
textBoxSize: 'medium',
textBoxVariant: 'default',
textField: 'text',
valueField: 'id',
autoSelectOnType: true,
dataIdSlctComp: 'selectComponent',
dataIdDownIcon: 'downIcon',
dataIdLoading: 'loading',
dataIdSrchEmptyMsg: 'searchEmptyMessage',
dataId: 'GroupSelect',
isPopupOpenOnEnter: false,
borderColor: 'default',
needTick: true,
needLocalSearch: true,
isSearchClearOnClose: true,
isAbsolutePositioningNeeded: true,
isRestrictScroll: false,
i18nKeys: {},
iconOnHover: false,
isLoading: false
};
exports.GroupSelect_defaultProps = GroupSelect_defaultProps;
var SelectWithAvatar_defaultProps = {
animationStyle: 'bounce',
defaultDropBoxPosition: 'bottom',
dropBoxSize: 'small',
isDefaultSelectValue: false,
isDisabled: false,
isReadOnly: false,
needBorder: true,
needLocalSearch: true,
needSearch: true,
placeHolder: '',
size: 'medium',
textBoxSize: 'medium',
textBoxVariant: 'default',
textField: 'text',
valueField: 'id',
dataId: 'selectWithAvatar',
dataSelectorId: 'selectWithAvatar',
borderColor: 'default',
isSearchClearOnClose: true,
isAbsolutePositioningNeeded: true,
isRestrictScroll: false,
i18nKeys: {},
needEffect: true,
isLoading: false
};
exports.SelectWithAvatar_defaultProps = SelectWithAvatar_defaultProps;
var SelectWithIcon_defaultProps = (_SelectWithIcon_defau = {
isReadOnly: false,
isDisabled: false,
animationStyle: 'bounce',
valueKey: 'value',
idKey: 'id',
needListBorder: false,
needSearch: false,
boxSize: 'default'
}, _defineProperty(_SelectWithIcon_defau, "needListBorder", false), _defineProperty(_SelectWithIcon_defau, "needCloseOnSelect", true), _defineProperty(_SelectWithIcon_defau, "borderColor", 'default'), _defineProperty(_SelectWithIcon_defau, "needTick", true), _defineProperty(_SelectWithIcon_defau, "searchBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "size", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxSize", 'medium'), _defineProperty(_SelectWithIcon_defau, "textBoxVariant", 'default'), _defineProperty(_SelectWithIcon_defau, "dataId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dataSelectorId", 'selectWithIcon'), _defineProperty(_SelectWithIcon_defau, "dropBoxSize", 'small'), _defineProperty(_SelectWithIcon_defau, "needIcon", true), _defineProperty(_SelectWithIcon_defau, "iconSize", '14'), _defineProperty(_SelectWithIcon_defau, "i18nKeys", {}), _defineProperty(_SelectWithIcon_defau, "isAbsolutePositioningNeeded", true), _defineProperty(_SelectWithIcon_defau, "isRestrictScroll", false), _defineProperty(_SelectWithIcon_defau, "isLoading", false), _SelectWithIcon_defau);
exports.SelectWithIcon_defaultProps = SelectWithIcon_defaultProps;