json-rules-filter 1.0.9 → 1.0.11
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/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
nGreatherThanOrEquals: "Mayor o igual que", nLowerThan: "Menor que", nLowerThanOrEquals: "Menor o igual que"
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
|
-
title: {text:"Reglas de filtrado",className:"fs-
|
|
37
|
+
title: {text:"Reglas de filtrado",className:"fs-6 fw-semibold"},
|
|
38
38
|
buttons: {
|
|
39
39
|
reset: { text: "Resetear", className: "fw-semibold link-danger link-offset-2 link-underline link-underline-opacity-0" },
|
|
40
40
|
dropdown: { text: "Añadir regla", className: "btn btn-secondary"},
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
if (this.settings.bootstrapVersion === 5) return classes;
|
|
58
58
|
|
|
59
59
|
const map = {
|
|
60
|
+
'fs-6':'',
|
|
60
61
|
'fw-semibold': 'font-weight-bold',
|
|
61
62
|
'fw-bold': 'font-weight-bold',
|
|
62
63
|
'link-danger': 'text-danger',
|
|
@@ -155,6 +156,23 @@
|
|
|
155
156
|
</div>
|
|
156
157
|
</div>`;
|
|
157
158
|
this.$contenedor.append(template);
|
|
159
|
+
const $dropdown = this.$contenedor.find('.dropdown-toggle');
|
|
160
|
+
|
|
161
|
+
if (this.settings.bootstrapVersion === 4) {
|
|
162
|
+
//BS4
|
|
163
|
+
$dropdown.dropdown({
|
|
164
|
+
popperConfig: {
|
|
165
|
+
positionFixed: true
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
} else {
|
|
169
|
+
//BS5
|
|
170
|
+
$dropdown.dropdown({
|
|
171
|
+
popperConfig: {
|
|
172
|
+
strategy: 'fixed'
|
|
173
|
+
}
|
|
174
|
+
});
|
|
175
|
+
}
|
|
158
176
|
},
|
|
159
177
|
|
|
160
178
|
// Event delegation and listeners
|