@covalent/components 9.1.0 → 9.1.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-DjF3Plf2.mjs → _commonjsHelpers-HP5nalso.mjs} +2 -2
- package/action-ribbon.js +2 -2
- package/action-ribbon.mjs +24 -24
- package/alert.js +3 -3
- package/alert.mjs +4 -4
- package/app-shell.js +1 -1
- package/app-shell.mjs +6 -6
- package/async-directive-2AOdKBUW.mjs +66 -0
- package/async-directive-DZ3MjSIj.js +5 -0
- package/badge.js +1 -1
- package/badge.mjs +6 -6
- package/{base-element-aUDWLn36.js → base-element-5ZU-p99q.js} +1 -1
- package/{base-element-C-U4OfWx.mjs → base-element-CzNmpVoz.mjs} +1 -1
- package/button.js +1 -1
- package/button.mjs +24 -24
- package/card.js +1 -1
- package/card.mjs +12 -12
- package/check-list-item.js +7 -7
- package/check-list-item.mjs +31 -31
- package/checkbox.js +1 -1
- package/checkbox.mjs +9 -9
- package/{chip-C8L37ovG.mjs → chip-5QP7xPTY.mjs} +6 -6
- package/{chip-BsDYOEFW.js → chip-CitHXhY7.js} +1 -1
- package/chip-set.js +1 -1
- package/chip-set.mjs +114 -114
- package/chip.js +1 -1
- package/chip.mjs +2 -2
- package/circular-progress.js +4 -4
- package/circular-progress.mjs +10 -10
- package/class-map-BHl5MHd7.mjs +36 -0
- package/class-map-PsUYVqvf.js +5 -0
- package/{code-editor-CSH3MdBF.js → code-editor-CCUZsYkN.js} +135 -137
- package/{code-editor-Bshyfjyn.mjs → code-editor-JaW-06cH.mjs} +8151 -8113
- package/code-editor.js +1 -1
- package/code-editor.mjs +2 -2
- package/code-snippet.js +1 -1
- package/code-snippet.mjs +7 -7
- package/{dialog-BoNH4r3n.mjs → dialog-BVmWYLqR.mjs} +194 -194
- package/{dialog-LUOzoMeO.js → dialog-DzaPP3Vt.js} +9 -9
- package/dialog.js +1 -1
- package/dialog.mjs +2 -2
- package/{directive-oAbCiebi.mjs → directive-B76A7YXI.mjs} +4 -4
- package/directive-C_VV3qwo.js +5 -0
- package/directive-helpers-6HCt_-zj.mjs +11 -0
- package/directive-helpers-BnUMbYHh.js +5 -0
- package/drawer.js +1 -1
- package/drawer.mjs +2 -2
- package/empty-state.js +1 -1
- package/empty-state.mjs +7 -7
- package/{event-options-CNykeE2u.mjs → event-options-D44mpm5S.mjs} +1 -1
- package/{event-options-BH8ks-kz.js → event-options-IG-2g8HU.js} +1 -1
- package/expansion-panel-item.js +1 -1
- package/expansion-panel-item.mjs +4 -4
- package/expansion-panel.js +1 -1
- package/expansion-panel.mjs +1 -1
- package/focused-page.js +1 -1
- package/focused-page.mjs +8 -8
- package/form-element--PS8uSRI.js +5 -0
- package/form-element-Dn0Lerng.mjs +50 -0
- package/formfield.js +4 -4
- package/formfield.mjs +13 -13
- package/{foundation-qQ4jzaAu.mjs → foundation-BYhAXCW_.mjs} +17 -15
- package/{foundation-PL3XY-m_.mjs → foundation-D6JHa7Lg.mjs} +4 -4
- package/{foundation-pgmPu2iJ.js → foundation-aT_gy6X8.js} +1 -1
- package/{foundation-CySCCTUE.js → foundation-sIsx2I_x.js} +2 -2
- package/full-screen-dialog.js +2 -2
- package/full-screen-dialog.mjs +12 -12
- package/{html-DrhRpsz9.mjs → html-DhKW0KfF.mjs} +1 -1
- package/{html-DUGRoHaj.js → html-S7zzCKH0.js} +1 -1
- package/icon/_icon-list.d.ts +4 -0
- package/icon/_icon-list.d.ts.map +1 -0
- package/icon/icon-demo.d.ts +14 -0
- package/icon/icon-demo.d.ts.map +1 -0
- package/icon-button-toggle.js +5 -5
- package/icon-button-toggle.mjs +35 -35
- package/icon-button.js +2 -2
- package/icon-button.mjs +28 -28
- package/icon-check-toggle.js +1 -1
- package/icon-check-toggle.mjs +6 -6
- package/icon-lockup.js +5 -5
- package/icon-lockup.mjs +6 -6
- package/icon-radio-toggle.js +4 -4
- package/icon-radio-toggle.mjs +8 -8
- package/icon.js +1 -1
- package/icon.mjs +14 -14
- package/{if-defined-D8C6ewRn.js → if-defined-B7G84qob.js} +1 -1
- package/{if-defined-BsNkRMMG.mjs → if-defined-DN7whKwy.mjs} +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +10 -1
- package/index.mjs +450 -112
- package/{javascript-DKtDcqDi.mjs → javascript-BtkevR81.mjs} +1 -1
- package/{javascript-54eqLOAw.js → javascript-fH54qAGk.js} +1 -1
- package/linear-progress.js +7 -7
- package/linear-progress.mjs +17 -17
- package/{list-item-BZVW1fmJ.js → list-item-BQ6SDTvW.js} +1 -1
- package/{list-item-DCzzLVZh.mjs → list-item-DuBDCnZ-.mjs} +1 -1
- package/list-item.js +2 -2
- package/list-item.mjs +16 -16
- package/list.js +1 -1
- package/list.mjs +16 -16
- package/menu.js +2 -2
- package/menu.mjs +11 -11
- package/{mwc-checkbox.css-Cd0yCOHu.js → mwc-checkbox.css-BV3dyB4C.js} +1 -1
- package/{mwc-checkbox.css-MBOzkrQg.mjs → mwc-checkbox.css-CNoj0V14.mjs} +31 -31
- package/{mwc-drawer-base-Dgs9327G.mjs → mwc-drawer-base-A-4s_ZnE.mjs} +10 -10
- package/{mwc-drawer-base-D-48lqfn.js → mwc-drawer-base-DWczEPvb.js} +3 -3
- package/{mwc-icon-BZRds8SY.mjs → mwc-icon-DTCUplqR.mjs} +2 -2
- package/{mwc-icon-BumH81hp.js → mwc-icon-Xgr698ax.js} +1 -1
- package/{mwc-icon-button.css-DJMY7U7e.mjs → mwc-icon-button.css-DJiDOS0_.mjs} +1 -1
- package/{mwc-icon-button.css-BtgKBOl3.js → mwc-icon-button.css-DOVWWyjA.js} +1 -1
- package/{mwc-line-ripple-directive-zhm5Zc8i.mjs → mwc-line-ripple-directive-TO37-41n.mjs} +34 -34
- package/{mwc-line-ripple-directive-DvPWr3ER.js → mwc-line-ripple-directive-r80jluoU.js} +4 -4
- package/{mwc-list-item.css-CtRq5wSu.js → mwc-list-item.css-CO1JlA8e.js} +10 -10
- package/{mwc-list-item.css-g34xqhLC.mjs → mwc-list-item.css-Cg9onxQ-.mjs} +11 -11
- package/{mwc-list.css-DFOdJyFB.mjs → mwc-list.css-C_-DVEme.mjs} +102 -102
- package/{mwc-list.css-CaMJWsDp.js → mwc-list.css-Deg9oBaO.js} +1 -1
- package/{mwc-menu.css-pxcxlTrh.js → mwc-menu.css-Dvr-f3_T.js} +18 -18
- package/{mwc-menu.css-BEiPghgR.mjs → mwc-menu.css-qpZxKN-g.mjs} +306 -306
- package/{mwc-radio.css-XRx0vL1k.mjs → mwc-radio.css-BiHC1R8I.mjs} +11 -11
- package/{mwc-radio.css-CVMtIq-L.js → mwc-radio.css-DjO4Rn44.js} +1 -1
- package/{mwc-slider.css-WrkrmqkL.js → mwc-slider.css-DFOaS04S.js} +13 -13
- package/{mwc-slider.css-2Bqk43z7.mjs → mwc-slider.css-Deh1__Ar.mjs} +290 -279
- package/{mwc-tab.css-B9yQpkYf.mjs → mwc-tab.css-2UrPKkNg.mjs} +34 -34
- package/{mwc-tab.css-CgdXMZBB.js → mwc-tab.css-sq5suZKe.js} +11 -11
- package/{mwc-top-app-bar-base-B0EW9eNk.mjs → mwc-top-app-bar-base-BIZGhVtM.mjs} +40 -40
- package/{mwc-top-app-bar-base-CSXRBOiX.js → mwc-top-app-bar-base-DUdOcIjS.js} +7 -7
- package/nav-list-item.js +3 -3
- package/nav-list-item.mjs +18 -18
- package/notebook-cell.js +1 -1
- package/notebook-cell.mjs +25 -25
- package/package.json +6 -1
- package/{property-DYTC_2-m.js → property-BRKnMYJe.js} +1 -1
- package/{python-CEXbOLXn.mjs → python-BkZeja0y.mjs} +1 -1
- package/{python-CzGtlN7c.js → python-C2_KOh3o.js} +1 -1
- package/query-BvlE-gMJ.js +5 -0
- package/query-DSO61t36.mjs +15 -0
- package/query-assigned-elements-BQszEgac.js +31 -0
- package/query-assigned-elements-DhyCP_2z.mjs +591 -0
- package/query-assigned-nodes-9DFnkxV8.js +5 -0
- package/query-assigned-nodes-B-jCihdA.mjs +17 -0
- package/radio-list-item.js +5 -5
- package/radio-list-item.mjs +24 -24
- package/radio.js +1 -1
- package/radio.mjs +9 -9
- package/{ripple-handlers-i3WPEBiO.mjs → ripple-handlers-BAdg-fJB.mjs} +72 -72
- package/{ripple-handlers-CzfSBjWo.js → ripple-handlers-BDmOLx8c.js} +5 -5
- package/select.js +12 -12
- package/select.mjs +119 -118
- package/side-sheet.js +1 -1
- package/side-sheet.mjs +8 -8
- package/slider-range.js +7 -7
- package/slider-range.mjs +39 -39
- package/slider.js +1 -1
- package/slider.mjs +18 -18
- package/snackbar.js +8 -8
- package/snackbar.mjs +21 -21
- package/{state-DaD9o2aK.mjs → state-B_tK3mBm.mjs} +2 -2
- package/{state-C3HoXfoa.js → state-Csv4sdJA.js} +1 -1
- package/status-dialog.js +1 -1
- package/status-dialog.mjs +7 -7
- package/status-header-item.js +1 -1
- package/status-header-item.mjs +18 -18
- package/status-header.js +1 -1
- package/status-header.mjs +2 -2
- package/style-map-3QfsA_1O.js +5 -0
- package/style-map-QxIETvrs.mjs +42 -0
- package/switch.js +6 -6
- package/switch.mjs +40 -40
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +93 -93
- package/tab.js +1 -1
- package/tab.mjs +5 -5
- package/text-lockup.js +1 -1
- package/text-lockup.mjs +11 -11
- package/textarea.js +6 -6
- package/textarea.mjs +22 -22
- package/{textfield-BwmiygD8.js → textfield-CO6CFCCn.js} +30 -30
- package/{textfield-C6sUZIeA.mjs → textfield-WSgoABZn.mjs} +103 -103
- package/textfield.js +2 -2
- package/textfield.mjs +9 -9
- package/toolbar.js +1 -1
- package/toolbar.mjs +2 -2
- package/tooltip.js +3 -3
- package/tooltip.mjs +56 -55
- package/{top-app-bar-4SA3DjLX.mjs → top-app-bar-BvXNELe9.mjs} +1 -1
- package/{top-app-bar-CGjBuyiD.js → top-app-bar-Cvp1aN42.js} +1 -1
- package/top-app-bar-fixed.js +8 -8
- package/top-app-bar-fixed.mjs +35 -35
- package/top-app-bar.js +1 -1
- package/top-app-bar.mjs +12 -12
- package/tree-list-item.js +1 -1
- package/tree-list-item.mjs +5 -5
- package/tree-list.js +1 -1
- package/tree-list.mjs +5 -5
- package/tslib.es6-CISSdiiH.mjs +75 -0
- package/{typescript-DotYReBq.mjs → typescript-BUN0g4m9.mjs} +1 -1
- package/{typescript-D_zVB3gH.js → typescript-DzngJr4U.js} +1 -1
- package/typography.js +1 -1
- package/typography.mjs +10 -10
- package/async-directive-Cx1B9M5C.mjs +0 -66
- package/async-directive-y3fBDDSk.js +0 -5
- package/class-map-C1SJpero.mjs +0 -36
- package/class-map-C8G1ALWK.js +0 -5
- package/directive-C7oCP5Bh.js +0 -5
- package/directive-helpers-CllkNDrI.mjs +0 -11
- package/directive-helpers-Duf3sfLn.js +0 -5
- package/form-element-CxSqbssX.mjs +0 -50
- package/form-element-DwqUbs65.js +0 -5
- package/query-BBDQWsft.mjs +0 -15
- package/query-BxDs8ftQ.js +0 -5
- package/query-assigned-elements-4CafVNR8.js +0 -31
- package/query-assigned-elements-DCt2xozt.mjs +0 -591
- package/query-assigned-nodes-B9zBfkh6.mjs +0 -17
- package/query-assigned-nodes-CckKHm2z.js +0 -5
- package/style-map-BJBXlSqn.js +0 -5
- package/style-map-CCsABR5m.mjs +0 -42
- package/tslib.es6-pPsSiLLK.mjs +0 -75
package/tab-bar.mjs
CHANGED
@@ -1,9 +1,9 @@
|
|
1
|
-
import {
|
2
|
-
import { e as y, x as I, i as O } from "./query-assigned-elements-
|
3
|
-
import {
|
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 v, f as D } from "./tslib.es6-CISSdiiH.mjs";
|
2
|
+
import { e as y, x as I, i as O } from "./query-assigned-elements-DhyCP_2z.mjs";
|
3
|
+
import { s as w, T as P } from "./mwc-tab.css-2UrPKkNg.mjs";
|
4
|
+
import { B as x } from "./base-element-CzNmpVoz.mjs";
|
5
|
+
import { e as M } from "./event-options-D44mpm5S.mjs";
|
6
|
+
import { i as g } from "./query-DSO61t36.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(o, e) {
|
44
|
+
var t = o.matches || o.webkitMatchesSelector || o.msMatchesSelector;
|
45
|
+
return t.call(o, e);
|
46
46
|
}
|
47
47
|
/**
|
48
48
|
* @license
|
@@ -69,36 +69,36 @@ function Y(n, e) {
|
|
69
69
|
var N = (
|
70
70
|
/** @class */
|
71
71
|
function() {
|
72
|
-
function
|
72
|
+
function o(e) {
|
73
73
|
e === void 0 && (e = {}), this.adapter = e;
|
74
74
|
}
|
75
|
-
return Object.defineProperty(
|
75
|
+
return Object.defineProperty(o, "cssClasses", {
|
76
76
|
get: function() {
|
77
77
|
return {};
|
78
78
|
},
|
79
79
|
enumerable: !1,
|
80
80
|
configurable: !0
|
81
|
-
}), Object.defineProperty(
|
81
|
+
}), Object.defineProperty(o, "strings", {
|
82
82
|
get: function() {
|
83
83
|
return {};
|
84
84
|
},
|
85
85
|
enumerable: !1,
|
86
86
|
configurable: !0
|
87
|
-
}), Object.defineProperty(
|
87
|
+
}), Object.defineProperty(o, "numbers", {
|
88
88
|
get: function() {
|
89
89
|
return {};
|
90
90
|
},
|
91
91
|
enumerable: !1,
|
92
92
|
configurable: !0
|
93
|
-
}), Object.defineProperty(
|
93
|
+
}), Object.defineProperty(o, "defaultAdapter", {
|
94
94
|
get: function() {
|
95
95
|
return {};
|
96
96
|
},
|
97
97
|
enumerable: !1,
|
98
98
|
configurable: !0
|
99
|
-
}),
|
100
|
-
},
|
101
|
-
},
|
99
|
+
}), o.prototype.init = function() {
|
100
|
+
}, o.prototype.destroy = function() {
|
101
|
+
}, o;
|
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 o(e) {
|
160
160
|
this.adapter = e;
|
161
161
|
}
|
162
|
-
return
|
162
|
+
return o;
|
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(o) {
|
190
|
+
S(e, o);
|
191
191
|
function e() {
|
192
|
-
return
|
192
|
+
return o !== null && o.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(), n = this.adapter.getScrollAreaScrollLeft(), l = this.clampScrollValue(r.right - t);
|
199
199
|
return {
|
200
200
|
finalScrollPosition: l,
|
201
|
-
scrollDelta: l -
|
201
|
+
scrollDelta: l - n
|
202
202
|
};
|
203
203
|
}, e.prototype.incrementScrollRTL = function(t) {
|
204
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
204
|
+
var r = this.adapter.getScrollAreaScrollLeft(), n = this.clampScrollValue(r - t);
|
205
205
|
return {
|
206
|
-
finalScrollPosition:
|
207
|
-
scrollDelta:
|
206
|
+
finalScrollPosition: n,
|
207
|
+
scrollDelta: n - 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(o) {
|
248
|
+
S(e, o);
|
249
249
|
function e() {
|
250
|
-
return
|
250
|
+
return o !== null && o.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(), n = this.clampScrollValue(-t);
|
257
257
|
return {
|
258
|
-
finalScrollPosition:
|
259
|
-
scrollDelta:
|
258
|
+
finalScrollPosition: n,
|
259
|
+
scrollDelta: n - r
|
260
260
|
};
|
261
261
|
}, e.prototype.incrementScrollRTL = function(t) {
|
262
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
262
|
+
var r = this.adapter.getScrollAreaScrollLeft(), n = this.clampScrollValue(r - t);
|
263
263
|
return {
|
264
|
-
finalScrollPosition:
|
265
|
-
scrollDelta:
|
264
|
+
finalScrollPosition: n,
|
265
|
+
scrollDelta: n - 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(o) {
|
306
|
+
S(e, o);
|
307
307
|
function e() {
|
308
|
-
return
|
308
|
+
return o !== null && o.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(), n = this.clampScrollValue(t);
|
315
315
|
return {
|
316
|
-
finalScrollPosition:
|
317
|
-
scrollDelta: r -
|
316
|
+
finalScrollPosition: n,
|
317
|
+
scrollDelta: r - n
|
318
318
|
};
|
319
319
|
}, e.prototype.incrementScrollRTL = function(t) {
|
320
|
-
var r = this.adapter.getScrollAreaScrollLeft(),
|
320
|
+
var r = this.adapter.getScrollAreaScrollLeft(), n = this.clampScrollValue(r + t);
|
321
321
|
return {
|
322
|
-
finalScrollPosition:
|
323
|
-
scrollDelta: r -
|
322
|
+
finalScrollPosition: n,
|
323
|
+
scrollDelta: r - n
|
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(o) {
|
364
|
+
S(e, o);
|
365
365
|
function e(t) {
|
366
|
-
var r =
|
366
|
+
var r = o.call(this, v(v({}, 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 n = r[1], l = D(n.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(), n = this.clampScrollValue(t), l = n - r;
|
477
477
|
this.animate({
|
478
|
-
finalScrollPosition:
|
478
|
+
finalScrollPosition: n,
|
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(), n = t + r, l = this.clampScrollValue(n), 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 n = this.adapter.computeScrollAreaClientRect(), l = this.adapter.computeScrollContentClientRect(), a = Math.round(l.right - n.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 o(e) {
|
635
635
|
e === void 0 && (e = {}), this.adapter = e;
|
636
636
|
}
|
637
|
-
return Object.defineProperty(
|
637
|
+
return Object.defineProperty(o, "cssClasses", {
|
638
638
|
get: function() {
|
639
639
|
return {};
|
640
640
|
},
|
641
641
|
enumerable: !1,
|
642
642
|
configurable: !0
|
643
|
-
}), Object.defineProperty(
|
643
|
+
}), Object.defineProperty(o, "strings", {
|
644
644
|
get: function() {
|
645
645
|
return {};
|
646
646
|
},
|
647
647
|
enumerable: !1,
|
648
648
|
configurable: !0
|
649
|
-
}), Object.defineProperty(
|
649
|
+
}), Object.defineProperty(o, "numbers", {
|
650
650
|
get: function() {
|
651
651
|
return {};
|
652
652
|
},
|
653
653
|
enumerable: !1,
|
654
654
|
configurable: !0
|
655
|
-
}), Object.defineProperty(
|
655
|
+
}), Object.defineProperty(o, "defaultAdapter", {
|
656
656
|
get: function() {
|
657
657
|
return {};
|
658
658
|
},
|
659
659
|
enumerable: !1,
|
660
660
|
configurable: !0
|
661
|
-
}),
|
662
|
-
},
|
663
|
-
},
|
661
|
+
}), o.prototype.init = function() {
|
662
|
+
}, o.prototype.destroy = function() {
|
663
|
+
}, o;
|
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(o) {
|
746
|
+
S(e, o);
|
747
747
|
function e(t) {
|
748
|
-
var r =
|
748
|
+
var r = o.call(this, v(v({}, 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 n;
|
820
|
+
r !== -1 && (this.adapter.deactivateTabAtIndex(r), n = this.adapter.getTabIndicatorClientRectAtIndex(r)), this.adapter.activateTabAtIndex(t, n), 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 n = this.determineTargetFromKey(this.adapter.getPreviousActiveTabIndex(), r);
|
829
|
+
this.adapter.setActiveTab(n), this.scrollIntoView(n);
|
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 n = this.determineTargetFromKey(l, r);
|
836
|
+
this.adapter.focusTabAtIndex(n), this.scrollIntoView(n);
|
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 n = this.isRTL(), l = this.adapter.getTabListLength() - 1, a = r === i.END_KEY, s = r === i.ARROW_LEFT_KEY && !n || r === i.ARROW_RIGHT_KEY && n, u = r === i.ARROW_RIGHT_KEY && !n || r === i.ARROW_LEFT_KEY && n, 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, n, l) {
|
861
|
+
var a = this.adapter.getTabDimensionsAtIndex(r), s = a.contentLeft - n - l, u = a.contentRight - n, 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, n, l, a) {
|
864
|
+
var s = this.adapter.getTabDimensionsAtIndex(r), u = a - s.contentLeft - n, c = a - s.contentRight - n - 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, n, l) {
|
867
|
+
var a = r.rootLeft - n, s = r.rootRight - n - 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, n, l, a) {
|
870
|
+
var s = a - r.rootLeft - l - n, u = a - r.rootRight - n, 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(), n = this.adapter.getOffsetWidth(), l = this.adapter.getTabDimensionsAtIndex(t), a = this.findAdjacentTabIndexClosestToEdge(t, l, r, n);
|
882
882
|
if (this.indexIsInRange(a)) {
|
883
|
-
var s = this.calculateScrollIncrement(t, a, r,
|
883
|
+
var s = this.calculateScrollIncrement(t, a, r, n);
|
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(), n = this.adapter.getOffsetWidth(), l = this.adapter.getTabDimensionsAtIndex(t), a = this.adapter.getScrollContentWidth(), s = this.findAdjacentTabIndexClosestToEdgeRTL(t, l, r, n, a);
|
888
888
|
if (this.indexIsInRange(s)) {
|
889
|
-
var u = this.calculateScrollIncrementRTL(t, s, r,
|
889
|
+
var u = this.calculateScrollIncrementRTL(t, s, r, n, 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 T extends x {
|
901
901
|
constructor() {
|
902
902
|
super(...arguments), this.mdcFoundationClass = L, this.activeIndex = 0, this._previousActiveIndex = -1;
|
903
903
|
}
|
@@ -987,31 +987,31 @@ class v extends x {
|
|
987
987
|
}
|
988
988
|
f([
|
989
989
|
g(".mdc-tab-bar")
|
990
|
-
],
|
990
|
+
], T.prototype, "mdcRoot", void 0);
|
991
991
|
f([
|
992
992
|
g("mwc-tab-scroller")
|
993
|
-
],
|
993
|
+
], T.prototype, "scrollerElement", void 0);
|
994
994
|
f([
|
995
995
|
g("slot")
|
996
|
-
],
|
996
|
+
], T.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
|
+
], T.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
1008
|
const z = 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 k = Object.defineProperty, q = Object.getOwnPropertyDescriptor, J = (
|
1010
|
-
for (var
|
1011
|
-
(a =
|
1012
|
-
return r &&
|
1009
|
+
var k = Object.defineProperty, q = Object.getOwnPropertyDescriptor, J = (o, e, t, r) => {
|
1010
|
+
for (var n = r > 1 ? void 0 : r ? q(e, t) : e, l = o.length - 1, a; l >= 0; l--)
|
1011
|
+
(a = o[l]) && (n = (r ? a(e, t, n) : a(n)) || n);
|
1012
|
+
return r && n && k(e, t, n), n;
|
1013
1013
|
};
|
1014
|
-
let A = class extends
|
1014
|
+
let A = class extends T {
|
1015
1015
|
};
|
1016
1016
|
A.styles = [z];
|
1017
1017
|
A = J([
|
package/tab.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./query-assigned-elements-
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("./query-assigned-elements-BQszEgac.js"),n=require("./mwc-tab.css-sq5suZKe.js"),b=":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)}:host .mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-theme-text-primary-on-background)}";var v=Object.defineProperty,d=Object.getOwnPropertyDescriptor,u=(o,t,r,a)=>{for(var e=a>1?void 0:a?d(t,r):t,l=o.length-1,s;l>=0;l--)(s=o[l])&&(e=(a?s(t,r,e):s(e))||e);return a&&e&&v(t,r,e),e};exports.CovalentTab=class extends n.TabBase{};exports.CovalentTab.styles=[n.styles,c.i`${c.r(b)}`];exports.CovalentTab=u([c.e("cv-tab")],exports.CovalentTab);const m=exports.CovalentTab;exports.default=m;
|
package/tab.mjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { i as m, r as
|
2
|
-
import {
|
1
|
+
import { i as m, r as n, e as b } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
|
+
import { s as d, T as v } from "./mwc-tab.css-2UrPKkNg.mjs";
|
3
3
|
const f = ":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)}:host .mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mdc-theme-text-primary-on-background)}";
|
4
4
|
var p = Object.defineProperty, u = Object.getOwnPropertyDescriptor, _ = (l, e, o, a) => {
|
5
5
|
for (var t = a > 1 ? void 0 : a ? u(e, o) : e, c = l.length - 1, s; c >= 0; c--)
|
6
6
|
(s = l[c]) && (t = (a ? s(e, o, t) : s(t)) || t);
|
7
7
|
return a && t && p(e, o, t), t;
|
8
8
|
};
|
9
|
-
let r = class extends
|
9
|
+
let r = class extends v {
|
10
10
|
};
|
11
|
-
r.styles = [
|
11
|
+
r.styles = [d, m`${n(f)}`];
|
12
12
|
r = _([
|
13
|
-
|
13
|
+
b("cv-tab")
|
14
14
|
], r);
|
15
15
|
const h = r;
|
16
16
|
export {
|
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-BQszEgac.js"),n=require("./property-BRKnMYJe.js"),l=require("./class-map-PsUYVqvf.js"),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,13 +1,13 @@
|
|
1
|
-
import {
|
1
|
+
import { i as h, r as y, s as m, x as l, A as g, e as f } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
2
|
import { n as i } from "./property-DJzm_oB9.mjs";
|
3
|
-
import { o as d } from "./class-map-
|
4
|
-
const
|
5
|
-
var
|
6
|
-
for (var e =
|
7
|
-
(p = o[c]) && (e = (
|
8
|
-
return
|
3
|
+
import { o as d } from "./class-map-BHl5MHd7.mjs";
|
4
|
+
const u = ".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)}";
|
5
|
+
var v = Object.defineProperty, x = Object.getOwnPropertyDescriptor, a = (o, r, s, n) => {
|
6
|
+
for (var e = n > 1 ? void 0 : n ? x(r, s) : r, c = o.length - 1, p; c >= 0; c--)
|
7
|
+
(p = o[c]) && (e = (n ? p(r, s, e) : p(e)) || e);
|
8
|
+
return n && e && v(r, s, e), e;
|
9
9
|
};
|
10
|
-
let t = class extends
|
10
|
+
let t = class extends m {
|
11
11
|
constructor() {
|
12
12
|
super(...arguments), this.scale = "small", this.trailingSubText = !1;
|
13
13
|
}
|
@@ -21,12 +21,12 @@ let t = class extends h {
|
|
21
21
|
></span>`;
|
22
22
|
}
|
23
23
|
renderIcon() {
|
24
|
-
return this.icon ? l`<cv-icon>${this.icon}</cv-icon>` :
|
24
|
+
return this.icon ? l`<cv-icon>${this.icon}</cv-icon>` : g;
|
25
25
|
}
|
26
26
|
};
|
27
27
|
t.styles = [
|
28
|
-
|
29
|
-
${
|
28
|
+
h`
|
29
|
+
${y(u)}
|
30
30
|
`
|
31
31
|
];
|
32
32
|
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-BQszEgac.js"),u=require("./tslib.es6-CHeFCc6E.js"),o=require("./textfield-CO6CFCCn.js"),c=require("./property-BRKnMYJe.js"),f=require("./query-BvlE-gMJ.js"),p=require("./class-map-PsUYVqvf.js"),s=require("./if-defined-B7G84qob.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
5
|
-
*/const x={fromAttribute(e){return e===null?!1:e===""?!0:e},toAttribute(e){return typeof e=="boolean"?e?"":null:e}};class
|
6
|
-
<label class="mdc-text-field mdc-text-field--textarea ${
|
5
|
+
*/const x={fromAttribute(e){return e===null?!1:e===""?!0:e},toAttribute(e){return typeof e=="boolean"?e?"":null:e}};class d extends o.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 ${p.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="${o.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([f.i("textarea")],d.prototype,"formElement",void 0);u.__decorate([c.n({type:Number})],d.prototype,"rows",void 0);u.__decorate([c.n({type:Number})],d.prototype,"cols",void 0);u.__decorate([c.n({converter:x})],d.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.defineProperty,$=Object.getOwnPropertyDescriptor,C=(e,r,n,i)=>{for(var t=i>1?void 0:i?$(r,n):r,a=e.length-1,h;a>=0;a--)(h=e[a])&&(t=(i?h(r,n,t):h(t))||t);return i&&t&&b(r,n,t),t};exports.CovalentTextArea=class extends
|
36
|
+
*/const m=l.i`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`;var b=Object.defineProperty,$=Object.getOwnPropertyDescriptor,C=(e,r,n,i)=>{for(var t=i>1?void 0:i?$(r,n):r,a=e.length-1,h;a>=0;a--)(h=e[a])&&(t=(i?h(r,n,t):h(t))||t);return i&&t&&b(r,n,t),t};exports.CovalentTextArea=class extends d{};exports.CovalentTextArea.styles=[o.styles,m,l.i`${l.r(o.styles$1)}`];exports.CovalentTextArea=C([l.e("cv-textarea")],exports.CovalentTextArea);const _=exports.CovalentTextArea;exports.default=_;
|
package/textarea.mjs
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
import { x as c, i as
|
2
|
-
import {
|
3
|
-
import { T as x, l as $, s as b, a as C } from "./textfield-
|
1
|
+
import { x as c, i as f, r as p, e as m } from "./query-assigned-elements-DhyCP_2z.mjs";
|
2
|
+
import { b as o } from "./tslib.es6-CISSdiiH.mjs";
|
3
|
+
import { T as x, l as $, s as b, a as C } from "./textfield-WSgoABZn.mjs";
|
4
4
|
import { n as u } from "./property-DJzm_oB9.mjs";
|
5
|
-
import { i as y } from "./query-
|
6
|
-
import { o as g } from "./class-map-
|
7
|
-
import { l as s } from "./if-defined-
|
5
|
+
import { i as y } from "./query-DSO61t36.mjs";
|
6
|
+
import { o as g } from "./class-map-BHl5MHd7.mjs";
|
7
|
+
import { l as s } from "./if-defined-DN7whKwy.mjs";
|
8
8
|
/**
|
9
9
|
* @license
|
10
10
|
* Copyright 2019 Google LLC
|
11
11
|
* SPDX-License-Identifier: Apache-2.0
|
12
12
|
*/
|
13
|
-
const
|
13
|
+
const _ = {
|
14
14
|
fromAttribute(e) {
|
15
15
|
return e === null ? !1 : e === "" ? !0 : e;
|
16
16
|
},
|
@@ -67,37 +67,37 @@ class a extends x {
|
|
67
67
|
</textarea>`;
|
68
68
|
}
|
69
69
|
}
|
70
|
-
|
70
|
+
o([
|
71
71
|
y("textarea")
|
72
72
|
], a.prototype, "formElement", void 0);
|
73
|
-
|
73
|
+
o([
|
74
74
|
u({ type: Number })
|
75
75
|
], a.prototype, "rows", void 0);
|
76
|
-
|
76
|
+
o([
|
77
77
|
u({ type: Number })
|
78
78
|
], a.prototype, "cols", void 0);
|
79
|
-
|
80
|
-
u({ converter:
|
79
|
+
o([
|
80
|
+
u({ converter: _ })
|
81
81
|
], a.prototype, "charCounter", void 0);
|
82
82
|
/**
|
83
83
|
* @license
|
84
84
|
* Copyright 2021 Google LLC
|
85
85
|
* SPDX-LIcense-Identifier: Apache-2.0
|
86
86
|
*/
|
87
|
-
const
|
88
|
-
var
|
87
|
+
const O = f`.mdc-text-field{height:100%}.mdc-text-field__input{resize:none}`;
|
88
|
+
var v = Object.defineProperty, L = Object.getOwnPropertyDescriptor, w = (e, r, n, i) => {
|
89
89
|
for (var t = i > 1 ? void 0 : i ? L(r, n) : r, l = e.length - 1, h; l >= 0; l--)
|
90
90
|
(h = e[l]) && (t = (i ? h(r, n, t) : h(t)) || t);
|
91
|
-
return i && t &&
|
91
|
+
return i && t && v(r, n, t), t;
|
92
92
|
};
|
93
|
-
let
|
93
|
+
let d = class extends a {
|
94
94
|
};
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
],
|
99
|
-
const B =
|
95
|
+
d.styles = [b, O, f`${p(C)}`];
|
96
|
+
d = w([
|
97
|
+
m("cv-textarea")
|
98
|
+
], d);
|
99
|
+
const B = d;
|
100
100
|
export {
|
101
|
-
|
101
|
+
d as CovalentTextArea,
|
102
102
|
B as default
|
103
103
|
};
|