funda-ui 4.4.35 → 4.5.12
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/Date/index.js +1078 -77
- package/EventCalendar/index.js +8 -2
- package/EventCalendarTimeline/index.js +32 -1
- package/Input/index.d.ts +7 -0
- package/Input/index.js +699 -57
- package/MasonryLayout/index.js +11 -1
- package/MultipleSelect/index.d.ts +1 -0
- package/MultipleSelect/index.js +7 -5
- package/RangeSlider/index.js +1078 -77
- package/Select/index.js +34 -2
- package/Textarea/index.d.ts +7 -0
- package/Textarea/index.js +707 -10
- package/Tree/index.js +2 -0
- package/Utils/inputsCalculation.d.ts +18 -1
- package/Utils/inputsCalculation.js +26 -0
- package/lib/cjs/Date/index.js +1078 -77
- package/lib/cjs/EventCalendar/index.js +8 -2
- package/lib/cjs/EventCalendarTimeline/index.js +32 -1
- package/lib/cjs/Input/index.d.ts +7 -0
- package/lib/cjs/Input/index.js +699 -57
- package/lib/cjs/MasonryLayout/index.js +11 -1
- package/lib/cjs/MultipleSelect/index.d.ts +1 -0
- package/lib/cjs/MultipleSelect/index.js +7 -5
- package/lib/cjs/RangeSlider/index.js +1078 -77
- package/lib/cjs/Select/index.js +34 -2
- package/lib/cjs/Textarea/index.d.ts +7 -0
- package/lib/cjs/Textarea/index.js +707 -10
- package/lib/cjs/Tree/index.js +2 -0
- package/lib/cjs/Utils/inputsCalculation.d.ts +18 -1
- package/lib/cjs/Utils/inputsCalculation.js +26 -0
- package/lib/esm/EventCalendar/index.tsx +8 -6
- package/lib/esm/EventCalendarTimeline/index.tsx +439 -403
- package/lib/esm/Input/index.tsx +299 -77
- package/lib/esm/MasonryLayout/index.tsx +9 -2
- package/lib/esm/MultipleSelect/index.tsx +6 -4
- package/lib/esm/Textarea/index.tsx +332 -39
- package/lib/esm/Tree/TreeList.tsx +4 -1
- package/lib/esm/Tree/index.tsx +1 -0
- package/lib/esm/Utils/libs/inputsCalculation.ts +60 -31
- package/package.json +1 -1
package/lib/cjs/Select/index.js
CHANGED
|
@@ -1622,12 +1622,35 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1622
1622
|
__nested_webpack_require_987__.r(__webpack_exports__);
|
|
1623
1623
|
/* harmony export */
|
|
1624
1624
|
__nested_webpack_require_987__.d(__webpack_exports__, {
|
|
1625
|
+
/* harmony export */"actualPropertyValue": function actualPropertyValue() {
|
|
1626
|
+
return (/* binding */_actualPropertyValue
|
|
1627
|
+
);
|
|
1628
|
+
},
|
|
1629
|
+
/* harmony export */"getTextTop": function getTextTop() {
|
|
1630
|
+
return (/* binding */_getTextTop
|
|
1631
|
+
);
|
|
1632
|
+
},
|
|
1625
1633
|
/* harmony export */"getTextWidth": function getTextWidth() {
|
|
1626
1634
|
return (/* binding */_getTextWidth
|
|
1627
1635
|
);
|
|
1628
1636
|
}
|
|
1629
1637
|
/* harmony export */
|
|
1630
1638
|
});
|
|
1639
|
+
/**
|
|
1640
|
+
* Gets the relative upside of the text
|
|
1641
|
+
* @param {Element} el - A DOM node containing one selector to match against.
|
|
1642
|
+
* @returns {Number} - Returns a pure number.
|
|
1643
|
+
*/
|
|
1644
|
+
function _getTextTop(el) {
|
|
1645
|
+
var styles = window.getComputedStyle(el);
|
|
1646
|
+
var fontSize = parseFloat(styles.fontSize);
|
|
1647
|
+
var lineHeight = parseFloat(styles.lineHeight) || fontSize;
|
|
1648
|
+
var paddingTop = parseFloat(styles.paddingTop);
|
|
1649
|
+
var borderWidth = parseFloat(styles.borderWidth);
|
|
1650
|
+
var textTop = paddingTop + (lineHeight - fontSize) / 2 - borderWidth * 2;
|
|
1651
|
+
return textTop;
|
|
1652
|
+
}
|
|
1653
|
+
|
|
1631
1654
|
/**
|
|
1632
1655
|
* Get the actual value with user specific methed
|
|
1633
1656
|
* it can be 'width', 'height', 'outerWidth', 'outerHeight'
|
|
@@ -1638,7 +1661,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1638
1661
|
takes effect when set to true
|
|
1639
1662
|
* @return {Number} - Returns a pure number.
|
|
1640
1663
|
*/
|
|
1641
|
-
function
|
|
1664
|
+
function _actualPropertyValue(el, prop) {
|
|
1642
1665
|
var config = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
|
1643
1666
|
if (el === null) return 0;
|
|
1644
1667
|
var style = window.getComputedStyle ? window.getComputedStyle(el) : el.currentStyle,
|
|
@@ -1653,6 +1676,15 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1653
1676
|
marginWidth = parseFloat(style.marginLeft) + parseFloat(style.marginRight);
|
|
1654
1677
|
marginHeight = parseFloat(style.marginTop) + parseFloat(style.marginBottom);
|
|
1655
1678
|
}
|
|
1679
|
+
if (prop === 'fontSize') {
|
|
1680
|
+
actualVal = parseFloat(style.fontSize);
|
|
1681
|
+
}
|
|
1682
|
+
if (prop === 'fontFamily') {
|
|
1683
|
+
actualVal = style.fontFamily;
|
|
1684
|
+
}
|
|
1685
|
+
if (prop === 'letterSpacing') {
|
|
1686
|
+
actualVal = style.letterSpacing;
|
|
1687
|
+
}
|
|
1656
1688
|
if (prop === 'width') {
|
|
1657
1689
|
maxVal = parseFloat(style.maxWidth);
|
|
1658
1690
|
|
|
@@ -1731,7 +1763,7 @@ var __WEBPACK_AMD_DEFINE_FACTORY__, __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_
|
|
|
1731
1763
|
_faux.style.setProperty(listOfModifiers[i], propertyValue);
|
|
1732
1764
|
}
|
|
1733
1765
|
_faux.textContent = input.value.substring(0, _off).replace(/\s/g, "\xA0");
|
|
1734
|
-
return
|
|
1766
|
+
return _actualPropertyValue(_faux, 'outerWidth');
|
|
1735
1767
|
}
|
|
1736
1768
|
}
|
|
1737
1769
|
|
|
@@ -22,6 +22,13 @@ export declare type TextareaProps = {
|
|
|
22
22
|
autoSize?: boolean;
|
|
23
23
|
iconLeft?: React.ReactNode | string;
|
|
24
24
|
iconRight?: React.ReactNode | string;
|
|
25
|
+
aiPredict?: boolean;
|
|
26
|
+
aiPredictRemainingTextRGB?: number[];
|
|
27
|
+
aiPredictConfirmKey?: Array<string[]>;
|
|
28
|
+
aiPredictFetchFuncAsync?: any;
|
|
29
|
+
aiPredictFetchFuncMethod?: string;
|
|
30
|
+
aiPredictFetchFuncMethodParams?: any[];
|
|
31
|
+
aiPredictFetchCallback?: (data: any) => void;
|
|
25
32
|
/** -- */
|
|
26
33
|
id?: string;
|
|
27
34
|
style?: React.CSSProperties;
|