inertia-bootstrap-forms 2.1.2 → 2.1.3
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/{index-gG_QMV91.js → index-BBS5q19R.js} +742 -762
- package/dist/{index-DPnt8V-r.js → index-Bh4eONwE.js} +1 -1
- package/dist/inertia-bootstrap-forms.es.js +1 -1
- package/dist/inertia-bootstrap-forms.umd.js +5 -5
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/GroupControl.vue +1 -1
- package/src/PersianDatePickerInput.vue +55 -61
package/package.json
CHANGED
package/src/GroupControl.vue
CHANGED
|
@@ -61,7 +61,7 @@ export default defineComponent({
|
|
|
61
61
|
})
|
|
62
62
|
</script>
|
|
63
63
|
<template>
|
|
64
|
-
<div class="form-control-group" :data-group-id="groupID" ref="groupEl">
|
|
64
|
+
<div class="form-control-group" :data-name="name" :data-group-id="groupID" ref="groupEl">
|
|
65
65
|
<slot/>
|
|
66
66
|
</div>
|
|
67
67
|
</template>
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
<script>
|
|
2
2
|
import {computed, defineAsyncComponent, defineComponent, inject} from "vue";
|
|
3
|
+
|
|
3
4
|
const Vue3PersianDatetimePicker = defineAsyncComponent(() =>
|
|
4
5
|
import('vue3-persian-datetime-picker')
|
|
5
6
|
);
|
|
@@ -21,6 +22,7 @@ export default defineComponent({
|
|
|
21
22
|
type: String,
|
|
22
23
|
default: 'date',
|
|
23
24
|
},
|
|
25
|
+
disabled: Boolean,
|
|
24
26
|
min: String,
|
|
25
27
|
max: String,
|
|
26
28
|
range: Boolean,
|
|
@@ -29,12 +31,16 @@ export default defineComponent({
|
|
|
29
31
|
},
|
|
30
32
|
format: {
|
|
31
33
|
type: String,
|
|
32
|
-
default: 'jYYYY
|
|
34
|
+
default: 'jYYYY/jMM/jDD',
|
|
33
35
|
},
|
|
34
36
|
inputFormat: {
|
|
35
37
|
type: String,
|
|
36
38
|
default: null,
|
|
37
39
|
},
|
|
40
|
+
simple: {
|
|
41
|
+
type: Boolean,
|
|
42
|
+
default: false,
|
|
43
|
+
},
|
|
38
44
|
placeholder: String,
|
|
39
45
|
},
|
|
40
46
|
setup(props) {
|
|
@@ -76,7 +82,7 @@ export default defineComponent({
|
|
|
76
82
|
},
|
|
77
83
|
computed: {
|
|
78
84
|
isSsr() {
|
|
79
|
-
return typeof window === 'undefined';
|
|
85
|
+
return !window || typeof window === 'undefined';
|
|
80
86
|
},
|
|
81
87
|
inputID() {
|
|
82
88
|
return this.form.getID(this)
|
|
@@ -89,75 +95,63 @@ export default defineComponent({
|
|
|
89
95
|
</script>
|
|
90
96
|
|
|
91
97
|
<template>
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
:
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
:disabled="form?.processing"
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
class="
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
d="M14 22H10C6.22876 22 4.34315 22 3.17157 20.8284C2 19.6569 2 17.7712 2 14V12C2 8.22876 2 6.34315 3.17157 5.17157C4.34315 4 6.22876 4 10 4H14C17.7712 4 19.6569 4 20.8284 5.17157C22 6.34315 22 8.22876 22 12V14C22 17.7712 22 19.6569 20.8284 20.8284C20.1752 21.4816 19.3001 21.7706 18 21.8985"
|
|
109
|
-
stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
|
|
110
|
-
<path d="M7 4V2.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
|
|
111
|
-
<path d="M17 4V2.5" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
|
|
112
|
-
<path d="M21.5 9H16.625H10.75M2 9H5.875" stroke="#1C274C" stroke-width="1.5" stroke-linecap="round"/>
|
|
113
|
-
<path d="M18 17C18 17.5523 17.5523 18 17 18C16.4477 18 16 17.5523 16 17C16 16.4477 16.4477 16 17 16C17.5523 16 18 16.4477 18 17Z" fill="#1C274C"/>
|
|
114
|
-
<path d="M18 13C18 13.5523 17.5523 14 17 14C16.4477 14 16 13.5523 16 13C16 12.4477 16.4477 12 17 12C17.5523 12 18 12.4477 18 13Z" fill="#1C274C"/>
|
|
115
|
-
<path d="M13 17C13 17.5523 12.5523 18 12 18C11.4477 18 11 17.5523 11 17C11 16.4477 11.4477 16 12 16C12.5523 16 13 16.4477 13 17Z" fill="#1C274C"/>
|
|
116
|
-
<path d="M13 13C13 13.5523 12.5523 14 12 14C11.4477 14 11 13.5523 11 13C11 12.4477 11.4477 12 12 12C12.5523 12 13 12.4477 13 13Z" fill="#1C274C"/>
|
|
117
|
-
<path d="M8 17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17C6 16.4477 6.44772 16 7 16C7.55228 16 8 16.4477 8 17Z" fill="#1C274C"/>
|
|
118
|
-
<path d="M8 13C8 13.5523 7.55228 14 7 14C6.44772 14 6 13.5523 6 13C6 12.4477 6.44772 12 7 12C7.55228 12 8 12.4477 8 13Z" fill="#1C274C"/>
|
|
119
|
-
</svg>
|
|
120
|
-
</button>
|
|
121
|
-
</div>
|
|
122
|
-
<Vue3PersianDatetimePicker
|
|
123
|
-
:type="calendar"
|
|
124
|
-
:view="view"
|
|
125
|
-
:min="min"
|
|
126
|
-
:max="max"
|
|
127
|
-
v-if="!isSsr"
|
|
128
|
-
jumpminute="15"
|
|
129
|
-
:range="range"
|
|
130
|
-
:locale="locale"
|
|
131
|
-
:simple="false"
|
|
132
|
-
:roundminute="true"
|
|
133
|
-
:showNowBtn="true"
|
|
134
|
-
:autoSubmit="true"
|
|
135
|
-
:format="format"
|
|
136
|
-
:inputFormat="(inputFormat ? inputFormat : format)"
|
|
137
|
-
:displayFormat="format"
|
|
138
|
-
v-model="modelValue"
|
|
139
|
-
:custom-input="'#'+inputID"/>
|
|
98
|
+
<template v-if="!isSsr">
|
|
99
|
+
|
|
100
|
+
<Vue3PersianDatetimePicker
|
|
101
|
+
v-model="modelValue"
|
|
102
|
+
:type="calendar"
|
|
103
|
+
editable
|
|
104
|
+
jumpminute="15"
|
|
105
|
+
:disabled="form?.processing || disabled"
|
|
106
|
+
:roundminute="true"
|
|
107
|
+
:showNowBtn="true"
|
|
108
|
+
:autoSubmit="true"
|
|
109
|
+
:inputFormat="(inputFormat ? inputFormat : format)"
|
|
110
|
+
input-class="form-control"
|
|
111
|
+
v-bind="$props"/>
|
|
112
|
+
</template>
|
|
113
|
+
|
|
140
114
|
</template>
|
|
141
115
|
<style>
|
|
142
|
-
.
|
|
143
|
-
|
|
116
|
+
.vpd-main .vpd-input-group {
|
|
117
|
+
display: block !important;
|
|
144
118
|
}
|
|
145
119
|
|
|
146
|
-
.input-group
|
|
147
|
-
|
|
148
|
-
|
|
120
|
+
.vpd-main .vpd-input-group input {
|
|
121
|
+
padding: 0.375rem 0.75rem !important;
|
|
122
|
+
border-radius: var(--bs-border-radius, .5rem) !important;
|
|
123
|
+
line-height: var(--bs-body-line-height, 1.5) !important;
|
|
124
|
+
border: 1px solid var(--bs-border-color, #dadada) !important
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
.vpd-main .vpd-icon-btn {
|
|
128
|
+
position: absolute;
|
|
129
|
+
right: 5px;
|
|
130
|
+
left: auto;
|
|
131
|
+
top: 0;
|
|
132
|
+
bottom: 0;
|
|
133
|
+
height: 30px;
|
|
134
|
+
min-width: 40px;
|
|
135
|
+
border: 1px solid var(--bs-secondary) !important;
|
|
136
|
+
background-color: var(--bs-secondary-bg) !important;
|
|
137
|
+
color: var(--bs-body-color, #000) !important;
|
|
138
|
+
border-radius: var(--bs-border-radius, .5rem);
|
|
139
|
+
margin: auto;
|
|
140
|
+
transition: all ease 0.3s;
|
|
149
141
|
}
|
|
150
142
|
|
|
151
|
-
.
|
|
152
|
-
|
|
143
|
+
.vpd-main .vpd-icon-btn svg {
|
|
144
|
+
fill: var(--bs-body-color, #000) !important;
|
|
145
|
+
transition: all ease 0.3s;
|
|
153
146
|
}
|
|
154
147
|
|
|
155
|
-
.
|
|
156
|
-
|
|
148
|
+
.vpd-main .vpd-icon-btn:hover {
|
|
149
|
+
background-color: var(--bs-secondary) !important;
|
|
150
|
+
color: var(--bs-body-color) !important;
|
|
157
151
|
}
|
|
158
152
|
|
|
159
|
-
.
|
|
160
|
-
|
|
153
|
+
.vpd-main .vpd-icon-btn:hover svg {
|
|
154
|
+
fill: var(--bs-body-bg, #000) !important;
|
|
161
155
|
}
|
|
162
156
|
|
|
163
157
|
.vpd-content {
|