@tak-ps/vue-tabler 1.3.0 → 2.0.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.
- package/CHANGELOG.md +10 -1
- package/components/Input.vue +6 -2
- package/components/Loading.vue +25 -0
- package/lib.js +13 -10
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -10,13 +10,22 @@
|
|
|
10
10
|
|
|
11
11
|
## Version History
|
|
12
12
|
|
|
13
|
+
### v2.0.0
|
|
14
|
+
|
|
15
|
+
- :rocket: Prefix all components with `Tabler` to pass Vue ESLint
|
|
16
|
+
- :tada: Allow user defined `type` prop in Input Component
|
|
17
|
+
|
|
18
|
+
### v1.4.0
|
|
19
|
+
|
|
20
|
+
- :tada: `Loading` component
|
|
21
|
+
|
|
13
22
|
### v1.3.0
|
|
14
23
|
|
|
15
24
|
- :rocket: `Input#disabled` prop
|
|
16
25
|
|
|
17
26
|
### v1.2.0
|
|
18
27
|
|
|
19
|
-
- :
|
|
28
|
+
- :tada: `Input` Component
|
|
20
29
|
|
|
21
30
|
### v1.1.0
|
|
22
31
|
|
package/components/Input.vue
CHANGED
|
@@ -3,12 +3,12 @@
|
|
|
3
3
|
<label v-if='label' class="form-label" v-text='label'></label>
|
|
4
4
|
|
|
5
5
|
<template v-if='!rows || rows <= 1'>
|
|
6
|
-
<input :disabled='disabled' :value='modelValue' @input='event => current = event.target.value' type=
|
|
6
|
+
<input :disabled='disabled' :value='modelValue' @input='event => current = event.target.value' :type='type' :class='{
|
|
7
7
|
"is-invalid": error
|
|
8
8
|
}' class="form-control" :placeholder='label||placeholder||""'/>
|
|
9
9
|
</template>
|
|
10
10
|
<template v-else>
|
|
11
|
-
<textarea :disabled='disabled' :rows='rows' :value='modelValue' @input='event => current = event.target.value' type=
|
|
11
|
+
<textarea :disabled='disabled' :rows='rows' :value='modelValue' @input='event => current = event.target.value' :type='type' :class='{
|
|
12
12
|
"is-invalid": error
|
|
13
13
|
}' class="form-control" :placeholder='label||placeholder||""'/>
|
|
14
14
|
</template>
|
|
@@ -33,6 +33,10 @@ export default {
|
|
|
33
33
|
type: Number,
|
|
34
34
|
default: 1
|
|
35
35
|
},
|
|
36
|
+
type: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: 'text'
|
|
39
|
+
},
|
|
36
40
|
label: String,
|
|
37
41
|
placeholder: String,
|
|
38
42
|
error: String,
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class='w-full'>
|
|
3
|
+
<div class='d-flex justify-content-center my-4'>
|
|
4
|
+
<div class="spinner-border" role="status"></div>
|
|
5
|
+
</div>
|
|
6
|
+
|
|
7
|
+
<template v-if='desc && desc.length'>
|
|
8
|
+
<div class='d-flex justify-content-center my-4'>
|
|
9
|
+
<div class='' v-text='desc'></div>
|
|
10
|
+
</div>
|
|
11
|
+
</template>
|
|
12
|
+
</div>
|
|
13
|
+
</template>
|
|
14
|
+
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: 'Loading',
|
|
18
|
+
props: {
|
|
19
|
+
desc: {
|
|
20
|
+
type: String,
|
|
21
|
+
default: 'Loading...'
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
</script>
|
package/lib.js
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import TablerError from './components/Err.vue'
|
|
2
|
+
import TablerSelect from './components/Select.vue'
|
|
3
|
+
import TablerModal from './components/Modal.vue'
|
|
4
|
+
import TablerProgress from './components/Progress.vue'
|
|
5
|
+
import TablerLoading from './components/Loading.vue'
|
|
6
|
+
|
|
7
|
+
import TablerInput from './components/Input.vue'
|
|
6
8
|
|
|
7
9
|
export {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
10
|
+
TablerError,
|
|
11
|
+
TablerSelect,
|
|
12
|
+
TablerLoading,
|
|
13
|
+
TablerModal,
|
|
14
|
+
TablerProgress,
|
|
15
|
+
TablerInput
|
|
13
16
|
}
|