@materializecss/materialize 2.0.0-alpha → 2.0.1-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/Gruntfile.js CHANGED
@@ -129,8 +129,8 @@ module.exports = function(grunt) {
129
129
  output: {
130
130
  filename: 'materialize.js',
131
131
  path: path.resolve(__dirname, 'dist/js'),
132
- libraryTarget: 'var',
133
- library: 'M'
132
+ libraryTarget: 'umd',
133
+ globalObject: 'this'
134
134
  }
135
135
  }),
136
136
 
@@ -140,8 +140,8 @@ module.exports = function(grunt) {
140
140
  output: {
141
141
  filename: 'materialize.min.js',
142
142
  path: path.resolve(__dirname, 'dist/js'),
143
- libraryTarget: 'var',
144
- library: 'M'
143
+ libraryTarget: 'umd',
144
+ globalObject: 'this'
145
145
  }
146
146
  }),
147
147
  },
package/README.md CHANGED
@@ -24,19 +24,12 @@
24
24
  <a href="https://gitter.im/materializecss/materialize">
25
25
  <img src="https://badges.gitter.im/Join%20Chat.svg" alt="Gitter badge">
26
26
  </a>
27
+ <a href="https://opencollective.com/materialize">
28
+ <img alt="Open Collective backers and sponsors" src="https://img.shields.io/opencollective/all/materialize">
29
+ </a>
27
30
  </p>
28
31
 
29
- ## Table of Contents
30
- - [Quickstart](#quickstart)
31
- - [Documentation](#documentation)
32
- - [Build](#build)
33
- - [Supported Browsers](#supported-browsers)
34
- - [Changelog](#changelog)
35
- - [Testing](#testing)
36
- - [Contributing](#contributing)
37
- - [Copyright and license](#copyright-and-license)
38
-
39
- ## Quickstart:
32
+ ## Quickstart
40
33
  Read the [getting started guide](https://materializecss.github.io/materialize/getting-started.html) for more information on how to use materialize.
41
34
 
42
35
  - [Download the latest release](https://github.com/materializecss/materialize/releases/latest) of materialize directly from GitHub. ([Beta](https://github.com/materializecss/materialize/releases/))
@@ -76,7 +69,6 @@ Materialize is compatible with:
76
69
  - Safari 9+
77
70
  - Opera
78
71
  - Edge
79
- - IE 11+
80
72
 
81
73
  ## Changelog
82
74
  For changelogs, check out [the Releases section of materialize](https://github.com/materializecss/materialize/releases) or the [CHANGELOG.md](CHANGELOG.md).
@@ -87,5 +79,25 @@ We use Jasmine as our testing framework and we're trying to write a robust test
87
79
  ## Contributing
88
80
  Check out the [CONTRIBUTING document](CONTRIBUTING.md) in the root of the repository to learn how you can contribute. You can also browse the [help-wanted](https://github.com/materializecss/materialize/labels/help-wanted) tag in our issue tracker to find things to do.
89
81
 
82
+ ## Sponsors
83
+ Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/materialize#sponsor)]
84
+
85
+ [![OC sponsor 0](https://opencollective.com/materialize/sponsor/0/avatar.svg)](https://opencollective.com/materialize/sponsor/0/website)
86
+ [![OC sponsor 1](https://opencollective.com/materialize/sponsor/1/avatar.svg)](https://opencollective.com/materialize/sponsor/1/website)
87
+ [![OC sponsor 2](https://opencollective.com/materialize/sponsor/2/avatar.svg)](https://opencollective.com/materialize/sponsor/2/website)
88
+ [![OC sponsor 3](https://opencollective.com/materialize/sponsor/3/avatar.svg)](https://opencollective.com/materialize/sponsor/3/website)
89
+ [![OC sponsor 4](https://opencollective.com/materialize/sponsor/4/avatar.svg)](https://opencollective.com/materialize/sponsor/4/website)
90
+ [![OC sponsor 5](https://opencollective.com/materialize/sponsor/5/avatar.svg)](https://opencollective.com/materialize/sponsor/5/website)
91
+ [![OC sponsor 6](https://opencollective.com/materialize/sponsor/6/avatar.svg)](https://opencollective.com/materialize/sponsor/6/website)
92
+ [![OC sponsor 7](https://opencollective.com/materialize/sponsor/7/avatar.svg)](https://opencollective.com/materialize/sponsor/7/website)
93
+ [![OC sponsor 8](https://opencollective.com/materialize/sponsor/8/avatar.svg)](https://opencollective.com/materialize/sponsor/8/website)
94
+ [![OC sponsor 9](https://opencollective.com/materialize/sponsor/9/avatar.svg)](https://opencollective.com/materialize/sponsor/9/website)
95
+
96
+
97
+ ## Backers
98
+ Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/materialize#backer)]
99
+
100
+ [![Backers](https://opencollective.com/materialize/backers.svg?width=890)](https://opencollective.com/materialize#backers)
101
+
90
102
  ## Copyright and license
91
103
  Code Copyright 2023 Materialize. Code released under the MIT license.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Materialize v2.0.0-alpha (https://materializecss.github.io/materialize)
2
+ * Materialize v2.0.1-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
  */
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Materialize v2.0.0-alpha (https://materializecss.github.io/materialize)
2
+ * Materialize v2.0.1-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
  */
@@ -1,10 +1,19 @@
1
1
  /*!
2
- * Materialize v2.0.0-alpha (https://materializecss.github.io/materialize)
2
+ * Materialize v2.0.1-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
  */
6
- var M;
7
- /******/ (() => { // webpackBootstrap
6
+ (function webpackUniversalModuleDefinition(root, factory) {
7
+ if(typeof exports === 'object' && typeof module === 'object')
8
+ module.exports = factory();
9
+ else if(typeof define === 'function' && define.amd)
10
+ define([], factory);
11
+ else {
12
+ var a = factory();
13
+ for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
14
+ }
15
+ })(this, () => {
16
+ return /******/ (() => { // webpackBootstrap
8
17
  /******/ "use strict";
9
18
  /******/ var __webpack_modules__ = ({
10
19
 
@@ -4589,7 +4598,7 @@ exports.Forms = Forms;
4589
4598
  /*!***********************!*\
4590
4599
  !*** ./src/global.ts ***!
4591
4600
  \***********************/
4592
- /***/ ((module, exports, __webpack_require__) => {
4601
+ /***/ ((__unused_webpack_module, exports, __webpack_require__) => {
4593
4602
 
4594
4603
 
4595
4604
  var _a;
@@ -4876,7 +4885,7 @@ class M {
4876
4885
  }
4877
4886
  exports.M = M;
4878
4887
  _a = M;
4879
- M.version = '2.0.0-alpha';
4888
+ M.version = '2.0.1-alpha';
4880
4889
  M.keys = {
4881
4890
  TAB: 9,
4882
4891
  ENTER: 13,
@@ -4941,7 +4950,7 @@ M.keyDown = false;
4941
4950
  waves_1.Waves.Init();
4942
4951
  range_1.Range.Init();
4943
4952
  })();
4944
- module.exports = M;
4953
+ exports["default"] = M;
4945
4954
 
4946
4955
 
4947
4956
  /***/ }),
@@ -7424,7 +7433,8 @@ class Tabs extends component_1.Component {
7424
7433
  const _oldContent = this._content;
7425
7434
  // Update the variables with the new link and content
7426
7435
  this._activeTabLink = tabLink;
7427
- this._content = document.querySelector(tabLink.hash);
7436
+ if (tabLink.hash)
7437
+ this._content = document.querySelector(tabLink.hash);
7428
7438
  this._tabLinks = this.el.querySelectorAll('li.tab > a');
7429
7439
  // Make the tab active
7430
7440
  this._activeTabLink.classList.add('active');
@@ -7477,7 +7487,7 @@ class Tabs extends component_1.Component {
7477
7487
  Array.from(this._tabLinks).forEach((a) => a.classList.remove('active'));
7478
7488
  this._activeTabLink.classList.add('active');
7479
7489
  this._index = Math.max(Array.from(this._tabLinks).indexOf(this._activeTabLink), 0);
7480
- if (this._activeTabLink) {
7490
+ if (this._activeTabLink && this._activeTabLink.hash) {
7481
7491
  this._content = document.querySelector(this._activeTabLink.hash);
7482
7492
  this._content.classList.add('active');
7483
7493
  }
@@ -7488,9 +7498,11 @@ class Tabs extends component_1.Component {
7488
7498
  this.options.swipeable = false;
7489
7499
  const tabsContent = [];
7490
7500
  this._tabLinks.forEach(a => {
7491
- const currContent = document.querySelector(a.hash);
7492
- currContent.classList.add('carousel-item');
7493
- tabsContent.push(currContent);
7501
+ if (a.hash) {
7502
+ const currContent = document.querySelector(a.hash);
7503
+ currContent.classList.add('carousel-item');
7504
+ tabsContent.push(currContent);
7505
+ }
7494
7506
  });
7495
7507
  // Create Carousel-Wrapper around Tab-Contents
7496
7508
  const tabsWrapper = document.createElement('div');
@@ -9036,7 +9048,8 @@ exports.Waves = Waves;
9036
9048
  /******/ // Load entry module and return exports
9037
9049
  /******/ // This entry module is referenced by other modules so it can't be inlined
9038
9050
  /******/ var __webpack_exports__ = __webpack_require__("./src/global.ts");
9039
- /******/ M = __webpack_exports__;
9040
9051
  /******/
9052
+ /******/ return __webpack_exports__;
9041
9053
  /******/ })()
9042
- ;
9054
+ ;
9055
+ });