@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
@@ -1,11 +1,4 @@
1
- import { _ as f, a as u, b as i } from "./tslib.es6.mjs";
2
- import { e as p } from "./property.mjs";
3
- import { y as c } from "./query-assigned-elements.mjs";
4
- import { B as _ } from "./base-element.mjs";
5
- import { s as A, a as S } from "./utils.mjs";
6
- import { i as g } from "./query.mjs";
7
- import { o as h } from "./class-map.mjs";
8
- /**
1
+ "use strict";const i=require("./tslib.es6.mjs"),p=require("./property.mjs"),l=require("./query-assigned-elements.mjs"),A=require("./base-element.mjs"),g=require("./utils.mjs"),T=require("./query.mjs"),f=require("./class-map.mjs");/**
9
2
  * @license
10
3
  * Copyright 2018 Google Inc.
11
4
  *
@@ -26,24 +19,7 @@ import { o as h } from "./class-map.mjs";
26
19
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
27
20
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
28
21
  * THE SOFTWARE.
29
- */
30
- var v = {
31
- FIXED_CLASS: "mdc-top-app-bar--fixed",
32
- FIXED_SCROLLED_CLASS: "mdc-top-app-bar--fixed-scrolled",
33
- SHORT_CLASS: "mdc-top-app-bar--short",
34
- SHORT_COLLAPSED_CLASS: "mdc-top-app-bar--short-collapsed",
35
- SHORT_HAS_ACTION_ITEM_CLASS: "mdc-top-app-bar--short-has-action-item"
36
- }, a = {
37
- DEBOUNCE_THROTTLE_RESIZE_TIME_MS: 100,
38
- MAX_TOP_APP_BAR_HEIGHT: 128
39
- }, T = {
40
- ACTION_ITEM_SELECTOR: ".mdc-top-app-bar__action-item",
41
- NAVIGATION_EVENT: "MDCTopAppBar:nav",
42
- NAVIGATION_ICON_SELECTOR: ".mdc-top-app-bar__navigation-icon",
43
- ROOT_SELECTOR: ".mdc-top-app-bar",
44
- TITLE_SELECTOR: ".mdc-top-app-bar__title"
45
- };
46
- /**
22
+ */var _={FIXED_CLASS:"mdc-top-app-bar--fixed",FIXED_SCROLLED_CLASS:"mdc-top-app-bar--fixed-scrolled",SHORT_CLASS:"mdc-top-app-bar--short",SHORT_COLLAPSED_CLASS:"mdc-top-app-bar--short-collapsed",SHORT_HAS_ACTION_ITEM_CLASS:"mdc-top-app-bar--short-has-action-item"},a={DEBOUNCE_THROTTLE_RESIZE_TIME_MS:100,MAX_TOP_APP_BAR_HEIGHT:128},m={ACTION_ITEM_SELECTOR:".mdc-top-app-bar__action-item",NAVIGATION_EVENT:"MDCTopAppBar:nav",NAVIGATION_ICON_SELECTOR:".mdc-top-app-bar__navigation-icon",ROOT_SELECTOR:".mdc-top-app-bar",TITLE_SELECTOR:".mdc-top-app-bar__title"};/**
47
23
  * @license
48
24
  * Copyright 2016 Google Inc.
49
25
  *
@@ -64,43 +40,7 @@ var v = {
64
40
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
65
41
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
66
42
  * THE SOFTWARE.
67
- */
68
- var y = (
69
- /** @class */
70
- function() {
71
- function r(e) {
72
- e === void 0 && (e = {}), this.adapter = e;
73
- }
74
- return Object.defineProperty(r, "cssClasses", {
75
- get: function() {
76
- return {};
77
- },
78
- enumerable: !1,
79
- configurable: !0
80
- }), Object.defineProperty(r, "strings", {
81
- get: function() {
82
- return {};
83
- },
84
- enumerable: !1,
85
- configurable: !0
86
- }), Object.defineProperty(r, "numbers", {
87
- get: function() {
88
- return {};
89
- },
90
- enumerable: !1,
91
- configurable: !0
92
- }), Object.defineProperty(r, "defaultAdapter", {
93
- get: function() {
94
- return {};
95
- },
96
- enumerable: !1,
97
- configurable: !0
98
- }), r.prototype.init = function() {
99
- }, r.prototype.destroy = function() {
100
- }, r;
101
- }()
102
- );
103
- /**
43
+ */var S=function(){function r(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(r,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(r,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),r.prototype.init=function(){},r.prototype.destroy=function(){},r}();/**
104
44
  * @license
105
45
  * Copyright 2018 Google Inc.
106
46
  *
@@ -121,70 +61,7 @@ var y = (
121
61
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
122
62
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
123
63
  * THE SOFTWARE.
124
- */
125
- var B = (
126
- /** @class */
127
- function(r) {
128
- f(e, r);
129
- function e(t) {
130
- return r.call(this, u(u({}, e.defaultAdapter), t)) || this;
131
- }
132
- return Object.defineProperty(e, "strings", {
133
- get: function() {
134
- return T;
135
- },
136
- enumerable: !1,
137
- configurable: !0
138
- }), Object.defineProperty(e, "cssClasses", {
139
- get: function() {
140
- return v;
141
- },
142
- enumerable: !1,
143
- configurable: !0
144
- }), Object.defineProperty(e, "numbers", {
145
- get: function() {
146
- return a;
147
- },
148
- enumerable: !1,
149
- configurable: !0
150
- }), Object.defineProperty(e, "defaultAdapter", {
151
- /**
152
- * See {@link MDCTopAppBarAdapter} for typing information on parameters and return types.
153
- */
154
- get: function() {
155
- return {
156
- addClass: function() {
157
- },
158
- removeClass: function() {
159
- },
160
- hasClass: function() {
161
- return !1;
162
- },
163
- setStyle: function() {
164
- },
165
- getTopAppBarHeight: function() {
166
- return 0;
167
- },
168
- notifyNavigationIconClicked: function() {
169
- },
170
- getViewportScrollY: function() {
171
- return 0;
172
- },
173
- getTotalActionItems: function() {
174
- return 0;
175
- }
176
- };
177
- },
178
- enumerable: !1,
179
- configurable: !0
180
- }), e.prototype.handleTargetScroll = function() {
181
- }, e.prototype.handleWindowResize = function() {
182
- }, e.prototype.handleNavigationClick = function() {
183
- this.adapter.notifyNavigationIconClicked();
184
- }, e;
185
- }(y)
186
- );
187
- /**
64
+ */var v=function(r){i.__extends(e,r);function e(t){return r.call(this,i.__assign(i.__assign({},e.defaultAdapter),t))||this}return Object.defineProperty(e,"strings",{get:function(){return m},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return a},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},getTopAppBarHeight:function(){return 0},notifyNavigationIconClicked:function(){},getViewportScrollY:function(){return 0},getTotalActionItems:function(){return 0}}},enumerable:!1,configurable:!0}),e.prototype.handleTargetScroll=function(){},e.prototype.handleWindowResize=function(){},e.prototype.handleNavigationClick=function(){this.adapter.notifyNavigationIconClicked()},e}(S);/**
188
65
  * @license
189
66
  * Copyright 2018 Google Inc.
190
67
  *
@@ -205,176 +82,29 @@ var B = (
205
82
  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
206
83
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
207
84
  * THE SOFTWARE.
208
- */
209
- var n = 0, C = (
210
- /** @class */
211
- function(r) {
212
- f(e, r);
213
- function e(t) {
214
- var s = r.call(this, t) || this;
215
- return s.wasDocked = !0, s.isDockedShowing = !0, s.currentAppBarOffsetTop = 0, s.isCurrentlyBeingResized = !1, s.resizeThrottleId = n, s.resizeDebounceId = n, s.lastScrollPosition = s.adapter.getViewportScrollY(), s.topAppBarHeight = s.adapter.getTopAppBarHeight(), s;
216
- }
217
- return e.prototype.destroy = function() {
218
- r.prototype.destroy.call(this), this.adapter.setStyle("top", "");
219
- }, e.prototype.handleTargetScroll = function() {
220
- var t = Math.max(this.adapter.getViewportScrollY(), 0), s = t - this.lastScrollPosition;
221
- this.lastScrollPosition = t, this.isCurrentlyBeingResized || (this.currentAppBarOffsetTop -= s, this.currentAppBarOffsetTop > 0 ? this.currentAppBarOffsetTop = 0 : Math.abs(this.currentAppBarOffsetTop) > this.topAppBarHeight && (this.currentAppBarOffsetTop = -this.topAppBarHeight), this.moveTopAppBar());
222
- }, e.prototype.handleWindowResize = function() {
223
- var t = this;
224
- this.resizeThrottleId || (this.resizeThrottleId = setTimeout(function() {
225
- t.resizeThrottleId = n, t.throttledResizeHandler();
226
- }, a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)), this.isCurrentlyBeingResized = !0, this.resizeDebounceId && clearTimeout(this.resizeDebounceId), this.resizeDebounceId = setTimeout(function() {
227
- t.handleTargetScroll(), t.isCurrentlyBeingResized = !1, t.resizeDebounceId = n;
228
- }, a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS);
229
- }, e.prototype.checkForUpdate = function() {
230
- var t = -this.topAppBarHeight, s = this.currentAppBarOffsetTop < 0, l = this.currentAppBarOffsetTop > t, d = s && l;
231
- if (d)
232
- this.wasDocked = !1;
233
- else if (this.wasDocked) {
234
- if (this.isDockedShowing !== l)
235
- return this.isDockedShowing = l, !0;
236
- } else
237
- return this.wasDocked = !0, !0;
238
- return d;
239
- }, e.prototype.moveTopAppBar = function() {
240
- if (this.checkForUpdate()) {
241
- var t = this.currentAppBarOffsetTop;
242
- Math.abs(t) >= this.topAppBarHeight && (t = -a.MAX_TOP_APP_BAR_HEIGHT), this.adapter.setStyle("top", t + "px");
243
- }
244
- }, e.prototype.throttledResizeHandler = function() {
245
- var t = this.adapter.getTopAppBarHeight();
246
- this.topAppBarHeight !== t && (this.wasDocked = !1, this.currentAppBarOffsetTop -= this.topAppBarHeight - t, this.topAppBarHeight = t), this.handleTargetScroll();
247
- }, e;
248
- }(B)
249
- );
250
- const O = C;
251
- /**
85
+ */var n=0,b=function(r){i.__extends(e,r);function e(t){var s=r.call(this,t)||this;return s.wasDocked=!0,s.isDockedShowing=!0,s.currentAppBarOffsetTop=0,s.isCurrentlyBeingResized=!1,s.resizeThrottleId=n,s.resizeDebounceId=n,s.lastScrollPosition=s.adapter.getViewportScrollY(),s.topAppBarHeight=s.adapter.getTopAppBarHeight(),s}return e.prototype.destroy=function(){r.prototype.destroy.call(this),this.adapter.setStyle("top","")},e.prototype.handleTargetScroll=function(){var t=Math.max(this.adapter.getViewportScrollY(),0),s=t-this.lastScrollPosition;this.lastScrollPosition=t,this.isCurrentlyBeingResized||(this.currentAppBarOffsetTop-=s,this.currentAppBarOffsetTop>0?this.currentAppBarOffsetTop=0:Math.abs(this.currentAppBarOffsetTop)>this.topAppBarHeight&&(this.currentAppBarOffsetTop=-this.topAppBarHeight),this.moveTopAppBar())},e.prototype.handleWindowResize=function(){var t=this;this.resizeThrottleId||(this.resizeThrottleId=setTimeout(function(){t.resizeThrottleId=n,t.throttledResizeHandler()},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)),this.isCurrentlyBeingResized=!0,this.resizeDebounceId&&clearTimeout(this.resizeDebounceId),this.resizeDebounceId=setTimeout(function(){t.handleTargetScroll(),t.isCurrentlyBeingResized=!1,t.resizeDebounceId=n},a.DEBOUNCE_THROTTLE_RESIZE_TIME_MS)},e.prototype.checkForUpdate=function(){var t=-this.topAppBarHeight,s=this.currentAppBarOffsetTop<0,c=this.currentAppBarOffsetTop>t,h=s&&c;if(h)this.wasDocked=!1;else if(this.wasDocked){if(this.isDockedShowing!==c)return this.isDockedShowing=c,!0}else return this.wasDocked=!0,!0;return h},e.prototype.moveTopAppBar=function(){if(this.checkForUpdate()){var t=this.currentAppBarOffsetTop;Math.abs(t)>=this.topAppBarHeight&&(t=-a.MAX_TOP_APP_BAR_HEIGHT),this.adapter.setStyle("top",t+"px")}},e.prototype.throttledResizeHandler=function(){var t=this.adapter.getTopAppBarHeight();this.topAppBarHeight!==t&&(this.wasDocked=!1,this.currentAppBarOffsetTop-=this.topAppBarHeight-t,this.topAppBarHeight=t),this.handleTargetScroll()},e}(v);const y=b;/**
252
86
  * @license
253
87
  * Copyright 2019 Google LLC
254
88
  * SPDX-License-Identifier: Apache-2.0
255
- */
256
- const m = A ? { passive: !0 } : void 0;
257
- class o extends _ {
258
- constructor() {
259
- super(...arguments), this.centerTitle = !1, this.handleTargetScroll = () => {
260
- this.mdcFoundation.handleTargetScroll();
261
- }, this.handleNavigationClick = () => {
262
- this.mdcFoundation.handleNavigationClick();
263
- };
264
- }
265
- get scrollTarget() {
266
- return this._scrollTarget || window;
267
- }
268
- set scrollTarget(e) {
269
- this.unregisterScrollListener();
270
- const t = this.scrollTarget;
271
- this._scrollTarget = e, this.updateRootPosition(), this.requestUpdate("scrollTarget", t), this.registerScrollListener();
272
- }
273
- updateRootPosition() {
274
- if (this.mdcRoot) {
275
- const e = this.scrollTarget === window;
276
- this.mdcRoot.style.position = e ? "" : "absolute";
277
- }
278
- }
279
- render() {
280
- let e = c`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;
281
- return this.centerTitle && (e = c`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${e}</section>`), c`
282
- <header class="mdc-top-app-bar ${h(this.barClasses())}">
89
+ */const d=g.supportsPassiveEventListener?{passive:!0}:void 0;class o extends A.BaseElement{constructor(){super(...arguments),this.centerTitle=!1,this.handleTargetScroll=()=>{this.mdcFoundation.handleTargetScroll()},this.handleNavigationClick=()=>{this.mdcFoundation.handleNavigationClick()}}get scrollTarget(){return this._scrollTarget||window}set scrollTarget(e){this.unregisterScrollListener();const t=this.scrollTarget;this._scrollTarget=e,this.updateRootPosition(),this.requestUpdate("scrollTarget",t),this.registerScrollListener()}updateRootPosition(){if(this.mdcRoot){const e=this.scrollTarget===window;this.mdcRoot.style.position=e?"":"absolute"}}render(){let e=l.y`<span class="mdc-top-app-bar__title"><slot name="title"></slot></span>`;return this.centerTitle&&(e=l.y`<section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-center">${e}</section>`),l.y`
90
+ <header class="mdc-top-app-bar ${f.o(this.barClasses())}">
283
91
  <div class="mdc-top-app-bar__row">
284
92
  <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-start" id="navigation">
285
93
  <slot name="navigationIcon"
286
94
  @click=${this.handleNavigationClick}></slot>
287
- ${this.centerTitle ? null : e}
95
+ ${this.centerTitle?null:e}
288
96
  </section>
289
- ${this.centerTitle ? e : null}
97
+ ${this.centerTitle?e:null}
290
98
  <section class="mdc-top-app-bar__section mdc-top-app-bar__section--align-end" id="actions" role="toolbar">
291
99
  <slot name="actionItems"></slot>
292
100
  </section>
293
101
  </div>
294
102
  </header>
295
- <div class="${h(this.contentClasses())}">
103
+ <div class="${f.o(this.contentClasses())}">
296
104
  <slot></slot>
297
105
  </div>
298
- `;
299
- }
300
- createAdapter() {
301
- return Object.assign(Object.assign({}, S(this.mdcRoot)), { setStyle: (e, t) => this.mdcRoot.style.setProperty(e, t), getTopAppBarHeight: () => this.mdcRoot.clientHeight, notifyNavigationIconClicked: () => {
302
- this.dispatchEvent(new Event(T.NAVIGATION_EVENT, { bubbles: !0, cancelable: !0 }));
303
- }, getViewportScrollY: () => this.scrollTarget instanceof Window ? this.scrollTarget.pageYOffset : this.scrollTarget.scrollTop, getTotalActionItems: () => this._actionItemsSlot.assignedNodes({ flatten: !0 }).length });
304
- }
305
- registerListeners() {
306
- this.registerScrollListener();
307
- }
308
- unregisterListeners() {
309
- this.unregisterScrollListener();
310
- }
311
- registerScrollListener() {
312
- this.scrollTarget.addEventListener("scroll", this.handleTargetScroll, m);
313
- }
314
- unregisterScrollListener() {
315
- this.scrollTarget.removeEventListener("scroll", this.handleTargetScroll);
316
- }
317
- firstUpdated() {
318
- super.firstUpdated(), this.updateRootPosition(), this.registerListeners();
319
- }
320
- disconnectedCallback() {
321
- super.disconnectedCallback(), this.unregisterListeners();
322
- }
323
- }
324
- i([
325
- g(".mdc-top-app-bar")
326
- ], o.prototype, "mdcRoot", void 0);
327
- i([
328
- g('slot[name="actionItems"]')
329
- ], o.prototype, "_actionItemsSlot", void 0);
330
- i([
331
- p({ type: Boolean })
332
- ], o.prototype, "centerTitle", void 0);
333
- i([
334
- p({ type: Object })
335
- ], o.prototype, "scrollTarget", null);
336
- /**
106
+ `}createAdapter(){return Object.assign(Object.assign({},g.addHasRemoveClass(this.mdcRoot)),{setStyle:(e,t)=>this.mdcRoot.style.setProperty(e,t),getTopAppBarHeight:()=>this.mdcRoot.clientHeight,notifyNavigationIconClicked:()=>{this.dispatchEvent(new Event(m.NAVIGATION_EVENT,{bubbles:!0,cancelable:!0}))},getViewportScrollY:()=>this.scrollTarget instanceof Window?this.scrollTarget.pageYOffset:this.scrollTarget.scrollTop,getTotalActionItems:()=>this._actionItemsSlot.assignedNodes({flatten:!0}).length})}registerListeners(){this.registerScrollListener()}unregisterListeners(){this.unregisterScrollListener()}registerScrollListener(){this.scrollTarget.addEventListener("scroll",this.handleTargetScroll,d)}unregisterScrollListener(){this.scrollTarget.removeEventListener("scroll",this.handleTargetScroll)}firstUpdated(){super.firstUpdated(),this.updateRootPosition(),this.registerListeners()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterListeners()}}i.__decorate([T.i(".mdc-top-app-bar")],o.prototype,"mdcRoot",void 0);i.__decorate([T.i('slot[name="actionItems"]')],o.prototype,"_actionItemsSlot",void 0);i.__decorate([p.e({type:Boolean})],o.prototype,"centerTitle",void 0);i.__decorate([p.e({type:Object})],o.prototype,"scrollTarget",null);/**
337
107
  * @license
338
108
  * Copyright 2018 Google LLC
339
109
  * SPDX-License-Identifier: Apache-2.0
340
- */
341
- class b extends o {
342
- constructor() {
343
- super(...arguments), this.mdcFoundationClass = O, this.prominent = !1, this.dense = !1, this.handleResize = () => {
344
- this.mdcFoundation.handleWindowResize();
345
- };
346
- }
347
- barClasses() {
348
- return {
349
- "mdc-top-app-bar--dense": this.dense,
350
- "mdc-top-app-bar--prominent": this.prominent,
351
- "center-title": this.centerTitle
352
- };
353
- }
354
- contentClasses() {
355
- return {
356
- "mdc-top-app-bar--fixed-adjust": !this.dense && !this.prominent,
357
- "mdc-top-app-bar--dense-fixed-adjust": this.dense && !this.prominent,
358
- "mdc-top-app-bar--prominent-fixed-adjust": !this.dense && this.prominent,
359
- "mdc-top-app-bar--dense-prominent-fixed-adjust": this.dense && this.prominent
360
- };
361
- }
362
- registerListeners() {
363
- super.registerListeners(), window.addEventListener("resize", this.handleResize, m);
364
- }
365
- unregisterListeners() {
366
- super.unregisterListeners(), window.removeEventListener("resize", this.handleResize);
367
- }
368
- }
369
- i([
370
- p({ type: Boolean, reflect: !0 })
371
- ], b.prototype, "prominent", void 0);
372
- i([
373
- p({ type: Boolean, reflect: !0 })
374
- ], b.prototype, "dense", void 0);
375
- export {
376
- C as M,
377
- b as T,
378
- v as c,
379
- m as p
380
- };
110
+ */class u extends o{constructor(){super(...arguments),this.mdcFoundationClass=y,this.prominent=!1,this.dense=!1,this.handleResize=()=>{this.mdcFoundation.handleWindowResize()}}barClasses(){return{"mdc-top-app-bar--dense":this.dense,"mdc-top-app-bar--prominent":this.prominent,"center-title":this.centerTitle}}contentClasses(){return{"mdc-top-app-bar--fixed-adjust":!this.dense&&!this.prominent,"mdc-top-app-bar--dense-fixed-adjust":this.dense&&!this.prominent,"mdc-top-app-bar--prominent-fixed-adjust":!this.dense&&this.prominent,"mdc-top-app-bar--dense-prominent-fixed-adjust":this.dense&&this.prominent}}registerListeners(){super.registerListeners(),window.addEventListener("resize",this.handleResize,d)}unregisterListeners(){super.unregisterListeners(),window.removeEventListener("resize",this.handleResize)}}i.__decorate([p.e({type:Boolean,reflect:!0})],u.prototype,"prominent",void 0);i.__decorate([p.e({type:Boolean,reflect:!0})],u.prototype,"dense",void 0);exports.MDCTopAppBarFoundation=b;exports.TopAppBarBase=u;exports.cssClasses=_;exports.passiveEventOptionsIfSupported=d;
@@ -0,0 +1,10 @@
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./query-assigned-elements.mjs"),c=require("./property.mjs"),m=require("./list-item.mjs"),l=require("./mwc-list-item.css.mjs");require("./mwc-list-item-base.mjs");require("./tslib.es6.mjs");require("./ripple-handlers.mjs");require("./base-element.mjs");require("./utils.mjs");require("./state.mjs");require("./query.mjs");require("./class-map.mjs");require("./style-map.mjs");require("./observer.mjs");const d=`:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height)}:host([navopen]){border-radius:0 28px 28px 0;transition:border-radius .1s ease-out;margin-right:16px}:host([graphic=avatar]:not([navopen])){border-radius:100%;margin:0 auto 8px;padding:0;width:48px;height:48px}:host([graphic=avatar]:not([navopen])) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host(.home-item) ::slotted(.teradata-no-circle){--mdc-list-item-graphic-size: 40px;--mdc-icon-size: 40px;display:none}:host(.home-item) ::slotted(.home-icon){display:none}:host(.home-item) ::slotted(.home-icon):hover .covalent-icon{display:none}:host(.home-item:hover) ::slotted(.home-icon){display:block}:host(.home-item:hover) ::slotted(.teradata-circle){display:none}:host(.home-item:hover) ::slotted(.teradata-no-circle){display:none}:host(.home-item:not([navopen])){background-color:#f3753f;--mdc-ripple-color: #ffffff;--mdc-theme-text-icon-on-background: #ffffff}:host(.home-item:not([navopen])) ::slotted(.teradata-circle){display:none}:host(.home-item:not([navopen])) ::slotted(.teradata-no-circle){display:block}:host(.home-item:hover:not([navopen])) ::slotted(.teradata-no-circle){display:none}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item:not([navopen])){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0;justify-content:center;align-content:center}
2
+ `;var h=Object.defineProperty,v=Object.getOwnPropertyDescriptor,p=(a,o,r,i)=>{for(var t=i>1?void 0:i?v(o,r):o,n=a.length-1,s;n>=0;n--)(s=a[n])&&(t=(i?s(o,r,t):s(t))||t);return i&&t&&h(o,r,t),t};exports.CovalentNavRailListItem=class extends m.CovalentListItem{constructor(){super(),this.navOpen=!1}};exports.CovalentNavRailListItem.styles=[e.i`
3
+ ${e.r(l.styles)}
4
+ `,e.i`
5
+ ${e.r(l.styles$1)}
6
+ `,e.i`
7
+ ${e.r(m.styles)}
8
+ `,e.i`
9
+ ${e.r(d)}
10
+ `];p([c.e({type:Boolean,reflect:!0})],exports.CovalentNavRailListItem.prototype,"navOpen",2);exports.CovalentNavRailListItem=p([e.e("cv-nav-list-item")],exports.CovalentNavRailListItem);const y=exports.CovalentNavRailListItem;exports.default=y;
package/nav-list-item.mjs CHANGED
@@ -1,7 +1,7 @@
1
- import { i, r as a, e as h } from "./query-assigned-elements.mjs";
2
- import { e as d } from "./property.mjs";
3
- import { C as l, s as y } from "./list-item.mjs";
4
- import { s as f, a as g } from "./mwc-list-item.css.mjs";
1
+ import { i as a, r, e as h } from "./query-assigned-elements.mjs";
2
+ import { e as l } from "./property.mjs";
3
+ import { C as d, s as y } from "./list-item2.mjs";
4
+ import { s as f, a as v } from "./mwc-list-item.css.mjs";
5
5
  import "./mwc-list-item-base.mjs";
6
6
  import "./tslib.es6.mjs";
7
7
  import "./ripple-handlers.mjs";
@@ -12,38 +12,40 @@ import "./query.mjs";
12
12
  import "./class-map.mjs";
13
13
  import "./style-map.mjs";
14
14
  import "./observer.mjs";
15
- const v = `:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height)}:host([navopen]){border-radius:0 28px 28px 0;transition:border-radius .1s ease-out;margin-right:16px}:host([graphic=avatar]:not([navopen])){border-radius:100%;margin:0 auto 8px;padding:0;width:48px;height:48px}:host([graphic=avatar]:not([navopen])) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host(.home-item) ::slotted(.teradata-no-circle){--mdc-list-item-graphic-size: 40px;--mdc-icon-size: 40px;display:none}:host(.home-item) ::slotted(.home-icon){display:none}:host(.home-item) ::slotted(.home-icon):hover .covalent-icon{display:none}:host(.home-item:hover) ::slotted(.home-icon){display:block}:host(.home-item:hover) ::slotted(.teradata-circle){display:none}:host(.home-item:hover) ::slotted(.teradata-no-circle){display:none}:host(.home-item:not([navopen])){background-color:#f3753f;--mdc-ripple-color: #ffffff;--mdc-theme-text-icon-on-background: #ffffff}:host(.home-item:not([navopen])) ::slotted(.teradata-circle){display:none}:host(.home-item:not([navopen])) ::slotted(.teradata-no-circle){display:block}:host(.home-item:hover:not([navopen])) ::slotted(.teradata-no-circle){display:none}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item:not([navopen])){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0;justify-content:center;align-content:center}
15
+ const g = `:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body1-font-size);font-weight:var(--mdc-typography-body1-font-weight);line-height:var(--mdc-typography-body1-line-height)}:host([navopen]){border-radius:0 28px 28px 0;transition:border-radius .1s ease-out;margin-right:16px}:host([graphic=avatar]:not([navopen])){border-radius:100%;margin:0 auto 8px;padding:0;width:48px;height:48px}:host([graphic=avatar]:not([navopen])) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host(.home-item) ::slotted(.teradata-no-circle){--mdc-list-item-graphic-size: 40px;--mdc-icon-size: 40px;display:none}:host(.home-item) ::slotted(.home-icon){display:none}:host(.home-item) ::slotted(.home-icon):hover .covalent-icon{display:none}:host(.home-item:hover) ::slotted(.home-icon){display:block}:host(.home-item:hover) ::slotted(.teradata-circle){display:none}:host(.home-item:hover) ::slotted(.teradata-no-circle){display:none}:host(.home-item:not([navopen])){background-color:#f3753f;--mdc-ripple-color: #ffffff;--mdc-theme-text-icon-on-background: #ffffff}:host(.home-item:not([navopen])) ::slotted(.teradata-circle){display:none}:host(.home-item:not([navopen])) ::slotted(.teradata-no-circle){display:block}:host(.home-item:hover:not([navopen])) ::slotted(.teradata-no-circle){display:none}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item:not([navopen])){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0;justify-content:center;align-content:center}
16
16
  `;
17
- var b = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (m, o, n, e) => {
18
- for (var t = e > 1 ? void 0 : e ? u(o, n) : o, s = m.length - 1, p; s >= 0; s--)
19
- (p = m[s]) && (t = (e ? p(o, n, t) : p(t)) || t);
20
- return e && t && b(o, n, t), t;
17
+ var b = Object.defineProperty, u = Object.getOwnPropertyDescriptor, c = (m, e, n, i) => {
18
+ for (var t = i > 1 ? void 0 : i ? u(e, n) : e, s = m.length - 1, p; s >= 0; s--)
19
+ (p = m[s]) && (t = (i ? p(e, n, t) : p(t)) || t);
20
+ return i && t && b(e, n, t), t;
21
21
  };
22
- let r = class extends l {
22
+ let o = class extends d {
23
23
  constructor() {
24
24
  super(), this.navOpen = !1;
25
25
  }
26
26
  };
27
- r.styles = [
28
- i`
29
- ${a(f)}
27
+ o.styles = [
28
+ a`
29
+ ${r(f)}
30
30
  `,
31
- i`
32
- ${a(g)}
31
+ a`
32
+ ${r(v)}
33
33
  `,
34
- i`
35
- ${a(y)}
34
+ a`
35
+ ${r(y)}
36
36
  `,
37
- i`
38
- ${a(v)}
37
+ a`
38
+ ${r(g)}
39
39
  `
40
40
  ];
41
41
  c([
42
- d({ type: Boolean, reflect: !0 })
43
- ], r.prototype, "navOpen", 2);
44
- r = c([
42
+ l({ type: Boolean, reflect: !0 })
43
+ ], o.prototype, "navOpen", 2);
44
+ o = c([
45
45
  h("cv-nav-list-item")
46
- ], r);
46
+ ], o);
47
+ const B = o;
47
48
  export {
48
- r as CovalentNavRailListItem
49
+ o as CovalentNavRailListItem,
50
+ B as default
49
51
  };
package/observer.mjs CHANGED
@@ -1,32 +1,5 @@
1
- /**
1
+ "use strict";/**
2
2
  * @license
3
3
  * Copyright 2018 Google LLC
4
4
  * SPDX-License-Identifier: Apache-2.0
5
- */
6
- const v = (n) => (
7
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
8
- (s, b) => {
9
- if (s.constructor._observers) {
10
- if (!s.constructor.hasOwnProperty("_observers")) {
11
- const r = s.constructor._observers;
12
- s.constructor._observers = /* @__PURE__ */ new Map(), r.forEach(
13
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
14
- (e, c) => s.constructor._observers.set(c, e)
15
- );
16
- }
17
- } else {
18
- s.constructor._observers = /* @__PURE__ */ new Map();
19
- const r = s.updated;
20
- s.updated = function(e) {
21
- r.call(this, e), e.forEach((c, t) => {
22
- const o = this.constructor._observers.get(t);
23
- o !== void 0 && o.call(this, this[t], c);
24
- });
25
- };
26
- }
27
- s.constructor._observers.set(b, n);
28
- }
29
- );
30
- export {
31
- v as o
32
- };
5
+ */const u=n=>(s,b)=>{if(s.constructor._observers){if(!s.constructor.hasOwnProperty("_observers")){const r=s.constructor._observers;s.constructor._observers=new Map,r.forEach((e,t)=>s.constructor._observers.set(t,e))}}else{s.constructor._observers=new Map;const r=s.updated;s.updated=function(e){r.call(this,e),e.forEach((t,c)=>{const o=this.constructor._observers.get(c);o!==void 0&&o.call(this,this[c],t)})}}s.constructor._observers.set(b,n)};exports.observer=u;