Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mikolaï Krol
erp5
Commits
076a3ecb
Commit
076a3ecb
authored
Jun 08, 2020
by
Mikolaï Krol
Committed by
Mikolaï Krol
Jun 30, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_jexcel_editor: add multiple tabs, no formula bar
parent
bd86cdd7
Changes
14
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
1087 additions
and
429 deletions
+1087
-429
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/complements.css.css
...eItem/portal_skins/erp5_jexcel_editor/complements.css.css
+1
-1
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.template.html.html
..._skins/erp5_jexcel_editor/gadget.utils.template.html.html
+1
-1
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.template.html.xml
...l_skins/erp5_jexcel_editor/gadget.utils.template.html.xml
+1
-1
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.template.js.js
...rtal_skins/erp5_jexcel_editor/gadget.utils.template.js.js
+218
-0
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.template.js.xml
...tal_skins/erp5_jexcel_editor/gadget.utils.template.js.xml
+1
-1
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.toolbar.js.xml
...rtal_skins/erp5_jexcel_editor/gadget.utils.toolbar.js.xml
+0
-28
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel.gadget.html.html
...m/portal_skins/erp5_jexcel_editor/jexcel.gadget.html.html
+4
-4
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel.gadget.js.js
...eItem/portal_skins/erp5_jexcel_editor/jexcel.gadget.js.js
+105
-152
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.css.css
...tem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.css.css
+9
-5
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.js.js
...eItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.js.js
+6
-1
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.theme.css.css
...rtal_skins/erp5_jexcel_editor/jexcel/jexcel.theme.css.css
+0
-183
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.webcomponent.js.js
...skins/erp5_jexcel_editor/jexcel/jexcel.webcomponent.js.js
+0
-51
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel_perso.css.css
...rtal_skins/erp5_jexcel_editor/jexcel/jexcel_perso.css.css
+740
-0
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel_perso.css.xml
...rtal_skins/erp5_jexcel_editor/jexcel/jexcel_perso.css.xml
+1
-1
No files found.
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/complements.css.css
View file @
076a3ecb
...
...
@@ -13,4 +13,4 @@ input.jexcel_formula {
top
:
0px
;
z-index
:
21
;
display
:
inline-block
;
}
\ No newline at end of file
}
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.t
oolbar
.html.html
→
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.t
emplate
.html.html
View file @
076a3ecb
...
...
@@ -8,7 +8,7 @@
<script
src=
"rsvp.js"
></script>
<script
src=
"renderjs.js"
></script>
<script
src=
"gadget.utils.t
oolbar
.js"
></script>
<script
src=
"gadget.utils.t
emplate
.js"
></script>
</head>
<body>
...
...
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.t
oolbar
.html.xml
→
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.t
emplate
.html.xml
View file @
076a3ecb
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
gadget.utils.t
oolbar
.html
</string>
</value>
<value>
<string>
gadget.utils.t
emplate
.html
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
...
...
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.t
oolbar
.js.js
→
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.t
emplate
.js.js
View file @
076a3ecb
...
...
@@ -3,6 +3,95 @@
(
function
(
window
,
rJS
,
jexcel
)
{
"
use strict
"
;
var
template
=
{
minDimensions
:
[
26
,
100
],
defaultColWidth
:
100
,
allowExport
:
true
,
columnSorting
:
true
,
columnDrag
:
true
,
columnResize
:
true
,
rowResize
:
true
,
rowDrag
:
true
,
editable
:
true
,
allowInsertRow
:
true
,
allowManualInsertRow
:
true
,
allowInsertColumn
:
true
,
allowManualInsertColumn
:
true
,
allowDeleteRow
:
true
,
allowRenameColumn
:
true
,
allowComments
:
true
,
selectionCopy
:
true
,
search
:
true
,
fullscreen
:
true
,
autoIncrement
:
true
,
parseFormulas
:
true
};
var
undo
=
{
type
:
'
i
'
,
content
:
'
undo
'
,
onclick
:
function
(
a
,
b
,
c
)
{
b
.
undo
();
}
};
var
redo
=
{
type
:
'
i
'
,
content
:
'
redo
'
,
onclick
:
function
(
a
,
b
,
c
)
{
b
.
redo
();
}
};
var
merge
=
{
type
:
'
i
'
,
content
:
'
table_chart
'
,
onclick
:
function
(
a
,
b
,
c
)
{
var
cell
=
document
.
querySelector
(
"
td.highlight
"
);
var
x
=
Number
(
cell
.
dataset
.
x
);
var
selected
=
b
.
getJson
(
true
);
var
colspan
=
Object
.
keys
(
selected
[
0
]).
length
;
var
rowspan
=
selected
.
length
;
var
letter
=
""
;
if
(
x
<=
25
)
{
letter
+=
String
.
fromCharCode
(
97
+
x
).
toUpperCase
();
}
else
{
letter
+=
String
.
fromCharCode
(
97
+
Math
.
trunc
(
x
/
25
)
-
1
).
toUpperCase
();
letter
+=
String
.
fromCharCode
(
97
+
(
x
%
26
)).
toUpperCase
();
}
var
coor
=
letter
+
(
Number
(
cell
.
dataset
.
y
)
+
1
).
toString
();
b
.
setMerge
(
coor
,
colspan
,
rowspan
);
}
};
var
unmerge
=
{
type
:
'
i
'
,
content
:
'
close
'
,
onclick
:
function
(
a
,
b
,
c
)
{
var
cell
=
document
.
querySelector
(
"
td.highlight-selected
"
);
var
x
=
Number
(
cell
.
dataset
.
x
);
var
letter
=
""
;
if
(
x
<=
25
)
{
letter
+=
String
.
fromCharCode
(
97
+
x
).
toUpperCase
();
}
else
{
letter
+=
String
.
fromCharCode
(
97
+
Math
.
trunc
(
x
/
25
)
-
1
).
toUpperCase
();
letter
+=
String
.
fromCharCode
(
97
+
(
x
%
26
)).
toUpperCase
();
}
var
coor
=
letter
+
(
Number
(
cell
.
dataset
.
y
)
+
1
).
toString
();
b
.
removeMerge
(
coor
);
}
};
var
destroy_merge
=
{
type
:
'
i
'
,
content
:
'
cancel
'
,
onclick
:
function
(
a
,
b
,
c
)
{
b
.
destroyMerged
();
}
};
var
font_style
=
{
type
:
'
select
'
,
k
:
'
font-family
'
,
...
...
@@ -96,8 +185,22 @@
rJS
(
window
)
.
declareMethod
(
"
getToolbarList
"
,
function
(
dict
)
{
.
declareMethod
(
"
getToolbarList
"
,
function
(
add_function
,
dict
)
{
var
list
=
[];
if
(
dict
.
hasOwnProperty
(
"
undo_redo
"
)
&&
dict
.
undo_redo
)
{
list
.
push
(
undo
,
redo
);
}
if
(
dict
.
hasOwnProperty
(
"
add
"
)
&&
dict
.
add
)
{
var
add
=
{
type
:
'
i
'
,
content
:
'
add
'
,
onclick
:
add_function
};
list
.
push
(
add
);
}
if
(
dict
.
hasOwnProperty
(
"
merge
"
)
&&
dict
.
merge
)
{
list
.
push
(
merge
,
unmerge
,
destroy_merge
);
}
if
(
dict
.
hasOwnProperty
(
"
text_font
"
)
&&
dict
.
text_font
)
{
list
.
push
(
font_style
,
font_size
,
style_bold
,
style_italic
,
style_underlined
);
}
...
...
@@ -107,7 +210,9 @@
if
(
dict
.
hasOwnProperty
(
"
color_picker
"
)
&&
dict
.
color_picker
)
{
list
.
push
(
text_color
,
background_color
);
}
return
list
;
var
res
=
Object
.
assign
({},
template
);
res
.
toolbar
=
list
;
return
res
;
});
}(
window
,
rJS
,
jexcel
));
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/
jexcel/jexcel.webcomponent
.js.xml
→
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/
gadget.utils.template
.js.xml
View file @
076a3ecb
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
jexcel.webcomponent
.js
</string>
</value>
<value>
<string>
gadget.utils.template
.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
...
...
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/gadget.utils.toolbar.js.xml
deleted
100644 → 0
View file @
bd86cdd7
<?xml version="1.0"?>
<ZopeData>
<record
id=
"1"
aka=
"AAAAAAAAAAE="
>
<pickle>
<global
name=
"File"
module=
"OFS.Image"
/>
</pickle>
<pickle>
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
gadget.utils.toolbar.js
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
<value>
<string>
application/javascript
</string>
</value>
</item>
<item>
<key>
<string>
precondition
</string>
</key>
<value>
<string></string>
</value>
</item>
<item>
<key>
<string>
title
</string>
</key>
<value>
<string></string>
</value>
</item>
</dictionary>
</pickle>
</record>
</ZopeData>
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel.gadget.html.html
View file @
076a3ecb
...
...
@@ -11,9 +11,9 @@
<script
src=
"jexcel/jexcel.js"
></script>
<script
src=
"jsuites/jsuites.js"
></script>
<link
rel=
"stylesheet"
href=
"jexcel/jexcel.css"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"jexcel/jexcel
_perso
.css"
type=
"text/css"
/>
<link
rel=
"stylesheet"
href=
"jsuites/jsuites.css"
type=
"text/css"
/>
<
link
rel=
"stylesheet"
href=
"complements.css"
type=
"text/css"
/
>
<
!--<link rel="stylesheet" href="complements.css" type="text/css" />--
>
<link
rel=
"stylesheet"
href=
"icons.css"
type=
"text/css"
/>
...
...
@@ -21,8 +21,8 @@
</head>
<body>
<div
data-gadget-url=
"gadget.utils.t
oolbar
.html"
data-gadget-scope=
"t
oolbar
_gadget"
<div
data-gadget-url=
"gadget.utils.t
emplate
.html"
data-gadget-scope=
"t
emplate
_gadget"
data-gadget-sandbox=
"public"
>
</div>
<div
class=
"spreadsheet"
></div>
...
...
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel.gadget.js.js
View file @
076a3ecb
This diff is collapsed.
Click to expand it.
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.css.css
View file @
076a3ecb
...
...
@@ -21,10 +21,14 @@
.jexcel_container.fullscreen
.jexcel_content
{
overflow
:
auto
;
width
:
100%
;
height
:
96.5
%
;
height
:
100
%
;
background-color
:
#ffffff
;
}
.jexcel_container.with-toolbar
.jexcel
>
thead
>
tr
>
td
{
top
:
0
;
}
.jexcel_container.fullscreen.with-toolbar
{
height
:
calc
(
100%
-
46px
);
}
...
...
@@ -90,7 +94,7 @@
.with-toolbar
.jexcel
>
thead
>
tr
>
td
{
/**top:42px;**/
top
:
42px
;
}
.jexcel
>
thead
>
tr
>
td
.dragging
...
...
@@ -552,12 +556,12 @@
{
display
:
flex
;
justify-content
:
space-between
;
/**margin-bottom:4px;**/
margin-bottom
:
4px
;
}
.jexcel_filter
>
div
{
padding
:
4
px
;
padding
:
8
px
;
align-items
:
center
;
}
...
...
@@ -609,7 +613,7 @@
background-color
:
#f3f3f3
;
border
:
1px
solid
#ccc
;
padding
:
4px
;
margin
:
0px
2px
1
px
1px
;
margin
:
0px
2px
4
px
1px
;
position
:
sticky
;
top
:
0px
;
z-index
:
21
;
...
...
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.js.js
View file @
076a3ecb
...
...
@@ -1339,7 +1339,12 @@ console.log(ret);
}
// Handle click
if
(
toolbar
[
i
].
onclick
&&
typeof
(
toolbar
[
i
].
onclick
))
{
toolbarItem
.
onclick
=
toolbar
[
i
].
onclick
;
toolbarItem
.
onclick
=
(
function
(
a
)
{
var
b
=
a
;
return
function
()
{
toolbar
[
b
].
onclick
(
el
,
obj
,
this
);
};
})(
i
);
}
else
{
toolbarItem
.
onclick
=
function
()
{
var
k
=
this
.
getAttribute
(
'
data-k
'
);
...
...
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.theme.css.css
deleted
100644 → 0
View file @
bd86cdd7
:root
{
--jexcel_header_color
:
#888
;
--jexcel_header_color_highlighted
:
#444
;
--jexcel_header_background
:
#313131
;
--jexcel_header_background_highlighted
:
#777
;
--jexcel_content_color
:
#777
;
--jexcel_content_color_highlighted
:
#333
;
--jexcel_content_background
:
#3e3e3e
;
--jexcel_content_background_highlighted
:
#777
;
--jexcel_menu_background
:
#7e7e7e
;
--jexcel_menu_background_highlighted
:
#ebebeb
;
--jexcel_menu_color
:
#ddd
;
--jexcel_menu_color_highlighted
:
#222
;
--jexcel_border_color
:
#5f5f5f
;
--jexcel_border_color_highlighted
:
#999
;
--active_color
:
#eee
;
--active-color
:
var
(
--active_color
);
}
.jexcel
{
border-bottom
:
1px
solid
var
(
--jexcel_border_color
);
border-right
:
1px
solid
var
(
--jexcel_border_color
);
}
.jexcel
>
tbody
>
tr
>
td
,
.jexcel
>
thead
>
tr
>
td
{
border-top
:
1px
solid
var
(
--jexcel_border_color
);
border-left
:
1px
solid
var
(
--jexcel_border_color
);
background-color
:
var
(
--jexcel_content_background
);
color
:
var
(
--jexcel_content_color
);
}
.jexcel
>
tbody
>
tr
>
td
:first-child
,
.jexcel
>
thead
>
tr
>
td
{
background-color
:
var
(
--jexcel_header_background
);
color
:
var
(
--jexcel_header_color
);
}
.jexcel
>
thead
>
tr
>
td
.selected
,
.jexcel
>
tbody
>
tr
.selected
>
td
:first-child
{
background-color
:
var
(
--jexcel_header_background_highlighted
);
color
:
var
(
--jexcel_header_color_highlighted
);
}
.jexcel
>
tbody
>
tr
>
td
.jexcel_cursor
a
{
color
:
var
(
--active-color
);
}
.jexcel_pagination
>
div
>
div
{
color
:
var
(
--jexcel_header_color
);
background
:
var
(
--jexcel_header_background
);
border
:
1px
solid
var
(
--jexcel_border_color
);
}
.jexcel_page
,
.jexcel_container
input
,
.jexcel_container
select
{
color
:
var
(
--jexcel_header_color
);
background
:
var
(
--jexcel_header_background
);
border
:
1px
solid
var
(
--jexcel_border_color
);
}
.jexcel_contextmenu
{
border
:
1px
solid
var
(
--jexcel_border_color
);
background
:
var
(
--jexcel_menu_background
);
color
:
var
(
--jexcel_menu_color
);
box-shadow
:
var
(
--jexcel_menu_box_shadow
);
-webkit-box-shadow
:
var
(
--jexcel_menu_box_shadow
);
-moz-box-shadow
:
var
(
--jexcel_menu_box_shadow
);
}
.jexcel_contextmenu
>
div
a
{
color
:
var
(
--jexcel_menu_color
);
}
.jexcel_contextmenu
>
div
:not
(
.contextmenu-line
)
:hover
a
{
color
:
var
(
--jexcel_menu_color_highlighted
);
}
.jexcel_contextmenu
>
div
:not
(
.contextmenu-line
)
:hover
{
background
:
var
(
--jexcel_menu_background_highlighted
);
}
.jexcel_dropdown
.jdropdown-container
,
.jexcel_dropdown
.jdropdown-content
{
background-color
:
var
(
--jexcel_content_background
);
color
:
var
(
--jexcel_content_color
);
}
.jexcel_dropdown
.jdropdown-item
{
color
:
var
(
--jexcel_content_color
);
}
.jexcel_dropdown
.jdropdown-item
:hover
,
.jexcel_dropdown
.jdropdown-selected
,
.jexcel_dropdown
.jdropdown-cursor
{
background-color
:
var
(
--jexcel_content_background_highlighted
);
color
:
var
(
--jexcel_content_color_highlighted
);
}
.jexcel
.jcalendar-content
{
background-color
:
var
(
--jexcel_header_background
);
color
:
var
(
--jexcel_header_color
);
}
.jexcel
.jcalendar-content
>
table
{
background-color
:
var
(
--jexcel_content_background
);
color
:
var
(
--jexcel_content_color
);
}
.jexcel
.jcalendar-weekday
{
background-color
:
var
(
--jexcel_content_background_highlighted
);
color
:
var
(
--jexcel_content_color_highlighted
);
}
.jexcel
.jcalendar-sunday
{
color
:
var
(
--jexcel_header_color
);
}
.jexcel
.jcalendar-selected
{
background-color
:
var
(
--jexcel_content_background_highlighted
);
color
:
var
(
--jexcel_content_color_highlighted
);
}
.jexcel_toolbar
i
.jexcel_toolbar_item
{
color
:
var
(
--jexcel_content_color
);
}
.jexcel_toolbar
i
.jexcel_toolbar_item
:hover
{
background
:
var
(
--jexcel_content_background_highlighted
);
color
:
var
(
--jexcel_content_color_highlighted
);
}
.jexcel_toolbar
{
background
:
var
(
--jexcel_header_background
);
}
.jexcel_content
::-webkit-scrollbar-track
{
background
:
var
(
--jexcel_background_head
);
}
.jexcel_content
::-webkit-scrollbar-thumb
{
background
:
var
(
--jexcel_background_head_highlighted
);
}
.jexcel_border_main
{
border
:
1px
solid
#000
;
border-color
:
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.highlight
{
background-color
:
var
(
--jexcel_content_background_highlighted
);
}
.jexcel
.highlight-bottom
{
border-bottom
:
1px
solid
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.highlight-right
{
border-right
:
1px
solid
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.highlight-left
{
border-left
:
1px
solid
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.highlight-top
{
border-top
:
1px
solid
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.copying-top
{
border-top-color
:
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.copying-right
{
border-right-color
:
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.copying-left
{
border-left-color
:
var
(
--jexcel_border_color_highlighted
);
}
.jexcel
.copying-bottom
{
border-bottom-color
:
var
(
--jexcel_border_color_highlighted
);
}
.jexcel_border_main
,
.jexcel
.highlight-top.highlight-left
,
.jexcel
.highlight-top
,
.jexcel
.highlight-left
{
-webkit-box-shadow
:
unset
;
box-shadow
:
unset
;
}
\ No newline at end of file
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel.webcomponent.js.js
deleted
100644 → 0
View file @
bd86cdd7
class
Jexcel
extends
HTMLElement
{
constructor
()
{
super
();
}
init
(
o
)
{
// Shadow root
const
shadowRoot
=
this
.
attachShadow
({
mode
:
'
open
'
});
// Style
const
cssJexcel
=
document
.
createElement
(
'
link
'
);
cssJexcel
.
rel
=
'
stylesheet
'
;
cssJexcel
.
type
=
'
text/css
'
cssJexcel
.
href
=
'
jexcel.css
'
;
shadowRoot
.
appendChild
(
cssJexcel
);
const
cssJsuites
=
document
.
createElement
(
'
link
'
);
cssJsuites
.
rel
=
'
stylesheet
'
;
cssJsuites
.
type
=
'
text/css
'
cssJsuites
.
href
=
'
jsuites.css
'
;
shadowRoot
.
appendChild
(
cssJsuites
);
// Jexcel container
var
container
=
document
.
createElement
(
'
div
'
);
shadowRoot
.
appendChild
(
container
);
// Garantee all elements are rendered
setTimeout
(
function
()
{
// Parse JSON
var
config
=
JSON
.
parse
(
o
.
innerHTML
);
// Root
config
.
root
=
shadowRoot
;
// Reset container
o
.
innerHTML
=
''
;
// Create jexcel element
jexcel
(
container
,
config
);
},
0
);
}
connectedCallback
()
{
this
.
init
(
this
);
}
disconnectedCallback
()
{
}
attributeChangedCallback
()
{
}
}
window
.
customElements
.
define
(
'
jexcel-spreadsheet
'
,
Jexcel
);
\ No newline at end of file
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel_perso.css.css
0 → 100644
View file @
076a3ecb
This diff is collapsed.
Click to expand it.
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel
.theme
.css.xml
→
bt5/erp5_jexcel_editor/SkinTemplateItem/portal_skins/erp5_jexcel_editor/jexcel/jexcel
_perso
.css.xml
View file @
076a3ecb
...
...
@@ -8,7 +8,7 @@
<dictionary>
<item>
<key>
<string>
__name__
</string>
</key>
<value>
<string>
jexcel
.theme
.css
</string>
</value>
<value>
<string>
jexcel
_perso
.css
</string>
</value>
</item>
<item>
<key>
<string>
content_type
</string>
</key>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment