@iankibetsh/shframework 4.8.6 → 4.8.7

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.
@@ -31,38 +31,6 @@
31
31
  opacity: 0.5;
32
32
  }
33
33
 
34
- .permissions-main {
35
- background: #edeff2;
36
- }
37
- .permissions-main div#permissions-nav {
38
- padding: 0;
39
- }
40
- .permissions-main div#permissions-nav ul {
41
- padding-left: 0;
42
- max-height: 400px;
43
- overflow-y: auto;
44
- }
45
- .permissions-main div#permissions-nav ul li.active {
46
- border-right: none !important;
47
- position: relative;
48
- top: 0;
49
- left: 0;
50
- background: #88b3b370;
51
- border-radius: 10px;
52
- }
53
- .permissions-main div#permissions-nav ul li {
54
- list-style: none;
55
- padding-inline-start: 10px;
56
- display: flex;
57
- gap: 5px;
58
- }
59
- .permissions-main div#permissions-nav ul li label {
60
- padding: 8px 0;
61
- cursor: pointer;
62
- height: 100%;
63
- flex-grow: 1;
64
- }
65
-
66
34
  .colored-toast.swal2-icon-success {
67
35
  background-color: #a5dc86 !important;
68
36
  }
@@ -95,6 +63,38 @@
95
63
  color: white;
96
64
  }
97
65
 
66
+ .permissions-main {
67
+ background: #edeff2;
68
+ }
69
+ .permissions-main div#permissions-nav {
70
+ padding: 0;
71
+ }
72
+ .permissions-main div#permissions-nav ul {
73
+ padding-left: 0;
74
+ max-height: 400px;
75
+ overflow-y: auto;
76
+ }
77
+ .permissions-main div#permissions-nav ul li.active {
78
+ border-right: none !important;
79
+ position: relative;
80
+ top: 0;
81
+ left: 0;
82
+ background: #88b3b370;
83
+ border-radius: 10px;
84
+ }
85
+ .permissions-main div#permissions-nav ul li {
86
+ list-style: none;
87
+ padding-inline-start: 10px;
88
+ display: flex;
89
+ gap: 5px;
90
+ }
91
+ .permissions-main div#permissions-nav ul li label {
92
+ padding: 8px 0;
93
+ cursor: pointer;
94
+ height: 100%;
95
+ flex-grow: 1;
96
+ }
97
+
98
98
  .sh-selected-item{
99
99
  line-height: unset!important;
100
100
  }
package/dist/library.js CHANGED
@@ -4405,7 +4405,7 @@ const _hoisted_2$b = ["title"];
4405
4405
 
4406
4406
  var script$h = {
4407
4407
  __name: 'SingleAction',
4408
- props: ['action','record'],
4408
+ props: ['action','record','actionClass'],
4409
4409
  emits: ['actionSuccessful','actionFailed','actionCanceled'],
4410
4410
  setup(__props, { emit: __emit }) {
4411
4411
 
@@ -4446,7 +4446,7 @@ return (_ctx, _cache) => {
4446
4446
  onActionFailed: _cache[1] || (_cache[1] = $event => (doEmitAction('actionFailed',__props.record))),
4447
4447
  onActionCanceled: _cache[2] || (_cache[2] = $event => (doEmitAction('actionCanceled',__props.record))),
4448
4448
  "loading-message": __props.action.label,
4449
- class: vue.normalizeClass(__props.action.class),
4449
+ class: vue.normalizeClass(__props.action.class + __props.actionClass),
4450
4450
  url: url.value
4451
4451
  }, {
4452
4452
  default: vue.withCtx(() => [
@@ -4467,7 +4467,7 @@ return (_ctx, _cache) => {
4467
4467
  onActionFailed: _cache[4] || (_cache[4] = $event => (doEmitAction('actionFailed',__props.record))),
4468
4468
  onActionCanceled: _cache[5] || (_cache[5] = $event => (doEmitAction('actionCanceled',__props.record))),
4469
4469
  "loading-message": __props.action.label,
4470
- class: vue.normalizeClass(__props.action.class),
4470
+ class: vue.normalizeClass(__props.action.class + __props.actionClass),
4471
4471
  url: url.value
4472
4472
  }, {
4473
4473
  default: vue.withCtx(() => [
@@ -4486,7 +4486,7 @@ return (_ctx, _cache) => {
4486
4486
  key: 2,
4487
4487
  href: '#' + __props.action.canvasId,
4488
4488
  "data-bs-toggle": "offcanvas",
4489
- class: vue.normalizeClass(__props.action.class)
4489
+ class: vue.normalizeClass(__props.action.class + __props.actionClass)
4490
4490
  }, [
4491
4491
  (__props.action.icon)
4492
4492
  ? (vue.openBlock(), vue.createElementBlock("span", {
@@ -4500,7 +4500,7 @@ return (_ctx, _cache) => {
4500
4500
  ? (vue.openBlock(), vue.createElementBlock("button", {
4501
4501
  key: 3,
4502
4502
  title: __props.action.title,
4503
- class: vue.normalizeClass(__props.action.class ? __props.action.class:'btn btn-default'),
4503
+ class: vue.normalizeClass(__props.action.class ? __props.action.class:'btn btn-default' + __props.actionClass),
4504
4504
  onClick: _cache[6] || (_cache[6] = $event => (doEmitAction(__props.action.emits,__props.record)))
4505
4505
  }, [
4506
4506
  (__props.action.icon)
@@ -4516,7 +4516,7 @@ return (_ctx, _cache) => {
4516
4516
  key: 4,
4517
4517
  title: __props.action.title,
4518
4518
  to: url.value,
4519
- class: vue.normalizeClass(__props.action.class)
4519
+ class: vue.normalizeClass(__props.action.class + __props.actionClass)
4520
4520
  }, {
4521
4521
  default: vue.withCtx(() => [
4522
4522
  (__props.action.icon)
@@ -4543,10 +4543,10 @@ script$h.__file = "src/lib/components/table/SingleAction.vue";
4543
4543
 
4544
4544
  const _hoisted_1$d = {
4545
4545
  key: 0,
4546
- class: "dropdown"
4546
+ class: "dropdown sh-table-dropdown"
4547
4547
  };
4548
4548
  const _hoisted_2$a = {
4549
- class: "sh-table-dropdown",
4549
+ class: "sh-table-dropdown-btn",
4550
4550
  type: "button",
4551
4551
  "data-bs-toggle": "dropdown",
4552
4552
  "aria-expanded": "false"
@@ -4586,7 +4586,8 @@ return (_ctx, _cache) => {
4586
4586
  key: act.label
4587
4587
  }, [
4588
4588
  vue.createVNode(script$h, {
4589
- class: vue.normalizeClass(["dropdown-item", act.class]),
4589
+ "action-class": " dropdown-item",
4590
+ class: vue.normalizeClass(act.class),
4590
4591
  action: act,
4591
4592
  record: __props.record
4592
4593
  }, null, 8 /* PROPS */, ["class", "action", "record"])
package/dist/library.mjs CHANGED
@@ -4393,7 +4393,7 @@ const _hoisted_2$b = ["title"];
4393
4393
 
4394
4394
  var script$h = {
4395
4395
  __name: 'SingleAction',
4396
- props: ['action','record'],
4396
+ props: ['action','record','actionClass'],
4397
4397
  emits: ['actionSuccessful','actionFailed','actionCanceled'],
4398
4398
  setup(__props, { emit: __emit }) {
4399
4399
 
@@ -4434,7 +4434,7 @@ return (_ctx, _cache) => {
4434
4434
  onActionFailed: _cache[1] || (_cache[1] = $event => (doEmitAction('actionFailed',__props.record))),
4435
4435
  onActionCanceled: _cache[2] || (_cache[2] = $event => (doEmitAction('actionCanceled',__props.record))),
4436
4436
  "loading-message": __props.action.label,
4437
- class: normalizeClass(__props.action.class),
4437
+ class: normalizeClass(__props.action.class + __props.actionClass),
4438
4438
  url: url.value
4439
4439
  }, {
4440
4440
  default: withCtx(() => [
@@ -4455,7 +4455,7 @@ return (_ctx, _cache) => {
4455
4455
  onActionFailed: _cache[4] || (_cache[4] = $event => (doEmitAction('actionFailed',__props.record))),
4456
4456
  onActionCanceled: _cache[5] || (_cache[5] = $event => (doEmitAction('actionCanceled',__props.record))),
4457
4457
  "loading-message": __props.action.label,
4458
- class: normalizeClass(__props.action.class),
4458
+ class: normalizeClass(__props.action.class + __props.actionClass),
4459
4459
  url: url.value
4460
4460
  }, {
4461
4461
  default: withCtx(() => [
@@ -4474,7 +4474,7 @@ return (_ctx, _cache) => {
4474
4474
  key: 2,
4475
4475
  href: '#' + __props.action.canvasId,
4476
4476
  "data-bs-toggle": "offcanvas",
4477
- class: normalizeClass(__props.action.class)
4477
+ class: normalizeClass(__props.action.class + __props.actionClass)
4478
4478
  }, [
4479
4479
  (__props.action.icon)
4480
4480
  ? (openBlock(), createElementBlock("span", {
@@ -4488,7 +4488,7 @@ return (_ctx, _cache) => {
4488
4488
  ? (openBlock(), createElementBlock("button", {
4489
4489
  key: 3,
4490
4490
  title: __props.action.title,
4491
- class: normalizeClass(__props.action.class ? __props.action.class:'btn btn-default'),
4491
+ class: normalizeClass(__props.action.class ? __props.action.class:'btn btn-default' + __props.actionClass),
4492
4492
  onClick: _cache[6] || (_cache[6] = $event => (doEmitAction(__props.action.emits,__props.record)))
4493
4493
  }, [
4494
4494
  (__props.action.icon)
@@ -4504,7 +4504,7 @@ return (_ctx, _cache) => {
4504
4504
  key: 4,
4505
4505
  title: __props.action.title,
4506
4506
  to: url.value,
4507
- class: normalizeClass(__props.action.class)
4507
+ class: normalizeClass(__props.action.class + __props.actionClass)
4508
4508
  }, {
4509
4509
  default: withCtx(() => [
4510
4510
  (__props.action.icon)
@@ -4531,10 +4531,10 @@ script$h.__file = "src/lib/components/table/SingleAction.vue";
4531
4531
 
4532
4532
  const _hoisted_1$d = {
4533
4533
  key: 0,
4534
- class: "dropdown"
4534
+ class: "dropdown sh-table-dropdown"
4535
4535
  };
4536
4536
  const _hoisted_2$a = {
4537
- class: "sh-table-dropdown",
4537
+ class: "sh-table-dropdown-btn",
4538
4538
  type: "button",
4539
4539
  "data-bs-toggle": "dropdown",
4540
4540
  "aria-expanded": "false"
@@ -4574,7 +4574,8 @@ return (_ctx, _cache) => {
4574
4574
  key: act.label
4575
4575
  }, [
4576
4576
  createVNode(script$h, {
4577
- class: normalizeClass(["dropdown-item", act.class]),
4577
+ "action-class": " dropdown-item",
4578
+ class: normalizeClass(act.class),
4578
4579
  action: act,
4579
4580
  record: __props.record
4580
4581
  }, null, 8 /* PROPS */, ["class", "action", "record"])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.8.6",
3
+ "version": "4.8.7",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",