tocco-devcon 3.12.3 → 3.12.4-ihkschwaben
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 +184 -0
- package/dist/chunk-178.8ff9fc5af32a94bc444b.js +1 -0
- package/dist/{chunk-389.244a2818238811edb965.js → chunk-389.e3f2ff0e748c6c3edf1e.js} +1 -1
- package/dist/{chunk-html-editor.063aef08bf559ff7a87c.js → chunk-html-editor.9dedaa9105015330003c.js} +1 -1
- package/dist/ckeditor4/ckeditor-new.js +1 -1
- package/dist/index.js +3 -3
- package/package.json +3 -2
- package/dist/chunk-178.fdc445d97a839ff8ba1d.js +0 -1
package/changelog.md
CHANGED
|
@@ -1,3 +1,187 @@
|
|
|
1
|
+
3.12.4-ihkschwaben
|
|
2
|
+
- add CKEditor workaround for Firefox 148+
|
|
3
|
+
|
|
4
|
+
3.12.3-ihkschwaben
|
|
5
|
+
- forward form field options
|
|
6
|
+
- support dynamic delay in Debouncer
|
|
7
|
+
|
|
8
|
+
3.12.2-ihkschwaben
|
|
9
|
+
- add text resource to remote field options
|
|
10
|
+
- limit number of displays in multi select
|
|
11
|
+
|
|
12
|
+
3.12.1-ihkschwaben
|
|
13
|
+
- add widget showcase information to env
|
|
14
|
+
|
|
15
|
+
3.12.0-ihkschwaben
|
|
16
|
+
- initial release for version 3.12
|
|
17
|
+
|
|
18
|
+
3.12.51
|
|
19
|
+
- fix label-attention color
|
|
20
|
+
|
|
21
|
+
3.12.50
|
|
22
|
+
- fix overflow collapse of toasters in firefox
|
|
23
|
+
|
|
24
|
+
3.12.49
|
|
25
|
+
- pass condition to list in AdvancedSearch
|
|
26
|
+
- only show active or selected entities in advanced search
|
|
27
|
+
|
|
28
|
+
3.12.48
|
|
29
|
+
- fixate starting position of toasters to the bottom
|
|
30
|
+
|
|
31
|
+
3.12.47
|
|
32
|
+
- fix label attention icon color
|
|
33
|
+
- retain height of toaster when multiple toasters are displayed and fix ordering by time
|
|
34
|
+
|
|
35
|
+
3.12.46
|
|
36
|
+
- fix adress / location browser autofill
|
|
37
|
+
- do not infinite load adress suggestions
|
|
38
|
+
|
|
39
|
+
3.12.45
|
|
40
|
+
- fix multi value label spacing
|
|
41
|
+
|
|
42
|
+
3.12.44
|
|
43
|
+
- fix stated value labels spacing
|
|
44
|
+
|
|
45
|
+
3.12.43
|
|
46
|
+
- fix falsely declared label neutral color
|
|
47
|
+
|
|
48
|
+
3.12.42
|
|
49
|
+
- show full content of immutable textarea
|
|
50
|
+
- fix growing textarea
|
|
51
|
+
|
|
52
|
+
3.12.41
|
|
53
|
+
- harmonize react select spacing
|
|
54
|
+
|
|
55
|
+
3.12.40
|
|
56
|
+
- no error message on column resize
|
|
57
|
+
|
|
58
|
+
3.12.39
|
|
59
|
+
- apply correct theme to dynamic actions
|
|
60
|
+
|
|
61
|
+
3.12.38
|
|
62
|
+
- fix react autosuggest input width
|
|
63
|
+
|
|
64
|
+
3.12.37
|
|
65
|
+
- harmonize google maps icon positioning in LocationEdit
|
|
66
|
+
|
|
67
|
+
3.12.36
|
|
68
|
+
- add timezone header
|
|
69
|
+
|
|
70
|
+
3.12.35
|
|
71
|
+
- make display form fields always immutable
|
|
72
|
+
- move DescriptionFormatter icon in line with other fields
|
|
73
|
+
|
|
74
|
+
3.12.34
|
|
75
|
+
- hide terms component if all fields are readonly
|
|
76
|
+
- harmonize cell spacing of table form
|
|
77
|
+
|
|
78
|
+
3.12.33
|
|
79
|
+
- ignore line breaks in label texts for the sidepanel since they cover the input content
|
|
80
|
+
|
|
81
|
+
3.12.32
|
|
82
|
+
- show scrollbar on large menus
|
|
83
|
+
|
|
84
|
+
3.12.31
|
|
85
|
+
- fix table header drop indicator
|
|
86
|
+
- improve draggable element's visibility
|
|
87
|
+
- show drop indicator only on valid drop areas
|
|
88
|
+
|
|
89
|
+
3.12.30
|
|
90
|
+
- add _widget_key query param to all requests
|
|
91
|
+
|
|
92
|
+
3.12.29
|
|
93
|
+
- fix wrong hover color of add/remove button
|
|
94
|
+
|
|
95
|
+
3.12.28
|
|
96
|
+
- able to set link state on breadcrumbs
|
|
97
|
+
|
|
98
|
+
3.12.27
|
|
99
|
+
- add fetchModules helper
|
|
100
|
+
|
|
101
|
+
3.12.26
|
|
102
|
+
- fix cut off text in singleValue Selects
|
|
103
|
+
|
|
104
|
+
3.12.25
|
|
105
|
+
- set correct height for non searchable selects
|
|
106
|
+
|
|
107
|
+
3.12.24
|
|
108
|
+
- revert focus fix
|
|
109
|
+
|
|
110
|
+
3.12.23
|
|
111
|
+
- do not auto focus anything on touch devices
|
|
112
|
+
|
|
113
|
+
3.12.22
|
|
114
|
+
- improve UX for simple selects on touch devices
|
|
115
|
+
|
|
116
|
+
3.12.21
|
|
117
|
+
- fix double scrollbars in some modals
|
|
118
|
+
|
|
119
|
+
3.12.20
|
|
120
|
+
- fix missing focus styles in some elements
|
|
121
|
+
|
|
122
|
+
3.12.19
|
|
123
|
+
- prevent infinite resize
|
|
124
|
+
- show left column drop indicator
|
|
125
|
+
- consider vertical drop position for column sorting
|
|
126
|
+
|
|
127
|
+
3.12.18
|
|
128
|
+
- add tooltip texts for buttons of upload component
|
|
129
|
+
|
|
130
|
+
3.12.17
|
|
131
|
+
- fix table edit styling
|
|
132
|
+
|
|
133
|
+
3.12.16
|
|
134
|
+
- set checkbox field to touched on safari/ipad/iphone
|
|
135
|
+
|
|
136
|
+
3.12.15
|
|
137
|
+
- add string table navigation handling
|
|
138
|
+
- enable string arrow navigation for string edits
|
|
139
|
+
- add datepicker table navigation handling
|
|
140
|
+
- enable datepicker arrow navigation
|
|
141
|
+
- add text table navigation handling
|
|
142
|
+
- enable text arrow navigation
|
|
143
|
+
- add cy attributes
|
|
144
|
+
|
|
145
|
+
3.12.14
|
|
146
|
+
- hide table refresh button when nothing happens
|
|
147
|
+
|
|
148
|
+
3.12.13
|
|
149
|
+
- able to click on the label in the column picker
|
|
150
|
+
- fix hover on toaster close buttons
|
|
151
|
+
|
|
152
|
+
3.12.12
|
|
153
|
+
- add context to auto-complete
|
|
154
|
+
|
|
155
|
+
3.12.11
|
|
156
|
+
- show correct select field in export action
|
|
157
|
+
- show correct select field
|
|
158
|
+
|
|
159
|
+
3.12.10
|
|
160
|
+
- use error message when action fires error event
|
|
161
|
+
|
|
162
|
+
3.12.9
|
|
163
|
+
- support report actions in adjustAllActions
|
|
164
|
+
|
|
165
|
+
3.12.8
|
|
166
|
+
- add StatedCellValue for form fields in tables
|
|
167
|
+
- add table form components
|
|
168
|
+
- extend form modifiers
|
|
169
|
+
- allow virtual table to be disabled
|
|
170
|
+
- remove unused / broken styling
|
|
171
|
+
|
|
172
|
+
3.12.7
|
|
173
|
+
- be able to accept prompt with enter
|
|
174
|
+
|
|
175
|
+
3.12.6
|
|
176
|
+
- extend font sizes with missing sizes
|
|
177
|
+
|
|
178
|
+
3.12.5
|
|
179
|
+
- trim searchInput value
|
|
180
|
+
|
|
181
|
+
3.12.4
|
|
182
|
+
- add declareColoredLabel util
|
|
183
|
+
- do not pass boolean to component
|
|
184
|
+
|
|
1
185
|
3.12.3
|
|
2
186
|
- dependency update
|
|
3
187
|
- dev dependency update
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[178],{67178:(e,n,t)=>{t.r(n),t.d(n,{default:()=>en});var r,i,a=t(92648),s=t(60085),o=t(12768),l=t(71468),d=t(82558),c=(t(5556),t(4883)),u=t(72189),g=t.n(u),h=t(87716),p=h.Ay.input.withConfig({displayName:"StyledInput"})(r||(r=g()(["\n && {\n ","\n }\n"])),o.jx),f=h.Ay.div.withConfig({displayName:"StyledInputWrapper"})(i||(i=g()(["\n && {\n ","\n }\n"])),o.oX),x=t(74848);const m=function(e){var n=e.fragments,t=e.selectedFragments,r=e.disabled,i=e.setFragmentSelected;return(0,x.jsx)("div",{children:n.map((function(e){return(0,x.jsxs)("div",{children:[(0,x.jsx)("input",{type:"checkbox",id:e.id,checked:t.includes(e.id),onChange:(n=e.id,function(e){i(n,e.target.checked)}),disabled:r}),(0,x.jsx)(o.o5.Label,{for:e.id,children:e.label})]},e.id);var n}))})};const y=function(e){var n=e.version,t=e.modules,r=e.selectedModules,i=e.fragments,a=e.selectedFragments,s=e.ignoreErrors,l=e.running,d=e.disabled,u=e.executeDbRefactoring,g=e.loadModules,h=e.loadFragments,y=e.setSelectedModules,v=e.setFragmentSelected,j=e.setVersion,b=e.setIgnoreErrors;(0,c.useEffect)((function(){0===t.length&&g(),0===i.length&&h()}),[]);return(0,x.jsxs)("form",{onSubmit:function(e){e.preventDefault(),u()},children:[(0,x.jsx)(o.$O,{label:"Modules (none selected => all)",hasValue:r.length>0,children:(0,x.jsx)(o.se,{type:"multi-select",options:{options:t},events:{onChange:y},value:r,readOnly:d})}),(0,x.jsx)(o.$O,{label:"Fragments",fixLabel:!0,children:(0,x.jsx)(m,{fragments:i,selectedFragments:a,disabled:d,setFragmentSelected:v})}),(0,x.jsx)(o.$O,{label:"Version",hasValue:n.length>0,children:(0,x.jsx)(f,{children:(0,x.jsx)(p,{value:n,onChange:function(e){var n=e.target.value.replaceAll(/[^\d\\.]/g,"");j(n)},disabled:d})})}),(0,x.jsx)(o.$O,{label:"Ignore errors",fixLabel:!0,children:(0,x.jsx)("input",{type:"checkbox",checked:s,onChange:function(e){b(e.target.checked)},disabled:d})}),(0,x.jsx)(o.$n,{type:"submit",label:"Execute",look:"raised",pending:l,disabled:d})]})};var v={loadModules:d.o_,loadFragments:d.iN,setSelectedModules:d.rw,setFragmentSelected:d.cM,setVersion:d.vJ,setIgnoreErrors:d.a9,executeDbRefactoring:d.q0};const j=(0,l.Ng)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{version:t.version,modules:t.modules,selectedModules:t.selectedModules,fragments:t.fragments,selectedFragments:t.selectedFragments,ignoreErrors:t.ignoreErrors,running:t.running,disabled:t.running||r.running}}),v)(y);const b=function(e){var n=e.language,t=e.running,r=e.disabled,i=e.executeLanguageUpgrade,a=e.setLanguage;return(0,x.jsxs)("form",{onSubmit:function(e){e.preventDefault(),i()},children:[(0,x.jsx)(o.$O,{label:"Language",hasValue:n.length>0,children:(0,x.jsx)(f,{children:(0,x.jsx)(p,{value:n,onChange:function(e){a(e.target.value)},disabled:r})})}),(0,x.jsx)(o.$n,{type:"submit",label:"Execute language upgrade",look:"raised",pending:t,disabled:r})]})};var S={setLanguage:d.xC,executeLanguageUpgrade:d.EG};const C=(0,l.Ng)((function(e){var n=e.dbRefactoring,t=n.dbRefactoring,r=n.languageUpgrade;return{language:r.language,running:r.running,disabled:r.running||t.running}}),S)(b);var k;const w=function(){return k||(k=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.o5.H1,{children:"Database Refactoring"}),(0,x.jsx)(j,{}),(0,x.jsx)(o.o5.H1,{children:"Language Upgrade"}),(0,x.jsx)(C,{})]}))};var N,A,E,L,q,F,M,R=t(22056),V=t.n(R),D={ERROR:"#a00"},O=h.Ay.div.withConfig({displayName:"StyledLogTable"})(N||(N=g()(["\n display: grid;\n gap: 1px;\n"]))),$=h.Ay.div.withConfig({displayName:"StyledLogEntry"})(A||(A=g()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(D[e.level]||"#ddd",";")})),T=h.Ay.span.withConfig({displayName:"StyledMessage"})(E||(E=g()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,o.Ed)()),I=h.Ay.span.withConfig({displayName:"StyledTime"})(L||(L=g()(["\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,o.Ed)()),H=h.Ay.div.withConfig({displayName:"StyledExceptionDetails"})(q||(q=g()(["\n margin-top: 1em;\n"]))),z=h.Ay.div.withConfig({displayName:"StyledDetailMessage"})(F||(F=g()(["\n margin-bottom: 1em;\n\n && {\n ","\n }\n"])),(0,o.Ed)()),Q=h.Ay.div.withConfig({displayName:"StyledStackTrace"})(M||(M=g()(["\n && {\n ","\n }\n"])),(0,o.Ed)()),U=function(e){return"".concat(e.declaringClass,".").concat(e.methodName,":").concat(e.lineNumber)};const G=function(e){var n=e.exception;return(0,x.jsxs)(H,{children:[(0,x.jsx)(z,{children:n.detailMessage}),(0,x.jsx)(Q,{children:n.stackTrace.map((function(e,n){return(0,x.jsx)("div",{children:U(e)},n)}))})]})};const P=function(e){var n=e.entry,t=(0,c.useState)(!1),r=V()(t,2),i=r[0],a=r[1];return(0,x.jsxs)($,{level:n.level,children:[(0,x.jsx)(T,{onClick:function(){n.exception&&a(!i)},expandable:!!n.exception,children:n.message}),(0,x.jsx)(I,{children:new Date(n.timestamp).toLocaleString()}),i&&(0,x.jsx)(G,{exception:n.exception})]})};var B;const _=function(e){var n=e.entries;return(0,x.jsx)(O,{children:n.length>0?n.map((function(e){return(0,x.jsx)(P,{entry:e},e.key)})):B||(B=(0,x.jsx)(o.o5.Span,{children:"No entries so far."}))})};const W=(0,l.Ng)((function(e){return{entries:e.log.entries}}),{})(_);var J;const K=function(){return J||(J=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.o5.H1,{children:"Log"}),(0,x.jsx)(W,{})]}))};var X,Y,Z=t(32724),ee=h.Ay.div.withConfig({displayName:"StyledCheckEventGroup"})(X||(X=g()(["\n margin: 1em 0;\n border: 1px solid #ddd;\n border-radius: 5px;\n padding: 1em;\n"]))),ne=h.Ay.div.withConfig({displayName:"StyledGroupHeading"})(Y||(Y=g()(["\n margin-bottom: 1em;\n"])));function te(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return re(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?re(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,o=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return s=e.done,e},e:function(e){o=!0,a=e},f:function(){try{s||null==t.return||t.return()}finally{if(o)throw a}}}}function re(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=Array(n);t<n;t++)r[t]=e[t];return r}const ie=function(e){var n=e.type,t=e.events,r=e.selection,i=e.setSelected,a=function(e,n){var t,r=te(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;if(!n.has(i.id))return!1}}catch(e){r.e(e)}finally{r.f()}return!0}(t,r);return(0,x.jsxs)(ee,{children:[(0,x.jsxs)(ne,{children:[(0,x.jsx)("input",{type:"checkbox",id:"checkbox-"+n,checked:a,onChange:function(e){i(t.map((function(e){return e.id})),e.target.checked)}}),(0,x.jsx)(o.o5.Label,{for:"checkbox-"+n,children:(0,x.jsxs)(o.o5.B,{children:[n," (",t.length,")"]})})]}),t.map((function(e){return(0,x.jsxs)("div",{children:[(0,x.jsx)("input",{type:"checkbox",id:"checkbox-"+e.id,checked:r.has(e.id),onChange:(n=e.id,function(e){i([n],e.target.checked)})}),(0,x.jsx)(o.o5.Label,{for:"checkbox-"+e.id,children:e.label})]},e.id);var n}))]})};const ae=function(e){var n=e.checkEvents,t=e.selection,r=e.setSelected,i=e.generateSql,a=e.generateChangelog;return(0,x.jsxs)("div",{children:[Object.keys(n).length>0&&(0,x.jsxs)(x.Fragment,{children:[(0,x.jsxs)(o.$n,{look:"raised",onClick:i,disabled:0===t.size,children:["Generate SQL ",t.size>0&&"(".concat(t.size,")")]}),(0,x.jsxs)(o.$n,{look:"raised",onClick:a,disabled:0===t.size,children:["Generate Changelog ",t.size>0&&"(".concat(t.size,")")]})]}),(0,x.jsx)("div",{children:Object.keys(n).sort((function(e,n){return e.localeCompare(n)})).map((function(e){return(0,x.jsx)(ie,{type:e,events:n[e],selection:t,setSelected:r},e)}))})]})};var se={setSelected:Z.QQ,generateSql:Z.Ay,generateChangelog:Z.Ki};const oe=(0,l.Ng)((function(e){return{checkEvents:e.modelValidation.checkEvents,selection:e.modelValidation.selection}}),se)(ae);var le,de,ce,ue=h.Ay.div.withConfig({displayName:"StyledProgressBar"})(le||(le=g()(["\n width: 100%;\n border: 1px solid #ddd;\n height: 20px;\n position: relative;\n margin: 1em 0;\n"]))),ge=h.Ay.div.withConfig({displayName:"StyledInnerProgress"})(de||(de=g()(["\n position: absolute;\n background-color: #ddd;\n height: 100%;\n width: ","%;\n"])),(function(e){return e.percentage})),he=h.Ay.div.withConfig({displayName:"StyledProgressText"})(ce||(ce=g()(["\n position: absolute;\n top: 0;\n width: 100%;\n text-align: center;\n\n && {\n ","\n }\n"])),(0,o.Ed)()),pe=function(e){return e.result?e.result:e.running?e.total?"".concat(fe(e),"%"):"Preparing...":"Not started"},fe=function(e){return e.running&&e.total?Math.round(e.currentIndex/e.total*100):0};const xe=function(e){var n=e.state;return(0,x.jsxs)(ue,{children:[(0,x.jsx)(ge,{percentage:fe(n)}),(0,x.jsx)(he,{children:pe(n)})]})};const me=function(e){var n=e.state,t=e.startValidation;return(0,x.jsxs)("div",{children:[(0,x.jsx)(o.$n,{look:"raised",pending:n.running,disabled:n.running,onClick:t,children:"Execute"}),(0,x.jsx)(xe,{state:n})]})};var ye={startValidation:Z.es};const ve=(0,l.Ng)((function(e){return{state:e.modelValidation.state}}),ye)(me);var je;const be=function(){return je||(je=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.o5.H1,{children:"Model Validation"}),(0,x.jsx)(ve,{}),(0,x.jsx)(oe,{})]}))};var Se=t(42938);const Ce=function(e){var n=e.active,t=e.elapsed,r=e.setActive,i=e.setElapsed;return(0,x.jsxs)("div",{children:[(0,x.jsx)(o.$O,{label:"Active",fixLabel:!0,children:(0,x.jsx)("input",{type:"checkbox",checked:n,onChange:function(e){r(e.target.checked)}})}),(0,x.jsx)(o.$O,{label:"Elapsed",hasValue:!!t,children:(0,x.jsx)(o.Q6,{fromText:"from",toText:"to",type:"number",value:t,options:{postPointDigits:0,fixedDecimalScale:!0},events:{onChange:function(e){i(e)}}})})]})};var ke={setActive:Se.Fm,setElapsed:Se.dy};const we=(0,l.Ng)((function(e){return{active:e.sqlLog.active,elapsed:e.sqlLog.elapsed}}),ke)(Ce);var Ne,Ae,Ee,Le,qe,Fe,Me,Re={ERROR:"#a00"},Ve=h.Ay.div.withConfig({displayName:"StyledLogTable"})(Ne||(Ne=g()(["\n display: grid;\n gap: 1px;\n"]))),De=h.Ay.div.withConfig({displayName:"StyledLogEntry"})(Ae||(Ae=g()(["\n display: grid;\n height: fit-content;\n grid-template-columns: repeat(3, 1fr);\n padding: 1em;\n ","\n"])),(function(e){return"border: 1px solid ".concat(Re[e.level]||"#ddd",";")})),Oe=h.Ay.span.withConfig({displayName:"StyledStatementHeader"})(Ee||(Ee=g()(["\n grid-column: 1 / 3;\n ","\n\n && {\n ","\n }\n"])),(function(e){return e.expandable&&"cursor: pointer;"}),(0,o.Ed)()),$e=h.Ay.span.withConfig({displayName:"StyledStatement"})(Le||(Le=g()(["\n grid-column: 1 / 3;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,o.Ed)()),Te=h.Ay.span.withConfig({displayName:"StyledTime"})(qe||(qe=g()(["\n grid-row-start: 1;\n grid-column-start: 3;\n text-align: right;\n\n && {\n ","\n }\n"])),(0,o.Ed)()),Ie=h.Ay.span.withConfig({displayName:"StyledElapsedContainer"})(Fe||(Fe=g()(["\n grid-column-start: 3;\n text-align: right;\n margin-top: 1em;\n\n && {\n ","\n }\n"])),(0,o.Ed)()),He=h.Ay.span.withConfig({displayName:"StyledElapsed"})(Me||(Me=g()(["\n background-color: ",";\n border-radius: 5px;\n padding: 0.5em;\n"])),(function(e){return(n=e.elapsed)>=1e3?"#f00":n>=500?"#ff8c00":n>=100?"#ff0":"#dedede";var n}));const ze=function(e){var n=e.entry,t=(0,c.useState)(!1),r=V()(t,2),i=r[0],a=r[1],s=n.sql.length>100,o=s?n.sql.substr(0,100)+"...":n.sql;return(0,x.jsxs)(De,{children:[(0,x.jsx)(Oe,{expandable:s,onClick:function(){s&&a(!i)},children:o}),i&&(0,x.jsx)($e,{children:n.sql}),(0,x.jsx)(Te,{children:new Date(n.timestamp.iMillis).toLocaleString()}),(0,x.jsx)(Ie,{children:(0,x.jsxs)(He,{elapsed:n.elapsed,children:[n.elapsed," ms"]})})]})};var Qe;const Ue=function(e){var n=function(e,n){return n?e.filter((function(e){return!0===n.isRangeValue?(null===n.from||e.elapsed>=n.from)&&(null===n.to||e.elapsed<=n.to):e.elapsed>=n})):e}(e.entries,e.elapsed);return(0,x.jsx)(Ve,{children:n.length>0?n.map((function(e){return(0,x.jsx)(ze,{entry:e},e.key)})):Qe||(Qe=(0,x.jsx)(o.o5.Span,{children:"No entries so far."}))})};const Ge=(0,l.Ng)((function(e){return{entries:e.sqlLog.entries,elapsed:e.sqlLog.elapsed}}),{})(Ue);var Pe;const Be=function(){return Pe||(Pe=(0,x.jsxs)(x.Fragment,{children:[(0,x.jsx)(o.o5.H1,{children:"SQL Log"}),(0,x.jsx)(we,{}),(0,x.jsx)(Ge,{})]}))};var _e,We,Je,Ke,Xe=h.Ay.div.withConfig({displayName:"StyledDevCon"})(_e||(_e=g()(["\n && {\n background-color: ",";\n padding: ",";\n display: flex;\n flex-direction: column;\n flex: 1;\n overflow: auto;\n }\n"])),o.w4.color("paper"),o.hs.space(0)),Ye=h.Ay.div.withConfig({displayName:"StyledNavigation"})(We||(We=g()(["\n display: flex;\n"]))),Ze=(0,h.Ay)(o.Wk).withConfig({displayName:"StyledRouterLink"})(Je||(Je=g()(["\n padding: 1em;\n background-color: #ddd;\n border-radius: 5px;\n margin: 5px;\n"])));const en=function(){return Ke||(Ke=(0,x.jsxs)(Xe,{children:[(0,x.jsx)(s.A.Notifications,{}),(0,x.jsx)(o.o5.Span,{children:"Tocco Developer Console"}),(0,x.jsxs)(Ye,{children:[(0,x.jsx)(Ze,{to:"log",children:"Log"}),(0,x.jsx)(Ze,{to:"modelvalidation",children:"Model Validation"}),(0,x.jsx)(Ze,{to:"dbrefactoring",children:"DB Refactoring"}),(0,x.jsx)(Ze,{to:"sqllog",children:"SQL Log"})]}),(0,x.jsxs)(a.BV,{children:[(0,x.jsx)(a.qh,{path:"/",exact:!0,element:(0,x.jsx)(a.C5,{to:"log",replace:!0})}),(0,x.jsx)(a.qh,{path:"log",exact:!0,element:(0,x.jsx)(K,{})}),(0,x.jsx)(a.qh,{path:"dbrefactoring",exact:!0,element:(0,x.jsx)(w,{})}),(0,x.jsx)(a.qh,{path:"modelvalidation",exact:!0,element:(0,x.jsx)(be,{})}),(0,x.jsx)(a.qh,{path:"sqllog",exact:!0,element:(0,x.jsx)(Be,{})})]})]}))}}}]);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[389],{68389:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var n,c=r(26396),o=r.n(c),i=(r(5556),r(72189)),s=r.n(i),p=r(87716),l=r(47850),f=r(
|
|
1
|
+
"use strict";(self.webpackChunktocco_devcon=self.webpackChunktocco_devcon||[]).push([[389],{68389:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var n,c=r(26396),o=r.n(c),i=(r(5556),r(72189)),s=r.n(i),p=r(87716),l=r(47850),f=r(17656),u=(0,p.Ay)(l.A).withConfig({displayName:"StyledIcon"})(n||(n=s()(["\n color: ",";\n"])),f.t7.color("loadingSpinner")),O=r(74848);function a(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const y=function(e){var t=e.size,r=e.style,n=e.icon;return(0,O.jsx)(u,b(b({},r),{},{style:{fontSize:t},spin:!0,icon:n||"circle-notch"}))}}}]);
|
package/dist/{chunk-html-editor.063aef08bf559ff7a87c.js → chunk-html-editor.9dedaa9105015330003c.js}
RENAMED
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
* @license Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
5
|
*/
|
|
6
|
-
var r,a,i,l,u;r=e,a=function(e){return o=void 0,e?n(e):window.NEW_CKEDITOR?void t(NEW_CKEDITOR):n(new Error("Script loaded from editorUrl doesn't provide NEW_CKEDITOR namespace."))},l=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script"),"function"==typeof a&&(i=a,a={}),a=a||{},i=i||function(){},u.type=a.type||"text/javascript",u.charset=a.charset||"utf8",u.async=!("async"in a)||!!a.async,u.src=r,a.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(u,a.attrs),a.text&&(u.text=String(a.text)),("onload"in u?c:d)(u,i),u.onload||c(u,i),l.appendChild(u)}))};var u=n(5556),s=function(){return s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)};function p(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var f=["activeEnterModeChange","activeFilterChange","afterCommandExec","afterInsertHtml","afterPaste","afterPasteFromWord","afterSetData","afterUndoImage","ariaEditorHelpLabel","ariaWidget","autogrow","beforeCommandExec","beforeDestroy","beforeGetData","beforeModeUnload","beforeSetMode","beforeUndoImage","blur","change","configLoaded","contentDirChanged","contentDom","contentDomInvalidated","contentDomUnload","contentPreview","customConfigLoaded","dataFiltered","dataReady","destroy","dialogHide","dialogShow","dirChanged","doubleclick","dragend","dragstart","drop","elementsPathUpdate","exportPdf","fileUploadRequest","fileUploadResponse","floatingSpaceLayout","focus","getData","getSnapshot","insertElement","insertHtml","insertText","instanceReady","key","langLoaded","loadSnapshot","loaded","lockSnapshot","maximize","menuShow","mode","notificationHide","notificationShow","notificationUpdate","paste","pasteFromWord","pluginsLoaded","readOnly","removeFormatCleanup","required","resize","save","saveSnapshot","selectionChange","setData","stylesRemove","stylesSet","template","toDataFormat","toHtml","uiSpace","unlockSnapshot","updateSnapshot","widgetDefinition"],y=["beforeLoad","namespaceLoaded"],g=p(p([],f,!0),y,!0),m="__CKE__";function v(e){var t=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(t)}function h(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var b=p(p([],f,!0),y,!0).reduce((function(e,t){var n;return s(s({},e),((n={})[t]=function(e){return"".concat(m).concat(e)}(t),n))}),{});function O(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function S(e,t,n){var o={display:"none",visibility:"hidden"};return"classic"===e?o:"ready"===t?null!=n?n:void 0:o}function k(e){var t=e.debug,n=e.editor,o=e.evtName,r=e.handler,a=e.listenerData,i=e.priority,c=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),d=r;return t&&(d=function(e){console.log({operation:"invoke",editor:n.name,evtName:o,handlerId:c,data:e.data,listenerData:e.listenerData}),r(e)}),t&&console.log({operation:"register",editor:n.name,evtName:o,handlerId:c}),n.on(o,d,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:o,handlerId:c}),n.removeListener(o,d)}}var x=i.useEffect,C=i.useReducer,E=i.useRef,w="https://cdn.ckeditor.com/4.22.1/standard-all/ckeditor.js",D={};function j(e,t){switch(t.type){case"init":return s(s({},e),{hookStatus:"init"});case"loading":return s(s({},e),{hookStatus:"loading"});case"unloaded":return{editor:t.payload,hookStatus:"unloaded"};case"loaded":return s(s({},e),{hookStatus:"loaded"});case"ready":return s(s({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var L=i.useEffect,P=i.useRef,T=i.useState;function U(e){var t=e.config,n=void 0===t?{}:t,o=e.debug,r=e.editorUrl,a=e.initData,c=e.name,d=e.readOnly,u=e.style,s=e.type,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["config","debug","editorUrl","initData","name","readOnly","style","type"]),f=T(null),U=f[0],_=f[1],R=P(p);n&&"boolean"==typeof d&&(n.readOnly=d);var I=function(e){var t=e.config,n=e.debug,o=e.dispatchEvent,r=e.subscribeTo,a=void 0===r?g:r,i=e.editorUrl,c=e.element,d=e.initContent,u=e.type,s=void 0===u?"classic":u,p=E(i||w),f=E(null!=a?a:g),v=E(n),h=E(o),O=E(d),S=E(t||D),L=E(s),P=C(j,{editor:void 0,hookStatus:"init"}),T=P[0],U=T.editor,_=T.hookStatus,R=P[1];return x((function(){return c&&!U&&(R({type:"loading"}),l(p.current,(function(e){var t;-1!==f.current.indexOf("namespaceLoaded")&&(null===(t=h.current)||void 0===t||t.call(h,{type:b.namespaceLoaded,payload:e}))})).then((function(e){var t,n="inline"===L.current,o=S.current.readOnly;-1!==f.current.indexOf("beforeLoad")&&(null===(t=h.current)||void 0===t||t.call(h,{type:b.beforeLoad,payload:e}));var r=e[n?"inline":"replace"](c,S.current);f.current.filter((function(e){return-1===y.indexOf(e)})).forEach((function(e){k({debug:v.current,editor:r,evtName:e,handler:function(t){var n;null===(n=h.current)||void 0===n||n.call(h,{type:"".concat(m).concat(e),payload:t})}})})),k({debug:v.current,editor:r,evtName:"loaded",handler:function(){R({type:"loaded"})},priority:-1}),k({debug:v.current,editor:r,evtName:"instanceReady",handler:function(e){var t=e.editor;R({type:"ready"}),n&&!o&&t.setReadOnly(!1),O.current&&t.setData(O.current,{noSnapshot:!0,callback:function(){t.resetUndo()}})},priority:-1}),k({debug:v.current,editor:r,evtName:"destroy",handler:function(){R({type:"destroyed"})},priority:-1}),R({type:"unloaded",payload:r})})).catch((function(e){console.error(e),R({type:"error"})}))),function(){U&&U.destroy()}}),[U,c]),{editor:U,status:null==U?void 0:U.status,error:"error"===_,loading:"loading"===_}}({config:n,dispatchEvent:function(e){var t=e.type,n=e.payload,o=v(t.substr(m.length)),r=R.current[o];r&&r(n)},debug:o,editorUrl:r,element:U,initContent:"string"==typeof a?a:void 0,subscribeTo:Object.keys(p).filter((function(e){return 0===e.indexOf("on")})).map(h),type:s}),N=I.editor,F=I.status;return L((function(){var e="inline"!==s&&N&&("loaded"===F||"ready"===F);return u&&e&&N.container.setStyles(u),function(){u&&e&&Object.keys(u).map(O).forEach((function(e){N.container.removeStyle(e)}))}}),[N,F,u,s]),L((function(){N&&"ready"===F&&"boolean"==typeof d&&N.setReadOnly(d)}),[N,F,d]),i.createElement("div",{id:null!=c?c:void 0,ref:_,style:S(null!=s?s:"classic",F,u)},"string"==typeof a?null:a)}var _=s({config:u.object,debug:u.bool,editorUrl:u.string,initData:u.node,name:u.string,readOnly:u.bool,style:u.object,type:u.oneOf(["classic","inline"])},g.reduce((function(e,t){var n;return s(s({},e),((n={})[v(t)]=u.func,n))}),{}));U.propTypes=_;var R=n(11843),I=n(73082),N=n(22056),F=n.n(N);const H=Object.entries({"8px":"~6pt","10px":"~7.5pt","11px":"~8pt","12px":"~9pt","13px":"~10pt","15px":"~11pt","16px":"~12pt","17px":"~13pt","19px":"~14pt","22px":"~16pt","24px":"~18pt","26px":"~20pt","29px":"~22pt","32px":"~24pt","36px":"~26pt","37px":"~28pt","48px":"~36pt","64px":"~48pt"}).map((function(e){var t=F()(e,2),n=t[0],o=t[1];return"".concat(n," (").concat(o,")/").concat(n)})).join(";");var K,W=n(72189),A=n.n(W),z=n(87716),B=n(60284),M=z.Ay.div.withConfig({displayName:"StyledHtmlEditor"})(K||(K=A()(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,B.gv)(e,"ckeditor")})),q=n(74848);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}window.NEW_CKEDITOR_BASEPATH="".concat(n.p,"ckeditor4/");var V=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;case"de-CH":return"de-ch";default:return"de"}};const Z=function(e){var t=e.id,o=e.value,r=void 0===o?"":o,i=e.onChange,c=e.contentLang,d=void 0===c?"de":c,l=e.defaultLinkTarget,u=e.ckEditorConfig,s=(0,R.useIntl)().locale,p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({language:V(s),contentsLanguage:d,entities:!1,allowedContent:!0,toolbar:[["Bold","Italic","Underline","Strike","RemoveFormat"],["Format","Font","FontSize","TextColor"],["NumberedList","BulletedList"],["Link","Unlink"],["Table","SpecialChar","Image"],["PasteText"],["Source"]],extraPlugins:["colorbutton","colordialog","dialogadvtab","font","codemirror"],removeButtons:[],removeDialogTabs:"",removePlugins:["elementspath"],codemirror:{mode:"htmlmixed",enableCodeFormatting:!0,autoFormatOnStart:!0},versionCheck:!1,fontSize_sizes:H},u),f=function(e){try{var t=e.data.name,n=e.data.definition;if("link"===t)n.getContents("info").get("protocol").default="https://",n.getContents("target").get("linkTargetType").default=l||"notSet"}catch(e){I.A.logError("Could not set default link attributes.")}};return(0,q.jsx)(M,{id:t,children:(0,q.jsx)(U,{config:p,initData:r,onBeforeLoad:function(e){return e.on("dialogDefinition",f)},type:"classic",onChange:function(e){var t=e.editor.getData();i(t)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var t=e.editor.editable().getValue();i(t)}),0)},editorUrl:"".concat(n.p,"ckeditor4/ckeditor-new.js")})})}}}]);
|
|
6
|
+
var r,a,i,l,u;r=e,a=function(e){return o=void 0,e?n(e):window.NEW_CKEDITOR?void t(NEW_CKEDITOR):n(new Error("Script loaded from editorUrl doesn't provide NEW_CKEDITOR namespace."))},l=document.head||document.getElementsByTagName("head")[0],u=document.createElement("script"),"function"==typeof a&&(i=a,a={}),a=a||{},i=i||function(){},u.type=a.type||"text/javascript",u.charset=a.charset||"utf8",u.async=!("async"in a)||!!a.async,u.src=r,a.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(u,a.attrs),a.text&&(u.text=String(a.text)),("onload"in u?c:d)(u,i),u.onload||c(u,i),l.appendChild(u)}))};var u=n(5556),s=function(){return s=Object.assign||function(e){for(var t,n=1,o=arguments.length;n<o;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)};function p(e,t,n){if(n||2===arguments.length)for(var o,r=0,a=t.length;r<a;r++)!o&&r in t||(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var f=["activeEnterModeChange","activeFilterChange","afterCommandExec","afterInsertHtml","afterPaste","afterPasteFromWord","afterSetData","afterUndoImage","ariaEditorHelpLabel","ariaWidget","autogrow","beforeCommandExec","beforeDestroy","beforeGetData","beforeModeUnload","beforeSetMode","beforeUndoImage","blur","change","configLoaded","contentDirChanged","contentDom","contentDomInvalidated","contentDomUnload","contentPreview","customConfigLoaded","dataFiltered","dataReady","destroy","dialogHide","dialogShow","dirChanged","doubleclick","dragend","dragstart","drop","elementsPathUpdate","exportPdf","fileUploadRequest","fileUploadResponse","floatingSpaceLayout","focus","getData","getSnapshot","insertElement","insertHtml","insertText","instanceReady","key","langLoaded","loadSnapshot","loaded","lockSnapshot","maximize","menuShow","mode","notificationHide","notificationShow","notificationUpdate","paste","pasteFromWord","pluginsLoaded","readOnly","removeFormatCleanup","required","resize","save","saveSnapshot","selectionChange","setData","stylesRemove","stylesSet","template","toDataFormat","toHtml","uiSpace","unlockSnapshot","updateSnapshot","widgetDefinition"],y=["beforeLoad","namespaceLoaded"],g=p(p([],f,!0),y,!0),m="__CKE__";function v(e){var t=e.substr(0,1).toUpperCase()+e.substr(1);return"on".concat(t)}function h(e){return e.substr(2,1).toLowerCase()+e.substr(3)}var b=p(p([],f,!0),y,!0).reduce((function(e,t){var n;return s(s({},e),((n={})[t]=function(e){return"".concat(m).concat(e)}(t),n))}),{});function O(e){return e.split(/(?=[A-Z])/).join("-").toLowerCase()}function x(e,t,n){var o={display:"none",visibility:"hidden"};return"classic"===e?o:"ready"===t?null!=n?n:void 0:o}function S(e){var t=e.debug,n=e.editor,o=e.evtName,r=e.handler,a=e.listenerData,i=e.priority,c=t&&Math.random().toString(36).replace(/[^a-z]+/g,"").substr(0,5),d=r;return t&&(d=function(e){console.log({operation:"invoke",editor:n.name,evtName:o,handlerId:c,data:e.data,listenerData:e.listenerData}),r(e)}),t&&console.log({operation:"register",editor:n.name,evtName:o,handlerId:c}),n.on(o,d,null,a,i),function(){t&&console.log({operation:"unregister",editor:n.name,evtName:o,handlerId:c}),n.removeListener(o,d)}}var k=i.useEffect,C=i.useReducer,E=i.useRef,w="https://cdn.ckeditor.com/4.22.1/standard-all/ckeditor.js",D={};function j(e,t){switch(t.type){case"init":return s(s({},e),{hookStatus:"init"});case"loading":return s(s({},e),{hookStatus:"loading"});case"unloaded":return{editor:t.payload,hookStatus:"unloaded"};case"loaded":return s(s({},e),{hookStatus:"loaded"});case"ready":return s(s({},e),{hookStatus:"ready"});case"destroyed":return{editor:void 0,hookStatus:"destroyed"};case"error":return{editor:void 0,hookStatus:"error"};default:return e}}var L=i.useEffect,P=i.useRef,T=i.useState;function U(e){var t=e.config,n=void 0===t?{}:t,o=e.debug,r=e.editorUrl,a=e.initData,c=e.name,d=e.readOnly,u=e.style,s=e.type,p=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)t.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(n[o[r]]=e[o[r]])}return n}(e,["config","debug","editorUrl","initData","name","readOnly","style","type"]),f=T(null),U=f[0],_=f[1],R=P(p);n&&"boolean"==typeof d&&(n.readOnly=d);var I=function(e){var t=e.config,n=e.debug,o=e.dispatchEvent,r=e.subscribeTo,a=void 0===r?g:r,i=e.editorUrl,c=e.element,d=e.initContent,u=e.type,s=void 0===u?"classic":u,p=E(i||w),f=E(null!=a?a:g),v=E(n),h=E(o),O=E(d),x=E(t||D),L=E(s),P=C(j,{editor:void 0,hookStatus:"init"}),T=P[0],U=T.editor,_=T.hookStatus,R=P[1];return k((function(){return c&&!U&&(R({type:"loading"}),l(p.current,(function(e){var t;-1!==f.current.indexOf("namespaceLoaded")&&(null===(t=h.current)||void 0===t||t.call(h,{type:b.namespaceLoaded,payload:e}))})).then((function(e){var t,n="inline"===L.current,o=x.current.readOnly;-1!==f.current.indexOf("beforeLoad")&&(null===(t=h.current)||void 0===t||t.call(h,{type:b.beforeLoad,payload:e}));var r=e[n?"inline":"replace"](c,x.current);f.current.filter((function(e){return-1===y.indexOf(e)})).forEach((function(e){S({debug:v.current,editor:r,evtName:e,handler:function(t){var n;null===(n=h.current)||void 0===n||n.call(h,{type:"".concat(m).concat(e),payload:t})}})})),S({debug:v.current,editor:r,evtName:"loaded",handler:function(){R({type:"loaded"})},priority:-1}),S({debug:v.current,editor:r,evtName:"instanceReady",handler:function(e){var t=e.editor;R({type:"ready"}),n&&!o&&t.setReadOnly(!1),O.current&&t.setData(O.current,{noSnapshot:!0,callback:function(){t.resetUndo()}})},priority:-1}),S({debug:v.current,editor:r,evtName:"destroy",handler:function(){R({type:"destroyed"})},priority:-1}),R({type:"unloaded",payload:r})})).catch((function(e){console.error(e),R({type:"error"})}))),function(){U&&U.destroy()}}),[U,c]),{editor:U,status:null==U?void 0:U.status,error:"error"===_,loading:"loading"===_}}({config:n,dispatchEvent:function(e){var t=e.type,n=e.payload,o=v(t.substr(m.length)),r=R.current[o];r&&r(n)},debug:o,editorUrl:r,element:U,initContent:"string"==typeof a?a:void 0,subscribeTo:Object.keys(p).filter((function(e){return 0===e.indexOf("on")})).map(h),type:s}),N=I.editor,F=I.status;return L((function(){var e="inline"!==s&&N&&("loaded"===F||"ready"===F);return u&&e&&N.container.setStyles(u),function(){u&&e&&Object.keys(u).map(O).forEach((function(e){N.container.removeStyle(e)}))}}),[N,F,u,s]),L((function(){N&&"ready"===F&&"boolean"==typeof d&&N.setReadOnly(d)}),[N,F,d]),i.createElement("div",{id:null!=c?c:void 0,ref:_,style:x(null!=s?s:"classic",F,u)},"string"==typeof a?null:a)}var _=s({config:u.object,debug:u.bool,editorUrl:u.string,initData:u.node,name:u.string,readOnly:u.bool,style:u.object,type:u.oneOf(["classic","inline"])},g.reduce((function(e,t){var n;return s(s({},e),((n={})[v(t)]=u.func,n))}),{}));U.propTypes=_;var R=n(11843),I=n(73082),N=n(22056),F=n.n(N);const H=Object.entries({"8px":"~6pt","9px":"~7pt","10px":"~7.5pt","11px":"~8pt","12px":"~9pt","13px":"~10pt","14px":"~10.5pt","15px":"~11pt","16px":"~12pt","17px":"~13pt","18px":"~13.5pt","19px":"~14pt","20px":"~14.5pt","22px":"~16pt","24px":"~18pt","26px":"~20pt","28px":"~21pt","29px":"~22pt","32px":"~24pt","36px":"~26pt","37px":"~28pt","48px":"~36pt","64px":"~48pt","72px":"~54pt"}).map((function(e){var t=F()(e,2),n=t[0],o=t[1];return"".concat(n," (").concat(o,")/").concat(n)})).join(";");var K,W=n(72189),A=n.n(W),z=n(87716),B=n(60284),M=z.Ay.div.withConfig({displayName:"StyledHtmlEditor"})(K||(K=A()(["\n && {\n .ck-editor {\n --ck-border-radius: 0.27rem;\n ","\n\n .ck.ck-list__item .ck-button.ck-fontsize-option .ck-button__label {\n line-height: 1;\n }\n\n .ck-editor__editable {\n min-height: 100px;\n }\n }\n }\n"])),(function(e){return(0,B.gv)(e,"ckeditor")})),q=n(74848);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}window.NEW_CKEDITOR_BASEPATH="".concat(n.p,"ckeditor4/");var V=function(e){switch(e){case"fr-CH":return"fr";case"it-CH":return"it";case"en-US":return"en";case"fr":case"en":case"it":case"de":return e;case"de-CH":return"de-ch";default:return"de"}};const Z=function(e){var t=e.id,o=e.value,r=void 0===o?"":o,i=e.onChange,c=e.contentLang,d=void 0===c?"de":c,l=e.defaultLinkTarget,u=e.ckEditorConfig,s=(0,R.useIntl)().locale,p=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){a()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({language:V(s),contentsLanguage:d,entities:!1,allowedContent:!0,toolbar:[["Bold","Italic","Underline","Strike","RemoveFormat"],["Format","Font","FontSize","TextColor"],["NumberedList","BulletedList"],["Link","Unlink"],["Table","SpecialChar","Image"],["PasteText"],["Source"]],extraPlugins:["colorbutton","colordialog","dialogadvtab","font","codemirror"],removeButtons:[],removeDialogTabs:"",removePlugins:["elementspath"],codemirror:{mode:"htmlmixed",enableCodeFormatting:!0,autoFormatOnStart:!0},versionCheck:!1,fontSize_sizes:H},u),f=function(e){try{var t=e.data.name,n=e.data.definition;if("link"===t)n.getContents("info").get("protocol").default="https://",n.getContents("target").get("linkTargetType").default=l||"notSet"}catch(e){I.A.logError("Could not set default link attributes.")}};return(0,q.jsx)(M,{id:t,children:(0,q.jsx)(U,{config:p,initData:r,onBeforeLoad:function(e){return e.on("dialogDefinition",f)},type:"classic",onChange:function(e){var t=e.editor.getData();i(t)},onKey:function(e){"source"===e.editor.mode&&setTimeout((function(){var t=e.editor.editable().getValue();i(t)}),0)},editorUrl:"".concat(n.p,"ckeditor4/ckeditor-new.js")})})}}}]);
|