@windward/core 0.0.2 → 0.0.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/.idea/codeStyles/Project.xml +58 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/inspectionProfiles/Project_Default.xml +6 -0
- package/.idea/modules.xml +8 -0
- package/.idea/php-docker-settings.xml +24 -0
- package/.idea/php.xml +19 -0
- package/.idea/vcs.xml +6 -0
- package/.idea/watcherTasks.xml +4 -0
- package/.idea/windward-ui-plugin-core.iml +8 -0
- package/components/Content/Blocks/Accordion.vue +2 -2
- package/components/Content/Blocks/Tab.vue +8 -1
- package/components/Settings/TabSettings.vue +5 -2
- package/components/utils/ContentViewer.vue +5 -2
- package/components/utils/TinyMCEWrapper.vue +118 -24
- package/components/utils/assets/tinymce/css/content.scss +188 -0
- package/coverage/clover.xml +223 -0
- package/coverage/coverage-final.json +16 -0
- package/coverage/lcov-report/base.css +224 -0
- package/coverage/lcov-report/block-navigation.js +87 -0
- package/coverage/lcov-report/components/Content/Blocks/Accordion.vue.html +430 -0
- package/coverage/lcov-report/components/Content/Blocks/Image.vue.html +394 -0
- package/coverage/lcov-report/components/Content/Blocks/Math.vue.html +262 -0
- package/coverage/lcov-report/components/Content/Blocks/RichText.vue.html +295 -0
- package/coverage/lcov-report/components/Content/Blocks/Tab.vue.html +415 -0
- package/coverage/lcov-report/components/Content/Blocks/Table.vue.html +667 -0
- package/coverage/lcov-report/components/Content/Blocks/Video.vue.html +2275 -0
- package/coverage/lcov-report/components/Content/Blocks/index.html +206 -0
- package/coverage/lcov-report/components/utils/ContentViewer.vue.html +199 -0
- package/coverage/lcov-report/components/utils/MathExpressionEditor.vue.html +919 -0
- package/coverage/lcov-report/components/utils/MathLiveWrapper.vue.html +343 -0
- package/coverage/lcov-report/components/utils/TinyMCEWrapper.vue.html +271 -0
- package/coverage/lcov-report/components/utils/index.html +161 -0
- package/coverage/lcov-report/config/index.html +116 -0
- package/coverage/lcov-report/config/tinymce.config.js.html +493 -0
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/helpers/MathHelper.ts.html +793 -0
- package/coverage/lcov-report/helpers/index.html +116 -0
- package/coverage/lcov-report/helpers/tinymce/index.html +116 -0
- package/coverage/lcov-report/helpers/tinymce/plugin.ts.html +334 -0
- package/coverage/lcov-report/index.html +191 -0
- package/coverage/lcov-report/prettify.css +1 -0
- package/coverage/lcov-report/prettify.js +2 -0
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +196 -0
- package/coverage/lcov-report/test/index.html +116 -0
- package/coverage/lcov-report/test/mocks.js.html +457 -0
- package/coverage/lcov.info +403 -0
- package/helpers/GlossaryHelper.ts +1 -1
- package/helpers/tinymce/plugin.ts +13 -4
- package/i18n/en-US/components/utils/tiny_mce_wrapper.ts +11 -0
- package/lib/helpers/GlossaryHelper.d.ts +9 -0
- package/lib/helpers/GlossaryHelper.js +118 -0
- package/lib/helpers/GlossaryTerm.d.ts +10 -0
- package/lib/helpers/GlossaryTerm.js +22 -0
- package/lib/helpers/MathHelper.d.ts +99 -0
- package/lib/helpers/MathHelper.js +194 -0
- package/lib/helpers/tinymce/plugin.d.ts +2 -0
- package/lib/helpers/tinymce/plugin.js +86 -0
- package/lib/i18n/en-US/components/content/blocks/image.d.ts +6 -0
- package/lib/i18n/en-US/components/content/blocks/image.js +7 -0
- package/lib/i18n/en-US/components/content/blocks/index.d.ts +75 -0
- package/lib/i18n/en-US/components/content/blocks/index.js +14 -0
- package/lib/i18n/en-US/components/content/blocks/tab.d.ts +5 -0
- package/lib/i18n/en-US/components/content/blocks/tab.js +6 -0
- package/lib/i18n/en-US/components/content/blocks/table.d.ts +5 -0
- package/lib/i18n/en-US/components/content/blocks/table.js +6 -0
- package/lib/i18n/en-US/components/content/blocks/user_upload.d.ts +13 -0
- package/lib/i18n/en-US/components/content/blocks/user_upload.js +14 -0
- package/lib/i18n/en-US/components/content/blocks/video.d.ts +48 -0
- package/lib/i18n/en-US/components/content/blocks/video.js +49 -0
- package/lib/i18n/en-US/components/content/index.d.ts +77 -0
- package/lib/i18n/en-US/components/content/index.js +6 -0
- package/lib/i18n/en-US/components/index.d.ts +140 -0
- package/lib/i18n/en-US/components/index.js +12 -0
- package/lib/i18n/en-US/components/navigation/image.d.ts +5 -0
- package/lib/i18n/en-US/components/navigation/image.js +6 -0
- package/lib/i18n/en-US/components/navigation/index.d.ts +10 -0
- package/lib/i18n/en-US/components/navigation/index.js +8 -0
- package/lib/i18n/en-US/components/navigation/user_upload.d.ts +4 -0
- package/lib/i18n/en-US/components/navigation/user_upload.js +5 -0
- package/lib/i18n/en-US/components/settings/clickable_icon.d.ts +6 -0
- package/lib/i18n/en-US/components/settings/clickable_icon.js +7 -0
- package/lib/i18n/en-US/components/settings/image.d.ts +2 -0
- package/lib/i18n/en-US/components/settings/image.js +3 -0
- package/lib/i18n/en-US/components/settings/index.d.ts +39 -0
- package/lib/i18n/en-US/components/settings/index.js +14 -0
- package/lib/i18n/en-US/components/settings/text_editor.d.ts +8 -0
- package/lib/i18n/en-US/components/settings/text_editor.js +9 -0
- package/lib/i18n/en-US/components/settings/user_upload.d.ts +12 -0
- package/lib/i18n/en-US/components/settings/user_upload.js +13 -0
- package/lib/i18n/en-US/components/settings/video.d.ts +13 -0
- package/lib/i18n/en-US/components/settings/video.js +14 -0
- package/lib/i18n/en-US/components/utils/index.d.ts +15 -0
- package/lib/i18n/en-US/components/utils/index.js +6 -0
- package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.d.ts +13 -0
- package/lib/i18n/en-US/components/utils/tiny_mce_wrapper.js +14 -0
- package/lib/i18n/en-US/index.d.ts +197 -0
- package/lib/i18n/en-US/index.js +16 -0
- package/lib/i18n/en-US/modules/index.d.ts +2 -0
- package/lib/i18n/en-US/modules/index.js +6 -0
- package/lib/i18n/en-US/pages/glossary.d.ts +8 -0
- package/lib/i18n/en-US/pages/glossary.js +9 -0
- package/lib/i18n/en-US/pages/index.d.ts +13 -0
- package/lib/i18n/en-US/pages/index.js +8 -0
- package/lib/i18n/en-US/pages/user_upload.d.ts +4 -0
- package/lib/i18n/en-US/pages/user_upload.js +5 -0
- package/lib/i18n/en-US/shared/content_blocks.d.ts +20 -0
- package/lib/i18n/en-US/shared/content_blocks.js +21 -0
- package/lib/i18n/en-US/shared/index.d.ts +39 -0
- package/lib/i18n/en-US/shared/index.js +10 -0
- package/lib/i18n/en-US/shared/menu.d.ts +4 -0
- package/lib/i18n/en-US/shared/menu.js +5 -0
- package/lib/i18n/en-US/shared/settings.d.ts +15 -0
- package/lib/i18n/en-US/shared/settings.js +16 -0
- package/lib/i18n/en-US.d.ts +197 -0
- package/lib/i18n/en-US.js +15 -0
- package/lib/models/UserFileAsset.d.ts +5 -0
- package/lib/models/UserFileAsset.js +37 -0
- package/package.json +4 -2
- package/plugin.js +0 -11
- package/components/Content/Blocks/Table.vue +0 -68
- package/test/Components/Content/Blocks/Table.spec.js +0 -21
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
<component name="ProjectCodeStyleConfiguration">
|
|
2
|
+
<code_scheme name="Project" version="173">
|
|
3
|
+
<HTMLCodeStyleSettings>
|
|
4
|
+
<option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
|
|
5
|
+
<option name="HTML_ENFORCE_QUOTES" value="true" />
|
|
6
|
+
</HTMLCodeStyleSettings>
|
|
7
|
+
<JSCodeStyleSettings version="0">
|
|
8
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
9
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
10
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
11
|
+
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
12
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
13
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
14
|
+
</JSCodeStyleSettings>
|
|
15
|
+
<TypeScriptCodeStyleSettings version="0">
|
|
16
|
+
<option name="FORCE_SEMICOLON_STYLE" value="true" />
|
|
17
|
+
<option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" />
|
|
18
|
+
<option name="FORCE_QUOTE_STYlE" value="true" />
|
|
19
|
+
<option name="ENFORCE_TRAILING_COMMA" value="Remove" />
|
|
20
|
+
<option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
|
|
21
|
+
<option name="SPACES_WITHIN_IMPORTS" value="true" />
|
|
22
|
+
</TypeScriptCodeStyleSettings>
|
|
23
|
+
<VueCodeStyleSettings>
|
|
24
|
+
<option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
|
|
25
|
+
<option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
|
|
26
|
+
</VueCodeStyleSettings>
|
|
27
|
+
<codeStyleSettings language="HTML">
|
|
28
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
29
|
+
<indentOptions>
|
|
30
|
+
<option name="INDENT_SIZE" value="2" />
|
|
31
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
32
|
+
<option name="TAB_SIZE" value="2" />
|
|
33
|
+
</indentOptions>
|
|
34
|
+
</codeStyleSettings>
|
|
35
|
+
<codeStyleSettings language="JavaScript">
|
|
36
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
37
|
+
<indentOptions>
|
|
38
|
+
<option name="INDENT_SIZE" value="2" />
|
|
39
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
40
|
+
<option name="TAB_SIZE" value="2" />
|
|
41
|
+
</indentOptions>
|
|
42
|
+
</codeStyleSettings>
|
|
43
|
+
<codeStyleSettings language="TypeScript">
|
|
44
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
45
|
+
<indentOptions>
|
|
46
|
+
<option name="INDENT_SIZE" value="2" />
|
|
47
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
48
|
+
<option name="TAB_SIZE" value="2" />
|
|
49
|
+
</indentOptions>
|
|
50
|
+
</codeStyleSettings>
|
|
51
|
+
<codeStyleSettings language="Vue">
|
|
52
|
+
<option name="SOFT_MARGINS" value="80" />
|
|
53
|
+
<indentOptions>
|
|
54
|
+
<option name="CONTINUATION_INDENT_SIZE" value="2" />
|
|
55
|
+
</indentOptions>
|
|
56
|
+
</codeStyleSettings>
|
|
57
|
+
</code_scheme>
|
|
58
|
+
</component>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/windward-ui-plugin-core.iml" filepath="$PROJECT_DIR$/.idea/windward-ui-plugin-core.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="PhpDockerContainerSettings">
|
|
4
|
+
<list>
|
|
5
|
+
<map>
|
|
6
|
+
<entry key="79d59a8f-c56c-4789-b96c-e55a326ab125">
|
|
7
|
+
<value>
|
|
8
|
+
<DockerContainerSettings>
|
|
9
|
+
<option name="version" value="1" />
|
|
10
|
+
<option name="volumeBindings">
|
|
11
|
+
<list>
|
|
12
|
+
<DockerVolumeBindingImpl>
|
|
13
|
+
<option name="containerPath" value="/opt/project" />
|
|
14
|
+
<option name="hostPath" value="$PROJECT_DIR$" />
|
|
15
|
+
</DockerVolumeBindingImpl>
|
|
16
|
+
</list>
|
|
17
|
+
</option>
|
|
18
|
+
</DockerContainerSettings>
|
|
19
|
+
</value>
|
|
20
|
+
</entry>
|
|
21
|
+
</map>
|
|
22
|
+
</list>
|
|
23
|
+
</component>
|
|
24
|
+
</project>
|
package/.idea/php.xml
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="MessDetectorOptionsConfiguration">
|
|
4
|
+
<option name="transferred" value="true" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="PHPCSFixerOptionsConfiguration">
|
|
7
|
+
<option name="transferred" value="true" />
|
|
8
|
+
</component>
|
|
9
|
+
<component name="PHPCodeSnifferOptionsConfiguration">
|
|
10
|
+
<option name="highlightLevel" value="WARNING" />
|
|
11
|
+
<option name="transferred" value="true" />
|
|
12
|
+
</component>
|
|
13
|
+
<component name="PhpStanOptionsConfiguration">
|
|
14
|
+
<option name="transferred" value="true" />
|
|
15
|
+
</component>
|
|
16
|
+
<component name="PsalmOptionsConfiguration">
|
|
17
|
+
<option name="transferred" value="true" />
|
|
18
|
+
</component>
|
|
19
|
+
</project>
|
package/.idea/vcs.xml
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module type="WEB_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$" />
|
|
5
|
+
<orderEntry type="inheritedJdk" />
|
|
6
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
7
|
+
</component>
|
|
8
|
+
</module>
|
|
@@ -119,13 +119,13 @@ export default {
|
|
|
119
119
|
}
|
|
120
120
|
</script>
|
|
121
121
|
|
|
122
|
-
<style scoped>
|
|
122
|
+
<style lang="scss" scoped>
|
|
123
123
|
.header {
|
|
124
124
|
color: white;
|
|
125
125
|
margin-top: 1px;
|
|
126
126
|
}
|
|
127
127
|
.body {
|
|
128
|
-
background:
|
|
128
|
+
background: var(--v-surface-base);
|
|
129
129
|
}
|
|
130
130
|
#expansion-panel-setting {
|
|
131
131
|
z-index: 0;
|
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div>
|
|
3
3
|
<v-container>
|
|
4
|
-
<v-tabs
|
|
4
|
+
<v-tabs
|
|
5
|
+
background-color="primary"
|
|
6
|
+
v-model="block.metadata.config.tab"
|
|
7
|
+
>
|
|
8
|
+
<v-tabs-slider color="primary"></v-tabs-slider>
|
|
5
9
|
<v-tab
|
|
6
10
|
v-for="(tab, tabIndex) in block.metadata.config.items"
|
|
7
11
|
:key="tabIndex"
|
|
@@ -61,6 +65,9 @@ export default {
|
|
|
61
65
|
content: '',
|
|
62
66
|
}
|
|
63
67
|
this.block.metadata.config.items = []
|
|
68
|
+
if (_.isEmpty(this.block.metadata.config.tab)) {
|
|
69
|
+
this.block.metadata.config.tab = 0
|
|
70
|
+
}
|
|
64
71
|
this.block.metadata.config.items.push(defaultObject)
|
|
65
72
|
} else {
|
|
66
73
|
this.block.metadata.config.items.forEach((element) => {
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<v-icon>mdi-plus</v-icon>
|
|
5
5
|
{{ $t('windward.core.components.content.blocks.tab.add_tab') }}
|
|
6
6
|
</v-btn>
|
|
7
|
-
<v-expansion-panels flat>
|
|
7
|
+
<v-expansion-panels flat v-model="block.metadata.config.tab">
|
|
8
8
|
<v-expansion-panel
|
|
9
9
|
v-for="(item, itemIndex) in block.metadata.config.items"
|
|
10
10
|
:key="itemIndex"
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
</template>
|
|
60
60
|
|
|
61
61
|
<script>
|
|
62
|
-
import _ from 'lodash'
|
|
62
|
+
import _, { get } from 'lodash'
|
|
63
63
|
import Crypto from '~/helpers/Crypto'
|
|
64
64
|
import TextEditor from '~/components/Text/TextEditor.vue'
|
|
65
65
|
import BaseContentSettings from '~/components/Content/Tool/BaseContentSettings.js'
|
|
@@ -81,6 +81,9 @@ export default {
|
|
|
81
81
|
if (_.isEmpty(this.block.metadata.config)) {
|
|
82
82
|
this.block.metadata.config = {}
|
|
83
83
|
}
|
|
84
|
+
if (_.isEmpty(this.block.metadata.config.tab)) {
|
|
85
|
+
this.block.metadata.config.tab = 0
|
|
86
|
+
}
|
|
84
87
|
if (_.isEmpty(this.block.metadata.config.items)) {
|
|
85
88
|
const defaultObject = {
|
|
86
89
|
tabHeader: '',
|
|
@@ -48,9 +48,9 @@ export default {
|
|
|
48
48
|
}
|
|
49
49
|
</script>
|
|
50
50
|
|
|
51
|
-
<style>
|
|
51
|
+
<style lang="scss">
|
|
52
52
|
.text-viewer {
|
|
53
|
-
min-height:
|
|
53
|
+
min-height: 50px !important;
|
|
54
54
|
}
|
|
55
55
|
.text-viewer table tr td {
|
|
56
56
|
padding: 10px !important;
|
|
@@ -66,4 +66,7 @@ img {
|
|
|
66
66
|
height: 100% !important;
|
|
67
67
|
width: 100% !important;
|
|
68
68
|
}
|
|
69
|
+
.text-viewer {
|
|
70
|
+
@import './assets/tinymce/css/content';
|
|
71
|
+
}
|
|
69
72
|
</style>
|
|
@@ -1,19 +1,22 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<editor
|
|
3
|
+
:key="seed + config.skin"
|
|
3
4
|
v-model="text"
|
|
4
5
|
initial-value=""
|
|
5
6
|
:api-key="api_key"
|
|
6
7
|
:init="config"
|
|
7
8
|
tag-name="div"
|
|
8
|
-
model-events="change keydown blur focus paste input"
|
|
9
|
-
@input="change"
|
|
9
|
+
model-events="change keydown blur focus paste input submit"
|
|
10
10
|
>
|
|
11
11
|
</editor>
|
|
12
12
|
</template>
|
|
13
13
|
|
|
14
14
|
<script>
|
|
15
|
+
import _ from 'lodash'
|
|
15
16
|
import Editor from '@tinymce/tinymce-vue'
|
|
16
17
|
import { MathEditorPlugin } from '../../helpers/tinymce/plugin'
|
|
18
|
+
import contentCss from '!raw-loader!sass-loader!./assets/tinymce/css/content.scss'
|
|
19
|
+
import Crypto from '~/helpers/Crypto'
|
|
17
20
|
export default {
|
|
18
21
|
name: 'ContentEditorRichText',
|
|
19
22
|
components: {
|
|
@@ -22,25 +25,127 @@ export default {
|
|
|
22
25
|
props: {
|
|
23
26
|
value: { type: String, required: true, default: '' },
|
|
24
27
|
api_key: { type: String, required: true, default: '' },
|
|
28
|
+
height: { type: Number, required: false, default: null },
|
|
25
29
|
},
|
|
26
30
|
beforeMount() {
|
|
27
31
|
this.text = this.value
|
|
32
|
+
if (this.height !== null) {
|
|
33
|
+
this.config.height = this.height
|
|
34
|
+
}
|
|
28
35
|
},
|
|
29
36
|
data() {
|
|
30
37
|
return {
|
|
31
38
|
render: true,
|
|
32
39
|
text: '',
|
|
33
|
-
|
|
40
|
+
seed: Crypto.id(),
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
watch: {
|
|
44
|
+
text: function (newVal) {
|
|
45
|
+
this.$emit('input', this.text)
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
config() {
|
|
50
|
+
return {
|
|
34
51
|
height: 500,
|
|
35
|
-
|
|
52
|
+
visual: false,
|
|
53
|
+
menubar: 'file edit insert format view table help',
|
|
54
|
+
menu: {
|
|
55
|
+
insert: {
|
|
56
|
+
title: 'Insert',
|
|
57
|
+
items: ' link inserttable | charmap | anchor | math | insertdatetime',
|
|
58
|
+
},
|
|
59
|
+
table: {
|
|
60
|
+
title: 'Table',
|
|
61
|
+
items: 'inserttable | tableprops | deletetable',
|
|
62
|
+
},
|
|
63
|
+
},
|
|
36
64
|
plugins: [
|
|
37
|
-
'advlist autolink lists link
|
|
65
|
+
'advlist autolink lists link charmap',
|
|
38
66
|
'searchreplace visualblocks code fullscreen',
|
|
39
|
-
'
|
|
40
|
-
'paste code
|
|
67
|
+
'anchor insertdatetime ',
|
|
68
|
+
'paste code wordcount table MathEditor ',
|
|
41
69
|
],
|
|
42
70
|
toolbar:
|
|
43
|
-
'undo redo | formatselect | bold italic | alignleft aligncenter alignright | bullist numlist outdent indent |
|
|
71
|
+
'undo redo | formatselect | bold italic | alignleft aligncenter alignright | table bullist numlist outdent indent | mathButton',
|
|
72
|
+
table_advtab: false,
|
|
73
|
+
table_cell_advtab: false,
|
|
74
|
+
table_row_advtab: false,
|
|
75
|
+
table_default_attributes: {
|
|
76
|
+
class: 'default',
|
|
77
|
+
},
|
|
78
|
+
table_class_list: [
|
|
79
|
+
{ title: 'None', value: ' ' },
|
|
80
|
+
{
|
|
81
|
+
title: this.$t(
|
|
82
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.default'
|
|
83
|
+
),
|
|
84
|
+
menu: [
|
|
85
|
+
{
|
|
86
|
+
title: this.$t(
|
|
87
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.default'
|
|
88
|
+
),
|
|
89
|
+
value: 'windward-table-default',
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
title: this.$t(
|
|
93
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.default_white_line'
|
|
94
|
+
),
|
|
95
|
+
value: 'windward-table-default windward-table-default--lines',
|
|
96
|
+
},
|
|
97
|
+
],
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
title: this.$t(
|
|
101
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.excel'
|
|
102
|
+
),
|
|
103
|
+
value: 'windward-table-excel',
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
title: this.$t(
|
|
107
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.ledger'
|
|
108
|
+
),
|
|
109
|
+
menu: [
|
|
110
|
+
{
|
|
111
|
+
title: this.$t(
|
|
112
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.ledger'
|
|
113
|
+
),
|
|
114
|
+
value: 'windward-table-ledger',
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
title: this.$t(
|
|
118
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.ledger_right'
|
|
119
|
+
),
|
|
120
|
+
value: 'windward-table-ledger windward-table-ledger--right-align',
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
title: this.$t(
|
|
124
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.ledger_left'
|
|
125
|
+
),
|
|
126
|
+
value: 'windward-table-ledger windward-table-ledger--left-align',
|
|
127
|
+
},
|
|
128
|
+
],
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
title: this.$t(
|
|
132
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.project_management'
|
|
133
|
+
),
|
|
134
|
+
value: 'windward-table-pmexample',
|
|
135
|
+
},
|
|
136
|
+
{
|
|
137
|
+
title: this.$t(
|
|
138
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.t_chart'
|
|
139
|
+
),
|
|
140
|
+
value: 'windward-table-t-chart',
|
|
141
|
+
},
|
|
142
|
+
{
|
|
143
|
+
title: this.$t(
|
|
144
|
+
'windward.core.components.utils.tiny_mce_wrapper.table.subject_report'
|
|
145
|
+
),
|
|
146
|
+
value: 'windward-table-subject-report',
|
|
147
|
+
},
|
|
148
|
+
],
|
|
44
149
|
setup() {
|
|
45
150
|
// Here we can add plugin
|
|
46
151
|
window.tinymce.PluginManager.add(
|
|
@@ -80,23 +185,12 @@ export default {
|
|
|
80
185
|
'windward.core.shared.content_blocks.grouping.placeholder'
|
|
81
186
|
),
|
|
82
187
|
//required as it will be displayed as inline style in tinymce renderer
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
' padding: 0px 7px;\n' +
|
|
88
|
-
' background-color: #ffd269;\n ' +
|
|
89
|
-
' font-weight: bold;\n' +
|
|
90
|
-
' color: #1a1d1e;' +
|
|
91
|
-
'}',
|
|
188
|
+
|
|
189
|
+
skin: this.$vuetify.theme.isDark ? 'oxide-dark' : 'oxide',
|
|
190
|
+
content_css: this.$vuetify.theme.isDark ? 'dark' : 'default',
|
|
191
|
+
content_style: contentCss,
|
|
92
192
|
importcss_append: true,
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
updated() {},
|
|
97
|
-
methods: {
|
|
98
|
-
change() {
|
|
99
|
-
this.$emit('input', this.text)
|
|
193
|
+
}
|
|
100
194
|
},
|
|
101
195
|
},
|
|
102
196
|
}
|
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
|
|
2
|
+
table {
|
|
3
|
+
max-width: 100%;
|
|
4
|
+
border: 1px solid black;
|
|
5
|
+
border-spacing: 0;
|
|
6
|
+
|
|
7
|
+
th, td {
|
|
8
|
+
border: 1px solid black;
|
|
9
|
+
padding: 3px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
}
|
|
13
|
+
table {
|
|
14
|
+
&.windward-table-default {
|
|
15
|
+
|
|
16
|
+
color: black;
|
|
17
|
+
|
|
18
|
+
th {
|
|
19
|
+
color: white;
|
|
20
|
+
padding: 16px;
|
|
21
|
+
background-color: #3B4143FF;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
th, td {
|
|
25
|
+
text-align: left;
|
|
26
|
+
border: 1px solid black;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
tr:nth-child(even) {
|
|
31
|
+
td {
|
|
32
|
+
background-color: #ffffff;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
tr:nth-child(odd) {
|
|
37
|
+
td {
|
|
38
|
+
background-color: #EAEAEC;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
&--lines{
|
|
44
|
+
border: 1px solid #ffffff;
|
|
45
|
+
th, td {
|
|
46
|
+
border: 1px solid #ffffff;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&.windward-table-excel {
|
|
53
|
+
padding-bottom: 20px;
|
|
54
|
+
padding-top: 20px;
|
|
55
|
+
|
|
56
|
+
td th {
|
|
57
|
+
border: 1px solid black;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
th {
|
|
61
|
+
font-weight: bold;
|
|
62
|
+
padding: 3px;
|
|
63
|
+
text-align: center;
|
|
64
|
+
color: black;
|
|
65
|
+
background-color: #D7CCC8;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
td {
|
|
69
|
+
background-color: white;
|
|
70
|
+
color: #000;
|
|
71
|
+
padding: 5px;
|
|
72
|
+
text-align: left;
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&.windward-table-pmexample {
|
|
78
|
+
color: black;
|
|
79
|
+
|
|
80
|
+
th {
|
|
81
|
+
color: white;
|
|
82
|
+
padding: 16px;
|
|
83
|
+
background-color: #206e8c;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
th, td {
|
|
87
|
+
text-align: left;
|
|
88
|
+
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
tr:nth-child(even) {
|
|
92
|
+
th {
|
|
93
|
+
border: 1px solid black;
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
td {
|
|
98
|
+
border: 1px solid black;
|
|
99
|
+
background-color: #ffffff;
|
|
100
|
+
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
tr:nth-child(odd) {
|
|
106
|
+
th {
|
|
107
|
+
border: 1px solid black;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
td {
|
|
111
|
+
border: 1px solid black;
|
|
112
|
+
background-color: #EAEAEC;
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
/* ledger table */
|
|
119
|
+
&.windward-table-ledger {
|
|
120
|
+
&--right-align {
|
|
121
|
+
text-align: right;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&--left-align {
|
|
125
|
+
text-align: left;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
border: 3px solid black;
|
|
129
|
+
background-color: white;
|
|
130
|
+
color: black;
|
|
131
|
+
|
|
132
|
+
thead, th {
|
|
133
|
+
border: 3px solid black;
|
|
134
|
+
font-weight: bold;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
tr {
|
|
139
|
+
td {
|
|
140
|
+
border: 1px solid black;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
&.windward-table-t-chart {
|
|
146
|
+
text-align: center;
|
|
147
|
+
background-color: white;
|
|
148
|
+
color: black;
|
|
149
|
+
|
|
150
|
+
th {
|
|
151
|
+
border-bottom: 3px solid black;
|
|
152
|
+
border-right: 3px solid black;
|
|
153
|
+
font-weight: bold;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
th:last-child, td:last-child {
|
|
157
|
+
border-right: 0;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
td {
|
|
161
|
+
border: 1px solid black;
|
|
162
|
+
border-right: 3px solid black;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.windward-table-subject-report {
|
|
167
|
+
border: 1px solid black;
|
|
168
|
+
background-color: white;
|
|
169
|
+
color: black;
|
|
170
|
+
text-align: left;
|
|
171
|
+
padding: 11px;
|
|
172
|
+
|
|
173
|
+
thead, th {
|
|
174
|
+
font-weight: bold;
|
|
175
|
+
background-color: #EAEAEC;
|
|
176
|
+
padding: 3px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
td th {
|
|
180
|
+
border: 1px solid black;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|