@finqu/cool 1.2.28 → 1.2.29
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/css/cool-grid.css +703 -17
- package/dist/css/cool-grid.css.map +3 -3
- package/dist/css/cool-grid.min.css +1 -1
- package/dist/css/cool-grid.min.css.map +1 -1
- package/dist/css/cool-reboot.css +16 -15
- package/dist/css/cool-reboot.css.map +7 -7
- package/dist/css/cool-reboot.min.css +1 -1
- package/dist/css/cool-reboot.min.css.map +1 -1
- package/dist/css/cool.css +2663 -2160
- package/dist/css/cool.css.map +30 -30
- package/dist/css/cool.min.css +1 -1
- package/dist/css/cool.min.css.map +1 -1
- package/dist/js/cool.bundle.js +127 -107
- package/dist/js/cool.bundle.js.map +1 -1
- package/dist/js/cool.bundle.min.js +3 -3
- package/dist/js/cool.bundle.min.js.map +1 -1
- package/dist/js/cool.esm.js +127 -107
- package/dist/js/cool.esm.js.map +1 -1
- package/dist/js/cool.esm.min.js +3 -3
- package/dist/js/cool.esm.min.js.map +1 -1
- package/dist/js/cool.js +127 -107
- package/dist/js/cool.js.map +1 -1
- package/dist/js/cool.min.js +3 -3
- package/dist/js/cool.min.js.map +1 -1
- package/html/index.html +41 -42
- package/js/dist/collapse.js +912 -667
- package/js/dist/collapse.js.map +1 -1
- package/js/dist/common.js +1211 -1367
- package/js/dist/common.js.map +1 -1
- package/js/dist/dropdown.js +2 -2
- package/js/dist/popover.js +1784 -1610
- package/js/dist/popover.js.map +1 -1
- package/js/dist/sectiontabs.js +2 -2
- package/js/dist/select.js +3330 -3302
- package/js/dist/select.js.map +1 -1
- package/js/dist/tooltip.js +2 -2
- package/js/src/collapse.js +44 -30
- package/js/src/common.js +60 -77
- package/js/src/dialog.js +3 -2
- package/js/src/popover.js +15 -4
- package/js/src/select.js +7 -6
- package/package.json +1 -1
- package/scss/_alert.scss +26 -30
- package/scss/_badge.scss +44 -13
- package/scss/_buttons.scss +60 -19
- package/scss/_custom-forms.scss +51 -36
- package/scss/_dialog.scss +15 -16
- package/scss/_dropdown.scss +2 -0
- package/scss/_forms.scss +2 -1
- package/scss/_frame.scss +310 -231
- package/scss/_functions.scss +1 -1
- package/scss/_images.scss +51 -52
- package/scss/_input-group.scss +35 -21
- package/scss/_navbar.scss +30 -4
- package/scss/_pagination.scss +25 -16
- package/scss/_popover.scss +3 -1
- package/scss/_reboot.scss +5 -4
- package/scss/_root.scss +3 -3
- package/scss/_section.scss +162 -97
- package/scss/_select.scss +12 -0
- package/scss/_tables.scss +55 -36
- package/scss/_tabs.scss +29 -26
- package/scss/_type.scss +9 -1
- package/scss/_variables.scss +376 -252
- package/scss/mixins/_alert-variant.scss +6 -11
- package/scss/mixins/_badge-variant.scss +2 -2
- package/scss/mixins/_gradients.scss +5 -5
- package/scss/utilities/_background.scss +3 -3
- package/scss/utilities/_borders.scss +5 -5
- package/scss/utilities/_placeholder.scss +6 -5
- package/scss/utilities/_text.scss +3 -3
- package/html/dropdown-test.html +0 -200
package/js/dist/tooltip.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Cool UI tooltip.js v1.2.
|
|
3
|
-
* Copyright 2011-
|
|
2
|
+
* Cool UI tooltip.js v1.2.29 (https://finqu.fi)
|
|
3
|
+
* Copyright 2011-2021 Finqu Oy
|
|
4
4
|
* Licensed under the ISC license - (http://opensource.org/licenses/ISC)
|
|
5
5
|
*/
|
|
6
6
|
(function (global, factory) {
|
package/js/src/collapse.js
CHANGED
|
@@ -55,7 +55,9 @@ class Collapse extends AbstractUIComponent {
|
|
|
55
55
|
|
|
56
56
|
this.$el = $(this.el);
|
|
57
57
|
this.$target = this.$el.data('target') ? $(document).find(this.$el.data('target')) : $(document).find(this.opts.target);
|
|
58
|
+
this.breakpoint = this.$el.data('breakpoint');
|
|
58
59
|
this.expanded = this.$el.attr('aria-expanded') == 'true' ? true : false;
|
|
60
|
+
this.transitionendEvent = this.whichTransitionEvent();
|
|
59
61
|
|
|
60
62
|
if (this.$target.length) {
|
|
61
63
|
|
|
@@ -85,20 +87,18 @@ class Collapse extends AbstractUIComponent {
|
|
|
85
87
|
|
|
86
88
|
// Bind events that trigger methods
|
|
87
89
|
bindEvents() {
|
|
88
|
-
|
|
89
90
|
this.$el.on('click'+'.'+this.name, (e) => {
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
91
|
+
if (!this.breakpoint || !window.matchMedia(`(min-width: ${this.breakpoint}px)`).matches) {
|
|
92
|
+
if (this.expanded) {
|
|
93
|
+
this.close();
|
|
94
|
+
} else {
|
|
95
|
+
this.show();
|
|
96
|
+
}
|
|
95
97
|
}
|
|
96
98
|
});
|
|
97
99
|
|
|
98
100
|
$(window).on('resize', debounce(() => {
|
|
99
|
-
|
|
100
101
|
if (this.$target.length) {
|
|
101
|
-
|
|
102
102
|
this.targetHeight = this.$target.height();
|
|
103
103
|
this.log('Target height: '+this.targetHeight+'px');
|
|
104
104
|
}
|
|
@@ -132,6 +132,8 @@ class Collapse extends AbstractUIComponent {
|
|
|
132
132
|
// Show
|
|
133
133
|
show() {
|
|
134
134
|
|
|
135
|
+
const self = this;
|
|
136
|
+
|
|
135
137
|
// Update target height if something is added to dom which causes height to change
|
|
136
138
|
if (this.targetHeight !== this.$target.height()) {
|
|
137
139
|
this.targetHeight = this.$target.height();
|
|
@@ -155,19 +157,24 @@ class Collapse extends AbstractUIComponent {
|
|
|
155
157
|
this.$indicator.addClass('show');
|
|
156
158
|
}
|
|
157
159
|
|
|
158
|
-
this.$target.
|
|
160
|
+
this.$target.on(this.transitionendEvent, function(e) {
|
|
159
161
|
|
|
160
|
-
|
|
162
|
+
if ($(e.target).is(this)) {
|
|
161
163
|
|
|
162
|
-
|
|
163
|
-
this.$el.attr('disabled', false);
|
|
164
|
-
}
|
|
164
|
+
self.$target.removeClass('collapsing');
|
|
165
165
|
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
166
|
+
if (self.$el.is('button')) {
|
|
167
|
+
self.$el.attr('disabled', false);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
self.$target.removeAttr('style');
|
|
171
|
+
self.$target.addClass('collapse show');
|
|
172
|
+
self.$el.attr('aria-expanded', true);
|
|
173
|
+
self.$target.css('height', 'auto');
|
|
174
|
+
self.expanded = true;
|
|
175
|
+
|
|
176
|
+
$(this).off(self.transitionendEvent);
|
|
177
|
+
}
|
|
171
178
|
});
|
|
172
179
|
|
|
173
180
|
this.onShow();
|
|
@@ -176,6 +183,8 @@ class Collapse extends AbstractUIComponent {
|
|
|
176
183
|
// Close
|
|
177
184
|
close() {
|
|
178
185
|
|
|
186
|
+
const self = this;
|
|
187
|
+
|
|
179
188
|
this.$target.removeClass('collapse show');
|
|
180
189
|
this.$target.addClass('collapsing');
|
|
181
190
|
|
|
@@ -197,22 +206,27 @@ class Collapse extends AbstractUIComponent {
|
|
|
197
206
|
this.$indicator.removeClass('show');
|
|
198
207
|
}
|
|
199
208
|
|
|
200
|
-
this.$target.
|
|
209
|
+
this.$target.on(this.transitionendEvent, function(e) {
|
|
201
210
|
|
|
202
|
-
|
|
211
|
+
if ($(e.target).is(this)) {
|
|
203
212
|
|
|
204
|
-
|
|
205
|
-
this.$el.attr('disabled', false);
|
|
206
|
-
}
|
|
213
|
+
self.$target.removeClass('collapsing');
|
|
207
214
|
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
this.expanded = false;
|
|
215
|
+
if (self.$el.is('button')) {
|
|
216
|
+
self.$el.attr('disabled', false);
|
|
217
|
+
}
|
|
212
218
|
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
219
|
+
self.$target.removeAttr('style');
|
|
220
|
+
self.$target.addClass('collapse');
|
|
221
|
+
self.$el.attr('aria-expanded', false);
|
|
222
|
+
self.expanded = false;
|
|
223
|
+
|
|
224
|
+
// Update target height if something is added to dom which causes height to change
|
|
225
|
+
if (self.targetHeight !== self.$target.height()) {
|
|
226
|
+
self.targetHeight = self.$target.height();
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
$(this).off(self.transitionendEvent);
|
|
216
230
|
}
|
|
217
231
|
});
|
|
218
232
|
|
package/js/src/common.js
CHANGED
|
@@ -7,6 +7,19 @@ window.Cool.settings = window.Cool.settings || {};
|
|
|
7
7
|
|
|
8
8
|
class Common {
|
|
9
9
|
|
|
10
|
+
static refresh() {
|
|
11
|
+
$('.form-label-group').each(function(i, formLabelGroup) {
|
|
12
|
+
const $formLabelGroup = $(formLabelGroup);
|
|
13
|
+
const val = $formLabelGroup.find('input, select').val();
|
|
14
|
+
|
|
15
|
+
if (val) {
|
|
16
|
+
$(formLabelGroup).addClass('label-on-top');
|
|
17
|
+
} else {
|
|
18
|
+
$(formLabelGroup).removeClass('label-on-top');
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
|
|
10
23
|
static initialize(opts) {
|
|
11
24
|
|
|
12
25
|
// There's an error if opts is not defined
|
|
@@ -54,22 +67,26 @@ class Common {
|
|
|
54
67
|
}
|
|
55
68
|
});
|
|
56
69
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
let $formLabelGroup = $(formLabelGroup);
|
|
70
|
+
$(document).on('blur input change', '.form-label-group', function() {
|
|
71
|
+
const $formLabelGroup = $(this);
|
|
72
|
+
const val = $formLabelGroup.find('input, select').val();
|
|
61
73
|
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
74
|
+
if (val) {
|
|
75
|
+
$(this).addClass('label-on-top');
|
|
76
|
+
} else {
|
|
77
|
+
$(this).removeClass('label-on-top');
|
|
78
|
+
}
|
|
79
|
+
});
|
|
65
80
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
$(formLabelGroup).removeClass('label-on-top');
|
|
70
|
-
}
|
|
81
|
+
$('.form-label-group').each(function(i, formLabelGroup) {
|
|
82
|
+
const $formLabelGroup = $(formLabelGroup);
|
|
83
|
+
const val = $formLabelGroup.find('input, select').val();
|
|
71
84
|
|
|
72
|
-
|
|
85
|
+
if (val) {
|
|
86
|
+
$(formLabelGroup).addClass('label-on-top');
|
|
87
|
+
} else {
|
|
88
|
+
$(formLabelGroup).removeClass('label-on-top');
|
|
89
|
+
}
|
|
73
90
|
});
|
|
74
91
|
|
|
75
92
|
// Table actions
|
|
@@ -80,87 +97,46 @@ class Common {
|
|
|
80
97
|
}
|
|
81
98
|
});
|
|
82
99
|
|
|
83
|
-
$(document).on('click', '[data-table-link]', function(e) {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
let href = $(this).data('tableLink');
|
|
87
|
-
let target = $(e.target);
|
|
88
|
-
let exceptions = ['input', 'button', 'a', 'label', 'td.col-select'];
|
|
89
|
-
let linkDisabled = false;
|
|
90
|
-
|
|
91
|
-
$.each(exceptions, function(item) {
|
|
100
|
+
$(document).on('click', '[data-table-link] .table-link-exclude, [data-table-link] input, [data-table-link] button, [data-table-link] a, [data-table-link] label, [data-table-link] .td-col-select', function(e) {
|
|
101
|
+
e.stopPropagation();
|
|
102
|
+
});
|
|
92
103
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
});
|
|
104
|
+
$(document).on('click', '[data-table-link]', function(e) {
|
|
105
|
+
const $container = $(this).parents('table, .table');
|
|
106
|
+
const href = $(this).data('tableLink');
|
|
97
107
|
|
|
98
108
|
if ($container.hasClass('bulk-actions-active')) {
|
|
99
|
-
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (target.hasClass('table-link-exclude')) {
|
|
103
|
-
linkDisabled = true;
|
|
109
|
+
return;
|
|
104
110
|
}
|
|
105
111
|
|
|
106
|
-
if (
|
|
107
|
-
|
|
108
|
-
if (e.ctrlKey || e.metaKey) {
|
|
109
|
-
|
|
110
|
-
window.open(href, '_blank');
|
|
111
|
-
|
|
112
|
-
} else {
|
|
113
|
-
|
|
114
|
-
window.location.href = href;
|
|
115
|
-
}
|
|
116
|
-
|
|
112
|
+
if (e.ctrlKey || e.metaKey) {
|
|
113
|
+
window.open(href, '_blank');
|
|
117
114
|
} else {
|
|
118
|
-
|
|
119
|
-
return;
|
|
115
|
+
window.location.href = href;
|
|
120
116
|
}
|
|
121
117
|
});
|
|
122
118
|
|
|
123
|
-
$(document).on('click', '[data-table-btn]', function(e) {
|
|
119
|
+
$(document).on('click', '[data-table-btn] .table-btn-exclude, [data-table-btn] input, [data-table-btn] button, [data-table-btn] a, [data-table-btn] label, [data-table-btn] .td-col-select', function(e) {
|
|
120
|
+
e.stopPropagation();
|
|
121
|
+
});
|
|
124
122
|
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
$(document).on('click', '[data-table-btn]', function(e) {
|
|
124
|
+
const $container = $(this).parents('table, .table');
|
|
127
125
|
let btn = $(this).data('tableButton');
|
|
128
|
-
let target = $(e.target);
|
|
129
|
-
let exceptions = ['input', 'button', 'a', 'label', 'td.col-select'];
|
|
130
|
-
let btnDisabled = false;
|
|
131
126
|
|
|
132
127
|
if (!btn) {
|
|
133
|
-
|
|
134
|
-
btn = $self.find('button')[0];
|
|
128
|
+
btn = $container.find('button')[0];
|
|
135
129
|
|
|
136
130
|
if (!btn) {
|
|
137
131
|
return;
|
|
138
132
|
}
|
|
139
133
|
}
|
|
140
134
|
|
|
141
|
-
$.each(exceptions, function(item) {
|
|
142
|
-
|
|
143
|
-
if (target.is(item) || (item == 'a' && target.parent().is(item))) {
|
|
144
|
-
btnDisabled = true;
|
|
145
|
-
}
|
|
146
|
-
});
|
|
147
|
-
|
|
148
135
|
if ($container.hasClass('bulk-actions-active')) {
|
|
149
|
-
btnDisabled = true;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
if (target.hasClass('table-btn-exclude')) {
|
|
153
|
-
btnDisabled = true;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
if (target.is('td, .td, img') && !btnDisabled) {
|
|
157
|
-
|
|
158
|
-
$(btn).click();
|
|
159
|
-
|
|
160
|
-
} else {
|
|
161
|
-
|
|
162
136
|
return;
|
|
163
137
|
}
|
|
138
|
+
|
|
139
|
+
$(btn).click();
|
|
164
140
|
});
|
|
165
141
|
|
|
166
142
|
// button toggle
|
|
@@ -233,7 +209,6 @@ class Common {
|
|
|
233
209
|
let $sidebarLeftContent = $sidebarLeft.find('.sidebar-content');
|
|
234
210
|
|
|
235
211
|
if ($sidebarLeftContent.length) {
|
|
236
|
-
|
|
237
212
|
let sidebarLeftScroll = new PerfectScrollbar($sidebarLeftContent[0], {
|
|
238
213
|
wheelSpeed: 2,
|
|
239
214
|
wheelPropagation: true,
|
|
@@ -241,11 +216,18 @@ class Common {
|
|
|
241
216
|
suppressScrollX: true
|
|
242
217
|
});
|
|
243
218
|
|
|
244
|
-
$sidebarLeftContent.find('[data-toggle="collapse"]').on('click', function() {
|
|
219
|
+
$sidebarLeftContent.find('[data-toggle="collapse"]').on('click', function(e) {
|
|
220
|
+
if ($(this).data('breakpoint') && window.matchMedia(`(min-width: ${$(this).data('breakpoint')}px)`).matches) {
|
|
221
|
+
const a = $(this).next().find('li').first().children('a').first();
|
|
245
222
|
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
223
|
+
if (a) {
|
|
224
|
+
window.location.href = a.attr('href');
|
|
225
|
+
}
|
|
226
|
+
} else {
|
|
227
|
+
setTimeout(() => {
|
|
228
|
+
sidebarLeftScroll.update();
|
|
229
|
+
}, 300);
|
|
230
|
+
}
|
|
249
231
|
});
|
|
250
232
|
}
|
|
251
233
|
|
|
@@ -309,5 +291,6 @@ class Common {
|
|
|
309
291
|
}
|
|
310
292
|
|
|
311
293
|
window.Cool.initialize = Common.initialize;
|
|
294
|
+
window.Cool.refresh = Common.refresh;
|
|
312
295
|
|
|
313
296
|
export default Common;
|
package/js/src/dialog.js
CHANGED
|
@@ -386,7 +386,7 @@ class Dialog {
|
|
|
386
386
|
|
|
387
387
|
if (dialog.actions.remove.visible) {
|
|
388
388
|
|
|
389
|
-
btnStyle =
|
|
389
|
+
btnStyle = 'btn-remove';
|
|
390
390
|
btnClasses = dialog.actions.remove.classes ? ' '+dialog.actions.remove.classes : '';
|
|
391
391
|
btnAttrs = dialog.actions.remove.attrs ? ' '+dialog.actions.remove.attrs : '';
|
|
392
392
|
btnRemove = `
|
|
@@ -409,8 +409,9 @@ class Dialog {
|
|
|
409
409
|
}
|
|
410
410
|
|
|
411
411
|
footer = `
|
|
412
|
-
${btnCancel}
|
|
413
412
|
${btnRemove}
|
|
413
|
+
<div class="spacer"></div>
|
|
414
|
+
${btnCancel}
|
|
414
415
|
${btnConfirm}
|
|
415
416
|
`;
|
|
416
417
|
|
package/js/src/popover.js
CHANGED
|
@@ -93,10 +93,11 @@ class Popover extends AbstractUIComponent {
|
|
|
93
93
|
this.show();
|
|
94
94
|
});
|
|
95
95
|
|
|
96
|
-
this.$el.on('mouseleave'+'.'+NAME, () => {
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
96
|
+
this.$el.on('mouseleave'+'.'+NAME, debounce(() => {
|
|
97
|
+
if (!this.popupHasFocus) {
|
|
98
|
+
this.close();
|
|
99
|
+
}
|
|
100
|
+
}, 500));
|
|
100
101
|
|
|
101
102
|
} else if (this.trigger === 'focus') {
|
|
102
103
|
|
|
@@ -159,6 +160,16 @@ class Popover extends AbstractUIComponent {
|
|
|
159
160
|
`);
|
|
160
161
|
|
|
161
162
|
this.$container.append(this.$popover);
|
|
163
|
+
|
|
164
|
+
this.$container.find('#'+this.id).on('mouseenter', () => {
|
|
165
|
+
this.popupHasFocus = true;
|
|
166
|
+
});
|
|
167
|
+
|
|
168
|
+
this.$container.find('#'+this.id).on('mouseleave', () => {
|
|
169
|
+
this.popupHasFocus = false;
|
|
170
|
+
this.close();
|
|
171
|
+
});
|
|
172
|
+
|
|
162
173
|
this.$arrow = this.$popover.find('.arrow') ? this.$popover.find('.arrow') : false;
|
|
163
174
|
|
|
164
175
|
this.log(this.$el);
|
package/js/src/select.js
CHANGED
|
@@ -69,6 +69,7 @@ class Select extends AbstractUIComponent {
|
|
|
69
69
|
this.$select.find('.select-item').remove();
|
|
70
70
|
this.$selectItems = [];
|
|
71
71
|
this.$selectIconContainer.html(this.selectIconDefault);
|
|
72
|
+
this.$selectHeader.removeClass('select-placeholder');
|
|
72
73
|
|
|
73
74
|
if (this.data[this.name].length == 0 &&
|
|
74
75
|
this.dynamicTitle &&
|
|
@@ -81,8 +82,7 @@ class Select extends AbstractUIComponent {
|
|
|
81
82
|
}
|
|
82
83
|
|
|
83
84
|
if (this.$selectItems.length == 0 && !this.searchApi && this.dynamicTitle && this.dynamicTitleEmptyDefault && this.dynamicTitleEmptyDefault !== 0) {
|
|
84
|
-
|
|
85
|
-
this.$selectHeader.css('cursor', 'default');
|
|
85
|
+
this.$selectHeader.addClass('select-placeholder');
|
|
86
86
|
this.$selectIconContainer.addClass('d-none');
|
|
87
87
|
this.$selectTitle.html(this.dynamicTitleEmptyDefault);
|
|
88
88
|
}
|
|
@@ -249,6 +249,7 @@ class Select extends AbstractUIComponent {
|
|
|
249
249
|
|
|
250
250
|
this.$scrollableContent = this.$select.find('.select-scrollable-content') ? this.$select.find('.select-scrollable-content') : false;
|
|
251
251
|
this.$selectItems = this.$select.find('.select-item');
|
|
252
|
+
this.$selectHeader.removeClass('select-placeholder');
|
|
252
253
|
|
|
253
254
|
if (this.data[this.name].length == 0 &&
|
|
254
255
|
this.dynamicTitle &&
|
|
@@ -262,7 +263,7 @@ class Select extends AbstractUIComponent {
|
|
|
262
263
|
|
|
263
264
|
if (this.$selectItems.length == 0 && !this.searchApi && this.dynamicTitle && this.dynamicTitleEmptyDefault && this.dynamicTitleEmptyDefault !== 0) {
|
|
264
265
|
|
|
265
|
-
this.$selectHeader.
|
|
266
|
+
this.$selectHeader.addClass('select-placeholder');
|
|
266
267
|
this.$selectIconContainer.addClass('d-none');
|
|
267
268
|
this.$selectTitle.html(this.dynamicTitleEmptyDefault);
|
|
268
269
|
}
|
|
@@ -588,7 +589,7 @@ class Select extends AbstractUIComponent {
|
|
|
588
589
|
let faNameSpace = this.opts.faPro ? 'fal' : 'fas';
|
|
589
590
|
|
|
590
591
|
if (this.showValidStateIcon) {
|
|
591
|
-
this.$selectIconContainer.html(`<i class="${faNameSpace} fa-check text-
|
|
592
|
+
this.$selectIconContainer.html(`<i class="${faNameSpace} fa-check text-success icon"></i>`);
|
|
592
593
|
} else {
|
|
593
594
|
this.$selectIconContainer.html(this.selectIconDefault);
|
|
594
595
|
}
|
|
@@ -910,7 +911,7 @@ class Select extends AbstractUIComponent {
|
|
|
910
911
|
}, 300);
|
|
911
912
|
|
|
912
913
|
if (this.data[this.name].length > 0 && this.showValidStateIcon) {
|
|
913
|
-
this.$selectIconContainer.html(`<i class="${faNameSpace} fa-check text-
|
|
914
|
+
this.$selectIconContainer.html(`<i class="${faNameSpace} fa-check text-success icon"></i>`);
|
|
914
915
|
} else {
|
|
915
916
|
this.$selectIconContainer.html(this.selectIconDefault);
|
|
916
917
|
}
|
|
@@ -1252,7 +1253,7 @@ class Select extends AbstractUIComponent {
|
|
|
1252
1253
|
|
|
1253
1254
|
<div class="select-footer">
|
|
1254
1255
|
|
|
1255
|
-
<button class="btn btn-block btn-
|
|
1256
|
+
<button class="btn btn-block btn-light btn-sm" type="button" tabindex="-1" data-select-close >
|
|
1256
1257
|
${this.btnCloseText}
|
|
1257
1258
|
</button>
|
|
1258
1259
|
|
package/package.json
CHANGED
package/scss/_alert.scss
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
// Alert
|
|
1
|
+
// Alert
|
|
2
2
|
// ---------------------------------------------------------------------------------------------------------------
|
|
3
3
|
|
|
4
4
|
.alert-icon {
|
|
5
5
|
border-radius: 50% 50%;
|
|
6
6
|
width: 0.9em;
|
|
7
7
|
height: 0.9em;
|
|
8
|
-
border:
|
|
8
|
+
border: $border-width solid theme-color('primary');
|
|
9
9
|
box-sizing: border-box;
|
|
10
10
|
display: inline-flex;
|
|
11
11
|
justify-content: center;
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
position: relative;
|
|
15
15
|
z-index: 2;
|
|
16
16
|
background: white;
|
|
17
|
-
box-shadow: 0 0 0 0.2em fade-out(theme-color('primary'), 0.7);
|
|
17
|
+
//box-shadow: 0 0 0 0.2em fade-out(theme-color('primary'), 0.7);
|
|
18
18
|
|
|
19
19
|
.icon {
|
|
20
20
|
font-size: 0.5em;
|
|
@@ -32,20 +32,23 @@
|
|
|
32
32
|
.alert {
|
|
33
33
|
display: flex;
|
|
34
34
|
flex-direction: row;
|
|
35
|
+
align-items: center;
|
|
35
36
|
position: relative;
|
|
36
37
|
border-radius: $border-radius;
|
|
37
|
-
margin-bottom: $section-spacer;
|
|
38
|
-
box-shadow: $section-box-shadow;
|
|
38
|
+
margin-bottom: $section-spacer-mobile;
|
|
39
39
|
width: 100%;
|
|
40
40
|
overflow: hidden;
|
|
41
41
|
box-sizing: border-box;
|
|
42
42
|
position: relative;
|
|
43
|
-
padding:
|
|
44
|
-
|
|
45
|
-
|
|
43
|
+
padding: $section-padding;
|
|
44
|
+
background: white;
|
|
45
|
+
border-top: $alert-border-width solid theme-color('primary');
|
|
46
|
+
border-left: $border-width solid theme-color('primary');
|
|
47
|
+
border-right: $border-width solid theme-color('primary');
|
|
48
|
+
border-bottom: $border-width solid theme-color('primary');
|
|
46
49
|
|
|
47
|
-
@include media-breakpoint-
|
|
48
|
-
margin-bottom: $section-spacer
|
|
50
|
+
@include media-breakpoint-up(sm) {
|
|
51
|
+
margin-bottom: $section-spacer;
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
// Icon
|
|
@@ -53,22 +56,21 @@
|
|
|
53
56
|
width: 28px;
|
|
54
57
|
height: 28px;
|
|
55
58
|
margin-top: $section-padding;
|
|
56
|
-
margin-left: $section-padding;
|
|
57
|
-
margin-right: $section-padding / 2;
|
|
58
59
|
margin-bottom: $section-padding;
|
|
59
60
|
flex-shrink: 0;
|
|
60
61
|
flex-grow: 0;
|
|
61
62
|
|
|
62
63
|
.icon {
|
|
63
|
-
font-size:
|
|
64
|
+
font-size: 12px;
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
|
|
67
68
|
|
|
68
69
|
// Content
|
|
69
70
|
.alert-content-container {
|
|
70
|
-
padding: $section-padding;
|
|
71
|
+
padding: 0 $section-padding;
|
|
71
72
|
box-sizing: border-box;
|
|
73
|
+
flex: 1;
|
|
72
74
|
|
|
73
75
|
.alert-content {
|
|
74
76
|
}
|
|
@@ -77,27 +79,21 @@
|
|
|
77
79
|
margin-top: $section-padding;
|
|
78
80
|
}
|
|
79
81
|
}
|
|
82
|
+
}
|
|
80
83
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
width: 18px;
|
|
84
|
-
height: 18px;
|
|
85
|
-
margin-top: $section-padding / 2;
|
|
86
|
-
margin-left: $section-padding / 2;
|
|
87
|
-
margin-right: $section-padding / 4;
|
|
88
|
-
margin-bottom: $section-padding / 2;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
.alert-content-container {
|
|
92
|
-
padding: $section-padding / 2;
|
|
84
|
+
a.alert {
|
|
85
|
+
color: $body-color;
|
|
93
86
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
87
|
+
.icon {
|
|
88
|
+
color: theme-color('medium');
|
|
89
|
+
font-size: $font-size-lg;
|
|
98
90
|
}
|
|
99
91
|
}
|
|
100
92
|
|
|
93
|
+
.section-content .alert {
|
|
94
|
+
border-width: 0;
|
|
95
|
+
}
|
|
96
|
+
|
|
101
97
|
// Alert variants
|
|
102
98
|
@each $color, $value in $theme-colors {
|
|
103
99
|
.alert-#{$color} {
|
package/scss/_badge.scss
CHANGED
|
@@ -8,9 +8,9 @@
|
|
|
8
8
|
padding: $badge-padding-y $badge-padding-x;
|
|
9
9
|
line-height: $badge-line-height;
|
|
10
10
|
border-radius: $badge-border-radius;
|
|
11
|
-
border:
|
|
12
|
-
background-color:
|
|
13
|
-
color:
|
|
11
|
+
border: $border-width solid theme-color('primary');
|
|
12
|
+
background-color: theme-color('primary');
|
|
13
|
+
color: white;
|
|
14
14
|
box-sizing: border-box;
|
|
15
15
|
align-items: center;
|
|
16
16
|
margin: 2px;
|
|
@@ -22,8 +22,10 @@
|
|
|
22
22
|
white-space: nowrap;
|
|
23
23
|
flex-direction: row;
|
|
24
24
|
position: relative;
|
|
25
|
+
font-family: $font-family-title;
|
|
25
26
|
|
|
26
27
|
&.badge-xs {
|
|
28
|
+
border-radius: $border-radius-xs;
|
|
27
29
|
font-size: $badge-xs-font-size;
|
|
28
30
|
font-weight: $badge-xs-font-weight;
|
|
29
31
|
padding: $badge-xs-padding-y $badge-xs-padding-x;
|
|
@@ -31,12 +33,41 @@
|
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
&.badge-sm {
|
|
36
|
+
border-radius: $border-radius-sm;
|
|
34
37
|
font-size: $badge-sm-font-size;
|
|
35
38
|
font-weight: $badge-sm-font-weight;
|
|
36
39
|
padding: $badge-sm-padding-y $badge-sm-padding-x;
|
|
37
40
|
line-height: $badge-sm-line-height;
|
|
38
41
|
}
|
|
39
42
|
|
|
43
|
+
&.badge-btn {
|
|
44
|
+
padding: $btn-padding-y $btn-padding-x;
|
|
45
|
+
font-size: $btn-font-size;
|
|
46
|
+
line-height: $btn-line-height;
|
|
47
|
+
border-radius: $btn-border-radius;
|
|
48
|
+
|
|
49
|
+
&.badge-btn-xs {
|
|
50
|
+
padding: $btn-padding-y-xs $btn-padding-x-xs;
|
|
51
|
+
font-size: $btn-font-size-xs;
|
|
52
|
+
line-height: $btn-line-height-xs;
|
|
53
|
+
border-radius: $btn-border-radius-xs;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
&.badge-btn-sm {
|
|
57
|
+
padding: $btn-padding-y-sm $btn-padding-x-sm;
|
|
58
|
+
font-size: $btn-font-size-sm;
|
|
59
|
+
line-height: $btn-line-height-sm;
|
|
60
|
+
border-radius: $btn-border-radius-sm;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&.badge-btn-lg {
|
|
64
|
+
padding: $btn-padding-y-lg $btn-padding-x-lg;
|
|
65
|
+
font-size: $btn-font-size-lg;
|
|
66
|
+
line-height: $btn-line-height-lg;
|
|
67
|
+
border-radius: $btn-border-radius-lg;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
40
71
|
.alert-icon {
|
|
41
72
|
margin-right: 0.4em;
|
|
42
73
|
|
|
@@ -46,11 +77,11 @@
|
|
|
46
77
|
}
|
|
47
78
|
}
|
|
48
79
|
|
|
49
|
-
@each $color, $value in $colors {
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
}
|
|
80
|
+
// @each $color, $value in $colors {
|
|
81
|
+
// .badge-#{$color} {
|
|
82
|
+
// @include badge-variant($value);
|
|
83
|
+
// }
|
|
84
|
+
// }
|
|
54
85
|
|
|
55
86
|
@each $color, $value in $theme-colors {
|
|
56
87
|
.badge-#{$color} {
|
|
@@ -58,11 +89,11 @@
|
|
|
58
89
|
}
|
|
59
90
|
}
|
|
60
91
|
|
|
61
|
-
@each $color, $value in $colors {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
}
|
|
92
|
+
// @each $color, $value in $colors {
|
|
93
|
+
// .badge-outline-#{$color} {
|
|
94
|
+
// @include badge-outline-variant($value);
|
|
95
|
+
// }
|
|
96
|
+
// }
|
|
66
97
|
|
|
67
98
|
@each $color, $value in $theme-colors {
|
|
68
99
|
.badge-outline-#{$color} {
|