@covalent/components 7.1.0-beta.1 → 7.1.0-beta.3
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.d.ts +1 -2
- package/action-ribbon/action-ribbon.d.ts.map +1 -1
- package/action-ribbon.js +5 -5
- package/action-ribbon.mjs +12 -14
- package/alert/alert.d.ts +1 -2
- package/alert/alert.d.ts.map +1 -1
- package/alert.js +4 -4
- package/alert.mjs +10 -12
- package/app-shell/app-shell.d.ts +1 -2
- package/app-shell/app-shell.d.ts.map +1 -1
- package/app-shell.js +5 -5
- package/app-shell.mjs +19 -21
- package/button/button.d.ts +1 -2
- package/button/button.d.ts.map +1 -1
- package/button.js +2 -2
- package/button.mjs +11 -13
- package/card/card.d.ts +1 -2
- package/card/card.d.ts.map +1 -1
- package/card.js +7 -7
- package/card.mjs +1 -3
- package/check-list-item.js +5 -5
- package/check-list-item.mjs +19 -21
- package/checkbox/checkbox.d.ts +1 -2
- package/checkbox/checkbox.d.ts.map +1 -1
- package/checkbox.js +2 -2
- package/checkbox.mjs +15 -17
- package/chips/chip-set-base.d.ts +1 -1
- package/chips/chip-set-base.d.ts.map +1 -1
- package/chips/chip-set.d.ts +1 -2
- package/chips/chip-set.d.ts.map +1 -1
- package/chips/chip.d.ts +1 -2
- package/chips/chip.d.ts.map +1 -1
- package/circular-progress/circular-progress.d.ts +1 -2
- package/circular-progress/circular-progress.d.ts.map +1 -1
- package/circular-progress.js +2 -2
- package/circular-progress.mjs +9 -11
- package/code-snippet/code-snippet.d.ts +1 -2
- package/code-snippet/code-snippet.d.ts.map +1 -1
- package/code-snippet-557c2c8c.mjs +12228 -0
- package/code-snippet-792fa24f.js +13 -0
- package/code-snippet.js +1 -13
- package/code-snippet.mjs +6 -12206
- package/dialog/dialog.d.ts +1 -2
- package/dialog/dialog.d.ts.map +1 -1
- package/{dialog-79036d60.js → dialog-9eb800e8.js} +4 -4
- package/{dialog-9ac44447.mjs → dialog-b0a2f7ff.mjs} +23 -25
- package/dialog.js +1 -1
- package/dialog.mjs +3 -4
- package/drawer/drawer.d.ts +1 -2
- package/drawer/drawer.d.ts.map +1 -1
- package/drawer.js +2 -2
- package/drawer.mjs +11 -13
- package/empty-state/empty-state.d.ts +1 -2
- package/empty-state/empty-state.d.ts.map +1 -1
- package/empty-state.js +4 -4
- package/empty-state.mjs +14 -16
- package/{form-element-ead758d4.js → form-element-c553d6f5.js} +1 -1
- package/{form-element-bd973124.mjs → form-element-ffcf59ff.mjs} +1 -1
- package/formfield/formfield.d.ts +1 -2
- package/formfield/formfield.d.ts.map +1 -1
- package/{foundation-3f556da7.mjs → foundation-39dc72d2.mjs} +1 -1
- package/{foundation-62d4413d.js → foundation-786bf879.js} +1 -1
- package/icon/icon.d.ts +1 -2
- package/icon/icon.d.ts.map +1 -1
- package/icon-button/icon-button.d.ts +1 -2
- package/icon-button/icon-button.d.ts.map +1 -1
- package/icon-button.js +2 -2
- package/icon-button.mjs +21 -23
- package/icon-check-toggle.js +6 -6
- package/icon-check-toggle.mjs +5 -7
- package/icon-checkbox/icon-check-toggle.d.ts +1 -2
- package/icon-checkbox/icon-check-toggle.d.ts.map +1 -1
- package/icon-radio/icon-radio-toggle.d.ts +1 -2
- package/icon-radio/icon-radio-toggle.d.ts.map +1 -1
- package/icon-radio-toggle.js +5 -5
- package/icon-radio-toggle.mjs +17 -19
- package/icon.js +2 -2
- package/icon.mjs +14 -16
- package/index.d.ts +2 -0
- package/index.d.ts.map +1 -1
- package/index.js +568 -1
- package/index.mjs +3680 -108
- package/linear-progress/linear-progress.d.ts +1 -2
- package/linear-progress/linear-progress.d.ts.map +1 -1
- package/linear-progress.js +6 -6
- package/linear-progress.mjs +23 -25
- package/list/check-list-item.d.ts +1 -2
- package/list/check-list-item.d.ts.map +1 -1
- package/list/list-item.d.ts +1 -2
- package/list/list-item.d.ts.map +1 -1
- package/list/list.d.ts +1 -2
- package/list/list.d.ts.map +1 -1
- package/list/nav-list-item.d.ts +6 -5
- package/list/nav-list-item.d.ts.map +1 -1
- package/list/radio-list-item.d.ts +1 -2
- package/list/radio-list-item.d.ts.map +1 -1
- package/list-item-7970e039.js +8 -0
- package/list-item-b1f5251a.mjs +30 -0
- package/list-item.js +1 -1
- package/list-item.mjs +5 -6
- package/list.js +3 -3
- package/list.mjs +13 -15
- package/menu/menu.d.ts +1 -2
- package/menu/menu.d.ts.map +1 -1
- package/menu.js +2 -2
- package/menu.mjs +16 -18
- package/{mwc-checkbox-base-d46c7666.js → mwc-checkbox-base-3d8c9549.js} +1 -1
- package/{mwc-checkbox-base-3da36456.mjs → mwc-checkbox-base-f10fd709.mjs} +3 -3
- package/{mwc-drawer-base-fe660bdf.mjs → mwc-drawer-base-135de8a5.mjs} +1 -1
- package/{mwc-drawer-base-8eecb1de.js → mwc-drawer-base-798b11f8.js} +1 -1
- package/{mwc-icon-ba18383d.mjs → mwc-icon-bf656cf5.mjs} +1 -1
- package/{mwc-icon-8c9cd0c9.js → mwc-icon-f87639bc.js} +1 -1
- package/{mwc-line-ripple-directive-d1cf9570.js → mwc-line-ripple-directive-a6b39a3c.js} +1 -1
- package/{mwc-line-ripple-directive-ffce2cff.mjs → mwc-line-ripple-directive-b24a914e.mjs} +1 -1
- package/{mwc-list-base-cb3500b4.js → mwc-list-base-400b00e2.js} +1 -1
- package/{mwc-list-base-32d4ac31.mjs → mwc-list-base-76e37212.mjs} +2 -2
- package/{mwc-list-item-base-4a4d1e1b.js → mwc-list-item-base-297d86b0.js} +1 -1
- package/{mwc-list-item-base-8654347d.mjs → mwc-list-item-base-fe4398c3.mjs} +2 -2
- package/{mwc-menu-base-572a76b9.mjs → mwc-menu-base-c4bc88ea.mjs} +2 -2
- package/{mwc-menu-base-f14ec544.js → mwc-menu-base-c75ca473.js} +1 -1
- package/{mwc-radio-base-470b4fcc.js → mwc-radio-base-913e02e2.js} +1 -1
- package/{mwc-radio-base-9446d39b.mjs → mwc-radio-base-a374fbd9.mjs} +3 -3
- package/{mwc-slider.css-10adbaf8.mjs → mwc-slider.css-8b6f275c.mjs} +3 -3
- package/{mwc-slider.css-9dd57b10.js → mwc-slider.css-c7107d94.js} +1 -1
- package/{mwc-tab-base-4ba47acc.mjs → mwc-tab-base-be0c887f.mjs} +2 -2
- package/{mwc-tab-base-fc3ffb43.js → mwc-tab-base-f28722aa.js} +1 -1
- package/{mwc-top-app-bar-base-adc4168a.mjs → mwc-top-app-bar-base-55da3fe4.mjs} +1 -1
- package/{mwc-top-app-bar-base-0304e67f.js → mwc-top-app-bar-base-aec60f27.js} +1 -1
- package/nav-list-item.js +12 -12
- package/nav-list-item.mjs +68 -64
- package/package.json +1 -1
- package/radio/radio.d.ts +1 -2
- package/radio/radio.d.ts.map +1 -1
- package/radio-list-item.js +5 -5
- package/radio-list-item.mjs +20 -22
- package/radio.js +2 -2
- package/radio.mjs +15 -17
- package/{ripple-handlers-c82b1232.js → ripple-handlers-5d5b21db.js} +1 -1
- package/{ripple-handlers-321219b8.mjs → ripple-handlers-f37f21cf.mjs} +1 -1
- package/select/select.d.ts +1 -2
- package/select/select.d.ts.map +1 -1
- package/select.js +10 -10
- package/select.mjs +127 -129
- package/side-sheet/side-sheet.d.ts +2 -2
- package/side-sheet/side-sheet.d.ts.map +1 -1
- package/side-sheet.js +4 -4
- package/side-sheet.mjs +6 -6
- package/slider/slider-range.d.ts +1 -2
- package/slider/slider-range.d.ts.map +1 -1
- package/slider/slider.d.ts +1 -2
- package/slider/slider.d.ts.map +1 -1
- package/slider-range.js +7 -7
- package/slider-range.mjs +21 -23
- package/slider.js +2 -2
- package/slider.mjs +12 -14
- package/snackbar/snackbar.d.ts +1 -2
- package/snackbar/snackbar.d.ts.map +1 -1
- package/snackbar.js +10 -10
- package/snackbar.mjs +10 -12
- package/status-header/status-header-item.d.ts +1 -2
- package/status-header/status-header-item.d.ts.map +1 -1
- package/status-header/status-header.d.ts +1 -2
- package/status-header/status-header.d.ts.map +1 -1
- package/status-header-item.js +3 -3
- package/status-header-item.mjs +17 -19
- package/status-header.js +5 -5
- package/status-header.mjs +15 -17
- package/style.css +1 -1
- package/switch/switch.d.ts +1 -2
- package/switch/switch.d.ts.map +1 -1
- package/switch.js +8 -8
- package/switch.mjs +4 -6
- package/tab/tab-bar.d.ts +1 -2
- package/tab/tab-bar.d.ts.map +1 -1
- package/tab/tab.d.ts +1 -2
- package/tab/tab.d.ts.map +1 -1
- package/tab-bar.js +5 -5
- package/tab-bar.mjs +20 -22
- package/tab.js +2 -2
- package/tab.mjs +12 -14
- package/text-lockup/text-lockup.d.ts +1 -2
- package/text-lockup/text-lockup.d.ts.map +1 -1
- package/text-lockup.js +5 -5
- package/text-lockup.mjs +5 -7
- package/textarea/textarea.d.ts +1 -2
- package/textarea/textarea.d.ts.map +1 -1
- package/textarea.js +2 -2
- package/textarea.mjs +15 -17
- package/textfield/textfield.d.ts +1 -2
- package/textfield/textfield.d.ts.map +1 -1
- package/{textfield-0993c163.js → textfield-62e16cc2.js} +1 -1
- package/{textfield-2cee5a1a.mjs → textfield-63d1859a.mjs} +3 -3
- package/textfield.js +3 -3
- package/textfield.mjs +13 -15
- package/toolbar/toolbar.d.ts +1 -2
- package/toolbar/toolbar.d.ts.map +1 -1
- package/toolbar.js +3 -3
- package/toolbar.mjs +11 -13
- package/tooltip/tooltip.d.ts +1 -2
- package/tooltip/tooltip.d.ts.map +1 -1
- package/tooltip.js +6 -6
- package/tooltip.mjs +59 -61
- package/top-app-bar/top-app-bar-fixed.d.ts +1 -2
- package/top-app-bar/top-app-bar-fixed.d.ts.map +1 -1
- package/top-app-bar/top-app-bar.d.ts +1 -2
- package/top-app-bar/top-app-bar.d.ts.map +1 -1
- package/top-app-bar-fixed.js +6 -6
- package/top-app-bar-fixed.mjs +21 -23
- package/top-app-bar.js +3 -3
- package/top-app-bar.mjs +16 -18
- package/tree-list/tree-list-item.d.ts +1 -2
- package/tree-list/tree-list-item.d.ts.map +1 -1
- package/tree-list/tree-list.d.ts +1 -2
- package/tree-list/tree-list.d.ts.map +1 -1
- package/tree-list-item.js +8 -8
- package/tree-list-item.mjs +1 -3
- package/tree-list.js +4 -4
- package/tree-list.mjs +8 -9
- package/tslib.es6-98719205.js +1 -0
- package/tslib.es6-f3e988cd.mjs +86 -0
- package/typography/typography.d.ts +1 -2
- package/typography/typography.d.ts.map +1 -1
- package/typography.js +3 -3
- package/typography.mjs +10 -12
- package/list-item-3dc4b60f.js +0 -8
- package/list-item-bab8d6ba.mjs +0 -32
- package/tslib.es6-e6a11c8a.js +0 -1
- package/tslib.es6-f1eaf65c.mjs +0 -82
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const o=require("./tslib.es6-
|
1
|
+
"use strict";const o=require("./tslib.es6-98719205.js"),c=require("./query-assigned-elements-f623705d.js"),m=require("./base-element-58a3f9ea.js"),p=require("./property-57f6f6fe.js"),h=require("./query-680f1868.js"),i=require("./class-map-b5efe8da.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as u, a as d,
|
1
|
+
import { _ as u, a as d, f as a } from "./tslib.es6-f3e988cd.mjs";
|
2
2
|
import { x as _, i as v, e as E } from "./query-assigned-elements-4a39219d.mjs";
|
3
3
|
import { B as y } from "./base-element-67ae173f.mjs";
|
4
4
|
import { n as h } from "./property-9b6ea53b.mjs";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const p=require("./tslib.es6-
|
1
|
+
"use strict";const p=require("./tslib.es6-98719205.js"),O=require("./query-assigned-elements-f623705d.js"),B=require("./mwc-list-item-base-297d86b0.js"),H=require("./base-element-58a3f9ea.js"),L=require("./observer-a096ab43.js"),F=require("./utils-a8190a39.js"),I=require("./property-57f6f6fe.js"),K=require("./query-680f1868.js"),W=require("./query-assigned-nodes-99eae71d.js"),k=require("./if-defined-f1c45245.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { f as p } from "./tslib.es6-f3e988cd.mjs";
|
2
2
|
import { i as z, e as B, x as P } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
-
import { L as H } from "./mwc-list-item-base-
|
3
|
+
import { L as H } from "./mwc-list-item-base-fe4398c3.mjs";
|
4
4
|
import { B as K } from "./base-element-67ae173f.mjs";
|
5
5
|
import { o as L } from "./observer-be7b92e2.mjs";
|
6
6
|
import { i as V, d as X, b as G } from "./utils-2932417c.mjs";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const s=require("./tslib.es6-
|
1
|
+
"use strict";const s=require("./tslib.es6-98719205.js"),c=require("./ripple-handlers-5d5b21db.js"),l=require("./observer-a096ab43.js"),r=require("./query-assigned-elements-f623705d.js"),n=require("./property-57f6f6fe.js"),d=require("./state-0974a8e5.js"),p=require("./query-680f1868.js"),h=require("./class-map-b5efe8da.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import {
|
2
|
-
import { e as c, R as d } from "./ripple-handlers-
|
1
|
+
import { f as t } from "./tslib.es6-f3e988cd.mjs";
|
2
|
+
import { e as c, R as d } from "./ripple-handlers-f37f21cf.mjs";
|
3
3
|
import { o as l } from "./observer-be7b92e2.mjs";
|
4
4
|
import { s as h, x as n } from "./query-assigned-elements-4a39219d.mjs";
|
5
5
|
import { n as r } from "./property-9b6ea53b.mjs";
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { f as o, _ as U, a as B, b as q } from "./tslib.es6-f3e988cd.mjs";
|
2
2
|
import { i as V, e as K, x as F } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
-
import { L as Q } from "./mwc-list-base-
|
3
|
+
import { L as Q } from "./mwc-list-base-76e37212.mjs";
|
4
4
|
import { B as j } from "./base-element-67ae173f.mjs";
|
5
5
|
import { o as g } from "./observer-be7b92e2.mjs";
|
6
6
|
import { a as Y, d as Z, b as J } from "./utils-2932417c.mjs";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const s=require("./tslib.es6-
|
1
|
+
"use strict";const s=require("./tslib.es6-98719205.js"),A=require("./query-assigned-elements-f623705d.js"),K=require("./mwc-list-base-400b00e2.js"),U=require("./base-element-58a3f9ea.js"),E=require("./observer-a096ab43.js"),N=require("./utils-a8190a39.js"),a=require("./property-57f6f6fe.js"),v=require("./state-0974a8e5.js"),F=require("./query-680f1868.js"),P=require("./class-map-b5efe8da.js"),j=require("./style-map-88d2563f.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const r=require("./tslib.es6-
|
1
|
+
"use strict";const r=require("./tslib.es6-98719205.js"),p=require("./ripple-handlers-5d5b21db.js"),f=require("./aria-property-849c8816.js"),v=require("./form-element-c553d6f5.js"),m=require("./observer-a096ab43.js"),c=require("./query-assigned-elements-f623705d.js"),a=require("./property-57f6f6fe.js"),d=require("./state-0974a8e5.js"),g=require("./event-options-3f5eb195.js"),b=require("./query-680f1868.js"),_=require("./class-map-b5efe8da.js"),u=require("./if-defined-f1c45245.js"),y=require("./utils-a8190a39.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google LLC
|
4
4
|
* SPDX-License-Identifier: Apache-2.0
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as v, a as c,
|
2
|
-
import { e as g, R as y } from "./ripple-handlers-
|
1
|
+
import { _ as v, a as c, f as i } from "./tslib.es6-f3e988cd.mjs";
|
2
|
+
import { e as g, R as y } from "./ripple-handlers-f37f21cf.mjs";
|
3
3
|
import { a as f } from "./aria-property-fa2717fe.mjs";
|
4
|
-
import { F as R } from "./form-element-
|
4
|
+
import { F as R } from "./form-element-ffcf59ff.mjs";
|
5
5
|
import { o as m } from "./observer-be7b92e2.mjs";
|
6
6
|
import { x as u } from "./query-assigned-elements-4a39219d.mjs";
|
7
7
|
import { n as a } from "./property-9b6ea53b.mjs";
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { _ as F, a as x,
|
2
|
-
import { e as H, R as O } from "./ripple-handlers-
|
1
|
+
import { _ as F, a as x, f as o } from "./tslib.es6-f3e988cd.mjs";
|
2
|
+
import { e as H, R as O } from "./ripple-handlers-f37f21cf.mjs";
|
3
3
|
import { a as w } from "./aria-property-fa2717fe.mjs";
|
4
|
-
import { F as B } from "./form-element-
|
4
|
+
import { F as B } from "./form-element-ffcf59ff.mjs";
|
5
5
|
import { x as _, A as g, i as $ } from "./query-assigned-elements-4a39219d.mjs";
|
6
6
|
import { n as f } from "./property-9b6ea53b.mjs";
|
7
7
|
import { t as b } from "./state-b5e865db.mjs";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const d=require("./tslib.es6-
|
1
|
+
"use strict";const d=require("./tslib.es6-98719205.js"),V=require("./ripple-handlers-5d5b21db.js"),k=require("./aria-property-849c8816.js"),L=require("./form-element-c553d6f5.js"),m=require("./query-assigned-elements-f623705d.js"),b=require("./property-57f6f6fe.js"),f=require("./state-0974a8e5.js"),g=require("./query-680f1868.js"),x=require("./class-map-b5efe8da.js"),A=require("./if-defined-f1c45245.js"),U=require("./style-map-88d2563f.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2020 Google Inc.
|
4
4
|
*
|
@@ -1,11 +1,11 @@
|
|
1
|
-
import { _ as m, a as h,
|
1
|
+
import { _ as m, a as h, f as i } from "./tslib.es6-f3e988cd.mjs";
|
2
2
|
import { x as c, i as R, e as A } from "./query-assigned-elements-4a39219d.mjs";
|
3
3
|
import { B as g } from "./base-element-67ae173f.mjs";
|
4
4
|
import { n as r } from "./property-9b6ea53b.mjs";
|
5
5
|
import { i as l } from "./query-d843aa92.mjs";
|
6
6
|
import { o as v } from "./class-map-4b94b017.mjs";
|
7
7
|
import { a as I } from "./utils-2932417c.mjs";
|
8
|
-
import { e as T, R as E } from "./ripple-handlers-
|
8
|
+
import { e as T, R as E } from "./ripple-handlers-f37f21cf.mjs";
|
9
9
|
import { o as F } from "./observer-be7b92e2.mjs";
|
10
10
|
import { t as _ } from "./state-b5e865db.mjs";
|
11
11
|
import { e as O } from "./event-options-78d6cf94.mjs";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const n=require("./tslib.es6-
|
1
|
+
"use strict";const n=require("./tslib.es6-98719205.js"),s=require("./query-assigned-elements-f623705d.js"),_=require("./base-element-58a3f9ea.js"),r=require("./property-57f6f6fe.js"),l=require("./query-680f1868.js"),m=require("./class-map-b5efe8da.js"),C=require("./utils-a8190a39.js"),y=require("./ripple-handlers-5d5b21db.js"),I=require("./observer-a096ab43.js"),g=require("./state-0974a8e5.js"),R=require("./event-options-3f5eb195.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2016 Google Inc.
|
4
4
|
*
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { _ as f, a as u,
|
1
|
+
import { _ as f, a as u, f as s } from "./tslib.es6-f3e988cd.mjs";
|
2
2
|
import { n as p } from "./property-9b6ea53b.mjs";
|
3
3
|
import { x as c } from "./query-assigned-elements-4a39219d.mjs";
|
4
4
|
import { B as _ } from "./base-element-67ae173f.mjs";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";const i=require("./tslib.es6-
|
1
|
+
"use strict";const i=require("./tslib.es6-98719205.js"),p=require("./property-57f6f6fe.js"),l=require("./query-assigned-elements-f623705d.js"),m=require("./base-element-58a3f9ea.js"),g=require("./utils-a8190a39.js"),T=require("./query-680f1868.js"),f=require("./class-map-b5efe8da.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2018 Google Inc.
|
4
4
|
*
|
package/nav-list-item.js
CHANGED
@@ -1,22 +1,22 @@
|
|
1
|
-
"use strict";
|
2
|
-
`;var
|
1
|
+
"use strict";const r=require("./query-assigned-elements-f623705d.js"),h=require("./property-57f6f6fe.js"),c=require("./list-item-7970e039.js"),l=require("./mwc-list-item.css-25adc0c4.js");require("./mwc-list-item-base-297d86b0.js");require("./tslib.es6-98719205.js");require("./ripple-handlers-5d5b21db.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./style-map-88d2563f.js");require("./observer-a096ab43.js");const p=`:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:600;line-height:var(--mdc-typography-body2-line-height);text-align:left;border-radius:var(--cv-list-item-border-radius, 28px);transition:border-radius .1s ease-out;width:var(--cv-list-item-width, 100%)}::slotted(.section-selector){display:none;position:absolute;top:0;right:0}:host([activated]) ::slotted(cv-icon[slot=graphic]){color:var(--mdc-theme-primary)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{margin-left:var(--cv-list-item-graphic-margin-left, 12px)}:host([graphic=avatar]){padding:0}:host([graphic=avatar]) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host([graphic=avatar]:not([twoline])){height:48px}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0 0 0 15px}:host([hasChildren]){flex-direction:column;overflow:visible;height:inherit!important;background:none;padding:0;--mdc-list-side-padding: 0;--cv-list-item-graphic-margin-left: 12px}:host([hasChildren][open]:hover:not([activated])) .expansion-header{--mdc-ripple-color: transparent}:host([hasChildren][open]:hover:not([activated])) .expansion-header:hover{--mdc-ripple-color: var(--mdc-theme-primary)}.expansion-header{border-radius:var(--cv-list-item-border-radius);position:relative;height:48px;width:100%;overflow:hidden;display:flex;flex-shrink:0;align-items:center}.expansion-header-inner{padding:0 16px}.expansion-icon{margin-right:var(--cv-list-item-expansion-icon-margin, -12px);font-size:var(--cv-list-item-expansion-icon-size, --mdc-icon-size);color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}.expansion-panel{display:block;width:100%;height:var(--cv-list-menu-height, 0);--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden}:host([open][hasChildren]:not([twoline])){height:inherit;display:flex;flex-direction:column;border-radius:0}:host([open][hasChildren]:not([twoline])) .expansion-panel{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
|
2
|
+
`;var m=Object.defineProperty,u=Object.getOwnPropertyDescriptor,n=(o,e,t,i)=>{for(var s=i>1?void 0:i?u(e,t):e,a=o.length-1,d;a>=0;a--)(d=o[a])&&(s=(i?d(e,t,s):d(s))||s);return i&&s&&m(e,t,s),s};exports.default=class extends c.CovalentListItem{constructor(){super(...arguments),this.lastKeySelected=0,this.open=!1,this.hasChildren=!1,this.activated=!1}_toggleOpen(){this.open=!this.open}_handleKeydown(e){const t=this.expansionPanelElements[0],i=t?t==null?void 0:t.getFocusedItemIndex():0,s=(t==null?void 0:t.items.length)??0;if(this.hasChildren){if(e.code==="Enter"){e.preventDefault(),e.stopImmediatePropagation(),e.target.hasChildren?this._toggleOpen():this._deselectHeader(e);return}if(this.open){if(e.code==="ArrowUp"&&i===0&&this.lastKeySelected===0&&!e.target.hasChildren){e.preventDefault(),e.stopImmediatePropagation(),t.items[0].blur(),this.focus();return}e.code==="ArrowDown"&&i===-1&&(e.preventDefault(),e.stopImmediatePropagation(),t.focusItemAtIndex(0),this.lastKeySelected=0),e.code==="ArrowUp"&&i!==-1&&(e.preventDefault(),e.stopImmediatePropagation(),t.focusItemAtIndex(i),this.lastKeySelected=i),(e.code==="ArrowDown"||e.code==="ArrowUp")&&i!==-1&&this.lastKeySelected<s-1&&(e.preventDefault(),e.stopImmediatePropagation(),t.focusItemAtIndex(i),this.lastKeySelected=i)}}}_handleRequestSelected(e){const t=e;this.hasChildren&&t.detail.selected===!1&&t.detail.source==="property"&&this._deselectChildren()}_deselectChildren(){this.expansionPanelElements.forEach(e=>{e.items.forEach(t=>t.selected=!1)})}_deselectHeader(e){e.preventDefault(),e.stopImmediatePropagation(),this.fireRequestSelected(!1,"interaction"),this.activated=!1}renderExpansionItem(){const e=this.renderText(),t=this.graphic?this.renderGraphic():r.A,i=this.hasMeta?this.renderMeta():r.A,s=this.open?"arrow_drop_down":"arrow_right",a=r.x`<cv-icon class="expansion-icon">${s}</cv-icon>`;return r.x`
|
3
3
|
<div
|
4
4
|
@mousedown=${this._toggleOpen}
|
5
5
|
@touchstart="${this._toggleOpen}"
|
6
6
|
@keydown=${this._toggleOpen}
|
7
7
|
class="expansion-header"
|
8
8
|
>
|
9
|
-
${this.renderRipple()} ${
|
9
|
+
${this.renderRipple()} ${a} ${t} ${e} ${i}
|
10
10
|
</div>
|
11
11
|
<div class="expansion-panel" @click=${this._deselectHeader}>
|
12
12
|
<slot name="expansion-panel"></slot>
|
13
13
|
</div>
|
14
|
-
`}};exports.
|
15
|
-
${
|
16
|
-
`,
|
17
|
-
${
|
18
|
-
`,
|
19
|
-
${
|
20
|
-
`,
|
21
|
-
${
|
22
|
-
`];n([
|
14
|
+
`}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeydown),this.addEventListener("request-selected",this._handleRequestSelected)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown),this.addEventListener("request-selected",this._handleRequestSelected)}render(){return this.hasChildren?this.renderExpansionItem():super.render()}};exports.default.styles=[r.i`
|
15
|
+
${r.r(l.styles)}
|
16
|
+
`,r.i`
|
17
|
+
${r.r(l.styles$1)}
|
18
|
+
`,r.i`
|
19
|
+
${r.r(c.styles)}
|
20
|
+
`,r.i`
|
21
|
+
${r.r(p)}
|
22
|
+
`];n([r.l({slot:"expansion-panel",flatten:!0})],exports.default.prototype,"expansionPanelElements",2);n([h.n({type:Boolean,reflect:!0})],exports.default.prototype,"open",2);n([h.n({type:Boolean,reflect:!0})],exports.default.prototype,"hasChildren",2);exports.default=n([r.e("cv-nav-list-item")],exports.default);module.exports=exports.default;
|
package/nav-list-item.mjs
CHANGED
@@ -1,11 +1,10 @@
|
|
1
|
-
import { i as
|
1
|
+
import { i as a, r as n, l as g, A as h, x as c, e as f } from "./query-assigned-elements-4a39219d.mjs";
|
2
2
|
import { n as m } from "./property-9b6ea53b.mjs";
|
3
|
-
import {
|
4
|
-
import { C as u, s as v } from "./list-item-bab8d6ba.mjs";
|
3
|
+
import { C as u, s as v } from "./list-item-b1f5251a.mjs";
|
5
4
|
import { s as y, a as x } from "./mwc-list-item.css-b0009fc7.mjs";
|
6
|
-
import "./mwc-list-item-base-
|
7
|
-
import "./tslib.es6-
|
8
|
-
import "./ripple-handlers-
|
5
|
+
import "./mwc-list-item-base-fe4398c3.mjs";
|
6
|
+
import "./tslib.es6-f3e988cd.mjs";
|
7
|
+
import "./ripple-handlers-f37f21cf.mjs";
|
9
8
|
import "./base-element-67ae173f.mjs";
|
10
9
|
import "./utils-2932417c.mjs";
|
11
10
|
import "./state-b5e865db.mjs";
|
@@ -13,95 +12,100 @@ import "./query-d843aa92.mjs";
|
|
13
12
|
import "./class-map-4b94b017.mjs";
|
14
13
|
import "./style-map-bc3ed3e0.mjs";
|
15
14
|
import "./observer-be7b92e2.mjs";
|
16
|
-
const b = `:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:600;line-height:var(--mdc-typography-body2-line-height);text-align:left;border-radius:var(--cv-list-item-border-radius, 28px);transition:border-radius .1s ease-out;width:var(--cv-list-item-width, 100%)}::slotted(.section-selector){display:none;position:absolute;top:0;right:0}:host([activated]) ::slotted(cv-icon[slot=graphic]){color:var(--mdc-theme-primary)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{margin-left:var(--cv-list-item-graphic-margin-left, 12px)}:host([graphic=avatar]){padding:0}:host([graphic=avatar]) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host([graphic=avatar]:not([twoline])){height:48px}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0 0 0 15px}:host(
|
15
|
+
const b = `:host{font-family:var(--mdc-typography-font-family);font-size:var(--mdc-typography-body2-font-size);font-weight:600;line-height:var(--mdc-typography-body2-line-height);text-align:left;border-radius:var(--cv-list-item-border-radius, 28px);transition:border-radius .1s ease-out;width:var(--cv-list-item-width, 100%)}::slotted(.section-selector){display:none;position:absolute;top:0;right:0}:host([activated]) ::slotted(cv-icon[slot=graphic]){color:var(--mdc-theme-primary)}:host([graphic=avatar]) .mdc-deprecated-list-item__graphic{margin-left:var(--cv-list-item-graphic-margin-left, 12px)}:host([graphic=avatar]){padding:0}:host([graphic=avatar]) ::slotted(cv-icon[slot=graphic]){margin-left:8px;background:transparent}:host([graphic=avatar]:not([twoline])){height:48px}:host(.beta-list-item){--mdc-theme-primary: var(--mdc-theme-surface-caution);--mdc-list-item-meta-size: 20px;--mdc-list-item-graphic-size: 40px;--mdc-list-item-graphic-margin: 15px;--mdc-typography-subtitle1-font-size: var( --mdc-typography-subtitle2-font-size );--mdc-typography-body2-font-size: var(--mdc-typography-caption-font-size);margin-bottom:8px;font-size:var(--mdc-typography-subtitle1-font-size);margin-right:0;border-radius:0}:host(.beta-list-item){--mdc-list-item-graphic-margin: 0;--mdc-typography-subtitle1-font-size: 0;--mdc-typography-body2-font-size: 0;height:48px;font-size:0;padding:0 0 0 15px}:host([hasChildren]){flex-direction:column;overflow:visible;height:inherit!important;background:none;padding:0;--mdc-list-side-padding: 0;--cv-list-item-graphic-margin-left: 12px}:host([hasChildren][open]:hover:not([activated])) .expansion-header{--mdc-ripple-color: transparent}:host([hasChildren][open]:hover:not([activated])) .expansion-header:hover{--mdc-ripple-color: var(--mdc-theme-primary)}.expansion-header{border-radius:var(--cv-list-item-border-radius);position:relative;height:48px;width:100%;overflow:hidden;display:flex;flex-shrink:0;align-items:center}.expansion-header-inner{padding:0 16px}.expansion-icon{margin-right:var(--cv-list-item-expansion-icon-margin, -12px);font-size:var(--cv-list-item-expansion-icon-size, --mdc-icon-size);color:var(--cv-list-item-text-icon-on-background, var(--mdc-theme-text-icon-on-background))}.expansion-panel{display:block;width:100%;height:var(--cv-list-menu-height, 0);--mdc-list-side-padding: 72px;transition:transform .15s ease-out;overflow:hidden}:host([open][hasChildren]:not([twoline])){height:inherit;display:flex;flex-direction:column;border-radius:0}:host([open][hasChildren]:not([twoline])) .expansion-panel{transition:min-height .25s ease-in;height:var(--cv-list-menu-height, inherit)}
|
17
16
|
`;
|
18
|
-
var w = Object.defineProperty,
|
19
|
-
for (var
|
20
|
-
(
|
21
|
-
return r &&
|
17
|
+
var w = Object.defineProperty, _ = Object.getOwnPropertyDescriptor, d = (e, t, i, r) => {
|
18
|
+
for (var s = r > 1 ? void 0 : r ? _(t, i) : t, l = e.length - 1, p; l >= 0; l--)
|
19
|
+
(p = e[l]) && (s = (r ? p(t, i, s) : p(s)) || s);
|
20
|
+
return r && s && w(t, i, s), s;
|
22
21
|
};
|
23
|
-
let
|
22
|
+
let o = class extends u {
|
24
23
|
constructor() {
|
25
|
-
super(), this.lastKeySelected = 0, this.open = !1, this.hasChildren = !1;
|
24
|
+
super(...arguments), this.lastKeySelected = 0, this.open = !1, this.hasChildren = !1, this.activated = !1;
|
26
25
|
}
|
27
|
-
_toggleOpen(
|
28
|
-
|
26
|
+
_toggleOpen() {
|
27
|
+
this.open = !this.open;
|
29
28
|
}
|
30
29
|
_handleKeydown(e) {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
30
|
+
const t = this.expansionPanelElements[0], i = t ? t == null ? void 0 : t.getFocusedItemIndex() : 0, r = (t == null ? void 0 : t.items.length) ?? 0;
|
31
|
+
if (this.hasChildren) {
|
32
|
+
if (e.code === "Enter") {
|
33
|
+
e.preventDefault(), e.stopImmediatePropagation(), e.target.hasChildren ? this._toggleOpen() : this._deselectHeader(e);
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
if (this.open) {
|
37
|
+
if (e.code === "ArrowUp" && i === 0 && this.lastKeySelected === 0 && !e.target.hasChildren) {
|
38
|
+
e.preventDefault(), e.stopImmediatePropagation(), t.items[0].blur(), this.focus();
|
39
|
+
return;
|
40
|
+
}
|
41
|
+
e.code === "ArrowDown" && i === -1 && (e.preventDefault(), e.stopImmediatePropagation(), t.focusItemAtIndex(0), this.lastKeySelected = 0), e.code === "ArrowUp" && i !== -1 && (e.preventDefault(), e.stopImmediatePropagation(), t.focusItemAtIndex(i), this.lastKeySelected = i), (e.code === "ArrowDown" || e.code === "ArrowUp") && i !== -1 && this.lastKeySelected < r - 1 && (e.preventDefault(), e.stopImmediatePropagation(), t.focusItemAtIndex(i), this.lastKeySelected = i);
|
42
|
+
}
|
36
43
|
}
|
37
|
-
if (!this.open)
|
38
|
-
return;
|
39
|
-
const i = this.expansionPanelElements[0], t = i.getFocusedItemIndex(), r = i.items.length;
|
40
|
-
if (e.code === "ArrowUp" && t === 0 && this.lastKeySelected === 0 && !e.target.hasChildren) {
|
41
|
-
e.preventDefault(), e.stopImmediatePropagation(), i.items[0].blur(), this.focus();
|
42
|
-
return;
|
43
|
-
}
|
44
|
-
e.code === "ArrowDown" && t === -1 && (e.preventDefault(), e.stopImmediatePropagation(), i.focusItemAtIndex(0), this.lastKeySelected = 0), e.code === "ArrowUp" && t !== -1 && (e.preventDefault(), e.stopImmediatePropagation(), i.focusItemAtIndex(t), this.lastKeySelected = t), (e.code === "ArrowDown" || e.code === "ArrowUp") && t !== -1 && this.lastKeySelected < r - 1 && (e.preventDefault(), e.stopImmediatePropagation(), i.focusItemAtIndex(t), this.lastKeySelected = t);
|
45
|
-
}
|
46
|
-
_deselectHeader() {
|
47
|
-
setTimeout(() => {
|
48
|
-
this.selected = !1, this.activated = !1, this.blur();
|
49
|
-
});
|
50
44
|
}
|
51
|
-
|
52
|
-
|
45
|
+
_handleRequestSelected(e) {
|
46
|
+
const t = e;
|
47
|
+
this.hasChildren && t.detail.selected === !1 && t.detail.source === "property" && this._deselectChildren();
|
53
48
|
}
|
54
|
-
|
55
|
-
|
49
|
+
_deselectChildren() {
|
50
|
+
this.expansionPanelElements.forEach((e) => {
|
51
|
+
e.items.forEach((t) => t.selected = !1);
|
52
|
+
});
|
56
53
|
}
|
57
|
-
|
58
|
-
|
54
|
+
_deselectHeader(e) {
|
55
|
+
e.preventDefault(), e.stopImmediatePropagation(), this.fireRequestSelected(!1, "interaction"), this.activated = !1;
|
59
56
|
}
|
60
57
|
renderExpansionItem() {
|
61
|
-
const e = this.renderText(),
|
62
|
-
return
|
58
|
+
const e = this.renderText(), t = this.graphic ? this.renderGraphic() : h, i = this.hasMeta ? this.renderMeta() : h, r = this.open ? "arrow_drop_down" : "arrow_right", s = c`<cv-icon class="expansion-icon">${r}</cv-icon>`;
|
59
|
+
return c`
|
63
60
|
<div
|
64
61
|
@mousedown=${this._toggleOpen}
|
65
62
|
@touchstart="${this._toggleOpen}"
|
66
63
|
@keydown=${this._toggleOpen}
|
67
64
|
class="expansion-header"
|
68
65
|
>
|
69
|
-
${this.renderRipple()} ${
|
66
|
+
${this.renderRipple()} ${s} ${t} ${e} ${i}
|
70
67
|
</div>
|
71
68
|
<div class="expansion-panel" @click=${this._deselectHeader}>
|
72
69
|
<slot name="expansion-panel"></slot>
|
73
70
|
</div>
|
74
71
|
`;
|
75
72
|
}
|
73
|
+
connectedCallback() {
|
74
|
+
super.connectedCallback(), this.addEventListener("keydown", this._handleKeydown), this.addEventListener("request-selected", this._handleRequestSelected);
|
75
|
+
}
|
76
|
+
disconnectedCallback() {
|
77
|
+
super.disconnectedCallback(), this.removeEventListener("keydown", this._handleKeydown), this.addEventListener("request-selected", this._handleRequestSelected);
|
78
|
+
}
|
79
|
+
render() {
|
80
|
+
return this.hasChildren ? this.renderExpansionItem() : super.render();
|
81
|
+
}
|
76
82
|
};
|
77
|
-
|
78
|
-
|
79
|
-
${
|
83
|
+
o.styles = [
|
84
|
+
a`
|
85
|
+
${n(y)}
|
80
86
|
`,
|
81
|
-
|
82
|
-
${
|
87
|
+
a`
|
88
|
+
${n(x)}
|
83
89
|
`,
|
84
|
-
|
85
|
-
${
|
90
|
+
a`
|
91
|
+
${n(v)}
|
86
92
|
`,
|
87
|
-
|
88
|
-
${
|
93
|
+
a`
|
94
|
+
${n(b)}
|
89
95
|
`
|
90
96
|
];
|
91
|
-
|
92
|
-
|
93
|
-
],
|
94
|
-
|
97
|
+
d([
|
98
|
+
g({ slot: "expansion-panel", flatten: !0 })
|
99
|
+
], o.prototype, "expansionPanelElements", 2);
|
100
|
+
d([
|
95
101
|
m({ type: Boolean, reflect: !0 })
|
96
|
-
],
|
97
|
-
|
102
|
+
], o.prototype, "open", 2);
|
103
|
+
d([
|
98
104
|
m({ type: Boolean, reflect: !0 })
|
99
|
-
],
|
100
|
-
|
101
|
-
|
102
|
-
],
|
103
|
-
const U = s;
|
105
|
+
], o.prototype, "hasChildren", 2);
|
106
|
+
o = d([
|
107
|
+
f("cv-nav-list-item")
|
108
|
+
], o);
|
104
109
|
export {
|
105
|
-
|
106
|
-
U as default
|
110
|
+
o as default
|
107
111
|
};
|
package/package.json
CHANGED
package/radio/radio.d.ts
CHANGED
@@ -4,8 +4,7 @@ declare global {
|
|
4
4
|
'cv-radio': CovalentRadio;
|
5
5
|
}
|
6
6
|
}
|
7
|
-
export
|
7
|
+
export default class CovalentRadio extends RadioBase {
|
8
8
|
static styles: import("lit").CSSResult[];
|
9
9
|
}
|
10
|
-
export default CovalentRadio;
|
11
10
|
//# sourceMappingURL=radio.d.ts.map
|
package/radio/radio.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/radio/radio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAI/D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,aAAa,CAAC;KAC3B;CACF;
|
1
|
+
{"version":3,"file":"radio.d.ts","sourceRoot":"","sources":["../../../../libs/components/src/radio/radio.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,oCAAoC,CAAC;AAI/D,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,UAAU,EAAE,aAAa,CAAC;KAC3B;CACF;AAGD,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,SAAS;IAClD,OAAgB,MAAM,4BAA2C;CAClE"}
|
package/radio-list-item.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
"use strict";
|
1
|
+
"use strict";const t=require("./tslib.es6-98719205.js"),c=require("./query-assigned-elements-f623705d.js"),u=require("./mwc-radio-base-913e02e2.js"),_=require("./property-57f6f6fe.js"),b=require("./query-680f1868.js"),p=require("./class-map-b5efe8da.js"),h=require("./if-defined-f1c45245.js"),g=require("./mwc-list-item-base-297d86b0.js"),m=require("./mwc-list-item.css-25adc0c4.js");require("./ripple-handlers-5d5b21db.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./state-0974a8e5.js");require("./style-map-88d2563f.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./observer-a096ab43.js");require("./event-options-3f5eb195.js");/**
|
2
2
|
* @license
|
3
3
|
* Copyright 2021 Google LLC
|
4
4
|
* SPDX-LIcense-Identifier: Apache-2.0
|
@@ -10,18 +10,18 @@
|
|
10
10
|
* @license
|
11
11
|
* Copyright 2020 Google LLC
|
12
12
|
* SPDX-License-Identifier: Apache-2.0
|
13
|
-
*/class n extends
|
13
|
+
*/class n extends g.ListItemBase{constructor(){super(...arguments),this.left=!1,this.graphic="control",this._changeFromClick=!1}render(){const o={"mdc-deprecated-list-item__graphic":this.left,"mdc-deprecated-list-item__meta":!this.left},r=this.renderText(),e=this.graphic&&this.graphic!=="control"&&!this.left?this.renderGraphic():c.x``,d=this.hasMeta&&this.left?this.renderMeta():c.x``,a=this.renderRipple();return c.x`
|
14
14
|
${a}
|
15
15
|
${e}
|
16
16
|
${this.left?"":r}
|
17
17
|
<mwc-radio
|
18
18
|
global
|
19
|
-
class=${p.o(
|
19
|
+
class=${p.o(o)}
|
20
20
|
tabindex=${this.tabindex}
|
21
|
-
name=${
|
21
|
+
name=${h.l(this.group===null?void 0:this.group)}
|
22
22
|
.checked=${this.selected}
|
23
23
|
?disabled=${this.disabled}
|
24
24
|
@checked=${this.onChange}>
|
25
25
|
</mwc-radio>
|
26
26
|
${this.left?r:""}
|
27
|
-
${
|
27
|
+
${d}`}onClick(){this._changeFromClick=!0,super.onClick()}async onChange(o){const r=o.target;this.selected===r.checked||(this._skipPropRequest=!0,this.selected=r.checked,await this.updateComplete,this._skipPropRequest=!1,this._changeFromClick||this.fireRequestSelected(this.selected,"interaction")),this._changeFromClick=!1}}t.__decorate([b.i("slot")],n.prototype,"slotElement",void 0);t.__decorate([b.i("mwc-radio")],n.prototype,"radioElement",void 0);t.__decorate([_.n({type:Boolean})],n.prototype,"left",void 0);t.__decorate([_.n({type:String,reflect:!0})],n.prototype,"graphic",void 0);var k=Object.defineProperty,x=Object.getOwnPropertyDescriptor,v=(i,o,r,e)=>{for(var d=e>1?void 0:e?x(o,r):o,a=i.length-1,s;a>=0;a--)(s=i[a])&&(d=(e?s(o,r,d):s(d))||d);return e&&d&&k(o,r,d),d};exports.default=class extends n{};exports.default.styles=[m.styles,m.styles$1];exports.default=v([c.e("cv-radio-list-item")],exports.default);module.exports=exports.default;
|
package/radio-list-item.mjs
CHANGED
@@ -1,19 +1,19 @@
|
|
1
|
-
import {
|
2
|
-
import { i as u, e as _, x as
|
3
|
-
import { R as h } from "./mwc-radio-base-
|
1
|
+
import { f as e } from "./tslib.es6-f3e988cd.mjs";
|
2
|
+
import { i as u, e as _, x as m } from "./query-assigned-elements-4a39219d.mjs";
|
3
|
+
import { R as h } from "./mwc-radio-base-a374fbd9.mjs";
|
4
4
|
import { n as b } from "./property-9b6ea53b.mjs";
|
5
5
|
import { i as p } from "./query-d843aa92.mjs";
|
6
6
|
import { o as g } from "./class-map-4b94b017.mjs";
|
7
7
|
import { l as f } from "./if-defined-c367f208.mjs";
|
8
|
-
import { L as k } from "./mwc-list-item-base-
|
9
|
-
import { s as
|
10
|
-
import "./ripple-handlers-
|
8
|
+
import { L as k } from "./mwc-list-item-base-fe4398c3.mjs";
|
9
|
+
import { s as x, a as v } from "./mwc-list-item.css-b0009fc7.mjs";
|
10
|
+
import "./ripple-handlers-f37f21cf.mjs";
|
11
11
|
import "./base-element-67ae173f.mjs";
|
12
12
|
import "./utils-2932417c.mjs";
|
13
13
|
import "./state-b5e865db.mjs";
|
14
14
|
import "./style-map-bc3ed3e0.mjs";
|
15
15
|
import "./aria-property-fa2717fe.mjs";
|
16
|
-
import "./form-element-
|
16
|
+
import "./form-element-ffcf59ff.mjs";
|
17
17
|
import "./observer-be7b92e2.mjs";
|
18
18
|
import "./event-options-78d6cf94.mjs";
|
19
19
|
/**
|
@@ -27,12 +27,12 @@ const y = u`.mdc-touch-target-wrapper{display:inline}.mdc-radio{padding:calc((40
|
|
27
27
|
* Copyright 2018 Google LLC
|
28
28
|
* SPDX-License-Identifier: Apache-2.0
|
29
29
|
*/
|
30
|
-
let
|
30
|
+
let s = class extends h {
|
31
31
|
};
|
32
|
-
|
33
|
-
|
32
|
+
s.styles = [y];
|
33
|
+
s = e([
|
34
34
|
_("mwc-radio")
|
35
|
-
],
|
35
|
+
], s);
|
36
36
|
/**
|
37
37
|
* @license
|
38
38
|
* Copyright 2020 Google LLC
|
@@ -46,8 +46,8 @@ class a extends k {
|
|
46
46
|
const d = {
|
47
47
|
"mdc-deprecated-list-item__graphic": this.left,
|
48
48
|
"mdc-deprecated-list-item__meta": !this.left
|
49
|
-
}, r = this.renderText(), c = this.graphic && this.graphic !== "control" && !this.left ? this.renderGraphic() :
|
50
|
-
return
|
49
|
+
}, r = this.renderText(), c = this.graphic && this.graphic !== "control" && !this.left ? this.renderGraphic() : m``, o = this.hasMeta && this.left ? this.renderMeta() : m``, i = this.renderRipple();
|
50
|
+
return m`
|
51
51
|
${i}
|
52
52
|
${c}
|
53
53
|
${this.left ? "" : r}
|
@@ -84,18 +84,16 @@ e([
|
|
84
84
|
b({ type: String, reflect: !0 })
|
85
85
|
], a.prototype, "graphic", void 0);
|
86
86
|
var w = Object.defineProperty, z = Object.getOwnPropertyDescriptor, C = (t, d, r, c) => {
|
87
|
-
for (var o = c > 1 ? void 0 : c ? z(d, r) : d, i = t.length - 1,
|
88
|
-
(
|
87
|
+
for (var o = c > 1 ? void 0 : c ? z(d, r) : d, i = t.length - 1, n; i >= 0; i--)
|
88
|
+
(n = t[i]) && (o = (c ? n(d, r, o) : n(o)) || o);
|
89
89
|
return c && o && w(d, r, o), o;
|
90
90
|
};
|
91
|
-
let
|
91
|
+
let l = class extends a {
|
92
92
|
};
|
93
|
-
|
94
|
-
|
93
|
+
l.styles = [x, v];
|
94
|
+
l = C([
|
95
95
|
_("cv-radio-list-item")
|
96
|
-
],
|
97
|
-
const K = n;
|
96
|
+
], l);
|
98
97
|
export {
|
99
|
-
|
100
|
-
K as default
|
98
|
+
l as default
|
101
99
|
};
|
package/radio.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
"use strict";
|
2
|
-
`;var
|
1
|
+
"use strict";const c=require("./query-assigned-elements-f623705d.js"),a=require("./mwc-radio-base-913e02e2.js"),q=require("./mwc-radio.css-4e140252.js");require("./tslib.es6-98719205.js");require("./ripple-handlers-5d5b21db.js");require("./base-element-58a3f9ea.js");require("./utils-a8190a39.js");require("./property-57f6f6fe.js");require("./state-0974a8e5.js");require("./query-680f1868.js");require("./class-map-b5efe8da.js");require("./style-map-88d2563f.js");require("./aria-property-849c8816.js");require("./form-element-c553d6f5.js");require("./observer-a096ab43.js");require("./event-options-3f5eb195.js");require("./if-defined-f1c45245.js");const d=`:host{--mdc-radio-unchecked-color: var(--mdc-theme-text-icon-on-background)}
|
2
|
+
`;var l=Object.defineProperty,n=Object.getOwnPropertyDescriptor,f=(u,r,i,s)=>{for(var e=s>1?void 0:s?n(r,i):r,t=u.length-1,o;t>=0;t--)(o=u[t])&&(e=(s?o(r,i,e):o(e))||e);return s&&e&&l(r,i,e),e};exports.default=class extends a.RadioBase{};exports.default.styles=[q.styles,c.i`${c.r(d)}`];exports.default=f([c.e("cv-radio")],exports.default);module.exports=exports.default;
|