@iankibetsh/shframework 3.0.3 → 3.0.6
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/dist/library.mjs.css +32 -32
- package/dist/library.js +47 -37
- package/dist/library.mjs +47 -37
- package/package.json +1 -1
|
@@ -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
|
}
|
|
@@ -63,6 +31,38 @@
|
|
|
63
31
|
color: white;
|
|
64
32
|
}
|
|
65
33
|
|
|
34
|
+
.sh-phone{
|
|
35
|
+
display: flex;
|
|
36
|
+
width: 100%;
|
|
37
|
+
align-items: center;
|
|
38
|
+
padding: 0 0.25rem;
|
|
39
|
+
}
|
|
40
|
+
.phone-country{
|
|
41
|
+
width: 2rem;
|
|
42
|
+
border: none;
|
|
43
|
+
align-self: center;
|
|
44
|
+
outline: none !important;
|
|
45
|
+
padding: 0.4rem;
|
|
46
|
+
border-right: 1px solid #0003;
|
|
47
|
+
}
|
|
48
|
+
.phone-number{
|
|
49
|
+
width: calc(100% - 2.2rem);
|
|
50
|
+
border: none;
|
|
51
|
+
align-self: center;
|
|
52
|
+
outline: none;
|
|
53
|
+
margin-bottom: 0;
|
|
54
|
+
padding: 0.4rem;
|
|
55
|
+
}
|
|
56
|
+
.sh-phone img{
|
|
57
|
+
padding: 0.125rem;
|
|
58
|
+
width: 2rem;
|
|
59
|
+
height: 2rem;
|
|
60
|
+
}
|
|
61
|
+
.phone-number::placeholder{
|
|
62
|
+
font-weight: 300;
|
|
63
|
+
opacity: 0.5;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
66
|
.sh-selected-item{
|
|
67
67
|
line-height: unset!important;
|
|
68
68
|
}
|
package/dist/library.js
CHANGED
|
@@ -2019,11 +2019,11 @@ const _hoisted_5$9 = ["id"];
|
|
|
2019
2019
|
const _hoisted_6$8 = ["id", "aria-labelledby"];
|
|
2020
2020
|
const _hoisted_7$7 = { key: 0 };
|
|
2021
2021
|
const _hoisted_8$6 = ["onClick"];
|
|
2022
|
-
const _hoisted_9$
|
|
2022
|
+
const _hoisted_9$7 = {
|
|
2023
2023
|
key: 1,
|
|
2024
2024
|
class: "dropdown-item sh-suggest-no-results"
|
|
2025
2025
|
};
|
|
2026
|
-
const _hoisted_10$
|
|
2026
|
+
const _hoisted_10$6 = {
|
|
2027
2027
|
key: 2,
|
|
2028
2028
|
class: "dropdown-item sh-suggest-no-input"
|
|
2029
2029
|
};
|
|
@@ -2031,7 +2031,7 @@ const _hoisted_10$5 = {
|
|
|
2031
2031
|
|
|
2032
2032
|
var script$t = {
|
|
2033
2033
|
__name: 'ShSuggest',
|
|
2034
|
-
props: ['data','
|
|
2034
|
+
props: ['data','allowMultiple','url','modelValue'],
|
|
2035
2035
|
emits: ['update:modelValue'],
|
|
2036
2036
|
setup(__props, { emit }) {
|
|
2037
2037
|
|
|
@@ -2048,14 +2048,14 @@ vue.onMounted(() => {
|
|
|
2048
2048
|
resetData();
|
|
2049
2049
|
});
|
|
2050
2050
|
function resetData(){
|
|
2051
|
-
const data = props.data
|
|
2051
|
+
const data = props.data;
|
|
2052
2052
|
if(data) {
|
|
2053
2053
|
suggestions.value = data;
|
|
2054
2054
|
}
|
|
2055
2055
|
}
|
|
2056
2056
|
function addSuggestion(sgn){
|
|
2057
2057
|
let selected = selectedSuggestions.value;
|
|
2058
|
-
if(selected.length > 0 && !props.
|
|
2058
|
+
if(selected.length > 0 && !props.allowMultiple){
|
|
2059
2059
|
selected = [];
|
|
2060
2060
|
}
|
|
2061
2061
|
if(!selected.includes(sgn)){
|
|
@@ -2069,7 +2069,7 @@ function updateModelValue(){
|
|
|
2069
2069
|
let selectedItems = selectedSuggestions.value;
|
|
2070
2070
|
if(selectedItems.length === 0) {
|
|
2071
2071
|
emit('update:modelValue', null);
|
|
2072
|
-
} else if (!props.
|
|
2072
|
+
} else if (!props.allowMultiple) {
|
|
2073
2073
|
emit('update:modelValue', selectedItems[0].id);
|
|
2074
2074
|
} else {
|
|
2075
2075
|
const ids = selectedItems.map(item => {
|
|
@@ -2094,23 +2094,18 @@ function filterData(e){
|
|
|
2094
2094
|
}
|
|
2095
2095
|
let filterValue = e.target.innerText;
|
|
2096
2096
|
searchText.value = filterValue;
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
suggestions.value = propsData.filter(item=>{
|
|
2097
|
+
if(props.data) {
|
|
2098
|
+
suggestions.value = props.data.filter(item=>{
|
|
2100
2099
|
if(item.name.toLowerCase().includes(filterValue.toLowerCase())){
|
|
2101
2100
|
return item
|
|
2102
2101
|
}
|
|
2103
2102
|
});
|
|
2104
|
-
}
|
|
2105
|
-
|
|
2106
|
-
const propsUrl = props.url ?? props.fillSelects.url;
|
|
2107
|
-
if (propsUrl) {
|
|
2108
|
-
shApis.doGet(propsUrl, { all: 1,filter_value: filterValue }).then(res => {
|
|
2103
|
+
} else if (props.url) {
|
|
2104
|
+
shApis.doGet(props.url, { all: 1,filter_value: filterValue }).then(res => {
|
|
2109
2105
|
suggestions.value = res.data.data ?? res.data;
|
|
2110
2106
|
}).catch(res => {
|
|
2111
2107
|
console.log(res);
|
|
2112
2108
|
});
|
|
2113
|
-
}
|
|
2114
2109
|
}
|
|
2115
2110
|
}
|
|
2116
2111
|
|
|
@@ -2166,8 +2161,8 @@ return (_ctx, _cache) => {
|
|
|
2166
2161
|
], 64 /* STABLE_FRAGMENT */))
|
|
2167
2162
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2168
2163
|
: (vue.unref(searchText))
|
|
2169
|
-
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$
|
|
2170
|
-
: (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$
|
|
2164
|
+
? (vue.openBlock(), vue.createElementBlock("li", _hoisted_9$7, " No results found "))
|
|
2165
|
+
: (vue.openBlock(), vue.createElementBlock("li", _hoisted_10$6, " Type to search... "))
|
|
2171
2166
|
], 8 /* PROPS */, _hoisted_6$8)
|
|
2172
2167
|
]))
|
|
2173
2168
|
: vue.createCommentVNode("v-if", true)
|
|
@@ -2522,11 +2517,11 @@ const _hoisted_5$8 = { key: 0 };
|
|
|
2522
2517
|
const _hoisted_6$7 = { key: 1 };
|
|
2523
2518
|
const _hoisted_7$6 = { class: "row" };
|
|
2524
2519
|
const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2525
|
-
const _hoisted_9$
|
|
2526
|
-
const _hoisted_10$
|
|
2527
|
-
const _hoisted_11$
|
|
2528
|
-
const _hoisted_12$
|
|
2529
|
-
const _hoisted_13$
|
|
2520
|
+
const _hoisted_9$6 = { class: "col-md-12" };
|
|
2521
|
+
const _hoisted_10$5 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
2522
|
+
const _hoisted_11$5 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2523
|
+
const _hoisted_12$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2524
|
+
const _hoisted_13$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2530
2525
|
const _hoisted_14$3 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
|
|
2531
2526
|
const _hoisted_15$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2532
2527
|
const _hoisted_16$3 = ["name", "onFocus", "onUpdate:modelValue"];
|
|
@@ -2594,7 +2589,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2594
2589
|
key: field
|
|
2595
2590
|
}, [
|
|
2596
2591
|
vue.createElementVNode("label", _hoisted_8$5, vue.toDisplayString($options.getLabel(field)), 1 /* TEXT */),
|
|
2597
|
-
vue.createElementVNode("div", _hoisted_9$
|
|
2592
|
+
vue.createElementVNode("div", _hoisted_9$6, [
|
|
2598
2593
|
($options.getFieldType(field) === 'component')
|
|
2599
2594
|
? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.customComponent[field]), {
|
|
2600
2595
|
key: 0,
|
|
@@ -2619,7 +2614,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2619
2614
|
ref: 'file_'+field,
|
|
2620
2615
|
onChange: $event => ($options.handleFileUpload(field)),
|
|
2621
2616
|
type: "file"
|
|
2622
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$
|
|
2617
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$5))
|
|
2623
2618
|
: vue.createCommentVNode("v-if", true),
|
|
2624
2619
|
($options.getFieldType(field) === 'numeric')
|
|
2625
2620
|
? vue.withDirectives((vue.openBlock(), vue.createElementBlock("input", {
|
|
@@ -2631,7 +2626,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2631
2626
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2632
2627
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2633
2628
|
type: "number"
|
|
2634
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$
|
|
2629
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$5)), [
|
|
2635
2630
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2636
2631
|
])
|
|
2637
2632
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2645,7 +2640,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2645
2640
|
class: vue.normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2646
2641
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2647
2642
|
type: "password"
|
|
2648
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$
|
|
2643
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$4)), [
|
|
2649
2644
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2650
2645
|
])
|
|
2651
2646
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -2660,7 +2655,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2660
2655
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2661
2656
|
type: "email",
|
|
2662
2657
|
required: ""
|
|
2663
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$
|
|
2658
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$4)), [
|
|
2664
2659
|
[vue.vModelText, _ctx.form_elements[field]]
|
|
2665
2660
|
])
|
|
2666
2661
|
: vue.createCommentVNode("v-if", true),
|
|
@@ -3064,15 +3059,27 @@ const _hoisted_1$i = /*#__PURE__*/vue.createElementVNode("div", null, null, -1 /
|
|
|
3064
3059
|
const _hoisted_2$b = ["onUpdate:modelValue"];
|
|
3065
3060
|
const _hoisted_3$a = ["innerHTML"];
|
|
3066
3061
|
const _hoisted_4$a = ["innerHTML"];
|
|
3067
|
-
const _hoisted_5$7 =
|
|
3068
|
-
|
|
3069
|
-
|
|
3062
|
+
const _hoisted_5$7 = {
|
|
3063
|
+
key: 2,
|
|
3064
|
+
class: "form-notch"
|
|
3065
|
+
};
|
|
3066
|
+
const _hoisted_6$6 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */);
|
|
3067
|
+
const _hoisted_7$5 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */);
|
|
3068
|
+
const _hoisted_8$4 = /*#__PURE__*/vue.createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */);
|
|
3069
|
+
const _hoisted_9$5 = [
|
|
3070
|
+
_hoisted_6$6,
|
|
3071
|
+
_hoisted_7$5,
|
|
3072
|
+
_hoisted_8$4
|
|
3073
|
+
];
|
|
3074
|
+
const _hoisted_10$4 = ["innerHTML"];
|
|
3075
|
+
const _hoisted_11$4 = ["disabled"];
|
|
3076
|
+
const _hoisted_12$3 = {
|
|
3070
3077
|
key: 0,
|
|
3071
3078
|
class: "spinner-border spinner-border-sm",
|
|
3072
3079
|
role: "status",
|
|
3073
3080
|
"aria-hidden": "true"
|
|
3074
3081
|
};
|
|
3075
|
-
const
|
|
3082
|
+
const _hoisted_13$3 = { key: 1 };
|
|
3076
3083
|
|
|
3077
3084
|
|
|
3078
3085
|
var script$l = {
|
|
@@ -3327,16 +3334,19 @@ return (_ctx, _cache) => {
|
|
|
3327
3334
|
innerHTML: field.label
|
|
3328
3335
|
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3329
3336
|
: vue.createCommentVNode("v-if", true),
|
|
3337
|
+
(vue.unref(isFloating))
|
|
3338
|
+
? (vue.openBlock(), vue.createElementBlock("div", _hoisted_5$7, _hoisted_9$5))
|
|
3339
|
+
: vue.createCommentVNode("v-if", true),
|
|
3330
3340
|
(field.helper)
|
|
3331
3341
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3332
|
-
key:
|
|
3342
|
+
key: 3,
|
|
3333
3343
|
class: vue.normalizeClass(getElementClass('helperText')),
|
|
3334
3344
|
innerHTML: field.helper
|
|
3335
|
-
}, null, 10 /* CLASS, PROPS */,
|
|
3345
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_10$4))
|
|
3336
3346
|
: vue.createCommentVNode("v-if", true),
|
|
3337
3347
|
(validationErrors.value[field.field])
|
|
3338
3348
|
? (vue.openBlock(), vue.createElementBlock("div", {
|
|
3339
|
-
key:
|
|
3349
|
+
key: 4,
|
|
3340
3350
|
class: vue.normalizeClass(getElementClass('invalidFeedback'))
|
|
3341
3351
|
}, vue.toDisplayString(validationErrors.value[field.field]), 3 /* TEXT, CLASS */))
|
|
3342
3352
|
: vue.createCommentVNode("v-if", true)
|
|
@@ -3354,12 +3364,12 @@ return (_ctx, _cache) => {
|
|
|
3354
3364
|
class: vue.normalizeClass(getElementClass('actionBtn'))
|
|
3355
3365
|
}, [
|
|
3356
3366
|
(loading.value)
|
|
3357
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
3367
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_12$3))
|
|
3358
3368
|
: vue.createCommentVNode("v-if", true),
|
|
3359
3369
|
(!loading.value)
|
|
3360
|
-
? (vue.openBlock(), vue.createElementBlock("span",
|
|
3370
|
+
? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$3, "Submit"))
|
|
3361
3371
|
: vue.createCommentVNode("v-if", true)
|
|
3362
|
-
], 14 /* CLASS, STYLE, PROPS */,
|
|
3372
|
+
], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
|
|
3363
3373
|
], 2 /* CLASS */)
|
|
3364
3374
|
], 34 /* CLASS, HYDRATE_EVENTS */)
|
|
3365
3375
|
], 64 /* STABLE_FRAGMENT */))
|
package/dist/library.mjs
CHANGED
|
@@ -2007,11 +2007,11 @@ const _hoisted_5$9 = ["id"];
|
|
|
2007
2007
|
const _hoisted_6$8 = ["id", "aria-labelledby"];
|
|
2008
2008
|
const _hoisted_7$7 = { key: 0 };
|
|
2009
2009
|
const _hoisted_8$6 = ["onClick"];
|
|
2010
|
-
const _hoisted_9$
|
|
2010
|
+
const _hoisted_9$7 = {
|
|
2011
2011
|
key: 1,
|
|
2012
2012
|
class: "dropdown-item sh-suggest-no-results"
|
|
2013
2013
|
};
|
|
2014
|
-
const _hoisted_10$
|
|
2014
|
+
const _hoisted_10$6 = {
|
|
2015
2015
|
key: 2,
|
|
2016
2016
|
class: "dropdown-item sh-suggest-no-input"
|
|
2017
2017
|
};
|
|
@@ -2019,7 +2019,7 @@ const _hoisted_10$5 = {
|
|
|
2019
2019
|
|
|
2020
2020
|
var script$t = {
|
|
2021
2021
|
__name: 'ShSuggest',
|
|
2022
|
-
props: ['data','
|
|
2022
|
+
props: ['data','allowMultiple','url','modelValue'],
|
|
2023
2023
|
emits: ['update:modelValue'],
|
|
2024
2024
|
setup(__props, { emit }) {
|
|
2025
2025
|
|
|
@@ -2036,14 +2036,14 @@ onMounted(() => {
|
|
|
2036
2036
|
resetData();
|
|
2037
2037
|
});
|
|
2038
2038
|
function resetData(){
|
|
2039
|
-
const data = props.data
|
|
2039
|
+
const data = props.data;
|
|
2040
2040
|
if(data) {
|
|
2041
2041
|
suggestions.value = data;
|
|
2042
2042
|
}
|
|
2043
2043
|
}
|
|
2044
2044
|
function addSuggestion(sgn){
|
|
2045
2045
|
let selected = selectedSuggestions.value;
|
|
2046
|
-
if(selected.length > 0 && !props.
|
|
2046
|
+
if(selected.length > 0 && !props.allowMultiple){
|
|
2047
2047
|
selected = [];
|
|
2048
2048
|
}
|
|
2049
2049
|
if(!selected.includes(sgn)){
|
|
@@ -2057,7 +2057,7 @@ function updateModelValue(){
|
|
|
2057
2057
|
let selectedItems = selectedSuggestions.value;
|
|
2058
2058
|
if(selectedItems.length === 0) {
|
|
2059
2059
|
emit('update:modelValue', null);
|
|
2060
|
-
} else if (!props.
|
|
2060
|
+
} else if (!props.allowMultiple) {
|
|
2061
2061
|
emit('update:modelValue', selectedItems[0].id);
|
|
2062
2062
|
} else {
|
|
2063
2063
|
const ids = selectedItems.map(item => {
|
|
@@ -2082,23 +2082,18 @@ function filterData(e){
|
|
|
2082
2082
|
}
|
|
2083
2083
|
let filterValue = e.target.innerText;
|
|
2084
2084
|
searchText.value = filterValue;
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
suggestions.value = propsData.filter(item=>{
|
|
2085
|
+
if(props.data) {
|
|
2086
|
+
suggestions.value = props.data.filter(item=>{
|
|
2088
2087
|
if(item.name.toLowerCase().includes(filterValue.toLowerCase())){
|
|
2089
2088
|
return item
|
|
2090
2089
|
}
|
|
2091
2090
|
});
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
const propsUrl = props.url ?? props.fillSelects.url;
|
|
2095
|
-
if (propsUrl) {
|
|
2096
|
-
shApis.doGet(propsUrl, { all: 1,filter_value: filterValue }).then(res => {
|
|
2091
|
+
} else if (props.url) {
|
|
2092
|
+
shApis.doGet(props.url, { all: 1,filter_value: filterValue }).then(res => {
|
|
2097
2093
|
suggestions.value = res.data.data ?? res.data;
|
|
2098
2094
|
}).catch(res => {
|
|
2099
2095
|
console.log(res);
|
|
2100
2096
|
});
|
|
2101
|
-
}
|
|
2102
2097
|
}
|
|
2103
2098
|
}
|
|
2104
2099
|
|
|
@@ -2154,8 +2149,8 @@ return (_ctx, _cache) => {
|
|
|
2154
2149
|
], 64 /* STABLE_FRAGMENT */))
|
|
2155
2150
|
}), 128 /* KEYED_FRAGMENT */))
|
|
2156
2151
|
: (unref(searchText))
|
|
2157
|
-
? (openBlock(), createElementBlock("li", _hoisted_9$
|
|
2158
|
-
: (openBlock(), createElementBlock("li", _hoisted_10$
|
|
2152
|
+
? (openBlock(), createElementBlock("li", _hoisted_9$7, " No results found "))
|
|
2153
|
+
: (openBlock(), createElementBlock("li", _hoisted_10$6, " Type to search... "))
|
|
2159
2154
|
], 8 /* PROPS */, _hoisted_6$8)
|
|
2160
2155
|
]))
|
|
2161
2156
|
: createCommentVNode("v-if", true)
|
|
@@ -2510,11 +2505,11 @@ const _hoisted_5$8 = { key: 0 };
|
|
|
2510
2505
|
const _hoisted_6$7 = { key: 1 };
|
|
2511
2506
|
const _hoisted_7$6 = { class: "row" };
|
|
2512
2507
|
const _hoisted_8$5 = { class: "fg-label control-label text-capitalize control-bel col-md-12 request-form-label mb-2" };
|
|
2513
|
-
const _hoisted_9$
|
|
2514
|
-
const _hoisted_10$
|
|
2515
|
-
const _hoisted_11$
|
|
2516
|
-
const _hoisted_12$
|
|
2517
|
-
const _hoisted_13$
|
|
2508
|
+
const _hoisted_9$6 = { class: "col-md-12" };
|
|
2509
|
+
const _hoisted_10$5 = ["data-cy", "placeholder", "name", "onFocus", "onChange"];
|
|
2510
|
+
const _hoisted_11$5 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2511
|
+
const _hoisted_12$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2512
|
+
const _hoisted_13$4 = ["data-cy", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2518
2513
|
const _hoisted_14$3 = ["data-cy", "name", "onFocus", "onUpdate:modelValue"];
|
|
2519
2514
|
const _hoisted_15$3 = ["disabled", "placeholder", "name", "onFocus", "onUpdate:modelValue"];
|
|
2520
2515
|
const _hoisted_16$3 = ["name", "onFocus", "onUpdate:modelValue"];
|
|
@@ -2582,7 +2577,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2582
2577
|
key: field
|
|
2583
2578
|
}, [
|
|
2584
2579
|
createElementVNode("label", _hoisted_8$5, toDisplayString($options.getLabel(field)), 1 /* TEXT */),
|
|
2585
|
-
createElementVNode("div", _hoisted_9$
|
|
2580
|
+
createElementVNode("div", _hoisted_9$6, [
|
|
2586
2581
|
($options.getFieldType(field) === 'component')
|
|
2587
2582
|
? (openBlock(), createBlock(resolveDynamicComponent($props.customComponent[field]), {
|
|
2588
2583
|
key: 0,
|
|
@@ -2607,7 +2602,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2607
2602
|
ref: 'file_'+field,
|
|
2608
2603
|
onChange: $event => ($options.handleFileUpload(field)),
|
|
2609
2604
|
type: "file"
|
|
2610
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$
|
|
2605
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_10$5))
|
|
2611
2606
|
: createCommentVNode("v-if", true),
|
|
2612
2607
|
($options.getFieldType(field) === 'numeric')
|
|
2613
2608
|
? withDirectives((openBlock(), createElementBlock("input", {
|
|
@@ -2619,7 +2614,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2619
2614
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2620
2615
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2621
2616
|
type: "number"
|
|
2622
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$
|
|
2617
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_11$5)), [
|
|
2623
2618
|
[vModelText, _ctx.form_elements[field]]
|
|
2624
2619
|
])
|
|
2625
2620
|
: createCommentVNode("v-if", true),
|
|
@@ -2633,7 +2628,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2633
2628
|
class: normalizeClass([_ctx.form_errors[field] == null ? ' field_' + field:'is-invalid ' + field, "form-control"]),
|
|
2634
2629
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2635
2630
|
type: "password"
|
|
2636
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$
|
|
2631
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_12$4)), [
|
|
2637
2632
|
[vModelText, _ctx.form_elements[field]]
|
|
2638
2633
|
])
|
|
2639
2634
|
: createCommentVNode("v-if", true),
|
|
@@ -2648,7 +2643,7 @@ function render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2648
2643
|
"onUpdate:modelValue": $event => ((_ctx.form_elements[field]) = $event),
|
|
2649
2644
|
type: "email",
|
|
2650
2645
|
required: ""
|
|
2651
|
-
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$
|
|
2646
|
+
}, null, 42 /* CLASS, PROPS, HYDRATE_EVENTS */, _hoisted_13$4)), [
|
|
2652
2647
|
[vModelText, _ctx.form_elements[field]]
|
|
2653
2648
|
])
|
|
2654
2649
|
: createCommentVNode("v-if", true),
|
|
@@ -3052,15 +3047,27 @@ const _hoisted_1$i = /*#__PURE__*/createElementVNode("div", null, null, -1 /* HO
|
|
|
3052
3047
|
const _hoisted_2$b = ["onUpdate:modelValue"];
|
|
3053
3048
|
const _hoisted_3$a = ["innerHTML"];
|
|
3054
3049
|
const _hoisted_4$a = ["innerHTML"];
|
|
3055
|
-
const _hoisted_5$7 =
|
|
3056
|
-
|
|
3057
|
-
|
|
3050
|
+
const _hoisted_5$7 = {
|
|
3051
|
+
key: 2,
|
|
3052
|
+
class: "form-notch"
|
|
3053
|
+
};
|
|
3054
|
+
const _hoisted_6$6 = /*#__PURE__*/createElementVNode("div", { class: "form-notch-leading" }, null, -1 /* HOISTED */);
|
|
3055
|
+
const _hoisted_7$5 = /*#__PURE__*/createElementVNode("div", { class: "form-notch-middle" }, null, -1 /* HOISTED */);
|
|
3056
|
+
const _hoisted_8$4 = /*#__PURE__*/createElementVNode("div", { class: "form-notch-trailing" }, null, -1 /* HOISTED */);
|
|
3057
|
+
const _hoisted_9$5 = [
|
|
3058
|
+
_hoisted_6$6,
|
|
3059
|
+
_hoisted_7$5,
|
|
3060
|
+
_hoisted_8$4
|
|
3061
|
+
];
|
|
3062
|
+
const _hoisted_10$4 = ["innerHTML"];
|
|
3063
|
+
const _hoisted_11$4 = ["disabled"];
|
|
3064
|
+
const _hoisted_12$3 = {
|
|
3058
3065
|
key: 0,
|
|
3059
3066
|
class: "spinner-border spinner-border-sm",
|
|
3060
3067
|
role: "status",
|
|
3061
3068
|
"aria-hidden": "true"
|
|
3062
3069
|
};
|
|
3063
|
-
const
|
|
3070
|
+
const _hoisted_13$3 = { key: 1 };
|
|
3064
3071
|
|
|
3065
3072
|
|
|
3066
3073
|
var script$l = {
|
|
@@ -3315,16 +3322,19 @@ return (_ctx, _cache) => {
|
|
|
3315
3322
|
innerHTML: field.label
|
|
3316
3323
|
}, null, 10 /* CLASS, PROPS */, _hoisted_4$a))
|
|
3317
3324
|
: createCommentVNode("v-if", true),
|
|
3325
|
+
(unref(isFloating))
|
|
3326
|
+
? (openBlock(), createElementBlock("div", _hoisted_5$7, _hoisted_9$5))
|
|
3327
|
+
: createCommentVNode("v-if", true),
|
|
3318
3328
|
(field.helper)
|
|
3319
3329
|
? (openBlock(), createElementBlock("div", {
|
|
3320
|
-
key:
|
|
3330
|
+
key: 3,
|
|
3321
3331
|
class: normalizeClass(getElementClass('helperText')),
|
|
3322
3332
|
innerHTML: field.helper
|
|
3323
|
-
}, null, 10 /* CLASS, PROPS */,
|
|
3333
|
+
}, null, 10 /* CLASS, PROPS */, _hoisted_10$4))
|
|
3324
3334
|
: createCommentVNode("v-if", true),
|
|
3325
3335
|
(validationErrors.value[field.field])
|
|
3326
3336
|
? (openBlock(), createElementBlock("div", {
|
|
3327
|
-
key:
|
|
3337
|
+
key: 4,
|
|
3328
3338
|
class: normalizeClass(getElementClass('invalidFeedback'))
|
|
3329
3339
|
}, toDisplayString(validationErrors.value[field.field]), 3 /* TEXT, CLASS */))
|
|
3330
3340
|
: createCommentVNode("v-if", true)
|
|
@@ -3342,12 +3352,12 @@ return (_ctx, _cache) => {
|
|
|
3342
3352
|
class: normalizeClass(getElementClass('actionBtn'))
|
|
3343
3353
|
}, [
|
|
3344
3354
|
(loading.value)
|
|
3345
|
-
? (openBlock(), createElementBlock("span",
|
|
3355
|
+
? (openBlock(), createElementBlock("span", _hoisted_12$3))
|
|
3346
3356
|
: createCommentVNode("v-if", true),
|
|
3347
3357
|
(!loading.value)
|
|
3348
|
-
? (openBlock(), createElementBlock("span",
|
|
3358
|
+
? (openBlock(), createElementBlock("span", _hoisted_13$3, "Submit"))
|
|
3349
3359
|
: createCommentVNode("v-if", true)
|
|
3350
|
-
], 14 /* CLASS, STYLE, PROPS */,
|
|
3360
|
+
], 14 /* CLASS, STYLE, PROPS */, _hoisted_11$4)
|
|
3351
3361
|
], 2 /* CLASS */)
|
|
3352
3362
|
], 34 /* CLASS, HYDRATE_EVENTS */)
|
|
3353
3363
|
], 64 /* STABLE_FRAGMENT */))
|