@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
@@ -1,10 +1,4 @@
|
|
1
|
-
|
2
|
-
import { y as _, i as v, e as E } from "./query-assigned-elements.mjs";
|
3
|
-
import { B as y } from "./base-element.mjs";
|
4
|
-
import { e as h } from "./property.mjs";
|
5
|
-
import { i as f } from "./query.mjs";
|
6
|
-
import { o as L, e as m, i as b, t as l } from "./class-map.mjs";
|
7
|
-
/**
|
1
|
+
"use strict";const o=require("./tslib.es6.mjs"),c=require("./query-assigned-elements.mjs"),m=require("./base-element.mjs"),p=require("./property.mjs"),h=require("./query.mjs"),i=require("./class-map.mjs");/**
|
8
2
|
* @license
|
9
3
|
* Copyright 2016 Google Inc.
|
10
4
|
*
|
@@ -25,43 +19,7 @@ import { o as L, e as m, i as b, t as l } from "./class-map.mjs";
|
|
25
19
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
26
20
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
27
21
|
* THE SOFTWARE.
|
28
|
-
*/
|
29
|
-
var C = (
|
30
|
-
/** @class */
|
31
|
-
function() {
|
32
|
-
function t(e) {
|
33
|
-
e === void 0 && (e = {}), this.adapter = e;
|
34
|
-
}
|
35
|
-
return Object.defineProperty(t, "cssClasses", {
|
36
|
-
get: function() {
|
37
|
-
return {};
|
38
|
-
},
|
39
|
-
enumerable: !1,
|
40
|
-
configurable: !0
|
41
|
-
}), Object.defineProperty(t, "strings", {
|
42
|
-
get: function() {
|
43
|
-
return {};
|
44
|
-
},
|
45
|
-
enumerable: !1,
|
46
|
-
configurable: !0
|
47
|
-
}), Object.defineProperty(t, "numbers", {
|
48
|
-
get: function() {
|
49
|
-
return {};
|
50
|
-
},
|
51
|
-
enumerable: !1,
|
52
|
-
configurable: !0
|
53
|
-
}), Object.defineProperty(t, "defaultAdapter", {
|
54
|
-
get: function() {
|
55
|
-
return {};
|
56
|
-
},
|
57
|
-
enumerable: !1,
|
58
|
-
configurable: !0
|
59
|
-
}), t.prototype.init = function() {
|
60
|
-
}, t.prototype.destroy = function() {
|
61
|
-
}, t;
|
62
|
-
}()
|
63
|
-
);
|
64
|
-
/**
|
22
|
+
*/var b=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
65
23
|
* @license
|
66
24
|
* Copyright 2018 Google Inc.
|
67
25
|
*
|
@@ -82,18 +40,7 @@ var C = (
|
|
82
40
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
83
41
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
84
42
|
* THE SOFTWARE.
|
85
|
-
*/
|
86
|
-
var x = {
|
87
|
-
NOTCH_ELEMENT_SELECTOR: ".mdc-notched-outline__notch"
|
88
|
-
}, p = {
|
89
|
-
// This should stay in sync with $mdc-notched-outline-padding * 2.
|
90
|
-
NOTCH_ELEMENT_PADDING: 8
|
91
|
-
}, A = {
|
92
|
-
NO_LABEL: "mdc-notched-outline--no-label",
|
93
|
-
OUTLINE_NOTCHED: "mdc-notched-outline--notched",
|
94
|
-
OUTLINE_UPGRADED: "mdc-notched-outline--upgraded"
|
95
|
-
};
|
96
|
-
/**
|
43
|
+
*/var g={NOTCH_ELEMENT_SELECTOR:".mdc-notched-outline__notch"},u={NOTCH_ELEMENT_PADDING:8},_={NO_LABEL:"mdc-notched-outline--no-label",OUTLINE_NOTCHED:"mdc-notched-outline--notched",OUTLINE_UPGRADED:"mdc-notched-outline--upgraded"};/**
|
97
44
|
* @license
|
98
45
|
* Copyright 2017 Google Inc.
|
99
46
|
*
|
@@ -114,124 +61,26 @@ var x = {
|
|
114
61
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
115
62
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
116
63
|
* THE SOFTWARE.
|
117
|
-
*/
|
118
|
-
var P = (
|
119
|
-
/** @class */
|
120
|
-
function(t) {
|
121
|
-
u(e, t);
|
122
|
-
function e(n) {
|
123
|
-
return t.call(this, d(d({}, e.defaultAdapter), n)) || this;
|
124
|
-
}
|
125
|
-
return Object.defineProperty(e, "strings", {
|
126
|
-
get: function() {
|
127
|
-
return x;
|
128
|
-
},
|
129
|
-
enumerable: !1,
|
130
|
-
configurable: !0
|
131
|
-
}), Object.defineProperty(e, "cssClasses", {
|
132
|
-
get: function() {
|
133
|
-
return A;
|
134
|
-
},
|
135
|
-
enumerable: !1,
|
136
|
-
configurable: !0
|
137
|
-
}), Object.defineProperty(e, "numbers", {
|
138
|
-
get: function() {
|
139
|
-
return p;
|
140
|
-
},
|
141
|
-
enumerable: !1,
|
142
|
-
configurable: !0
|
143
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
144
|
-
/**
|
145
|
-
* See {@link MDCNotchedOutlineAdapter} for typing information on parameters and return types.
|
146
|
-
*/
|
147
|
-
get: function() {
|
148
|
-
return {
|
149
|
-
addClass: function() {
|
150
|
-
},
|
151
|
-
removeClass: function() {
|
152
|
-
},
|
153
|
-
setNotchWidthProperty: function() {
|
154
|
-
},
|
155
|
-
removeNotchWidthProperty: function() {
|
156
|
-
}
|
157
|
-
};
|
158
|
-
},
|
159
|
-
enumerable: !1,
|
160
|
-
configurable: !0
|
161
|
-
}), e.prototype.notch = function(n) {
|
162
|
-
var o = e.cssClasses.OUTLINE_NOTCHED;
|
163
|
-
n > 0 && (n += p.NOTCH_ELEMENT_PADDING), this.adapter.setNotchWidthProperty(n), this.adapter.addClass(o);
|
164
|
-
}, e.prototype.closeNotch = function() {
|
165
|
-
var n = e.cssClasses.OUTLINE_NOTCHED;
|
166
|
-
this.adapter.removeClass(n), this.adapter.removeNotchWidthProperty();
|
167
|
-
}, e;
|
168
|
-
}(C)
|
169
|
-
);
|
170
|
-
/**
|
64
|
+
*/var E=function(t){o.__extends(e,t);function e(n){return t.call(this,o.__assign(o.__assign({},e.defaultAdapter),n))||this}return Object.defineProperty(e,"strings",{get:function(){return g},enumerable:!1,configurable:!0}),Object.defineProperty(e,"cssClasses",{get:function(){return _},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},setNotchWidthProperty:function(){},removeNotchWidthProperty:function(){}}},enumerable:!1,configurable:!0}),e.prototype.notch=function(n){var r=e.cssClasses.OUTLINE_NOTCHED;n>0&&(n+=u.NOTCH_ELEMENT_PADDING),this.adapter.setNotchWidthProperty(n),this.adapter.addClass(r)},e.prototype.closeNotch=function(){var n=e.cssClasses.OUTLINE_NOTCHED;this.adapter.removeClass(n),this.adapter.removeNotchWidthProperty()},e}(b);/**
|
171
65
|
* @license
|
172
66
|
* Copyright 2019 Google LLC
|
173
67
|
* SPDX-License-Identifier: Apache-2.0
|
174
|
-
*/
|
175
|
-
class s extends y {
|
176
|
-
constructor() {
|
177
|
-
super(...arguments), this.mdcFoundationClass = P, this.width = 0, this.open = !1, this.lastOpen = this.open;
|
178
|
-
}
|
179
|
-
createAdapter() {
|
180
|
-
return {
|
181
|
-
addClass: (e) => this.mdcRoot.classList.add(e),
|
182
|
-
removeClass: (e) => this.mdcRoot.classList.remove(e),
|
183
|
-
setNotchWidthProperty: (e) => this.notchElement.style.setProperty("width", `${e}px`),
|
184
|
-
removeNotchWidthProperty: () => this.notchElement.style.removeProperty("width")
|
185
|
-
};
|
186
|
-
}
|
187
|
-
openOrClose(e, n) {
|
188
|
-
this.mdcFoundation && (e && n !== void 0 ? this.mdcFoundation.notch(n) : this.mdcFoundation.closeNotch());
|
189
|
-
}
|
190
|
-
render() {
|
191
|
-
this.openOrClose(this.open, this.width);
|
192
|
-
const e = L({
|
193
|
-
"mdc-notched-outline--notched": this.open
|
194
|
-
});
|
195
|
-
return _`
|
68
|
+
*/class s extends m.BaseElement{constructor(){super(...arguments),this.mdcFoundationClass=E,this.width=0,this.open=!1,this.lastOpen=this.open}createAdapter(){return{addClass:e=>this.mdcRoot.classList.add(e),removeClass:e=>this.mdcRoot.classList.remove(e),setNotchWidthProperty:e=>this.notchElement.style.setProperty("width",`${e}px`),removeNotchWidthProperty:()=>this.notchElement.style.removeProperty("width")}}openOrClose(e,n){this.mdcFoundation&&(e&&n!==void 0?this.mdcFoundation.notch(n):this.mdcFoundation.closeNotch())}render(){this.openOrClose(this.open,this.width);const e=i.o({"mdc-notched-outline--notched":this.open});return c.y`
|
196
69
|
<span class="mdc-notched-outline ${e}">
|
197
70
|
<span class="mdc-notched-outline__leading"></span>
|
198
71
|
<span class="mdc-notched-outline__notch">
|
199
72
|
<slot></slot>
|
200
73
|
</span>
|
201
74
|
<span class="mdc-notched-outline__trailing"></span>
|
202
|
-
</span
|
203
|
-
}
|
204
|
-
}
|
205
|
-
a([
|
206
|
-
f(".mdc-notched-outline")
|
207
|
-
], s.prototype, "mdcRoot", void 0);
|
208
|
-
a([
|
209
|
-
h({ type: Number })
|
210
|
-
], s.prototype, "width", void 0);
|
211
|
-
a([
|
212
|
-
h({ type: Boolean, reflect: !0 })
|
213
|
-
], s.prototype, "open", void 0);
|
214
|
-
a([
|
215
|
-
f(".mdc-notched-outline__notch")
|
216
|
-
], s.prototype, "notchElement", void 0);
|
217
|
-
/**
|
75
|
+
</span>`}}o.__decorate([h.i(".mdc-notched-outline")],s.prototype,"mdcRoot",void 0);o.__decorate([p.e({type:Number})],s.prototype,"width",void 0);o.__decorate([p.e({type:Boolean,reflect:!0})],s.prototype,"open",void 0);o.__decorate([h.i(".mdc-notched-outline__notch")],s.prototype,"notchElement",void 0);/**
|
218
76
|
* @license
|
219
77
|
* Copyright 2021 Google LLC
|
220
78
|
* SPDX-LIcense-Identifier: Apache-2.0
|
221
|
-
*/
|
222
|
-
const O = v`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`;
|
223
|
-
/**
|
79
|
+
*/const v=c.i`.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(100% / 0.75)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}:host{display:block;position:absolute;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] :host,:host([dir=rtl]){text-align:right}::slotted(.mdc-floating-label){display:inline-block;position:relative;top:17px;bottom:auto;max-width:100%}::slotted(.mdc-floating-label--float-above){text-overflow:clip}.mdc-notched-outline--upgraded ::slotted(.mdc-floating-label--float-above){max-width:calc(100% / 0.75)}.mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__leading,.mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports(top: max(0%)){.mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{border-color:var(--mdc-notched-outline-border-color, var(--mdc-theme-primary, #6200ee));border-width:1px;border-width:var(--mdc-notched-outline-stroke-width, 1px)}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:0;padding-top:var(--mdc-notched-outline-notch-offset, 0)}`;/**
|
224
80
|
* @license
|
225
81
|
* Copyright 2019 Google LLC
|
226
82
|
* SPDX-License-Identifier: Apache-2.0
|
227
|
-
*/
|
228
|
-
let c = class extends s {
|
229
|
-
};
|
230
|
-
c.styles = [O];
|
231
|
-
c = a([
|
232
|
-
E("mwc-notched-outline")
|
233
|
-
], c);
|
234
|
-
/**
|
83
|
+
*/let l=class extends s{};l.styles=[v];l=o.__decorate([c.e("mwc-notched-outline")],l);/**
|
235
84
|
* @license
|
236
85
|
* Copyright 2016 Google Inc.
|
237
86
|
*
|
@@ -252,43 +101,7 @@ c = a([
|
|
252
101
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
253
102
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
254
103
|
* THE SOFTWARE.
|
255
|
-
*/
|
256
|
-
var N = (
|
257
|
-
/** @class */
|
258
|
-
function() {
|
259
|
-
function t(e) {
|
260
|
-
e === void 0 && (e = {}), this.adapter = e;
|
261
|
-
}
|
262
|
-
return Object.defineProperty(t, "cssClasses", {
|
263
|
-
get: function() {
|
264
|
-
return {};
|
265
|
-
},
|
266
|
-
enumerable: !1,
|
267
|
-
configurable: !0
|
268
|
-
}), Object.defineProperty(t, "strings", {
|
269
|
-
get: function() {
|
270
|
-
return {};
|
271
|
-
},
|
272
|
-
enumerable: !1,
|
273
|
-
configurable: !0
|
274
|
-
}), Object.defineProperty(t, "numbers", {
|
275
|
-
get: function() {
|
276
|
-
return {};
|
277
|
-
},
|
278
|
-
enumerable: !1,
|
279
|
-
configurable: !0
|
280
|
-
}), Object.defineProperty(t, "defaultAdapter", {
|
281
|
-
get: function() {
|
282
|
-
return {};
|
283
|
-
},
|
284
|
-
enumerable: !1,
|
285
|
-
configurable: !0
|
286
|
-
}), t.prototype.init = function() {
|
287
|
-
}, t.prototype.destroy = function() {
|
288
|
-
}, t;
|
289
|
-
}()
|
290
|
-
);
|
291
|
-
/**
|
104
|
+
*/var y=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
292
105
|
* @license
|
293
106
|
* Copyright 2016 Google Inc.
|
294
107
|
*
|
@@ -309,14 +122,7 @@ var N = (
|
|
309
122
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
310
123
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
311
124
|
* THE SOFTWARE.
|
312
|
-
*/
|
313
|
-
var I = {
|
314
|
-
LABEL_FLOAT_ABOVE: "mdc-floating-label--float-above",
|
315
|
-
LABEL_REQUIRED: "mdc-floating-label--required",
|
316
|
-
LABEL_SHAKE: "mdc-floating-label--shake",
|
317
|
-
ROOT: "mdc-floating-label"
|
318
|
-
};
|
319
|
-
/**
|
125
|
+
*/var L={LABEL_FLOAT_ABOVE:"mdc-floating-label--float-above",LABEL_REQUIRED:"mdc-floating-label--required",LABEL_SHAKE:"mdc-floating-label--shake",ROOT:"mdc-floating-label"};/**
|
320
126
|
* @license
|
321
127
|
* Copyright 2016 Google Inc.
|
322
128
|
*
|
@@ -337,111 +143,11 @@ var I = {
|
|
337
143
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
338
144
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
339
145
|
* THE SOFTWARE.
|
340
|
-
*/
|
341
|
-
var T = (
|
342
|
-
/** @class */
|
343
|
-
function(t) {
|
344
|
-
u(e, t);
|
345
|
-
function e(n) {
|
346
|
-
var o = t.call(this, d(d({}, e.defaultAdapter), n)) || this;
|
347
|
-
return o.shakeAnimationEndHandler = function() {
|
348
|
-
o.handleShakeAnimationEnd();
|
349
|
-
}, o;
|
350
|
-
}
|
351
|
-
return Object.defineProperty(e, "cssClasses", {
|
352
|
-
get: function() {
|
353
|
-
return I;
|
354
|
-
},
|
355
|
-
enumerable: !1,
|
356
|
-
configurable: !0
|
357
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
358
|
-
/**
|
359
|
-
* See {@link MDCFloatingLabelAdapter} for typing information on parameters and return types.
|
360
|
-
*/
|
361
|
-
get: function() {
|
362
|
-
return {
|
363
|
-
addClass: function() {
|
364
|
-
},
|
365
|
-
removeClass: function() {
|
366
|
-
},
|
367
|
-
getWidth: function() {
|
368
|
-
return 0;
|
369
|
-
},
|
370
|
-
registerInteractionHandler: function() {
|
371
|
-
},
|
372
|
-
deregisterInteractionHandler: function() {
|
373
|
-
}
|
374
|
-
};
|
375
|
-
},
|
376
|
-
enumerable: !1,
|
377
|
-
configurable: !0
|
378
|
-
}), e.prototype.init = function() {
|
379
|
-
this.adapter.registerInteractionHandler("animationend", this.shakeAnimationEndHandler);
|
380
|
-
}, e.prototype.destroy = function() {
|
381
|
-
this.adapter.deregisterInteractionHandler("animationend", this.shakeAnimationEndHandler);
|
382
|
-
}, e.prototype.getWidth = function() {
|
383
|
-
return this.adapter.getWidth();
|
384
|
-
}, e.prototype.shake = function(n) {
|
385
|
-
var o = e.cssClasses.LABEL_SHAKE;
|
386
|
-
n ? this.adapter.addClass(o) : this.adapter.removeClass(o);
|
387
|
-
}, e.prototype.float = function(n) {
|
388
|
-
var o = e.cssClasses, r = o.LABEL_FLOAT_ABOVE, g = o.LABEL_SHAKE;
|
389
|
-
n ? this.adapter.addClass(r) : (this.adapter.removeClass(r), this.adapter.removeClass(g));
|
390
|
-
}, e.prototype.setRequired = function(n) {
|
391
|
-
var o = e.cssClasses.LABEL_REQUIRED;
|
392
|
-
n ? this.adapter.addClass(o) : this.adapter.removeClass(o);
|
393
|
-
}, e.prototype.handleShakeAnimationEnd = function() {
|
394
|
-
var n = e.cssClasses.LABEL_SHAKE;
|
395
|
-
this.adapter.removeClass(n);
|
396
|
-
}, e;
|
397
|
-
}(N)
|
398
|
-
);
|
399
|
-
/**
|
146
|
+
*/var C=function(t){o.__extends(e,t);function e(n){var r=t.call(this,o.__assign(o.__assign({},e.defaultAdapter),n))||this;return r.shakeAnimationEndHandler=function(){r.handleShakeAnimationEnd()},r}return Object.defineProperty(e,"cssClasses",{get:function(){return L},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},getWidth:function(){return 0},registerInteractionHandler:function(){},deregisterInteractionHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterInteractionHandler("animationend",this.shakeAnimationEndHandler)},e.prototype.getWidth=function(){return this.adapter.getWidth()},e.prototype.shake=function(n){var r=e.cssClasses.LABEL_SHAKE;n?this.adapter.addClass(r):this.adapter.removeClass(r)},e.prototype.float=function(n){var r=e.cssClasses,d=r.LABEL_FLOAT_ABOVE,f=r.LABEL_SHAKE;n?this.adapter.addClass(d):(this.adapter.removeClass(d),this.adapter.removeClass(f))},e.prototype.setRequired=function(n){var r=e.cssClasses.LABEL_REQUIRED;n?this.adapter.addClass(r):this.adapter.removeClass(r)},e.prototype.handleShakeAnimationEnd=function(){var n=e.cssClasses.LABEL_SHAKE;this.adapter.removeClass(n)},e}(y);/**
|
400
147
|
* @license
|
401
148
|
* Copyright 2018 Google LLC
|
402
149
|
* SPDX-License-Identifier: Apache-2.0
|
403
|
-
*/
|
404
|
-
const D = (t) => ({
|
405
|
-
addClass: (e) => t.classList.add(e),
|
406
|
-
removeClass: (e) => t.classList.remove(e),
|
407
|
-
getWidth: () => t.scrollWidth,
|
408
|
-
registerInteractionHandler: (e, n) => {
|
409
|
-
t.addEventListener(e, n);
|
410
|
-
},
|
411
|
-
deregisterInteractionHandler: (e, n) => {
|
412
|
-
t.removeEventListener(e, n);
|
413
|
-
}
|
414
|
-
});
|
415
|
-
class H extends b {
|
416
|
-
constructor(e) {
|
417
|
-
switch (super(e), this.foundation = null, this.previousPart = null, e.type) {
|
418
|
-
case l.ATTRIBUTE:
|
419
|
-
case l.PROPERTY:
|
420
|
-
break;
|
421
|
-
default:
|
422
|
-
throw new Error("FloatingLabel directive only support attribute and property parts");
|
423
|
-
}
|
424
|
-
}
|
425
|
-
/**
|
426
|
-
* There is no PropertyPart in Lit 2 so far. For more info see:
|
427
|
-
* https://github.com/lit/lit/issues/1863
|
428
|
-
*/
|
429
|
-
update(e, [n]) {
|
430
|
-
if (e !== this.previousPart) {
|
431
|
-
this.foundation && this.foundation.destroy(), this.previousPart = e;
|
432
|
-
const o = e.element;
|
433
|
-
o.classList.add("mdc-floating-label");
|
434
|
-
const r = D(o);
|
435
|
-
this.foundation = new T(r), this.foundation.init();
|
436
|
-
}
|
437
|
-
return this.render(n);
|
438
|
-
}
|
439
|
-
render(e) {
|
440
|
-
return this.foundation;
|
441
|
-
}
|
442
|
-
}
|
443
|
-
const W = m(H);
|
444
|
-
/**
|
150
|
+
*/const x=t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),getWidth:()=>t.scrollWidth,registerInteractionHandler:(e,n)=>{t.addEventListener(e,n)},deregisterInteractionHandler:(e,n)=>{t.removeEventListener(e,n)}});class A extends i.i{constructor(e){switch(super(e),this.foundation=null,this.previousPart=null,e.type){case i.t.ATTRIBUTE:case i.t.PROPERTY:break;default:throw new Error("FloatingLabel directive only support attribute and property parts")}}update(e,[n]){if(e!==this.previousPart){this.foundation&&this.foundation.destroy(),this.previousPart=e;const r=e.element;r.classList.add("mdc-floating-label");const d=x(r);this.foundation=new C(d),this.foundation.init()}return this.render(n)}render(e){return this.foundation}}const P=i.e(A);/**
|
445
151
|
* @license
|
446
152
|
* Copyright 2016 Google Inc.
|
447
153
|
*
|
@@ -462,43 +168,7 @@ const W = m(H);
|
|
462
168
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
463
169
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
464
170
|
* THE SOFTWARE.
|
465
|
-
*/
|
466
|
-
var R = (
|
467
|
-
/** @class */
|
468
|
-
function() {
|
469
|
-
function t(e) {
|
470
|
-
e === void 0 && (e = {}), this.adapter = e;
|
471
|
-
}
|
472
|
-
return Object.defineProperty(t, "cssClasses", {
|
473
|
-
get: function() {
|
474
|
-
return {};
|
475
|
-
},
|
476
|
-
enumerable: !1,
|
477
|
-
configurable: !0
|
478
|
-
}), Object.defineProperty(t, "strings", {
|
479
|
-
get: function() {
|
480
|
-
return {};
|
481
|
-
},
|
482
|
-
enumerable: !1,
|
483
|
-
configurable: !0
|
484
|
-
}), Object.defineProperty(t, "numbers", {
|
485
|
-
get: function() {
|
486
|
-
return {};
|
487
|
-
},
|
488
|
-
enumerable: !1,
|
489
|
-
configurable: !0
|
490
|
-
}), Object.defineProperty(t, "defaultAdapter", {
|
491
|
-
get: function() {
|
492
|
-
return {};
|
493
|
-
},
|
494
|
-
enumerable: !1,
|
495
|
-
configurable: !0
|
496
|
-
}), t.prototype.init = function() {
|
497
|
-
}, t.prototype.destroy = function() {
|
498
|
-
}, t;
|
499
|
-
}()
|
500
|
-
);
|
501
|
-
/**
|
171
|
+
*/var O=function(){function t(e){e===void 0&&(e={}),this.adapter=e}return Object.defineProperty(t,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),t.prototype.init=function(){},t.prototype.destroy=function(){},t}();/**
|
502
172
|
* @license
|
503
173
|
* Copyright 2018 Google Inc.
|
504
174
|
*
|
@@ -519,12 +189,7 @@ var R = (
|
|
519
189
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
520
190
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
521
191
|
* THE SOFTWARE.
|
522
|
-
*/
|
523
|
-
var i = {
|
524
|
-
LINE_RIPPLE_ACTIVE: "mdc-line-ripple--active",
|
525
|
-
LINE_RIPPLE_DEACTIVATING: "mdc-line-ripple--deactivating"
|
526
|
-
};
|
527
|
-
/**
|
192
|
+
*/var a={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"};/**
|
528
193
|
* @license
|
529
194
|
* Copyright 2018 Google Inc.
|
530
195
|
*
|
@@ -545,109 +210,8 @@ var i = {
|
|
545
210
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
546
211
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
547
212
|
* THE SOFTWARE.
|
548
|
-
*/
|
549
|
-
var w = (
|
550
|
-
/** @class */
|
551
|
-
function(t) {
|
552
|
-
u(e, t);
|
553
|
-
function e(n) {
|
554
|
-
var o = t.call(this, d(d({}, e.defaultAdapter), n)) || this;
|
555
|
-
return o.transitionEndHandler = function(r) {
|
556
|
-
o.handleTransitionEnd(r);
|
557
|
-
}, o;
|
558
|
-
}
|
559
|
-
return Object.defineProperty(e, "cssClasses", {
|
560
|
-
get: function() {
|
561
|
-
return i;
|
562
|
-
},
|
563
|
-
enumerable: !1,
|
564
|
-
configurable: !0
|
565
|
-
}), Object.defineProperty(e, "defaultAdapter", {
|
566
|
-
/**
|
567
|
-
* See {@link MDCLineRippleAdapter} for typing information on parameters and return types.
|
568
|
-
*/
|
569
|
-
get: function() {
|
570
|
-
return {
|
571
|
-
addClass: function() {
|
572
|
-
},
|
573
|
-
removeClass: function() {
|
574
|
-
},
|
575
|
-
hasClass: function() {
|
576
|
-
return !1;
|
577
|
-
},
|
578
|
-
setStyle: function() {
|
579
|
-
},
|
580
|
-
registerEventHandler: function() {
|
581
|
-
},
|
582
|
-
deregisterEventHandler: function() {
|
583
|
-
}
|
584
|
-
};
|
585
|
-
},
|
586
|
-
enumerable: !1,
|
587
|
-
configurable: !0
|
588
|
-
}), e.prototype.init = function() {
|
589
|
-
this.adapter.registerEventHandler("transitionend", this.transitionEndHandler);
|
590
|
-
}, e.prototype.destroy = function() {
|
591
|
-
this.adapter.deregisterEventHandler("transitionend", this.transitionEndHandler);
|
592
|
-
}, e.prototype.activate = function() {
|
593
|
-
this.adapter.removeClass(i.LINE_RIPPLE_DEACTIVATING), this.adapter.addClass(i.LINE_RIPPLE_ACTIVE);
|
594
|
-
}, e.prototype.setRippleCenter = function(n) {
|
595
|
-
this.adapter.setStyle("transform-origin", n + "px center");
|
596
|
-
}, e.prototype.deactivate = function() {
|
597
|
-
this.adapter.addClass(i.LINE_RIPPLE_DEACTIVATING);
|
598
|
-
}, e.prototype.handleTransitionEnd = function(n) {
|
599
|
-
var o = this.adapter.hasClass(i.LINE_RIPPLE_DEACTIVATING);
|
600
|
-
n.propertyName === "opacity" && o && (this.adapter.removeClass(i.LINE_RIPPLE_ACTIVE), this.adapter.removeClass(i.LINE_RIPPLE_DEACTIVATING));
|
601
|
-
}, e;
|
602
|
-
}(R)
|
603
|
-
);
|
604
|
-
/**
|
213
|
+
*/var N=function(t){o.__extends(e,t);function e(n){var r=t.call(this,o.__assign(o.__assign({},e.defaultAdapter),n))||this;return r.transitionEndHandler=function(d){r.handleTransitionEnd(d)},r}return Object.defineProperty(e,"cssClasses",{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(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(a.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(a.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(n){this.adapter.setStyle("transform-origin",n+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(a.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(n){var r=this.adapter.hasClass(a.LINE_RIPPLE_DEACTIVATING);n.propertyName==="opacity"&&r&&(this.adapter.removeClass(a.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(a.LINE_RIPPLE_DEACTIVATING))},e}(O);/**
|
605
214
|
* @license
|
606
215
|
* Copyright 2019 Google LLC
|
607
216
|
* SPDX-License-Identifier: Apache-2.0
|
608
|
-
*/
|
609
|
-
const B = (t) => ({
|
610
|
-
addClass: (e) => t.classList.add(e),
|
611
|
-
removeClass: (e) => t.classList.remove(e),
|
612
|
-
hasClass: (e) => t.classList.contains(e),
|
613
|
-
setStyle: (e, n) => t.style.setProperty(e, n),
|
614
|
-
registerEventHandler: (e, n) => {
|
615
|
-
t.addEventListener(e, n);
|
616
|
-
},
|
617
|
-
deregisterEventHandler: (e, n) => {
|
618
|
-
t.removeEventListener(e, n);
|
619
|
-
}
|
620
|
-
});
|
621
|
-
class F extends b {
|
622
|
-
constructor(e) {
|
623
|
-
switch (super(e), this.previousPart = null, this.foundation = null, e.type) {
|
624
|
-
case l.ATTRIBUTE:
|
625
|
-
case l.PROPERTY:
|
626
|
-
return;
|
627
|
-
default:
|
628
|
-
throw new Error("LineRipple only support attribute and property parts.");
|
629
|
-
}
|
630
|
-
}
|
631
|
-
/**
|
632
|
-
* There is no PropertyPart in Lit 2 so far. For more info see:
|
633
|
-
* https://github.com/lit/lit/issues/1863
|
634
|
-
*/
|
635
|
-
update(e, n) {
|
636
|
-
if (this.previousPart !== e) {
|
637
|
-
this.foundation && this.foundation.destroy(), this.previousPart = e;
|
638
|
-
const o = e.element;
|
639
|
-
o.classList.add("mdc-line-ripple");
|
640
|
-
const r = B(o);
|
641
|
-
this.foundation = new w(r), this.foundation.init();
|
642
|
-
}
|
643
|
-
return this.render();
|
644
|
-
}
|
645
|
-
render() {
|
646
|
-
return this.foundation;
|
647
|
-
}
|
648
|
-
}
|
649
|
-
const G = m(F);
|
650
|
-
export {
|
651
|
-
W as f,
|
652
|
-
G as l
|
653
|
-
};
|
217
|
+
*/const I=t=>({addClass:e=>t.classList.add(e),removeClass:e=>t.classList.remove(e),hasClass:e=>t.classList.contains(e),setStyle:(e,n)=>t.style.setProperty(e,n),registerEventHandler:(e,n)=>{t.addEventListener(e,n)},deregisterEventHandler:(e,n)=>{t.removeEventListener(e,n)}});class T extends i.i{constructor(e){switch(super(e),this.previousPart=null,this.foundation=null,e.type){case i.t.ATTRIBUTE:case i.t.PROPERTY:return;default:throw new Error("LineRipple only support attribute and property parts.")}}update(e,n){if(this.previousPart!==e){this.foundation&&this.foundation.destroy(),this.previousPart=e;const r=e.element;r.classList.add("mdc-line-ripple");const d=I(r);this.foundation=new N(d),this.foundation.init()}return this.render()}render(){return this.foundation}}const D=i.e(T);exports.floatingLabel=P;exports.lineRipple=D;
|