mithril-materialized 3.17.5 → 3.17.6
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/README.md +4 -114
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/dist/input-options.d.ts +2 -0
- package/package.json +8 -3
package/dist/index.js
CHANGED
|
@@ -3783,7 +3783,7 @@ const InputField = (type, defaultClass = '') => () => {
|
|
|
3783
3783
|
},
|
|
3784
3784
|
view: ({ attrs }) => {
|
|
3785
3785
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
3786
|
-
const { className = 'col s12', dataError, dataSuccess, helperText, iconName, id = state.id, placeholder, isMandatory, label, maxLength, newRow, oninput, onchange, onkeydown, onkeypress, onkeyup, style, validate, canClear } = attrs, params = __rest(attrs, ["className", "dataError", "dataSuccess", "helperText", "iconName", "id", "placeholder", "isMandatory", "label", "maxLength", "newRow", "oninput", "onchange", "onkeydown", "onkeypress", "onkeyup", "style", "validate", "canClear"]);
|
|
3786
|
+
const { className = 'col s12', dataError, dataSuccess, helperText, iconName, id = state.id, placeholder, isMandatory, label, maxLength, newRow, oninput, onchange, onkeydown, onkeypress, onkeyup, style, validate, canClear, hideSpinners } = attrs, params = __rest(attrs, ["className", "dataError", "dataSuccess", "helperText", "iconName", "id", "placeholder", "isMandatory", "label", "maxLength", "newRow", "oninput", "onchange", "onkeydown", "onkeypress", "onkeyup", "style", "validate", "canClear", "hideSpinners"]);
|
|
3787
3787
|
// const attributes = toAttrs(params);
|
|
3788
3788
|
const cn = [newRow ? 'clear' : '', defaultClass, className].filter(Boolean).join(' ').trim() || undefined;
|
|
3789
3789
|
// Special rendering for minmax range sliders
|
|
@@ -4011,7 +4011,7 @@ const InputField = (type, defaultClass = '') => () => {
|
|
|
4011
4011
|
onchange(getValue(state.inputElement));
|
|
4012
4012
|
}
|
|
4013
4013
|
} })),
|
|
4014
|
-
type === 'number' && !isNonInteractive
|
|
4014
|
+
type === 'number' && !isNonInteractive && !hideSpinners
|
|
4015
4015
|
? m('.number-input-controls', [
|
|
4016
4016
|
m('button.number-input-control.number-input-control-up[type=button]', {
|
|
4017
4017
|
'aria-label': `Increase ${label || 'value'}`,
|