@materializecss/materialize 2.0.2-alpha → 2.0.3-alpha
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/css/materialize.css +1336 -118
- package/dist/css/materialize.min.css +2 -2
- package/dist/js/materialize.js +27 -25
- package/dist/js/materialize.min.js +2 -2
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/autocomplete.d.ts +143 -0
- package/dist/src/autocomplete.d.ts.map +1 -0
- package/dist/src/bounding.d.ts +7 -0
- package/dist/src/bounding.d.ts.map +1 -0
- package/dist/src/buttons.d.ts +65 -0
- package/dist/src/buttons.d.ts.map +1 -0
- package/dist/src/cards.d.ts +4 -0
- package/dist/src/cards.d.ts.map +1 -0
- package/dist/src/carousel.d.ts +131 -0
- package/dist/src/carousel.d.ts.map +1 -0
- package/dist/src/characterCounter.d.ts +37 -0
- package/dist/src/characterCounter.d.ts.map +1 -0
- package/dist/src/chips.d.ts +131 -0
- package/dist/src/chips.d.ts.map +1 -0
- package/dist/src/collapsible.d.ts +74 -0
- package/dist/src/collapsible.d.ts.map +1 -0
- package/dist/src/component.d.ts +74 -0
- package/dist/src/component.d.ts.map +1 -0
- package/dist/src/datepicker.d.ts +248 -0
- package/dist/src/datepicker.d.ts.map +1 -0
- package/dist/src/dropdown.d.ts +148 -0
- package/dist/src/dropdown.d.ts.map +1 -0
- package/dist/src/edges.d.ts +7 -0
- package/dist/src/edges.d.ts.map +1 -0
- package/dist/src/forms.d.ts +12 -0
- package/dist/src/forms.d.ts.map +1 -0
- package/dist/src/global.d.ts +60 -0
- package/dist/src/global.d.ts.map +1 -0
- package/dist/src/index.d.ts +27 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/materialbox.d.ts +92 -0
- package/dist/src/materialbox.d.ts.map +1 -0
- package/dist/src/modal.d.ts +119 -0
- package/dist/src/modal.d.ts.map +1 -0
- package/dist/src/parallax.d.ts +40 -0
- package/dist/src/parallax.d.ts.map +1 -0
- package/dist/src/pushpin.d.ts +52 -0
- package/dist/src/pushpin.d.ts.map +1 -0
- package/dist/src/range.d.ts +41 -0
- package/dist/src/range.d.ts.map +1 -0
- package/dist/src/scrollspy.d.ts +62 -0
- package/dist/src/scrollspy.d.ts.map +1 -0
- package/dist/src/select.d.ts +77 -0
- package/dist/src/select.d.ts.map +1 -0
- package/dist/src/sidenav.d.ts +122 -0
- package/dist/src/sidenav.d.ts.map +1 -0
- package/dist/src/slider.d.ts +103 -0
- package/dist/src/slider.d.ts.map +1 -0
- package/dist/src/tabs.d.ts +80 -0
- package/dist/src/tabs.d.ts.map +1 -0
- package/dist/src/tapTarget.d.ts +59 -0
- package/dist/src/tapTarget.d.ts.map +1 -0
- package/dist/src/timepicker.d.ts +208 -0
- package/dist/src/timepicker.d.ts.map +1 -0
- package/dist/src/toasts.d.ts +90 -0
- package/dist/src/toasts.d.ts.map +1 -0
- package/dist/src/tooltip.d.ts +112 -0
- package/dist/src/tooltip.d.ts.map +1 -0
- package/dist/src/utils.d.ts +97 -0
- package/dist/src/utils.d.ts.map +1 -0
- package/dist/src/waves.d.ts +16 -0
- package/dist/src/waves.d.ts.map +1 -0
- package/package.json +4 -1
- package/sass/components/_cards.scss +1 -1
- package/sass/components/_global.scss +50 -0
- package/sass/components/_grid.scss +28 -47
- package/sass/components/_navbar.scss +26 -26
- package/sass/components/_pulse.scss +1 -0
- package/sass/components/_sidenav.scss +3 -14
- package/sass/components/_theme_variables.scss +27 -47
- package/sass/components/_variables.scss +2 -0
- package/sass/components/colors.module.scss +180 -0
- package/sass/components/theme.dark.module.scss +32 -0
- package/sass/components/theme.light.module.scss +32 -0
- package/sass/components/tokens.module.scss +272 -0
- package/sass/components/typography.module.scss +150 -0
- package/sass/materialize.scss +7 -1
- package/src/carousel.ts +1 -1
- package/src/chips.ts +1 -1
- package/src/datepicker.ts +1 -1
- package/src/dropdown.ts +0 -3
- package/src/forms.ts +20 -11
- package/src/global.ts +21 -23
- package/src/index.ts +26 -0
- package/src/select.ts +1 -1
- package/src/timepicker.ts +1 -1
package/dist/js/materialize.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Materialize v2.0.
|
|
2
|
+
* Materialize v2.0.3-alpha (https://materializecss.github.io/materialize)
|
|
3
3
|
* Copyright 2014-2023 Materialize
|
|
4
4
|
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
|
|
5
5
|
*/
|
|
@@ -3616,7 +3616,7 @@ class Datepicker extends component_1.Component {
|
|
|
3616
3616
|
*/
|
|
3617
3617
|
setInputValue() {
|
|
3618
3618
|
this.el.value = this.toString();
|
|
3619
|
-
this.el.dispatchEvent(new CustomEvent('change', { detail: { firedBy: this } }));
|
|
3619
|
+
this.el.dispatchEvent(new CustomEvent('change', { bubbles: true, cancelable: true, composed: true, detail: { firedBy: this } }));
|
|
3620
3620
|
}
|
|
3621
3621
|
_renderDateDisplay() {
|
|
3622
3622
|
let displayDate = Datepicker._isDate(this.date) ? this.date : new Date();
|
|
@@ -4510,9 +4510,6 @@ class Dropdown extends component_1.Component {
|
|
|
4510
4510
|
}
|
|
4511
4511
|
exports.Dropdown = Dropdown;
|
|
4512
4512
|
Dropdown._dropdowns = [];
|
|
4513
|
-
(() => {
|
|
4514
|
-
Dropdown._dropdowns = [];
|
|
4515
|
-
})();
|
|
4516
4513
|
|
|
4517
4514
|
|
|
4518
4515
|
/***/ }),
|
|
@@ -4619,29 +4616,35 @@ class Forms {
|
|
|
4619
4616
|
}
|
|
4620
4617
|
});
|
|
4621
4618
|
document.querySelectorAll('.materialize-textarea').forEach((textArea) => {
|
|
4622
|
-
// Save Data in Element
|
|
4623
|
-
textArea.setAttribute('original-height', textArea.getBoundingClientRect().height.toString());
|
|
4624
|
-
textArea.setAttribute('previous-length', textArea.value.length.toString());
|
|
4625
4619
|
Forms.textareaAutoResize(textArea);
|
|
4626
|
-
textArea.addEventListener('keyup', e => Forms.textareaAutoResize(textArea));
|
|
4627
|
-
textArea.addEventListener('keydown', e => Forms.textareaAutoResize(textArea));
|
|
4628
4620
|
});
|
|
4629
4621
|
// File Input Path
|
|
4630
4622
|
document.querySelectorAll('.file-field input[type="file"]').forEach((fileInput) => {
|
|
4631
|
-
|
|
4632
|
-
const fileField = fileInput.closest('.file-field');
|
|
4633
|
-
const pathInput = fileField.querySelector('input.file-path');
|
|
4634
|
-
const files = fileInput.files;
|
|
4635
|
-
const filenames = [];
|
|
4636
|
-
for (let i = 0; i < files.length; i++) {
|
|
4637
|
-
filenames.push(files[i].name);
|
|
4638
|
-
}
|
|
4639
|
-
pathInput.value = filenames.join(', ');
|
|
4640
|
-
pathInput.dispatchEvent(new Event('change'));
|
|
4641
|
-
});
|
|
4623
|
+
Forms.InitFileInputPath(fileInput);
|
|
4642
4624
|
});
|
|
4643
4625
|
});
|
|
4644
4626
|
}
|
|
4627
|
+
static InitTextarea(textarea) {
|
|
4628
|
+
// Save Data in Element
|
|
4629
|
+
textarea.setAttribute('original-height', textarea.getBoundingClientRect().height.toString());
|
|
4630
|
+
textarea.setAttribute('previous-length', textarea.value.length.toString());
|
|
4631
|
+
Forms.textareaAutoResize(textarea);
|
|
4632
|
+
textarea.addEventListener('keyup', e => Forms.textareaAutoResize(textarea));
|
|
4633
|
+
textarea.addEventListener('keydown', e => Forms.textareaAutoResize(textarea));
|
|
4634
|
+
}
|
|
4635
|
+
static InitFileInputPath(fileInput) {
|
|
4636
|
+
fileInput.addEventListener('change', e => {
|
|
4637
|
+
const fileField = fileInput.closest('.file-field');
|
|
4638
|
+
const pathInput = fileField.querySelector('input.file-path');
|
|
4639
|
+
const files = fileInput.files;
|
|
4640
|
+
const filenames = [];
|
|
4641
|
+
for (let i = 0; i < files.length; i++) {
|
|
4642
|
+
filenames.push(files[i].name);
|
|
4643
|
+
}
|
|
4644
|
+
pathInput.value = filenames.join(', ');
|
|
4645
|
+
pathInput.dispatchEvent(new Event('change', { bubbles: true, cancelable: true, composed: true }));
|
|
4646
|
+
});
|
|
4647
|
+
}
|
|
4645
4648
|
}
|
|
4646
4649
|
exports.Forms = Forms;
|
|
4647
4650
|
|
|
@@ -5947,7 +5950,7 @@ class FormSelect extends component_1.Component {
|
|
|
5947
5950
|
const actualSelectedValues = this.getSelectedValues();
|
|
5948
5951
|
const selectionHasChanged = !this._arraysEqual(previousSelectedValues, actualSelectedValues);
|
|
5949
5952
|
if (selectionHasChanged)
|
|
5950
|
-
this.el.dispatchEvent(new Event('change')); // trigger('change');
|
|
5953
|
+
this.el.dispatchEvent(new Event('change', { bubbles: true, cancelable: true, composed: true })); // trigger('change');
|
|
5951
5954
|
}
|
|
5952
5955
|
if (!this.isMultiple)
|
|
5953
5956
|
this.dropdown.close();
|
|
@@ -7786,7 +7789,7 @@ class Timepicker extends component_1.Component {
|
|
|
7786
7789
|
this.el.value = value;
|
|
7787
7790
|
// Trigger change event
|
|
7788
7791
|
if (value !== last) {
|
|
7789
|
-
this.el.dispatchEvent(new Event('change'));
|
|
7792
|
+
this.el.dispatchEvent(new Event('change', { bubbles: true, cancelable: true, composed: true }));
|
|
7790
7793
|
}
|
|
7791
7794
|
this.close();
|
|
7792
7795
|
this.el.focus();
|
|
@@ -9099,7 +9102,7 @@ class M {
|
|
|
9099
9102
|
}
|
|
9100
9103
|
}
|
|
9101
9104
|
exports.M = M;
|
|
9102
|
-
M.version = '2.0.
|
|
9105
|
+
M.version = '2.0.3-alpha';
|
|
9103
9106
|
M.Autocomplete = autocomplete_1.Autocomplete;
|
|
9104
9107
|
M.Tabs = tabs_1.Tabs;
|
|
9105
9108
|
M.Carousel = carousel_1.Carousel;
|
|
@@ -9137,7 +9140,6 @@ M.Utils = utils_1.Utils;
|
|
|
9137
9140
|
waves_1.Waves.Init();
|
|
9138
9141
|
range_1.Range.Init();
|
|
9139
9142
|
})();
|
|
9140
|
-
exports["default"] = M;
|
|
9141
9143
|
|
|
9142
9144
|
})();
|
|
9143
9145
|
|