mithril-materialized 3.4.1 → 3.4.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.
- package/dist/index.esm.js +3 -6
- package/dist/index.js +3 -6
- package/dist/index.umd.js +3 -6
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6081,7 +6081,6 @@ const Select = () => {
|
|
|
6081
6081
|
}
|
|
6082
6082
|
};
|
|
6083
6083
|
const closeDropdown = (e) => {
|
|
6084
|
-
console.log('select closeDropdown called');
|
|
6085
6084
|
if (!state.isMultiple) {
|
|
6086
6085
|
state.isOpen = false;
|
|
6087
6086
|
return;
|
|
@@ -6091,7 +6090,6 @@ const Select = () => {
|
|
|
6091
6090
|
const isClickInsideSelect = target.closest('.input-field.select-space');
|
|
6092
6091
|
const isClickInsidePortalDropdown = state.isInsideModal && state.dropdownRef && (state.dropdownRef.contains(target) || target === state.dropdownRef);
|
|
6093
6092
|
if (!isClickInsideSelect && !isClickInsidePortalDropdown) {
|
|
6094
|
-
console.log('select closeDropdown called: set state');
|
|
6095
6093
|
state.isOpen = false;
|
|
6096
6094
|
}
|
|
6097
6095
|
};
|
|
@@ -6343,14 +6341,13 @@ const Switch = () => {
|
|
|
6343
6341
|
state.checked = checked || false;
|
|
6344
6342
|
},
|
|
6345
6343
|
view: ({ attrs }) => {
|
|
6346
|
-
const
|
|
6347
|
-
const
|
|
6348
|
-
const cn = ['input-field', newRow ? 'clear' : '', className].filter(Boolean).join(' ').trim() || undefined;
|
|
6344
|
+
const { checked, label, left, right, disabled, newRow, onchange, isMandatory, className = 'col s12', id = state.id } = attrs, params = __rest(attrs, ["checked", "label", "left", "right", "disabled", "newRow", "onchange", "isMandatory", "className", "id"]);
|
|
6345
|
+
const cn = ['input-field', newRow ? 'clear' : '', className].filter(Boolean).join(' ').trim();
|
|
6349
6346
|
return m('div', {
|
|
6350
6347
|
className: cn,
|
|
6351
6348
|
onclick: (e) => {
|
|
6352
|
-
onchange && onchange(!checked);
|
|
6353
6349
|
e.preventDefault();
|
|
6350
|
+
onchange && onchange(!checked);
|
|
6354
6351
|
},
|
|
6355
6352
|
}, [
|
|
6356
6353
|
label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
|
package/dist/index.js
CHANGED
|
@@ -6083,7 +6083,6 @@ const Select = () => {
|
|
|
6083
6083
|
}
|
|
6084
6084
|
};
|
|
6085
6085
|
const closeDropdown = (e) => {
|
|
6086
|
-
console.log('select closeDropdown called');
|
|
6087
6086
|
if (!state.isMultiple) {
|
|
6088
6087
|
state.isOpen = false;
|
|
6089
6088
|
return;
|
|
@@ -6093,7 +6092,6 @@ const Select = () => {
|
|
|
6093
6092
|
const isClickInsideSelect = target.closest('.input-field.select-space');
|
|
6094
6093
|
const isClickInsidePortalDropdown = state.isInsideModal && state.dropdownRef && (state.dropdownRef.contains(target) || target === state.dropdownRef);
|
|
6095
6094
|
if (!isClickInsideSelect && !isClickInsidePortalDropdown) {
|
|
6096
|
-
console.log('select closeDropdown called: set state');
|
|
6097
6095
|
state.isOpen = false;
|
|
6098
6096
|
}
|
|
6099
6097
|
};
|
|
@@ -6345,14 +6343,13 @@ const Switch = () => {
|
|
|
6345
6343
|
state.checked = checked || false;
|
|
6346
6344
|
},
|
|
6347
6345
|
view: ({ attrs }) => {
|
|
6348
|
-
const
|
|
6349
|
-
const
|
|
6350
|
-
const cn = ['input-field', newRow ? 'clear' : '', className].filter(Boolean).join(' ').trim() || undefined;
|
|
6346
|
+
const { checked, label, left, right, disabled, newRow, onchange, isMandatory, className = 'col s12', id = state.id } = attrs, params = __rest(attrs, ["checked", "label", "left", "right", "disabled", "newRow", "onchange", "isMandatory", "className", "id"]);
|
|
6347
|
+
const cn = ['input-field', newRow ? 'clear' : '', className].filter(Boolean).join(' ').trim();
|
|
6351
6348
|
return m('div', {
|
|
6352
6349
|
className: cn,
|
|
6353
6350
|
onclick: (e) => {
|
|
6354
|
-
onchange && onchange(!checked);
|
|
6355
6351
|
e.preventDefault();
|
|
6352
|
+
onchange && onchange(!checked);
|
|
6356
6353
|
},
|
|
6357
6354
|
}, [
|
|
6358
6355
|
label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
|
package/dist/index.umd.js
CHANGED
|
@@ -6085,7 +6085,6 @@
|
|
|
6085
6085
|
}
|
|
6086
6086
|
};
|
|
6087
6087
|
const closeDropdown = (e) => {
|
|
6088
|
-
console.log('select closeDropdown called');
|
|
6089
6088
|
if (!state.isMultiple) {
|
|
6090
6089
|
state.isOpen = false;
|
|
6091
6090
|
return;
|
|
@@ -6095,7 +6094,6 @@
|
|
|
6095
6094
|
const isClickInsideSelect = target.closest('.input-field.select-space');
|
|
6096
6095
|
const isClickInsidePortalDropdown = state.isInsideModal && state.dropdownRef && (state.dropdownRef.contains(target) || target === state.dropdownRef);
|
|
6097
6096
|
if (!isClickInsideSelect && !isClickInsidePortalDropdown) {
|
|
6098
|
-
console.log('select closeDropdown called: set state');
|
|
6099
6097
|
state.isOpen = false;
|
|
6100
6098
|
}
|
|
6101
6099
|
};
|
|
@@ -6347,14 +6345,13 @@
|
|
|
6347
6345
|
state.checked = checked || false;
|
|
6348
6346
|
},
|
|
6349
6347
|
view: ({ attrs }) => {
|
|
6350
|
-
const
|
|
6351
|
-
const
|
|
6352
|
-
const cn = ['input-field', newRow ? 'clear' : '', className].filter(Boolean).join(' ').trim() || undefined;
|
|
6348
|
+
const { checked, label, left, right, disabled, newRow, onchange, isMandatory, className = 'col s12', id = state.id } = attrs, params = __rest(attrs, ["checked", "label", "left", "right", "disabled", "newRow", "onchange", "isMandatory", "className", "id"]);
|
|
6349
|
+
const cn = ['input-field', newRow ? 'clear' : '', className].filter(Boolean).join(' ').trim();
|
|
6353
6350
|
return m('div', {
|
|
6354
6351
|
className: cn,
|
|
6355
6352
|
onclick: (e) => {
|
|
6356
|
-
onchange && onchange(!checked);
|
|
6357
6353
|
e.preventDefault();
|
|
6354
|
+
onchange && onchange(!checked);
|
|
6358
6355
|
},
|
|
6359
6356
|
}, [
|
|
6360
6357
|
label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
|