@iankibetsh/shframework 4.4.8 → 4.5.0

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.
@@ -63,22 +63,6 @@
63
63
  color: white;
64
64
  }
65
65
 
66
- .sh-selected-item{
67
- line-height: unset!important;
68
- }
69
- .sh-suggestion-input{
70
- padding: 0.375rem 0.75rem;
71
- }
72
- .sh-suggest{
73
- margin-bottom: 1rem;
74
- padding: 0rem 0rem;
75
- }
76
- .sh-suggest-control::after{
77
- margin-top: auto;
78
- margin-bottom: auto;
79
- margin-right: 0.255em;
80
- }
81
-
82
66
  .permissions-main {
83
67
  background: #edeff2;
84
68
  }
@@ -111,6 +95,22 @@
111
95
  flex-grow: 1;
112
96
  }
113
97
 
98
+ .sh-selected-item{
99
+ line-height: unset!important;
100
+ }
101
+ .sh-suggestion-input{
102
+ padding: 0.375rem 0.75rem;
103
+ }
104
+ .sh-suggest{
105
+ margin-bottom: 1rem;
106
+ padding: 0rem 0rem;
107
+ }
108
+ .sh-suggest-control::after{
109
+ margin-top: auto;
110
+ margin-bottom: auto;
111
+ margin-right: 0.255em;
112
+ }
113
+
114
114
  .callout{
115
115
  --bs-link-color-rgb: 110,168,254;
116
116
  --bs-code-color: #e685b5;
package/dist/library.js CHANGED
@@ -1930,7 +1930,7 @@ const countries = [
1930
1930
 
1931
1931
  var script$w = {
1932
1932
  name: 'PhoneInput',
1933
- props: ['modelValue', 'country_code'],
1933
+ props: ['modelValue', 'country_code','disabled'],
1934
1934
  data () {
1935
1935
  return {
1936
1936
  input: this.modelValue,
@@ -2005,6 +2005,7 @@ const _hoisted_2$e = {
2005
2005
  };
2006
2006
  const _hoisted_3$d = ["src"];
2007
2007
  const _hoisted_4$d = ["value"];
2008
+ const _hoisted_5$b = ["disabled"];
2008
2009
 
2009
2010
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2010
2011
  return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1$o, [
@@ -2031,11 +2032,12 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2031
2032
  vue.withDirectives(vue.createElementVNode("input", {
2032
2033
  type: "number",
2033
2034
  class: "phone-number",
2035
+ disabled: $props.disabled,
2034
2036
  "data-cy": "phone_input",
2035
2037
  onInput: _cache[2] || (_cache[2] = (...args) => ($options.updateValue && $options.updateValue(...args))),
2036
2038
  placeholder: "712345678",
2037
2039
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.input) = $event))
2038
- }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
2040
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$b), [
2039
2041
  [vue.vModelText, $data.input]
2040
2042
  ])
2041
2043
  ]))
@@ -3236,7 +3238,7 @@ var script$m = {
3236
3238
  'phones', 'numbers', 'selects', 'dates', 'gqlMutation',
3237
3239
  'required'
3238
3240
  ],
3239
- emits: ['success', 'fieldChanged', 'formSubmitted', 'formError'],
3241
+ emits: ['success','preSubmit', 'fieldChanged', 'formSubmitted', 'formError'],
3240
3242
  setup(__props, { emit: __emit }) {
3241
3243
 
3242
3244
  const props = __props;
@@ -3355,6 +3357,7 @@ const submitForm = e => {
3355
3357
  if (args == '()') {
3356
3358
  args = '';
3357
3359
  }
3360
+ emit('preSubmit', data);
3358
3361
  const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
3359
3362
  shApis.graphQlMutate(mutation).then(res => handleSuccessRequest(res)).catch(reason => handlefailedRequest(reason));
3360
3363
  } else {
package/dist/library.mjs CHANGED
@@ -1918,7 +1918,7 @@ const countries = [
1918
1918
 
1919
1919
  var script$w = {
1920
1920
  name: 'PhoneInput',
1921
- props: ['modelValue', 'country_code'],
1921
+ props: ['modelValue', 'country_code','disabled'],
1922
1922
  data () {
1923
1923
  return {
1924
1924
  input: this.modelValue,
@@ -1993,6 +1993,7 @@ const _hoisted_2$e = {
1993
1993
  };
1994
1994
  const _hoisted_3$d = ["src"];
1995
1995
  const _hoisted_4$d = ["value"];
1996
+ const _hoisted_5$b = ["disabled"];
1996
1997
 
1997
1998
  function render$3(_ctx, _cache, $props, $setup, $data, $options) {
1998
1999
  return (openBlock(), createElementBlock("div", _hoisted_1$o, [
@@ -2019,11 +2020,12 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
2019
2020
  withDirectives(createElementVNode("input", {
2020
2021
  type: "number",
2021
2022
  class: "phone-number",
2023
+ disabled: $props.disabled,
2022
2024
  "data-cy": "phone_input",
2023
2025
  onInput: _cache[2] || (_cache[2] = (...args) => ($options.updateValue && $options.updateValue(...args))),
2024
2026
  placeholder: "712345678",
2025
2027
  "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (($data.input) = $event))
2026
- }, null, 544 /* NEED_HYDRATION, NEED_PATCH */), [
2028
+ }, null, 40 /* PROPS, NEED_HYDRATION */, _hoisted_5$b), [
2027
2029
  [vModelText, $data.input]
2028
2030
  ])
2029
2031
  ]))
@@ -3224,7 +3226,7 @@ var script$m = {
3224
3226
  'phones', 'numbers', 'selects', 'dates', 'gqlMutation',
3225
3227
  'required'
3226
3228
  ],
3227
- emits: ['success', 'fieldChanged', 'formSubmitted', 'formError'],
3229
+ emits: ['success','preSubmit', 'fieldChanged', 'formSubmitted', 'formError'],
3228
3230
  setup(__props, { emit: __emit }) {
3229
3231
 
3230
3232
  const props = __props;
@@ -3343,6 +3345,7 @@ const submitForm = e => {
3343
3345
  if (args == '()') {
3344
3346
  args = '';
3345
3347
  }
3348
+ emit('preSubmit', data);
3346
3349
  const mutation = `{\n${props.gqlMutation} ${args} {\n${selectFields.join(`\n`)}\n}\n}`;
3347
3350
  shApis.graphQlMutate(mutation).then(res => handleSuccessRequest(res)).catch(reason => handlefailedRequest(reason));
3348
3351
  } else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iankibetsh/shframework",
3
- "version": "4.4.8",
3
+ "version": "4.5.0",
4
4
  "description": "Vue library for handling laravel backend",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.mjs",