@tak-ps/vue-tabler 3.47.0 → 3.49.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 CHANGED
@@ -10,6 +10,14 @@
10
10
 
11
11
  ## Version History
12
12
 
13
+ ### v3.49.0
14
+
15
+ - :rocket: Add ability to specify a search icon for TablerInput
16
+
17
+ ### v3.48.0
18
+
19
+ - :rocket: Setup default stroke state
20
+
13
21
  ### v3.47.0
14
22
 
15
23
  - :rocket: Use data function to setup Enum current state
@@ -3,8 +3,8 @@
3
3
  <div class='d-flex justify-content-center' :class='{
4
4
  "mt-4 mb-2": !compact
5
5
  }'>
6
- <IconAlertTriangle v-if='compact' size='32' />
7
- <IconAlertTriangle v-else size='48'/>
6
+ <IconAlertTriangle v-if='compact' :size='32' :stroke='1' />
7
+ <IconAlertTriangle v-else :size='48' :stroke='1'/>
8
8
  </div>
9
9
 
10
10
  <h3 class='pt-3 text-center' v-text='title'></h3>
@@ -17,8 +17,8 @@
17
17
  <template v-if='err.body || err.stack'>
18
18
  <div class="py-2 px-3">
19
19
  <div @click='open = !open' class='subheader d-flex align-items-center cursor-pointer'>
20
- <IconChevronRight v-if='!open' size='24' class='cursor-pointer'/>
21
- <IconChevronDown v-else size='24' class='cursor-pointer'/>
20
+ <IconChevronRight v-if='!open' :size='24' :stroke='1' class='cursor-pointer'/>
21
+ <IconChevronDown v-else :size='24' :stroke='1' class='cursor-pointer'/>
22
22
  <span>Advanced</span>
23
23
  </div>
24
24
  <pre
@@ -6,7 +6,7 @@
6
6
  </div>
7
7
  </template>
8
8
  <template v-else>
9
- <IconTrash @click.stop.prevent='modal = true' :size='size' class='cursor-pointer'/>
9
+ <IconTrash @click.stop.prevent='modal = true' :size='size' :stroke='1' class='cursor-pointer'/>
10
10
  </template>
11
11
 
12
12
  <TablerModal v-if='modal'>
@@ -22,7 +22,7 @@
22
22
  <div @click='$emit("delete")' class="btn btn-danger">
23
23
  <TablerLoading v-if='loading' :inline='true'/>
24
24
  <template v-else>
25
- <IconTrash size='32'/><span class='mx-2' v-text='label'/>
25
+ <IconTrash :size='32' :stroke='1'/><span class='mx-2' v-text='label'/>
26
26
  </template>
27
27
  </div>
28
28
  </div>
@@ -2,7 +2,7 @@
2
2
  <div class="dropdown">
3
3
  <div type="button" :id='id' data-bs-toggle="dropdown" aria-expanded="false">
4
4
  <slot>
5
- <IconSettings size='32' class='cursor-pointer'/>
5
+ <IconSettings :size='32' :stoke='1' class='cursor-pointer'/>
6
6
  </slot>
7
7
  </div>
8
8
  <ul class="dropdown-menu w-100" :aria-labelledby='id'>
@@ -14,7 +14,7 @@
14
14
  <span v-else style='padding-top: 6px;'>Select <span v-text='label'/></span>
15
15
 
16
16
  <div class='ms-auto'>
17
- <IconSettings size='32' style='margin-top: 4px;'/>
17
+ <IconSettings :size='32' :stroke='1' style='margin-top: 4px;'/>
18
18
  </div>
19
19
  </div>
20
20
  </div>
@@ -3,8 +3,8 @@
3
3
  <div class='d-flex justify-content-center' :class='{
4
4
  "mt-4 mb-2": !compact
5
5
  }'>
6
- <IconNotesOff v-if='compact' size='32' />
7
- <IconNotesOff v-else size='48'/>
6
+ <IconNotesOff v-if='compact' :size='32' :stroke='1' />
7
+ <IconNotesOff v-else :size='48' :stroke='1'/>
8
8
  </div>
9
9
 
10
10
  <div class='text-center' :class='{
@@ -3,12 +3,12 @@
3
3
  <div>
4
4
  <template v-if='parseInt(total) <= parseInt(limit)'>
5
5
  <button @click='changePage(0)' class='btn mx-1' >
6
- <IconHome size='32' class='icon'/>Home
6
+ <IconHome :size='32' :stroke='1' class='icon'/>Home
7
7
  </button>
8
8
  </template>
9
9
  <template v-else>
10
10
  <button @click='changePage(0)' class='btn mx-1' :class='{ "btn-primary": current === 0 }'>
11
- <IconHome size='32' class='icon'/>Home
11
+ <IconHome :size='32' :stroke='1' class='icon'/>Home
12
12
  </button>
13
13
 
14
14
  <template v-if='end > 5 && current > 3'>
@@ -46,7 +46,7 @@
46
46
  <div class='d-flex'>
47
47
  <label class='form-label' v-text='key'/>
48
48
  <div class='ms-auto'>
49
- <IconPlus v-if='!disabled' @click='push(key)' size='32' class='cursor-pointer'/>
49
+ <IconPlus v-if='!disabled' @click='push(key)' :size='32' :stroke='1' class='cursor-pointer'/>
50
50
  </div>
51
51
  </div>
52
52
 
@@ -54,7 +54,7 @@
54
54
  <div class='d-flex'>
55
55
  <div class='mx-2 my-2'>Entry <span v-text='i + 1'/></div>
56
56
  <div class='ms-auto mx-2 my-2'>
57
- <IconTrash v-if='!disabled' @click='data[key].splice(i, 1)' size='32' class='cursor-pointer'/>
57
+ <IconTrash v-if='!disabled' @click='data[key].splice(i, 1)' :size='32' :stroke='1' class='cursor-pointer'/>
58
58
  </div>
59
59
  </div>
60
60
 
@@ -3,17 +3,25 @@
3
3
  <TablerLabel :label='label' :description='description' :required='required'><slot/></TablerLabel>
4
4
  <div class='col-12'>
5
5
  <template v-if='!rows || rows <= 1'>
6
- <input
7
- :disabled='disabled'
8
- v-model='current'
9
- @keyup.enter='$emit("submit")'
10
- :type='computed_type'
11
- :class='{
12
- "is-invalid": errorstr
13
- }'
14
- class="form-control"
15
- :placeholder='placeholder||label||""'
16
- />
6
+ <div class='input-icon'>
7
+ <span v-if='icon' class="input-icon-addon">
8
+ <IconSearch v-if='icon === "search"' :size='20' :stroke='1'/>
9
+ </span>
10
+ <input
11
+ :disabled='disabled'
12
+ v-model='current'
13
+ @keyup.enter='$emit("submit")'
14
+ :type='computed_type'
15
+ :class='{
16
+ "is-invalid": errorstr
17
+ }'
18
+ class="form-control"
19
+ :placeholder='placeholder||label||""'
20
+ />
21
+ <span v-if='$slots.posticon' class="input-icon-addon">
22
+ <slot name='prepost'/>
23
+ </span>
24
+ </div>
17
25
  </template>
18
26
  <template v-else>
19
27
  <textarea
@@ -37,6 +45,9 @@
37
45
 
38
46
  <script>
39
47
  import TablerLabel from '../internal/Label.vue';
48
+ import {
49
+ IconSearch
50
+ } from '@tabler/icons-vue';
40
51
 
41
52
  export default {
42
53
  name: 'TablerInput',
@@ -46,6 +57,9 @@ export default {
46
57
  type: [String, Number],
47
58
  required: true
48
59
  },
60
+ icon: {
61
+ type: String,
62
+ },
49
63
  required: {
50
64
  type: Boolean,
51
65
  default: false,
@@ -130,6 +144,7 @@ export default {
130
144
  }
131
145
  },
132
146
  components: {
147
+ IconSearch,
133
148
  TablerLabel
134
149
  }
135
150
  }
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div class='col-12 d-flex my-1'>
3
3
  <span v-if='description' class='align-self-center'>
4
- <IconInfoSquare @click='help = true' size='20' class='cursor-pointer'/>
4
+ <IconInfoSquare @click='help = true' :size='20' :stroke='1' class='cursor-pointer'/>
5
5
  <Help v-if='help' @click='help = false' :label='label || placeholder' :description='description'/>
6
6
  </span>
7
7
  <div class='align-self-center'>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tak-ps/vue-tabler",
3
3
  "type": "module",
4
- "version": "3.47.0",
4
+ "version": "3.49.0",
5
5
  "lib": "lib.js",
6
6
  "module": "lib.js",
7
7
  "description": "Tabler UI components for Vue3",