sccoreui 4.2.1 → 4.2.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/dist/App.js +1 -1
- package/dist/App.scss +31 -4
- package/dist/assets/fonts/Roboto-Bold.ttf +0 -0
- package/dist/assets/fonts/Roboto-Italic.ttf +0 -0
- package/dist/assets/fonts/Roboto-Medium.ttf +0 -0
- package/dist/assets/fonts/Roboto-Regular.ttf +0 -0
- package/dist/assets/sccoreui.css +1 -1
- package/dist/components/froala-editor/FroalaEditor.js +51 -46
- package/dist/components/multi-select-dropdown/multi-select-dropdown.js +5 -5
- package/dist/types/components/froala-editor/FroalaEditor.d.ts +4 -5
- package/package.json +1 -1
package/dist/App.js
CHANGED
|
@@ -5,6 +5,6 @@ const jsx_runtime_1 = require("react/jsx-runtime");
|
|
|
5
5
|
require("./App.scss");
|
|
6
6
|
// import Home from "./pages/home";
|
|
7
7
|
const App = () => {
|
|
8
|
-
return ((0, jsx_runtime_1.jsx)("div", {
|
|
8
|
+
return ((0, jsx_runtime_1.jsx)("div", {}));
|
|
9
9
|
};
|
|
10
10
|
exports.default = App;
|
package/dist/App.scss
CHANGED
|
@@ -4,6 +4,31 @@
|
|
|
4
4
|
@import url("./assets/flex.css");
|
|
5
5
|
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap');
|
|
6
6
|
|
|
7
|
+
@font-face {
|
|
8
|
+
font-family: 'RobotoBold';
|
|
9
|
+
src: url('../src//assets//fonts/Roboto-Bold.ttf') format('truetype');
|
|
10
|
+
font-weight: 700;
|
|
11
|
+
font-style: italic;
|
|
12
|
+
}
|
|
13
|
+
@font-face {
|
|
14
|
+
font-family: 'RobotoMedium';
|
|
15
|
+
src: url('../src//assets//fonts/Roboto-Medium.ttf') format('truetype');
|
|
16
|
+
font-weight: normal;
|
|
17
|
+
font-style: normal;
|
|
18
|
+
}
|
|
19
|
+
@font-face {
|
|
20
|
+
font-family: 'RobotoItalic';
|
|
21
|
+
src: url('../src//assets//fonts/Roboto-Italic.ttf') format('truetype');
|
|
22
|
+
font-weight: normal;
|
|
23
|
+
font-style: normal;
|
|
24
|
+
}
|
|
25
|
+
@font-face {
|
|
26
|
+
font-family: 'RobotoRegular';
|
|
27
|
+
src: url('../src//assets//fonts/Roboto-Regular.ttf') format('truetype');
|
|
28
|
+
font-weight: normal;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
}
|
|
31
|
+
|
|
7
32
|
:root {
|
|
8
33
|
--fw-600: 600;
|
|
9
34
|
--fw-400: 400;
|
|
@@ -16,6 +41,8 @@
|
|
|
16
41
|
--border-none: border-none;
|
|
17
42
|
}
|
|
18
43
|
|
|
44
|
+
|
|
45
|
+
|
|
19
46
|
// @font-face {
|
|
20
47
|
// font-family: "Lato";
|
|
21
48
|
// }
|
|
@@ -182,7 +209,7 @@ code {
|
|
|
182
209
|
}
|
|
183
210
|
|
|
184
211
|
.selected_moreThan_one {
|
|
185
|
-
right:
|
|
212
|
+
right: 40px;
|
|
186
213
|
}
|
|
187
214
|
|
|
188
215
|
.p-inputwrapper-filled {
|
|
@@ -201,8 +228,8 @@ code {
|
|
|
201
228
|
|
|
202
229
|
.p-multiselect-token {
|
|
203
230
|
border: none;
|
|
204
|
-
width:
|
|
205
|
-
min-width:
|
|
231
|
+
width: 100%;
|
|
232
|
+
min-width: 100%;
|
|
206
233
|
background: none;
|
|
207
234
|
padding-left: 0;
|
|
208
235
|
|
|
@@ -280,7 +307,7 @@ code {
|
|
|
280
307
|
|
|
281
308
|
.selected_multile.selected_num_2 {
|
|
282
309
|
.p-multiselect .p-multiselect-label {
|
|
283
|
-
padding-left:
|
|
310
|
+
padding-left: 44px;
|
|
284
311
|
}
|
|
285
312
|
}
|
|
286
313
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/assets/sccoreui.css
CHANGED
|
@@ -1777,7 +1777,7 @@ a {
|
|
|
1777
1777
|
.p-multiselect .p-multiselect-label.p-placeholder {
|
|
1778
1778
|
color: var(--gray-500);
|
|
1779
1779
|
font-size: 16px;
|
|
1780
|
-
font-weight:
|
|
1780
|
+
font-weight: normal;
|
|
1781
1781
|
}
|
|
1782
1782
|
.p-multiselect.p-multiselect-chip .p-multiselect-token {
|
|
1783
1783
|
padding: 0px 10px;
|
|
@@ -2,53 +2,58 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
+
const react_1 = require("react");
|
|
6
|
+
require("froala-editor/css/froala_editor.pkgd.min.css");
|
|
7
|
+
require("froala-editor/css/froala_style.min.css");
|
|
5
8
|
const react_froala_wysiwyg_1 = tslib_1.__importDefault(require("react-froala-wysiwyg"));
|
|
6
9
|
require("froala-editor/js/plugins.pkgd.min.js");
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const
|
|
11
|
-
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
fontFamily: {
|
|
15
|
-
'Arial,Helvetica,sans-serif': 'Font 1',
|
|
16
|
-
'Impact,Charcoal,sans-serif': 'Font 2',
|
|
17
|
-
'Tahoma,Geneva,sans-serif': 'Font 3'
|
|
18
|
-
},
|
|
19
|
-
fontFamilyDefaultSelection: 'Font 2',
|
|
20
|
-
placeholderText: placeholder,
|
|
21
|
-
key: "5OA4gB3A3B3E3B5D3E3F-11SLJCKHXOSLMc1YGSGb1ZXHSe1CgB5A4D4G4E3C2A12A19A6B4==",
|
|
22
|
-
charCounterCount: false,
|
|
23
|
-
toolbarSticky: false,
|
|
24
|
-
quickInsertEnabled: false,
|
|
25
|
-
toolbarInline: false,
|
|
26
|
-
attribution: false,
|
|
27
|
-
heightMax: 160,
|
|
28
|
-
heightMin: 130,
|
|
29
|
-
fullPage: true,
|
|
30
|
-
toolbarButtons: {
|
|
31
|
-
'fontFamily': {
|
|
32
|
-
'buttons': ['fontFamily'],
|
|
33
|
-
'class': 'customCard'
|
|
34
|
-
},
|
|
35
|
-
'moreText': {
|
|
36
|
-
'buttons': ['bold', 'italic', 'underline', 'strikeThrough', 'fontSize', 'subscript', 'superscript', 'textColor', 'backgroundColor', 'inlineClass', 'inlineStyle', 'clearFormatting'],
|
|
37
|
-
'buttonsVisible': 2
|
|
38
|
-
},
|
|
39
|
-
'moreParagraph': {
|
|
40
|
-
'buttons': ['formatOL', 'formatUL', 'alignLeft', 'alignCenter', 'formatOLSimple', 'alignRight', 'alignJustify', 'paragraphFormat', 'paragraphStyle', 'lineHeight', 'outdent', 'indent', 'quote'],
|
|
41
|
-
'buttonsVisible': 2
|
|
42
|
-
},
|
|
43
|
-
'moreRich': {
|
|
44
|
-
'buttons': ['insertLink', 'insertImage', 'insertHR', 'undo', 'redo', 'html'],
|
|
45
|
-
'buttonsVisible': 2
|
|
46
|
-
},
|
|
47
|
-
'fullscreen': {
|
|
48
|
-
'button': 'fullscreen'
|
|
49
|
-
}
|
|
50
|
-
},
|
|
10
|
+
const MyEditor = () => {
|
|
11
|
+
const editorRef = (0, react_1.useRef)(null);
|
|
12
|
+
const html = ``;
|
|
13
|
+
const [editorContent, setEditorContent] = (0, react_1.useState)(html);
|
|
14
|
+
// Callback function to handle content changes
|
|
15
|
+
const handleModelChange = (content) => {
|
|
16
|
+
setEditorContent(content);
|
|
51
17
|
};
|
|
52
|
-
return ((0, jsx_runtime_1.jsx)("div",
|
|
18
|
+
return ((0, jsx_runtime_1.jsx)("div", { children: (0, jsx_runtime_1.jsx)(react_froala_wysiwyg_1.default, { tag: "textarea", config: {
|
|
19
|
+
fontFamilySelection: true,
|
|
20
|
+
fontFamily: {
|
|
21
|
+
'Arial,Helvetica,sans-serif': 'Font 1',
|
|
22
|
+
'Impact,Charcoal,sans-serif': 'Font 2',
|
|
23
|
+
'RobotoItalic,Charcoal,sans-serif': 'RobotoItalic',
|
|
24
|
+
'Tahoma,Geneva,sans-serif': 'Font 3'
|
|
25
|
+
},
|
|
26
|
+
fontFamilyDefaultSelection: 'Font 2',
|
|
27
|
+
placeholderText: 'placeholder',
|
|
28
|
+
key: "5OA4gB3A3B3E3B5D3E3F-11SLJCKHXOSLMc1YGSGb1ZXHSe1CgB5A4D4G4E3C2A12A19A6B4==",
|
|
29
|
+
charCounterCount: false,
|
|
30
|
+
toolbarSticky: false,
|
|
31
|
+
quickInsertEnabled: false,
|
|
32
|
+
toolbarInline: false,
|
|
33
|
+
attribution: false,
|
|
34
|
+
heightMax: 160,
|
|
35
|
+
heightMin: 130,
|
|
36
|
+
toolbarButtons: {
|
|
37
|
+
'fontFamily': {
|
|
38
|
+
'buttons': ['fontFamily'],
|
|
39
|
+
'class': 'customCard'
|
|
40
|
+
},
|
|
41
|
+
'moreText': {
|
|
42
|
+
'buttons': ['bold', 'italic', 'underline', 'strikeThrough', 'fontSize', 'subscript', 'superscript', 'textColor', 'backgroundColor', 'inlineClass', 'inlineStyle', 'clearFormatting'],
|
|
43
|
+
'buttonsVisible': 2
|
|
44
|
+
},
|
|
45
|
+
'moreParagraph': {
|
|
46
|
+
'buttons': ['formatOL', 'formatUL', 'alignLeft', 'alignCenter', 'formatOLSimple', 'alignRight', 'alignJustify', 'paragraphFormat', 'paragraphStyle', 'lineHeight', 'outdent', 'indent', 'quote'],
|
|
47
|
+
'buttonsVisible': 2
|
|
48
|
+
},
|
|
49
|
+
'moreRich': {
|
|
50
|
+
'buttons': ['insertLink', 'insertImage', 'insertHR', 'undo', 'redo', 'html'],
|
|
51
|
+
'buttonsVisible': 2
|
|
52
|
+
},
|
|
53
|
+
'fullscreen': {
|
|
54
|
+
'button': 'fullscreen'
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
}, model: editorContent, onModelChange: handleModelChange, ref: editorRef }) }));
|
|
53
58
|
};
|
|
54
|
-
exports.default =
|
|
59
|
+
exports.default = MyEditor;
|
|
@@ -46,17 +46,17 @@ const MultiSelectDropDown = (props) => {
|
|
|
46
46
|
return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: (0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `status_dropdown_item pl-6 ${option.name.replaceAll(' ', '').toLowerCase()}` }, { children: [(0, jsx_runtime_1.jsx)("div", { className: 'status_dot', style: { background: option.color } }), (0, jsx_runtime_1.jsx)("div", Object.assign({ className: 'otption_name mr-8' }, { children: option.name }))] })) }));
|
|
47
47
|
};
|
|
48
48
|
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: [props.dropdownType === 'withIcon' &&
|
|
49
|
-
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${props.className} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem` }), items.length > 0 &&
|
|
50
|
-
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })),
|
|
49
|
+
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${props.className} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, style: { maxWidth: props.maxWidth ? props.maxWidth + 'px' : '' }, className: `w-full md:w-20rem ${props.maxWidth ? `${'optionBodyMaxWidth_' + props.maxWidth}` : ''}`, panelStyle: { width: props.panelWidth ? props.panelWidth + 'px' : '' } }), items.length > 0 &&
|
|
50
|
+
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })), props.clear &&
|
|
51
51
|
clearIcon()] }))] })), props.dropdownType === 'default' &&
|
|
52
52
|
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative ${props.className} ${props.icon !== undefined ? 'left_icon' : 'no_icon'} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''}` }, { children: [props.icon !== undefined &&
|
|
53
|
-
(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem
|
|
53
|
+
(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, style: { maxWidth: props.maxWidth ? props.maxWidth + 'px' : '' }, className: `w-full md:w-20rem`, panelStyle: { width: props.panelWidth ? props.panelWidth + 'px' : '' } }), items.length > 0 &&
|
|
54
54
|
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })), props.clear &&
|
|
55
55
|
clearIcon()] }))] })), props.dropdownType === 'status' &&
|
|
56
|
-
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative status_dropdown ${props.className} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''} ${items.length > 3 ? 'moreThanThreeItems' : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", itemTemplate: (option) => itemTemplate(option), filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem
|
|
56
|
+
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: `sc_custom_multiselect flex align-items-center relative status_dropdown ${props.className} ${isMoreThanOne ? `selected_multile ${`selected_num_` + items.length}` : ''} ${items.length > 3 ? 'moreThanThreeItems' : ''}` }, { children: [(0, jsx_runtime_1.jsx)(LeftSection, {}), (0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { panelClassName: `Multi_select_dropdown_panel panel_${props.dropdownType} ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, value: items, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", itemTemplate: (option) => itemTemplate(option), filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, style: { maxWidth: props.maxWidth ? props.maxWidth + 'px' : '' }, className: `w-full md:w-20rem`, panelStyle: { width: props.panelWidth ? props.panelWidth + 'px' : '' } }), items.length > 0 &&
|
|
57
57
|
(0, jsx_runtime_1.jsxs)("div", Object.assign({ className: "flex align-items-center" }, { children: [isMoreThanOne && (0, jsx_runtime_1.jsxs)("span", Object.assign({ className: "selected_moreThan_one absolute z-5" }, { children: [" +", items.length - props.maxSelectedLabels] })), props.clear &&
|
|
58
58
|
clearIcon()] }))] })), props.dropdownType === '' &&
|
|
59
|
-
(0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { value: items, panelClassName: `Multi_select_dropdown_panel ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, className: `w-full md:w-20rem
|
|
59
|
+
(0, jsx_runtime_1.jsx)(multiselect_1.MultiSelect, { value: items, panelClassName: `Multi_select_dropdown_panel ${props.panelClassName} ${props.hidePanelHeader !== undefined ? 'hidePanelHeader' : ''}`, onChange: (e) => onChange(e), options: props.options, optionLabel: "name", filter: true, placeholder: props.placeholder, display: "chip", maxSelectedLabels: props.maxSelectedLabels, style: { maxWidth: props.maxWidth ? props.maxWidth + 'px' : '' }, className: `w-full md:w-20rem`, panelStyle: { width: props.panelWidth ? props.panelWidth + 'px' : '' } })] }));
|
|
60
60
|
};
|
|
61
61
|
exports.MultiSelectDropDown = MultiSelectDropDown;
|
|
62
62
|
exports.default = exports.MultiSelectDropDown;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import 'froala-editor/js/plugins.pkgd.min.js';
|
|
2
|
-
import 'froala-editor/js/third_party/embedly.min.js';
|
|
3
|
-
import 'froala-editor/css/froala_style.min.css';
|
|
4
1
|
import 'froala-editor/css/froala_editor.pkgd.min.css';
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import 'froala-editor/css/froala_style.min.css';
|
|
3
|
+
import 'froala-editor/js/plugins.pkgd.min.js';
|
|
4
|
+
declare const MyEditor: any;
|
|
5
|
+
export default MyEditor;
|