@iankibetsh/shframework 1.9.6 → 1.9.8

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
@@ -201,7 +201,6 @@ function showToast (message, toastType, config) {
201
201
  toastType = 'success';
202
202
  }
203
203
  if(config){
204
- // alert(config.position)
205
204
  Object.keys(config).map(key=>mixinConfig[key] = config[key]);
206
205
  }
207
206
  console.log(mixinConfig);
@@ -2035,7 +2034,7 @@ const _hoisted_2$e = ["id"];
2035
2034
  const _hoisted_3$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2036
2035
  const _hoisted_4$d = ["onClick"];
2037
2036
  const _hoisted_5$a = ["id"];
2038
- const _hoisted_6$9 = ["id", "aria-labelledby"];
2037
+ const _hoisted_6$8 = ["id", "aria-labelledby"];
2039
2038
  const _hoisted_7$7 = { key: 0 };
2040
2039
  const _hoisted_8$6 = ["onClick"];
2041
2040
  const _hoisted_9$6 = {
@@ -2181,7 +2180,7 @@ return (_ctx, _cache) => {
2181
2180
  : (vue.unref(searchText))
2182
2181
  ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$6, " No results found "))
2183
2182
  : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$5, " Type to search... "))
2184
- ], 8 /* PROPS */, _hoisted_6$9)
2183
+ ], 8 /* PROPS */, _hoisted_6$8)
2185
2184
  ]))
2186
2185
  : vue.createCommentVNode("v-if", true)
2187
2186
  }
@@ -2531,7 +2530,7 @@ const _hoisted_3$c = {
2531
2530
  };
2532
2531
  const _hoisted_4$c = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2533
2532
  const _hoisted_5$9 = { key: 0 };
2534
- const _hoisted_6$8 = { key: 1 };
2533
+ const _hoisted_6$7 = { key: 1 };
2535
2534
  const _hoisted_7$6 = { class: "row" };
2536
2535
  const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2537
2536
  const _hoisted_9$5 = { class: "col-md-12" };
@@ -2589,7 +2588,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2589
2588
  _hoisted_4$c,
2590
2589
  (_ctx.errorText)
2591
2590
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$9, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2592
- : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
2591
+ : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$7, "Unexpected Error Occurred")),
2593
2592
  vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2594
2593
  ]))
2595
2594
  : vue.createCommentVNode("v-if", true),
@@ -3077,7 +3076,7 @@ const _hoisted_2$c = ["onUpdate:modelValue"];
3077
3076
  const _hoisted_3$b = ["innerHTML"];
3078
3077
  const _hoisted_4$b = ["innerHTML"];
3079
3078
  const _hoisted_5$8 = ["innerHTML"];
3080
- const _hoisted_6$7 = ["disabled"];
3079
+ const _hoisted_6$6 = ["disabled"];
3081
3080
  const _hoisted_7$5 = {
3082
3081
  key: 0,
3083
3082
  class: "spinner-border spinner-border-sm",
@@ -3368,7 +3367,7 @@ return (_ctx, _cache) => {
3368
3367
  (!loading.value)
3369
3368
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$4, "Submit"))
3370
3369
  : vue.createCommentVNode("v-if", true)
3371
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$7)
3370
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$6)
3372
3371
  ], 2 /* CLASS */)
3373
3372
  ], 34 /* CLASS, HYDRATE_EVENTS */)
3374
3373
  ], 64 /* STABLE_FRAGMENT */))
@@ -3449,7 +3448,7 @@ const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
3449
3448
  "data-bs-dismiss": "modal",
3450
3449
  "data-dismiss": "modal"
3451
3450
  }, "×", -1 /* HOISTED */);
3452
- const _hoisted_6$6 = { class: "modal-body" };
3451
+ const _hoisted_6$5 = { class: "modal-body" };
3453
3452
  const _hoisted_7$4 = { class: "section" };
3454
3453
 
3455
3454
  var script$k = {
@@ -3494,7 +3493,7 @@ return (_ctx, _cache) => {
3494
3493
  vue.createElementVNode("h3", _hoisted_4$a, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
3495
3494
  _hoisted_5$7
3496
3495
  ]),
3497
- vue.createElementVNode("div", _hoisted_6$6, [
3496
+ vue.createElementVNode("div", _hoisted_6$5, [
3498
3497
  vue.createElementVNode("div", _hoisted_7$4, [
3499
3498
  vue.renderSlot(_ctx.$slots, "default")
3500
3499
  ])
@@ -4381,7 +4380,7 @@ const _hoisted_5$6 = /*#__PURE__*/vue.createElementVNode("span", {
4381
4380
  role: "status",
4382
4381
  "aria-hidden": "true"
4383
4382
  }, null, -1 /* HOISTED */);
4384
- const _hoisted_6$5 = /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
4383
+ const _hoisted_6$4 = /*#__PURE__*/vue.createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
4385
4384
  const _hoisted_7$3 = {
4386
4385
  key: 1,
4387
4386
  class: "row"
@@ -4547,7 +4546,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4547
4546
  ], 64 /* STABLE_FRAGMENT */))
4548
4547
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
4549
4548
  _hoisted_5$6,
4550
- _hoisted_6$5
4549
+ _hoisted_6$4
4551
4550
  ], 64 /* STABLE_FRAGMENT */))
4552
4551
  ], 8 /* PROPS */, _hoisted_3$7)
4553
4552
  ]))
@@ -5095,7 +5094,7 @@ return (_ctx, _cache) => {
5095
5094
 
5096
5095
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
5097
5096
  vue.createElementVNode("ul", {
5098
- class: vue.normalizeClass(["nav nav-tabs sh-tabs", __props.classes])
5097
+ class: vue.normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? vue.unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
5099
5098
  }, [
5100
5099
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.tabs, (tab) => {
5101
5100
  return (vue.openBlock(), vue.createElementBlock("li", {
@@ -5136,17 +5135,13 @@ return (_ctx, _cache) => {
5136
5135
  script$c.__file = "src/lib/components/ShTabs.vue";
5137
5136
 
5138
5137
  const _hoisted_1$9 = {
5139
- class: "nav nav-tabs",
5140
- role: "tablist"
5141
- };
5142
- const _hoisted_2$6 = {
5143
5138
  class: "nav-item",
5144
5139
  role: "presentation"
5145
5140
  };
5146
- const _hoisted_3$6 = ["onClick"];
5147
- const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5148
- const _hoisted_5$5 = { class: "sh_tab_count" };
5149
- const _hoisted_6$4 = { class: "tab-content" };
5141
+ const _hoisted_2$6 = ["onClick"];
5142
+ const _hoisted_3$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5143
+ const _hoisted_4$6 = { class: "sh_tab_count" };
5144
+ const _hoisted_5$5 = { class: "tab-content" };
5150
5145
 
5151
5146
  var script$b = {
5152
5147
  __name: 'ShDynamicTabs',
@@ -5173,9 +5168,12 @@ function setTab(tab){
5173
5168
 
5174
5169
  return (_ctx, _cache) => {
5175
5170
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
5176
- vue.createElementVNode("ul", _hoisted_1$9, [
5171
+ vue.createElementVNode("ul", {
5172
+ class: vue.normalizeClass(["nav nav-tabs", _ctx.shRepo.getShConfig('tabsClass','sh-tabs nav-tabs-bordered')]),
5173
+ role: "tablist"
5174
+ }, [
5177
5175
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
5178
- return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$6, [
5176
+ return (vue.openBlock(), vue.createElementBlock("li", _hoisted_1$9, [
5179
5177
  vue.createElementVNode("button", {
5180
5178
  onClick: $event => (setTab(tab)),
5181
5179
  class: vue.normalizeClass(["nav-link", vue.unref(currentTab) === tab ? 'active':''])
@@ -5183,15 +5181,15 @@ return (_ctx, _cache) => {
5183
5181
  vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
5184
5182
  (tab.count || tab.tabCount)
5185
5183
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
5186
- _hoisted_4$6,
5187
- vue.createElementVNode("sup", _hoisted_5$5, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
5184
+ _hoisted_3$6,
5185
+ vue.createElementVNode("sup", _hoisted_4$6, vue.toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
5188
5186
  ], 64 /* STABLE_FRAGMENT */))
5189
5187
  : vue.createCommentVNode("v-if", true)
5190
- ], 10 /* CLASS, PROPS */, _hoisted_3$6)
5188
+ ], 10 /* CLASS, PROPS */, _hoisted_2$6)
5191
5189
  ]))
5192
5190
  }), 256 /* UNKEYED_FRAGMENT */))
5193
- ]),
5194
- vue.createElementVNode("div", _hoisted_6$4, [
5191
+ ], 2 /* CLASS */),
5192
+ vue.createElementVNode("div", _hoisted_5$5, [
5195
5193
  (vue.unref(currentTab))
5196
5194
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(currentTab))), null, 16 /* FULL_PROPS */))
5197
5195
  : vue.createCommentVNode("v-if", true)
package/dist/library.mjs CHANGED
@@ -171,7 +171,6 @@ function showToast (message, toastType, config) {
171
171
  toastType = 'success';
172
172
  }
173
173
  if(config){
174
- // alert(config.position)
175
174
  Object.keys(config).map(key=>mixinConfig[key] = config[key]);
176
175
  }
177
176
  console.log(mixinConfig);
@@ -2005,7 +2004,7 @@ const _hoisted_2$e = ["id"];
2005
2004
  const _hoisted_3$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2006
2005
  const _hoisted_4$d = ["onClick"];
2007
2006
  const _hoisted_5$a = ["id"];
2008
- const _hoisted_6$9 = ["id", "aria-labelledby"];
2007
+ const _hoisted_6$8 = ["id", "aria-labelledby"];
2009
2008
  const _hoisted_7$7 = { key: 0 };
2010
2009
  const _hoisted_8$6 = ["onClick"];
2011
2010
  const _hoisted_9$6 = {
@@ -2151,7 +2150,7 @@ return (_ctx, _cache) => {
2151
2150
  : (unref(searchText))
2152
2151
  ? (openBlock(), createElementBlock("li", _hoisted_9$6, " No results found "))
2153
2152
  : (openBlock(), createElementBlock("li", _hoisted_10$5, " Type to search... "))
2154
- ], 8 /* PROPS */, _hoisted_6$9)
2153
+ ], 8 /* PROPS */, _hoisted_6$8)
2155
2154
  ]))
2156
2155
  : createCommentVNode("v-if", true)
2157
2156
  }
@@ -2501,7 +2500,7 @@ const _hoisted_3$c = {
2501
2500
  };
2502
2501
  const _hoisted_4$c = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2503
2502
  const _hoisted_5$9 = { key: 0 };
2504
- const _hoisted_6$8 = { key: 1 };
2503
+ const _hoisted_6$7 = { key: 1 };
2505
2504
  const _hoisted_7$6 = { class: "row" };
2506
2505
  const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2507
2506
  const _hoisted_9$5 = { class: "col-md-12" };
@@ -2559,7 +2558,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2559
2558
  _hoisted_4$c,
2560
2559
  (_ctx.errorText)
2561
2560
  ? (openBlock(), createElementBlock("span", _hoisted_5$9, toDisplayString(_ctx.errorText), 1 /* TEXT */))
2562
- : (openBlock(), createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
2561
+ : (openBlock(), createElementBlock("span", _hoisted_6$7, "Unexpected Error Occurred")),
2563
2562
  createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2564
2563
  ]))
2565
2564
  : createCommentVNode("v-if", true),
@@ -3047,7 +3046,7 @@ const _hoisted_2$c = ["onUpdate:modelValue"];
3047
3046
  const _hoisted_3$b = ["innerHTML"];
3048
3047
  const _hoisted_4$b = ["innerHTML"];
3049
3048
  const _hoisted_5$8 = ["innerHTML"];
3050
- const _hoisted_6$7 = ["disabled"];
3049
+ const _hoisted_6$6 = ["disabled"];
3051
3050
  const _hoisted_7$5 = {
3052
3051
  key: 0,
3053
3052
  class: "spinner-border spinner-border-sm",
@@ -3338,7 +3337,7 @@ return (_ctx, _cache) => {
3338
3337
  (!loading.value)
3339
3338
  ? (openBlock(), createElementBlock("span", _hoisted_8$4, "Submit"))
3340
3339
  : createCommentVNode("v-if", true)
3341
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$7)
3340
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$6)
3342
3341
  ], 2 /* CLASS */)
3343
3342
  ], 34 /* CLASS, HYDRATE_EVENTS */)
3344
3343
  ], 64 /* STABLE_FRAGMENT */))
@@ -3419,7 +3418,7 @@ const _hoisted_5$7 = /*#__PURE__*/createElementVNode("button", {
3419
3418
  "data-bs-dismiss": "modal",
3420
3419
  "data-dismiss": "modal"
3421
3420
  }, "×", -1 /* HOISTED */);
3422
- const _hoisted_6$6 = { class: "modal-body" };
3421
+ const _hoisted_6$5 = { class: "modal-body" };
3423
3422
  const _hoisted_7$4 = { class: "section" };
3424
3423
 
3425
3424
  var script$k = {
@@ -3464,7 +3463,7 @@ return (_ctx, _cache) => {
3464
3463
  createElementVNode("h3", _hoisted_4$a, toDisplayString(__props.modalTitle), 1 /* TEXT */),
3465
3464
  _hoisted_5$7
3466
3465
  ]),
3467
- createElementVNode("div", _hoisted_6$6, [
3466
+ createElementVNode("div", _hoisted_6$5, [
3468
3467
  createElementVNode("div", _hoisted_7$4, [
3469
3468
  renderSlot(_ctx.$slots, "default")
3470
3469
  ])
@@ -4351,7 +4350,7 @@ const _hoisted_5$6 = /*#__PURE__*/createElementVNode("span", {
4351
4350
  role: "status",
4352
4351
  "aria-hidden": "true"
4353
4352
  }, null, -1 /* HOISTED */);
4354
- const _hoisted_6$5 = /*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
4353
+ const _hoisted_6$4 = /*#__PURE__*/createElementVNode("span", { class: "visually-hidden" }, "Loading...", -1 /* HOISTED */);
4355
4354
  const _hoisted_7$3 = {
4356
4355
  key: 1,
4357
4356
  class: "row"
@@ -4517,7 +4516,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4517
4516
  ], 64 /* STABLE_FRAGMENT */))
4518
4517
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
4519
4518
  _hoisted_5$6,
4520
- _hoisted_6$5
4519
+ _hoisted_6$4
4521
4520
  ], 64 /* STABLE_FRAGMENT */))
4522
4521
  ], 8 /* PROPS */, _hoisted_3$7)
4523
4522
  ]))
@@ -5065,7 +5064,7 @@ return (_ctx, _cache) => {
5065
5064
 
5066
5065
  return (openBlock(), createElementBlock(Fragment, null, [
5067
5066
  createElementVNode("ul", {
5068
- class: normalizeClass(["nav nav-tabs sh-tabs", __props.classes])
5067
+ class: normalizeClass(["nav nav-tabs sh-tabs", __props.classes ?? unref(shRepo).getShConfig('tabsClass','sh-tabs nav-tabs-bordered')])
5069
5068
  }, [
5070
5069
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.tabs, (tab) => {
5071
5070
  return (openBlock(), createElementBlock("li", {
@@ -5106,17 +5105,13 @@ return (_ctx, _cache) => {
5106
5105
  script$c.__file = "src/lib/components/ShTabs.vue";
5107
5106
 
5108
5107
  const _hoisted_1$9 = {
5109
- class: "nav nav-tabs",
5110
- role: "tablist"
5111
- };
5112
- const _hoisted_2$6 = {
5113
5108
  class: "nav-item",
5114
5109
  role: "presentation"
5115
5110
  };
5116
- const _hoisted_3$6 = ["onClick"];
5117
- const _hoisted_4$6 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5118
- const _hoisted_5$5 = { class: "sh_tab_count" };
5119
- const _hoisted_6$4 = { class: "tab-content" };
5111
+ const _hoisted_2$6 = ["onClick"];
5112
+ const _hoisted_3$6 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5113
+ const _hoisted_4$6 = { class: "sh_tab_count" };
5114
+ const _hoisted_5$5 = { class: "tab-content" };
5120
5115
 
5121
5116
  var script$b = {
5122
5117
  __name: 'ShDynamicTabs',
@@ -5143,9 +5138,12 @@ function setTab(tab){
5143
5138
 
5144
5139
  return (_ctx, _cache) => {
5145
5140
  return (openBlock(), createElementBlock(Fragment, null, [
5146
- createElementVNode("ul", _hoisted_1$9, [
5141
+ createElementVNode("ul", {
5142
+ class: normalizeClass(["nav nav-tabs", _ctx.shRepo.getShConfig('tabsClass','sh-tabs nav-tabs-bordered')]),
5143
+ role: "tablist"
5144
+ }, [
5147
5145
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
5148
- return (openBlock(), createElementBlock("li", _hoisted_2$6, [
5146
+ return (openBlock(), createElementBlock("li", _hoisted_1$9, [
5149
5147
  createElementVNode("button", {
5150
5148
  onClick: $event => (setTab(tab)),
5151
5149
  class: normalizeClass(["nav-link", unref(currentTab) === tab ? 'active':''])
@@ -5153,15 +5151,15 @@ return (_ctx, _cache) => {
5153
5151
  createTextVNode(toDisplayString(tab.label) + " ", 1 /* TEXT */),
5154
5152
  (tab.count || tab.tabCount)
5155
5153
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5156
- _hoisted_4$6,
5157
- createElementVNode("sup", _hoisted_5$5, toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
5154
+ _hoisted_3$6,
5155
+ createElementVNode("sup", _hoisted_4$6, toDisplayString(tab.count ?? tab.tabCount), 1 /* TEXT */)
5158
5156
  ], 64 /* STABLE_FRAGMENT */))
5159
5157
  : createCommentVNode("v-if", true)
5160
- ], 10 /* CLASS, PROPS */, _hoisted_3$6)
5158
+ ], 10 /* CLASS, PROPS */, _hoisted_2$6)
5161
5159
  ]))
5162
5160
  }), 256 /* UNKEYED_FRAGMENT */))
5163
- ]),
5164
- createElementVNode("div", _hoisted_6$4, [
5161
+ ], 2 /* CLASS */),
5162
+ createElementVNode("div", _hoisted_5$5, [
5165
5163
  (unref(currentTab))
5166
5164
  ? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component), normalizeProps(mergeProps({ key: 0 }, unref(currentTab))), null, 16 /* FULL_PROPS */))
5167
5165
  : createCommentVNode("v-if", true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.9.6",
3
+ "version": "1.9.8",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",