@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.
- package/action-ribbon/action-ribbon-base.d.ts.map +1 -0
- package/{src/action-ribbon → action-ribbon}/action-ribbon.d.ts +1 -0
- package/action-ribbon/action-ribbon.d.ts.map +1 -0
- package/action-ribbon.js +18 -0
- package/action-ribbon.mjs +13 -11
- package/alert/alert-base.d.ts.map +1 -0
- package/{src/alert → alert}/alert.d.ts +1 -0
- package/alert/alert.d.ts.map +1 -0
- package/alert.js +21 -0
- package/alert.mjs +14 -12
- package/{src/app-shell → app-shell}/app-shell.d.ts +1 -0
- package/app-shell/app-shell.d.ts.map +1 -0
- package/app-shell.js +41 -0
- package/app-shell.mjs +19 -17
- package/aria-property.mjs +2 -38
- package/base-element.mjs +2 -25
- package/{src/button → button}/button.d.ts +3 -2
- package/button/button.d.ts.map +1 -0
- package/button.js +44 -0
- package/button.mjs +11 -9
- package/card/card-base.d.ts.map +1 -0
- package/{src/card → card}/card.d.ts +3 -2
- package/card/card.d.ts.map +1 -0
- package/card.js +19 -0
- package/card.mjs +3 -1
- package/check-list-item.js +27 -0
- package/check-list-item.mjs +17 -15
- package/{src/checkbox → checkbox}/checkbox.d.ts +3 -2
- package/checkbox/checkbox.d.ts.map +1 -0
- package/checkbox.js +2 -0
- package/checkbox.mjs +15 -13
- package/chips/chip-base.d.ts.map +1 -0
- package/chips/chip-set-base.d.ts.map +1 -0
- package/{src/chips → chips}/chip-set.d.ts +1 -0
- package/chips/chip-set.d.ts.map +1 -0
- package/{src/chips → chips}/chip.d.ts +1 -0
- package/chips/chip.d.ts.map +1 -0
- package/chips/foundation.d.ts.map +1 -0
- package/circular-progress/circular-progress.d.ts +11 -0
- package/circular-progress/circular-progress.d.ts.map +1 -0
- package/circular-progress.js +65 -0
- package/circular-progress.mjs +11 -9
- package/class-map.mjs +3 -56
- package/{src/code-snippet → code-snippet}/code-snippet.d.ts +3 -2
- package/code-snippet/code-snippet.d.ts.map +1 -0
- package/code-snippet.js +13 -0
- package/code-snippet.mjs +36 -34
- package/{src/dialog → dialog}/dialog.d.ts +3 -2
- package/dialog/dialog.d.ts.map +1 -0
- package/dialog.js +1 -0
- package/dialog.mjs +15 -608
- package/dialog2.mjs +750 -0
- package/directive-helpers.mjs +2 -8
- package/{src/drawer → drawer}/drawer.d.ts +3 -2
- package/drawer/drawer.d.ts.map +1 -0
- package/drawer.js +6 -0
- package/drawer.mjs +11 -9
- package/{src/empty-state → empty-state}/empty-state.d.ts +3 -2
- package/empty-state/empty-state.d.ts.map +1 -0
- package/empty-state.js +27 -0
- package/empty-state.mjs +17 -15
- package/event-options.mjs +2 -11
- package/form-element.mjs +2 -47
- package/{src/formfield → formfield}/formfield.d.ts +3 -2
- package/formfield/formfield.d.ts.map +1 -0
- package/foundation.mjs +3 -112
- package/foundation2.mjs +2 -40
- package/{src/icon → icon}/icon.d.ts +1 -0
- package/icon/icon.d.ts.map +1 -0
- package/{src/icon-button → icon-button}/icon-button.d.ts +3 -2
- package/icon-button/icon-button.d.ts.map +1 -0
- package/icon-button.js +32 -0
- package/icon-button.mjs +23 -21
- package/icon-check-toggle.js +15 -0
- package/icon-check-toggle.mjs +5 -5
- package/{src/icon-checkbox → icon-checkbox}/icon-check-toggle.d.ts +3 -2
- package/icon-checkbox/icon-check-toggle.d.ts.map +1 -0
- package/{src/icon-radio → icon-radio}/icon-radio-toggle.d.ts +3 -2
- package/icon-radio/icon-radio-toggle.d.ts.map +1 -0
- package/icon-radio-toggle.js +14 -0
- package/icon-radio-toggle.mjs +19 -19
- package/icon.js +5 -0
- package/icon.mjs +11 -9
- package/if-defined.mjs +2 -7
- package/index.d.ts +46 -0
- package/index.d.ts.map +1 -0
- package/index.js +1 -0
- package/index.mjs +126 -0
- package/inert.esm.mjs +3 -615
- package/linear-progress/linear-progress.d.ts +11 -0
- package/linear-progress/linear-progress.d.ts.map +1 -0
- package/linear-progress.js +36 -0
- package/linear-progress.mjs +21 -19
- package/list/check-list-item.d.ts +11 -0
- package/list/check-list-item.d.ts.map +1 -0
- package/{src/list → list}/list-expansion.d.ts +5 -4
- package/list/list-expansion.d.ts.map +1 -0
- package/{src/list → list}/list-item.d.ts +3 -2
- package/list/list-item.d.ts.map +1 -0
- package/{src/list → list}/list.d.ts +3 -2
- package/list/list.d.ts.map +1 -0
- package/{src/list → list}/nav-list-item.d.ts +3 -2
- package/list/nav-list-item.d.ts.map +1 -0
- package/list/radio-list-item.d.ts +11 -0
- package/list/radio-list-item.d.ts.map +1 -0
- package/list-expansion.js +9 -0
- package/list-expansion.mjs +20 -18
- package/list-item.js +1 -0
- package/list-item.mjs +8 -48
- package/list-item2.mjs +43 -0
- package/list.js +1 -0
- package/list.mjs +2 -27
- package/list2.mjs +25 -0
- package/{src/menu → menu}/menu.d.ts +3 -2
- package/menu/menu.d.ts.map +1 -0
- package/menu.js +5 -0
- package/menu.mjs +11 -9
- package/mwc-checkbox-base.mjs +11 -168
- package/mwc-checkbox.css.mjs +2 -7
- package/mwc-drawer-base.mjs +12 -242
- package/mwc-icon.mjs +3 -20
- package/mwc-line-ripple-directive.mjs +16 -452
- package/mwc-list-base.mjs +26 -755
- package/mwc-list-item-base.mjs +9 -183
- package/mwc-list-item.css.mjs +3 -11
- package/mwc-menu-base.mjs +21 -976
- package/mwc-radio-base.mjs +11 -438
- package/mwc-radio.css.mjs +2 -7
- package/mwc-slider.css.mjs +23 -794
- package/mwc-tab-base.mjs +25 -503
- package/mwc-top-app-bar-base.mjs +12 -282
- package/nav-list-item.js +10 -0
- package/nav-list-item.mjs +26 -24
- package/observer.mjs +2 -29
- package/package.json +226 -6
- package/property.mjs +2 -17
- package/query-assigned-elements.mjs +9 -591
- package/query-assigned-nodes.mjs +2 -14
- package/query.mjs +2 -22
- package/{src/radio → radio}/radio.d.ts +3 -2
- package/radio/radio.d.ts.map +1 -0
- package/radio-list-item.js +27 -0
- package/radio-list-item.mjs +17 -15
- package/radio.js +2 -0
- package/radio.mjs +12 -10
- package/ripple-handlers.mjs +12 -666
- package/{src/select → select}/select.d.ts +3 -2
- package/select/select.d.ts.map +1 -0
- package/select.js +272 -0
- package/select.mjs +124 -122
- package/{src/side-sheet → side-sheet}/side-sheet.d.ts +2 -2
- package/side-sheet/side-sheet.d.ts.map +1 -0
- package/side-sheet.js +4 -0
- package/side-sheet.mjs +3 -3
- package/slider/slider-range.d.ts +11 -0
- package/slider/slider-range.d.ts.map +1 -0
- package/{src/slider → slider}/slider.d.ts +3 -2
- package/slider/slider.d.ts.map +1 -0
- package/slider-range.js +64 -0
- package/slider-range.mjs +23 -21
- package/slider.js +14 -0
- package/slider.mjs +16 -14
- package/{src/snackbar → snackbar}/snackbar.d.ts +3 -2
- package/snackbar/snackbar.d.ts.map +1 -0
- package/snackbar.js +93 -0
- package/snackbar.mjs +12 -10
- package/state.mjs +2 -9
- package/status-header/status-header-base.d.ts.map +1 -0
- package/{src/status-header → status-header}/status-header-item.d.ts +1 -0
- package/status-header/status-header-item.d.ts.map +1 -0
- package/{src/status-header → status-header}/status-header.d.ts +1 -0
- package/status-header/status-header.d.ts.map +1 -0
- package/status-header-item.js +4 -0
- package/status-header-item.mjs +17 -15
- package/status-header.js +24 -0
- package/status-header.mjs +17 -15
- package/style-map.mjs +2 -37
- package/{src/switch → switch}/switch.d.ts +3 -2
- package/switch/switch.d.ts.map +1 -0
- package/switch.js +174 -0
- package/switch.mjs +10 -8
- package/{src/tab → tab}/tab-bar.d.ts +3 -2
- package/tab/tab-bar.d.ts.map +1 -0
- package/{src/tab → tab}/tab.d.ts +3 -2
- package/tab/tab.d.ts.map +1 -0
- package/tab-bar.js +278 -0
- package/tab-bar.mjs +23 -21
- package/tab.js +6 -0
- package/tab.mjs +11 -9
- package/{src/text-lockup → text-lockup}/text-lockup.d.ts +1 -0
- package/text-lockup/text-lockup.d.ts.map +1 -0
- package/text-lockup.js +7 -0
- package/text-lockup.mjs +11 -9
- package/{src/textarea → textarea}/textarea.d.ts +3 -2
- package/textarea/textarea.d.ts.map +1 -0
- package/textarea.js +40 -0
- package/textarea.mjs +14 -12
- package/{src/textfield → textfield}/textfield.d.ts +3 -2
- package/textfield/textfield.d.ts.map +1 -0
- package/textfield.js +7 -0
- package/textfield.mjs +132 -39
- package/textfield2.mjs +1 -1
- package/{src/toolbar → toolbar}/toolbar.d.ts +3 -2
- package/toolbar/toolbar.d.ts.map +1 -0
- package/toolbar.js +4 -0
- package/toolbar.mjs +11 -9
- package/{src/tooltip → tooltip}/tooltip.d.ts +3 -2
- package/tooltip/tooltip.d.ts.map +1 -0
- package/tooltip.js +126 -0
- package/tooltip.mjs +66 -64
- package/top-app-bar/top-app-bar-fixed.d.ts +11 -0
- package/top-app-bar/top-app-bar-fixed.d.ts.map +1 -0
- package/{src/top-app-bar → top-app-bar}/top-app-bar.d.ts +3 -2
- package/top-app-bar/top-app-bar.d.ts.map +1 -0
- package/top-app-bar-fixed.js +28 -0
- package/top-app-bar-fixed.mjs +16 -14
- package/top-app-bar.js +3 -0
- package/top-app-bar.mjs +6 -28
- package/{src/tree-list → tree-list}/tree-list-item.d.ts +1 -0
- package/tree-list/tree-list-item.d.ts.map +1 -0
- package/{src/tree-list → tree-list}/tree-list.d.ts +1 -0
- package/tree-list/tree-list.d.ts.map +1 -0
- package/tree-list-item.js +26 -0
- package/tree-list-item.mjs +7 -5
- package/tree-list.js +10 -0
- package/tree-list.mjs +13 -12
- package/tslib.es6.mjs +1 -82
- package/{src/typography → typography}/typography.d.ts +1 -0
- package/typography/typography.d.ts.map +1 -0
- package/typography.js +4 -0
- package/typography.mjs +16 -14
- package/utils.mjs +2 -49
- package/covalent.mjs +0 -44
- package/covalent.umd.js +0 -3501
- package/src/action-ribbon/action-ribbon-base.d.ts.map +0 -1
- package/src/action-ribbon/action-ribbon.d.ts.map +0 -1
- package/src/alert/alert-base.d.ts.map +0 -1
- package/src/alert/alert.d.ts.map +0 -1
- package/src/app-shell/app-shell.d.ts.map +0 -1
- package/src/button/button.d.ts.map +0 -1
- package/src/card/card-base.d.ts.map +0 -1
- package/src/card/card.d.ts.map +0 -1
- package/src/checkbox/checkbox.d.ts.map +0 -1
- package/src/chips/chip-base.d.ts.map +0 -1
- package/src/chips/chip-set-base.d.ts.map +0 -1
- package/src/chips/chip-set.d.ts.map +0 -1
- package/src/chips/chip.d.ts.map +0 -1
- package/src/chips/foundation.d.ts.map +0 -1
- package/src/circular-progress/circular-progress.d.ts +0 -10
- package/src/circular-progress/circular-progress.d.ts.map +0 -1
- package/src/code-snippet/code-snippet.d.ts.map +0 -1
- package/src/dialog/dialog.d.ts.map +0 -1
- package/src/drawer/drawer.d.ts.map +0 -1
- package/src/empty-state/empty-state.d.ts.map +0 -1
- package/src/formfield/formfield.d.ts.map +0 -1
- package/src/icon/icon.d.ts.map +0 -1
- package/src/icon-button/icon-button.d.ts.map +0 -1
- package/src/icon-checkbox/icon-check-toggle.d.ts.map +0 -1
- package/src/icon-radio/icon-radio-toggle.d.ts.map +0 -1
- package/src/index.d.ts +0 -3
- package/src/index.d.ts.map +0 -1
- package/src/linear-progress/linear-progress.d.ts +0 -10
- package/src/linear-progress/linear-progress.d.ts.map +0 -1
- package/src/list/check-list-item.d.ts +0 -10
- package/src/list/check-list-item.d.ts.map +0 -1
- package/src/list/list-expansion.d.ts.map +0 -1
- package/src/list/list-item.d.ts.map +0 -1
- package/src/list/list.d.ts.map +0 -1
- package/src/list/nav-list-item.d.ts.map +0 -1
- package/src/list/radio-list-item.d.ts +0 -10
- package/src/list/radio-list-item.d.ts.map +0 -1
- package/src/menu/menu.d.ts.map +0 -1
- package/src/radio/radio.d.ts.map +0 -1
- package/src/select/select.d.ts.map +0 -1
- package/src/side-sheet/side-sheet.d.ts.map +0 -1
- package/src/slider/slider-range.d.ts +0 -10
- package/src/slider/slider-range.d.ts.map +0 -1
- package/src/slider/slider.d.ts.map +0 -1
- package/src/snackbar/snackbar.d.ts.map +0 -1
- package/src/status-header/status-header-base.d.ts.map +0 -1
- package/src/status-header/status-header-item.d.ts.map +0 -1
- package/src/status-header/status-header.d.ts.map +0 -1
- package/src/switch/switch.d.ts.map +0 -1
- package/src/tab/tab-bar.d.ts.map +0 -1
- package/src/tab/tab.d.ts.map +0 -1
- package/src/text-lockup/text-lockup.d.ts.map +0 -1
- package/src/textarea/textarea.d.ts.map +0 -1
- package/src/textfield/textfield.d.ts.map +0 -1
- package/src/toolbar/toolbar.d.ts.map +0 -1
- package/src/tooltip/tooltip.d.ts.map +0 -1
- package/src/top-app-bar/top-app-bar-fixed.d.ts +0 -10
- package/src/top-app-bar/top-app-bar-fixed.d.ts.map +0 -1
- package/src/top-app-bar/top-app-bar.d.ts.map +0 -1
- package/src/tree-list/tree-list-item.d.ts.map +0 -1
- package/src/tree-list/tree-list.d.ts.map +0 -1
- package/src/typography/typography.d.ts.map +0 -1
- /package/{src/action-ribbon → action-ribbon}/action-ribbon-base.d.ts +0 -0
- /package/{src/alert → alert}/alert-base.d.ts +0 -0
- /package/{src/card → card}/card-base.d.ts +0 -0
- /package/{src/chips → chips}/chip-base.d.ts +0 -0
- /package/{src/chips → chips}/chip-set-base.d.ts +0 -0
- /package/{src/chips → chips}/foundation.d.ts +0 -0
- /package/{src/status-header → status-header}/status-header-base.d.ts +0 -0
package/mwc-top-app-bar-base.mjs
CHANGED
@@ -1,11 +1,4 @@
|
|
1
|
-
|
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
|
-
|
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
|
95
|
+
${this.centerTitle?null:e}
|
288
96
|
</section>
|
289
|
-
${this.centerTitle
|
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="${
|
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;
|
package/nav-list-item.js
ADDED
@@ -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
|
2
|
-
import { e as
|
3
|
-
import { C as
|
4
|
-
import { s as f, a as
|
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
|
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,
|
18
|
-
for (var t =
|
19
|
-
(p = m[s]) && (t = (
|
20
|
-
return
|
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
|
22
|
+
let o = class extends d {
|
23
23
|
constructor() {
|
24
24
|
super(), this.navOpen = !1;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
|
28
|
-
|
29
|
-
${
|
27
|
+
o.styles = [
|
28
|
+
a`
|
29
|
+
${r(f)}
|
30
30
|
`,
|
31
|
-
|
32
|
-
${
|
31
|
+
a`
|
32
|
+
${r(v)}
|
33
33
|
`,
|
34
|
-
|
35
|
-
${
|
34
|
+
a`
|
35
|
+
${r(y)}
|
36
36
|
`,
|
37
|
-
|
38
|
-
${
|
37
|
+
a`
|
38
|
+
${r(g)}
|
39
39
|
`
|
40
40
|
];
|
41
41
|
c([
|
42
|
-
|
43
|
-
],
|
44
|
-
|
42
|
+
l({ type: Boolean, reflect: !0 })
|
43
|
+
], o.prototype, "navOpen", 2);
|
44
|
+
o = c([
|
45
45
|
h("cv-nav-list-item")
|
46
|
-
],
|
46
|
+
], o);
|
47
|
+
const B = o;
|
47
48
|
export {
|
48
|
-
|
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;
|