mithril-materialized 3.4.2 → 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 -4
- package/dist/index.js +3 -4
- package/dist/index.umd.js +3 -4
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -6341,14 +6341,13 @@ const Switch = () => {
|
|
|
6341
6341
|
state.checked = checked || false;
|
|
6342
6342
|
},
|
|
6343
6343
|
view: ({ attrs }) => {
|
|
6344
|
-
const
|
|
6345
|
-
const
|
|
6346
|
-
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();
|
|
6347
6346
|
return m('div', {
|
|
6348
6347
|
className: cn,
|
|
6349
6348
|
onclick: (e) => {
|
|
6350
|
-
onchange && onchange(!checked);
|
|
6351
6349
|
e.preventDefault();
|
|
6350
|
+
onchange && onchange(!checked);
|
|
6352
6351
|
},
|
|
6353
6352
|
}, [
|
|
6354
6353
|
label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
|
package/dist/index.js
CHANGED
|
@@ -6343,14 +6343,13 @@ const Switch = () => {
|
|
|
6343
6343
|
state.checked = checked || false;
|
|
6344
6344
|
},
|
|
6345
6345
|
view: ({ attrs }) => {
|
|
6346
|
-
const
|
|
6347
|
-
const
|
|
6348
|
-
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();
|
|
6349
6348
|
return m('div', {
|
|
6350
6349
|
className: cn,
|
|
6351
6350
|
onclick: (e) => {
|
|
6352
|
-
onchange && onchange(!checked);
|
|
6353
6351
|
e.preventDefault();
|
|
6352
|
+
onchange && onchange(!checked);
|
|
6354
6353
|
},
|
|
6355
6354
|
}, [
|
|
6356
6355
|
label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
|
package/dist/index.umd.js
CHANGED
|
@@ -6345,14 +6345,13 @@
|
|
|
6345
6345
|
state.checked = checked || false;
|
|
6346
6346
|
},
|
|
6347
6347
|
view: ({ attrs }) => {
|
|
6348
|
-
const
|
|
6349
|
-
const
|
|
6350
|
-
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();
|
|
6351
6350
|
return m('div', {
|
|
6352
6351
|
className: cn,
|
|
6353
6352
|
onclick: (e) => {
|
|
6354
|
-
onchange && onchange(!checked);
|
|
6355
6353
|
e.preventDefault();
|
|
6354
|
+
onchange && onchange(!checked);
|
|
6356
6355
|
},
|
|
6357
6356
|
}, [
|
|
6358
6357
|
label && m(Label, { label: label || '', id, isMandatory, className: 'active' }),
|