vue-intergrall-plugins 1.1.53 → 1.1.54

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.
@@ -3062,8 +3062,7 @@ var __vue_component__$J = /*#__PURE__*/normalizeComponent({
3062
3062
  render: __vue_render__$A,
3063
3063
  staticRenderFns: __vue_staticRenderFns__$A
3064
3064
  }, __vue_inject_styles__$A, __vue_script__$A, __vue_scope_id__$A, __vue_is_functional_template__$A, __vue_module_identifier__$A, false, undefined, createInjectorSSR, undefined);
3065
- var SkeletonPicker = __vue_component__$J;//
3066
- var script$z = {
3065
+ var SkeletonPicker = __vue_component__$J;var script$z = {
3067
3066
  components: {
3068
3067
  SkeletonPicker: SkeletonPicker
3069
3068
  },
@@ -3090,6 +3089,10 @@ var script$z = {
3090
3089
  if (!recent.emojis && !people.emojis) throw new Error("Nenhum emoji encontrado nas categorias 'recent' e 'people'");
3091
3090
  var sliceLimit = 7;
3092
3091
  if (!recent.emojis.length) return people.emojis.slice(0, sliceLimit);
3092
+ if (recent.emojis.length < sliceLimit) {
3093
+ var missing = sliceLimit - recent.emojis.length;
3094
+ return [].concat(_toConsumableArray(recent.emojis), _toConsumableArray(people.emojis.slice(0, missing)));
3095
+ }
3093
3096
  return recent.emojis.slice(0, sliceLimit);
3094
3097
  } catch (e) {
3095
3098
  console.error("Erro ao obter os emojis recentes", e);
@@ -3339,8 +3342,8 @@ var __vue_staticRenderFns__$z = [];
3339
3342
  /* style */
3340
3343
  var __vue_inject_styles__$z = function __vue_inject_styles__(inject) {
3341
3344
  if (!inject) return;
3342
- inject("data-v-6bc716fb_0", {
3343
- source: ".box-shadow{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.sm-emoji-picker{width:306px;height:250px;z-index:2;border:1px solid #ccc;border-radius:5px;background-color:#fff;display:flex;flex-direction:column}.sm-emoji-picker.small{height:40px!important}.sm-emoji-picker.small .sm-emoji-scroll{height:100%;max-height:100%}.sm-emoji-picker.small .sm-emoji-scroll .sm-emoji-group{justify-content:center;align-items:center}.add-more{background:#f0f0f0;border:1px solid #ccc;border-radius:50%;width:26px;height:26px;display:flex;justify-content:center;align-items:center;font-size:16px;font-weight:700}.sm-emoji-header{width:100%;display:flex;align-items:center;justify-content:space-between;margin:10px 0;border-bottom:1px solid #ccc}.sm-emoji-link{padding:0 5px 5px 5px;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .2s;border-bottom:2px solid transparent}.sm-emoji-link a{margin:0;padding:0;fill:#999}.sm-emoji-link.active a>svg,.sm-emoji-link:hover a>svg{opacity:1;fill:#666}.sm-emoji-link.active a>svg[stroke-linecap],.sm-emoji-link:hover a>svg[stroke-linecap]{opacity:1;fill:transparent;stroke:#666}.sm-emoji-link.active{border-bottom:2px solid #666}.sm-emoji-scroll{width:100%;height:calc(100% - 52px);max-height:calc(100% - 52px);scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:8px;position:relative}.sm-emoji-scroll::-webkit-scrollbar{width:8px}.sm-emoji-scroll::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.sm-emoji-scroll::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#666}.sm-emoji-scroll::-webkit-scrollbar-thumb:hover{background-color:#555}.sm-emoji-search{width:100%;display:flex;align-items:center;justify-content:center;position:sticky;top:0;z-index:1;background:#fff;padding-bottom:10px}.sm-emoji-search>input{width:90%;outline:0;border:1px solid #ccc;border-radius:2.5px;padding:5px 10px;transition:border .2s}.sm-emoji-search>input:active,.sm-emoji-search>input:focus,.sm-emoji-search>input:hover{outline:0;border:1px solid #999}.sm-emoji-search.sticky{position:fixed;width:310px;background-color:#fff}.sm-emoji-selection{width:100%;margin-bottom:10px}.sm-emoji-title{width:100%;display:flex;justify-content:flex-start;align-items:center;background-color:#f7f7f7;padding:5px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sm-emoji-title svg{margin:0 5px}.sm-emoji-group{width:100%;display:flex;flex-wrap:wrap;font-size:22px}.sm-emoji-item{cursor:pointer;opacity:.8;transition:opacity .2s;margin:3.5px}.sm-emoji-item:hover{opacity:1}",
3345
+ inject("data-v-3eade472_0", {
3346
+ source: ".box-shadow{-webkit-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);-moz-box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12);box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.sm-emoji-picker{width:306px;height:250px;z-index:2;border:1px solid #ccc;border-radius:5px;background-color:#fff;display:flex;flex-direction:column}.sm-emoji-picker.small{height:40px!important;overflow:hidden!important}.sm-emoji-picker.small .sm-emoji-scroll{height:100%;max-height:100%}.sm-emoji-picker.small .sm-emoji-scroll .sm-emoji-group{justify-content:center;align-items:center}.add-more{background:#f0f0f0;border:1px solid #ccc;border-radius:50%;width:26px;height:26px;display:flex;justify-content:center;align-items:center;font-size:16px;font-weight:700}.sm-emoji-header{width:100%;display:flex;align-items:center;justify-content:space-between;margin:10px 0;border-bottom:1px solid #ccc}.sm-emoji-link{padding:0 5px 5px 5px;display:flex;justify-content:center;align-items:center;cursor:pointer;opacity:.9;transition:all .2s;border-bottom:2px solid transparent}.sm-emoji-link a{margin:0;padding:0;fill:#999}.sm-emoji-link.active a>svg,.sm-emoji-link:hover a>svg{opacity:1;fill:#666}.sm-emoji-link.active a>svg[stroke-linecap],.sm-emoji-link:hover a>svg[stroke-linecap]{opacity:1;fill:transparent;stroke:#666}.sm-emoji-link.active{border-bottom:2px solid #666}.sm-emoji-scroll{width:100%;height:calc(100% - 52px);max-height:calc(100% - 52px);scroll-behavior:smooth;overflow-y:auto;overflow-x:hidden;scrollbar-color:#888 rgba(0,0,0,.2);scrollbar-width:8px;position:relative}.sm-emoji-scroll::-webkit-scrollbar{width:8px}.sm-emoji-scroll::-webkit-scrollbar-track{background-color:rgba(0,0,0,.2)}.sm-emoji-scroll::-webkit-scrollbar-thumb{transition-duration:.5s;background-color:#666}.sm-emoji-scroll::-webkit-scrollbar-thumb:hover{background-color:#555}.sm-emoji-search{width:100%;display:flex;align-items:center;justify-content:center;position:sticky;top:0;z-index:1;background:#fff;padding-bottom:10px}.sm-emoji-search>input{width:90%;outline:0;border:1px solid #ccc;border-radius:2.5px;padding:5px 10px;transition:border .2s}.sm-emoji-search>input:active,.sm-emoji-search>input:focus,.sm-emoji-search>input:hover{outline:0;border:1px solid #999}.sm-emoji-search.sticky{position:fixed;width:310px;background-color:#fff}.sm-emoji-selection{width:100%;margin-bottom:10px}.sm-emoji-title{width:100%;display:flex;justify-content:flex-start;align-items:center;background-color:#f7f7f7;padding:5px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.sm-emoji-title svg{margin:0 5px}.sm-emoji-group{width:100%;display:flex;flex-wrap:wrap;font-size:22px}.sm-emoji-item{cursor:pointer;opacity:.8;transition:opacity .2s;margin:3.5px}.sm-emoji-item:hover{opacity:1}",
3344
3347
  map: undefined,
3345
3348
  media: undefined
3346
3349
  });
@@ -3348,7 +3351,7 @@ var __vue_inject_styles__$z = function __vue_inject_styles__(inject) {
3348
3351
  /* scoped */
3349
3352
  var __vue_scope_id__$z = undefined;
3350
3353
  /* module identifier */
3351
- var __vue_module_identifier__$z = "data-v-6bc716fb";
3354
+ var __vue_module_identifier__$z = "data-v-3eade472";
3352
3355
  /* functional template */
3353
3356
  var __vue_is_functional_template__$z = false;
3354
3357
  /* style inject shadow dom */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vue-intergrall-plugins",
3
- "version": "1.1.53",
3
+ "version": "1.1.54",
4
4
  "description": "",
5
5
  "main": "dist/vue-intergrall-plugins.ssr.js",
6
6
  "browser": "dist/vue-intergrall-plugins.esm.js",
@@ -117,6 +117,11 @@ export default {
117
117
 
118
118
  if(!recent.emojis.length) return people.emojis.slice(0, sliceLimit);
119
119
 
120
+ if(recent.emojis.length < sliceLimit) {
121
+ const missing = sliceLimit - recent.emojis.length;
122
+ return [...recent.emojis, ...people.emojis.slice(0, missing)];
123
+ }
124
+
120
125
  return recent.emojis.slice(0, sliceLimit);
121
126
  } catch (e) {
122
127
  console.error("Erro ao obter os emojis recentes", e);
@@ -350,6 +355,7 @@ export default {
350
355
 
351
356
  .sm-emoji-picker.small {
352
357
  height: 40px!important;
358
+ overflow: hidden!important;
353
359
  }
354
360
 
355
361
  .sm-emoji-picker.small .sm-emoji-scroll {