toggle-components-library 1.33.0-beta.2 → 1.33.0-beta.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.
Files changed (90) hide show
  1. package/package.json +2 -2
  2. package/src/components/forms/ToggleDatePicker.vue +238 -142
  3. package/src/components/forms/ToggleInputSelect.vue +27 -8
  4. package/src/components/forms/ToggleInputText.vue +29 -6
  5. package/src/components/tables/ToggleTable.vue +115 -48
  6. package/src/index.js +1 -3
  7. package/src/sass/includes/_as_inputs.scss +51 -50
  8. package/src/sass/includes/_as_table.scss +11 -9
  9. package/dist/demo.html +0 -10
  10. package/dist/img/add_circle.7c6b29c6.svg +0 -29
  11. package/dist/img/airship-audiences-hover.7197407c.svg +0 -9
  12. package/dist/img/airship-audiences.e7477e19.svg +0 -9
  13. package/dist/img/airship-circle-user-icon-hover.7eecff69.svg +0 -3
  14. package/dist/img/airship-circle-user-icon.b39571b4.svg +0 -3
  15. package/dist/img/airship-clipboard-hover.80ae4cc8.svg +0 -10
  16. package/dist/img/airship-clipboard.4e2aec57.svg +0 -10
  17. package/dist/img/airship-cog-hover.9bfe1b84.svg +0 -10
  18. package/dist/img/airship-cog.6c89b74b.svg +0 -10
  19. package/dist/img/airship-down-arrow-active.bab27497.svg +0 -3
  20. package/dist/img/airship-down-arrow.5b2f3f44.svg +0 -3
  21. package/dist/img/airship-hat-hover.56740dd2.svg +0 -10
  22. package/dist/img/airship-hat.5cff7b4e.svg +0 -10
  23. package/dist/img/airship-megaphone-hover.2a7711d9.svg +0 -10
  24. package/dist/img/airship-megaphone.38428749.svg +0 -10
  25. package/dist/img/airship-pencil-hover.3970bc92.svg +0 -11
  26. package/dist/img/airship-pencil.350548ab.svg +0 -11
  27. package/dist/img/airship-pie-chart-hover.d3aac6ad.svg +0 -11
  28. package/dist/img/airship-pie-chart.617f307c.svg +0 -11
  29. package/dist/img/airship-plane-hover.abb5f358.svg +0 -10
  30. package/dist/img/airship-plane.978cf187.svg +0 -10
  31. package/dist/img/airship-sms-hover.4d1b0c06.svg +0 -10
  32. package/dist/img/airship-sms.17a3fcef.svg +0 -10
  33. package/dist/img/airship-user-icon.1c0e190a.svg +0 -3
  34. package/dist/img/airship-wrench-hover.9531b048.svg +0 -10
  35. package/dist/img/airship-wrench.a406f6f1.svg +0 -10
  36. package/dist/img/airship-x-hover.e1c3bb98.svg +0 -3
  37. package/dist/img/airship-x.dec93e61.svg +0 -3
  38. package/dist/img/arrow-icon.6b7bdc31.svg +0 -3
  39. package/dist/img/arrow-left-blue-hover.5b0a1e54.svg +0 -32
  40. package/dist/img/arrow-left-blue.1e5404dd.svg +0 -32
  41. package/dist/img/arrow-right-blue-hover.b800a882.svg +0 -32
  42. package/dist/img/arrow-right-blue.fbc83729.svg +0 -32
  43. package/dist/img/arrow_down.787e1a8b.svg +0 -28
  44. package/dist/img/booster_close.34390853.svg +0 -3
  45. package/dist/img/calendar.16f176cd.svg +0 -37
  46. package/dist/img/card.e1735960.svg +0 -9
  47. package/dist/img/checkbox_blank.907b325c.svg +0 -6
  48. package/dist/img/checkbox_checked.3e2d399f.svg +0 -9
  49. package/dist/img/checkbox_hover.e99ab40c.svg +0 -3
  50. package/dist/img/checkbox_inactive.b94b6c81.svg +0 -9
  51. package/dist/img/circle_blank.ab1622db.svg +0 -24
  52. package/dist/img/clipboard.e483ded3.svg +0 -12
  53. package/dist/img/clock-solid.fdaf024d.svg +0 -1
  54. package/dist/img/contacts-greyblue.ef6f8a9a.svg +0 -1
  55. package/dist/img/contacts-white.95d07c7a.svg +0 -1
  56. package/dist/img/delete-grey.cf15dcd1.svg +0 -29
  57. package/dist/img/delete-trash.3a307964.svg +0 -12
  58. package/dist/img/delete.ee71bb54.svg +0 -29
  59. package/dist/img/drag_drop.0c778868.svg +0 -14
  60. package/dist/img/draggable.7493006c.svg +0 -1
  61. package/dist/img/edit_circle.4f3826d3.svg +0 -34
  62. package/dist/img/edit_circle_grey.0c96938c.svg +0 -34
  63. package/dist/img/email-icon.3c44b236.svg +0 -3
  64. package/dist/img/email.078e944d.svg +0 -7
  65. package/dist/img/file.f4fb9e5d.svg +0 -9
  66. package/dist/img/form_icon.cd53ec12.svg +0 -10
  67. package/dist/img/funnel.7fa095c3.svg +0 -11
  68. package/dist/img/graph.7f2e3985.svg +0 -16
  69. package/dist/img/grey_cross.2ac5fda1.svg +0 -15
  70. package/dist/img/info.4b233da4.svg +0 -29
  71. package/dist/img/magnifying-glass-icon.9a2b42a1.svg +0 -3
  72. package/dist/img/megaphone.73161a8a.svg +0 -19
  73. package/dist/img/mobile-icon.9e16ffcd.svg +0 -6
  74. package/dist/img/orders.51f8963f.svg +0 -29
  75. package/dist/img/search.db8f673f.svg +0 -25
  76. package/dist/img/tick-grey.b6d7b16c.svg +0 -12
  77. package/dist/img/tick.97f35963.svg +0 -12
  78. package/dist/img/tick_circle.417fd97d.svg +0 -28
  79. package/dist/img/tick_circle_grey.92b7e747.svg +0 -32
  80. package/dist/img/upload.9b0f1f1c.svg +0 -30
  81. package/dist/img/view_email.508021c9.svg +0 -7
  82. package/dist/img/view_heatmap.f9058fdb.svg +0 -1
  83. package/dist/toggle-components-library.common.js +0 -25945
  84. package/dist/toggle-components-library.common.js.map +0 -1
  85. package/dist/toggle-components-library.css +0 -1
  86. package/dist/toggle-components-library.umd.js +0 -25955
  87. package/dist/toggle-components-library.umd.js.map +0 -1
  88. package/dist/toggle-components-library.umd.min.js +0 -45
  89. package/dist/toggle-components-library.umd.min.js.map +0 -1
  90. package/src/components/forms/ToggleDateRangePicker.vue +0 -199
@@ -3,29 +3,58 @@
3
3
  <div>
4
4
 
5
5
  <table class="toggle-table">
6
- <thead :class="{'toggle-table-any-search-active': searchActive}">
6
+ <thead :class="{'toggle-table-any-search-active': anySearchActive}">
7
7
  <tr class="toggle-tablee-tr">
8
- <th
9
- scope="col"
10
- :class="['toggle-table-th', {'toggle-table-search-active': tableSearchActive(field), 'toggle-table-searchable':field.filterable}]"
11
- v-for="(field, index) in headers"
8
+ <th
9
+ scope="col"
10
+ :class="['toggle-table-th', {'toggle-table-search-active': tableSearchActive(field), 'toggle-table-searchable':field.filterable}]"
11
+ v-for="(field, index) in headers"
12
+ :colspan="field.colspan"
12
13
  :key="index"
13
14
  :style="'width:'+field.width"
14
15
  @click="activateSearch(field)"
15
16
  >
16
- <div class="toggle-table-th-inner">
17
+ <div class="toggle-table-th-inner" @transitionend="handleTransitionEnd">
18
+
17
19
  <span class="toggle-table-th-title">{{field.label}}</span>
18
20
  <span class="toggle-table-close-search" v-on:click.stop @click="closeSearch(field)"></span>
19
- <ToggleInputText type="text" :ref="field.key+'-input'" v-model="searchModels[field.key]" @input="searchChange(field)"
20
- v-if="field.type == 'text' && (searchModels[field.key] || editingInput == field.key)" />
21
- <ToggleInputSelect style="margin-top:2px;" size="small" v-if="field.type == 'select' && (searchModels[field.key] || editingInput == field.key)" :options="field.select_options" v-model="searchModels[field.key]" @input="val=>searchChange(val, field)"/>
22
21
 
23
- <ToggleDateRangePicker v-if="field.type == 'date' && (searchModels[field.key].start || searchModels[field.key].end || editingInput == field.key)" name="date" v-model="searchModels[field.key]" @input="val=>searchChange(val, field)" />
22
+ <ToggleInputText
23
+ v-if="field.type === 'text' && (searchModels[field.key] || editingInput === field.key)"
24
+ type="text"
25
+ :ref="field.key+'-input'"
26
+ v-model="searchModels[field.key]"
27
+ @input="searchChange(field)"
28
+ @bail="closeSearch(field)"
29
+ :searchIsOpen="searchIsOpen"
30
+ />
31
+ <ToggleInputSelect
32
+ style="margin-top:2px;"
33
+ :size="'small'"
34
+ v-if="field.type === 'select' && (searchModels[field.key] || editingInput === field.key)"
35
+ :searchIsOpen="searchIsOpen"
36
+ :options="field.select_options"
37
+ v-model="searchModels[field.key]"
38
+ @input="val=>searchChange(val, field)"
39
+ />
40
+ <ToggleDatePicker
41
+ v-if="field.type === 'date_range' && (searchModels[field.key].start || searchModels[field.key].end || editingInput === field.key)"
42
+ name="date_range" size="small"
43
+ :searchIsOpen="searchIsOpen"
44
+ @input="val=>searchChange(val, field)" type="date" :range="true" label="Input label" v-model="searchModels[field.key]"
45
+ />
24
46
  </div>
25
47
  </th>
26
-
48
+
27
49
  </tr>
28
50
  </thead>
51
+ <tr class="empty-table" v-if="(items && items.length === 0) && !loading">
52
+ <td colspan="5">
53
+ <div class="full">
54
+ <div class="empty-area"><p>{{ emptyTableMessage }}</p></div>
55
+ </div>
56
+ </td>
57
+ </tr>
29
58
  <tbody v-if="!$slots.default || !$slots.default.length">
30
59
  <ToggleTableRow v-for="(item, index) in items" :key="index" >
31
60
  <ToggleTableColumn v-for="(column, column_index) in item" :key="column_index">{{column}}</ToggleTableColumn>
@@ -44,7 +73,7 @@
44
73
 
45
74
  import { mixins } from '../mixins/mixins';
46
75
 
47
- import ToggleDateRangePicker from '../forms/ToggleDateRangePicker.vue';
76
+ import ToggleDatePicker from '../forms/ToggleDatePicker.vue';
48
77
  import ToggleInputText from '../forms/ToggleInputText.vue';
49
78
  import ToggleInputSelect from '../forms/ToggleInputSelect.vue';
50
79
  import ToggleTableRow from '../tables/ToggleTableRow.vue';
@@ -53,7 +82,7 @@ import TogglePagination from '../tables/TogglePagination.vue';
53
82
 
54
83
  export default {
55
84
  mixins:[mixins],
56
- components:{ToggleDateRangePicker, ToggleInputText, ToggleInputSelect, ToggleTableColumn, ToggleTableRow, TogglePagination},
85
+ components:{ToggleDatePicker, ToggleInputText, ToggleInputSelect, ToggleTableColumn, ToggleTableRow, TogglePagination},
57
86
  props: {
58
87
  items: {
59
88
  type: [Array]
@@ -62,20 +91,30 @@ export default {
62
91
  type: [Array]
63
92
  },
64
93
  total:{
65
- type: [Number]
94
+ type: [Number]
66
95
  },
67
96
  per_page:{
68
- type: [Number]
97
+ type: [Number]
69
98
  },
70
99
  page:{
71
100
  type: [Number],
72
101
  default:1
102
+ },
103
+ loading: {
104
+ type: Boolean
105
+ },
106
+ emptyTableMessage: {
107
+ type: String,
108
+ default: "No rows returned."
73
109
  }
74
- },
110
+ },
75
111
  data : function(){
76
112
  return {
77
113
  editingInput:false,
78
- searchModels:{}
114
+ searchModels:{},
115
+ anySearchActive: false,
116
+ searchIsOpen: false,
117
+ searchDebounce: null
79
118
  };
80
119
  },
81
120
  computed: {
@@ -97,36 +136,23 @@ export default {
97
136
 
98
137
  headers() {
99
138
  if(!this.fields){
100
- return Object.keys(this.items[0]);
139
+ return Object.keys(this.items[0]);
101
140
  }
102
141
  return this.fields;
103
142
  },
104
143
 
105
- searchActive() {
106
- if(this.editingInput) {
107
- return true;
108
- }
109
- for(let col in this.searchModels){
110
- if(!this.searchModels[col])
111
- return false;
112
- if (this.searchModels[col].start !== undefined) {
113
- return true;
114
- }
115
- else if(this.searchModels[col]) return true;
116
- }
117
- return false;
118
- },
119
-
120
-
121
144
  },
122
145
  created : function(){
123
146
 
124
147
  if(this.fields){
148
+
125
149
  for (let i = 0; i < this.fields.length; i++) {
126
- let value = this.fields[i].type == 'date' ? this.setInitialDate(i) : this.fields[i].value;
150
+ let value = this.fields[i].type == 'date_range' ? this.setInitialDate(i) : (this.fields[i].value ?? '');
151
+
127
152
  let field_name = this.fields[i].key;
128
153
  this.$set( this.searchModels, field_name, value )
129
154
  if(value){
155
+ this.searchIsOpen = true;
130
156
  // if date has an initial value set, show it.
131
157
  if(typeof value.start !== 'undefined'){
132
158
  if(value.start.length) this.activateSearch(this.fields[i]);
@@ -137,20 +163,29 @@ export default {
137
163
  this.searchChange();
138
164
  }
139
165
  }
140
-
166
+
141
167
  },
142
168
 
143
169
  beforeDestroy: function () {
144
- },
145
- watch:{
146
-
147
170
  },
148
171
  mounted : function ()
149
172
  {
150
173
 
151
174
  },
152
-
175
+
153
176
  methods:{
177
+
178
+ handleTransitionEnd(event){
179
+ if(event.propertyName === 'height'){
180
+ if(this.anySearchActive && !this.searchIsOpen){
181
+ this.searchIsOpen = true;
182
+ }
183
+ if(!this.anySearchActive && this.searchIsOpen){
184
+ this.searchIsOpen = false;
185
+ }
186
+ }
187
+ },
188
+
154
189
  // set initial date
155
190
  setInitialDate(index){
156
191
  let value = this.fields[index].value;
@@ -160,36 +195,68 @@ export default {
160
195
 
161
196
  tableSearchActive(field)
162
197
  {
163
- if(field.type == 'date'){
164
- return (this.searchModels[field.key].start || this.searchModels[field.key].end || this.editingInput == field.key);
198
+ if(field.type === 'date_range'){
199
+ return (this.searchModels[field.key].start || this.searchModels[field.key].end || this.editingInput === field.key);
165
200
  }
166
- return (this.searchModels[field.key] || this.editingInput == field.key);
201
+ return (this.searchModels[field.key] || this.editingInput === field.key);
167
202
 
168
203
  },
169
204
 
205
+
206
+ getSearchModelTypeFromKey(key){
207
+ for(let i=0; i<this.fields.length; i++){
208
+ if(this.fields[i].key === key){
209
+ return this.fields[i].type;
210
+ }
211
+ }
212
+ return null;
213
+ },
214
+
170
215
  closeSearch(field){
216
+
171
217
  this.editingInput = false;
172
- this.searchModels[field.key] = field.type == 'date' ? { start: false, end: false} : '' ;
218
+ this.searchModels[field.key] = field.type === 'date_range' ? { start: null, end: null} : '' ;
219
+
220
+ // check if any search is active; if not, close/shrink header
221
+ let is_active = false;
222
+ for(const key in this.searchModels){
223
+
224
+ if(this.getSearchModelTypeFromKey(key) === 'date_range'){
225
+ if (this.searchModels[key].start || this.searchModels[key].end){
226
+ is_active = true;
227
+ break;
228
+ }
229
+ }else if(this.searchModels[key] && this.searchModels[key] !== ''){
230
+ is_active = true;
231
+ break;
232
+ }
233
+ }
234
+ this.anySearchActive = is_active;
173
235
  this.searchChange();
174
236
  },
175
237
 
176
238
  searchChange(){
177
- this.$emit('search', this.fieldsWithSearch);
239
+ clearTimeout(this.searchDebounce);
240
+ this.searchDebounce = setTimeout(()=>{
241
+ this.$emit('search', this.fieldsWithSearch);
242
+ },500);
243
+
178
244
  },
179
245
 
180
246
  /* activateSearch
181
247
  * When a user clicks a searchable column name, show it as active, and focus the child input field (unless it's already active)
182
248
  */
183
249
  activateSearch(field){
184
- if(!field.filterable) return;
185
- if(field.type === 'date'){
250
+ if(!field.filterable || field.readonly) return;
251
+ if(field.type === 'date_range'){
186
252
  this.datePickerOpen = true;
187
253
  }
188
254
  this.editingInput = field.key;
255
+ this.anySearchActive = true;
189
256
  //this.$nextTick(() => this.$refs[this.editingInput + '-input'].focus())
190
257
  },
191
258
 
192
-
259
+
193
260
 
194
261
  }
195
262
  }
package/src/index.js CHANGED
@@ -4,7 +4,6 @@ import ToggleInputText from "./components/forms/ToggleInputText.vue";
4
4
  import ToggleInputEditableText from "./components/forms/ToggleInputEditableText.vue";
5
5
  import ToggleInputWebsite from "./components/forms/ToggleInputWebsite.vue";
6
6
  import ToggleDatePicker from "./components/forms/ToggleDatePicker.vue";
7
- import ToggleDateRangePicker from "./components/forms/ToggleDateRangePicker.vue";
8
7
  import ToggleInputSelect from "./components/forms/ToggleInputSelect.vue";
9
8
  import ToggleInputPercentage from "./components/forms/ToggleInputPercentage.vue";
10
9
  import ToggleInputCurrency from "./components/forms/ToggleInputCurrency.vue";
@@ -106,14 +105,13 @@ const Components = {
106
105
  ToggleInputEditableText,
107
106
  ToggleInputWebsite,
108
107
  ToggleDatePicker,
109
- ToggleDateRangePicker,
110
108
  ToggleInputSelect,
111
109
  ToggleInputPercentage,
112
110
  ToggleInputCurrency,
113
111
  ToggleInputRadioButtons,
114
112
  ToggleInputTextArea,
115
113
  ToggleInputCheckboxContainer,
116
- ToggleInputCheckbox,
114
+ ToggleInputCheckbox,
117
115
  ToggleInputCheckboxInline,
118
116
  ToggleFillLoader,
119
117
  ToggleProgressLoader,
@@ -1,15 +1,15 @@
1
1
 
2
2
  .toggle-input,
3
3
  .toggle-input-label,
4
- .toggle-input-counter,
4
+ .toggle-input-counter,
5
5
  .toggle-input-label-error,
6
- .toggle-input-radio-label,
6
+ .toggle-input-radio-label,
7
7
  .toggle-input-checkbox-label,
8
8
  .toggle-input-search-options,
9
9
  .toggle-input-select,
10
10
  .toggle-contact-search-container{
11
11
  @include toggle-global-font-config;
12
- }
12
+ }
13
13
 
14
14
  .toggle-input-counter{
15
15
  font-size: $toggle-font-size-small;
@@ -110,7 +110,7 @@
110
110
 
111
111
  padding : 0.8rem 1.2rem 1.4rem 1.2rem;
112
112
  background-color: $toggle-off-white;
113
- border-radius : 9px;
113
+ border-radius : 9px;
114
114
  box-sizing : border-box;
115
115
  border : 1px solid $toggle-off-white;
116
116
  position : relative;
@@ -122,7 +122,7 @@
122
122
  &.margin-bottom-0{
123
123
  padding-bottom:0;
124
124
  }
125
-
125
+
126
126
  }
127
127
 
128
128
  // When inputs are inside input groups or modals, they look a bit different
@@ -227,35 +227,36 @@
227
227
  }
228
228
  }
229
229
 
230
- .calendar-icon-disabled {
230
+ .toggle-date-input-calendar-icon-disabled {
231
231
  cursor: default;
232
232
  opacity: 0.5;
233
233
  }
234
234
 
235
235
  .toggle-input-select-container{
236
236
  position:relative;
237
- background-color: $toggle-dark-grey;
237
+ //background-color: $toggle-dark-grey;
238
238
  border-radius:5px;
239
239
  overflow: auto;
240
240
  float: left;
241
241
  clear: both;
242
242
  width: 100%;
243
- &:after{
244
- content: '';
245
- width: 1.5rem;
246
- height: 1.5rem;
247
- background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
248
- position: absolute;
249
- right: 1rem;
250
- top: 0.7rem;
251
- pointer-events: none;
252
- }
243
+ //&:after{
244
+ // content: '';
245
+ // width: 1.5rem;
246
+ // height: 1.5rem;
247
+ // background: transparent url("../assets/icons/arrow_down.svg") no-repeat 100% 50%;
248
+ // position: absolute;
249
+ // right: 1rem;
250
+ // top: 0.7rem;
251
+ // pointer-events: none;
252
+ //}
253
253
  }
254
254
 
255
-
255
+
256
256
  .toggle-input-select{
257
257
 
258
- padding : 0.5rem 2.5rem 0.5rem 1rem;
258
+ //padding : 0.5rem 2.5rem 0.5rem 1rem;
259
+ padding: 0.5rem;
259
260
  cursor : pointer;
260
261
 
261
262
  -webkit-appearance: none;
@@ -334,7 +335,7 @@
334
335
  .toggle-input-radio{
335
336
  clear:both;
336
337
  float: left;
337
- margin-left:2.2rem;
338
+ margin-left:2.2rem;
338
339
  }
339
340
 
340
341
  }
@@ -368,8 +369,8 @@
368
369
  display : flex;
369
370
  align-items: center;
370
371
  }
371
-
372
-
372
+
373
+
373
374
  input[type="radio"], input[type="checkbox"]{
374
375
  display: none;
375
376
  }
@@ -396,7 +397,7 @@
396
397
  }
397
398
  }
398
399
 
399
-
400
+
400
401
 
401
402
  > input:disabled:checked + div{
402
403
  .toggle-input-radio-check-element {
@@ -490,7 +491,7 @@
490
491
  }
491
492
 
492
493
  .toggle-input-checkbox-check-element {
493
- background: url('../assets/icons/checkbox_blank.svg') no-repeat;
494
+ background: url('../assets/icons/checkbox_blank.svg') no-repeat;
494
495
  }
495
496
 
496
497
  // image input
@@ -517,8 +518,8 @@ $iconWidth:20px;
517
518
  .toggle-dark-grey {
518
519
  border:7px solid inherit;
519
520
  }
520
- .toggle-draggable-group-item {
521
- position: relative;
521
+ .toggle-draggable-group-item {
522
+ position: relative;
522
523
  list-style: none;
523
524
  margin:5px 10px 5px 0px;
524
525
  .toggle-item-img {
@@ -543,7 +544,7 @@ $iconWidth:20px;
543
544
  background: url('../assets/icons/draggable.svg') no-repeat center center;
544
545
  cursor: move;
545
546
  }
546
-
547
+
547
548
  }
548
549
  .toggle-button-container{
549
550
  border:0px solid transparent!important;
@@ -552,7 +553,7 @@ $iconWidth:20px;
552
553
  height:$iconWidth;
553
554
  }
554
555
  }
555
-
556
+
556
557
 
557
558
  li:first-child div:first-child{
558
559
  border:4px solid #189ED1;
@@ -561,8 +562,8 @@ $iconWidth:20px;
561
562
  }
562
563
  }
563
564
 
564
-
565
-
565
+
566
+
566
567
  }
567
568
 
568
569
  .toggle-dropzone-container{
@@ -591,7 +592,7 @@ $iconWidth:20px;
591
592
  height:0.5vw;
592
593
  }
593
594
  }
594
-
595
+
595
596
 
596
597
  .vue-dropzone {
597
598
  border: 0;
@@ -615,7 +616,7 @@ $iconWidth:20px;
615
616
  background-color: $toggle-light-blue;
616
617
  }
617
618
  }
618
-
619
+
619
620
  }
620
621
 
621
622
  .dropzone{
@@ -649,7 +650,7 @@ $iconWidth:20px;
649
650
  .dropzone > .dz-preview {
650
651
  width: 40%;
651
652
  }
652
-
653
+
653
654
  }
654
655
 
655
656
  .toggle-dropzone-file-container {
@@ -674,7 +675,7 @@ $iconWidth:20px;
674
675
  cursor: pointer;
675
676
  float:left;
676
677
  height: 2rem;
677
- width: 2rem;
678
+ width: 2rem;
678
679
  border-radius: 0% 50% 50% 0%;
679
680
  margin-left: -5px;
680
681
  }
@@ -690,7 +691,7 @@ $iconWidth:20px;
690
691
 
691
692
 
692
693
  // input crud buttons
693
- //
694
+ //
694
695
  .toggle-input-crud-container{
695
696
  padding:1rem 3.5rem 1rem 1rem;;
696
697
  height:auto;
@@ -709,7 +710,7 @@ $iconWidth:20px;
709
710
  cursor: pointer;
710
711
  }
711
712
 
712
-
713
+
713
714
 
714
715
  .toggle-input-crud-container-description{
715
716
  text-align: center;
@@ -849,24 +850,24 @@ $iconWidth:20px;
849
850
  -webkit-font-smoothing: antialiased;
850
851
  -moz-osx-font-smoothing: grayscale;
851
852
  }
852
-
853
+
853
854
  @mixin toggle-input-border-base {
854
855
  border: 1px solid #ccc;
855
856
  }
856
-
857
+
857
858
  @mixin toggle-input-border {
858
859
  @include toggle-input-border-base;
859
860
  border-radius: 4px;
860
861
  box-sizing: border-box;
861
862
  }
862
-
863
+
863
864
  @mixin toggle-input-border-country-left {
864
865
  @include toggle-input-border-base;
865
866
  border-top-left-radius: 4px;
866
867
  border-bottom-left-radius: 4px;
867
868
  border-right: none;
868
869
  }
869
-
870
+
870
871
  @mixin toggle-input-border-country-right {
871
872
  @include toggle-input-border-base;
872
873
  border-top-right-radius: 4px;
@@ -883,7 +884,7 @@ $iconWidth:20px;
883
884
  width: 130px;
884
885
  margin: 5px 0px;
885
886
  @include toggle-input-border-country-left;
886
-
887
+
887
888
  select{
888
889
  position: relative;
889
890
  opacity: 0;
@@ -892,32 +893,32 @@ $iconWidth:20px;
892
893
  cursor: pointer;
893
894
  height: 100%;
894
895
  }
895
-
896
+
896
897
  .toggle-selected-wraper {
897
898
  top:20%;
898
899
  font-size: 0.9em;
899
900
  position: absolute;
900
901
  padding: 3px;
901
902
  left: 5px;
902
-
903
+
903
904
  &:before{
904
905
  float:left;
905
906
  content: url("data:image/svg+xml;charset=UTF-8, <svg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 317 275'><path id='Arrow_downw' data-name='Arrow_Down' d='M158.5,0,317,275H0Z' transform='translate(317 275) rotate(180)' fill='gray'/></svg>");
906
907
  margin-top:1px;
907
908
  margin-right: 2px;
908
909
  }
909
-
910
+
910
911
  div {
911
912
  float:left;
912
913
  }
913
-
914
+
914
915
  .toggle-selected-country-emoji {
915
916
  margin-left: 5px;
916
917
  margin-top: 2px;
917
918
  }
918
919
  }
919
-
920
-
920
+
921
+
921
922
  }
922
923
 
923
924
  .toggle-input-label-error {
@@ -928,16 +929,16 @@ $iconWidth:20px;
928
929
  .toggle-input-select-country {
929
930
  padding: 3px 10px 22px 10px;
930
931
  margin: 5px 0px 5px 0px;
931
-
932
+
932
933
  &.toggle-number {
933
-
934
+
934
935
  position: relative;
935
936
  font-size:0.9em;
936
937
  padding:10px;
937
938
  @include toggle-input-border-country-right;
938
939
  width: 80%;
939
940
  }
940
-
941
+
941
942
  }
942
943
  .toggle-invalid-number {
943
944
  border:1px solid #ED7B7C !important;
@@ -41,7 +41,8 @@ table.toggle-table {
41
41
 
42
42
  thead {
43
43
  th.toggle-table-th {
44
- padding: 0 10px 20px 0;
44
+ //padding: 0 10px 20px 0;
45
+ padding: 0;
45
46
  border: none;
46
47
  text-align: left;
47
48
  @include toggle-global-font-config;
@@ -54,7 +55,7 @@ table.toggle-table {
54
55
  }
55
56
  }
56
57
 
57
-
58
+
58
59
  }
59
60
 
60
61
 
@@ -75,7 +76,7 @@ table.toggle-table {
75
76
  text-indent: 1px;
76
77
  text-overflow: '';
77
78
 
78
- background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
79
+ //background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
79
80
  background-size: 15px;
80
81
  padding : 0.5rem 0rem 0.5rem 1rem;
81
82
  }
@@ -98,7 +99,7 @@ table.toggle-table {
98
99
 
99
100
  td.toggle-tablee-td {
100
101
  @include toggle-global-font-config;
101
-
102
+
102
103
  font-size: $toggle-font-size-small;
103
104
  padding: 1rem 0;
104
105
  padding-left:1rem;
@@ -146,19 +147,19 @@ table.toggle-table {
146
147
 
147
148
 
148
149
  }
149
-
150
+
150
151
  }
151
152
 
152
153
  .toggle-date-input-calendar-icon{
153
154
  &:after{
154
155
  content: '';
155
- }
156
+ }
156
157
  .toggle-input{
157
158
  font-size: 12px;
158
159
  padding-right:0px !important;
159
160
  }
160
- }
161
-
161
+ }
162
+
162
163
  }
163
164
 
164
165
 
@@ -173,7 +174,7 @@ table.toggle-table {
173
174
  line-height: 1em;
174
175
  position: relative;
175
176
  display: block;
176
- height: 20px;
177
+ height: 50px;
177
178
  margin: 0 4px 8px 4px;
178
179
  padding: 10px;
179
180
  border:1px solid transparent;
@@ -195,6 +196,7 @@ table.toggle-table {
195
196
  }
196
197
  }
197
198
  .toggle-table-searchable & {
199
+ cursor: pointer;
198
200
  .toggle-table-th-title {
199
201
  position: relative;
200
202
  display: inline-block;
package/dist/demo.html DELETED
@@ -1,10 +0,0 @@
1
- <meta charset="utf-8">
2
- <title>toggle-components-library demo</title>
3
- <script src="./toggle-components-library.umd.js"></script>
4
-
5
- <link rel="stylesheet" href="./toggle-components-library.css">
6
-
7
-
8
- <script>
9
- console.log(toggle-components-library)
10
- </script>