@covalent/components 6.0.3 → 6.0.5
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/action-ribbon/action-ribbon-base.d.ts.map +1 -0
- package/{src/action-ribbon → action-ribbon}/action-ribbon.d.ts +1 -0
- package/action-ribbon/action-ribbon.d.ts.map +1 -0
- package/action-ribbon.js +18 -0
- package/action-ribbon.mjs +13 -11
- package/alert/alert-base.d.ts.map +1 -0
- package/{src/alert → alert}/alert.d.ts +1 -0
- package/alert/alert.d.ts.map +1 -0
- package/alert.js +21 -0
- package/alert.mjs +14 -12
- package/{src/app-shell → app-shell}/app-shell.d.ts +1 -0
- package/app-shell/app-shell.d.ts.map +1 -0
- package/app-shell.js +41 -0
- package/app-shell.mjs +19 -17
- package/aria-property.mjs +2 -38
- package/base-element.mjs +2 -25
- package/{src/button → button}/button.d.ts +3 -2
- package/button/button.d.ts.map +1 -0
- package/button.js +44 -0
- package/button.mjs +11 -9
- package/card/card-base.d.ts.map +1 -0
- package/{src/card → card}/card.d.ts +3 -2
- package/card/card.d.ts.map +1 -0
- package/card.js +19 -0
- package/card.mjs +3 -1
- package/check-list-item.js +27 -0
- package/check-list-item.mjs +17 -15
- package/{src/checkbox → checkbox}/checkbox.d.ts +3 -2
- package/checkbox/checkbox.d.ts.map +1 -0
- package/checkbox.js +2 -0
- package/checkbox.mjs +15 -13
- package/chips/chip-base.d.ts.map +1 -0
- package/chips/chip-set-base.d.ts.map +1 -0
- package/{src/chips → chips}/chip-set.d.ts +1 -0
- package/chips/chip-set.d.ts.map +1 -0
- package/{src/chips → chips}/chip.d.ts +1 -0
- package/chips/chip.d.ts.map +1 -0
- package/chips/foundation.d.ts.map +1 -0
- package/circular-progress/circular-progress.d.ts +11 -0
- package/circular-progress/circular-progress.d.ts.map +1 -0
- package/circular-progress.js +65 -0
- package/circular-progress.mjs +11 -9
- package/class-map.mjs +3 -56
- package/{src/code-snippet → code-snippet}/code-snippet.d.ts +3 -2
- package/code-snippet/code-snippet.d.ts.map +1 -0
- package/code-snippet.js +13 -0
- package/code-snippet.mjs +36 -34
- package/{src/dialog → dialog}/dialog.d.ts +3 -2
- package/dialog/dialog.d.ts.map +1 -0
- package/dialog.js +1 -0
- package/dialog.mjs +15 -608
- package/dialog2.mjs +750 -0
- package/directive-helpers.mjs +2 -8
- package/{src/drawer → drawer}/drawer.d.ts +3 -2
- package/drawer/drawer.d.ts.map +1 -0
- package/drawer.js +6 -0
- package/drawer.mjs +11 -9
- package/{src/empty-state → empty-state}/empty-state.d.ts +3 -2
- package/empty-state/empty-state.d.ts.map +1 -0
- package/empty-state.js +27 -0
- package/empty-state.mjs +17 -15
- package/event-options.mjs +2 -11
- package/form-element.mjs +2 -47
- package/{src/formfield → formfield}/formfield.d.ts +3 -2
- package/formfield/formfield.d.ts.map +1 -0
- package/foundation.mjs +3 -112
- package/foundation2.mjs +2 -40
- package/{src/icon → icon}/icon.d.ts +1 -0
- package/icon/icon.d.ts.map +1 -0
- package/{src/icon-button → icon-button}/icon-button.d.ts +3 -2
- package/icon-button/icon-button.d.ts.map +1 -0
- package/icon-button.js +32 -0
- package/icon-button.mjs +23 -21
- package/icon-check-toggle.js +15 -0
- package/icon-check-toggle.mjs +5 -5
- package/{src/icon-checkbox → icon-checkbox}/icon-check-toggle.d.ts +3 -2
- package/icon-checkbox/icon-check-toggle.d.ts.map +1 -0
- package/{src/icon-radio → icon-radio}/icon-radio-toggle.d.ts +3 -2
- package/icon-radio/icon-radio-toggle.d.ts.map +1 -0
- package/icon-radio-toggle.js +14 -0
- package/icon-radio-toggle.mjs +19 -19
- package/icon.js +5 -0
- package/icon.mjs +11 -9
- package/if-defined.mjs +2 -7
- package/index.d.ts +46 -0
- package/index.d.ts.map +1 -0
- package/index.js +1 -0
- package/index.mjs +126 -0
- package/inert.esm.mjs +3 -615
- package/linear-progress/linear-progress.d.ts +11 -0
- package/linear-progress/linear-progress.d.ts.map +1 -0
- package/linear-progress.js +36 -0
- package/linear-progress.mjs +21 -19
- package/list/check-list-item.d.ts +11 -0
- package/list/check-list-item.d.ts.map +1 -0
- package/{src/list → list}/list-expansion.d.ts +5 -4
- package/list/list-expansion.d.ts.map +1 -0
- package/{src/list → list}/list-item.d.ts +3 -2
- package/list/list-item.d.ts.map +1 -0
- package/{src/list → list}/list.d.ts +3 -2
- package/list/list.d.ts.map +1 -0
- package/{src/list → list}/nav-list-item.d.ts +3 -2
- package/list/nav-list-item.d.ts.map +1 -0
- package/list/radio-list-item.d.ts +11 -0
- package/list/radio-list-item.d.ts.map +1 -0
- package/list-expansion.js +9 -0
- package/list-expansion.mjs +20 -18
- package/list-item.js +1 -0
- package/list-item.mjs +8 -48
- package/list-item2.mjs +43 -0
- package/list.js +1 -0
- package/list.mjs +2 -27
- package/list2.mjs +25 -0
- package/{src/menu → menu}/menu.d.ts +3 -2
- package/menu/menu.d.ts.map +1 -0
- package/menu.js +5 -0
- package/menu.mjs +11 -9
- package/mwc-checkbox-base.mjs +11 -168
- package/mwc-checkbox.css.mjs +2 -7
- package/mwc-drawer-base.mjs +12 -242
- package/mwc-icon.mjs +3 -20
- package/mwc-line-ripple-directive.mjs +16 -452
- package/mwc-list-base.mjs +26 -755
- package/mwc-list-item-base.mjs +9 -183
- package/mwc-list-item.css.mjs +3 -11
- package/mwc-menu-base.mjs +21 -976
- package/mwc-radio-base.mjs +11 -438
- package/mwc-radio.css.mjs +2 -7
- package/mwc-slider.css.mjs +23 -794
- package/mwc-tab-base.mjs +25 -503
- package/mwc-top-app-bar-base.mjs +12 -282
- package/nav-list-item.js +10 -0
- package/nav-list-item.mjs +26 -24
- package/observer.mjs +2 -29
- package/package.json +226 -5
- package/property.mjs +2 -17
- package/query-assigned-elements.mjs +9 -591
- package/query-assigned-nodes.mjs +2 -14
- package/query.mjs +2 -22
- package/{src/radio → radio}/radio.d.ts +3 -2
- package/radio/radio.d.ts.map +1 -0
- package/radio-list-item.js +27 -0
- package/radio-list-item.mjs +17 -15
- package/radio.js +2 -0
- package/radio.mjs +12 -10
- package/ripple-handlers.mjs +12 -666
- package/{src/select → select}/select.d.ts +3 -2
- package/select/select.d.ts.map +1 -0
- package/select.js +272 -0
- package/select.mjs +124 -122
- package/{src/side-sheet → side-sheet}/side-sheet.d.ts +2 -2
- package/side-sheet/side-sheet.d.ts.map +1 -0
- package/side-sheet.js +4 -0
- package/side-sheet.mjs +3 -3
- package/slider/slider-range.d.ts +11 -0
- package/slider/slider-range.d.ts.map +1 -0
- package/{src/slider → slider}/slider.d.ts +3 -2
- package/slider/slider.d.ts.map +1 -0
- package/slider-range.js +64 -0
- package/slider-range.mjs +23 -21
- package/slider.js +14 -0
- package/slider.mjs +16 -14
- package/{src/snackbar → snackbar}/snackbar.d.ts +3 -2
- package/snackbar/snackbar.d.ts.map +1 -0
- package/snackbar.js +93 -0
- package/snackbar.mjs +12 -10
- package/state.mjs +2 -9
- package/status-header/status-header-base.d.ts.map +1 -0
- package/{src/status-header → status-header}/status-header-item.d.ts +1 -0
- package/status-header/status-header-item.d.ts.map +1 -0
- package/{src/status-header → status-header}/status-header.d.ts +1 -0
- package/status-header/status-header.d.ts.map +1 -0
- package/status-header-item.js +4 -0
- package/status-header-item.mjs +17 -15
- package/status-header.js +24 -0
- package/status-header.mjs +17 -15
- package/style-map.mjs +2 -37
- package/style.css +1 -0
- package/{src/switch → switch}/switch.d.ts +3 -2
- package/switch/switch.d.ts.map +1 -0
- package/switch.js +174 -0
- package/switch.mjs +10 -8
- package/{src/tab → tab}/tab-bar.d.ts +3 -2
- package/tab/tab-bar.d.ts.map +1 -0
- package/{src/tab → tab}/tab.d.ts +3 -2
- package/tab/tab.d.ts.map +1 -0
- package/tab-bar.js +278 -0
- package/tab-bar.mjs +23 -21
- package/tab.js +6 -0
- package/tab.mjs +11 -9
- package/{src/text-lockup → text-lockup}/text-lockup.d.ts +1 -0
- package/text-lockup/text-lockup.d.ts.map +1 -0
- package/text-lockup.js +7 -0
- package/text-lockup.mjs +11 -9
- package/{src/textarea → textarea}/textarea.d.ts +3 -2
- package/textarea/textarea.d.ts.map +1 -0
- package/textarea.js +40 -0
- package/textarea.mjs +14 -12
- package/{src/textfield → textfield}/textfield.d.ts +3 -2
- package/textfield/textfield.d.ts.map +1 -0
- package/textfield.js +7 -0
- package/textfield.mjs +132 -39
- package/textfield2.mjs +1 -1
- package/{src/toolbar → toolbar}/toolbar.d.ts +3 -2
- package/toolbar/toolbar.d.ts.map +1 -0
- package/toolbar.js +4 -0
- package/toolbar.mjs +11 -9
- package/{src/tooltip → tooltip}/tooltip.d.ts +3 -2
- package/tooltip/tooltip.d.ts.map +1 -0
- package/tooltip.js +126 -0
- package/tooltip.mjs +66 -64
- package/top-app-bar/top-app-bar-fixed.d.ts +11 -0
- package/top-app-bar/top-app-bar-fixed.d.ts.map +1 -0
- package/{src/top-app-bar → top-app-bar}/top-app-bar.d.ts +3 -2
- package/top-app-bar/top-app-bar.d.ts.map +1 -0
- package/top-app-bar-fixed.js +28 -0
- package/top-app-bar-fixed.mjs +16 -14
- package/top-app-bar.js +3 -0
- package/top-app-bar.mjs +6 -28
- package/{src/tree-list → tree-list}/tree-list-item.d.ts +1 -0
- package/tree-list/tree-list-item.d.ts.map +1 -0
- package/{src/tree-list → tree-list}/tree-list.d.ts +1 -0
- package/tree-list/tree-list.d.ts.map +1 -0
- package/tree-list-item.js +26 -0
- package/tree-list-item.mjs +7 -5
- package/tree-list.js +10 -0
- package/tree-list.mjs +13 -12
- package/tslib.es6.mjs +1 -82
- package/{src/typography → typography}/typography.d.ts +1 -0
- package/typography/typography.d.ts.map +1 -0
- package/typography.js +4 -0
- package/typography.mjs +16 -14
- package/utils.mjs +2 -49
- package/covalent.mjs +0 -44
- package/covalent.umd.js +0 -3501
- package/src/action-ribbon/action-ribbon-base.d.ts.map +0 -1
- package/src/action-ribbon/action-ribbon.d.ts.map +0 -1
- package/src/alert/alert-base.d.ts.map +0 -1
- package/src/alert/alert.d.ts.map +0 -1
- package/src/app-shell/app-shell.d.ts.map +0 -1
- package/src/button/button.d.ts.map +0 -1
- package/src/card/card-base.d.ts.map +0 -1
- package/src/card/card.d.ts.map +0 -1
- package/src/checkbox/checkbox.d.ts.map +0 -1
- package/src/chips/chip-base.d.ts.map +0 -1
- package/src/chips/chip-set-base.d.ts.map +0 -1
- package/src/chips/chip-set.d.ts.map +0 -1
- package/src/chips/chip.d.ts.map +0 -1
- package/src/chips/foundation.d.ts.map +0 -1
- package/src/circular-progress/circular-progress.d.ts +0 -10
- package/src/circular-progress/circular-progress.d.ts.map +0 -1
- package/src/code-snippet/code-snippet.d.ts.map +0 -1
- package/src/dialog/dialog.d.ts.map +0 -1
- package/src/drawer/drawer.d.ts.map +0 -1
- package/src/empty-state/empty-state.d.ts.map +0 -1
- package/src/formfield/formfield.d.ts.map +0 -1
- package/src/icon/icon.d.ts.map +0 -1
- package/src/icon-button/icon-button.d.ts.map +0 -1
- package/src/icon-checkbox/icon-check-toggle.d.ts.map +0 -1
- package/src/icon-radio/icon-radio-toggle.d.ts.map +0 -1
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/linear-progress/linear-progress.d.ts +0 -10
- package/src/linear-progress/linear-progress.d.ts.map +0 -1
- package/src/list/check-list-item.d.ts +0 -10
- package/src/list/check-list-item.d.ts.map +0 -1
- package/src/list/list-expansion.d.ts.map +0 -1
- package/src/list/list-item.d.ts.map +0 -1
- package/src/list/list.d.ts.map +0 -1
- package/src/list/nav-list-item.d.ts.map +0 -1
- package/src/list/radio-list-item.d.ts +0 -10
- package/src/list/radio-list-item.d.ts.map +0 -1
- package/src/menu/menu.d.ts.map +0 -1
- package/src/radio/radio.d.ts.map +0 -1
- package/src/select/select.d.ts.map +0 -1
- package/src/side-sheet/side-sheet.d.ts.map +0 -1
- package/src/slider/slider-range.d.ts +0 -10
- package/src/slider/slider-range.d.ts.map +0 -1
- package/src/slider/slider.d.ts.map +0 -1
- package/src/snackbar/snackbar.d.ts.map +0 -1
- package/src/status-header/status-header-base.d.ts.map +0 -1
- package/src/status-header/status-header-item.d.ts.map +0 -1
- package/src/status-header/status-header.d.ts.map +0 -1
- package/src/switch/switch.d.ts.map +0 -1
- package/src/tab/tab-bar.d.ts.map +0 -1
- package/src/tab/tab.d.ts.map +0 -1
- package/src/text-lockup/text-lockup.d.ts.map +0 -1
- package/src/textarea/textarea.d.ts.map +0 -1
- package/src/textfield/textfield.d.ts.map +0 -1
- package/src/toolbar/toolbar.d.ts.map +0 -1
- package/src/tooltip/tooltip.d.ts.map +0 -1
- package/src/top-app-bar/top-app-bar-fixed.d.ts +0 -10
- package/src/top-app-bar/top-app-bar-fixed.d.ts.map +0 -1
- package/src/top-app-bar/top-app-bar.d.ts.map +0 -1
- package/src/tree-list/tree-list-item.d.ts.map +0 -1
- package/src/tree-list/tree-list.d.ts.map +0 -1
- package/src/typography/typography.d.ts.map +0 -1
- /package/{src/action-ribbon → action-ribbon}/action-ribbon-base.d.ts +0 -0
- /package/{src/alert → alert}/alert-base.d.ts +0 -0
- /package/{src/card → card}/card-base.d.ts +0 -0
- /package/{src/chips → chips}/chip-base.d.ts +0 -0
- /package/{src/chips → chips}/chip-set-base.d.ts +0 -0
- /package/{src/chips → chips}/foundation.d.ts +0 -0
- /package/{src/status-header → status-header}/status-header-base.d.ts +0 -0
package/mwc-tab-base.mjs
CHANGED
@@ -1,15 +1,4 @@
|
|
1
|
-
|
2
|
-
import { y as c, i as R, e as A } from "./query-assigned-elements.mjs";
|
3
|
-
import { B as g } from "./base-element.mjs";
|
4
|
-
import { e as r } from "./property.mjs";
|
5
|
-
import { i as l } from "./query.mjs";
|
6
|
-
import { o as v } from "./class-map.mjs";
|
7
|
-
import { a as I } from "./utils.mjs";
|
8
|
-
import { e as T, R as E } from "./ripple-handlers.mjs";
|
9
|
-
import { o as F } from "./observer.mjs";
|
10
|
-
import { t as _ } from "./state.mjs";
|
11
|
-
import { e as O } from "./event-options.mjs";
|
12
|
-
/**
|
1
|
+
"use strict";const n=require("./tslib.es6.mjs"),s=require("./query-assigned-elements.mjs"),_=require("./base-element.mjs"),r=require("./property.mjs"),l=require("./query.mjs"),m=require("./class-map.mjs"),C=require("./utils.mjs"),y=require("./ripple-handlers.mjs"),I=require("./observer.mjs"),g=require("./state.mjs"),R=require("./event-options.mjs");/**
|
13
2
|
* @license
|
14
3
|
* Copyright 2016 Google Inc.
|
15
4
|
*
|
@@ -30,43 +19,7 @@ import { e as O } from "./event-options.mjs";
|
|
30
19
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
31
20
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
32
21
|
* THE SOFTWARE.
|
33
|
-
*/
|
34
|
-
var D = (
|
35
|
-
/** @class */
|
36
|
-
function() {
|
37
|
-
function e(t) {
|
38
|
-
t === void 0 && (t = {}), this.adapter = t;
|
39
|
-
}
|
40
|
-
return Object.defineProperty(e, "cssClasses", {
|
41
|
-
get: function() {
|
42
|
-
return {};
|
43
|
-
},
|
44
|
-
enumerable: !1,
|
45
|
-
configurable: !0
|
46
|
-
}), Object.defineProperty(e, "strings", {
|
47
|
-
get: function() {
|
48
|
-
return {};
|
49
|
-
},
|
50
|
-
enumerable: !1,
|
51
|
-
configurable: !0
|
52
|
-
}), Object.defineProperty(e, "numbers", {
|
53
|
-
get: function() {
|
54
|
-
return {};
|
55
|
-
},
|
56
|
-
enumerable: !1,
|
57
|
-
configurable: !0
|
58
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
59
|
-
get: function() {
|
60
|
-
return {};
|
61
|
-
},
|
62
|
-
enumerable: !1,
|
63
|
-
configurable: !0
|
64
|
-
}), e.prototype.init = function() {
|
65
|
-
}, e.prototype.destroy = function() {
|
66
|
-
}, e;
|
67
|
-
}()
|
68
|
-
);
|
69
|
-
/**
|
22
|
+
*/var A=function(){function e(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();/**
|
70
23
|
* @license
|
71
24
|
* Copyright 2018 Google Inc.
|
72
25
|
*
|
@@ -87,15 +40,7 @@ var D = (
|
|
87
40
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
88
41
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
89
42
|
* THE SOFTWARE.
|
90
|
-
*/
|
91
|
-
var $ = {
|
92
|
-
ACTIVE: "mdc-tab-indicator--active",
|
93
|
-
FADE: "mdc-tab-indicator--fade",
|
94
|
-
NO_TRANSITION: "mdc-tab-indicator--no-transition"
|
95
|
-
}, w = {
|
96
|
-
CONTENT_SELECTOR: ".mdc-tab-indicator__content"
|
97
|
-
};
|
98
|
-
/**
|
43
|
+
*/var E={ACTIVE:"mdc-tab-indicator--active",FADE:"mdc-tab-indicator--fade",NO_TRANSITION:"mdc-tab-indicator--no-transition"},T={CONTENT_SELECTOR:".mdc-tab-indicator__content"};/**
|
99
44
|
* @license
|
100
45
|
* Copyright 2018 Google Inc.
|
101
46
|
*
|
@@ -116,48 +61,7 @@ var $ = {
|
|
116
61
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
117
62
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
118
63
|
* THE SOFTWARE.
|
119
|
-
*/
|
120
|
-
var s = (
|
121
|
-
/** @class */
|
122
|
-
function(e) {
|
123
|
-
m(t, e);
|
124
|
-
function t(n) {
|
125
|
-
return e.call(this, h(h({}, t.defaultAdapter), n)) || this;
|
126
|
-
}
|
127
|
-
return Object.defineProperty(t, "cssClasses", {
|
128
|
-
get: function() {
|
129
|
-
return $;
|
130
|
-
},
|
131
|
-
enumerable: !1,
|
132
|
-
configurable: !0
|
133
|
-
}), Object.defineProperty(t, "strings", {
|
134
|
-
get: function() {
|
135
|
-
return w;
|
136
|
-
},
|
137
|
-
enumerable: !1,
|
138
|
-
configurable: !0
|
139
|
-
}), Object.defineProperty(t, "defaultAdapter", {
|
140
|
-
get: function() {
|
141
|
-
return {
|
142
|
-
addClass: function() {
|
143
|
-
},
|
144
|
-
removeClass: function() {
|
145
|
-
},
|
146
|
-
computeContentClientRect: function() {
|
147
|
-
return { top: 0, right: 0, bottom: 0, left: 0, width: 0, height: 0 };
|
148
|
-
},
|
149
|
-
setContentStyleProperty: function() {
|
150
|
-
}
|
151
|
-
};
|
152
|
-
},
|
153
|
-
enumerable: !1,
|
154
|
-
configurable: !0
|
155
|
-
}), t.prototype.computeContentClientRect = function() {
|
156
|
-
return this.adapter.computeContentClientRect();
|
157
|
-
}, t;
|
158
|
-
}(D)
|
159
|
-
);
|
160
|
-
/**
|
64
|
+
*/var c=function(e){n.__extends(t,e);function t(i){return e.call(this,n.__assign(n.__assign({},t.defaultAdapter),i))||this}return Object.defineProperty(t,"cssClasses",{get:function(){return E},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return T},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},computeContentClientRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},setContentStyleProperty:function(){}}},enumerable:!1,configurable:!0}),t.prototype.computeContentClientRect=function(){return this.adapter.computeContentClientRect()},t}(A);/**
|
161
65
|
* @license
|
162
66
|
* Copyright 2018 Google Inc.
|
163
67
|
*
|
@@ -178,23 +82,7 @@ var s = (
|
|
178
82
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
179
83
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
180
84
|
* THE SOFTWARE.
|
181
|
-
*/
|
182
|
-
var L = (
|
183
|
-
/** @class */
|
184
|
-
function(e) {
|
185
|
-
m(t, e);
|
186
|
-
function t() {
|
187
|
-
return e !== null && e.apply(this, arguments) || this;
|
188
|
-
}
|
189
|
-
return t.prototype.activate = function() {
|
190
|
-
this.adapter.addClass(s.cssClasses.ACTIVE);
|
191
|
-
}, t.prototype.deactivate = function() {
|
192
|
-
this.adapter.removeClass(s.cssClasses.ACTIVE);
|
193
|
-
}, t;
|
194
|
-
}(s)
|
195
|
-
);
|
196
|
-
const P = L;
|
197
|
-
/**
|
85
|
+
*/var F=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.activate=function(){this.adapter.addClass(c.cssClasses.ACTIVE)},t.prototype.deactivate=function(){this.adapter.removeClass(c.cssClasses.ACTIVE)},t}(c);const O=F;/**
|
198
86
|
* @license
|
199
87
|
* Copyright 2018 Google Inc.
|
200
88
|
*
|
@@ -215,99 +103,23 @@ const P = L;
|
|
215
103
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
216
104
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
217
105
|
* THE SOFTWARE.
|
218
|
-
*/
|
219
|
-
var M = (
|
220
|
-
/** @class */
|
221
|
-
function(e) {
|
222
|
-
m(t, e);
|
223
|
-
function t() {
|
224
|
-
return e !== null && e.apply(this, arguments) || this;
|
225
|
-
}
|
226
|
-
return t.prototype.activate = function(n) {
|
227
|
-
if (!n) {
|
228
|
-
this.adapter.addClass(s.cssClasses.ACTIVE);
|
229
|
-
return;
|
230
|
-
}
|
231
|
-
var o = this.computeContentClientRect(), b = n.width / o.width, p = n.left - o.left;
|
232
|
-
this.adapter.addClass(s.cssClasses.NO_TRANSITION), this.adapter.setContentStyleProperty("transform", "translateX(" + p + "px) scaleX(" + b + ")"), this.computeContentClientRect(), this.adapter.removeClass(s.cssClasses.NO_TRANSITION), this.adapter.addClass(s.cssClasses.ACTIVE), this.adapter.setContentStyleProperty("transform", "");
|
233
|
-
}, t.prototype.deactivate = function() {
|
234
|
-
this.adapter.removeClass(s.cssClasses.ACTIVE);
|
235
|
-
}, t;
|
236
|
-
}(s)
|
237
|
-
);
|
238
|
-
const S = M;
|
239
|
-
/**
|
106
|
+
*/var D=function(e){n.__extends(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.activate=function(i){if(!i){this.adapter.addClass(c.cssClasses.ACTIVE);return}var o=this.computeContentClientRect(),h=i.width/o.width,p=i.left-o.left;this.adapter.addClass(c.cssClasses.NO_TRANSITION),this.adapter.setContentStyleProperty("transform","translateX("+p+"px) scaleX("+h+")"),this.computeContentClientRect(),this.adapter.removeClass(c.cssClasses.NO_TRANSITION),this.adapter.addClass(c.cssClasses.ACTIVE),this.adapter.setContentStyleProperty("transform","")},t.prototype.deactivate=function(){this.adapter.removeClass(c.cssClasses.ACTIVE)},t}(c);const w=D;/**
|
240
107
|
* @license
|
241
108
|
* Copyright 2018 Google LLC
|
242
109
|
* SPDX-License-Identifier: Apache-2.0
|
243
|
-
*/
|
244
|
-
class
|
245
|
-
|
246
|
-
super(...arguments), this.icon = "", this.fade = !1;
|
247
|
-
}
|
248
|
-
get mdcFoundationClass() {
|
249
|
-
return this.fade ? P : S;
|
250
|
-
}
|
251
|
-
render() {
|
252
|
-
const t = {
|
253
|
-
"mdc-tab-indicator__content--icon": this.icon,
|
254
|
-
"material-icons": this.icon,
|
255
|
-
"mdc-tab-indicator__content--underline": !this.icon
|
256
|
-
};
|
257
|
-
return c`
|
258
|
-
<span class="mdc-tab-indicator ${v({
|
259
|
-
"mdc-tab-indicator--fade": this.fade
|
260
|
-
})}">
|
261
|
-
<span class="mdc-tab-indicator__content ${v(t)}">${this.icon}</span>
|
110
|
+
*/class u extends _.BaseElement{constructor(){super(...arguments),this.icon="",this.fade=!1}get mdcFoundationClass(){return this.fade?O:w}render(){const t={"mdc-tab-indicator__content--icon":this.icon,"material-icons":this.icon,"mdc-tab-indicator__content--underline":!this.icon};return s.y`
|
111
|
+
<span class="mdc-tab-indicator ${m.o({"mdc-tab-indicator--fade":this.fade})}">
|
112
|
+
<span class="mdc-tab-indicator__content ${m.o(t)}">${this.icon}</span>
|
262
113
|
</span>
|
263
|
-
|
264
|
-
}
|
265
|
-
updated(t) {
|
266
|
-
t.has("fade") && this.createFoundation();
|
267
|
-
}
|
268
|
-
createAdapter() {
|
269
|
-
return Object.assign(Object.assign({}, I(this.mdcRoot)), { computeContentClientRect: () => this.contentElement.getBoundingClientRect(), setContentStyleProperty: (t, n) => this.contentElement.style.setProperty(t, n) });
|
270
|
-
}
|
271
|
-
computeContentClientRect() {
|
272
|
-
return this.mdcFoundation.computeContentClientRect();
|
273
|
-
}
|
274
|
-
activate(t) {
|
275
|
-
this.mdcFoundation.activate(t);
|
276
|
-
}
|
277
|
-
deactivate() {
|
278
|
-
this.mdcFoundation.deactivate();
|
279
|
-
}
|
280
|
-
}
|
281
|
-
i([
|
282
|
-
l(".mdc-tab-indicator")
|
283
|
-
], u.prototype, "mdcRoot", void 0);
|
284
|
-
i([
|
285
|
-
l(".mdc-tab-indicator__content")
|
286
|
-
], u.prototype, "contentElement", void 0);
|
287
|
-
i([
|
288
|
-
r()
|
289
|
-
], u.prototype, "icon", void 0);
|
290
|
-
i([
|
291
|
-
r({ type: Boolean })
|
292
|
-
], u.prototype, "fade", void 0);
|
293
|
-
/**
|
114
|
+
`}updated(t){t.has("fade")&&this.createFoundation()}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{computeContentClientRect:()=>this.contentElement.getBoundingClientRect(),setContentStyleProperty:(t,i)=>this.contentElement.style.setProperty(t,i)})}computeContentClientRect(){return this.mdcFoundation.computeContentClientRect()}activate(t){this.mdcFoundation.activate(t)}deactivate(){this.mdcFoundation.deactivate()}}n.__decorate([l.i(".mdc-tab-indicator")],u.prototype,"mdcRoot",void 0);n.__decorate([l.i(".mdc-tab-indicator__content")],u.prototype,"contentElement",void 0);n.__decorate([r.e()],u.prototype,"icon",void 0);n.__decorate([r.e({type:Boolean})],u.prototype,"fade",void 0);/**
|
294
115
|
* @license
|
295
116
|
* Copyright 2021 Google LLC
|
296
117
|
* SPDX-LIcense-Identifier: Apache-2.0
|
297
|
-
*/
|
298
|
-
const x = R`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}`;
|
299
|
-
/**
|
118
|
+
*/const $=s.i`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-color:#6200ee;border-color:var(--mdc-theme-primary, #6200ee)}.mdc-tab-indicator .mdc-tab-indicator__content--icon{color:#018786;color:var(--mdc-theme-secondary, #018786)}.mdc-tab-indicator .mdc-tab-indicator__content--underline{border-top-width:2px}.mdc-tab-indicator .mdc-tab-indicator__content--icon{height:34px;font-size:34px}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator__content--icon{align-self:center;margin:0 auto}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}.mdc-tab-indicator .mdc-tab-indicator__content{transition:250ms transform cubic-bezier(0.4, 0, 0.2, 1)}.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition:150ms opacity linear}.mdc-tab-indicator--active.mdc-tab-indicator--fade .mdc-tab-indicator__content{transition-delay:100ms}`;/**
|
300
119
|
* @license
|
301
120
|
* Copyright 2018 Google LLC
|
302
121
|
* SPDX-License-Identifier: Apache-2.0
|
303
|
-
*/
|
304
|
-
let C = class extends u {
|
305
|
-
};
|
306
|
-
C.styles = [x];
|
307
|
-
C = i([
|
308
|
-
A("mwc-tab-indicator")
|
309
|
-
], C);
|
310
|
-
/**
|
122
|
+
*/let b=class extends u{};b.styles=[$];b=n.__decorate([s.e("mwc-tab-indicator")],b);/**
|
311
123
|
* @license
|
312
124
|
* Copyright 2016 Google Inc.
|
313
125
|
*
|
@@ -328,43 +140,7 @@ C = i([
|
|
328
140
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
329
141
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
330
142
|
* THE SOFTWARE.
|
331
|
-
*/
|
332
|
-
var B = (
|
333
|
-
/** @class */
|
334
|
-
function() {
|
335
|
-
function e(t) {
|
336
|
-
t === void 0 && (t = {}), this.adapter = t;
|
337
|
-
}
|
338
|
-
return Object.defineProperty(e, "cssClasses", {
|
339
|
-
get: function() {
|
340
|
-
return {};
|
341
|
-
},
|
342
|
-
enumerable: !1,
|
343
|
-
configurable: !0
|
344
|
-
}), Object.defineProperty(e, "strings", {
|
345
|
-
get: function() {
|
346
|
-
return {};
|
347
|
-
},
|
348
|
-
enumerable: !1,
|
349
|
-
configurable: !0
|
350
|
-
}), Object.defineProperty(e, "numbers", {
|
351
|
-
get: function() {
|
352
|
-
return {};
|
353
|
-
},
|
354
|
-
enumerable: !1,
|
355
|
-
configurable: !0
|
356
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
357
|
-
get: function() {
|
358
|
-
return {};
|
359
|
-
},
|
360
|
-
enumerable: !1,
|
361
|
-
configurable: !0
|
362
|
-
}), e.prototype.init = function() {
|
363
|
-
}, e.prototype.destroy = function() {
|
364
|
-
}, e;
|
365
|
-
}()
|
366
|
-
);
|
367
|
-
/**
|
143
|
+
*/var L=function(){function e(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();/**
|
368
144
|
* @license
|
369
145
|
* Copyright 2018 Google Inc.
|
370
146
|
*
|
@@ -385,18 +161,7 @@ var B = (
|
|
385
161
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
386
162
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
387
163
|
* THE SOFTWARE.
|
388
|
-
*/
|
389
|
-
var f = {
|
390
|
-
ACTIVE: "mdc-tab--active"
|
391
|
-
}, d = {
|
392
|
-
ARIA_SELECTED: "aria-selected",
|
393
|
-
CONTENT_SELECTOR: ".mdc-tab__content",
|
394
|
-
INTERACTED_EVENT: "MDCTab:interacted",
|
395
|
-
RIPPLE_SELECTOR: ".mdc-tab__ripple",
|
396
|
-
TABINDEX: "tabIndex",
|
397
|
-
TAB_INDICATOR_SELECTOR: ".mdc-tab-indicator"
|
398
|
-
};
|
399
|
-
/**
|
164
|
+
*/var f={ACTIVE:"mdc-tab--active"},d={ARIA_SELECTED:"aria-selected",CONTENT_SELECTOR:".mdc-tab__content",INTERACTED_EVENT:"MDCTab:interacted",RIPPLE_SELECTOR:".mdc-tab__ripple",TABINDEX:"tabIndex",TAB_INDICATOR_SELECTOR:".mdc-tab-indicator"};/**
|
400
165
|
* @license
|
401
166
|
* Copyright 2018 Google Inc.
|
402
167
|
*
|
@@ -417,118 +182,16 @@ var f = {
|
|
417
182
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
418
183
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
419
184
|
* THE SOFTWARE.
|
420
|
-
*/
|
421
|
-
var N = (
|
422
|
-
/** @class */
|
423
|
-
function(e) {
|
424
|
-
m(t, e);
|
425
|
-
function t(n) {
|
426
|
-
var o = e.call(this, h(h({}, t.defaultAdapter), n)) || this;
|
427
|
-
return o.focusOnActivate = !0, o;
|
428
|
-
}
|
429
|
-
return Object.defineProperty(t, "cssClasses", {
|
430
|
-
get: function() {
|
431
|
-
return f;
|
432
|
-
},
|
433
|
-
enumerable: !1,
|
434
|
-
configurable: !0
|
435
|
-
}), Object.defineProperty(t, "strings", {
|
436
|
-
get: function() {
|
437
|
-
return d;
|
438
|
-
},
|
439
|
-
enumerable: !1,
|
440
|
-
configurable: !0
|
441
|
-
}), Object.defineProperty(t, "defaultAdapter", {
|
442
|
-
get: function() {
|
443
|
-
return {
|
444
|
-
addClass: function() {
|
445
|
-
},
|
446
|
-
removeClass: function() {
|
447
|
-
},
|
448
|
-
hasClass: function() {
|
449
|
-
return !1;
|
450
|
-
},
|
451
|
-
setAttr: function() {
|
452
|
-
},
|
453
|
-
activateIndicator: function() {
|
454
|
-
},
|
455
|
-
deactivateIndicator: function() {
|
456
|
-
},
|
457
|
-
notifyInteracted: function() {
|
458
|
-
},
|
459
|
-
getOffsetLeft: function() {
|
460
|
-
return 0;
|
461
|
-
},
|
462
|
-
getOffsetWidth: function() {
|
463
|
-
return 0;
|
464
|
-
},
|
465
|
-
getContentOffsetLeft: function() {
|
466
|
-
return 0;
|
467
|
-
},
|
468
|
-
getContentOffsetWidth: function() {
|
469
|
-
return 0;
|
470
|
-
},
|
471
|
-
focus: function() {
|
472
|
-
}
|
473
|
-
};
|
474
|
-
},
|
475
|
-
enumerable: !1,
|
476
|
-
configurable: !0
|
477
|
-
}), t.prototype.handleClick = function() {
|
478
|
-
this.adapter.notifyInteracted();
|
479
|
-
}, t.prototype.isActive = function() {
|
480
|
-
return this.adapter.hasClass(f.ACTIVE);
|
481
|
-
}, t.prototype.setFocusOnActivate = function(n) {
|
482
|
-
this.focusOnActivate = n;
|
483
|
-
}, t.prototype.activate = function(n) {
|
484
|
-
this.adapter.addClass(f.ACTIVE), this.adapter.setAttr(d.ARIA_SELECTED, "true"), this.adapter.setAttr(d.TABINDEX, "0"), this.adapter.activateIndicator(n), this.focusOnActivate && this.adapter.focus();
|
485
|
-
}, t.prototype.deactivate = function() {
|
486
|
-
this.isActive() && (this.adapter.removeClass(f.ACTIVE), this.adapter.setAttr(d.ARIA_SELECTED, "false"), this.adapter.setAttr(d.TABINDEX, "-1"), this.adapter.deactivateIndicator());
|
487
|
-
}, t.prototype.computeDimensions = function() {
|
488
|
-
var n = this.adapter.getOffsetWidth(), o = this.adapter.getOffsetLeft(), b = this.adapter.getContentOffsetWidth(), p = this.adapter.getContentOffsetLeft();
|
489
|
-
return {
|
490
|
-
contentLeft: o + p,
|
491
|
-
contentRight: o + p + b,
|
492
|
-
rootLeft: o,
|
493
|
-
rootRight: o + n
|
494
|
-
};
|
495
|
-
}, t;
|
496
|
-
}(B)
|
497
|
-
);
|
498
|
-
const y = N;
|
499
|
-
/**
|
185
|
+
*/var P=function(e){n.__extends(t,e);function t(i){var o=e.call(this,n.__assign(n.__assign({},t.defaultAdapter),i))||this;return o.focusOnActivate=!0,o}return Object.defineProperty(t,"cssClasses",{get:function(){return f},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return d},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},activateIndicator:function(){},deactivateIndicator:function(){},notifyInteracted:function(){},getOffsetLeft:function(){return 0},getOffsetWidth:function(){return 0},getContentOffsetLeft:function(){return 0},getContentOffsetWidth:function(){return 0},focus:function(){}}},enumerable:!1,configurable:!0}),t.prototype.handleClick=function(){this.adapter.notifyInteracted()},t.prototype.isActive=function(){return this.adapter.hasClass(f.ACTIVE)},t.prototype.setFocusOnActivate=function(i){this.focusOnActivate=i},t.prototype.activate=function(i){this.adapter.addClass(f.ACTIVE),this.adapter.setAttr(d.ARIA_SELECTED,"true"),this.adapter.setAttr(d.TABINDEX,"0"),this.adapter.activateIndicator(i),this.focusOnActivate&&this.adapter.focus()},t.prototype.deactivate=function(){this.isActive()&&(this.adapter.removeClass(f.ACTIVE),this.adapter.setAttr(d.ARIA_SELECTED,"false"),this.adapter.setAttr(d.TABINDEX,"-1"),this.adapter.deactivateIndicator())},t.prototype.computeDimensions=function(){var i=this.adapter.getOffsetWidth(),o=this.adapter.getOffsetLeft(),h=this.adapter.getContentOffsetWidth(),p=this.adapter.getContentOffsetLeft();return{contentLeft:o+p,contentRight:o+p+h,rootLeft:o,rootRight:o+i}},t}(L);const v=P;/**
|
500
186
|
* @license
|
501
187
|
* Copyright 2018 Google LLC
|
502
188
|
* SPDX-License-Identifier: Apache-2.0
|
503
|
-
*/
|
504
|
-
let
|
505
|
-
class
|
506
|
-
constructor() {
|
507
|
-
super(...arguments), this.mdcFoundationClass = y, this.label = "", this.icon = "", this.hasImageIcon = !1, this.isFadingIndicator = !1, this.minWidth = !1, this.isMinWidthIndicator = !1, this.indicatorIcon = "", this.stacked = !1, this.focusOnActivate = !0, this._active = !1, this.initFocus = !1, this.shouldRenderRipple = !1, this.useStateLayerCustomProperties = !1, this.rippleElement = null, this.rippleHandlers = new E(() => (this.shouldRenderRipple = !0, this.ripple.then((t) => this.rippleElement = t), this.ripple));
|
508
|
-
}
|
509
|
-
get active() {
|
510
|
-
return this._active;
|
511
|
-
}
|
512
|
-
connectedCallback() {
|
513
|
-
this.dir = document.dir, super.connectedCallback();
|
514
|
-
}
|
515
|
-
firstUpdated() {
|
516
|
-
super.firstUpdated(), this.id = this.id || `mdc-tab-${++j}`;
|
517
|
-
}
|
518
|
-
render() {
|
519
|
-
const t = {
|
520
|
-
"mdc-tab--min-width": this.minWidth,
|
521
|
-
"mdc-tab--stacked": this.stacked
|
522
|
-
};
|
523
|
-
let n = c``;
|
524
|
-
(this.hasImageIcon || this.icon) && (n = c`
|
525
|
-
<span class="mdc-tab__icon material-icons"><slot name="icon">${this.icon}</slot></span>`);
|
526
|
-
let o = c``;
|
527
|
-
return this.label && (o = c`
|
528
|
-
<span class="mdc-tab__text-label">${this.label}</span>`), c`
|
189
|
+
*/let M=0;class a extends _.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=v,this.label="",this.icon="",this.hasImageIcon=!1,this.isFadingIndicator=!1,this.minWidth=!1,this.isMinWidthIndicator=!1,this.indicatorIcon="",this.stacked=!1,this.focusOnActivate=!0,this._active=!1,this.initFocus=!1,this.shouldRenderRipple=!1,this.useStateLayerCustomProperties=!1,this.rippleElement=null,this.rippleHandlers=new y.RippleHandlers(()=>(this.shouldRenderRipple=!0,this.ripple.then(t=>this.rippleElement=t),this.ripple))}get active(){return this._active}connectedCallback(){this.dir=document.dir,super.connectedCallback()}firstUpdated(){super.firstUpdated(),this.id=this.id||`mdc-tab-${++M}`}render(){const t={"mdc-tab--min-width":this.minWidth,"mdc-tab--stacked":this.stacked};let i=s.y``;(this.hasImageIcon||this.icon)&&(i=s.y`
|
190
|
+
<span class="mdc-tab__icon material-icons"><slot name="icon">${this.icon}</slot></span>`);let o=s.y``;return this.label&&(o=s.y`
|
191
|
+
<span class="mdc-tab__text-label">${this.label}</span>`),s.y`
|
529
192
|
<button
|
530
193
|
@click="${this.handleClick}"
|
531
|
-
class="mdc-tab ${
|
194
|
+
class="mdc-tab ${m.o(t)}"
|
532
195
|
role="tab"
|
533
196
|
aria-selected="false"
|
534
197
|
tabindex="-1"
|
@@ -541,154 +204,13 @@ class a extends g {
|
|
541
204
|
@touchend="${this.handleRippleDeactivate}"
|
542
205
|
@touchcancel="${this.handleRippleDeactivate}">
|
543
206
|
<span class="mdc-tab__content">
|
544
|
-
${
|
207
|
+
${i}
|
545
208
|
${o}
|
546
|
-
${this.isMinWidthIndicator
|
209
|
+
${this.isMinWidthIndicator?this.renderIndicator():""}
|
547
210
|
</span>
|
548
|
-
${this.isMinWidthIndicator
|
211
|
+
${this.isMinWidthIndicator?"":this.renderIndicator()}
|
549
212
|
${this.renderRipple()}
|
550
|
-
</button
|
551
|
-
}
|
552
|
-
renderIndicator() {
|
553
|
-
return c`<mwc-tab-indicator
|
213
|
+
</button>`}renderIndicator(){return s.y`<mwc-tab-indicator
|
554
214
|
.icon="${this.indicatorIcon}"
|
555
|
-
.fade="${this.isFadingIndicator}"></mwc-tab-indicator
|
556
|
-
|
557
|
-
// TODO(dfreedm): Make this use selected as a param after Polymer/internal#739
|
558
|
-
/** @soyCompatible */
|
559
|
-
renderRipple() {
|
560
|
-
return this.shouldRenderRipple ? c`<mwc-ripple primary
|
561
|
-
.internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"></mwc-ripple>` : "";
|
562
|
-
}
|
563
|
-
createAdapter() {
|
564
|
-
return Object.assign(Object.assign({}, I(this.mdcRoot)), { setAttr: (t, n) => this.mdcRoot.setAttribute(t, n), activateIndicator: async (t) => {
|
565
|
-
await this.tabIndicator.updateComplete, this.tabIndicator.activate(t);
|
566
|
-
}, deactivateIndicator: async () => {
|
567
|
-
await this.tabIndicator.updateComplete, this.tabIndicator.deactivate();
|
568
|
-
}, notifyInteracted: () => this.dispatchEvent(new CustomEvent(y.strings.INTERACTED_EVENT, {
|
569
|
-
detail: { tabId: this.id },
|
570
|
-
bubbles: !0,
|
571
|
-
composed: !0,
|
572
|
-
cancelable: !0
|
573
|
-
})), getOffsetLeft: () => this.offsetLeft, getOffsetWidth: () => this.mdcRoot.offsetWidth, getContentOffsetLeft: () => this._contentElement.offsetLeft, getContentOffsetWidth: () => this._contentElement.offsetWidth, focus: () => {
|
574
|
-
this.initFocus ? this.initFocus = !1 : this.mdcRoot.focus();
|
575
|
-
} });
|
576
|
-
}
|
577
|
-
activate(t) {
|
578
|
-
t || (this.initFocus = !0), this.mdcFoundation ? (this.mdcFoundation.activate(t), this.setActive(this.mdcFoundation.isActive())) : this.updateComplete.then(() => {
|
579
|
-
this.mdcFoundation.activate(t), this.setActive(this.mdcFoundation.isActive());
|
580
|
-
});
|
581
|
-
}
|
582
|
-
deactivate() {
|
583
|
-
this.mdcFoundation.deactivate(), this.setActive(this.mdcFoundation.isActive());
|
584
|
-
}
|
585
|
-
setActive(t) {
|
586
|
-
const n = this.active;
|
587
|
-
n !== t && (this._active = t, this.requestUpdate("active", n));
|
588
|
-
}
|
589
|
-
computeDimensions() {
|
590
|
-
return this.mdcFoundation.computeDimensions();
|
591
|
-
}
|
592
|
-
computeIndicatorClientRect() {
|
593
|
-
return this.tabIndicator.computeContentClientRect();
|
594
|
-
}
|
595
|
-
// NOTE: needed only for ShadyDOM where delegatesFocus is not implemented
|
596
|
-
focus() {
|
597
|
-
this.mdcRoot.focus(), this.handleFocus();
|
598
|
-
}
|
599
|
-
handleClick() {
|
600
|
-
this.handleFocus(), this.mdcFoundation.handleClick();
|
601
|
-
}
|
602
|
-
handleFocus() {
|
603
|
-
this.handleRippleFocus();
|
604
|
-
}
|
605
|
-
handleBlur() {
|
606
|
-
this.handleRippleBlur();
|
607
|
-
}
|
608
|
-
handleRippleMouseDown(t) {
|
609
|
-
const n = () => {
|
610
|
-
window.removeEventListener("mouseup", n), this.handleRippleDeactivate();
|
611
|
-
};
|
612
|
-
window.addEventListener("mouseup", n), this.rippleHandlers.startPress(t);
|
613
|
-
}
|
614
|
-
handleRippleTouchStart(t) {
|
615
|
-
this.rippleHandlers.startPress(t);
|
616
|
-
}
|
617
|
-
handleRippleDeactivate() {
|
618
|
-
this.rippleHandlers.endPress();
|
619
|
-
}
|
620
|
-
handleRippleMouseEnter() {
|
621
|
-
this.rippleHandlers.startHover();
|
622
|
-
}
|
623
|
-
handleRippleMouseLeave() {
|
624
|
-
this.rippleHandlers.endHover();
|
625
|
-
}
|
626
|
-
handleRippleFocus() {
|
627
|
-
this.rippleHandlers.startFocus();
|
628
|
-
}
|
629
|
-
handleRippleBlur() {
|
630
|
-
this.rippleHandlers.endFocus();
|
631
|
-
}
|
632
|
-
get isRippleActive() {
|
633
|
-
var t;
|
634
|
-
return ((t = this.rippleElement) === null || t === void 0 ? void 0 : t.isActive) || !1;
|
635
|
-
}
|
636
|
-
}
|
637
|
-
a.shadowRootOptions = { mode: "open", delegatesFocus: !0 };
|
638
|
-
i([
|
639
|
-
l(".mdc-tab")
|
640
|
-
], a.prototype, "mdcRoot", void 0);
|
641
|
-
i([
|
642
|
-
l("mwc-tab-indicator")
|
643
|
-
], a.prototype, "tabIndicator", void 0);
|
644
|
-
i([
|
645
|
-
r()
|
646
|
-
], a.prototype, "label", void 0);
|
647
|
-
i([
|
648
|
-
r()
|
649
|
-
], a.prototype, "icon", void 0);
|
650
|
-
i([
|
651
|
-
r({ type: Boolean })
|
652
|
-
], a.prototype, "hasImageIcon", void 0);
|
653
|
-
i([
|
654
|
-
r({ type: Boolean })
|
655
|
-
], a.prototype, "isFadingIndicator", void 0);
|
656
|
-
i([
|
657
|
-
r({ type: Boolean })
|
658
|
-
], a.prototype, "minWidth", void 0);
|
659
|
-
i([
|
660
|
-
r({ type: Boolean })
|
661
|
-
], a.prototype, "isMinWidthIndicator", void 0);
|
662
|
-
i([
|
663
|
-
r({ type: Boolean, reflect: !0, attribute: "active" })
|
664
|
-
], a.prototype, "active", null);
|
665
|
-
i([
|
666
|
-
r()
|
667
|
-
], a.prototype, "indicatorIcon", void 0);
|
668
|
-
i([
|
669
|
-
r({ type: Boolean })
|
670
|
-
], a.prototype, "stacked", void 0);
|
671
|
-
i([
|
672
|
-
F(async function(e) {
|
673
|
-
await this.updateComplete, this.mdcFoundation.setFocusOnActivate(e);
|
674
|
-
}),
|
675
|
-
r({ type: Boolean })
|
676
|
-
], a.prototype, "focusOnActivate", void 0);
|
677
|
-
i([
|
678
|
-
l(".mdc-tab__content")
|
679
|
-
], a.prototype, "_contentElement", void 0);
|
680
|
-
i([
|
681
|
-
_()
|
682
|
-
], a.prototype, "shouldRenderRipple", void 0);
|
683
|
-
i([
|
684
|
-
_()
|
685
|
-
], a.prototype, "useStateLayerCustomProperties", void 0);
|
686
|
-
i([
|
687
|
-
T("mwc-ripple")
|
688
|
-
], a.prototype, "ripple", void 0);
|
689
|
-
i([
|
690
|
-
O({ passive: !0 })
|
691
|
-
], a.prototype, "handleRippleTouchStart", null);
|
692
|
-
export {
|
693
|
-
a as T
|
694
|
-
};
|
215
|
+
.fade="${this.isFadingIndicator}"></mwc-tab-indicator>`}renderRipple(){return this.shouldRenderRipple?s.y`<mwc-ripple primary
|
216
|
+
.internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"></mwc-ripple>`:""}createAdapter(){return Object.assign(Object.assign({},C.addHasRemoveClass(this.mdcRoot)),{setAttr:(t,i)=>this.mdcRoot.setAttribute(t,i),activateIndicator:async t=>{await this.tabIndicator.updateComplete,this.tabIndicator.activate(t)},deactivateIndicator:async()=>{await this.tabIndicator.updateComplete,this.tabIndicator.deactivate()},notifyInteracted:()=>this.dispatchEvent(new CustomEvent(v.strings.INTERACTED_EVENT,{detail:{tabId:this.id},bubbles:!0,composed:!0,cancelable:!0})),getOffsetLeft:()=>this.offsetLeft,getOffsetWidth:()=>this.mdcRoot.offsetWidth,getContentOffsetLeft:()=>this._contentElement.offsetLeft,getContentOffsetWidth:()=>this._contentElement.offsetWidth,focus:()=>{this.initFocus?this.initFocus=!1:this.mdcRoot.focus()}})}activate(t){t||(this.initFocus=!0),this.mdcFoundation?(this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())):this.updateComplete.then(()=>{this.mdcFoundation.activate(t),this.setActive(this.mdcFoundation.isActive())})}deactivate(){this.mdcFoundation.deactivate(),this.setActive(this.mdcFoundation.isActive())}setActive(t){const i=this.active;i!==t&&(this._active=t,this.requestUpdate("active",i))}computeDimensions(){return this.mdcFoundation.computeDimensions()}computeIndicatorClientRect(){return this.tabIndicator.computeContentClientRect()}focus(){this.mdcRoot.focus(),this.handleFocus()}handleClick(){this.handleFocus(),this.mdcFoundation.handleClick()}handleFocus(){this.handleRippleFocus()}handleBlur(){this.handleRippleBlur()}handleRippleMouseDown(t){const i=()=>{window.removeEventListener("mouseup",i),this.handleRippleDeactivate()};window.addEventListener("mouseup",i),this.rippleHandlers.startPress(t)}handleRippleTouchStart(t){this.rippleHandlers.startPress(t)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}get isRippleActive(){var t;return((t=this.rippleElement)===null||t===void 0?void 0:t.isActive)||!1}}a.shadowRootOptions={mode:"open",delegatesFocus:!0};n.__decorate([l.i(".mdc-tab")],a.prototype,"mdcRoot",void 0);n.__decorate([l.i("mwc-tab-indicator")],a.prototype,"tabIndicator",void 0);n.__decorate([r.e()],a.prototype,"label",void 0);n.__decorate([r.e()],a.prototype,"icon",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"hasImageIcon",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"isFadingIndicator",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"minWidth",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"isMinWidthIndicator",void 0);n.__decorate([r.e({type:Boolean,reflect:!0,attribute:"active"})],a.prototype,"active",null);n.__decorate([r.e()],a.prototype,"indicatorIcon",void 0);n.__decorate([r.e({type:Boolean})],a.prototype,"stacked",void 0);n.__decorate([I.observer(async function(e){await this.updateComplete,this.mdcFoundation.setFocusOnActivate(e)}),r.e({type:Boolean})],a.prototype,"focusOnActivate",void 0);n.__decorate([l.i(".mdc-tab__content")],a.prototype,"_contentElement",void 0);n.__decorate([g.t()],a.prototype,"shouldRenderRipple",void 0);n.__decorate([g.t()],a.prototype,"useStateLayerCustomProperties",void 0);n.__decorate([y.e("mwc-ripple")],a.prototype,"ripple",void 0);n.__decorate([R.e({passive:!0})],a.prototype,"handleRippleTouchStart",null);exports.TabBase=a;
|