toggle-components-library 1.33.0-beta.7 → 1.33.0-beta.9
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/img/arrow_down.787e1a8b.svg +28 -0
- package/dist/toggle-components-library.common.js +9668 -32338
- package/dist/toggle-components-library.common.js.map +1 -1
- package/dist/toggle-components-library.css +1 -1
- package/dist/toggle-components-library.umd.js +9668 -32338
- package/dist/toggle-components-library.umd.js.map +1 -1
- package/dist/toggle-components-library.umd.min.js +8 -285
- package/dist/toggle-components-library.umd.min.js.map +1 -1
- package/package.json +2 -2
- package/src/components/forms/ToggleDatePicker.vue +138 -238
- package/src/components/forms/ToggleDateRangePicker.vue +199 -0
- package/src/components/forms/ToggleInputCurrency.vue +5 -16
- package/src/components/forms/ToggleInputPercentage.vue +4 -15
- package/src/components/forms/ToggleInputSelect.vue +3 -3
- package/src/components/forms/ToggleInputText.vue +1 -1
- package/src/components/tables/ToggleTable.vue +23 -23
- package/src/index.js +3 -4
- package/src/sass/includes/_as_inputs.scss +830 -830
- package/src/sass/includes/_as_table.scss +170 -172
- package/src/sass/main.scss +0 -1
- package/src/components/statusbar/ToggleStatusBar.vue +0 -48
- package/src/sass/includes/_as_statusbar.scss +0 -67
|
@@ -16,38 +16,37 @@ table.toggle-table {
|
|
|
16
16
|
border-radius:0;
|
|
17
17
|
border:none;
|
|
18
18
|
.toggle-input{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
margin-top:11px;
|
|
20
|
+
padding:1px 3px 1px 3px;
|
|
21
|
+
font-size:14px;
|
|
22
|
+
height:1.5rem;
|
|
23
23
|
}
|
|
24
24
|
.toggle-input-label{
|
|
25
|
-
|
|
25
|
+
display: none;
|
|
26
26
|
}
|
|
27
27
|
.toggle-date-input-container{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
.toggle-clear{
|
|
36
|
-
display: none;
|
|
28
|
+
.toggle-date-input-calendar-icon{
|
|
29
|
+
.toggle-input{
|
|
30
|
+
background:transparent;
|
|
31
|
+
padding:3px 1rem 3px 0.1rem;
|
|
32
|
+
margin-top: 10px;
|
|
37
33
|
}
|
|
34
|
+
}
|
|
35
|
+
.toggle-clear{
|
|
36
|
+
display: none;
|
|
37
|
+
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
thead {
|
|
43
43
|
th.toggle-table-th {
|
|
44
|
-
//padding: 0 10px 20px 0;
|
|
45
44
|
padding: 0;
|
|
46
45
|
border: none;
|
|
47
46
|
text-align: left;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
@include toggle-global-font-config;
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
font-size: $toggle-font-size-small;
|
|
51
50
|
|
|
52
51
|
&:hover {
|
|
53
52
|
.search {
|
|
@@ -76,7 +75,6 @@ table.toggle-table {
|
|
|
76
75
|
text-indent: 1px;
|
|
77
76
|
text-overflow: '';
|
|
78
77
|
|
|
79
|
-
//background: url(/img/icons/arrow-down-blue-tiny.svg) center right no-repeat;
|
|
80
78
|
background-size: 15px;
|
|
81
79
|
padding : 0.5rem 0rem 0.5rem 1rem;
|
|
82
80
|
}
|
|
@@ -98,52 +96,52 @@ table.toggle-table {
|
|
|
98
96
|
}
|
|
99
97
|
|
|
100
98
|
td.toggle-tablee-td {
|
|
101
|
-
|
|
99
|
+
@include toggle-global-font-config;
|
|
102
100
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
101
|
+
font-size: $toggle-font-size-small;
|
|
102
|
+
padding: 1rem 0;
|
|
103
|
+
padding-left:1rem;
|
|
106
104
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
105
|
+
cursor: pointer;
|
|
106
|
+
vertical-align: middle;
|
|
107
|
+
text-overflow: ellipsis;
|
|
108
|
+
overflow: hidden;
|
|
109
|
+
max-width: 80px;
|
|
110
|
+
border: none;
|
|
111
|
+
text-align: left;
|
|
114
112
|
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
113
|
+
&:has(.toggle-three-dots-container) {
|
|
114
|
+
overflow: inherit;
|
|
115
|
+
text-align: right;
|
|
116
|
+
}
|
|
119
117
|
}
|
|
120
118
|
|
|
121
119
|
|
|
122
120
|
tr.toggle-tablee-tr {
|
|
123
121
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
td.toggle-tablee-td:first-child {
|
|
131
|
-
border-top-left-radius: 10px;
|
|
132
|
-
border-bottom-left-radius: 10px;
|
|
122
|
+
&:hover {
|
|
123
|
+
background-color: #FFF;
|
|
124
|
+
.arrow-order {
|
|
125
|
+
display: block;
|
|
133
126
|
}
|
|
127
|
+
}
|
|
128
|
+
td.toggle-tablee-td:first-child {
|
|
129
|
+
border-top-left-radius: 10px;
|
|
130
|
+
border-bottom-left-radius: 10px;
|
|
131
|
+
}
|
|
134
132
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
133
|
+
td.toggle-tablee-td:last-child {
|
|
134
|
+
border-top-right-radius: 10px;
|
|
135
|
+
border-bottom-right-radius: 10px;
|
|
136
|
+
}
|
|
139
137
|
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
138
|
+
td.toggle-tablee-td {
|
|
139
|
+
.toggle-button {
|
|
140
|
+
&.neutral {
|
|
141
|
+
padding: 0.2rem 0.9rem 0.2rem 0.9rem;
|
|
142
|
+
}
|
|
146
143
|
}
|
|
144
|
+
}
|
|
147
145
|
|
|
148
146
|
|
|
149
147
|
}
|
|
@@ -152,13 +150,13 @@ table.toggle-table {
|
|
|
152
150
|
|
|
153
151
|
.toggle-date-input-calendar-icon{
|
|
154
152
|
&:after{
|
|
155
|
-
|
|
153
|
+
content: '';
|
|
156
154
|
}
|
|
157
155
|
.toggle-input{
|
|
158
|
-
|
|
159
|
-
|
|
156
|
+
font-size: 12px;
|
|
157
|
+
padding-right:0px !important;
|
|
160
158
|
}
|
|
161
|
-
|
|
159
|
+
}
|
|
162
160
|
|
|
163
161
|
}
|
|
164
162
|
|
|
@@ -166,141 +164,141 @@ table.toggle-table {
|
|
|
166
164
|
|
|
167
165
|
|
|
168
166
|
.toggle-table-any-search-active {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
167
|
+
.toggle-table-th-inner {
|
|
168
|
+
height:74px;
|
|
169
|
+
}
|
|
172
170
|
}
|
|
173
171
|
.toggle-table-th-inner {
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
}
|
|
194
|
-
.toggle-table-close-search {
|
|
195
|
-
display: inline-block;
|
|
196
|
-
}
|
|
172
|
+
line-height: 1em;
|
|
173
|
+
position: relative;
|
|
174
|
+
display: block;
|
|
175
|
+
height: 50px;
|
|
176
|
+
margin: 0 4px 8px 4px;
|
|
177
|
+
padding: 10px;
|
|
178
|
+
border:1px solid transparent;
|
|
179
|
+
border-radius: 4px;
|
|
180
|
+
box-sizing:border-box;
|
|
181
|
+
transition: height .5s;
|
|
182
|
+
|
|
183
|
+
.toggle-table-search-active & {
|
|
184
|
+
z-index: 25;
|
|
185
|
+
//overflow: hidden;
|
|
186
|
+
background-color: white;
|
|
187
|
+
border:1px solid #FFA300;
|
|
188
|
+
input {
|
|
189
|
+
cursor: text;
|
|
190
|
+
pointer-events: auto;
|
|
197
191
|
}
|
|
198
|
-
.toggle-table-
|
|
199
|
-
|
|
200
|
-
.toggle-table-th-title {
|
|
201
|
-
position: relative;
|
|
202
|
-
display: inline-block;
|
|
203
|
-
&:after {
|
|
204
|
-
display: block;
|
|
205
|
-
content:'';
|
|
206
|
-
position: absolute;
|
|
207
|
-
right: -15px;
|
|
208
|
-
top: 3px;
|
|
209
|
-
background: url(../assets/icons/search.svg) no-repeat;
|
|
210
|
-
width: 10px;
|
|
211
|
-
height: 10px;
|
|
212
|
-
opacity: 0.3;
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
&:hover .toggle-table-th-title:after {
|
|
216
|
-
opacity: 1;
|
|
217
|
-
}
|
|
192
|
+
.toggle-table-close-search {
|
|
193
|
+
display: inline-block;
|
|
218
194
|
}
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
195
|
+
}
|
|
196
|
+
.toggle-table-searchable & {
|
|
197
|
+
cursor: pointer;
|
|
198
|
+
.toggle-table-th-title {
|
|
199
|
+
position: relative;
|
|
200
|
+
display: inline-block;
|
|
201
|
+
&:after {
|
|
202
|
+
display: block;
|
|
203
|
+
content:'';
|
|
204
|
+
position: absolute;
|
|
205
|
+
right: -15px;
|
|
206
|
+
top: 3px;
|
|
207
|
+
background: url(../assets/icons/search.svg) no-repeat;
|
|
208
|
+
width: 10px;
|
|
209
|
+
height: 10px;
|
|
210
|
+
opacity: 0.3;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
&:hover .toggle-table-th-title:after {
|
|
214
|
+
opacity: 1;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
.toggle-table-searchable.toggle-table-search-active & {
|
|
218
|
+
.toggle-table-th-title:after {
|
|
219
|
+
display: none;
|
|
223
220
|
}
|
|
221
|
+
}
|
|
224
222
|
}
|
|
225
223
|
|
|
226
224
|
|
|
227
225
|
.toggle-table-close-search {
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
226
|
+
position: absolute;
|
|
227
|
+
top: 12px;
|
|
228
|
+
right: 10px;
|
|
229
|
+
display: block;
|
|
230
|
+
opacity: 0.3;
|
|
231
|
+
cursor:pointer;
|
|
234
232
|
}
|
|
235
233
|
.toggle-table-close-search {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
234
|
+
background: url(../assets/icons/grey_cross.svg) no-repeat;
|
|
235
|
+
width: 12px;
|
|
236
|
+
height: 12px;
|
|
237
|
+
display: none;
|
|
238
|
+
float: right;
|
|
239
|
+
&:hover {
|
|
240
|
+
opacity: 1;
|
|
241
|
+
}
|
|
244
242
|
}
|
|
245
243
|
|
|
246
244
|
.arrow-order {
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
245
|
+
background: url(/img/icons/arrow-right-blue-small.svg);
|
|
246
|
+
position: absolute;
|
|
247
|
+
top: 50%;
|
|
248
|
+
margin-top: -10px;
|
|
249
|
+
right: 15px;
|
|
250
|
+
width: 20px;
|
|
251
|
+
height: 20px;
|
|
252
|
+
display: none;
|
|
255
253
|
}
|
|
256
254
|
|
|
257
255
|
|
|
258
256
|
|
|
259
257
|
.toggle-pagination {
|
|
260
258
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
.toggle-pagination-next{
|
|
298
|
-
background: url(../assets/icons/arrow-right-blue.svg) no-repeat;
|
|
299
|
-
margin-left: 10px;
|
|
300
|
-
&:hover {
|
|
301
|
-
background: url(../assets/icons/arrow-right-blue-hover.svg) no-repeat;
|
|
302
|
-
}
|
|
303
|
-
}
|
|
259
|
+
ul, li {
|
|
260
|
+
list-style: none;
|
|
261
|
+
}
|
|
262
|
+
ul {
|
|
263
|
+
margin: 0;
|
|
264
|
+
padding: 0;
|
|
265
|
+
li {
|
|
266
|
+
float: left;
|
|
267
|
+
|
|
268
|
+
button {
|
|
269
|
+
border: none;
|
|
270
|
+
cursor: pointer;
|
|
271
|
+
padding: 0 10px;
|
|
272
|
+
color: #354B64;
|
|
273
|
+
background-color: transparent;
|
|
274
|
+
&:disabled {
|
|
275
|
+
color: rgba(24, 158, 209, 0.7);
|
|
276
|
+
font-weight: bold;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.toggle-pagination-prev, .toggle-pagination-next {
|
|
281
|
+
text-indent: -99999px;
|
|
282
|
+
width: 25px;
|
|
283
|
+
height: 25px;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
.toggle-pagination-prev{
|
|
287
|
+
background: url(../assets/icons/arrow-left-blue.svg) no-repeat;
|
|
288
|
+
margin-right: 10px;
|
|
289
|
+
|
|
290
|
+
&:hover {
|
|
291
|
+
background: url(../assets/icons/arrow-left-blue-hover.svg) no-repeat;
|
|
304
292
|
}
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
.toggle-pagination-next{
|
|
296
|
+
background: url(../assets/icons/arrow-right-blue.svg) no-repeat;
|
|
297
|
+
margin-left: 10px;
|
|
298
|
+
&:hover {
|
|
299
|
+
background: url(../assets/icons/arrow-right-blue-hover.svg) no-repeat;
|
|
300
|
+
}
|
|
301
|
+
}
|
|
305
302
|
}
|
|
303
|
+
}
|
|
306
304
|
}
|
package/src/sass/main.scss
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="['toggle-status-bar-container', statusColours, statusSize]">
|
|
3
|
-
<label class="toggle-status-bar-label">
|
|
4
|
-
<span class="toggle-status-bar-dot" v-if="showDot">●</span>
|
|
5
|
-
{{ statusName }}
|
|
6
|
-
</label>
|
|
7
|
-
</div>
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
export default {
|
|
12
|
-
name: 'StatusBar',
|
|
13
|
-
props: {
|
|
14
|
-
status: {
|
|
15
|
-
type: String,
|
|
16
|
-
required: true,
|
|
17
|
-
validator: function (value) {
|
|
18
|
-
return ['draft', 'processing', 'complete', 'inactive', 'active'].indexOf(value) !== -1;
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
size: {
|
|
22
|
-
type: String,
|
|
23
|
-
required: false,
|
|
24
|
-
validator: function (value) {
|
|
25
|
-
return ['small'].indexOf(value) !== -1;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
computed: {
|
|
30
|
-
// Capitalise the first letter of the status
|
|
31
|
-
statusName() {
|
|
32
|
-
return this.status.charAt(0).toUpperCase() + this.status.slice(1);
|
|
33
|
-
},
|
|
34
|
-
// Add the status to the class name
|
|
35
|
-
statusColours() {
|
|
36
|
-
return 'toggle-status-bar-' + this.status;
|
|
37
|
-
},
|
|
38
|
-
// Add the size to the class name
|
|
39
|
-
statusSize() {
|
|
40
|
-
return 'toggle-status-bar-' + this.size;
|
|
41
|
-
},
|
|
42
|
-
// Show the dot if the status is active or processing
|
|
43
|
-
showDot() {
|
|
44
|
-
return this.status === 'active' || this.status === 'processing';
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
</script>
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
.toggle-status-bar-container {
|
|
2
|
-
font-family: $toggle-font-family;
|
|
3
|
-
font-size: 16px !important;
|
|
4
|
-
display: flex;
|
|
5
|
-
justify-content: center;
|
|
6
|
-
align-items: center;
|
|
7
|
-
height: 50px;
|
|
8
|
-
width: 100%;
|
|
9
|
-
border-radius: 7px;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.toggle-status-bar-small {
|
|
13
|
-
height: 35px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// Draft colours
|
|
17
|
-
.toggle-status-bar-draft {
|
|
18
|
-
background-color: #FFB88D;
|
|
19
|
-
|
|
20
|
-
.toggle-status-bar-label {
|
|
21
|
-
color: #A34308;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
// Processing colours
|
|
26
|
-
.toggle-status-bar-processing {
|
|
27
|
-
background-color: #D7E9F2;
|
|
28
|
-
|
|
29
|
-
.toggle-status-bar-label {
|
|
30
|
-
color: #269BE3;
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Complete colours
|
|
35
|
-
.toggle-status-bar-complete {
|
|
36
|
-
background-color: #B3E49F;
|
|
37
|
-
|
|
38
|
-
.toggle-status-bar-label {
|
|
39
|
-
color: #3BB40B;
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
// Inactive colours
|
|
44
|
-
.toggle-status-bar-inactive {
|
|
45
|
-
background-color: #D7E9F2;
|
|
46
|
-
|
|
47
|
-
.toggle-status-bar-label {
|
|
48
|
-
color: #269BE3;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// Active colours
|
|
53
|
-
.toggle-status-bar-active {
|
|
54
|
-
background-color: #D7E9F2;
|
|
55
|
-
border: 1px solid #FF4848;
|
|
56
|
-
|
|
57
|
-
.toggle-status-bar-label {
|
|
58
|
-
color: #FF4848;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.toggle-status-bar-dot {
|
|
63
|
-
font-size: 20px;
|
|
64
|
-
margin: 0 3px 0 0;
|
|
65
|
-
float: none !important;
|
|
66
|
-
padding: 0 !important;
|
|
67
|
-
}
|