@iankibetsh/shframework 1.9.7 → 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.
@@ -1,36 +1,4 @@
1
1
 
2
- .colored-toast.swal2-icon-success {
3
- background-color: #a5dc86 !important;
4
- }
5
-
6
- .colored-toast.swal2-icon-error {
7
- background-color: #f27474 !important;
8
- }
9
-
10
- .colored-toast.swal2-icon-warning {
11
- background-color: #f8bb86 !important;
12
- }
13
-
14
- .colored-toast.swal2-icon-info {
15
- background-color: #3fc3ee !important;
16
- }
17
-
18
- .colored-toast.swal2-icon-question {
19
- background-color: #87adbd !important;
20
- }
21
-
22
- .colored-toast .swal2-title {
23
- color: white;
24
- }
25
-
26
- .colored-toast .swal2-close {
27
- color: white;
28
- }
29
-
30
- .colored-toast .swal2-html-container {
31
- color: white;
32
- }
33
-
34
2
  .sh-phone{
35
3
  display: flex;
36
4
  width: 100%;
@@ -63,6 +31,38 @@
63
31
  opacity: 0.5;
64
32
  }
65
33
 
34
+ .colored-toast.swal2-icon-success {
35
+ background-color: #a5dc86 !important;
36
+ }
37
+
38
+ .colored-toast.swal2-icon-error {
39
+ background-color: #f27474 !important;
40
+ }
41
+
42
+ .colored-toast.swal2-icon-warning {
43
+ background-color: #f8bb86 !important;
44
+ }
45
+
46
+ .colored-toast.swal2-icon-info {
47
+ background-color: #3fc3ee !important;
48
+ }
49
+
50
+ .colored-toast.swal2-icon-question {
51
+ background-color: #87adbd !important;
52
+ }
53
+
54
+ .colored-toast .swal2-title {
55
+ color: white;
56
+ }
57
+
58
+ .colored-toast .swal2-close {
59
+ color: white;
60
+ }
61
+
62
+ .colored-toast .swal2-html-container {
63
+ color: white;
64
+ }
65
+
66
66
  .permissions-main {
67
67
  background: #edeff2;
68
68
  }
package/dist/library.js CHANGED
@@ -2034,7 +2034,7 @@ const _hoisted_2$e = ["id"];
2034
2034
  const _hoisted_3$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2035
2035
  const _hoisted_4$d = ["onClick"];
2036
2036
  const _hoisted_5$a = ["id"];
2037
- const _hoisted_6$9 = ["id", "aria-labelledby"];
2037
+ const _hoisted_6$8 = ["id", "aria-labelledby"];
2038
2038
  const _hoisted_7$7 = { key: 0 };
2039
2039
  const _hoisted_8$6 = ["onClick"];
2040
2040
  const _hoisted_9$6 = {
@@ -2180,7 +2180,7 @@ return (_ctx, _cache) => {
2180
2180
  : (vue.unref(searchText))
2181
2181
  ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$6, " No results found "))
2182
2182
  : (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$5, " Type to search... "))
2183
- ], 8 /* PROPS */, _hoisted_6$9)
2183
+ ], 8 /* PROPS */, _hoisted_6$8)
2184
2184
  ]))
2185
2185
  : vue.createCommentVNode("v-if", true)
2186
2186
  }
@@ -2530,7 +2530,7 @@ const _hoisted_3$c = {
2530
2530
  };
2531
2531
  const _hoisted_4$c = /*#__PURE__*/vue.createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2532
2532
  const _hoisted_5$9 = { key: 0 };
2533
- const _hoisted_6$8 = { key: 1 };
2533
+ const _hoisted_6$7 = { key: 1 };
2534
2534
  const _hoisted_7$6 = { class: "row" };
2535
2535
  const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2536
2536
  const _hoisted_9$5 = { class: "col-md-12" };
@@ -2588,7 +2588,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2588
2588
  _hoisted_4$c,
2589
2589
  (_ctx.errorText)
2590
2590
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_5$9, vue.toDisplayString(_ctx.errorText), 1 /* TEXT */))
2591
- : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
2591
+ : (vue.openBlock(), vue.createElementBlock("span", _hoisted_6$7, "Unexpected Error Occurred")),
2592
2592
  vue.createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2593
2593
  ]))
2594
2594
  : vue.createCommentVNode("v-if", true),
@@ -3076,7 +3076,7 @@ const _hoisted_2$c = ["onUpdate:modelValue"];
3076
3076
  const _hoisted_3$b = ["innerHTML"];
3077
3077
  const _hoisted_4$b = ["innerHTML"];
3078
3078
  const _hoisted_5$8 = ["innerHTML"];
3079
- const _hoisted_6$7 = ["disabled"];
3079
+ const _hoisted_6$6 = ["disabled"];
3080
3080
  const _hoisted_7$5 = {
3081
3081
  key: 0,
3082
3082
  class: "spinner-border spinner-border-sm",
@@ -3367,7 +3367,7 @@ return (_ctx, _cache) => {
3367
3367
  (!loading.value)
3368
3368
  ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_8$4, "Submit"))
3369
3369
  : vue.createCommentVNode("v-if", true)
3370
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$7)
3370
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$6)
3371
3371
  ], 2 /* CLASS */)
3372
3372
  ], 34 /* CLASS, HYDRATE_EVENTS */)
3373
3373
  ], 64 /* STABLE_FRAGMENT */))
@@ -3448,7 +3448,7 @@ const _hoisted_5$7 = /*#__PURE__*/vue.createElementVNode("button", {
3448
3448
  "data-bs-dismiss": "modal",
3449
3449
  "data-dismiss": "modal"
3450
3450
  }, "×", -1 /* HOISTED */);
3451
- const _hoisted_6$6 = { class: "modal-body" };
3451
+ const _hoisted_6$5 = { class: "modal-body" };
3452
3452
  const _hoisted_7$4 = { class: "section" };
3453
3453
 
3454
3454
  var script$k = {
@@ -3493,7 +3493,7 @@ return (_ctx, _cache) => {
3493
3493
  vue.createElementVNode("h3", _hoisted_4$a, vue.toDisplayString(__props.modalTitle), 1 /* TEXT */),
3494
3494
  _hoisted_5$7
3495
3495
  ]),
3496
- vue.createElementVNode("div", _hoisted_6$6, [
3496
+ vue.createElementVNode("div", _hoisted_6$5, [
3497
3497
  vue.createElementVNode("div", _hoisted_7$4, [
3498
3498
  vue.renderSlot(_ctx.$slots, "default")
3499
3499
  ])
@@ -4380,7 +4380,7 @@ const _hoisted_5$6 = /*#__PURE__*/vue.createElementVNode("span", {
4380
4380
  role: "status",
4381
4381
  "aria-hidden": "true"
4382
4382
  }, null, -1 /* HOISTED */);
4383
- 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 */);
4384
4384
  const _hoisted_7$3 = {
4385
4385
  key: 1,
4386
4386
  class: "row"
@@ -4546,7 +4546,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4546
4546
  ], 64 /* STABLE_FRAGMENT */))
4547
4547
  : (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 1 }, [
4548
4548
  _hoisted_5$6,
4549
- _hoisted_6$5
4549
+ _hoisted_6$4
4550
4550
  ], 64 /* STABLE_FRAGMENT */))
4551
4551
  ], 8 /* PROPS */, _hoisted_3$7)
4552
4552
  ]))
@@ -5135,17 +5135,13 @@ return (_ctx, _cache) => {
5135
5135
  script$c.__file = "src/lib/components/ShTabs.vue";
5136
5136
 
5137
5137
  const _hoisted_1$9 = {
5138
- class: "nav nav-tabs",
5139
- role: "tablist"
5140
- };
5141
- const _hoisted_2$6 = {
5142
5138
  class: "nav-item",
5143
5139
  role: "presentation"
5144
5140
  };
5145
- const _hoisted_3$6 = ["onClick"];
5146
- const _hoisted_4$6 = /*#__PURE__*/vue.createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5147
- const _hoisted_5$5 = { class: "sh_tab_count" };
5148
- 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" };
5149
5145
 
5150
5146
  var script$b = {
5151
5147
  __name: 'ShDynamicTabs',
@@ -5172,9 +5168,12 @@ function setTab(tab){
5172
5168
 
5173
5169
  return (_ctx, _cache) => {
5174
5170
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, [
5175
- 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
+ }, [
5176
5175
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(vue.unref(tabs), (tab) => {
5177
- return (vue.openBlock(), vue.createElementBlock("li", _hoisted_2$6, [
5176
+ return (vue.openBlock(), vue.createElementBlock("li", _hoisted_1$9, [
5178
5177
  vue.createElementVNode("button", {
5179
5178
  onClick: $event => (setTab(tab)),
5180
5179
  class: vue.normalizeClass(["nav-link", vue.unref(currentTab) === tab ? 'active':''])
@@ -5182,15 +5181,15 @@ return (_ctx, _cache) => {
5182
5181
  vue.createTextVNode(vue.toDisplayString(tab.label) + " ", 1 /* TEXT */),
5183
5182
  (tab.count || tab.tabCount)
5184
5183
  ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
5185
- _hoisted_4$6,
5186
- 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 */)
5187
5186
  ], 64 /* STABLE_FRAGMENT */))
5188
5187
  : vue.createCommentVNode("v-if", true)
5189
- ], 10 /* CLASS, PROPS */, _hoisted_3$6)
5188
+ ], 10 /* CLASS, PROPS */, _hoisted_2$6)
5190
5189
  ]))
5191
5190
  }), 256 /* UNKEYED_FRAGMENT */))
5192
- ]),
5193
- vue.createElementVNode("div", _hoisted_6$4, [
5191
+ ], 2 /* CLASS */),
5192
+ vue.createElementVNode("div", _hoisted_5$5, [
5194
5193
  (vue.unref(currentTab))
5195
5194
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(vue.unref(currentTab).component), vue.normalizeProps(vue.mergeProps({ key: 0 }, vue.unref(currentTab))), null, 16 /* FULL_PROPS */))
5196
5195
  : vue.createCommentVNode("v-if", true)
package/dist/library.mjs CHANGED
@@ -2004,7 +2004,7 @@ const _hoisted_2$e = ["id"];
2004
2004
  const _hoisted_3$d = { class: "badge bg-secondary m-1 sh-selected-item" };
2005
2005
  const _hoisted_4$d = ["onClick"];
2006
2006
  const _hoisted_5$a = ["id"];
2007
- const _hoisted_6$9 = ["id", "aria-labelledby"];
2007
+ const _hoisted_6$8 = ["id", "aria-labelledby"];
2008
2008
  const _hoisted_7$7 = { key: 0 };
2009
2009
  const _hoisted_8$6 = ["onClick"];
2010
2010
  const _hoisted_9$6 = {
@@ -2150,7 +2150,7 @@ return (_ctx, _cache) => {
2150
2150
  : (unref(searchText))
2151
2151
  ? (openBlock(), createElementBlock("li", _hoisted_9$6, " No results found "))
2152
2152
  : (openBlock(), createElementBlock("li", _hoisted_10$5, " Type to search... "))
2153
- ], 8 /* PROPS */, _hoisted_6$9)
2153
+ ], 8 /* PROPS */, _hoisted_6$8)
2154
2154
  ]))
2155
2155
  : createCommentVNode("v-if", true)
2156
2156
  }
@@ -2500,7 +2500,7 @@ const _hoisted_3$c = {
2500
2500
  };
2501
2501
  const _hoisted_4$c = /*#__PURE__*/createElementVNode("i", { class: "bi-exclamation-triangle-fill me-1" }, null, -1 /* HOISTED */);
2502
2502
  const _hoisted_5$9 = { key: 0 };
2503
- const _hoisted_6$8 = { key: 1 };
2503
+ const _hoisted_6$7 = { key: 1 };
2504
2504
  const _hoisted_7$6 = { class: "row" };
2505
2505
  const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
2506
2506
  const _hoisted_9$5 = { class: "col-md-12" };
@@ -2558,7 +2558,7 @@ function render$4(_ctx, _cache, $props, $setup, $data, $options) {
2558
2558
  _hoisted_4$c,
2559
2559
  (_ctx.errorText)
2560
2560
  ? (openBlock(), createElementBlock("span", _hoisted_5$9, toDisplayString(_ctx.errorText), 1 /* TEXT */))
2561
- : (openBlock(), createElementBlock("span", _hoisted_6$8, "Unexpected Error Occurred")),
2561
+ : (openBlock(), createElementBlock("span", _hoisted_6$7, "Unexpected Error Occurred")),
2562
2562
  createCommentVNode(" <button @click=\"hideError\" type=\"button\" class=\"btn-close\" aria-label=\"Close\"></button>")
2563
2563
  ]))
2564
2564
  : createCommentVNode("v-if", true),
@@ -3046,7 +3046,7 @@ const _hoisted_2$c = ["onUpdate:modelValue"];
3046
3046
  const _hoisted_3$b = ["innerHTML"];
3047
3047
  const _hoisted_4$b = ["innerHTML"];
3048
3048
  const _hoisted_5$8 = ["innerHTML"];
3049
- const _hoisted_6$7 = ["disabled"];
3049
+ const _hoisted_6$6 = ["disabled"];
3050
3050
  const _hoisted_7$5 = {
3051
3051
  key: 0,
3052
3052
  class: "spinner-border spinner-border-sm",
@@ -3337,7 +3337,7 @@ return (_ctx, _cache) => {
3337
3337
  (!loading.value)
3338
3338
  ? (openBlock(), createElementBlock("span", _hoisted_8$4, "Submit"))
3339
3339
  : createCommentVNode("v-if", true)
3340
- ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$7)
3340
+ ], 14 /* CLASS, STYLE, PROPS */, _hoisted_6$6)
3341
3341
  ], 2 /* CLASS */)
3342
3342
  ], 34 /* CLASS, HYDRATE_EVENTS */)
3343
3343
  ], 64 /* STABLE_FRAGMENT */))
@@ -3418,7 +3418,7 @@ const _hoisted_5$7 = /*#__PURE__*/createElementVNode("button", {
3418
3418
  "data-bs-dismiss": "modal",
3419
3419
  "data-dismiss": "modal"
3420
3420
  }, "×", -1 /* HOISTED */);
3421
- const _hoisted_6$6 = { class: "modal-body" };
3421
+ const _hoisted_6$5 = { class: "modal-body" };
3422
3422
  const _hoisted_7$4 = { class: "section" };
3423
3423
 
3424
3424
  var script$k = {
@@ -3463,7 +3463,7 @@ return (_ctx, _cache) => {
3463
3463
  createElementVNode("h3", _hoisted_4$a, toDisplayString(__props.modalTitle), 1 /* TEXT */),
3464
3464
  _hoisted_5$7
3465
3465
  ]),
3466
- createElementVNode("div", _hoisted_6$6, [
3466
+ createElementVNode("div", _hoisted_6$5, [
3467
3467
  createElementVNode("div", _hoisted_7$4, [
3468
3468
  renderSlot(_ctx.$slots, "default")
3469
3469
  ])
@@ -4350,7 +4350,7 @@ const _hoisted_5$6 = /*#__PURE__*/createElementVNode("span", {
4350
4350
  role: "status",
4351
4351
  "aria-hidden": "true"
4352
4352
  }, null, -1 /* HOISTED */);
4353
- 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 */);
4354
4354
  const _hoisted_7$3 = {
4355
4355
  key: 1,
4356
4356
  class: "row"
@@ -4516,7 +4516,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
4516
4516
  ], 64 /* STABLE_FRAGMENT */))
4517
4517
  : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
4518
4518
  _hoisted_5$6,
4519
- _hoisted_6$5
4519
+ _hoisted_6$4
4520
4520
  ], 64 /* STABLE_FRAGMENT */))
4521
4521
  ], 8 /* PROPS */, _hoisted_3$7)
4522
4522
  ]))
@@ -5105,17 +5105,13 @@ return (_ctx, _cache) => {
5105
5105
  script$c.__file = "src/lib/components/ShTabs.vue";
5106
5106
 
5107
5107
  const _hoisted_1$9 = {
5108
- class: "nav nav-tabs",
5109
- role: "tablist"
5110
- };
5111
- const _hoisted_2$6 = {
5112
5108
  class: "nav-item",
5113
5109
  role: "presentation"
5114
5110
  };
5115
- const _hoisted_3$6 = ["onClick"];
5116
- const _hoisted_4$6 = /*#__PURE__*/createElementVNode("i", { class: "d-none" }, null, -1 /* HOISTED */);
5117
- const _hoisted_5$5 = { class: "sh_tab_count" };
5118
- 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" };
5119
5115
 
5120
5116
  var script$b = {
5121
5117
  __name: 'ShDynamicTabs',
@@ -5142,9 +5138,12 @@ function setTab(tab){
5142
5138
 
5143
5139
  return (_ctx, _cache) => {
5144
5140
  return (openBlock(), createElementBlock(Fragment, null, [
5145
- 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
+ }, [
5146
5145
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(tabs), (tab) => {
5147
- return (openBlock(), createElementBlock("li", _hoisted_2$6, [
5146
+ return (openBlock(), createElementBlock("li", _hoisted_1$9, [
5148
5147
  createElementVNode("button", {
5149
5148
  onClick: $event => (setTab(tab)),
5150
5149
  class: normalizeClass(["nav-link", unref(currentTab) === tab ? 'active':''])
@@ -5152,15 +5151,15 @@ return (_ctx, _cache) => {
5152
5151
  createTextVNode(toDisplayString(tab.label) + " ", 1 /* TEXT */),
5153
5152
  (tab.count || tab.tabCount)
5154
5153
  ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
5155
- _hoisted_4$6,
5156
- 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 */)
5157
5156
  ], 64 /* STABLE_FRAGMENT */))
5158
5157
  : createCommentVNode("v-if", true)
5159
- ], 10 /* CLASS, PROPS */, _hoisted_3$6)
5158
+ ], 10 /* CLASS, PROPS */, _hoisted_2$6)
5160
5159
  ]))
5161
5160
  }), 256 /* UNKEYED_FRAGMENT */))
5162
- ]),
5163
- createElementVNode("div", _hoisted_6$4, [
5161
+ ], 2 /* CLASS */),
5162
+ createElementVNode("div", _hoisted_5$5, [
5164
5163
  (unref(currentTab))
5165
5164
  ? (openBlock(), createBlock(resolveDynamicComponent(unref(currentTab).component), normalizeProps(mergeProps({ key: 0 }, unref(currentTab))), null, 16 /* FULL_PROPS */))
5166
5165
  : createCommentVNode("v-if", true)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "1.9.7",
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",