@iankibetsh/shframework 4.6.3 → 4.6.5

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
- .sh-phone{
3
- display: flex;
4
- width: 100%;
5
- align-items: center;
6
- padding: 0 0.25rem;
7
- }
8
- .phone-country{
9
- width: 2rem;
10
- border: none;
11
- align-self: center;
12
- outline: none !important;
13
- padding: 0.4rem;
14
- border-right: 1px solid #0003;
15
- }
16
- .phone-number{
17
- width: calc(100% - 2.2rem);
18
- border: none;
19
- align-self: center;
20
- outline: none;
21
- margin-bottom: 0;
22
- padding: 0.4rem;
23
- }
24
- .sh-phone img{
25
- padding: 0.125rem;
26
- width: 2rem;
27
- height: 2rem;
28
- }
29
- .phone-number::placeholder{
30
- font-weight: 300;
31
- opacity: 0.5;
32
- }
33
-
34
2
  .colored-toast.swal2-icon-success {
35
3
  background-color: #a5dc86 !important;
36
4
  }
@@ -95,6 +63,38 @@
95
63
  flex-grow: 1;
96
64
  }
97
65
 
66
+ .sh-phone{
67
+ display: flex;
68
+ width: 100%;
69
+ align-items: center;
70
+ padding: 0 0.25rem;
71
+ }
72
+ .phone-country{
73
+ width: 2rem;
74
+ border: none;
75
+ align-self: center;
76
+ outline: none !important;
77
+ padding: 0.4rem;
78
+ border-right: 1px solid #0003;
79
+ }
80
+ .phone-number{
81
+ width: calc(100% - 2.2rem);
82
+ border: none;
83
+ align-self: center;
84
+ outline: none;
85
+ margin-bottom: 0;
86
+ padding: 0.4rem;
87
+ }
88
+ .sh-phone img{
89
+ padding: 0.125rem;
90
+ width: 2rem;
91
+ height: 2rem;
92
+ }
93
+ .phone-number::placeholder{
94
+ font-weight: 300;
95
+ opacity: 0.5;
96
+ }
97
+
98
98
  .sh-selected-item{
99
99
  line-height: unset!important;
100
100
  }
package/dist/library.js CHANGED
@@ -3948,6 +3948,7 @@ var script$k = {
3948
3948
  'submitBtnClass',
3949
3949
  'fields',
3950
3950
  'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
3951
+ 'modalSize',
3951
3952
  'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
3952
3953
  'failedCallback', 'labels', 'editors',
3953
3954
  'datePickers',
@@ -3980,13 +3981,14 @@ return (_ctx, _cache) => {
3980
3981
  ], 10 /* CLASS, PROPS */, _hoisted_1$h),
3981
3982
  vue.createVNode(script$n, {
3982
3983
  "modal-id": modalId,
3983
- "modal-title": __props.modalTitle
3984
+ "modal-title": __props.modalTitle,
3985
+ "modal-size": __props.modalSize
3984
3986
  }, {
3985
3987
  default: vue.withCtx(() => [
3986
3988
  vue.createVNode(script$o, vue.mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3987
3989
  ]),
3988
3990
  _: 1 /* STABLE */
3989
- }, 8 /* PROPS */, ["modal-title"])
3991
+ }, 8 /* PROPS */, ["modal-title", "modal-size"])
3990
3992
  ], 64 /* STABLE_FRAGMENT */))
3991
3993
  }
3992
3994
  }
@@ -4421,7 +4423,7 @@ var script$g = {
4421
4423
  default: 'Action failed'
4422
4424
  }
4423
4425
  },
4424
- emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
4426
+ emits: ['actionSuccessful', 'actionFailed','success','failed','canceled','actionCanceled'],
4425
4427
  setup(__props, { emit: __emit }) {
4426
4428
 
4427
4429
  const props = __props;
@@ -4441,6 +4443,7 @@ const actionFailed = reason =>{
4441
4443
  processing.value = false;
4442
4444
  reason.actionType = 'silentAction';
4443
4445
  emit('actionFailed', reason);
4446
+ emit('failed', reason);
4444
4447
  shRepo.showToast(reason.value.error.message ?? props.failMessage,'error');
4445
4448
  };
4446
4449
  function runAction () {
@@ -4455,6 +4458,7 @@ function runAction () {
4455
4458
  }
4456
4459
  } else {
4457
4460
  emit('actionCanceled');
4461
+ emit('canceled');
4458
4462
  processing.value = false;
4459
4463
  }
4460
4464
  }).catch(ex => {
package/dist/library.mjs CHANGED
@@ -3936,6 +3936,7 @@ var script$k = {
3936
3936
  'submitBtnClass',
3937
3937
  'fields',
3938
3938
  'columns', 'placeholders', 'field_permissions', 'retainDataAfterSubmission',
3939
+ 'modalSize',
3939
3940
  'currentData', 'actionLabel', 'fillSelects', 'phones', 'successCallback',
3940
3941
  'failedCallback', 'labels', 'editors',
3941
3942
  'datePickers',
@@ -3968,13 +3969,14 @@ return (_ctx, _cache) => {
3968
3969
  ], 10 /* CLASS, PROPS */, _hoisted_1$h),
3969
3970
  createVNode(script$n, {
3970
3971
  "modal-id": modalId,
3971
- "modal-title": __props.modalTitle
3972
+ "modal-title": __props.modalTitle,
3973
+ "modal-size": __props.modalSize
3972
3974
  }, {
3973
3975
  default: withCtx(() => [
3974
3976
  createVNode(script$o, mergeProps({ onSuccess: success }, props), null, 16 /* FULL_PROPS */)
3975
3977
  ]),
3976
3978
  _: 1 /* STABLE */
3977
- }, 8 /* PROPS */, ["modal-title"])
3979
+ }, 8 /* PROPS */, ["modal-title", "modal-size"])
3978
3980
  ], 64 /* STABLE_FRAGMENT */))
3979
3981
  }
3980
3982
  }
@@ -4409,7 +4411,7 @@ var script$g = {
4409
4411
  default: 'Action failed'
4410
4412
  }
4411
4413
  },
4412
- emits: ['actionSuccessful', 'actionFailed','success','actionCanceled'],
4414
+ emits: ['actionSuccessful', 'actionFailed','success','failed','canceled','actionCanceled'],
4413
4415
  setup(__props, { emit: __emit }) {
4414
4416
 
4415
4417
  const props = __props;
@@ -4429,6 +4431,7 @@ const actionFailed = reason =>{
4429
4431
  processing.value = false;
4430
4432
  reason.actionType = 'silentAction';
4431
4433
  emit('actionFailed', reason);
4434
+ emit('failed', reason);
4432
4435
  shRepo.showToast(reason.value.error.message ?? props.failMessage,'error');
4433
4436
  };
4434
4437
  function runAction () {
@@ -4443,6 +4446,7 @@ function runAction () {
4443
4446
  }
4444
4447
  } else {
4445
4448
  emit('actionCanceled');
4449
+ emit('canceled');
4446
4450
  processing.value = false;
4447
4451
  }
4448
4452
  }).catch(ex => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.6.3",
3
+ "version": "4.6.5",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",