@iankibetsh/shframework 5.4.9 → 5.5.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.
package/dist/library.js CHANGED
@@ -6163,55 +6163,52 @@ return (_ctx, _cache) => {
6163
6163
  const _component_router_view = vue.resolveComponent("router-view");
6164
6164
  const _directive_if_user_can = vue.resolveDirective("if-user-can");
6165
6165
 
6166
- return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
6167
- vue.createTextVNode(vue.toDisplayString(currentTab.value) + " ", 1 /* TEXT */),
6168
- (allowedTabs.value.length > 0)
6169
- ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
6170
- vue.createElementVNode("ul", {
6171
- class: vue.normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? vue.unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
6172
- }, [
6173
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(allowedTabs.value, (tab) => {
6174
- return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
6175
- class: "nav-item",
6176
- key: getTabKey(tab)
6177
- }, [
6178
- vue.createVNode(_component_router_link, {
6179
- onClick: $event => (setTab(tab)),
6180
- "active-class": 'active',
6181
- class: vue.normalizeClass(["nav-link text-capitalize", 'sh_tab_' + getTabKey(tab)]),
6182
- to: __props.baseUrl+'/tab/'+getTabKey(tab),
6183
- role: "tab"
6184
- }, {
6185
- default: vue.withCtx(() => [
6186
- vue.createTextVNode(vue.toDisplayString(getTabLabel(tab)) + " ", 1 /* TEXT */),
6187
- (realTabCounts.value[getTabKey(tab)] !== undefined && realTabCounts.value[getTabKey(tab)] > 0)
6188
- ? (vue.openBlock(), vue.createElementBlock("sup", _hoisted_1$a, " (" + vue.toDisplayString(realTabCounts.value[getTabKey(tab)]) + ") ", 1 /* TEXT */))
6189
- : vue.createCommentVNode("v-if", true)
6190
- ]),
6191
- _: 2 /* DYNAMIC */
6192
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
6193
- ])), [
6194
- [_directive_if_user_can, getTabPermission(tab)]
6195
- ])
6196
- }), 128 /* KEYED_FRAGMENT */))
6197
- ], 2 /* CLASS */),
6198
- vue.createElementVNode("div", {
6199
- class: vue.normalizeClass(["tab-content", __props.classTwo])
6200
- }, [
6201
- (vue.openBlock(), vue.createBlock(_component_router_view, vue.mergeProps(_ctx.$attrs, {
6202
- currentTab: currentTab.value,
6203
- key: path.value,
6204
- sharedData: __props.sharedData,
6205
- tabCounts: __props.tabCounts
6206
- }), null, 16 /* FULL_PROPS */, ["currentTab", "sharedData", "tabCounts"]))
6207
- ], 2 /* CLASS */)
6208
- ], 64 /* STABLE_FRAGMENT */))
6209
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, [
6210
- (__props.tabs.length)
6211
- ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, " 403 Not Allowed "))
6212
- : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$5, " No tabs found "))
6213
- ]))
6214
- ], 64 /* STABLE_FRAGMENT */))
6166
+ return (allowedTabs.value.length > 0)
6167
+ ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
6168
+ vue.createElementVNode("ul", {
6169
+ class: vue.normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? vue.unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
6170
+ }, [
6171
+ (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(allowedTabs.value, (tab) => {
6172
+ return vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
6173
+ class: "nav-item",
6174
+ key: getTabKey(tab)
6175
+ }, [
6176
+ vue.createVNode(_component_router_link, {
6177
+ onClick: $event => (setTab(tab)),
6178
+ "active-class": 'active',
6179
+ class: vue.normalizeClass(["nav-link text-capitalize", 'sh_tab_' + getTabKey(tab)]),
6180
+ to: __props.baseUrl+'/tab/'+getTabKey(tab),
6181
+ role: "tab"
6182
+ }, {
6183
+ default: vue.withCtx(() => [
6184
+ vue.createTextVNode(vue.toDisplayString(getTabLabel(tab)) + " ", 1 /* TEXT */),
6185
+ (realTabCounts.value[getTabKey(tab)] !== undefined && realTabCounts.value[getTabKey(tab)] > 0)
6186
+ ? (vue.openBlock(), vue.createElementBlock("sup", _hoisted_1$a, vue.toDisplayString(realTabCounts.value[getTabKey(tab)]), 1 /* TEXT */))
6187
+ : vue.createCommentVNode("v-if", true)
6188
+ ]),
6189
+ _: 2 /* DYNAMIC */
6190
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
6191
+ ])), [
6192
+ [_directive_if_user_can, getTabPermission(tab)]
6193
+ ])
6194
+ }), 128 /* KEYED_FRAGMENT */))
6195
+ ], 2 /* CLASS */),
6196
+ vue.createElementVNode("div", {
6197
+ class: vue.normalizeClass(["tab-content", __props.classTwo])
6198
+ }, [
6199
+ (vue.openBlock(), vue.createBlock(_component_router_view, vue.mergeProps(_ctx.$attrs, {
6200
+ currentTab: currentTab.value,
6201
+ key: path.value,
6202
+ sharedData: __props.sharedData,
6203
+ tabCounts: __props.tabCounts
6204
+ }), null, 16 /* FULL_PROPS */, ["currentTab", "sharedData", "tabCounts"]))
6205
+ ], 2 /* CLASS */)
6206
+ ], 64 /* STABLE_FRAGMENT */))
6207
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_2$7, [
6208
+ (__props.tabs.length)
6209
+ ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$5, " 403 Not Allowed "))
6210
+ : (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$5, " No tabs found "))
6211
+ ]))
6215
6212
  }
6216
6213
  }
6217
6214
 
package/dist/library.mjs CHANGED
@@ -6151,55 +6151,52 @@ return (_ctx, _cache) => {
6151
6151
  const _component_router_view = resolveComponent("router-view");
6152
6152
  const _directive_if_user_can = resolveDirective("if-user-can");
6153
6153
 
6154
- return (openBlock(), createElementBlock(Fragment, null, [
6155
- createTextVNode(toDisplayString(currentTab.value) + " ", 1 /* TEXT */),
6156
- (allowedTabs.value.length > 0)
6157
- ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
6158
- createElementVNode("ul", {
6159
- class: normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
6160
- }, [
6161
- (openBlock(true), createElementBlock(Fragment, null, renderList(allowedTabs.value, (tab) => {
6162
- return withDirectives((openBlock(), createElementBlock("li", {
6163
- class: "nav-item",
6164
- key: getTabKey(tab)
6165
- }, [
6166
- createVNode(_component_router_link, {
6167
- onClick: $event => (setTab(tab)),
6168
- "active-class": 'active',
6169
- class: normalizeClass(["nav-link text-capitalize", 'sh_tab_' + getTabKey(tab)]),
6170
- to: __props.baseUrl+'/tab/'+getTabKey(tab),
6171
- role: "tab"
6172
- }, {
6173
- default: withCtx(() => [
6174
- createTextVNode(toDisplayString(getTabLabel(tab)) + " ", 1 /* TEXT */),
6175
- (realTabCounts.value[getTabKey(tab)] !== undefined && realTabCounts.value[getTabKey(tab)] > 0)
6176
- ? (openBlock(), createElementBlock("sup", _hoisted_1$a, " (" + toDisplayString(realTabCounts.value[getTabKey(tab)]) + ") ", 1 /* TEXT */))
6177
- : createCommentVNode("v-if", true)
6178
- ]),
6179
- _: 2 /* DYNAMIC */
6180
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
6181
- ])), [
6182
- [_directive_if_user_can, getTabPermission(tab)]
6183
- ])
6184
- }), 128 /* KEYED_FRAGMENT */))
6185
- ], 2 /* CLASS */),
6186
- createElementVNode("div", {
6187
- class: normalizeClass(["tab-content", __props.classTwo])
6188
- }, [
6189
- (openBlock(), createBlock(_component_router_view, mergeProps(_ctx.$attrs, {
6190
- currentTab: currentTab.value,
6191
- key: path.value,
6192
- sharedData: __props.sharedData,
6193
- tabCounts: __props.tabCounts
6194
- }), null, 16 /* FULL_PROPS */, ["currentTab", "sharedData", "tabCounts"]))
6195
- ], 2 /* CLASS */)
6196
- ], 64 /* STABLE_FRAGMENT */))
6197
- : (openBlock(), createElementBlock("div", _hoisted_2$7, [
6198
- (__props.tabs.length)
6199
- ? (openBlock(), createElementBlock("div", _hoisted_3$5, " 403 Not Allowed "))
6200
- : (openBlock(), createElementBlock("div", _hoisted_4$5, " No tabs found "))
6201
- ]))
6202
- ], 64 /* STABLE_FRAGMENT */))
6154
+ return (allowedTabs.value.length > 0)
6155
+ ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
6156
+ createElementVNode("ul", {
6157
+ class: normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
6158
+ }, [
6159
+ (openBlock(true), createElementBlock(Fragment, null, renderList(allowedTabs.value, (tab) => {
6160
+ return withDirectives((openBlock(), createElementBlock("li", {
6161
+ class: "nav-item",
6162
+ key: getTabKey(tab)
6163
+ }, [
6164
+ createVNode(_component_router_link, {
6165
+ onClick: $event => (setTab(tab)),
6166
+ "active-class": 'active',
6167
+ class: normalizeClass(["nav-link text-capitalize", 'sh_tab_' + getTabKey(tab)]),
6168
+ to: __props.baseUrl+'/tab/'+getTabKey(tab),
6169
+ role: "tab"
6170
+ }, {
6171
+ default: withCtx(() => [
6172
+ createTextVNode(toDisplayString(getTabLabel(tab)) + " ", 1 /* TEXT */),
6173
+ (realTabCounts.value[getTabKey(tab)] !== undefined && realTabCounts.value[getTabKey(tab)] > 0)
6174
+ ? (openBlock(), createElementBlock("sup", _hoisted_1$a, toDisplayString(realTabCounts.value[getTabKey(tab)]), 1 /* TEXT */))
6175
+ : createCommentVNode("v-if", true)
6176
+ ]),
6177
+ _: 2 /* DYNAMIC */
6178
+ }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "to", "class"])
6179
+ ])), [
6180
+ [_directive_if_user_can, getTabPermission(tab)]
6181
+ ])
6182
+ }), 128 /* KEYED_FRAGMENT */))
6183
+ ], 2 /* CLASS */),
6184
+ createElementVNode("div", {
6185
+ class: normalizeClass(["tab-content", __props.classTwo])
6186
+ }, [
6187
+ (openBlock(), createBlock(_component_router_view, mergeProps(_ctx.$attrs, {
6188
+ currentTab: currentTab.value,
6189
+ key: path.value,
6190
+ sharedData: __props.sharedData,
6191
+ tabCounts: __props.tabCounts
6192
+ }), null, 16 /* FULL_PROPS */, ["currentTab", "sharedData", "tabCounts"]))
6193
+ ], 2 /* CLASS */)
6194
+ ], 64 /* STABLE_FRAGMENT */))
6195
+ : (openBlock(), createElementBlock("div", _hoisted_2$7, [
6196
+ (__props.tabs.length)
6197
+ ? (openBlock(), createElementBlock("div", _hoisted_3$5, " 403 Not Allowed "))
6198
+ : (openBlock(), createElementBlock("div", _hoisted_4$5, " No tabs found "))
6199
+ ]))
6203
6200
  }
6204
6201
  }
6205
6202
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "5.4.9",
3
+ "version": "5.5.1",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",