vue-intergrall-plugins 0.0.1085 → 1.0.1

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.
Files changed (37) hide show
  1. package/README.md +13 -5
  2. package/dist/vue-intergrall-plugins.esm.js +10842 -1882
  3. package/dist/vue-intergrall-plugins.min.js +1 -1
  4. package/dist/vue-intergrall-plugins.ssr.js +10376 -1694
  5. package/package.json +66 -62
  6. package/src/lib-components/Buttons/IconButton.vue +27 -0
  7. package/src/lib-components/Buttons/SimpleButton.vue +140 -0
  8. package/src/lib-components/Cards/Card.vue +429 -0
  9. package/src/lib-components/Cards/CardCheck.vue +35 -0
  10. package/src/lib-components/Cards/CardFile.vue +157 -0
  11. package/src/lib-components/Chat/AudioSpeedControl.vue +60 -0
  12. package/src/lib-components/Chat/BtnDownloadAllFiles.vue +36 -0
  13. package/src/lib-components/Chat/BtnEmojis.vue +51 -45
  14. package/src/lib-components/Chat/BtnFiles.vue +408 -131
  15. package/src/lib-components/Chat/BtnScreenShare.vue +36 -0
  16. package/src/lib-components/Chat/BtnStandardMessages.vue +17 -0
  17. package/src/lib-components/Chat/ExpandTextarea.vue +5 -6
  18. package/src/lib-components/Chat/MultipleFilePreview.vue +40 -22
  19. package/src/lib-components/Chat/Picker.vue +185 -149
  20. package/src/lib-components/Chat/SingleFilePreview.vue +28 -7
  21. package/src/lib-components/Chat/StandardMessages.vue +245 -0
  22. package/src/lib-components/Chat/TextFooter.vue +791 -451
  23. package/src/lib-components/Email/EmailFile.vue +126 -0
  24. package/src/lib-components/Email/EmailItem.vue +186 -0
  25. package/src/lib-components/Loader/Loader.vue +6 -1
  26. package/src/lib-components/Messages/AnexoMensagem.vue +442 -0
  27. package/src/lib-components/Messages/CardAttachment.vue +61 -0
  28. package/src/lib-components/Messages/CardMessages.vue +666 -0
  29. package/src/lib-components/Messages/ChatMessages.vue +1082 -0
  30. package/src/lib-components/Messages/InteratividadeBotoes.vue +165 -0
  31. package/src/lib-components/Messages/InteratividadeFormulario.vue +392 -0
  32. package/src/lib-components/Messages/InteratividadePopup.vue +89 -0
  33. package/src/lib-components/Messages/LinkPreview.vue +189 -0
  34. package/src/lib-components/Scroll/ScrollContent.vue +166 -0
  35. package/src/lib-components/Templates/TemplateGenerator.vue +187 -50
  36. package/src/lib-components/Templates/TemplateMessage.vue +12 -1
  37. package/src/lib-components/Templates/TemplateSingle.vue +232 -13
package/package.json CHANGED
@@ -1,62 +1,66 @@
1
- {
2
- "name": "vue-intergrall-plugins",
3
- "version": "0.0.1085",
4
- "description": "",
5
- "main": "dist/vue-intergrall-plugins.ssr.js",
6
- "browser": "dist/vue-intergrall-plugins.esm.js",
7
- "module": "dist/vue-intergrall-plugins.esm.js",
8
- "unpkg": "dist/vue-intergrall-plugins.min.js",
9
- "files": [
10
- "dist/*",
11
- "src/**/*.vue"
12
- ],
13
- "sideEffects": false,
14
- "scripts": {
15
- "serve": "vue-cli-service serve dev/serve.js",
16
- "prebuild": "rimraf ./dist",
17
- "build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
18
- "build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
19
- "build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
20
- "build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"
21
- },
22
- "dependencies": {
23
- "@fortawesome/fontawesome-free": "^5.15.4",
24
- "@fortawesome/fontawesome-svg-core": "^1.2.36",
25
- "@fortawesome/free-solid-svg-icons": "^5.15.4",
26
- "@fortawesome/vue-fontawesome": "^2.0.2",
27
- "@popperjs/core": "^2.10.2",
28
- "core-js": "^3.18.1",
29
- "postcss": "^8.3.8",
30
- "vue-clickaway": "^2.2.2",
31
- "vue-select": "^3.13.0",
32
- "vue-toasted": "^1.1.28"
33
- },
34
- "devDependencies": {
35
- "@babel/core": "^7.15.5",
36
- "@babel/preset-env": "^7.15.6",
37
- "@rollup/plugin-alias": "^3.1.2",
38
- "@rollup/plugin-babel": "^5.3.0",
39
- "@rollup/plugin-commonjs": "^14.0.0",
40
- "@rollup/plugin-json": "^4.1.0",
41
- "@rollup/plugin-node-resolve": "^9.0.0",
42
- "@rollup/plugin-replace": "^2.4.2",
43
- "@vue/cli-plugin-babel": "^4.5.13",
44
- "@vue/cli-service": "^4.5.13",
45
- "autoprefixer": "^10.3.6",
46
- "cross-env": "^7.0.3",
47
- "cssnano": "^4.1.10",
48
- "minimist": "^1.2.5",
49
- "rimraf": "^3.0.2",
50
- "rollup": "^2.58.0",
51
- "rollup-plugin-terser": "^7.0.2",
52
- "rollup-plugin-vue": "^5.1.9",
53
- "vue": "^2.6.14",
54
- "vue-template-compiler": "^2.6.14"
55
- },
56
- "peerDependencies": {
57
- "vue": "^2.6.14"
58
- },
59
- "engines": {
60
- "node": ">=12"
61
- }
62
- }
1
+ {
2
+ "name": "vue-intergrall-plugins",
3
+ "version": "1.0.1",
4
+ "description": "",
5
+ "main": "dist/vue-intergrall-plugins.ssr.js",
6
+ "browser": "dist/vue-intergrall-plugins.esm.js",
7
+ "module": "dist/vue-intergrall-plugins.esm.js",
8
+ "unpkg": "dist/vue-intergrall-plugins.min.js",
9
+ "files": [
10
+ "dist/*",
11
+ "src/**/*.vue"
12
+ ],
13
+ "sideEffects": false,
14
+ "scripts": {
15
+ "serve": "vue-cli-service serve dev/serve.js",
16
+ "prebuild": "rimraf ./dist",
17
+ "build": "cross-env NODE_ENV=production rollup --config build/rollup.config.js",
18
+ "build:ssr": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format cjs",
19
+ "build:es": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format es",
20
+ "build:unpkg": "cross-env NODE_ENV=production rollup --config build/rollup.config.js --format iife"
21
+ },
22
+ "devDependencies": {
23
+ "@babel/core": "^7.15.5",
24
+ "@babel/preset-env": "^7.15.6",
25
+ "@rollup/plugin-alias": "^3.1.2",
26
+ "@rollup/plugin-babel": "^5.3.0",
27
+ "@rollup/plugin-commonjs": "^14.0.0",
28
+ "@rollup/plugin-json": "^4.1.0",
29
+ "@rollup/plugin-node-resolve": "^9.0.0",
30
+ "@rollup/plugin-replace": "^2.4.2",
31
+ "@vue/cli-plugin-babel": "^4.5.13",
32
+ "@vue/cli-service": "^4.5.13",
33
+ "autoprefixer": "^10.3.6",
34
+ "cross-env": "^7.0.3",
35
+ "cssnano": "^5.0.8",
36
+ "minimist": "^1.2.5",
37
+ "rimraf": "^3.0.2",
38
+ "rollup": "^2.58.0",
39
+ "rollup-plugin-terser": "^7.0.2",
40
+ "rollup-plugin-vue": "^5.1.9",
41
+ "vue": "^2.6.14",
42
+ "vue-template-compiler": "^2.6.14"
43
+ },
44
+ "peerDependencies": {
45
+ "@fortawesome/fontawesome-free": "^5.15.4",
46
+ "@fortawesome/fontawesome-svg-core": "^1.2.36",
47
+ "@fortawesome/free-solid-svg-icons": "^5.15.4",
48
+ "@fortawesome/vue-fontawesome": "^2.0.2",
49
+ "@popperjs/core": "^2.11.2",
50
+ "core-js": "^3.18.1",
51
+ "postcss": "^8.3.8",
52
+ "vue": "^2.6.14",
53
+ "vue-clickaway": "^2.2.2",
54
+ "vue-select": "^3.13.0",
55
+ "vue-tippy": "^4.12.0",
56
+ "vue-toasted": "^1.1.28",
57
+ "vue2-google-maps": "^0.10.7"
58
+ },
59
+ "engines": {
60
+ "node": ">=12"
61
+ },
62
+ "dependencies": {
63
+ "axios": "^0.26.0",
64
+ "kind-of": "^6.0.3"
65
+ }
66
+ }
@@ -0,0 +1,27 @@
1
+ <template>
2
+ <span class="simple-btn--icon" :class="{'custom' : !showFaIcon}">
3
+ <fa-icon v-if="showFaIcon" :icon="icon" />
4
+ <span v-else v-html="icon" />
5
+ </span>
6
+ </template>
7
+
8
+ <script>
9
+ export default {
10
+ props: {
11
+ icon: [String, Array],
12
+ default: ""
13
+ },
14
+ computed: {
15
+ showFaIcon() {
16
+ return Array.isArray(this.icon) && this.icon.length
17
+ }
18
+ }
19
+ }
20
+ </script>
21
+
22
+ <style>
23
+ .simple-btn--icon.custom > span {
24
+ width: 20px;
25
+ height: 20px;
26
+ }
27
+ </style>
@@ -0,0 +1,140 @@
1
+ <template>
2
+ <div class="simple-btn default-btn-style"
3
+ :style="`background-color: ${bg}; color: ${color};${aditionalStyle}`"
4
+ :class="[customClass]"
5
+ @click="$emit(emitter, params)"
6
+ >
7
+ <template v-if="faIcon.length || svgIcon">
8
+ <template v-if="!btnCustom">
9
+ <IconButton :icon="faIcon.length ? faIcon : svgIcon" />
10
+ </template>
11
+ <span class="icon-container default-btn-style" :style="`background-color: ${bg};`" v-else>
12
+ <IconButton :icon="faIcon.length ? faIcon : svgIcon" />
13
+ </span>
14
+ </template>
15
+ <span class="simple-btn--text" v-text="btnText" v-if="!activeLoader"></span>
16
+ <VueLoader v-else />
17
+ </div>
18
+ </template>
19
+
20
+ <script>
21
+ import IconButton from './IconButton'
22
+
23
+ export default {
24
+ components: { IconButton },
25
+ props: {
26
+ emitter: {
27
+ type: String,
28
+ required: true
29
+ },
30
+ params: {
31
+ type: [String, Object, Array, Number, Boolean],
32
+ required: false,
33
+ default: ''
34
+ },
35
+ bg: {
36
+ type: String,
37
+ required: true
38
+ },
39
+ color: {
40
+ type: String,
41
+ required: true
42
+ },
43
+ aditionalStyle: {
44
+ type: String,
45
+ default: ''
46
+ },
47
+ btnText: {
48
+ type: [String, Number],
49
+ default: ""
50
+ },
51
+ faIcon: {
52
+ type: Array,
53
+ default: () => { return [] }
54
+ },
55
+ svgIcon: {
56
+ type: String,
57
+ default: ""
58
+ },
59
+ customClass: {
60
+ type: String,
61
+ default: ''
62
+ },
63
+ btnCustom: {
64
+ type: Boolean,
65
+ default: false
66
+ },
67
+ activeLoader: {
68
+ type: Boolean,
69
+ default: false
70
+ }
71
+ }
72
+ }
73
+ </script>
74
+
75
+ <style>
76
+ .default-btn-style {
77
+ transition-duration: 300ms;
78
+ user-select: none;
79
+ cursor: pointer;
80
+ box-shadow: inset 0 -2px rgba(0, 0, 0, 0.2);
81
+ opacity: .9;
82
+ border-radius: 5px;
83
+ display: flex;
84
+ justify-content: center;
85
+ align-items: center;
86
+ padding: 5px;
87
+ cursor: pointer;
88
+ min-height: 28px;
89
+ }
90
+ .default-btn-style:hover{
91
+ opacity: 1;
92
+ }
93
+ .default-btn-style:active{
94
+ opacity: 1;
95
+ box-shadow: inset 0 -1px rgba(0, 0, 0, 0.2);
96
+ -webkit-transform: translateY(1px);
97
+ -moz-transform: translateY(1px);
98
+ -o-transform: translateY(1px);
99
+ -ms-transform: translateY(1px);
100
+ transform: translateY(1px);
101
+ }
102
+
103
+ .simple-btn {
104
+ position: relative;
105
+ }
106
+
107
+ .simple-btn--icon {
108
+ display: flex;
109
+ justify-content: center;
110
+ align-items: center;
111
+ margin-right: 5px;
112
+ }
113
+ .simple-btn--icon.custom {
114
+ min-width: 25px;
115
+ }
116
+
117
+ .simple-btn--text {
118
+ white-space: nowrap;
119
+ text-overflow: ellipsis;
120
+ overflow: hidden;
121
+ }
122
+
123
+ .icon-container {
124
+ position: absolute;
125
+ left: -15px;
126
+ padding: 5px;
127
+ width: 40px;
128
+ height: 40px;
129
+ display: flex;
130
+ justify-content: center;
131
+ align-items: center;
132
+ border-radius: 50%;
133
+ }
134
+ .icon-container svg {
135
+ color: rgba(255, 255, 255, .5);
136
+ width: 23px;
137
+ height: 23px;
138
+ }
139
+
140
+ </style>