funda-ui 4.2.611 → 4.2.675
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/Accordion/index.js +116 -10
- package/BackToTop/index.js +4 -4
- package/CascadingSelect/index.js +125 -20
- package/CascadingSelectE2E/index.js +125 -20
- package/Checkbox/index.js +107 -2
- package/ColorPicker/index.d.ts +1 -0
- package/ColorPicker/index.js +110 -4
- package/Date/index.js +546 -68
- package/DropdownMenu/index.js +108 -3
- package/DynamicFields/index.js +106 -1
- package/EventCalendarTimeline/index.js +2 -2
- package/File/index.d.ts +1 -0
- package/File/index.js +110 -4
- package/Input/index.d.ts +1 -0
- package/Input/index.js +117 -11
- package/LiveSearch/index.js +243 -27
- package/MultipleCheckboxes/index.js +124 -19
- package/MultipleSelect/index.js +122 -17
- package/NativeSelect/index.js +106 -1
- package/NumberInput/index.d.ts +40 -0
- package/NumberInput/index.js +1071 -0
- package/Pagination/index.js +125 -7
- package/README.md +1 -1
- package/Radio/index.js +108 -3
- package/RangeSlider/index.js +255 -38
- package/SearchBar/index.js +111 -6
- package/Select/index.js +127 -22
- package/Switch/index.js +107 -2
- package/Table/index.js +107 -2
- package/Tabs/index.js +106 -1
- package/TagInput/index.d.ts +2 -0
- package/TagInput/index.js +127 -19
- package/Textarea/index.d.ts +2 -0
- package/Textarea/index.js +115 -7
- package/Tooltip/index.js +2 -2
- package/Utils/anim.js +4 -4
- package/Utils/cls.d.ts +9 -0
- package/Utils/cls.js +66 -0
- package/Utils/convert.d.ts +8 -8
- package/Utils/convert.js +8 -8
- package/Utils/date.d.ts +1 -7
- package/Utils/date.js +0 -10
- package/Utils/easing.js +4 -4
- package/Utils/extract.d.ts +8 -8
- package/Utils/extract.js +8 -8
- package/Utils/getElementProperty.d.ts +2 -2
- package/Utils/getElementProperty.js +2 -2
- package/Utils/math.d.ts +77 -0
- package/Utils/math.js +305 -0
- package/Utils/viewport.d.ts +1 -1
- package/Utils/viewport.js +1 -1
- package/all.d.ts +1 -0
- package/all.js +1 -0
- package/lib/cjs/Accordion/index.js +116 -10
- package/lib/cjs/BackToTop/index.js +4 -4
- package/lib/cjs/CascadingSelect/index.js +125 -20
- package/lib/cjs/CascadingSelectE2E/index.js +125 -20
- package/lib/cjs/Checkbox/index.js +107 -2
- package/lib/cjs/ColorPicker/index.d.ts +1 -0
- package/lib/cjs/ColorPicker/index.js +110 -4
- package/lib/cjs/Date/index.js +546 -68
- package/lib/cjs/DropdownMenu/index.js +108 -3
- package/lib/cjs/DynamicFields/index.js +106 -1
- package/lib/cjs/EventCalendarTimeline/index.js +2 -2
- package/lib/cjs/File/index.d.ts +1 -0
- package/lib/cjs/File/index.js +110 -4
- package/lib/cjs/Input/index.d.ts +1 -0
- package/lib/cjs/Input/index.js +117 -11
- package/lib/cjs/LiveSearch/index.js +243 -27
- package/lib/cjs/MultipleCheckboxes/index.js +124 -19
- package/lib/cjs/MultipleSelect/index.js +122 -17
- package/lib/cjs/NativeSelect/index.js +106 -1
- package/lib/cjs/NumberInput/index.d.ts +40 -0
- package/lib/cjs/NumberInput/index.js +1071 -0
- package/lib/cjs/Pagination/index.js +125 -7
- package/lib/cjs/Radio/index.js +108 -3
- package/lib/cjs/RangeSlider/index.js +255 -38
- package/lib/cjs/SearchBar/index.js +111 -6
- package/lib/cjs/Select/index.js +127 -22
- package/lib/cjs/Switch/index.js +107 -2
- package/lib/cjs/Table/index.js +107 -2
- package/lib/cjs/Tabs/index.js +106 -1
- package/lib/cjs/TagInput/index.d.ts +2 -0
- package/lib/cjs/TagInput/index.js +127 -19
- package/lib/cjs/Textarea/index.d.ts +2 -0
- package/lib/cjs/Textarea/index.js +115 -7
- package/lib/cjs/Tooltip/index.js +2 -2
- package/lib/cjs/Utils/anim.js +4 -4
- package/lib/cjs/Utils/cls.d.ts +9 -0
- package/lib/cjs/Utils/cls.js +66 -0
- package/lib/cjs/Utils/convert.d.ts +8 -8
- package/lib/cjs/Utils/convert.js +8 -8
- package/lib/cjs/Utils/date.d.ts +1 -7
- package/lib/cjs/Utils/date.js +0 -10
- package/lib/cjs/Utils/easing.js +4 -4
- package/lib/cjs/Utils/extract.d.ts +8 -8
- package/lib/cjs/Utils/extract.js +8 -8
- package/lib/cjs/Utils/getElementProperty.d.ts +2 -2
- package/lib/cjs/Utils/getElementProperty.js +2 -2
- package/lib/cjs/Utils/math.d.ts +77 -0
- package/lib/cjs/Utils/math.js +305 -0
- package/lib/cjs/Utils/viewport.d.ts +1 -1
- package/lib/cjs/Utils/viewport.js +1 -1
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +1 -0
- package/lib/esm/Accordion/Accordion.tsx +2 -1
- package/lib/esm/Accordion/AccordionItem.tsx +6 -5
- package/lib/esm/CascadingSelect/index.tsx +3 -3
- package/lib/esm/CascadingSelectE2E/index.tsx +3 -3
- package/lib/esm/Checkbox/index.tsx +4 -2
- package/lib/esm/ColorPicker/index.tsx +6 -3
- package/lib/esm/Date/index.tsx +5 -5
- package/lib/esm/DropdownMenu/index.tsx +2 -2
- package/lib/esm/DynamicFields/index.tsx +2 -1
- package/lib/esm/File/index.tsx +7 -5
- package/lib/esm/Input/index.tsx +14 -12
- package/lib/esm/LiveSearch/index.tsx +3 -1
- package/lib/esm/MultipleCheckboxes/index.tsx +5 -3
- package/lib/esm/MultipleSelect/index.tsx +2 -2
- package/lib/esm/NativeSelect/index.tsx +2 -1
- package/lib/esm/NumberInput/index.tsx +374 -0
- package/lib/esm/Pagination/index.tsx +3 -2
- package/lib/esm/Radio/index.tsx +4 -3
- package/lib/esm/RangeSlider/index.tsx +6 -5
- package/lib/esm/SearchBar/index.tsx +7 -6
- package/lib/esm/Select/index.tsx +6 -4
- package/lib/esm/Switch/index.tsx +4 -2
- package/lib/esm/Table/Table.tsx +4 -2
- package/lib/esm/Tabs/Tabs.tsx +3 -1
- package/lib/esm/TagInput/index.tsx +9 -2
- package/lib/esm/Textarea/index.tsx +13 -6
- package/lib/esm/Utils/libs/cls.ts +15 -0
- package/lib/esm/Utils/libs/convert.ts +8 -8
- package/lib/esm/Utils/libs/date.ts +0 -11
- package/lib/esm/Utils/libs/easing.ts +4 -4
- package/lib/esm/Utils/libs/extract.ts +8 -8
- package/lib/esm/Utils/libs/getElementProperty.ts +2 -2
- package/lib/esm/Utils/libs/math.ts +276 -0
- package/lib/esm/Utils/libs/viewport.ts +1 -1
- package/lib/esm/index.js +1 -0
- package/package.json +1 -1
package/Accordion/index.js
CHANGED
|
@@ -53,10 +53,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
53
53
|
/*
|
|
54
54
|
* All easing functions
|
|
55
55
|
* @link: https://easings.net
|
|
56
|
-
* @param {
|
|
57
|
-
* @param {
|
|
58
|
-
* @param {
|
|
59
|
-
* @param {
|
|
56
|
+
* @param {Number} t - time (Amount of time that has passed since the beginning of the animation. Usually starts at 0 and is slowly increased using a game loop or other update function.)
|
|
57
|
+
* @param {Number} b - beginning value (The starting point of the animation. Usually it's a static value, you can start at 0 for example.)
|
|
58
|
+
* @param {Number} c - change in value (The amount of change needed to go from starting point to end point. It's also usually a static value.)
|
|
59
|
+
* @param {Number} d - duration (Amount of time the animation will take. Usually a static value aswell.)
|
|
60
60
|
* @return {number}
|
|
61
61
|
*/
|
|
62
62
|
function _easeLinear(t, b, c, d) {
|
|
@@ -485,6 +485,108 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
485
485
|
|
|
486
486
|
/***/ }),
|
|
487
487
|
|
|
488
|
+
/***/ 188:
|
|
489
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
490
|
+
|
|
491
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
492
|
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
493
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
494
|
+
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
495
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
496
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
497
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
498
|
+
})(this, function () {
|
|
499
|
+
return (/******/function () {
|
|
500
|
+
// webpackBootstrap
|
|
501
|
+
/******/
|
|
502
|
+
"use strict";
|
|
503
|
+
|
|
504
|
+
/******/ // The require scope
|
|
505
|
+
/******/
|
|
506
|
+
var __nested_webpack_require_987__ = {};
|
|
507
|
+
/******/
|
|
508
|
+
/************************************************************************/
|
|
509
|
+
/******/ /* webpack/runtime/define property getters */
|
|
510
|
+
/******/
|
|
511
|
+
(function () {
|
|
512
|
+
/******/ // define getter functions for harmony exports
|
|
513
|
+
/******/__nested_webpack_require_987__.d = function (exports, definition) {
|
|
514
|
+
/******/for (var key in definition) {
|
|
515
|
+
/******/if (__nested_webpack_require_987__.o(definition, key) && !__nested_webpack_require_987__.o(exports, key)) {
|
|
516
|
+
/******/Object.defineProperty(exports, key, {
|
|
517
|
+
enumerable: true,
|
|
518
|
+
get: definition[key]
|
|
519
|
+
});
|
|
520
|
+
/******/
|
|
521
|
+
}
|
|
522
|
+
/******/
|
|
523
|
+
}
|
|
524
|
+
/******/
|
|
525
|
+
};
|
|
526
|
+
/******/
|
|
527
|
+
})();
|
|
528
|
+
/******/
|
|
529
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
530
|
+
/******/
|
|
531
|
+
(function () {
|
|
532
|
+
/******/__nested_webpack_require_987__.o = function (obj, prop) {
|
|
533
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
534
|
+
};
|
|
535
|
+
/******/
|
|
536
|
+
})();
|
|
537
|
+
/******/
|
|
538
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
539
|
+
/******/
|
|
540
|
+
(function () {
|
|
541
|
+
/******/ // define __esModule on exports
|
|
542
|
+
/******/__nested_webpack_require_987__.r = function (exports) {
|
|
543
|
+
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
544
|
+
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
545
|
+
value: 'Module'
|
|
546
|
+
});
|
|
547
|
+
/******/
|
|
548
|
+
}
|
|
549
|
+
/******/
|
|
550
|
+
Object.defineProperty(exports, '__esModule', {
|
|
551
|
+
value: true
|
|
552
|
+
});
|
|
553
|
+
/******/
|
|
554
|
+
};
|
|
555
|
+
/******/
|
|
556
|
+
})();
|
|
557
|
+
/******/
|
|
558
|
+
/************************************************************************/
|
|
559
|
+
var __webpack_exports__ = {};
|
|
560
|
+
__nested_webpack_require_987__.r(__webpack_exports__);
|
|
561
|
+
/* harmony export */
|
|
562
|
+
__nested_webpack_require_987__.d(__webpack_exports__, {
|
|
563
|
+
/* harmony export */"clsWrite": function clsWrite() {
|
|
564
|
+
return (/* binding */_clsWrite
|
|
565
|
+
);
|
|
566
|
+
}
|
|
567
|
+
/* harmony export */
|
|
568
|
+
});
|
|
569
|
+
/**
|
|
570
|
+
* Output of class name
|
|
571
|
+
* @param {*} s - Any
|
|
572
|
+
* @param {String} defaultCls - Default string
|
|
573
|
+
* @param {?*} targetCls - Any
|
|
574
|
+
* @returns HtmlElementCollection
|
|
575
|
+
*/
|
|
576
|
+
function _clsWrite(s, defaultCls) {
|
|
577
|
+
var targetCls = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
578
|
+
return s || s === '' ? typeof targetCls === 'undefined' ? s : targetCls : defaultCls;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
/******/
|
|
582
|
+
return __webpack_exports__;
|
|
583
|
+
/******/
|
|
584
|
+
}()
|
|
585
|
+
);
|
|
586
|
+
});
|
|
587
|
+
|
|
588
|
+
/***/ }),
|
|
589
|
+
|
|
488
590
|
/***/ 787:
|
|
489
591
|
/***/ ((module) => {
|
|
490
592
|
|
|
@@ -589,8 +691,11 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
589
691
|
// EXTERNAL MODULE: external {"root":"React","commonjs2":"react","commonjs":"react","amd":"react"}
|
|
590
692
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_ = __webpack_require__(787);
|
|
591
693
|
var external_root_React_commonjs2_react_commonjs_react_amd_react_default = /*#__PURE__*/__webpack_require__.n(external_root_React_commonjs2_react_commonjs_react_amd_react_);
|
|
694
|
+
// EXTERNAL MODULE: ../Utils/dist/cjs/cls.js
|
|
695
|
+
var cls = __webpack_require__(188);
|
|
592
696
|
;// CONCATENATED MODULE: ./src/AccordionItem.tsx
|
|
593
697
|
|
|
698
|
+
|
|
594
699
|
var AccordionItem = function AccordionItem(props) {
|
|
595
700
|
var heightObserver = props.heightObserver,
|
|
596
701
|
index = props.index,
|
|
@@ -634,29 +739,29 @@ var AccordionItem = function AccordionItem(props) {
|
|
|
634
739
|
}, [heightObserver]);
|
|
635
740
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
636
741
|
"data-index": index,
|
|
637
|
-
className: "custom-accordion-item ".concat(itemClassName
|
|
742
|
+
className: "custom-accordion-item ".concat((0,cls.clsWrite)(itemClassName, 'accordion-item'), " ").concat(activedClassName),
|
|
638
743
|
onClick: triggerType === 'click' ? onToggleEv : function () {},
|
|
639
744
|
onMouseOver: triggerType === 'click' ? function () {} : onToggleEv,
|
|
640
745
|
onTransitionEnd: typeof onTransitionEnd === 'function' ? onTransitionEnd : function () {},
|
|
641
746
|
"aria-expanded": defaultActive ? 'true' : 'false',
|
|
642
747
|
style: typeof itemStyle !== 'undefined' ? itemStyle : {}
|
|
643
748
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
644
|
-
className: "custom-accordion-header ".concat(itemHeaderClassName
|
|
749
|
+
className: "custom-accordion-header ".concat((0,cls.clsWrite)(itemHeaderClassName, 'accordion-header position-relative')),
|
|
645
750
|
role: "presentation"
|
|
646
751
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("button", {
|
|
647
752
|
tabIndex: -1,
|
|
648
|
-
className: "custom-accordion-trigger ".concat(itemTriggerClassName
|
|
753
|
+
className: "custom-accordion-trigger ".concat((0,cls.clsWrite)(itemTriggerClassName, 'accordion-button'), " ").concat(activedClassName === '' ? 'collapsed' : 'active'),
|
|
649
754
|
type: "button"
|
|
650
755
|
}, title), itemTriggerIcon), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
651
756
|
ref: contentWrapperRef,
|
|
652
|
-
className: "custom-accordion-content__wrapper w-100 ".concat(itemContentWrapperClassName
|
|
757
|
+
className: "custom-accordion-content__wrapper w-100 ".concat((0,cls.clsWrite)(itemContentWrapperClassName, 'accordion-collapse')),
|
|
653
758
|
role: "tabpanel",
|
|
654
759
|
style: {
|
|
655
760
|
height: defaultActive ? 'auto' : '0px',
|
|
656
761
|
overflow: 'hidden' // “overflow” affects the width, so add `w-100` to `custom-accordion-content__wrapper`
|
|
657
762
|
}
|
|
658
763
|
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
659
|
-
className: "custom-accordion-content ".concat(itemContentClassName
|
|
764
|
+
className: "custom-accordion-content ".concat((0,cls.clsWrite)(itemContentClassName, 'accordion-body')),
|
|
660
765
|
ref: contentRef
|
|
661
766
|
}, children))));
|
|
662
767
|
};
|
|
@@ -682,6 +787,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
682
787
|
|
|
683
788
|
|
|
684
789
|
|
|
790
|
+
|
|
685
791
|
// Adapt the easing parameters of TweenMax
|
|
686
792
|
var EasingList = /*#__PURE__*/function (EasingList) {
|
|
687
793
|
EasingList["linear"] = "linear";
|
|
@@ -789,7 +895,7 @@ var Accordion = function Accordion(props) {
|
|
|
789
895
|
}
|
|
790
896
|
}
|
|
791
897
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
792
|
-
className: "custom-accordion-item ".concat(wrapperClassName
|
|
898
|
+
className: "custom-accordion-item ".concat((0,cls.clsWrite)(wrapperClassName, 'accordion')),
|
|
793
899
|
role: "tablist",
|
|
794
900
|
ref: rootRef
|
|
795
901
|
}, children != null ? children.map(function (item, i) {
|
package/BackToTop/index.js
CHANGED
|
@@ -203,10 +203,10 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
203
203
|
/*
|
|
204
204
|
* All easing functions
|
|
205
205
|
* @link: https://easings.net
|
|
206
|
-
* @param {
|
|
207
|
-
* @param {
|
|
208
|
-
* @param {
|
|
209
|
-
* @param {
|
|
206
|
+
* @param {Number} t - time (Amount of time that has passed since the beginning of the animation. Usually starts at 0 and is slowly increased using a game loop or other update function.)
|
|
207
|
+
* @param {Number} b - beginning value (The starting point of the animation. Usually it's a static value, you can start at 0 for example.)
|
|
208
|
+
* @param {Number} c - change in value (The amount of change needed to go from starting point to end point. It's also usually a static value.)
|
|
209
|
+
* @param {Number} d - duration (Amount of time the animation will take. Usually a static value aswell.)
|
|
210
210
|
* @return {number}
|
|
211
211
|
*/
|
|
212
212
|
function _easeLinear(t, b, c, d) {
|
package/CascadingSelect/index.js
CHANGED
|
@@ -206,6 +206,108 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
206
206
|
|
|
207
207
|
/***/ }),
|
|
208
208
|
|
|
209
|
+
/***/ 188:
|
|
210
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
211
|
+
|
|
212
|
+
/* module decorator */ module = __webpack_require__.nmd(module);
|
|
213
|
+
var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
214
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
215
|
+
if (( false ? 0 : _typeof(exports)) === 'object' && ( false ? 0 : _typeof(module)) === 'object') module.exports = factory();else if (true) !(__WEBPACK_AMD_DEFINE_ARRAY__ = [], __WEBPACK_AMD_DEFINE_FACTORY__ = (factory),
|
|
216
|
+
__WEBPACK_AMD_DEFINE_RESULT__ = (typeof __WEBPACK_AMD_DEFINE_FACTORY__ === 'function' ?
|
|
217
|
+
(__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__)) : __WEBPACK_AMD_DEFINE_FACTORY__),
|
|
218
|
+
__WEBPACK_AMD_DEFINE_RESULT__ !== undefined && (module.exports = __WEBPACK_AMD_DEFINE_RESULT__));else {}
|
|
219
|
+
})(this, function () {
|
|
220
|
+
return (/******/function () {
|
|
221
|
+
// webpackBootstrap
|
|
222
|
+
/******/
|
|
223
|
+
"use strict";
|
|
224
|
+
|
|
225
|
+
/******/ // The require scope
|
|
226
|
+
/******/
|
|
227
|
+
var __nested_webpack_require_987__ = {};
|
|
228
|
+
/******/
|
|
229
|
+
/************************************************************************/
|
|
230
|
+
/******/ /* webpack/runtime/define property getters */
|
|
231
|
+
/******/
|
|
232
|
+
(function () {
|
|
233
|
+
/******/ // define getter functions for harmony exports
|
|
234
|
+
/******/__nested_webpack_require_987__.d = function (exports, definition) {
|
|
235
|
+
/******/for (var key in definition) {
|
|
236
|
+
/******/if (__nested_webpack_require_987__.o(definition, key) && !__nested_webpack_require_987__.o(exports, key)) {
|
|
237
|
+
/******/Object.defineProperty(exports, key, {
|
|
238
|
+
enumerable: true,
|
|
239
|
+
get: definition[key]
|
|
240
|
+
});
|
|
241
|
+
/******/
|
|
242
|
+
}
|
|
243
|
+
/******/
|
|
244
|
+
}
|
|
245
|
+
/******/
|
|
246
|
+
};
|
|
247
|
+
/******/
|
|
248
|
+
})();
|
|
249
|
+
/******/
|
|
250
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
251
|
+
/******/
|
|
252
|
+
(function () {
|
|
253
|
+
/******/__nested_webpack_require_987__.o = function (obj, prop) {
|
|
254
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
255
|
+
};
|
|
256
|
+
/******/
|
|
257
|
+
})();
|
|
258
|
+
/******/
|
|
259
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
260
|
+
/******/
|
|
261
|
+
(function () {
|
|
262
|
+
/******/ // define __esModule on exports
|
|
263
|
+
/******/__nested_webpack_require_987__.r = function (exports) {
|
|
264
|
+
/******/if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
265
|
+
/******/Object.defineProperty(exports, Symbol.toStringTag, {
|
|
266
|
+
value: 'Module'
|
|
267
|
+
});
|
|
268
|
+
/******/
|
|
269
|
+
}
|
|
270
|
+
/******/
|
|
271
|
+
Object.defineProperty(exports, '__esModule', {
|
|
272
|
+
value: true
|
|
273
|
+
});
|
|
274
|
+
/******/
|
|
275
|
+
};
|
|
276
|
+
/******/
|
|
277
|
+
})();
|
|
278
|
+
/******/
|
|
279
|
+
/************************************************************************/
|
|
280
|
+
var __webpack_exports__ = {};
|
|
281
|
+
__nested_webpack_require_987__.r(__webpack_exports__);
|
|
282
|
+
/* harmony export */
|
|
283
|
+
__nested_webpack_require_987__.d(__webpack_exports__, {
|
|
284
|
+
/* harmony export */"clsWrite": function clsWrite() {
|
|
285
|
+
return (/* binding */_clsWrite
|
|
286
|
+
);
|
|
287
|
+
}
|
|
288
|
+
/* harmony export */
|
|
289
|
+
});
|
|
290
|
+
/**
|
|
291
|
+
* Output of class name
|
|
292
|
+
* @param {*} s - Any
|
|
293
|
+
* @param {String} defaultCls - Default string
|
|
294
|
+
* @param {?*} targetCls - Any
|
|
295
|
+
* @returns HtmlElementCollection
|
|
296
|
+
*/
|
|
297
|
+
function _clsWrite(s, defaultCls) {
|
|
298
|
+
var targetCls = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
299
|
+
return s || s === '' ? typeof targetCls === 'undefined' ? s : targetCls : defaultCls;
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
/******/
|
|
303
|
+
return __webpack_exports__;
|
|
304
|
+
/******/
|
|
305
|
+
}()
|
|
306
|
+
);
|
|
307
|
+
});
|
|
308
|
+
|
|
309
|
+
/***/ }),
|
|
310
|
+
|
|
209
311
|
/***/ 79:
|
|
210
312
|
/***/ (function(module, exports, __webpack_require__) {
|
|
211
313
|
|
|
@@ -301,8 +403,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
301
403
|
});
|
|
302
404
|
/**
|
|
303
405
|
* Convert value to string separated by square brackets
|
|
304
|
-
* @param {
|
|
305
|
-
* @returns {
|
|
406
|
+
* @param {String} str such as: 1,2,3
|
|
407
|
+
* @returns {String} such as: [1][2][3]
|
|
306
408
|
*/
|
|
307
409
|
function _convertStringByCommaToValByBrackets(str) {
|
|
308
410
|
if (typeof str === 'undefined' || str === null || str === '') {
|
|
@@ -315,8 +417,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
315
417
|
|
|
316
418
|
/**
|
|
317
419
|
* Convert array value to string separated by square brackets
|
|
318
|
-
* @param {
|
|
319
|
-
* @returns {
|
|
420
|
+
* @param {String[]} arr such as: ['1','2','3']
|
|
421
|
+
* @returns {String} such as: [1][2][3]
|
|
320
422
|
*/
|
|
321
423
|
function _convertArrToValByBrackets(arr) {
|
|
322
424
|
if (!Array.isArray(arr)) return '';
|
|
@@ -327,8 +429,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
327
429
|
|
|
328
430
|
/**
|
|
329
431
|
* Convert value to string separated by curly braces
|
|
330
|
-
* @param {
|
|
331
|
-
* @returns {
|
|
432
|
+
* @param {String} str such as: 1,2,3
|
|
433
|
+
* @returns {String} such as: {1}{2}{3}
|
|
332
434
|
*/
|
|
333
435
|
function _convertStringByCommaToValByBraces(str) {
|
|
334
436
|
if (typeof str === 'undefined' || str === null || str === '') {
|
|
@@ -341,8 +443,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
341
443
|
|
|
342
444
|
/**
|
|
343
445
|
* Convert array value to string separated by curly braces
|
|
344
|
-
* @param {
|
|
345
|
-
* @returns {
|
|
446
|
+
* @param {String[]} arr such as: ['1','2','3']
|
|
447
|
+
* @returns {String} such as: {1}{2}{3}
|
|
346
448
|
*/
|
|
347
449
|
function _convertArrToValByBraces(arr) {
|
|
348
450
|
if (!Array.isArray(arr)) return '';
|
|
@@ -455,8 +557,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
455
557
|
});
|
|
456
558
|
/**
|
|
457
559
|
* Determine whether an extractor is included
|
|
458
|
-
* @param {
|
|
459
|
-
* @returns {
|
|
560
|
+
* @param {String} str => input string. such as 'a[1], b[2]', '{a[1]}'
|
|
561
|
+
* @returns {Boolean}
|
|
460
562
|
*/
|
|
461
563
|
function _extractorExist(str) {
|
|
462
564
|
if (typeof str === 'undefined' || str === null || str === '') {
|
|
@@ -471,8 +573,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
471
573
|
|
|
472
574
|
/**
|
|
473
575
|
* Extract the contents of square brackets
|
|
474
|
-
* @param {
|
|
475
|
-
* @param {
|
|
576
|
+
* @param {String} str => input string. such as '[1,2] [f][c]'
|
|
577
|
+
* @param {Boolean} commaSeparated => flag to determine if the result should be comma separated or not
|
|
476
578
|
* @returns {Array<string>|string} such as: ['1,2','f','c']
|
|
477
579
|
*/
|
|
478
580
|
function _extractContentsOfBrackets(str) {
|
|
@@ -490,8 +592,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
490
592
|
|
|
491
593
|
/**
|
|
492
594
|
* Extract the contents of curly braces
|
|
493
|
-
* @param {
|
|
494
|
-
* @param {
|
|
595
|
+
* @param {String} str => input string. such as '{1,2} {f}{c}'
|
|
596
|
+
* @param {Boolean} commaSeparated => flag to determine if the result should be comma separated or not
|
|
495
597
|
* @returns {Array<string>|string} such as: ['1,2','f','c']
|
|
496
598
|
*/
|
|
497
599
|
function _extractContentsOfBraces(str) {
|
|
@@ -509,8 +611,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
509
611
|
|
|
510
612
|
/**
|
|
511
613
|
* Extract the contents of parentheses
|
|
512
|
-
* @param {
|
|
513
|
-
* @param {
|
|
614
|
+
* @param {String} str => input string. such as '(1,2) (f)(c)'
|
|
615
|
+
* @param {Boolean} commaSeparated => flag to determine if the result should be comma separated or not
|
|
514
616
|
* @returns {Array<string>|string} such as: ['1,2','f','c']
|
|
515
617
|
*/
|
|
516
618
|
function _extractContentsOfParentheses(str) {
|
|
@@ -739,8 +841,8 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
739
841
|
* Get the absolute position of the stage element
|
|
740
842
|
*
|
|
741
843
|
* @param {HTMLElement} domElement - A DOM node
|
|
742
|
-
* @param {
|
|
743
|
-
* @param {
|
|
844
|
+
* @param {Number | string} left - left offset
|
|
845
|
+
* @param {Number | string} top - top offset
|
|
744
846
|
* @returns
|
|
745
847
|
*/
|
|
746
848
|
function _getAbsolutePositionOfStage(domElement) {
|
|
@@ -1637,6 +1739,8 @@ var extract = __webpack_require__(135);
|
|
|
1637
1739
|
var convert = __webpack_require__(79);
|
|
1638
1740
|
// EXTERNAL MODULE: ../Utils/dist/cjs/getElementProperty.js
|
|
1639
1741
|
var getElementProperty = __webpack_require__(767);
|
|
1742
|
+
// EXTERNAL MODULE: ../Utils/dist/cjs/cls.js
|
|
1743
|
+
var cls = __webpack_require__(188);
|
|
1640
1744
|
;// CONCATENATED MODULE: ./src/Group.tsx
|
|
1641
1745
|
|
|
1642
1746
|
function Group(props) {
|
|
@@ -1727,6 +1831,7 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
1727
1831
|
|
|
1728
1832
|
|
|
1729
1833
|
|
|
1834
|
+
|
|
1730
1835
|
var CascadingSelect = function CascadingSelect(props) {
|
|
1731
1836
|
var popupRef = props.popupRef,
|
|
1732
1837
|
wrapperClassName = props.wrapperClassName,
|
|
@@ -2572,7 +2677,7 @@ var CascadingSelect = function CascadingSelect(props) {
|
|
|
2572
2677
|
initDefaultValue(value);
|
|
2573
2678
|
}, [value]);
|
|
2574
2679
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
2575
|
-
className: wrapperClassName
|
|
2680
|
+
className: (0,cls.clsWrite)(wrapperClassName, 'cas-select__wrapper mb-3 position-relative', "cas-select__wrapper ".concat(wrapperClassName)),
|
|
2576
2681
|
ref: rootRef,
|
|
2577
2682
|
"data-overlay-id": "cas-select__items-wrapper-".concat(idRes)
|
|
2578
2683
|
}, label ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, typeof label === 'string' ? /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("label", {
|
|
@@ -2674,7 +2779,7 @@ var CascadingSelect = function CascadingSelect(props) {
|
|
|
2674
2779
|
id: idRes,
|
|
2675
2780
|
"data-overlay-id": "cas-select__items-wrapper-".concat(idRes),
|
|
2676
2781
|
name: name,
|
|
2677
|
-
className: "".concat(controlClassName
|
|
2782
|
+
className: "".concat((0,cls.clsWrite)(controlClassName, 'form-control'), " ").concat(controlExClassName || ''),
|
|
2678
2783
|
placeholder: placeholder,
|
|
2679
2784
|
value: changedVal // placeholder will not change if defaultValue is used
|
|
2680
2785
|
,
|