mithril-materialized 3.17.4 → 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 +10 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +10 -4
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +10 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/input-options.d.ts +2 -0
- package/package.json +8 -3
package/dist/index.umd.js
CHANGED
|
@@ -3785,7 +3785,7 @@
|
|
|
3785
3785
|
},
|
|
3786
3786
|
view: ({ attrs }) => {
|
|
3787
3787
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
3788
|
-
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"]);
|
|
3788
|
+
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"]);
|
|
3789
3789
|
// const attributes = toAttrs(params);
|
|
3790
3790
|
const cn = [newRow ? 'clear' : '', defaultClass, className].filter(Boolean).join(' ').trim() || undefined;
|
|
3791
3791
|
// Special rendering for minmax range sliders
|
|
@@ -4013,7 +4013,7 @@
|
|
|
4013
4013
|
onchange(getValue(state.inputElement));
|
|
4014
4014
|
}
|
|
4015
4015
|
} })),
|
|
4016
|
-
type === 'number' && !isNonInteractive
|
|
4016
|
+
type === 'number' && !isNonInteractive && !hideSpinners
|
|
4017
4017
|
? m('.number-input-controls', [
|
|
4018
4018
|
m('button.number-input-control.number-input-control-up[type=button]', {
|
|
4019
4019
|
'aria-label': `Increase ${label || 'value'}`,
|
|
@@ -4942,7 +4942,10 @@
|
|
|
4942
4942
|
// Create dropdown with proper positioning
|
|
4943
4943
|
const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
|
|
4944
4944
|
tabindex: 0,
|
|
4945
|
-
style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})),
|
|
4945
|
+
style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (maxHeight ? { maxHeight } : {})), {
|
|
4946
|
+
// The full-screen portal container has pointer-events disabled so it
|
|
4947
|
+
// does not block the modal. Re-enable them for the actual menu.
|
|
4948
|
+
pointerEvents: 'auto' }),
|
|
4946
4949
|
oncreate: ({ dom }) => {
|
|
4947
4950
|
state.dropdownRef = dom;
|
|
4948
4951
|
},
|
|
@@ -7357,7 +7360,10 @@
|
|
|
7357
7360
|
// Create dropdown with proper positioning
|
|
7358
7361
|
const dropdownVnode = m('ul.dropdown-content.select-dropdown', {
|
|
7359
7362
|
tabindex: 0,
|
|
7360
|
-
style: Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})),
|
|
7363
|
+
style: Object.assign(Object.assign(Object.assign({}, getPortalStyles(state.inputRef)), (attrs.maxHeight ? { maxHeight: attrs.maxHeight } : {})), {
|
|
7364
|
+
// The full-screen portal container has pointer-events disabled so it
|
|
7365
|
+
// does not block the modal. Re-enable them for the actual menu.
|
|
7366
|
+
pointerEvents: 'auto' }),
|
|
7361
7367
|
oncreate: ({ dom }) => {
|
|
7362
7368
|
state.dropdownRef = dom;
|
|
7363
7369
|
},
|