@covalent/components 6.0.4 → 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.
Files changed (303) hide show
  1. package/action-ribbon/action-ribbon-base.d.ts.map +1 -0
  2. package/{src/action-ribbon → action-ribbon}/action-ribbon.d.ts +1 -0
  3. package/action-ribbon/action-ribbon.d.ts.map +1 -0
  4. package/action-ribbon.js +18 -0
  5. package/action-ribbon.mjs +13 -11
  6. package/alert/alert-base.d.ts.map +1 -0
  7. package/{src/alert → alert}/alert.d.ts +1 -0
  8. package/alert/alert.d.ts.map +1 -0
  9. package/alert.js +21 -0
  10. package/alert.mjs +14 -12
  11. package/{src/app-shell → app-shell}/app-shell.d.ts +1 -0
  12. package/app-shell/app-shell.d.ts.map +1 -0
  13. package/app-shell.js +41 -0
  14. package/app-shell.mjs +19 -17
  15. package/aria-property.mjs +2 -38
  16. package/base-element.mjs +2 -25
  17. package/{src/button → button}/button.d.ts +3 -2
  18. package/button/button.d.ts.map +1 -0
  19. package/button.js +44 -0
  20. package/button.mjs +11 -9
  21. package/card/card-base.d.ts.map +1 -0
  22. package/{src/card → card}/card.d.ts +3 -2
  23. package/card/card.d.ts.map +1 -0
  24. package/card.js +19 -0
  25. package/card.mjs +3 -1
  26. package/check-list-item.js +27 -0
  27. package/check-list-item.mjs +17 -15
  28. package/{src/checkbox → checkbox}/checkbox.d.ts +3 -2
  29. package/checkbox/checkbox.d.ts.map +1 -0
  30. package/checkbox.js +2 -0
  31. package/checkbox.mjs +15 -13
  32. package/chips/chip-base.d.ts.map +1 -0
  33. package/chips/chip-set-base.d.ts.map +1 -0
  34. package/{src/chips → chips}/chip-set.d.ts +1 -0
  35. package/chips/chip-set.d.ts.map +1 -0
  36. package/{src/chips → chips}/chip.d.ts +1 -0
  37. package/chips/chip.d.ts.map +1 -0
  38. package/chips/foundation.d.ts.map +1 -0
  39. package/circular-progress/circular-progress.d.ts +11 -0
  40. package/circular-progress/circular-progress.d.ts.map +1 -0
  41. package/circular-progress.js +65 -0
  42. package/circular-progress.mjs +11 -9
  43. package/class-map.mjs +3 -56
  44. package/{src/code-snippet → code-snippet}/code-snippet.d.ts +3 -2
  45. package/code-snippet/code-snippet.d.ts.map +1 -0
  46. package/code-snippet.js +13 -0
  47. package/code-snippet.mjs +36 -34
  48. package/{src/dialog → dialog}/dialog.d.ts +3 -2
  49. package/dialog/dialog.d.ts.map +1 -0
  50. package/dialog.js +1 -0
  51. package/dialog.mjs +15 -608
  52. package/dialog2.mjs +750 -0
  53. package/directive-helpers.mjs +2 -8
  54. package/{src/drawer → drawer}/drawer.d.ts +3 -2
  55. package/drawer/drawer.d.ts.map +1 -0
  56. package/drawer.js +6 -0
  57. package/drawer.mjs +11 -9
  58. package/{src/empty-state → empty-state}/empty-state.d.ts +3 -2
  59. package/empty-state/empty-state.d.ts.map +1 -0
  60. package/empty-state.js +27 -0
  61. package/empty-state.mjs +17 -15
  62. package/event-options.mjs +2 -11
  63. package/form-element.mjs +2 -47
  64. package/{src/formfield → formfield}/formfield.d.ts +3 -2
  65. package/formfield/formfield.d.ts.map +1 -0
  66. package/foundation.mjs +3 -112
  67. package/foundation2.mjs +2 -40
  68. package/{src/icon → icon}/icon.d.ts +1 -0
  69. package/icon/icon.d.ts.map +1 -0
  70. package/{src/icon-button → icon-button}/icon-button.d.ts +3 -2
  71. package/icon-button/icon-button.d.ts.map +1 -0
  72. package/icon-button.js +32 -0
  73. package/icon-button.mjs +23 -21
  74. package/icon-check-toggle.js +15 -0
  75. package/icon-check-toggle.mjs +5 -5
  76. package/{src/icon-checkbox → icon-checkbox}/icon-check-toggle.d.ts +3 -2
  77. package/icon-checkbox/icon-check-toggle.d.ts.map +1 -0
  78. package/{src/icon-radio → icon-radio}/icon-radio-toggle.d.ts +3 -2
  79. package/icon-radio/icon-radio-toggle.d.ts.map +1 -0
  80. package/icon-radio-toggle.js +14 -0
  81. package/icon-radio-toggle.mjs +19 -19
  82. package/icon.js +5 -0
  83. package/icon.mjs +11 -9
  84. package/if-defined.mjs +2 -7
  85. package/index.d.ts +46 -0
  86. package/index.d.ts.map +1 -0
  87. package/index.js +1 -0
  88. package/index.mjs +126 -0
  89. package/inert.esm.mjs +3 -615
  90. package/linear-progress/linear-progress.d.ts +11 -0
  91. package/linear-progress/linear-progress.d.ts.map +1 -0
  92. package/linear-progress.js +36 -0
  93. package/linear-progress.mjs +21 -19
  94. package/list/check-list-item.d.ts +11 -0
  95. package/list/check-list-item.d.ts.map +1 -0
  96. package/{src/list → list}/list-expansion.d.ts +5 -4
  97. package/list/list-expansion.d.ts.map +1 -0
  98. package/{src/list → list}/list-item.d.ts +3 -2
  99. package/list/list-item.d.ts.map +1 -0
  100. package/{src/list → list}/list.d.ts +3 -2
  101. package/list/list.d.ts.map +1 -0
  102. package/{src/list → list}/nav-list-item.d.ts +3 -2
  103. package/list/nav-list-item.d.ts.map +1 -0
  104. package/list/radio-list-item.d.ts +11 -0
  105. package/list/radio-list-item.d.ts.map +1 -0
  106. package/list-expansion.js +9 -0
  107. package/list-expansion.mjs +20 -18
  108. package/list-item.js +1 -0
  109. package/list-item.mjs +8 -48
  110. package/list-item2.mjs +43 -0
  111. package/list.js +1 -0
  112. package/list.mjs +2 -27
  113. package/list2.mjs +25 -0
  114. package/{src/menu → menu}/menu.d.ts +3 -2
  115. package/menu/menu.d.ts.map +1 -0
  116. package/menu.js +5 -0
  117. package/menu.mjs +11 -9
  118. package/mwc-checkbox-base.mjs +11 -168
  119. package/mwc-checkbox.css.mjs +2 -7
  120. package/mwc-drawer-base.mjs +12 -242
  121. package/mwc-icon.mjs +3 -20
  122. package/mwc-line-ripple-directive.mjs +16 -452
  123. package/mwc-list-base.mjs +26 -755
  124. package/mwc-list-item-base.mjs +9 -183
  125. package/mwc-list-item.css.mjs +3 -11
  126. package/mwc-menu-base.mjs +21 -976
  127. package/mwc-radio-base.mjs +11 -438
  128. package/mwc-radio.css.mjs +2 -7
  129. package/mwc-slider.css.mjs +23 -794
  130. package/mwc-tab-base.mjs +25 -503
  131. package/mwc-top-app-bar-base.mjs +12 -282
  132. package/nav-list-item.js +10 -0
  133. package/nav-list-item.mjs +26 -24
  134. package/observer.mjs +2 -29
  135. package/package.json +226 -6
  136. package/property.mjs +2 -17
  137. package/query-assigned-elements.mjs +9 -591
  138. package/query-assigned-nodes.mjs +2 -14
  139. package/query.mjs +2 -22
  140. package/{src/radio → radio}/radio.d.ts +3 -2
  141. package/radio/radio.d.ts.map +1 -0
  142. package/radio-list-item.js +27 -0
  143. package/radio-list-item.mjs +17 -15
  144. package/radio.js +2 -0
  145. package/radio.mjs +12 -10
  146. package/ripple-handlers.mjs +12 -666
  147. package/{src/select → select}/select.d.ts +3 -2
  148. package/select/select.d.ts.map +1 -0
  149. package/select.js +272 -0
  150. package/select.mjs +124 -122
  151. package/{src/side-sheet → side-sheet}/side-sheet.d.ts +2 -2
  152. package/side-sheet/side-sheet.d.ts.map +1 -0
  153. package/side-sheet.js +4 -0
  154. package/side-sheet.mjs +3 -3
  155. package/slider/slider-range.d.ts +11 -0
  156. package/slider/slider-range.d.ts.map +1 -0
  157. package/{src/slider → slider}/slider.d.ts +3 -2
  158. package/slider/slider.d.ts.map +1 -0
  159. package/slider-range.js +64 -0
  160. package/slider-range.mjs +23 -21
  161. package/slider.js +14 -0
  162. package/slider.mjs +16 -14
  163. package/{src/snackbar → snackbar}/snackbar.d.ts +3 -2
  164. package/snackbar/snackbar.d.ts.map +1 -0
  165. package/snackbar.js +93 -0
  166. package/snackbar.mjs +12 -10
  167. package/state.mjs +2 -9
  168. package/status-header/status-header-base.d.ts.map +1 -0
  169. package/{src/status-header → status-header}/status-header-item.d.ts +1 -0
  170. package/status-header/status-header-item.d.ts.map +1 -0
  171. package/{src/status-header → status-header}/status-header.d.ts +1 -0
  172. package/status-header/status-header.d.ts.map +1 -0
  173. package/status-header-item.js +4 -0
  174. package/status-header-item.mjs +17 -15
  175. package/status-header.js +24 -0
  176. package/status-header.mjs +17 -15
  177. package/style-map.mjs +2 -37
  178. package/{src/switch → switch}/switch.d.ts +3 -2
  179. package/switch/switch.d.ts.map +1 -0
  180. package/switch.js +174 -0
  181. package/switch.mjs +10 -8
  182. package/{src/tab → tab}/tab-bar.d.ts +3 -2
  183. package/tab/tab-bar.d.ts.map +1 -0
  184. package/{src/tab → tab}/tab.d.ts +3 -2
  185. package/tab/tab.d.ts.map +1 -0
  186. package/tab-bar.js +278 -0
  187. package/tab-bar.mjs +23 -21
  188. package/tab.js +6 -0
  189. package/tab.mjs +11 -9
  190. package/{src/text-lockup → text-lockup}/text-lockup.d.ts +1 -0
  191. package/text-lockup/text-lockup.d.ts.map +1 -0
  192. package/text-lockup.js +7 -0
  193. package/text-lockup.mjs +11 -9
  194. package/{src/textarea → textarea}/textarea.d.ts +3 -2
  195. package/textarea/textarea.d.ts.map +1 -0
  196. package/textarea.js +40 -0
  197. package/textarea.mjs +14 -12
  198. package/{src/textfield → textfield}/textfield.d.ts +3 -2
  199. package/textfield/textfield.d.ts.map +1 -0
  200. package/textfield.js +7 -0
  201. package/textfield.mjs +132 -39
  202. package/textfield2.mjs +1 -1
  203. package/{src/toolbar → toolbar}/toolbar.d.ts +3 -2
  204. package/toolbar/toolbar.d.ts.map +1 -0
  205. package/toolbar.js +4 -0
  206. package/toolbar.mjs +11 -9
  207. package/{src/tooltip → tooltip}/tooltip.d.ts +3 -2
  208. package/tooltip/tooltip.d.ts.map +1 -0
  209. package/tooltip.js +126 -0
  210. package/tooltip.mjs +66 -64
  211. package/top-app-bar/top-app-bar-fixed.d.ts +11 -0
  212. package/top-app-bar/top-app-bar-fixed.d.ts.map +1 -0
  213. package/{src/top-app-bar → top-app-bar}/top-app-bar.d.ts +3 -2
  214. package/top-app-bar/top-app-bar.d.ts.map +1 -0
  215. package/top-app-bar-fixed.js +28 -0
  216. package/top-app-bar-fixed.mjs +16 -14
  217. package/top-app-bar.js +3 -0
  218. package/top-app-bar.mjs +6 -28
  219. package/{src/tree-list → tree-list}/tree-list-item.d.ts +1 -0
  220. package/tree-list/tree-list-item.d.ts.map +1 -0
  221. package/{src/tree-list → tree-list}/tree-list.d.ts +1 -0
  222. package/tree-list/tree-list.d.ts.map +1 -0
  223. package/tree-list-item.js +26 -0
  224. package/tree-list-item.mjs +7 -5
  225. package/tree-list.js +10 -0
  226. package/tree-list.mjs +13 -12
  227. package/tslib.es6.mjs +1 -82
  228. package/{src/typography → typography}/typography.d.ts +1 -0
  229. package/typography/typography.d.ts.map +1 -0
  230. package/typography.js +4 -0
  231. package/typography.mjs +16 -14
  232. package/utils.mjs +2 -49
  233. package/covalent.mjs +0 -44
  234. package/covalent.umd.js +0 -3501
  235. package/src/action-ribbon/action-ribbon-base.d.ts.map +0 -1
  236. package/src/action-ribbon/action-ribbon.d.ts.map +0 -1
  237. package/src/alert/alert-base.d.ts.map +0 -1
  238. package/src/alert/alert.d.ts.map +0 -1
  239. package/src/app-shell/app-shell.d.ts.map +0 -1
  240. package/src/button/button.d.ts.map +0 -1
  241. package/src/card/card-base.d.ts.map +0 -1
  242. package/src/card/card.d.ts.map +0 -1
  243. package/src/checkbox/checkbox.d.ts.map +0 -1
  244. package/src/chips/chip-base.d.ts.map +0 -1
  245. package/src/chips/chip-set-base.d.ts.map +0 -1
  246. package/src/chips/chip-set.d.ts.map +0 -1
  247. package/src/chips/chip.d.ts.map +0 -1
  248. package/src/chips/foundation.d.ts.map +0 -1
  249. package/src/circular-progress/circular-progress.d.ts +0 -10
  250. package/src/circular-progress/circular-progress.d.ts.map +0 -1
  251. package/src/code-snippet/code-snippet.d.ts.map +0 -1
  252. package/src/dialog/dialog.d.ts.map +0 -1
  253. package/src/drawer/drawer.d.ts.map +0 -1
  254. package/src/empty-state/empty-state.d.ts.map +0 -1
  255. package/src/formfield/formfield.d.ts.map +0 -1
  256. package/src/icon/icon.d.ts.map +0 -1
  257. package/src/icon-button/icon-button.d.ts.map +0 -1
  258. package/src/icon-checkbox/icon-check-toggle.d.ts.map +0 -1
  259. package/src/icon-radio/icon-radio-toggle.d.ts.map +0 -1
  260. package/src/index.d.ts +0 -3
  261. package/src/index.d.ts.map +0 -1
  262. package/src/linear-progress/linear-progress.d.ts +0 -10
  263. package/src/linear-progress/linear-progress.d.ts.map +0 -1
  264. package/src/list/check-list-item.d.ts +0 -10
  265. package/src/list/check-list-item.d.ts.map +0 -1
  266. package/src/list/list-expansion.d.ts.map +0 -1
  267. package/src/list/list-item.d.ts.map +0 -1
  268. package/src/list/list.d.ts.map +0 -1
  269. package/src/list/nav-list-item.d.ts.map +0 -1
  270. package/src/list/radio-list-item.d.ts +0 -10
  271. package/src/list/radio-list-item.d.ts.map +0 -1
  272. package/src/menu/menu.d.ts.map +0 -1
  273. package/src/radio/radio.d.ts.map +0 -1
  274. package/src/select/select.d.ts.map +0 -1
  275. package/src/side-sheet/side-sheet.d.ts.map +0 -1
  276. package/src/slider/slider-range.d.ts +0 -10
  277. package/src/slider/slider-range.d.ts.map +0 -1
  278. package/src/slider/slider.d.ts.map +0 -1
  279. package/src/snackbar/snackbar.d.ts.map +0 -1
  280. package/src/status-header/status-header-base.d.ts.map +0 -1
  281. package/src/status-header/status-header-item.d.ts.map +0 -1
  282. package/src/status-header/status-header.d.ts.map +0 -1
  283. package/src/switch/switch.d.ts.map +0 -1
  284. package/src/tab/tab-bar.d.ts.map +0 -1
  285. package/src/tab/tab.d.ts.map +0 -1
  286. package/src/text-lockup/text-lockup.d.ts.map +0 -1
  287. package/src/textarea/textarea.d.ts.map +0 -1
  288. package/src/textfield/textfield.d.ts.map +0 -1
  289. package/src/toolbar/toolbar.d.ts.map +0 -1
  290. package/src/tooltip/tooltip.d.ts.map +0 -1
  291. package/src/top-app-bar/top-app-bar-fixed.d.ts +0 -10
  292. package/src/top-app-bar/top-app-bar-fixed.d.ts.map +0 -1
  293. package/src/top-app-bar/top-app-bar.d.ts.map +0 -1
  294. package/src/tree-list/tree-list-item.d.ts.map +0 -1
  295. package/src/tree-list/tree-list.d.ts.map +0 -1
  296. package/src/typography/typography.d.ts.map +0 -1
  297. /package/{src/action-ribbon → action-ribbon}/action-ribbon-base.d.ts +0 -0
  298. /package/{src/alert → alert}/alert-base.d.ts +0 -0
  299. /package/{src/card → card}/card-base.d.ts +0 -0
  300. /package/{src/chips → chips}/chip-base.d.ts +0 -0
  301. /package/{src/chips → chips}/chip-set-base.d.ts +0 -0
  302. /package/{src/chips → chips}/foundation.d.ts +0 -0
  303. /package/{src/status-header → status-header}/status-header-base.d.ts +0 -0
package/mwc-tab-base.mjs CHANGED
@@ -1,15 +1,4 @@
1
- import { _ as m, a as h, b as i } from "./tslib.es6.mjs";
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 u extends g {
245
- constructor() {
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 j = 0;
505
- class a extends g {
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 ${v(t)}"
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
- ${n}
207
+ ${i}
545
208
  ${o}
546
- ${this.isMinWidthIndicator ? this.renderIndicator() : ""}
209
+ ${this.isMinWidthIndicator?this.renderIndicator():""}
547
210
  </span>
548
- ${this.isMinWidthIndicator ? "" : this.renderIndicator()}
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;