@pie-element/categorize 12.1.0-next.0 → 12.1.2-next.2
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/CHANGELOG.md +1161 -2739
- package/configure/CHANGELOG.md +981 -2382
- package/configure/lib/design/input-header.js +5 -11
- package/configure/lib/design/input-header.js.map +1 -1
- package/configure/package.json +8 -8
- package/controller/CHANGELOG.md +619 -1565
- package/controller/package.json +5 -5
- package/lib/categorize/index.js +20 -5
- package/lib/categorize/index.js.map +1 -1
- package/package.json +10 -13
|
@@ -26,15 +26,6 @@ class InputHeader extends _react.default.Component {
|
|
|
26
26
|
constructor(props) {
|
|
27
27
|
super(props);
|
|
28
28
|
}
|
|
29
|
-
componentDidMount() {
|
|
30
|
-
const {
|
|
31
|
-
focusedEl,
|
|
32
|
-
index
|
|
33
|
-
} = this.props;
|
|
34
|
-
if (focusedEl && index && focusedEl === index) {
|
|
35
|
-
this.inputRef.focus('end', null, true);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
29
|
render() {
|
|
39
30
|
const {
|
|
40
31
|
onChange,
|
|
@@ -49,16 +40,19 @@ class InputHeader extends _react.default.Component {
|
|
|
49
40
|
maxImageWidth,
|
|
50
41
|
maxImageHeight,
|
|
51
42
|
uploadSoundSupport,
|
|
52
|
-
mathMlOptions = {}
|
|
43
|
+
mathMlOptions = {},
|
|
44
|
+
focusedEl,
|
|
45
|
+
index
|
|
53
46
|
} = this.props;
|
|
54
47
|
const {
|
|
55
48
|
headers,
|
|
56
49
|
baseInputConfiguration
|
|
57
50
|
} = configuration;
|
|
51
|
+
const shouldAutoFocus = focusedEl !== null && focusedEl !== undefined && focusedEl === index;
|
|
58
52
|
return /*#__PURE__*/_react.default.createElement(InputHeaderContainer, null, /*#__PURE__*/_react.default.createElement(StyledEditableHtml, {
|
|
59
53
|
imageSupport: imageSupport,
|
|
60
54
|
disabled: disabled,
|
|
61
|
-
|
|
55
|
+
autoFocus: shouldAutoFocus,
|
|
62
56
|
autoWidthToolbar: true,
|
|
63
57
|
label: 'label',
|
|
64
58
|
markup: label,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-header.js","names":["_utils","require","_react","_interopRequireDefault","_propTypes","_styles","_editableHtmlTipTap","StyledEditableHtml","styled","EditableHtml","theme","flex","paddingBottom","spacing","maxWidth","InputHeaderContainer","display","justifyContent","InputHeader","React","Component","constructor","props","
|
|
1
|
+
{"version":3,"file":"input-header.js","names":["_utils","require","_react","_interopRequireDefault","_propTypes","_styles","_editableHtmlTipTap","StyledEditableHtml","styled","EditableHtml","theme","flex","paddingBottom","spacing","maxWidth","InputHeaderContainer","display","justifyContent","InputHeader","React","Component","constructor","props","render","onChange","configuration","label","deleteFocusedEl","disabled","imageSupport","toolbarOpts","spellCheck","error","maxImageWidth","maxImageHeight","uploadSoundSupport","mathMlOptions","focusedEl","index","headers","baseInputConfiguration","shouldAutoFocus","undefined","default","createElement","autoFocus","autoWidthToolbar","markup","pluginProps","getPluginProps","inputConfiguration","languageCharactersProps","language","onDone","exports","_defineProperty2","PropTypes","object","isRequired","func","bool","number","string","onDelete","shape","add","delete","_default"],"sources":["../../src/design/input-header.jsx"],"sourcesContent":["import { getPluginProps } from './utils';\nimport React from 'react';\nimport PropTypes from 'prop-types';\nimport { styled } from '@mui/material/styles';\nimport EditableHtml from '@pie-lib/editable-html-tip-tap';\n\nconst StyledEditableHtml = styled(EditableHtml)(({ theme }) => ({\n flex: '1',\n paddingBottom: theme.spacing(1),\n maxWidth: '100%',\n}));\n\nconst InputHeaderContainer = styled('div')({\n display: 'flex',\n justifyContent: 'space-between',\n});\n\nexport class InputHeader extends React.Component {\n static propTypes = {\n configuration: PropTypes.object.isRequired,\n deleteFocusedEl: PropTypes.func,\n disabled: PropTypes.bool,\n focusedEl: PropTypes.number,\n index: PropTypes.number,\n label: PropTypes.string,\n maxImageWidth: PropTypes.object,\n maxImageHeight: PropTypes.object,\n onChange: PropTypes.func,\n onDelete: PropTypes.func,\n imageSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n uploadSoundSupport: PropTypes.shape({\n add: PropTypes.func.isRequired,\n delete: PropTypes.func.isRequired,\n }),\n toolbarOpts: PropTypes.object,\n error: PropTypes.string,\n spellCheck: PropTypes.bool,\n };\n\n static defaultProps = {};\n\n constructor(props) {\n super(props);\n }\n\n render() {\n const {\n onChange,\n configuration,\n label,\n deleteFocusedEl,\n disabled,\n imageSupport,\n toolbarOpts,\n spellCheck,\n error,\n maxImageWidth,\n maxImageHeight,\n uploadSoundSupport,\n mathMlOptions = {},\n focusedEl,\n index,\n } = this.props;\n\n const { headers, baseInputConfiguration } = configuration;\n const shouldAutoFocus = focusedEl !== null && focusedEl !== undefined && focusedEl === index;\n\n return (\n <InputHeaderContainer>\n <StyledEditableHtml\n imageSupport={imageSupport}\n disabled={disabled}\n autoFocus={shouldAutoFocus}\n autoWidthToolbar\n label={'label'}\n markup={label}\n onChange={onChange}\n pluginProps={getPluginProps(headers?.inputConfiguration, baseInputConfiguration)}\n toolbarOpts={toolbarOpts}\n spellCheck={spellCheck}\n error={error}\n maxImageWidth={maxImageWidth}\n maxImageHeight={maxImageHeight}\n uploadSoundSupport={uploadSoundSupport}\n languageCharactersProps={[{ language: 'spanish' }, { language: 'special' }]}\n onDone={() => {\n deleteFocusedEl && deleteFocusedEl();\n }}\n mathMlOptions={mathMlOptions}\n />\n </InputHeaderContainer>\n );\n }\n}\n\nexport default InputHeader;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,UAAA,GAAAD,sBAAA,CAAAF,OAAA;AACA,IAAAI,OAAA,GAAAJ,OAAA;AACA,IAAAK,mBAAA,GAAAH,sBAAA,CAAAF,OAAA;AAEA,MAAMM,kBAAkB,GAAG,IAAAC,cAAM,EAACC,2BAAY,CAAC,CAAC,C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EV,kBAAS,CAACG,IAAI,CAACD;EACzB,CAAC,CAAC;EACF5B,WAAW,EAAE0B,kBAAS,CAACC,MAAM;EAC7BzB,KAAK,EAAEwB,kBAAS,CAACM,MAAM;EACvB/B,UAAU,EAAEyB,kBAAS,CAACI;AACxB,CAAC;AAAA,IAAAL,gBAAA,CAAAZ,OAAA,EAvBUzB,WAAW,kBAyBA,CAAC,CAAC;AAAA,IAAAiD,QAAA,GAAAb,OAAA,CAAAX,OAAA,GAwDXzB,WAAW","ignoreList":[]}
|
package/configure/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": true,
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"module": "src/index.js",
|
|
6
|
-
"version": "10.1.
|
|
6
|
+
"version": "10.1.1-next.2",
|
|
7
7
|
"description": "",
|
|
8
8
|
"scripts": {},
|
|
9
9
|
"author": "pie framework developers",
|
|
@@ -15,13 +15,13 @@
|
|
|
15
15
|
"@mui/icons-material": "^7.3.4",
|
|
16
16
|
"@mui/material": "^7.3.4",
|
|
17
17
|
"@pie-framework/pie-configure-events": "^1.3.0",
|
|
18
|
-
"@pie-lib/categorize": "1.
|
|
19
|
-
"@pie-lib/config-ui": "12.
|
|
20
|
-
"@pie-lib/drag": "3.
|
|
21
|
-
"@pie-lib/editable-html-tip-tap": "1.
|
|
22
|
-
"@pie-lib/math-rendering": "4.
|
|
23
|
-
"@pie-lib/render-ui": "5.
|
|
24
|
-
"@pie-lib/translator": "3.
|
|
18
|
+
"@pie-lib/categorize": "1.2.0-next.3",
|
|
19
|
+
"@pie-lib/config-ui": "12.2.0-next.12",
|
|
20
|
+
"@pie-lib/drag": "3.2.0-next.4",
|
|
21
|
+
"@pie-lib/editable-html-tip-tap": "1.2.0-next.12",
|
|
22
|
+
"@pie-lib/math-rendering": "4.2.0-next.3",
|
|
23
|
+
"@pie-lib/render-ui": "5.2.0-next.4",
|
|
24
|
+
"@pie-lib/translator": "3.2.0-next.3",
|
|
25
25
|
"debug": "^4.1.1",
|
|
26
26
|
"lodash-es": "^4.17.23",
|
|
27
27
|
"prop-types": "^15.6.2",
|