@nixweb/nixloc-ui 0.0.98 → 0.0.101
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/ckeditor5/LICENSE.md +49 -0
- package/ckeditor5/README.md +68 -0
- package/ckeditor5/build/ckeditor.js +6 -0
- package/ckeditor5/build/ckeditor.js.map +1 -0
- package/ckeditor5/build/translations/af.js +1 -0
- package/ckeditor5/build/translations/ar.js +1 -0
- package/ckeditor5/build/translations/ast.js +1 -0
- package/ckeditor5/build/translations/az.js +1 -0
- package/ckeditor5/build/translations/bg.js +1 -0
- package/ckeditor5/build/translations/bs.js +1 -0
- package/ckeditor5/build/translations/ca.js +1 -0
- package/ckeditor5/build/translations/cs.js +1 -0
- package/ckeditor5/build/translations/da.js +1 -0
- package/ckeditor5/build/translations/de-ch.js +1 -0
- package/ckeditor5/build/translations/de.js +1 -0
- package/ckeditor5/build/translations/el.js +1 -0
- package/ckeditor5/build/translations/en-au.js +1 -0
- package/ckeditor5/build/translations/en-gb.js +1 -0
- package/ckeditor5/build/translations/en.js +1 -0
- package/ckeditor5/build/translations/eo.js +1 -0
- package/ckeditor5/build/translations/es.js +1 -0
- package/ckeditor5/build/translations/et.js +1 -0
- package/ckeditor5/build/translations/eu.js +1 -0
- package/ckeditor5/build/translations/fa.js +1 -0
- package/ckeditor5/build/translations/fi.js +1 -0
- package/ckeditor5/build/translations/fr.js +1 -0
- package/ckeditor5/build/translations/gl.js +1 -0
- package/ckeditor5/build/translations/gu.js +1 -0
- package/ckeditor5/build/translations/he.js +1 -0
- package/ckeditor5/build/translations/hi.js +1 -0
- package/ckeditor5/build/translations/hr.js +1 -0
- package/ckeditor5/build/translations/hu.js +1 -0
- package/ckeditor5/build/translations/id.js +1 -0
- package/ckeditor5/build/translations/it.js +1 -0
- package/ckeditor5/build/translations/ja.js +1 -0
- package/ckeditor5/build/translations/kk.js +1 -0
- package/ckeditor5/build/translations/km.js +1 -0
- package/ckeditor5/build/translations/kn.js +1 -0
- package/ckeditor5/build/translations/ko.js +1 -0
- package/ckeditor5/build/translations/ku.js +1 -0
- package/ckeditor5/build/translations/lt.js +1 -0
- package/ckeditor5/build/translations/lv.js +1 -0
- package/ckeditor5/build/translations/nb.js +1 -0
- package/ckeditor5/build/translations/ne.js +1 -0
- package/ckeditor5/build/translations/nl.js +1 -0
- package/ckeditor5/build/translations/no.js +1 -0
- package/ckeditor5/build/translations/oc.js +1 -0
- package/ckeditor5/build/translations/pl.js +1 -0
- package/ckeditor5/build/translations/pt.js +1 -0
- package/ckeditor5/build/translations/ro.js +1 -0
- package/ckeditor5/build/translations/ru.js +1 -0
- package/ckeditor5/build/translations/si.js +1 -0
- package/ckeditor5/build/translations/sk.js +1 -0
- package/ckeditor5/build/translations/sl.js +1 -0
- package/ckeditor5/build/translations/sq.js +1 -0
- package/ckeditor5/build/translations/sr-latn.js +1 -0
- package/ckeditor5/build/translations/sr.js +1 -0
- package/ckeditor5/build/translations/sv.js +1 -0
- package/ckeditor5/build/translations/th.js +1 -0
- package/ckeditor5/build/translations/tk.js +1 -0
- package/ckeditor5/build/translations/tr.js +1 -0
- package/ckeditor5/build/translations/tt.js +1 -0
- package/ckeditor5/build/translations/ug.js +1 -0
- package/ckeditor5/build/translations/uk.js +1 -0
- package/ckeditor5/build/translations/uz.js +1 -0
- package/ckeditor5/build/translations/vi.js +1 -0
- package/ckeditor5/build/translations/zh-cn.js +1 -0
- package/ckeditor5/build/translations/zh.js +1 -0
- package/ckeditor5/package.json +41 -0
- package/ckeditor5/sample/index.html +133 -0
- package/ckeditor5/sample/styles.css +500 -0
- package/ckeditor5/src/ckeditor.js +122 -0
- package/ckeditor5/webpack.config.js +96 -0
- package/package.json +7 -3
- package/src/component/forms/TextoArea.vue +0 -1
- package/src/component/shared/DocumentoEditor.vue +134 -0
- package/src/component/shared/DocumentoPreview.vue +25 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nixweb/nixloc-ui",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.101",
|
|
4
4
|
"description": "Componentes UI",
|
|
5
5
|
"author": "Fábio Ávila <fabio@nixweb.com.br>",
|
|
6
6
|
"private": false,
|
|
@@ -10,10 +10,13 @@
|
|
|
10
10
|
"lint": "vue-cli-service lint"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
+
"@ckeditor/ckeditor5-vue2": "^2.0.0",
|
|
13
14
|
"@babel/polyfill": "^7.2.5",
|
|
14
15
|
"bootstrap-vue": "^2.0.0-rc.11",
|
|
16
|
+
"ckeditor5-custom-build": "file:ckeditor5",
|
|
15
17
|
"sass-loader": "^12.4.0",
|
|
16
18
|
"vodal": "^2.4.0",
|
|
19
|
+
"v-runtime-template": "^1.10.0",
|
|
17
20
|
"vue-color": "^2.7.0",
|
|
18
21
|
"vue-html2pdf": "^1.8.0",
|
|
19
22
|
"vue-json-excel": "^0.3.0",
|
|
@@ -39,7 +42,8 @@
|
|
|
39
42
|
"eslint": "^6.7.2",
|
|
40
43
|
"eslint-plugin-vue": "^6.2.2",
|
|
41
44
|
"script-loader": "^0.7.2",
|
|
42
|
-
"vue-template-compiler": "^2.6.11"
|
|
45
|
+
"vue-template-compiler": "^2.6.11",
|
|
46
|
+
"webpack": "^4.46.0"
|
|
43
47
|
},
|
|
44
48
|
"eslintConfig": {
|
|
45
49
|
"root": true,
|
|
@@ -69,4 +73,4 @@
|
|
|
69
73
|
"type": "git",
|
|
70
74
|
"url": "git+https://github.com/nixweb-sistemas/nixloc-ui.git"
|
|
71
75
|
}
|
|
72
|
-
}
|
|
76
|
+
}
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<div class="form-group row">
|
|
4
|
+
<div>
|
|
5
|
+
<div class="document-editor__toolbar"></div>
|
|
6
|
+
<div class="document-editor__editable-container">
|
|
7
|
+
<ckeditor :editor="editor" v-model="template" @ready="onReady"></ckeditor>
|
|
8
|
+
</div>
|
|
9
|
+
</div>
|
|
10
|
+
</div>
|
|
11
|
+
<br />
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
import CKEditor from "ckeditor5-custom-build/build/ckeditor";
|
|
17
|
+
|
|
18
|
+
export default {
|
|
19
|
+
name: "HtmlEditor",
|
|
20
|
+
components: {
|
|
21
|
+
CKEditor,
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
value: String,
|
|
25
|
+
},
|
|
26
|
+
data() {
|
|
27
|
+
return {
|
|
28
|
+
editor: CKEditor,
|
|
29
|
+
template: "",
|
|
30
|
+
};
|
|
31
|
+
},
|
|
32
|
+
methods: {
|
|
33
|
+
onReady(editor) {
|
|
34
|
+
const toolbarContainer = document.querySelector(".document-editor__toolbar");
|
|
35
|
+
toolbarContainer.appendChild(editor.ui.view.toolbar.element);
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
watch: {
|
|
39
|
+
template() {
|
|
40
|
+
this.$emit("input", this.template);
|
|
41
|
+
},
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
</script>
|
|
45
|
+
|
|
46
|
+
<style scoped>
|
|
47
|
+
.document-editor {
|
|
48
|
+
border-radius: var(--ck-border-radius);
|
|
49
|
+
max-height: 700px;
|
|
50
|
+
display: flex;
|
|
51
|
+
flex-flow: column nowrap;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
.document-editor__toolbar {
|
|
55
|
+
z-index: 1 !important;
|
|
56
|
+
min-width: 1100px;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
.document-editor__toolbar .ck-toolbar {
|
|
60
|
+
border-radius: 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
.document-editor__editable-container {
|
|
64
|
+
padding: 10px;
|
|
65
|
+
border: 1px solid #e4e6ec;
|
|
66
|
+
background: var(--ck-color-base-foreground);
|
|
67
|
+
overflow-y: scroll;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
.document-editor__editable-container .ck-editor__editable {
|
|
71
|
+
width: 20.8cm;
|
|
72
|
+
min-height: 21cm;
|
|
73
|
+
padding: 20px;
|
|
74
|
+
border: 1px hsl(0, 0%, 82.7%) solid;
|
|
75
|
+
border-radius: var(--ck-border-radius);
|
|
76
|
+
background: white;
|
|
77
|
+
box-shadow: 0 0 5px hsla(0, 0%, 0%, 0.1);
|
|
78
|
+
margin: 0 auto;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.document-editor .ck-content,
|
|
82
|
+
.document-editor .ck-heading-dropdown .ck-list .ck-button__label {
|
|
83
|
+
font: 16px/1.6 "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/* Adjust the headings dropdown to host some larger heading styles. */
|
|
87
|
+
.document-editor .ck-heading-dropdown .ck-list .ck-button__label {
|
|
88
|
+
line-height: calc(1.7 * var(--ck-line-height-base) * var(--ck-font-size-base));
|
|
89
|
+
min-width: 6em;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Scale down all heading previews because they are way too big to be presented in the UI.
|
|
93
|
+
Preserve the relative scale, though. */
|
|
94
|
+
.document-editor
|
|
95
|
+
.ck-heading-dropdown
|
|
96
|
+
.ck-list
|
|
97
|
+
.ck-button:not(.ck-heading_paragraph)
|
|
98
|
+
.ck-button__label {
|
|
99
|
+
transform: scale(0.8);
|
|
100
|
+
transform-origin: left;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
/* Set the styles for "Heading 1". */
|
|
104
|
+
.document-editor .ck-content h2,
|
|
105
|
+
.document-editor .ck-heading-dropdown .ck-heading_heading1 .ck-button__label {
|
|
106
|
+
font-size: 2.18em;
|
|
107
|
+
font-weight: normal;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.document-editor .ck-content h2 {
|
|
111
|
+
line-height: 1.37em;
|
|
112
|
+
padding-top: 0.342em;
|
|
113
|
+
margin-bottom: 0.142em;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
/* Set the styles for "Heading 2". */
|
|
117
|
+
.document-editor .ck-content h3,
|
|
118
|
+
.document-editor .ck-heading-dropdown .ck-heading_heading2 .ck-button__label {
|
|
119
|
+
font-size: 1.75em;
|
|
120
|
+
font-weight: normal;
|
|
121
|
+
color: hsl(203, 100%, 50%);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
.document-editor .ck-heading-dropdown .ck-heading_heading2.ck-on .ck-button__label {
|
|
125
|
+
color: var(--ck-color-list-button-on-text);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
/* Set the styles for "Heading 2". */
|
|
129
|
+
.document-editor .ck-content h3 {
|
|
130
|
+
line-height: 1.86em;
|
|
131
|
+
padding-top: 0.171em;
|
|
132
|
+
margin-bottom: 0.357em;
|
|
133
|
+
}
|
|
134
|
+
</style>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<v-runtime-template :template="template" />
|
|
4
|
+
</div>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script>
|
|
8
|
+
import VRuntimeTemplate from "v-runtime-template";
|
|
9
|
+
|
|
10
|
+
export default {
|
|
11
|
+
name: "HtmlPreview",
|
|
12
|
+
components: {
|
|
13
|
+
VRuntimeTemplate,
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
template: String,
|
|
17
|
+
},
|
|
18
|
+
data() {
|
|
19
|
+
return {
|
|
20
|
+
nome: "Fábio",
|
|
21
|
+
sobrenome: "Gomes de Ávila",
|
|
22
|
+
};
|
|
23
|
+
},
|
|
24
|
+
};
|
|
25
|
+
</script>
|