@covalent/components 10.4.0-beta.3 → 11.0.0-beta.1
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/_commonjsHelpers-DGT2Y9Xa.js +1 -0
- package/{_commonjsHelpers-HP5nalso.mjs → _commonjsHelpers-MdHo5S7N.mjs} +1 -1
- package/action-ribbon.js +5 -5
- package/action-ribbon.mjs +33 -33
- package/alert.js +5 -5
- package/alert.mjs +48 -48
- package/app-shell.js +1 -1
- package/app-shell.mjs +7 -7
- package/async-directive-JqUnzsgG.mjs +66 -0
- package/async-directive-X7VhNdG3.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +4 -4
- package/{base-element-5ZU-p99q.js → base-element-DP9GZic2.js} +1 -1
- package/{base-element-CzNmpVoz.mjs → base-element-DUJkJh_y.mjs} +1 -1
- package/button.js +2 -2
- package/button.mjs +26 -26
- package/card.js +8 -8
- package/card.mjs +39 -39
- package/check-list-item.js +8 -8
- package/check-list-item.mjs +34 -34
- package/checkbox.js +1 -1
- package/checkbox.mjs +15 -15
- package/{chip-DmwMNZYy.js → chip-BjFvUMom.js} +44 -44
- package/{chip-tQfbvpbh.mjs → chip-Dc7_8pVI.mjs} +412 -408
- package/chip-set.js +5 -5
- package/chip-set.mjs +125 -125
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +15 -15
- package/circular-progress.mjs +25 -25
- package/class-map-DPUylGZM.mjs +36 -0
- package/class-map-DTzB8z-1.js +5 -0
- package/{code-editor-CryBkPGy.js → code-editor-Bu3qtyEg.js} +110 -110
- package/{code-editor-XU5DhFbC.mjs → code-editor-CPpojoPe.mjs} +5423 -5477
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +11 -11
- package/code-snippet.mjs +2611 -2641
- package/{dialog-DMqDMT_N.js → dialog-BShWbhKq.js} +9 -9
- package/{dialog-BodJc4rc.mjs → dialog-CGLRIM8z.mjs} +186 -186
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/directive-C7oCP5Bh.js +5 -0
- package/directive-helpers-C-un5pST.js +5 -0
- package/directive-helpers-DS-VuBZD.mjs +11 -0
- package/{directive-B76A7YXI.mjs → directive-oAbCiebi.mjs} +4 -4
- package/drawer.js +2 -2
- package/drawer.mjs +14 -14
- package/empty-state.js +1 -1
- package/empty-state.mjs +6 -6
- package/{event-options-D44mpm5S.mjs → event-options-C7DvXRgq.mjs} +1 -1
- package/{event-options-IG-2g8HU.js → event-options-DD382x85.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +3 -3
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +5 -5
- package/focused-page.js +1 -1
- package/focused-page.mjs +7 -7
- package/form-element-BOhYShN_.mjs +50 -0
- package/form-element-BSAsNxWv.js +5 -0
- package/formfield.js +7 -7
- package/formfield.mjs +45 -45
- package/{foundation-BYhAXCW_.mjs → foundation-CZtT3AWn.mjs} +15 -17
- package/{foundation-sIsx2I_x.js → foundation-CySCCTUE.js} +2 -2
- package/{foundation-D6JHa7Lg.mjs → foundation-PL3XY-m_.mjs} +4 -4
- package/{foundation-aT_gy6X8.js → foundation-pgmPu2iJ.js} +1 -1
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +10 -10
- package/{html-DW6Y8eLM.mjs → html-DC72jQvb.mjs} +1 -1
- package/{html-CEiNqoVv.js → html-wWghN8cA.js} +1 -1
- package/icon-button-toggle.js +6 -6
- package/icon-button-toggle.mjs +32 -32
- package/icon-button.js +5 -5
- package/icon-button.mjs +36 -36
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +7 -7
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +4 -4
- package/icon-radio-toggle.js +1 -1
- package/icon-radio-toggle.mjs +13 -13
- package/icon.js +1 -1
- package/icon.mjs +13 -13
- package/{if-defined-B7G84qob.js → if-defined-CZCqOAYs.js} +1 -1
- package/{if-defined-DN7whKwy.mjs → if-defined-DGrxuPYz.mjs} +1 -1
- package/index.js +7 -7
- package/index.mjs +121 -121
- package/inert.esm-CknhJysw.mjs +645 -0
- package/inert.esm-D2PJKL9E.js +28 -0
- package/{javascript-DzJ0FiwJ.mjs → javascript-C_a5TwhW.mjs} +1 -1
- package/{javascript-vVCDG6Rm.js → javascript-cY8cX08V.js} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +32 -32
- package/{list-item-BIuZJQpK.mjs → list-item-CK66f3gK.mjs} +1 -1
- package/{list-item-V8RaZO6L.js → list-item-LcvIn8Xz.js} +1 -1
- package/list-item.js +7 -7
- package/list-item.mjs +21 -21
- package/list.js +3 -3
- package/list.mjs +16 -16
- package/menu.js +3 -3
- package/menu.mjs +16 -16
- package/{mwc-checkbox.css-CNoj0V14.mjs → mwc-checkbox.css-BrjbMwch.mjs} +28 -28
- package/{mwc-checkbox.css-BV3dyB4C.js → mwc-checkbox.css-u49MHsHT.js} +1 -1
- package/{mwc-drawer-base-BIn51sQu.js → mwc-drawer-base-C2YS_KZk.js} +3 -3
- package/{mwc-drawer-base-C96HTnbC.mjs → mwc-drawer-base-_d7xArWM.mjs} +11 -11
- package/{mwc-icon-Xgr698ax.js → mwc-icon-BUzuM0iB.js} +1 -1
- package/{mwc-icon-DTCUplqR.mjs → mwc-icon-U80igLyY.mjs} +2 -2
- package/{mwc-icon-button.css-DOVWWyjA.js → mwc-icon-button.css-BzElD_JI.js} +1 -1
- package/{mwc-icon-button.css-DJiDOS0_.mjs → mwc-icon-button.css-DosQIdlt.mjs} +1 -1
- package/{mwc-line-ripple-directive-r80jluoU.js → mwc-line-ripple-directive-DBy5sTfo.js} +4 -4
- package/{mwc-line-ripple-directive-TO37-41n.mjs → mwc-line-ripple-directive-at_ngzOj.mjs} +35 -34
- package/{mwc-list-item.css-CO1JlA8e.js → mwc-list-item.css-Bib8TVz5.js} +10 -10
- package/{mwc-list-item.css-Cg9onxQ-.mjs → mwc-list-item.css-BtGzAhUF.mjs} +10 -10
- package/{mwc-list.css-C_-DVEme.mjs → mwc-list.css-BBbQixrF.mjs} +100 -100
- package/{mwc-list.css-Deg9oBaO.js → mwc-list.css-DWV8pw-x.js} +1 -1
- package/{mwc-menu.css-qpZxKN-g.mjs → mwc-menu.css-BUjxqJjM.mjs} +303 -303
- package/{mwc-menu.css-Dvr-f3_T.js → mwc-menu.css-D3EFugOg.js} +18 -18
- package/{mwc-radio.css-DjO4Rn44.js → mwc-radio.css-BWiWreTh.js} +1 -1
- package/{mwc-radio.css-BiHC1R8I.mjs → mwc-radio.css-DPbyzNg_.mjs} +8 -8
- package/{mwc-slider.css-Deh1__Ar.mjs → mwc-slider.css-CBNgYCJf.mjs} +277 -288
- package/{mwc-slider.css-DFOaS04S.js → mwc-slider.css-DytByuJk.js} +13 -13
- package/{mwc-tab.css-sq5suZKe.js → mwc-tab.css-CrjUDOft.js} +11 -11
- package/{mwc-tab.css-2UrPKkNg.mjs → mwc-tab.css-DJHVL7wZ.mjs} +31 -31
- package/{mwc-top-app-bar-base-DUdOcIjS.js → mwc-top-app-bar-base-Gxaye-WD.js} +3 -3
- package/{mwc-top-app-bar-base-BIZGhVtM.mjs → mwc-top-app-bar-base-N3OLLWe5.mjs} +21 -21
- package/nav-list-item.js +1 -1
- package/nav-list-item.mjs +13 -13
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +23 -23
- package/package.json +3 -3
- package/{property-BRKnMYJe.js → property-DYTC_2-m.js} +1 -1
- package/{python-CddQNZH2.mjs → python-3XbrQbry.mjs} +1 -1
- package/{python-DnfGbG5q.js → python-C-jtMxm_.js} +1 -1
- package/query-CDOd1Kwm.mjs +15 -0
- package/query-Dv2F3m_t.js +5 -0
- package/query-assigned-elements-8EurZY45.js +31 -0
- package/query-assigned-elements-D930kELM.mjs +591 -0
- package/query-assigned-nodes-BAfLwxmx.js +5 -0
- package/query-assigned-nodes-Dof2CSLU.mjs +17 -0
- package/radio-list-item.js +9 -9
- package/radio-list-item.mjs +28 -28
- package/radio.js +1 -1
- package/radio.mjs +15 -15
- package/{ripple-handlers-BDmOLx8c.js → ripple-handlers-C7an-EE1.js} +5 -5
- package/{ripple-handlers-BAdg-fJB.mjs → ripple-handlers-_gEIkKpx.mjs} +71 -71
- package/select.js +15 -15
- package/select.mjs +166 -167
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +5 -5
- package/slider-range.mjs +43 -43
- package/slider.js +2 -2
- package/slider.mjs +19 -19
- package/snackbar.js +11 -11
- package/snackbar.mjs +54 -54
- package/{state-Csv4sdJA.js → state-C3HoXfoa.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +6 -6
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +17 -17
- package/status-header.js +5 -5
- package/status-header.mjs +34 -34
- package/style-map-D2TR7M-D.mjs +42 -0
- package/style-map-DOMuf9Fg.js +5 -0
- package/switch.js +5 -5
- package/switch.mjs +42 -42
- package/tab-bar.js +11 -11
- package/tab-bar.mjs +98 -98
- package/tab.js +1 -1
- package/tab.mjs +13 -13
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +9 -9
- package/textarea.js +6 -6
- package/textarea.mjs +29 -29
- package/{textfield-bHWjhOOq.js → textfield-Byf2gP_G.js} +31 -31
- package/{textfield-i_Whj47J.mjs → textfield-RbQ6Kwq7.mjs} +102 -102
- package/textfield.js +3 -3
- package/textfield.mjs +17 -17
- package/theme/prebuilt/dark-theme.css +1 -1
- package/theme/prebuilt/light-theme.css +1 -1
- package/toolbar.js +1 -1
- package/toolbar.mjs +4 -4
- package/tooltip.js +3 -3
- package/tooltip.mjs +54 -55
- package/{top-app-bar-CZ5ILmAf.mjs → top-app-bar-BQ88Rom5.mjs} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +40 -40
- package/{top-app-bar-UVbXY1md.js → top-app-bar-lbNkmJbQ.js} +1 -1
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +18 -18
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +4 -4
- package/tree-list.js +4 -4
- package/tree-list.mjs +22 -22
- package/tslib.es6-CJ7TUrOc.mjs +75 -0
- package/{typescript-BRw9OFm1.js → typescript-CNfpftAV.js} +1 -1
- package/{typescript-CdlgcZ3y.mjs → typescript-Dj6mne2e.mjs} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +3 -3
- package/_commonjsHelpers-6jR-N8xe.js +0 -1
- package/async-directive-2AOdKBUW.mjs +0 -66
- package/async-directive-DZ3MjSIj.js +0 -5
- package/class-map-BHl5MHd7.mjs +0 -36
- package/class-map-PsUYVqvf.js +0 -5
- package/directive-C_VV3qwo.js +0 -5
- package/directive-helpers-6HCt_-zj.mjs +0 -11
- package/directive-helpers-BnUMbYHh.js +0 -5
- package/form-element--PS8uSRI.js +0 -5
- package/form-element-Dn0Lerng.mjs +0 -50
- package/inert.esm-C8R-X3j4.mjs +0 -639
- package/inert.esm-t-228rpY.js +0 -28
- package/query-BvlE-gMJ.js +0 -5
- package/query-DSO61t36.mjs +0 -15
- package/query-assigned-elements-BQszEgac.js +0 -31
- package/query-assigned-elements-DhyCP_2z.mjs +0 -591
- package/query-assigned-nodes-9DFnkxV8.js +0 -5
- package/query-assigned-nodes-B-jCihdA.mjs +0 -17
- package/style-map-3QfsA_1O.js +0 -5
- package/style-map-QxIETvrs.mjs +0 -42
- package/theme/prebuilt/dark-theme.css.map +0 -1
- package/theme/prebuilt/light-theme.css.map +0 -1
- package/tslib.es6-CISSdiiH.mjs +0 -75
- /package/{style.css → covalent.css} +0 -0
package/tab-bar.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import { b as f, _ as S, a as
|
2
|
-
import { e as y, x as I, i as O } from "./query-assigned-elements-
|
3
|
-
import { s as w, T as P } from "./mwc-tab.css-
|
4
|
-
import { B as x } from "./base-element-
|
5
|
-
import { e as M } from "./event-options-
|
6
|
-
import { i as g } from "./query-
|
1
|
+
import { b as f, _ as S, a as T, f as D } from "./tslib.es6-CJ7TUrOc.mjs";
|
2
|
+
import { e as y, x as I, i as O } from "./query-assigned-elements-D930kELM.mjs";
|
3
|
+
import { s as w, T as P } from "./mwc-tab.css-DJHVL7wZ.mjs";
|
4
|
+
import { B as x } from "./base-element-DUJkJh_y.mjs";
|
5
|
+
import { e as M } from "./event-options-C7DvXRgq.mjs";
|
6
|
+
import { i as g } from "./query-CDOd1Kwm.mjs";
|
7
7
|
import { a as K } from "./utils-Dr5MegQq.mjs";
|
8
8
|
import { o as W } from "./observer-DQ8OfVDQ.mjs";
|
9
9
|
import { n as F } from "./property-DJzm_oB9.mjs";
|
@@ -40,9 +40,9 @@ R = f([
|
|
40
40
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
41
41
|
* THE SOFTWARE.
|
42
42
|
*/
|
43
|
-
function Y(
|
44
|
-
var t =
|
45
|
-
return t.call(
|
43
|
+
function Y(n, e) {
|
44
|
+
var t = n.matches || n.webkitMatchesSelector || n.msMatchesSelector;
|
45
|
+
return t.call(n, e);
|
46
46
|
}
|
47
47
|
/**
|
48
48
|
* @license
|
@@ -69,36 +69,36 @@ function Y(o, e) {
|
|
69
69
|
var N = (
|
70
70
|
/** @class */
|
71
71
|
function() {
|
72
|
-
function
|
72
|
+
function n(e) {
|
73
73
|
e === void 0 && (e = {}), this.adapter = e;
|
74
74
|
}
|
75
|
-
return Object.defineProperty(
|
75
|
+
return Object.defineProperty(n, "cssClasses", {
|
76
76
|
get: function() {
|
77
77
|
return {};
|
78
78
|
},
|
79
79
|
enumerable: !1,
|
80
80
|
configurable: !0
|
81
|
-
}), Object.defineProperty(
|
81
|
+
}), Object.defineProperty(n, "strings", {
|
82
82
|
get: function() {
|
83
83
|
return {};
|
84
84
|
},
|
85
85
|
enumerable: !1,
|
86
86
|
configurable: !0
|
87
|
-
}), Object.defineProperty(
|
87
|
+
}), Object.defineProperty(n, "numbers", {
|
88
88
|
get: function() {
|
89
89
|
return {};
|
90
90
|
},
|
91
91
|
enumerable: !1,
|
92
92
|
configurable: !0
|
93
|
-
}), Object.defineProperty(
|
93
|
+
}), Object.defineProperty(n, "defaultAdapter", {
|
94
94
|
get: function() {
|
95
95
|
return {};
|
96
96
|
},
|
97
97
|
enumerable: !1,
|
98
98
|
configurable: !0
|
99
|
-
}),
|
100
|
-
},
|
101
|
-
},
|
99
|
+
}), n.prototype.init = function() {
|
100
|
+
}, n.prototype.destroy = function() {
|
101
|
+
}, n;
|
102
102
|
}()
|
103
103
|
);
|
104
104
|
/**
|
@@ -156,10 +156,10 @@ var V = {
|
|
156
156
|
var C = (
|
157
157
|
/** @class */
|
158
158
|
/* @__PURE__ */ function() {
|
159
|
-
function
|
159
|
+
function n(e) {
|
160
160
|
this.adapter = e;
|
161
161
|
}
|
162
|
-
return
|
162
|
+
return n;
|
163
163
|
}()
|
164
164
|
);
|
165
165
|
/**
|
@@ -186,25 +186,25 @@ var C = (
|
|
186
186
|
*/
|
187
187
|
var j = (
|
188
188
|
/** @class */
|
189
|
-
function(
|
190
|
-
S(e,
|
189
|
+
function(n) {
|
190
|
+
S(e, n);
|
191
191
|
function e() {
|
192
|
-
return
|
192
|
+
return n !== null && n.apply(this, arguments) || this;
|
193
193
|
}
|
194
194
|
return e.prototype.getScrollPositionRTL = function() {
|
195
195
|
var t = this.adapter.getScrollAreaScrollLeft(), r = this.calculateScrollEdges().right;
|
196
196
|
return Math.round(r - t);
|
197
197
|
}, e.prototype.scrollToRTL = function(t) {
|
198
|
-
var r = this.calculateScrollEdges(),
|
198
|
+
var r = this.calculateScrollEdges(), o = this.adapter.getScrollAreaScrollLeft(), l = this.clampScrollValue(r.right - t);
|
199
199
|
return {
|
200
200
|
finalScrollPosition: l,
|
201
|
-
scrollDelta: l -
|
201
|
+
scrollDelta: l - o
|
202
202
|
};
|
203
203
|
}, e.prototype.incrementScrollRTL = function(t) {
|
204
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
204
|
+
var r = this.adapter.getScrollAreaScrollLeft(), o = this.clampScrollValue(r - t);
|
205
205
|
return {
|
206
|
-
finalScrollPosition:
|
207
|
-
scrollDelta:
|
206
|
+
finalScrollPosition: o,
|
207
|
+
scrollDelta: o - r
|
208
208
|
};
|
209
209
|
}, e.prototype.getAnimatingScrollPosition = function(t) {
|
210
210
|
return t;
|
@@ -244,25 +244,25 @@ var j = (
|
|
244
244
|
*/
|
245
245
|
var B = (
|
246
246
|
/** @class */
|
247
|
-
function(
|
248
|
-
S(e,
|
247
|
+
function(n) {
|
248
|
+
S(e, n);
|
249
249
|
function e() {
|
250
|
-
return
|
250
|
+
return n !== null && n.apply(this, arguments) || this;
|
251
251
|
}
|
252
252
|
return e.prototype.getScrollPositionRTL = function(t) {
|
253
253
|
var r = this.adapter.getScrollAreaScrollLeft();
|
254
254
|
return Math.round(t - r);
|
255
255
|
}, e.prototype.scrollToRTL = function(t) {
|
256
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
256
|
+
var r = this.adapter.getScrollAreaScrollLeft(), o = this.clampScrollValue(-t);
|
257
257
|
return {
|
258
|
-
finalScrollPosition:
|
259
|
-
scrollDelta:
|
258
|
+
finalScrollPosition: o,
|
259
|
+
scrollDelta: o - r
|
260
260
|
};
|
261
261
|
}, e.prototype.incrementScrollRTL = function(t) {
|
262
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
262
|
+
var r = this.adapter.getScrollAreaScrollLeft(), o = this.clampScrollValue(r - t);
|
263
263
|
return {
|
264
|
-
finalScrollPosition:
|
265
|
-
scrollDelta:
|
264
|
+
finalScrollPosition: o,
|
265
|
+
scrollDelta: o - r
|
266
266
|
};
|
267
267
|
}, e.prototype.getAnimatingScrollPosition = function(t, r) {
|
268
268
|
return t - r;
|
@@ -302,25 +302,25 @@ var B = (
|
|
302
302
|
*/
|
303
303
|
var X = (
|
304
304
|
/** @class */
|
305
|
-
function(
|
306
|
-
S(e,
|
305
|
+
function(n) {
|
306
|
+
S(e, n);
|
307
307
|
function e() {
|
308
|
-
return
|
308
|
+
return n !== null && n.apply(this, arguments) || this;
|
309
309
|
}
|
310
310
|
return e.prototype.getScrollPositionRTL = function(t) {
|
311
311
|
var r = this.adapter.getScrollAreaScrollLeft();
|
312
312
|
return Math.round(r - t);
|
313
313
|
}, e.prototype.scrollToRTL = function(t) {
|
314
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
314
|
+
var r = this.adapter.getScrollAreaScrollLeft(), o = this.clampScrollValue(t);
|
315
315
|
return {
|
316
|
-
finalScrollPosition:
|
317
|
-
scrollDelta: r -
|
316
|
+
finalScrollPosition: o,
|
317
|
+
scrollDelta: r - o
|
318
318
|
};
|
319
319
|
}, e.prototype.incrementScrollRTL = function(t) {
|
320
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
320
|
+
var r = this.adapter.getScrollAreaScrollLeft(), o = this.clampScrollValue(r + t);
|
321
321
|
return {
|
322
|
-
finalScrollPosition:
|
323
|
-
scrollDelta: r -
|
322
|
+
finalScrollPosition: o,
|
323
|
+
scrollDelta: r - o
|
324
324
|
};
|
325
325
|
}, e.prototype.getAnimatingScrollPosition = function(t, r) {
|
326
326
|
return t + r;
|
@@ -360,10 +360,10 @@ var X = (
|
|
360
360
|
*/
|
361
361
|
var $ = (
|
362
362
|
/** @class */
|
363
|
-
function(
|
364
|
-
S(e,
|
363
|
+
function(n) {
|
364
|
+
S(e, n);
|
365
365
|
function e(t) {
|
366
|
-
var r =
|
366
|
+
var r = n.call(this, T(T({}, e.defaultAdapter), t)) || this;
|
367
367
|
return r.isAnimating = !1, r;
|
368
368
|
}
|
369
369
|
return Object.defineProperty(e, "cssClasses", {
|
@@ -456,7 +456,7 @@ var $ = (
|
|
456
456
|
var r = /\((.+?)\)/.exec(t);
|
457
457
|
if (!r)
|
458
458
|
return 0;
|
459
|
-
var
|
459
|
+
var o = r[1], l = D(o.split(","), 6);
|
460
460
|
l[0], l[1], l[2], l[3];
|
461
461
|
var a = l[4];
|
462
462
|
return l[5], parseFloat(a);
|
@@ -473,9 +473,9 @@ var $ = (
|
|
473
473
|
right: t - r
|
474
474
|
};
|
475
475
|
}, e.prototype.scrollToImpl = function(t) {
|
476
|
-
var r = this.getScrollPosition(),
|
476
|
+
var r = this.getScrollPosition(), o = this.clampScrollValue(t), l = o - r;
|
477
477
|
this.animate({
|
478
|
-
finalScrollPosition:
|
478
|
+
finalScrollPosition: o,
|
479
479
|
scrollDelta: l
|
480
480
|
});
|
481
481
|
}, e.prototype.scrollToImplRTL = function(t) {
|
@@ -484,7 +484,7 @@ var $ = (
|
|
484
484
|
}, e.prototype.getIncrementScrollOperation = function(t) {
|
485
485
|
if (this.isRTL())
|
486
486
|
return this.getRTLScroller().incrementScrollRTL(t);
|
487
|
-
var r = this.getScrollPosition(),
|
487
|
+
var r = this.getScrollPosition(), o = t + r, l = this.clampScrollValue(o), a = l - r;
|
488
488
|
return {
|
489
489
|
finalScrollPosition: l,
|
490
490
|
scrollDelta: a
|
@@ -507,7 +507,7 @@ var $ = (
|
|
507
507
|
var r = this.adapter.getScrollAreaScrollLeft();
|
508
508
|
if (r < 0)
|
509
509
|
return this.adapter.setScrollAreaScrollLeft(t), new B(this.adapter);
|
510
|
-
var
|
510
|
+
var o = this.adapter.computeScrollAreaClientRect(), l = this.adapter.computeScrollContentClientRect(), a = Math.round(l.right - o.right);
|
511
511
|
return this.adapter.setScrollAreaScrollLeft(t), a === r ? new X(this.adapter) : new j(this.adapter);
|
512
512
|
}, e.prototype.isRTL = function() {
|
513
513
|
return this.adapter.getScrollContentStyleValue("direction") === "rtl";
|
@@ -631,36 +631,36 @@ _ = f([
|
|
631
631
|
var U = (
|
632
632
|
/** @class */
|
633
633
|
function() {
|
634
|
-
function
|
634
|
+
function n(e) {
|
635
635
|
e === void 0 && (e = {}), this.adapter = e;
|
636
636
|
}
|
637
|
-
return Object.defineProperty(
|
637
|
+
return Object.defineProperty(n, "cssClasses", {
|
638
638
|
get: function() {
|
639
639
|
return {};
|
640
640
|
},
|
641
641
|
enumerable: !1,
|
642
642
|
configurable: !0
|
643
|
-
}), Object.defineProperty(
|
643
|
+
}), Object.defineProperty(n, "strings", {
|
644
644
|
get: function() {
|
645
645
|
return {};
|
646
646
|
},
|
647
647
|
enumerable: !1,
|
648
648
|
configurable: !0
|
649
|
-
}), Object.defineProperty(
|
649
|
+
}), Object.defineProperty(n, "numbers", {
|
650
650
|
get: function() {
|
651
651
|
return {};
|
652
652
|
},
|
653
653
|
enumerable: !1,
|
654
654
|
configurable: !0
|
655
|
-
}), Object.defineProperty(
|
655
|
+
}), Object.defineProperty(n, "defaultAdapter", {
|
656
656
|
get: function() {
|
657
657
|
return {};
|
658
658
|
},
|
659
659
|
enumerable: !1,
|
660
660
|
configurable: !0
|
661
|
-
}),
|
662
|
-
},
|
663
|
-
},
|
661
|
+
}), n.prototype.init = function() {
|
662
|
+
}, n.prototype.destroy = function() {
|
663
|
+
}, n;
|
664
664
|
}()
|
665
665
|
);
|
666
666
|
/**
|
@@ -742,10 +742,10 @@ m.set(d.ENTER_KEYCODE, i.ENTER_KEY);
|
|
742
742
|
m.set(d.SPACE_KEYCODE, i.SPACE_KEY);
|
743
743
|
var L = (
|
744
744
|
/** @class */
|
745
|
-
function(
|
746
|
-
S(e,
|
745
|
+
function(n) {
|
746
|
+
S(e, n);
|
747
747
|
function e(t) {
|
748
|
-
var r =
|
748
|
+
var r = n.call(this, T(T({}, e.defaultAdapter), t)) || this;
|
749
749
|
return r.useAutomaticActivation = !1, r;
|
750
750
|
}
|
751
751
|
return Object.defineProperty(e, "strings", {
|
@@ -816,8 +816,8 @@ var L = (
|
|
816
816
|
}, e.prototype.activateTab = function(t) {
|
817
817
|
var r = this.adapter.getPreviousActiveTabIndex();
|
818
818
|
if (!(!this.indexIsInRange(t) || t === r)) {
|
819
|
-
var
|
820
|
-
r !== -1 && (this.adapter.deactivateTabAtIndex(r),
|
819
|
+
var o;
|
820
|
+
r !== -1 && (this.adapter.deactivateTabAtIndex(r), o = this.adapter.getTabIndicatorClientRectAtIndex(r)), this.adapter.activateTabAtIndex(t, o), this.scrollIntoView(t), this.adapter.notifyTabActivated(t);
|
821
821
|
}
|
822
822
|
}, e.prototype.handleKeyDown = function(t) {
|
823
823
|
var r = this.getKeyFromEvent(t);
|
@@ -825,15 +825,15 @@ var L = (
|
|
825
825
|
if (this.isActivationKey(r) || t.preventDefault(), this.useAutomaticActivation) {
|
826
826
|
if (this.isActivationKey(r))
|
827
827
|
return;
|
828
|
-
var
|
829
|
-
this.adapter.setActiveTab(
|
828
|
+
var o = this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(), r);
|
829
|
+
this.adapter.setActiveTab(o), this.scrollIntoView(o);
|
830
830
|
} else {
|
831
831
|
var l = this.adapter.getFocusedTabIndex();
|
832
832
|
if (this.isActivationKey(r))
|
833
833
|
this.adapter.setActiveTab(l);
|
834
834
|
else {
|
835
|
-
var
|
836
|
-
this.adapter.focusTabAtIndex(
|
835
|
+
var o = this.determineTargetFromKey(l, r);
|
836
|
+
this.adapter.focusTabAtIndex(o), this.scrollIntoView(o);
|
837
837
|
}
|
838
838
|
}
|
839
839
|
}, e.prototype.handleTabInteraction = function(t) {
|
@@ -855,19 +855,19 @@ var L = (
|
|
855
855
|
this.scrollIntoViewImpl(t);
|
856
856
|
}
|
857
857
|
}, e.prototype.determineTargetFromKey = function(t, r) {
|
858
|
-
var
|
858
|
+
var o = this.isRTL(), l = this.adapter.getTabListLength() - 1, a = r === i.END_KEY, s = r === i.ARROW_LEFT_KEY && !o || r === i.ARROW_RIGHT_KEY && o, u = r === i.ARROW_RIGHT_KEY && !o || r === i.ARROW_LEFT_KEY && o, c = t;
|
859
859
|
return a ? c = l : s ? c -= 1 : u ? c += 1 : c = 0, c < 0 ? c = l : c > l && (c = 0), c;
|
860
|
-
}, e.prototype.calculateScrollIncrement = function(t, r,
|
861
|
-
var a = this.adapter.getTabDimensionsAtIndex(r), s = a.contentLeft -
|
860
|
+
}, e.prototype.calculateScrollIncrement = function(t, r, o, l) {
|
861
|
+
var a = this.adapter.getTabDimensionsAtIndex(r), s = a.contentLeft - o - l, u = a.contentRight - o, c = u - d.EXTRA_SCROLL_AMOUNT, h = s + d.EXTRA_SCROLL_AMOUNT;
|
862
862
|
return r < t ? Math.min(c, 0) : Math.max(h, 0);
|
863
|
-
}, e.prototype.calculateScrollIncrementRTL = function(t, r,
|
864
|
-
var s = this.adapter.getTabDimensionsAtIndex(r), u = a - s.contentLeft -
|
863
|
+
}, e.prototype.calculateScrollIncrementRTL = function(t, r, o, l, a) {
|
864
|
+
var s = this.adapter.getTabDimensionsAtIndex(r), u = a - s.contentLeft - o, c = a - s.contentRight - o - l, h = c + d.EXTRA_SCROLL_AMOUNT, E = u - d.EXTRA_SCROLL_AMOUNT;
|
865
865
|
return r > t ? Math.max(h, 0) : Math.min(E, 0);
|
866
|
-
}, e.prototype.findAdjacentTabIndexClosestToEdge = function(t, r,
|
867
|
-
var a = r.rootLeft -
|
866
|
+
}, e.prototype.findAdjacentTabIndexClosestToEdge = function(t, r, o, l) {
|
867
|
+
var a = r.rootLeft - o, s = r.rootRight - o - l, u = a + s, c = a < 0 || u < 0, h = s > 0 || u > 0;
|
868
868
|
return c ? t - 1 : h ? t + 1 : -1;
|
869
|
-
}, e.prototype.findAdjacentTabIndexClosestToEdgeRTL = function(t, r,
|
870
|
-
var s = a - r.rootLeft - l -
|
869
|
+
}, e.prototype.findAdjacentTabIndexClosestToEdgeRTL = function(t, r, o, l, a) {
|
870
|
+
var s = a - r.rootLeft - l - o, u = a - r.rootRight - o, c = s + u, h = s > 0 || c > 0, E = u < 0 || c < 0;
|
871
871
|
return h ? t + 1 : E ? t - 1 : -1;
|
872
872
|
}, e.prototype.getKeyFromEvent = function(t) {
|
873
873
|
return p.has(t.key) ? t.key : m.get(t.keyCode);
|
@@ -878,15 +878,15 @@ var L = (
|
|
878
878
|
}, e.prototype.isRTL = function() {
|
879
879
|
return this.adapter.isRTL();
|
880
880
|
}, e.prototype.scrollIntoViewImpl = function(t) {
|
881
|
-
var r = this.adapter.getScrollPosition(),
|
881
|
+
var r = this.adapter.getScrollPosition(), o = this.adapter.getOffsetWidth(), l = this.adapter.getTabDimensionsAtIndex(t), a = this.findAdjacentTabIndexClosestToEdge(t, l, r, o);
|
882
882
|
if (this.indexIsInRange(a)) {
|
883
|
-
var s = this.calculateScrollIncrement(t, a, r,
|
883
|
+
var s = this.calculateScrollIncrement(t, a, r, o);
|
884
884
|
this.adapter.incrementScroll(s);
|
885
885
|
}
|
886
886
|
}, e.prototype.scrollIntoViewImplRTL = function(t) {
|
887
|
-
var r = this.adapter.getScrollPosition(),
|
887
|
+
var r = this.adapter.getScrollPosition(), o = this.adapter.getOffsetWidth(), l = this.adapter.getTabDimensionsAtIndex(t), a = this.adapter.getScrollContentWidth(), s = this.findAdjacentTabIndexClosestToEdgeRTL(t, l, r, o, a);
|
888
888
|
if (this.indexIsInRange(s)) {
|
889
|
-
var u = this.calculateScrollIncrementRTL(t, s, r,
|
889
|
+
var u = this.calculateScrollIncrementRTL(t, s, r, o, a);
|
890
890
|
this.adapter.incrementScroll(u);
|
891
891
|
}
|
892
892
|
}, e;
|
@@ -897,7 +897,7 @@ var L = (
|
|
897
897
|
* Copyright 2018 Google LLC
|
898
898
|
* SPDX-License-Identifier: Apache-2.0
|
899
899
|
*/
|
900
|
-
class
|
900
|
+
class v extends x {
|
901
901
|
constructor() {
|
902
902
|
super(...arguments), this.mdcFoundationClass = L, this.activeIndex = 0, this._previousActiveIndex = -1;
|
903
903
|
}
|
@@ -987,38 +987,38 @@ class T extends x {
|
|
987
987
|
}
|
988
988
|
f([
|
989
989
|
g(".mdc-tab-bar")
|
990
|
-
],
|
990
|
+
], v.prototype, "mdcRoot", void 0);
|
991
991
|
f([
|
992
992
|
g("mwc-tab-scroller")
|
993
|
-
],
|
993
|
+
], v.prototype, "scrollerElement", void 0);
|
994
994
|
f([
|
995
995
|
g("slot")
|
996
|
-
],
|
996
|
+
], v.prototype, "tabsSlot", void 0);
|
997
997
|
f([
|
998
998
|
W(async function() {
|
999
999
|
await this.updateComplete, this.activeIndex !== this._previousActiveIndex && this.mdcFoundation.activateTab(this.activeIndex);
|
1000
1000
|
}),
|
1001
1001
|
F({ type: Number })
|
1002
|
-
],
|
1002
|
+
], v.prototype, "activeIndex", void 0);
|
1003
1003
|
/**
|
1004
1004
|
* @license
|
1005
1005
|
* Copyright 2021 Google LLC
|
1006
1006
|
* SPDX-LIcense-Identifier: Apache-2.0
|
1007
1007
|
*/
|
1008
|
-
const
|
1009
|
-
var
|
1010
|
-
for (var
|
1011
|
-
(a =
|
1012
|
-
return
|
1008
|
+
const k = O`.mdc-tab-bar{width:100%}.mdc-tab{height:48px}.mdc-tab--stacked{height:72px}:host{display:block}.mdc-tab-bar{flex:1}mwc-tab{--mdc-tab-height: 48px;--mdc-tab-stacked-height: 72px}`;
|
1009
|
+
var z = Object.getOwnPropertyDescriptor, q = (n, e, t, r) => {
|
1010
|
+
for (var o = r > 1 ? void 0 : r ? z(e, t) : e, l = n.length - 1, a; l >= 0; l--)
|
1011
|
+
(a = n[l]) && (o = a(o) || o);
|
1012
|
+
return o;
|
1013
1013
|
};
|
1014
|
-
let A = class extends
|
1014
|
+
let A = class extends v {
|
1015
1015
|
};
|
1016
|
-
A.styles = [
|
1017
|
-
A =
|
1016
|
+
A.styles = [k];
|
1017
|
+
A = q([
|
1018
1018
|
y("cv-tab-bar")
|
1019
1019
|
], A);
|
1020
|
-
const
|
1020
|
+
const ct = A;
|
1021
1021
|
export {
|
1022
1022
|
A as CovalentTabBar,
|
1023
|
-
|
1023
|
+
ct as default
|
1024
1024
|
};
|
package/tab.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./query-assigned-elements-8EurZY45.js"),n=require("./mwc-tab.css-CrjUDOft.js"),v=':host{--mdc-tab-text-label-color-default: var( --mdc-theme-text-primary-on-background );--mdc-tab-color-default: var(--mdc-theme-text-icon-on-background);--mdc-tab-height: calc(48px + var(--cv-density-mode, 0) * var(--cv-density-interval, 4px))}:host .mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-theme-text-primary-on-background)}:host .mdc-tab--active{font-variation-settings:"FILL" 1}:host[minwidth]{flex:0 0 auto}';var b=Object.getOwnPropertyDescriptor,d=(e,r,l,c)=>{for(var t=c>1?void 0:c?b(r,l):r,a=e.length-1,s;a>=0;a--)(s=e[a])&&(t=s(t)||t);return t};exports.CovalentTab=class extends n.TabBase{};exports.CovalentTab.styles=[n.styles,o.i`${o.r(v)}`];exports.CovalentTab=d([o.e("cv-tab")],exports.CovalentTab);const i=exports.CovalentTab;exports.default=i;
|
package/tab.mjs
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
import { s as v, T as b } from "./mwc-tab.css-
|
1
|
+
import { r as n, i as m, e as d } from "./query-assigned-elements-D930kELM.mjs";
|
2
|
+
import { s as v, T as b } from "./mwc-tab.css-DJHVL7wZ.mjs";
|
3
3
|
const i = ':host{--mdc-tab-text-label-color-default: var( --mdc-theme-text-primary-on-background );--mdc-tab-color-default: var(--mdc-theme-text-icon-on-background);--mdc-tab-height: calc(48px + var(--cv-density-mode, 0) * var(--cv-density-interval, 4px))}:host .mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-theme-text-primary-on-background)}:host .mdc-tab--active{font-variation-settings:"FILL" 1}:host[minwidth]{flex:0 0 auto}';
|
4
|
-
var
|
5
|
-
for (var t =
|
6
|
-
(s =
|
7
|
-
return
|
4
|
+
var h = Object.getOwnPropertyDescriptor, p = (o, r, l, c) => {
|
5
|
+
for (var t = c > 1 ? void 0 : c ? h(r, l) : r, a = o.length - 1, s; a >= 0; a--)
|
6
|
+
(s = o[a]) && (t = s(t) || t);
|
7
|
+
return t;
|
8
8
|
};
|
9
|
-
let
|
9
|
+
let e = class extends b {
|
10
10
|
};
|
11
|
-
|
12
|
-
|
11
|
+
e.styles = [v, m`${n(i)}`];
|
12
|
+
e = p([
|
13
13
|
d("cv-tab")
|
14
|
-
],
|
15
|
-
const
|
14
|
+
], e);
|
15
|
+
const u = e;
|
16
16
|
export {
|
17
|
-
|
18
|
-
|
17
|
+
e as CovalentTab,
|
18
|
+
u as default
|
19
19
|
};
|
package/text-lockup.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const o=require("./query-assigned-elements-8EurZY45.js"),n=require("./property-DYTC_2-m.js"),l=require("./class-map-DTzB8z-1.js");require("./icon.js");const y=".subtext--trailing{display:flex;flex-direction:column-reverse}.subtext{display:flex;align-items:center;--mdc-icon-size: 16px;color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height);margin-bottom:2px}.subtext cv-icon{margin-right:8px}slot{font-family:var(--mdc-typography-body1-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);margin-bottom:8px}.scale--large .subtext{--mdc-icon-size: 24px;font-family:var(--mdc-typography-body1-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);margin-bottom:2px}.scale--large slot{font-family:var(--mdc-typography-headline4-font-family);font-size:var(--mdc-typography-headline4-font-size);font-weight:var(--mdc-typography-headline4-font-weight);line-height:var(--mdc-typography-headline4-line-height);margin-bottom:8px}.subtext-state--positive .subtext{color:var(--mdc-theme-positive)}.subtext-state--negative .subtext{color:var(--mdc-theme-negative)}.subtext-state--caution .subtext{color:var(--mdc-theme-caution)}.subtext-state--active .subtext{color:var(--mdc-theme-accent)}";var h=Object.defineProperty,u=Object.getOwnPropertyDescriptor,a=(r,t,s,i)=>{for(var e=i>1?void 0:i?u(t,s):t,c=r.length-1,p;c>=0;c--)(p=r[c])&&(e=(i?p(t,s,e):p(e))||e);return i&&e&&h(t,s,e),e};exports.CovalentTextLockup=class extends o.s{constructor(){super(...arguments),this.scale="small",this.trailingSubText=!1}render(){const t={"subtext--trailing":this.trailingSubText};return t[`scale--${this.scale}`]=!0,this.state&&(t[`subtext-state--${this.state}`]=!0),o.x`<span class="${l.o(t)}"
|
2
2
|
><span class="subtext">${this.renderIcon()}${this.subText}</span
|
3
3
|
><slot></slot
|
4
4
|
></span>`}renderIcon(){return this.icon?o.x`<cv-icon>${this.icon}</cv-icon>`:o.A}};exports.CovalentTextLockup.styles=[o.i`
|
package/text-lockup.mjs
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
import {
|
1
|
+
import { r as h, i as y, s as m, x as l, A as g, e as f } from "./query-assigned-elements-D930kELM.mjs";
|
2
2
|
import { n as i } from "./property-DJzm_oB9.mjs";
|
3
|
-
import { o as d } from "./class-map-
|
3
|
+
import { o as d } from "./class-map-DPUylGZM.mjs";
|
4
4
|
import "./icon.mjs";
|
5
|
-
const
|
6
|
-
var
|
7
|
-
for (var e =
|
8
|
-
(p = o[c]) && (e = (
|
9
|
-
return
|
5
|
+
const v = ".subtext--trailing{display:flex;flex-direction:column-reverse}.subtext{display:flex;align-items:center;--mdc-icon-size: 16px;color:var(--mdc-theme-text-secondary-on-background);font-family:var(--mdc-typography-caption-font-family);font-size:var(--mdc-typography-caption-font-size);font-weight:var(--mdc-typography-caption-font-weight);line-height:var(--mdc-typography-caption-line-height);margin-bottom:2px}.subtext cv-icon{margin-right:8px}slot{font-family:var(--mdc-typography-body1-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);margin-bottom:8px}.scale--large .subtext{--mdc-icon-size: 24px;font-family:var(--mdc-typography-body1-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);margin-bottom:2px}.scale--large slot{font-family:var(--mdc-typography-headline4-font-family);font-size:var(--mdc-typography-headline4-font-size);font-weight:var(--mdc-typography-headline4-font-weight);line-height:var(--mdc-typography-headline4-line-height);margin-bottom:8px}.subtext-state--positive .subtext{color:var(--mdc-theme-positive)}.subtext-state--negative .subtext{color:var(--mdc-theme-negative)}.subtext-state--caution .subtext{color:var(--mdc-theme-caution)}.subtext-state--active .subtext{color:var(--mdc-theme-accent)}";
|
6
|
+
var u = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (o, r, n, s) => {
|
7
|
+
for (var e = s > 1 ? void 0 : s ? x(r, n) : r, c = o.length - 1, p; c >= 0; c--)
|
8
|
+
(p = o[c]) && (e = (s ? p(r, n, e) : p(e)) || e);
|
9
|
+
return s && e && u(r, n, e), e;
|
10
10
|
};
|
11
11
|
let t = class extends m {
|
12
12
|
constructor() {
|
@@ -26,8 +26,8 @@ let t = class extends m {
|
|
26
26
|
}
|
27
27
|
};
|
28
28
|
t.styles = [
|
29
|
-
|
30
|
-
${
|
29
|
+
y`
|
30
|
+
${h(v)}
|
31
31
|
`
|
32
32
|
];
|
33
33
|
a([
|
package/textarea.js
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("./query-assigned-elements-8EurZY45.js"),u=require("./tslib.es6-CHeFCc6E.js"),d=require("./textfield-Byf2gP_G.js"),h=require("./property-DYTC_2-m.js"),p=require("./query-Dv2F3m_t.js"),x=require("./class-map-DTzB8z-1.js"),s=require("./if-defined-CZCqOAYs.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
|
-
*/const
|
6
|
-
<label class="mdc-text-field mdc-text-field--textarea ${
|
5
|
+
*/const f={fromAttribute(e){return e===null?!1:e===""?!0:e},toAttribute(e){return typeof e=="boolean"?e?"":null:e}};class o extends d.TextFieldBase{constructor(){super(...arguments),this.rows=2,this.cols=20,this.charCounter=!1}render(){const r=this.charCounter&&this.maxLength!==-1,n=r&&this.charCounter==="internal",i=r&&!n,t=!!this.helper||!!this.validationMessage||i,a={"mdc-text-field--disabled":this.disabled,"mdc-text-field--no-label":!this.label,"mdc-text-field--filled":!this.outlined,"mdc-text-field--outlined":this.outlined,"mdc-text-field--end-aligned":this.endAligned,"mdc-text-field--with-internal-counter":n};return l.x`
|
6
|
+
<label class="mdc-text-field mdc-text-field--textarea ${x.o(a)}">
|
7
7
|
${this.renderRipple()}
|
8
8
|
${this.outlined?this.renderOutline():this.renderLabel()}
|
9
9
|
${this.renderInput()}
|
@@ -15,7 +15,7 @@
|
|
15
15
|
<textarea
|
16
16
|
aria-labelledby=${s.l(r)}
|
17
17
|
class="mdc-text-field__input"
|
18
|
-
.value="${
|
18
|
+
.value="${d.l(this.value)}"
|
19
19
|
rows="${this.rows}"
|
20
20
|
cols="${this.cols}"
|
21
21
|
?disabled="${this.disabled}"
|
@@ -29,8 +29,8 @@
|
|
29
29
|
autocapitalize="${s.l(t)}"
|
30
30
|
@input="${this.handleInputChange}"
|
31
31
|
@blur="${this.onInputBlur}">
|
32
|
-
</textarea>`}}u.__decorate([
|
32
|
+
</textarea>`}}u.__decorate([p.i("textarea")],o.prototype,"formElement",void 0);u.__decorate([h.n({type:Number})],o.prototype,"rows",void 0);u.__decorate([h.n({type:Number})],o.prototype,"cols",void 0);u.__decorate([h.n({converter:f})],o.prototype,"charCounter",void 0);/**
|
33
33
|
* @license
|
34
34
|
* Copyright 2021 Google LLC
|
35
35
|
* SPDX-LIcense-Identifier: Apache-2.0
|
36
|
-
*/const m=l.i`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`;var b=Object.
|
36
|
+
*/const m=l.i`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`;var b=Object.getOwnPropertyDescriptor,$=(e,r,n,i)=>{for(var t=i>1?void 0:i?b(r,n):r,a=e.length-1,c;a>=0;a--)(c=e[a])&&(t=c(t)||t);return t};exports.CovalentTextArea=class extends o{};exports.CovalentTextArea.styles=[d.styles,m,l.i`${l.r(d.styles$1)}`];exports.CovalentTextArea=$([l.e("cv-textarea")],exports.CovalentTextArea);const C=exports.CovalentTextArea;exports.default=C;
|