@axelor/aos-mobile-ui 6.4.1 → 6.4.3
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/README.md +2 -1
- package/lib/components/atoms/HtmlInput/HtmlInput.d.ts +8 -1
- package/lib/components/atoms/HtmlInput/HtmlInput.js +30 -20
- package/lib/components/atoms/HtmlInput/HtmlInput.js.map +1 -1
- package/lib/components/atoms/index.d.ts +0 -1
- package/lib/components/atoms/index.js +0 -1
- package/lib/components/atoms/index.js.map +1 -1
- package/lib/components/molecules/Badge/Badge.d.ts +2 -2
- package/lib/components/molecules/Badge/Badge.js +4 -2
- package/lib/components/molecules/Badge/Badge.js.map +1 -1
- package/lib/components/molecules/Checkbox/Checkbox.d.ts +11 -0
- package/lib/components/molecules/Checkbox/Checkbox.js +52 -0
- package/lib/components/molecules/Checkbox/Checkbox.js.map +1 -0
- package/lib/components/molecules/Chip/Chip.d.ts +3 -2
- package/lib/components/molecules/Chip/Chip.js +2 -2
- package/lib/components/molecules/Chip/Chip.js.map +1 -1
- package/lib/components/molecules/CircleButton/CircleButton.d.ts +8 -0
- package/lib/components/molecules/CircleButton/CircleButton.js +47 -0
- package/lib/components/molecules/CircleButton/CircleButton.js.map +1 -0
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.d.ts +11 -0
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js +71 -0
- package/lib/components/molecules/FormHtmlInput/FormHtmlInput.js.map +1 -0
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.d.ts +11 -0
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js +72 -0
- package/lib/components/molecules/FormIncrementInput/FormIncrementInput.js.map +1 -0
- package/lib/components/molecules/FormInput/FormInput.d.ts +11 -0
- package/lib/components/molecules/FormInput/FormInput.js +72 -0
- package/lib/components/molecules/FormInput/FormInput.js.map +1 -0
- package/lib/components/molecules/IconInput/IconInput.d.ts +2 -1
- package/lib/components/molecules/IconInput/IconInput.js +18 -5
- package/lib/components/molecules/IconInput/IconInput.js.map +1 -1
- package/lib/components/molecules/Increment/Increment.d.ts +5 -1
- package/lib/components/molecules/Increment/Increment.js +13 -9
- package/lib/components/molecules/Increment/Increment.js.map +1 -1
- package/lib/components/molecules/MessageBox/MessageBox.js +20 -11
- package/lib/components/molecules/MessageBox/MessageBox.js.map +1 -1
- package/lib/components/molecules/NotesCard/NotesCard.d.ts +2 -1
- package/lib/components/molecules/NotesCard/NotesCard.js +13 -15
- package/lib/components/molecules/NotesCard/NotesCard.js.map +1 -1
- package/lib/components/molecules/PanelTabs/PanelTabs.d.ts +13 -0
- package/lib/components/molecules/PanelTabs/PanelTabs.js +93 -0
- package/lib/components/molecules/PanelTabs/PanelTabs.js.map +1 -0
- package/lib/components/molecules/ViewAllContainer/ViewAllContainer.d.ts +4 -4
- package/lib/components/molecules/index.d.ts +4 -0
- package/lib/components/molecules/index.js +4 -0
- package/lib/components/molecules/index.js.map +1 -1
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js +52 -51
- package/lib/components/organisms/AutoCompleteSearch/AutoCompleteSearch.js.map +1 -1
- package/lib/components/organisms/ChipSelect/ChipSelect.d.ts +14 -3
- package/lib/components/organisms/ChipSelect/ChipSelect.js +39 -6
- package/lib/components/organisms/ChipSelect/ChipSelect.js.map +1 -1
- package/lib/components/organisms/FloatingButton/FloatingButton.d.ts +16 -0
- package/lib/components/organisms/FloatingButton/FloatingButton.js +106 -0
- package/lib/components/organisms/FloatingButton/FloatingButton.js.map +1 -0
- package/lib/components/organisms/MultiSelectValue/MultiSelectValue.d.ts +9 -0
- package/lib/components/organisms/MultiSelectValue/MultiSelectValue.js +49 -0
- package/lib/components/organisms/MultiSelectValue/MultiSelectValue.js.map +1 -0
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.d.ts +3 -3
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js +16 -11
- package/lib/components/organisms/MultiValuePicker/MultiValuePicker.js.map +1 -1
- package/lib/components/organisms/Picker/Picker.d.ts +3 -1
- package/lib/components/organisms/Picker/Picker.js +29 -7
- package/lib/components/organisms/Picker/Picker.js.map +1 -1
- package/lib/components/organisms/ProgressBar/ProgressBar.d.ts +18 -0
- package/lib/components/organisms/ProgressBar/ProgressBar.js +164 -0
- package/lib/components/organisms/ProgressBar/ProgressBar.js.map +1 -0
- package/lib/components/organisms/ScrollList/ScrollList.js +18 -8
- package/lib/components/organisms/ScrollList/ScrollList.js.map +1 -1
- package/lib/components/organisms/SearchBar/SearchBar.d.ts +2 -1
- package/lib/components/organisms/SearchBar/SearchBar.js +2 -2
- package/lib/components/organisms/SearchBar/SearchBar.js.map +1 -1
- package/lib/components/organisms/index.d.ts +3 -0
- package/lib/components/organisms/index.js +3 -0
- package/lib/components/organisms/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/utils/commons-styles.d.ts +13 -1
- package/lib/utils/commons-styles.js +13 -1
- package/lib/utils/commons-styles.js.map +1 -1
- package/lib/utils/commons-utlis.d.ts +1 -0
- package/lib/utils/commons-utlis.js +24 -0
- package/lib/utils/commons-utlis.js.map +1 -0
- package/lib/utils/strings.js +1 -1
- package/lib/utils/strings.js.map +1 -1
- package/package.json +1 -2
- package/lib/components/atoms/RenderHtml/RenderHtml.d.ts +0 -6
- package/lib/components/atoms/RenderHtml/RenderHtml.js +0 -50
- package/lib/components/atoms/RenderHtml/RenderHtml.js.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Axelor Business Solutions
|
|
3
|
-
*
|
|
4
|
-
* Copyright (C) 2023 Axelor (<http://axelor.com>).
|
|
5
|
-
*
|
|
6
|
-
* This program is free software: you can redistribute it and/or modify
|
|
7
|
-
* it under the terms of the GNU Affero General Public License, version 3,
|
|
8
|
-
* as published by the Free Software Foundation.
|
|
9
|
-
*
|
|
10
|
-
* This program is distributed in the hope that it will be useful,
|
|
11
|
-
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
12
|
-
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
13
|
-
* GNU Affero General Public License for more details.
|
|
14
|
-
*
|
|
15
|
-
* You should have received a copy of the GNU Affero General Public License
|
|
16
|
-
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
17
|
-
*/
|
|
18
|
-
import React from 'react';
|
|
19
|
-
import { useThemeColor } from '../../../theme/ThemeContext';
|
|
20
|
-
import ReactNativeRenderHTML, { HTMLContentModel, HTMLElementModel, } from 'react-native-render-html';
|
|
21
|
-
const PERCENTAGE_WIDTH_NOTES = 0.95;
|
|
22
|
-
const RenderHtml = ({ data, widthNotes }) => {
|
|
23
|
-
const Colors = useThemeColor();
|
|
24
|
-
if (data == null || data === '') {
|
|
25
|
-
return null;
|
|
26
|
-
}
|
|
27
|
-
const fontElementModel = HTMLElementModel.fromCustomModel({
|
|
28
|
-
tagName: 'font',
|
|
29
|
-
contentModel: HTMLContentModel.mixed,
|
|
30
|
-
getUADerivedStyleFromAttributes({ face, color, size }) {
|
|
31
|
-
let style = { fontFamily: '', color: '', fontSize: '' };
|
|
32
|
-
if (face) {
|
|
33
|
-
style.fontFamily = face;
|
|
34
|
-
}
|
|
35
|
-
if (color) {
|
|
36
|
-
style.color = color;
|
|
37
|
-
}
|
|
38
|
-
if (size) {
|
|
39
|
-
style.fontSize = size;
|
|
40
|
-
}
|
|
41
|
-
return style;
|
|
42
|
-
},
|
|
43
|
-
});
|
|
44
|
-
const customHTMLElementModels = { font: fontElementModel };
|
|
45
|
-
return (<ReactNativeRenderHTML source={{
|
|
46
|
-
html: data,
|
|
47
|
-
}} customHTMLElementModels={customHTMLElementModels} contentWidth={widthNotes != null ? widthNotes * PERCENTAGE_WIDTH_NOTES : 100} baseStyle={{ color: Colors.text }}/>);
|
|
48
|
-
};
|
|
49
|
-
export default RenderHtml;
|
|
50
|
-
//# sourceMappingURL=RenderHtml.js.map
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