1
0
mirror of https://codeberg.org/nobody/LocalCDN.git synced 2025-06-05 21:49:31 +02:00

mdb-ui-kit v7.3.0 -> v7.3.1

This commit is contained in:
nobody
2024-06-15 11:04:11 +02:00
parent 0c7511f4a5
commit 69114568ca
7 changed files with 48 additions and 33 deletions

View File

@@ -949,8 +949,8 @@ https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.css
https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.js https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/5.0.0/mdb.min.js
https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.4.2/mdb.min.css https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.4.2/mdb.min.css
https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.4.2/mdb.min.js https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/6.4.2/mdb.min.js
https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/7.3.0/mdb.es.min.js https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/7.3.1/mdb.es.min.js
https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/7.3.0/mdb.min.css https://cdnjs.cloudflare.com/ajax/libs/mdb-ui-kit/7.3.1/mdb.min.css
https://cdnjs.cloudflare.com/ajax/libs/Modaal/0.4.4/css/modaal.min.css https://cdnjs.cloudflare.com/ajax/libs/Modaal/0.4.4/css/modaal.min.css
https://cdnjs.cloudflare.com/ajax/libs/Modaal/0.4.4/js/modaal.min.js https://cdnjs.cloudflare.com/ajax/libs/Modaal/0.4.4/js/modaal.min.js
https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.8.3/modernizr.min.js

View File

@@ -337,7 +337,7 @@ targets.setLastVersion = function (type, version) {
if (type.startsWith('/mdb-ui-kit/4.')) return '4.4.0'; if (type.startsWith('/mdb-ui-kit/4.')) return '4.4.0';
if (type.startsWith('/mdb-ui-kit/5.')) return '5.0.0'; if (type.startsWith('/mdb-ui-kit/5.')) return '5.0.0';
if (type.startsWith('/mdb-ui-kit/6.')) return '6.4.2'; if (type.startsWith('/mdb-ui-kit/6.')) return '6.4.2';
if (type.startsWith('/mdb-ui-kit/7.')) return '7.3.0'; if (type.startsWith('/mdb-ui-kit/7.')) return '7.3.1';
if (type.startsWith('/mobile/1.')) return '1.4.5'; if (type.startsWith('/mobile/1.')) return '1.4.5';
if (type.startsWith('/Modaal/0.')) return '0.4.4'; if (type.startsWith('/Modaal/0.')) return '0.4.4';
if (type.startsWith('/modernizr/2.')) return '2.8.3'; if (type.startsWith('/modernizr/2.')) return '2.8.3';

View File

@@ -44,6 +44,7 @@
<li>instantsearch.js v4.70.0 -> v4.71.1</li> <li>instantsearch.js v4.70.0 -> v4.71.1</li>
<li>libphonenumber-js v1.11.2 -> v1.11.3</li> <li>libphonenumber-js v1.11.2 -> v1.11.3</li>
<li>magnific-popup.js v1.1.0 -> v1.2.0</li> <li>magnific-popup.js v1.1.0 -> v1.2.0</li>
<li>mdb-ui-kit v7.3.0 -> v7.3.1</li>
</ul> </ul>
</div> </div>
<div id="generator-section"> <div id="generator-section">

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -1197,7 +1197,9 @@ const initComponent = (component, manualInit = false) => {
if (!component || InitializedComponents.get(component.NAME)) { if (!component || InitializedComponents.get(component.NAME)) {
return; return;
} }
InitializedComponents.set(component.NAME); if (!manualInit) {
InitializedComponents.set(component.NAME);
}
const thisComponent = _defaultInitSelectors[component.NAME] || null; const thisComponent = _defaultInitSelectors[component.NAME] || null;
const isToggler = (thisComponent == null ? void 0 : thisComponent.isToggler) || false; const isToggler = (thisComponent == null ? void 0 : thisComponent.isToggler) || false;
defineJQueryPlugin(component); defineJQueryPlugin(component);
@@ -6052,8 +6054,9 @@ class Input extends BaseComponent2 {
}); });
} }
_toggleDefaultDatePlaceholder(input = this.input) { _toggleDefaultDatePlaceholder(input = this.input) {
const isTypeDate = input.getAttribute("type") === "date"; const type = input.getAttribute("type");
if (!isTypeDate) { const typesWithPlaceholder = ["date", "time", "datetime-local", "month", "week"];
if (!typesWithPlaceholder.includes(type)) {
return; return;
} }
const isInputFocused = document.activeElement === input; const isInputFocused = document.activeElement === input;
@@ -6118,6 +6121,9 @@ class Input extends BaseComponent2 {
_activate(event) { _activate(event) {
onDOMContentLoaded(() => { onDOMContentLoaded(() => {
this._getElements(event); this._getElements(event);
if (!this._element) {
return;
}
const input = event ? event.target : this.input; const input = event ? event.target : this.input;
if (input.value !== "") { if (input.value !== "") {
Manipulator$1.addClass(input, CLASSNAME_ACTIVE$1); Manipulator$1.addClass(input, CLASSNAME_ACTIVE$1);
@@ -6126,9 +6132,17 @@ class Input extends BaseComponent2 {
}); });
} }
_getElements(event) { _getElements(event) {
let initialized;
if (event) { if (event) {
this._element = event.target.parentNode; this._element = event.target.parentNode;
this._label = SelectorEngine$1.findOne("label", this._element); this._label = SelectorEngine$1.findOne("label", this._element);
initialized = Manipulator$1.getDataAttribute(
this._element,
`${this.constructor.NAME}-initialized`
);
}
if (!initialized) {
return;
} }
if (event && this._label) { if (event && this._label) {
const prevLabelWidth = this._labelWidth; const prevLabelWidth = this._labelWidth;
@@ -7496,7 +7510,7 @@ const inputCallback = (component, initSelector) => {
instance.update(); instance.update();
}); });
}); });
SelectorEngine$1.find(SELECTOR_DATA_INIT).map((element2) => new Input2(element2)); SelectorEngine$1.find(SELECTOR_DATA_INIT).map((element2) => Input2.getOrCreateInstance(element2));
EventHandler$1.on(window, "reset", (e) => { EventHandler$1.on(window, "reset", (e) => {
SelectorEngine$1.find(SELECTOR_OUTLINE_INPUT, e.target).forEach((element2) => { SelectorEngine$1.find(SELECTOR_OUTLINE_INPUT, e.target).forEach((element2) => {
const instance = Input2.getInstance(element2.parentNode); const instance = Input2.getInstance(element2.parentNode);