@iankibetsh/shframework 5.9.2 → 5.9.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/dist/dist/library.mjs.css +32 -32
- package/dist/library.js +2 -12
- package/dist/library.mjs +3 -13
- package/package.json +2 -2
|
@@ -260,6 +260,38 @@
|
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
|
|
263
|
+
.sh-phone{
|
|
264
|
+
display: flex;
|
|
265
|
+
width: 100%;
|
|
266
|
+
align-items: center;
|
|
267
|
+
padding: 0 0.25rem;
|
|
268
|
+
}
|
|
269
|
+
.phone-country{
|
|
270
|
+
width: 2rem;
|
|
271
|
+
border: none;
|
|
272
|
+
align-self: center;
|
|
273
|
+
outline: none !important;
|
|
274
|
+
padding: 0.4rem;
|
|
275
|
+
border-right: 1px solid #0003;
|
|
276
|
+
}
|
|
277
|
+
.phone-number{
|
|
278
|
+
width: calc(100% - 2.2rem);
|
|
279
|
+
border: none;
|
|
280
|
+
align-self: center;
|
|
281
|
+
outline: none;
|
|
282
|
+
margin-bottom: 0;
|
|
283
|
+
padding: 0.4rem;
|
|
284
|
+
}
|
|
285
|
+
.sh-phone img{
|
|
286
|
+
padding: 0.125rem;
|
|
287
|
+
width: 2rem;
|
|
288
|
+
height: 2rem;
|
|
289
|
+
}
|
|
290
|
+
.phone-number::placeholder{
|
|
291
|
+
font-weight: 300;
|
|
292
|
+
opacity: 0.5;
|
|
293
|
+
}
|
|
294
|
+
|
|
263
295
|
.colored-toast.swal2-icon-success {
|
|
264
296
|
background-color: #a5dc86 !important;
|
|
265
297
|
}
|
|
@@ -336,38 +368,6 @@
|
|
|
336
368
|
flex-grow: 1;
|
|
337
369
|
}
|
|
338
370
|
|
|
339
|
-
.sh-phone{
|
|
340
|
-
display: flex;
|
|
341
|
-
width: 100%;
|
|
342
|
-
align-items: center;
|
|
343
|
-
padding: 0 0.25rem;
|
|
344
|
-
}
|
|
345
|
-
.phone-country{
|
|
346
|
-
width: 2rem;
|
|
347
|
-
border: none;
|
|
348
|
-
align-self: center;
|
|
349
|
-
outline: none !important;
|
|
350
|
-
padding: 0.4rem;
|
|
351
|
-
border-right: 1px solid #0003;
|
|
352
|
-
}
|
|
353
|
-
.phone-number{
|
|
354
|
-
width: calc(100% - 2.2rem);
|
|
355
|
-
border: none;
|
|
356
|
-
align-self: center;
|
|
357
|
-
outline: none;
|
|
358
|
-
margin-bottom: 0;
|
|
359
|
-
padding: 0.4rem;
|
|
360
|
-
}
|
|
361
|
-
.sh-phone img{
|
|
362
|
-
padding: 0.125rem;
|
|
363
|
-
width: 2rem;
|
|
364
|
-
height: 2rem;
|
|
365
|
-
}
|
|
366
|
-
.phone-number::placeholder{
|
|
367
|
-
font-weight: 300;
|
|
368
|
-
opacity: 0.5;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
371
|
.sh-selected-item{
|
|
372
372
|
line-height: unset!important;
|
|
373
373
|
}
|
package/dist/library.js
CHANGED
|
@@ -7065,13 +7065,6 @@ const getTabKey = (tab)=>{
|
|
|
7065
7065
|
return tab.name || tab.key
|
|
7066
7066
|
};
|
|
7067
7067
|
|
|
7068
|
-
const getTabPermission = tab=>{
|
|
7069
|
-
if (typeof tab === 'string') {
|
|
7070
|
-
return ''
|
|
7071
|
-
}
|
|
7072
|
-
return tab.permission
|
|
7073
|
-
};
|
|
7074
|
-
|
|
7075
7068
|
const getTabLabel = tab=>{
|
|
7076
7069
|
let label = '';
|
|
7077
7070
|
if (typeof tab === 'string') {
|
|
@@ -7085,7 +7078,6 @@ const getTabLabel = tab=>{
|
|
|
7085
7078
|
return (_ctx, _cache) => {
|
|
7086
7079
|
const _component_router_link = vue.resolveComponent("router-link");
|
|
7087
7080
|
const _component_router_view = vue.resolveComponent("router-view");
|
|
7088
|
-
const _directive_if_user_can = vue.resolveDirective("if-user-can");
|
|
7089
7081
|
|
|
7090
7082
|
return (allowedTabs.value.length > 0)
|
|
7091
7083
|
? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
|
|
@@ -7093,7 +7085,7 @@ return (_ctx, _cache) => {
|
|
|
7093
7085
|
class: vue.normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? vue.unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
|
|
7094
7086
|
}, [
|
|
7095
7087
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(allowedTabs.value, (tab) => {
|
|
7096
|
-
return
|
|
7088
|
+
return (vue.openBlock(), vue.createElementBlock("li", {
|
|
7097
7089
|
class: "nav-item",
|
|
7098
7090
|
key: getTabKey(tab)
|
|
7099
7091
|
}, [
|
|
@@ -7112,9 +7104,7 @@ return (_ctx, _cache) => {
|
|
|
7112
7104
|
]),
|
|
7113
7105
|
_: 2 /* DYNAMIC */
|
|
7114
7106
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
|
|
7115
|
-
]))
|
|
7116
|
-
[_directive_if_user_can, getTabPermission(tab)]
|
|
7117
|
-
])
|
|
7107
|
+
]))
|
|
7118
7108
|
}), 128 /* KEYED_FRAGMENT */))
|
|
7119
7109
|
], 2 /* CLASS */),
|
|
7120
7110
|
vue.createElementVNode("div", {
|
package/dist/library.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { DateTime } from 'luxon';
|
|
|
3
3
|
import Swal from 'sweetalert2';
|
|
4
4
|
import { Modal, Offcanvas } from 'bootstrap';
|
|
5
5
|
import NProgress from 'nprogress';
|
|
6
|
-
import { ref, computed, watch, onMounted, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, unref, vModelSelect, vModelText, normalizeClass, createBlock, resolveDynamicComponent, resolveComponent, mergeModels, useModel, inject, useTemplateRef, mergeProps, vShow, renderSlot, normalizeStyle, Teleport, createVNode, withCtx, useSlots, onBeforeUnmount, reactive, vModelCheckbox, withModifiers,
|
|
6
|
+
import { ref, computed, watch, onMounted, openBlock, createElementBlock, createElementVNode, createTextVNode, toDisplayString, createCommentVNode, withDirectives, Fragment, renderList, unref, vModelSelect, vModelText, normalizeClass, createBlock, resolveDynamicComponent, resolveComponent, mergeModels, useModel, inject, useTemplateRef, mergeProps, vShow, renderSlot, normalizeStyle, Teleport, createVNode, withCtx, useSlots, onBeforeUnmount, reactive, vModelCheckbox, withModifiers, shallowRef, markRaw, isRef } from 'vue';
|
|
7
7
|
import _ from 'lodash';
|
|
8
8
|
import { useRouter, useRoute } from 'vue-router';
|
|
9
9
|
import { defineStore, storeToRefs } from 'pinia';
|
|
@@ -7054,13 +7054,6 @@ const getTabKey = (tab)=>{
|
|
|
7054
7054
|
return tab.name || tab.key
|
|
7055
7055
|
};
|
|
7056
7056
|
|
|
7057
|
-
const getTabPermission = tab=>{
|
|
7058
|
-
if (typeof tab === 'string') {
|
|
7059
|
-
return ''
|
|
7060
|
-
}
|
|
7061
|
-
return tab.permission
|
|
7062
|
-
};
|
|
7063
|
-
|
|
7064
7057
|
const getTabLabel = tab=>{
|
|
7065
7058
|
let label = '';
|
|
7066
7059
|
if (typeof tab === 'string') {
|
|
@@ -7074,7 +7067,6 @@ const getTabLabel = tab=>{
|
|
|
7074
7067
|
return (_ctx, _cache) => {
|
|
7075
7068
|
const _component_router_link = resolveComponent("router-link");
|
|
7076
7069
|
const _component_router_view = resolveComponent("router-view");
|
|
7077
|
-
const _directive_if_user_can = resolveDirective("if-user-can");
|
|
7078
7070
|
|
|
7079
7071
|
return (allowedTabs.value.length > 0)
|
|
7080
7072
|
? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
@@ -7082,7 +7074,7 @@ return (_ctx, _cache) => {
|
|
|
7082
7074
|
class: normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
|
|
7083
7075
|
}, [
|
|
7084
7076
|
(openBlock(true), createElementBlock(Fragment, null, renderList(allowedTabs.value, (tab) => {
|
|
7085
|
-
return
|
|
7077
|
+
return (openBlock(), createElementBlock("li", {
|
|
7086
7078
|
class: "nav-item",
|
|
7087
7079
|
key: getTabKey(tab)
|
|
7088
7080
|
}, [
|
|
@@ -7101,9 +7093,7 @@ return (_ctx, _cache) => {
|
|
|
7101
7093
|
]),
|
|
7102
7094
|
_: 2 /* DYNAMIC */
|
|
7103
7095
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
|
|
7104
|
-
]))
|
|
7105
|
-
[_directive_if_user_can, getTabPermission(tab)]
|
|
7106
|
-
])
|
|
7096
|
+
]))
|
|
7107
7097
|
}), 128 /* KEYED_FRAGMENT */))
|
|
7108
7098
|
], 2 /* CLASS */),
|
|
7109
7099
|
createElementVNode("div", {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@iankibetsh/shframework",
|
|
3
|
-
"version": "5.9.
|
|
3
|
+
"version": "5.9.3",
|
|
4
4
|
"description": "Vue library for handling laravel backend",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -59,4 +59,4 @@
|
|
|
59
59
|
"nprogress": "^0.2.0",
|
|
60
60
|
"sweetalert2": "^11"
|
|
61
61
|
}
|
|
62
|
-
}
|
|
62
|
+
}
|