@materializecss/materialize 2.0.3 → 2.1.0
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/LICENSE +1 -1
- package/README.md +15 -17
- package/dist/css/materialize.css +677 -566
- package/dist/css/materialize.min.css +3 -3
- package/dist/js/materialize.js +103 -77
- package/dist/js/materialize.min.js +3 -3
- package/dist/js/materialize.min.js.map +1 -1
- package/dist/src/bounding.d.ts.map +1 -1
- package/dist/src/dropdown.d.ts +1 -0
- package/dist/src/dropdown.d.ts.map +1 -1
- package/dist/src/edges.d.ts.map +1 -1
- package/dist/src/modal.d.ts.map +1 -1
- package/dist/src/select.d.ts.map +1 -1
- package/dist/src/tabs.d.ts.map +1 -1
- package/dist/src/toasts.d.ts.map +1 -1
- package/dist/src/utils.d.ts.map +1 -1
- package/dist/src/waves.d.ts.map +1 -1
- package/package.json +16 -35
- package/sass/components/_badges.scss +17 -12
- package/sass/components/_buttons.scss +137 -126
- package/sass/components/_cards.scss +12 -14
- package/sass/components/_carousel.scss +8 -6
- package/sass/components/_chips.scss +10 -11
- package/sass/components/_collapsible.scss +6 -8
- package/sass/components/_collection.scss +15 -15
- package/sass/components/_datepicker.scss +15 -15
- package/sass/components/_dropdown.scss +5 -17
- package/sass/components/_global.scss +65 -137
- package/sass/components/_grid.scss +12 -4
- package/sass/components/_materialbox.scss +1 -1
- package/sass/components/_modal.scss +14 -9
- package/sass/components/_navbar.scss +31 -25
- package/sass/components/_preloader.scss +5 -6
- package/sass/components/_sidenav.scss +42 -26
- package/sass/components/_slider.scss +5 -5
- package/sass/components/_table_of_contents.scss +7 -8
- package/sass/components/_tabs.scss +16 -17
- package/sass/components/_tapTarget.scss +3 -3
- package/sass/components/_timepicker.scss +12 -12
- package/sass/components/_toast.scss +17 -10
- package/sass/components/_tooltip.scss +13 -6
- package/sass/components/_variables.scss +13 -377
- package/sass/components/colors.module.scss +74 -180
- package/sass/components/forms/_checkboxes.scss +22 -22
- package/sass/components/forms/_file-input.scss +2 -5
- package/sass/components/forms/_forms.scss +5 -3
- package/sass/components/forms/_input-fields.scss +40 -41
- package/sass/components/forms/_radio-buttons.scss +11 -14
- package/sass/components/forms/_range.scss +16 -24
- package/sass/components/forms/_select.scss +34 -28
- package/sass/components/forms/_switches.scss +9 -12
- package/sass/components/theme.module.scss +140 -0
- package/sass/materialize.scss +6 -3
- package/sass/components/_theme_variables.scss +0 -78
- package/sass/components/theme.dark.module.scss +0 -32
- package/sass/components/theme.light.module.scss +0 -32
package/dist/js/materialize.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Materialize v2.0
|
|
3
|
-
* Copyright 2014-
|
|
2
|
+
* Materialize v2.1.0 (https://materializeweb.com)
|
|
3
|
+
* Copyright 2014-2024 Materialize
|
|
4
4
|
* MIT License (https://raw.githubusercontent.com/materializecss/materialize/master/LICENSE)
|
|
5
5
|
*/
|
|
6
6
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
var a = factory();
|
|
13
13
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
14
14
|
}
|
|
15
|
-
})(this, ()
|
|
16
|
-
return /******/ (()
|
|
15
|
+
})(this, function() {
|
|
16
|
+
return /******/ (function() { // webpackBootstrap
|
|
17
17
|
/******/ "use strict";
|
|
18
18
|
/******/ var __webpack_modules__ = ({
|
|
19
19
|
|
|
@@ -21,7 +21,7 @@ return /******/ (() => { // webpackBootstrap
|
|
|
21
21
|
/*!*****************************!*\
|
|
22
22
|
!*** ./src/autocomplete.ts ***!
|
|
23
23
|
\*****************************/
|
|
24
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
24
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -31,15 +31,15 @@ const dropdown_1 = __webpack_require__(/*! ./dropdown */ "./src/dropdown.ts");
|
|
|
31
31
|
const component_1 = __webpack_require__(/*! ./component */ "./src/component.ts");
|
|
32
32
|
;
|
|
33
33
|
let _defaults = {
|
|
34
|
-
data: [],
|
|
35
|
-
onAutocomplete: null,
|
|
34
|
+
data: [], // Autocomplete data set
|
|
35
|
+
onAutocomplete: null, // Callback for when autocompleted
|
|
36
36
|
dropdownOptions: {
|
|
37
37
|
// Default dropdown options
|
|
38
38
|
autoFocus: false,
|
|
39
39
|
closeOnClick: false,
|
|
40
40
|
coverTrigger: false
|
|
41
41
|
},
|
|
42
|
-
minLength: 1,
|
|
42
|
+
minLength: 1, // Min characters before autocomplete starts
|
|
43
43
|
isMultiSelect: false,
|
|
44
44
|
onSearch: (text, autocomplete) => {
|
|
45
45
|
const normSearch = text.toLocaleLowerCase();
|
|
@@ -438,7 +438,7 @@ exports.Autocomplete = Autocomplete;
|
|
|
438
438
|
/*!************************!*\
|
|
439
439
|
!*** ./src/buttons.ts ***!
|
|
440
440
|
\************************/
|
|
441
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
441
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
442
442
|
|
|
443
443
|
|
|
444
444
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -635,7 +635,7 @@ exports.FloatingActionButton = FloatingActionButton;
|
|
|
635
635
|
/*!**********************!*\
|
|
636
636
|
!*** ./src/cards.ts ***!
|
|
637
637
|
\**********************/
|
|
638
|
-
/***/ ((__unused_webpack_module, exports)
|
|
638
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
639
639
|
|
|
640
640
|
|
|
641
641
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -690,7 +690,7 @@ exports.Cards = Cards;
|
|
|
690
690
|
/*!*************************!*\
|
|
691
691
|
!*** ./src/carousel.ts ***!
|
|
692
692
|
\*************************/
|
|
693
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
693
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
694
694
|
|
|
695
695
|
|
|
696
696
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -698,14 +698,14 @@ exports.Carousel = void 0;
|
|
|
698
698
|
const utils_1 = __webpack_require__(/*! ./utils */ "./src/utils.ts");
|
|
699
699
|
const component_1 = __webpack_require__(/*! ./component */ "./src/component.ts");
|
|
700
700
|
let _defaults = {
|
|
701
|
-
duration: 200,
|
|
702
|
-
dist: -100,
|
|
703
|
-
shift: 0,
|
|
704
|
-
padding: 0,
|
|
705
|
-
numVisible: 5,
|
|
706
|
-
fullWidth: false,
|
|
707
|
-
indicators: false,
|
|
708
|
-
noWrap: false,
|
|
701
|
+
duration: 200, // ms
|
|
702
|
+
dist: -100, // zoom scale TODO: make this more intuitive as an option
|
|
703
|
+
shift: 0, // spacing for center image
|
|
704
|
+
padding: 0, // Padding between non center items
|
|
705
|
+
numVisible: 5, // Number of visible items in carousel
|
|
706
|
+
fullWidth: false, // Change to full width styles
|
|
707
|
+
indicators: false, // Toggle indicators
|
|
708
|
+
noWrap: false, // Don't wrap around and cycle through items.
|
|
709
709
|
onCycleTo: null // Callback for when a new slide is cycled to.
|
|
710
710
|
};
|
|
711
711
|
class Carousel extends component_1.Component {
|
|
@@ -1246,7 +1246,7 @@ exports.Carousel = Carousel;
|
|
|
1246
1246
|
/*!*********************************!*\
|
|
1247
1247
|
!*** ./src/characterCounter.ts ***!
|
|
1248
1248
|
\*********************************/
|
|
1249
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
1249
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1250
1250
|
|
|
1251
1251
|
|
|
1252
1252
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -1333,7 +1333,7 @@ exports.CharacterCounter = CharacterCounter;
|
|
|
1333
1333
|
/*!**********************!*\
|
|
1334
1334
|
!*** ./src/chips.ts ***!
|
|
1335
1335
|
\**********************/
|
|
1336
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
1336
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1337
1337
|
|
|
1338
1338
|
|
|
1339
1339
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -1659,7 +1659,7 @@ exports.Chips = Chips;
|
|
|
1659
1659
|
/*!****************************!*\
|
|
1660
1660
|
!*** ./src/collapsible.ts ***!
|
|
1661
1661
|
\****************************/
|
|
1662
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
1662
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1663
1663
|
|
|
1664
1664
|
|
|
1665
1665
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -1747,15 +1747,16 @@ class Collapsible extends component_1.Component {
|
|
|
1747
1747
|
this._setupEventHandlers();
|
|
1748
1748
|
// Open active
|
|
1749
1749
|
const activeBodies = Array.from(this.el.querySelectorAll('li.active > .collapsible-body'));
|
|
1750
|
-
if (this.options.accordion)
|
|
1750
|
+
if (this.options.accordion) {
|
|
1751
1751
|
if (activeBodies.length > 0) {
|
|
1752
1752
|
// Accordion => open first active only
|
|
1753
1753
|
this._setExpanded(activeBodies[0]);
|
|
1754
1754
|
}
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1755
|
+
}
|
|
1756
|
+
else {
|
|
1757
|
+
// Expandables => all active
|
|
1758
|
+
activeBodies.forEach(el => this._setExpanded(el));
|
|
1759
|
+
}
|
|
1759
1760
|
}
|
|
1760
1761
|
static get defaults() {
|
|
1761
1762
|
return _defaults;
|
|
@@ -1824,7 +1825,7 @@ exports.Collapsible = Collapsible;
|
|
|
1824
1825
|
/*!**************************!*\
|
|
1825
1826
|
!*** ./src/component.ts ***!
|
|
1826
1827
|
\**************************/
|
|
1827
|
-
/***/ ((__unused_webpack_module, exports)
|
|
1828
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
1828
1829
|
|
|
1829
1830
|
|
|
1830
1831
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -1894,7 +1895,7 @@ exports.Component = Component;
|
|
|
1894
1895
|
/*!***************************!*\
|
|
1895
1896
|
!*** ./src/datepicker.ts ***!
|
|
1896
1897
|
\***************************/
|
|
1897
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
1898
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
1898
1899
|
|
|
1899
1900
|
|
|
1900
1901
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -2648,7 +2649,7 @@ exports.Datepicker = Datepicker;
|
|
|
2648
2649
|
/*!*************************!*\
|
|
2649
2650
|
!*** ./src/dropdown.ts ***!
|
|
2650
2651
|
\*************************/
|
|
2651
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
2652
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
2652
2653
|
|
|
2653
2654
|
|
|
2654
2655
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -2677,7 +2678,12 @@ class Dropdown extends component_1.Component {
|
|
|
2677
2678
|
super(el, options, Dropdown);
|
|
2678
2679
|
this._handleClick = (e) => {
|
|
2679
2680
|
e.preventDefault();
|
|
2680
|
-
this.
|
|
2681
|
+
if (this.isOpen) {
|
|
2682
|
+
this.close();
|
|
2683
|
+
}
|
|
2684
|
+
else {
|
|
2685
|
+
this.open();
|
|
2686
|
+
}
|
|
2681
2687
|
};
|
|
2682
2688
|
this._handleMouseEnter = () => {
|
|
2683
2689
|
this.open();
|
|
@@ -2703,15 +2709,16 @@ class Dropdown extends component_1.Component {
|
|
|
2703
2709
|
target.closest('.dropdown-content') &&
|
|
2704
2710
|
!this.isTouchMoving) {
|
|
2705
2711
|
// isTouchMoving to check if scrolling on mobile.
|
|
2706
|
-
//setTimeout(() => {
|
|
2707
2712
|
this.close();
|
|
2708
|
-
//}, 0);
|
|
2709
2713
|
}
|
|
2710
|
-
else if (target.closest('.dropdown-
|
|
2711
|
-
|
|
2712
|
-
//
|
|
2713
|
-
|
|
2714
|
-
|
|
2714
|
+
else if (!target.closest('.dropdown-content')) {
|
|
2715
|
+
// Do this one frame later so that if the element clicked also triggers _handleClick
|
|
2716
|
+
// For example, if a label for a select was clicked, that we don't close/open the dropdown
|
|
2717
|
+
setTimeout(() => {
|
|
2718
|
+
if (this.isOpen) {
|
|
2719
|
+
this.close();
|
|
2720
|
+
}
|
|
2721
|
+
}, 0);
|
|
2715
2722
|
}
|
|
2716
2723
|
this.isTouchMoving = false;
|
|
2717
2724
|
};
|
|
@@ -2800,6 +2807,13 @@ class Dropdown extends component_1.Component {
|
|
|
2800
2807
|
}
|
|
2801
2808
|
this.filterTimeout = setTimeout(this._resetFilterQuery, 1000);
|
|
2802
2809
|
};
|
|
2810
|
+
this._handleWindowResize = (e) => {
|
|
2811
|
+
// Only re-place the dropdown if it's still visible
|
|
2812
|
+
// Accounts for elements hiding via media queries
|
|
2813
|
+
if (this.el.offsetParent) {
|
|
2814
|
+
this.recalculateDimensions();
|
|
2815
|
+
}
|
|
2816
|
+
};
|
|
2803
2817
|
this._resetFilterQuery = () => {
|
|
2804
2818
|
this.filterQuery = [];
|
|
2805
2819
|
};
|
|
@@ -2819,7 +2833,9 @@ class Dropdown extends component_1.Component {
|
|
|
2819
2833
|
this.dropdownEl.style.display = 'block';
|
|
2820
2834
|
this._placeDropdown();
|
|
2821
2835
|
this._animateIn();
|
|
2822
|
-
this
|
|
2836
|
+
// Do this one frame later so that we don't bind an event handler that's immediately
|
|
2837
|
+
// called when the event bubbles up to the document and closes the dropdown
|
|
2838
|
+
setTimeout(() => this._setupTemporaryEventHandlers(), 0);
|
|
2823
2839
|
};
|
|
2824
2840
|
/**
|
|
2825
2841
|
* Close dropdown.
|
|
@@ -2917,16 +2933,16 @@ class Dropdown extends component_1.Component {
|
|
|
2917
2933
|
}
|
|
2918
2934
|
}
|
|
2919
2935
|
_setupTemporaryEventHandlers() {
|
|
2920
|
-
|
|
2921
|
-
document.body.addEventListener('click', this._handleDocumentClick, true);
|
|
2936
|
+
document.body.addEventListener('click', this._handleDocumentClick);
|
|
2922
2937
|
document.body.addEventListener('touchmove', this._handleDocumentTouchmove);
|
|
2923
2938
|
this.dropdownEl.addEventListener('keydown', this._handleDropdownKeydown);
|
|
2939
|
+
window.addEventListener('resize', this._handleWindowResize);
|
|
2924
2940
|
}
|
|
2925
2941
|
_removeTemporaryEventHandlers() {
|
|
2926
|
-
|
|
2927
|
-
document.body.removeEventListener('click', this._handleDocumentClick, true);
|
|
2942
|
+
document.body.removeEventListener('click', this._handleDocumentClick);
|
|
2928
2943
|
document.body.removeEventListener('touchmove', this._handleDocumentTouchmove);
|
|
2929
2944
|
this.dropdownEl.removeEventListener('keydown', this._handleDropdownKeydown);
|
|
2945
|
+
window.removeEventListener('resize', this._handleWindowResize);
|
|
2930
2946
|
}
|
|
2931
2947
|
_resetDropdownStyles() {
|
|
2932
2948
|
this.dropdownEl.style.display = '';
|
|
@@ -3136,7 +3152,7 @@ Dropdown._dropdowns = [];
|
|
|
3136
3152
|
/*!**********************!*\
|
|
3137
3153
|
!*** ./src/forms.ts ***!
|
|
3138
3154
|
\**********************/
|
|
3139
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
3155
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3140
3156
|
|
|
3141
3157
|
|
|
3142
3158
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -3273,7 +3289,7 @@ exports.Forms = Forms;
|
|
|
3273
3289
|
/*!****************************!*\
|
|
3274
3290
|
!*** ./src/materialbox.ts ***!
|
|
3275
3291
|
\****************************/
|
|
3276
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
3292
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3277
3293
|
|
|
3278
3294
|
|
|
3279
3295
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -3624,7 +3640,7 @@ exports.Materialbox = Materialbox;
|
|
|
3624
3640
|
/*!**********************!*\
|
|
3625
3641
|
!*** ./src/modal.ts ***!
|
|
3626
3642
|
\**********************/
|
|
3627
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
3643
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3628
3644
|
|
|
3629
3645
|
|
|
3630
3646
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -3695,7 +3711,12 @@ class Modal extends component_1.Component {
|
|
|
3695
3711
|
this.options.onOpenStart.call(this, this.el, this._openingTrigger);
|
|
3696
3712
|
}
|
|
3697
3713
|
if (this.options.preventScrolling) {
|
|
3698
|
-
document.
|
|
3714
|
+
const hasVerticalScrollBar = document.documentElement.scrollHeight > document.documentElement.clientHeight;
|
|
3715
|
+
if (hasVerticalScrollBar) {
|
|
3716
|
+
const scrollTop = document.documentElement.scrollTop;
|
|
3717
|
+
document.documentElement.style.top = '-' + scrollTop + "px";
|
|
3718
|
+
document.documentElement.classList.add('noscroll');
|
|
3719
|
+
}
|
|
3699
3720
|
}
|
|
3700
3721
|
this.el.classList.add('open');
|
|
3701
3722
|
this.el.insertAdjacentElement('afterend', this._overlay);
|
|
@@ -3724,7 +3745,10 @@ class Modal extends component_1.Component {
|
|
|
3724
3745
|
this.el.classList.remove('open');
|
|
3725
3746
|
// Enable body scrolling only if there are no more modals open.
|
|
3726
3747
|
if (Modal._modalsOpen === 0) {
|
|
3727
|
-
document.
|
|
3748
|
+
const scrollTop = -parseInt(document.documentElement.style.top);
|
|
3749
|
+
document.documentElement.style.removeProperty("top");
|
|
3750
|
+
document.documentElement.classList.remove('noscroll');
|
|
3751
|
+
document.documentElement.scrollTop = scrollTop;
|
|
3728
3752
|
}
|
|
3729
3753
|
if (this.options.dismissible) {
|
|
3730
3754
|
document.removeEventListener('keydown', this._handleKeydown);
|
|
@@ -3866,7 +3890,7 @@ exports.Modal = Modal;
|
|
|
3866
3890
|
/*!*************************!*\
|
|
3867
3891
|
!*** ./src/parallax.ts ***!
|
|
3868
3892
|
\*************************/
|
|
3869
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
3893
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3870
3894
|
|
|
3871
3895
|
|
|
3872
3896
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -3984,7 +4008,7 @@ Parallax._parallaxes = [];
|
|
|
3984
4008
|
/*!************************!*\
|
|
3985
4009
|
!*** ./src/pushpin.ts ***!
|
|
3986
4010
|
\************************/
|
|
3987
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
4011
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
3988
4012
|
|
|
3989
4013
|
|
|
3990
4014
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -4097,7 +4121,7 @@ exports.Pushpin = Pushpin;
|
|
|
4097
4121
|
/*!**********************!*\
|
|
4098
4122
|
!*** ./src/range.ts ***!
|
|
4099
4123
|
\**********************/
|
|
4100
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
4124
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4101
4125
|
|
|
4102
4126
|
|
|
4103
4127
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -4274,7 +4298,7 @@ exports.Range = Range;
|
|
|
4274
4298
|
/*!**************************!*\
|
|
4275
4299
|
!*** ./src/scrollspy.ts ***!
|
|
4276
4300
|
\**************************/
|
|
4277
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
4301
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4278
4302
|
|
|
4279
4303
|
|
|
4280
4304
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -4284,7 +4308,7 @@ const component_1 = __webpack_require__(/*! ./component */ "./src/component.ts")
|
|
|
4284
4308
|
;
|
|
4285
4309
|
let _defaults = {
|
|
4286
4310
|
throttle: 100,
|
|
4287
|
-
scrollOffset: 200,
|
|
4311
|
+
scrollOffset: 200, // offset - 200 allows elements near bottom of page to scroll
|
|
4288
4312
|
activeClass: 'active',
|
|
4289
4313
|
getActiveElement: (id) => { return 'a[href="#' + id + '"]'; }
|
|
4290
4314
|
};
|
|
@@ -4458,7 +4482,7 @@ exports.ScrollSpy = ScrollSpy;
|
|
|
4458
4482
|
/*!***********************!*\
|
|
4459
4483
|
!*** ./src/select.ts ***!
|
|
4460
4484
|
\***********************/
|
|
4461
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
4485
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4462
4486
|
|
|
4463
4487
|
|
|
4464
4488
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -4654,11 +4678,9 @@ class FormSelect extends component_1.Component {
|
|
|
4654
4678
|
// Makes new element to assume HTML's select label and aria-attributes, if exists
|
|
4655
4679
|
/*
|
|
4656
4680
|
if (this.el.hasAttribute("aria-labelledby")){
|
|
4657
|
-
console.log(1);
|
|
4658
4681
|
this.labelEl = <HTMLLabelElement>document.getElementById(this.el.getAttribute("aria-labelledby"));
|
|
4659
4682
|
}
|
|
4660
4683
|
else if (this.el.id != ""){
|
|
4661
|
-
console.log(2);
|
|
4662
4684
|
const label = document.createElement('label');
|
|
4663
4685
|
label.setAttribute('for', this.el.id);
|
|
4664
4686
|
if (label){
|
|
@@ -4874,7 +4896,7 @@ exports.FormSelect = FormSelect;
|
|
|
4874
4896
|
/*!************************!*\
|
|
4875
4897
|
!*** ./src/sidenav.ts ***!
|
|
4876
4898
|
\************************/
|
|
4877
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
4899
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
4878
4900
|
|
|
4879
4901
|
|
|
4880
4902
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -5297,7 +5319,7 @@ exports.Sidenav = Sidenav;
|
|
|
5297
5319
|
/*!***********************!*\
|
|
5298
5320
|
!*** ./src/slider.ts ***!
|
|
5299
5321
|
\***********************/
|
|
5300
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
5322
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5301
5323
|
|
|
5302
5324
|
|
|
5303
5325
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -5636,7 +5658,7 @@ exports.Slider = Slider;
|
|
|
5636
5658
|
/*!*********************!*\
|
|
5637
5659
|
!*** ./src/tabs.ts ***!
|
|
5638
5660
|
\*********************/
|
|
5639
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
5661
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5640
5662
|
|
|
5641
5663
|
|
|
5642
5664
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -5788,7 +5810,8 @@ class Tabs extends component_1.Component {
|
|
|
5788
5810
|
this._index = Math.max(Array.from(this._tabLinks).indexOf(this._activeTabLink), 0);
|
|
5789
5811
|
if (this._activeTabLink && this._activeTabLink.hash) {
|
|
5790
5812
|
this._content = document.querySelector(this._activeTabLink.hash);
|
|
5791
|
-
this._content
|
|
5813
|
+
if (this._content)
|
|
5814
|
+
this._content.classList.add('active');
|
|
5792
5815
|
}
|
|
5793
5816
|
}
|
|
5794
5817
|
_setupSwipeableTabs() {
|
|
@@ -5912,7 +5935,7 @@ exports.Tabs = Tabs;
|
|
|
5912
5935
|
/*!**************************!*\
|
|
5913
5936
|
!*** ./src/tapTarget.ts ***!
|
|
5914
5937
|
\**************************/
|
|
5915
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
5938
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
5916
5939
|
|
|
5917
5940
|
|
|
5918
5941
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -6135,7 +6158,7 @@ exports.TapTarget = TapTarget;
|
|
|
6135
6158
|
/*!***************************!*\
|
|
6136
6159
|
!*** ./src/timepicker.ts ***!
|
|
6137
6160
|
\***************************/
|
|
6138
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
6161
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6139
6162
|
|
|
6140
6163
|
|
|
6141
6164
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -6150,8 +6173,8 @@ let _defaults = {
|
|
|
6150
6173
|
tickRadius: 20,
|
|
6151
6174
|
duration: 350,
|
|
6152
6175
|
container: null,
|
|
6153
|
-
defaultTime: 'now',
|
|
6154
|
-
fromNow: 0,
|
|
6176
|
+
defaultTime: 'now', // default time, 'now' or '13:14' e.g.
|
|
6177
|
+
fromNow: 0, // Millisecond offset from the defaultTime
|
|
6155
6178
|
showClearBtn: false,
|
|
6156
6179
|
// internationalization
|
|
6157
6180
|
i18n: {
|
|
@@ -6159,9 +6182,9 @@ let _defaults = {
|
|
|
6159
6182
|
clear: 'Clear',
|
|
6160
6183
|
done: 'Ok'
|
|
6161
6184
|
},
|
|
6162
|
-
autoClose: false,
|
|
6163
|
-
twelveHour: true,
|
|
6164
|
-
vibrate: true,
|
|
6185
|
+
autoClose: false, // auto close when minute is selected
|
|
6186
|
+
twelveHour: true, // change to 12 hour AM/PM clock from 24 hour
|
|
6187
|
+
vibrate: true, // vibrate the device when dragging clock hand
|
|
6165
6188
|
// Callbacks
|
|
6166
6189
|
onOpenStart: null,
|
|
6167
6190
|
onOpenEnd: null,
|
|
@@ -6746,7 +6769,7 @@ exports.Timepicker = Timepicker;
|
|
|
6746
6769
|
/*!***********************!*\
|
|
6747
6770
|
!*** ./src/toasts.ts ***!
|
|
6748
6771
|
\***********************/
|
|
6749
|
-
/***/ ((__unused_webpack_module, exports)
|
|
6772
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
6750
6773
|
|
|
6751
6774
|
|
|
6752
6775
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -6867,9 +6890,13 @@ class Toast {
|
|
|
6867
6890
|
}
|
|
6868
6891
|
}
|
|
6869
6892
|
_createToast() {
|
|
6870
|
-
|
|
6893
|
+
let toast = this.options.toastId
|
|
6871
6894
|
? document.getElementById(this.options.toastId)
|
|
6872
6895
|
: document.createElement('div');
|
|
6896
|
+
if (toast instanceof HTMLTemplateElement) {
|
|
6897
|
+
const node = toast.content.cloneNode(true);
|
|
6898
|
+
toast = node.firstElementChild;
|
|
6899
|
+
}
|
|
6873
6900
|
toast.classList.add('toast');
|
|
6874
6901
|
toast.setAttribute('role', 'alert');
|
|
6875
6902
|
toast.setAttribute('aria-live', 'assertive');
|
|
@@ -6940,7 +6967,7 @@ class Toast {
|
|
|
6940
6967
|
this.options.completeCallback();
|
|
6941
6968
|
}
|
|
6942
6969
|
// Remove toast from DOM
|
|
6943
|
-
if (
|
|
6970
|
+
if (this.el.id != this.options.toastId) {
|
|
6944
6971
|
this.el.remove();
|
|
6945
6972
|
Toast._toasts.splice(Toast._toasts.indexOf(this), 1);
|
|
6946
6973
|
if (Toast._toasts.length === 0) {
|
|
@@ -6964,7 +6991,7 @@ exports.Toast = Toast;
|
|
|
6964
6991
|
/*!************************!*\
|
|
6965
6992
|
!*** ./src/tooltip.ts ***!
|
|
6966
6993
|
\************************/
|
|
6967
|
-
/***/ ((__unused_webpack_module, exports, __webpack_require__)
|
|
6994
|
+
/***/ (function(__unused_webpack_module, exports, __webpack_require__) {
|
|
6968
6995
|
|
|
6969
6996
|
|
|
6970
6997
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -7226,7 +7253,7 @@ exports.Tooltip = Tooltip;
|
|
|
7226
7253
|
/*!**********************!*\
|
|
7227
7254
|
!*** ./src/utils.ts ***!
|
|
7228
7255
|
\**********************/
|
|
7229
|
-
/***/ ((__unused_webpack_module, exports)
|
|
7256
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
7230
7257
|
|
|
7231
7258
|
|
|
7232
7259
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -7469,7 +7496,7 @@ Utils.keys = {
|
|
|
7469
7496
|
/*!**********************!*\
|
|
7470
7497
|
!*** ./src/waves.ts ***!
|
|
7471
7498
|
\**********************/
|
|
7472
|
-
/***/ ((__unused_webpack_module, exports)
|
|
7499
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
7473
7500
|
|
|
7474
7501
|
|
|
7475
7502
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
@@ -7560,7 +7587,7 @@ exports.Waves = Waves;
|
|
|
7560
7587
|
/************************************************************************/
|
|
7561
7588
|
var __webpack_exports__ = {};
|
|
7562
7589
|
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
7563
|
-
(
|
|
7590
|
+
!function() {
|
|
7564
7591
|
var exports = __webpack_exports__;
|
|
7565
7592
|
/*!***********************!*\
|
|
7566
7593
|
!*** ./src/global.ts ***!
|
|
@@ -7641,7 +7668,7 @@ class M {
|
|
|
7641
7668
|
}
|
|
7642
7669
|
}
|
|
7643
7670
|
exports.M = M;
|
|
7644
|
-
M.version = '2.0
|
|
7671
|
+
M.version = '2.1.0';
|
|
7645
7672
|
M.Autocomplete = autocomplete_1.Autocomplete;
|
|
7646
7673
|
M.Tabs = tabs_1.Tabs;
|
|
7647
7674
|
M.Carousel = carousel_1.Carousel;
|
|
@@ -7680,8 +7707,7 @@ M.Utils = utils_1.Utils;
|
|
|
7680
7707
|
range_1.Range.Init();
|
|
7681
7708
|
})();
|
|
7682
7709
|
|
|
7683
|
-
}
|
|
7684
|
-
|
|
7710
|
+
}();
|
|
7685
7711
|
/******/ return __webpack_exports__;
|
|
7686
7712
|
/******/ })()
|
|
7687
7713
|
;
|