@mcp-b/web-components 0.2.22 → 0.3.0
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/README.md +93 -30
- package/dist/{alert-dialog-D25Oi_TS.js → alert-dialog-CGUwj_0U.js} +1 -1
- package/dist/{button-gg3JJxQZ.js → button-BbabhtKj.js} +121 -77
- package/dist/{button-BQofnUt4.d.ts → button-c5YKsC69.d.ts} +6 -3
- package/dist/{checkbox-DoFcDEKB.d.ts → checkbox-BtoypUxD.d.ts} +0 -6
- package/dist/{checkbox-C96lUDIM.js → checkbox-C97tlcf2.js} +11 -43
- package/dist/{color-input-Gae_-9w-.js → color-input-Dtp1v7A-.js} +14 -54
- package/dist/{color-input-Bky89xg_.d.ts → color-input-S29ZHwHE.d.ts} +0 -5
- package/dist/{color-picker-BYyZavkT.js → color-picker-Mnpc5u6E.js} +8 -4
- package/dist/{combobox-iERnTD3A.js → combobox-D4ji7M2B.js} +12 -33
- package/dist/{combobox-item-D2H1CMxC.d.ts → combobox-item-BnBtZyhw.d.ts} +3 -6
- package/dist/{comparison-B1-nMwmp.d.ts → comparison-CRvbwS7X.d.ts} +1 -0
- package/dist/{comparison-HJ1Zedhs.js → comparison-DQUpvkmg.js} +11 -3
- package/dist/components/alert-dialog/alert-dialog.js +1 -1
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +1 -1
- package/dist/components/carousel/carousel.js +1 -1
- package/dist/components/checkbox/checkbox.d.ts +1 -1
- package/dist/components/checkbox/checkbox.js +1 -1
- package/dist/components/color-input/color-input.d.ts +1 -1
- package/dist/components/color-input/color-input.js +1 -1
- package/dist/components/color-picker/color-picker.js +1 -1
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.js +1 -1
- package/dist/components/combobox-item/combobox-item.d.ts +1 -1
- package/dist/components/comparison/comparison.d.ts +1 -1
- package/dist/components/comparison/comparison.js +1 -1
- package/dist/components/copy/copy.js +4 -20
- package/dist/components/date/date.d.ts +1 -1
- package/dist/components/date/date.js +1 -1
- package/dist/components/dialog/dialog.js +1 -1
- package/dist/components/dropdown/dropdown.d.ts +1 -1
- package/dist/components/dropdown/dropdown.js +1 -1
- package/dist/components/expander/expander.js +1 -1
- package/dist/components/file-input/file-input.d.ts +1 -1
- package/dist/components/file-input/file-input.js +1 -1
- package/dist/components/filter-bar/filter-bar.js +1 -1
- package/dist/components/index.d.ts +24 -24
- package/dist/components/index.js +44 -44
- package/dist/components/infinite-scroller/infinite-scroller.js +1 -1
- package/dist/components/listbox/listbox.d.ts +1 -1
- package/dist/components/listbox/listbox.js +1 -1
- package/dist/components/navicon/navicon.js +1 -1
- package/dist/components/number/number.js +1 -1
- package/dist/components/number-field/number-field.d.ts +1 -1
- package/dist/components/number-field/number-field.js +1 -1
- package/dist/components/pagination/pagination.js +1 -1
- package/dist/components/popover/popover.js +1 -1
- package/dist/components/preview-card/preview-card.js +1 -1
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +1 -1
- package/dist/components/radio-item/radio-item.js +1 -1
- package/dist/components/rating/rating.d.ts +1 -1
- package/dist/components/rating/rating.js +1 -1
- package/dist/components/scroller/scroller.js +1 -1
- package/dist/components/search-list/search-list.d.ts +1 -1
- package/dist/components/search-list/search-list.js +1 -1
- package/dist/components/select/select.d.ts +1 -1
- package/dist/components/select/select.js +1 -1
- package/dist/components/share/share.js +1 -1
- package/dist/components/slide-activator/slide-activator.d.ts +1 -1
- package/dist/components/slide-activator/slide-activator.js +1 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/slider.js +1 -1
- package/dist/components/spinner/spinner.js +1 -1
- package/dist/components/splitter/splitter.d.ts +1 -1
- package/dist/components/splitter/splitter.js +1 -1
- package/dist/components/switch/switch.d.ts +1 -1
- package/dist/components/switch/switch.js +1 -1
- package/dist/components/tab-list/tab-list.js +1 -1
- package/dist/components/text-area/text-area.d.ts +1 -1
- package/dist/components/text-area/text-area.js +1 -1
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/text-field/text-field.js +1 -1
- package/dist/components/toast/toast.d.ts +1 -1
- package/dist/components/toast/toast.js +1 -1
- package/dist/components/toast-item/toast-item.js +1 -1
- package/dist/components/toggle-icon/toggle-icon.d.ts +1 -1
- package/dist/components/toggle-icon/toggle-icon.js +1 -1
- package/dist/components/toggle-tag/toggle-tag.d.ts +1 -1
- package/dist/components/toggle-tag/toggle-tag.js +1 -1
- package/dist/components/tooltip/tooltip.js +1 -1
- package/dist/components/transition-group/transition-group.d.ts +1 -1
- package/dist/components/transition-group/transition-group.js +1 -1
- package/dist/components/zoomable-frame/zoomable-frame.js +1 -1
- package/dist/{date-6M6wfa8L.d.ts → date-DtaTBM71.d.ts} +1 -1
- package/dist/docs/custom-elements.json +126 -171
- package/dist/{dropdown-DM4tlF_p.js → dropdown-BPOpCp59.js} +58 -34
- package/dist/{dropdown-Bo00Vlr5.d.ts → dropdown-C5ldJu4g.d.ts} +5 -1
- package/dist/{localize-322EtXNX.d.ts → en-ss05iPjS.d.ts} +4 -1
- package/dist/{file-input-vZFm22Lo.js → file-input-B4VfcfTD.js} +17 -33
- package/dist/{file-input-D2D6YC0B.d.ts → file-input-CgsTcC1R.d.ts} +0 -5
- package/dist/{filter-bar-DJuDlx5f.js → filter-bar-DhQSMr3S.js} +1 -1
- package/dist/index.d.ts +25 -27
- package/dist/index.js +45 -48
- package/dist/{infinite-scroller-BmmtnWNt.js → infinite-scroller-DjeMswwE.js} +2 -2
- package/dist/{listbox-B0geidHW.js → listbox-BGHw-rUd.js} +13 -28
- package/dist/{listbox-DD4ujIJe.d.ts → listbox-DKoMIQA6.d.ts} +3 -5
- package/dist/{number-field-odk4lKXM.d.ts → number-field-T0rzObq9.d.ts} +0 -5
- package/dist/{number-field-BGH7JtNf.js → number-field-yME3rRZT.js} +44 -55
- package/dist/{popover-DJBrJ0za.js → popover-lsI6gqNk.js} +9 -32
- package/dist/{preview-card-C7H1FPfd.js → preview-card-D1msvOWP.js} +1 -1
- package/dist/{radio-8UZAUYXt.js → radio-4Cok4gJI.js} +11 -28
- package/dist/{radio-CieMa4zU.d.ts → radio-B4fz924Q.d.ts} +1 -4
- package/dist/{radio-item-BlhFgXsU.js → radio-item-DpP3GBPV.js} +2 -3
- package/dist/{rating-4xNsWumY.d.ts → rating-8BLXhAVl.d.ts} +1 -3
- package/dist/{rating-C1BcJDIO.js → rating-CSn-nU2R.js} +24 -34
- package/dist/{search-list-Clmrg8EV.js → search-list-BffPIgnw.js} +19 -10
- package/dist/{search-list-n0GYO7rh.d.ts → search-list-Cd3--X7Q.d.ts} +11 -1
- package/dist/{select-CkZK2jJn.d.ts → select-6H_sN4A2.d.ts} +0 -5
- package/dist/{select-DLIaRnA4.js → select-B6nkY6E-.js} +7 -43
- package/dist/{share-bsgXZCl7.js → share-C7dB9NYf.js} +3 -19
- package/dist/{slide-activator-D7bBz69E.d.ts → slide-activator-CB0Ztk_u.d.ts} +1 -0
- package/dist/{slide-activator-Dm1EvZtL.js → slide-activator-Dkv5_KPl.js} +10 -3
- package/dist/{slider-B90Il7x3.js → slider-DY-GuC8T.js} +35 -46
- package/dist/{slider-B0FVsV1o.d.ts → slider-uQQ-T_kn.d.ts} +2 -3
- package/dist/{splitter-MnD4In9H.js → splitter-DzC0hXGN.js} +14 -3
- package/dist/{splitter-DBDJAzsp.d.ts → splitter-KQVgGdvP.d.ts} +1 -0
- package/dist/{switch-Cief9M59.d.ts → switch-BUfFo074.d.ts} +0 -6
- package/dist/{switch-D0hWr37A.js → switch-Chij-EaQ.js} +11 -43
- package/dist/{tab-list-B_Ye_Oj9.js → tab-list-CVOUSpAh.js} +2 -2
- package/dist/{text-area-B_mjCE9W.d.ts → text-area-DFMKyk8y.d.ts} +0 -3
- package/dist/{text-area-Czixaz-_.js → text-area-DZVghSkO.js} +14 -51
- package/dist/{text-field-BClWMp6q.d.ts → text-field-DepP1gei.d.ts} +0 -5
- package/dist/{text-field-Cznb4Afc.js → text-field-gX5RovkE.js} +11 -52
- package/dist/{toast-cEBVK9NQ.d.ts → toast-CpyA3GYM.d.ts} +1 -1
- package/dist/{toast-DgkBQzQC.js → toast-CxfaWFY_.js} +2 -2
- package/dist/{toggle-icon-4oLDeEt4.js → toggle-icon-B3fZuslO.js} +9 -31
- package/dist/{toggle-icon-DlwMMWZL.d.ts → toggle-icon-sTLCOruF.d.ts} +0 -5
- package/dist/{toggle-tag-1sfTFJtg.js → toggle-tag--Gkp-CJJ.js} +7 -35
- package/dist/{toggle-tag-IVvMGT4R.d.ts → toggle-tag-DDBa6hAg.d.ts} +0 -5
- package/dist/{tooltip-DbyoPFNe.js → tooltip-bSXNhG9l.js} +9 -32
- package/dist/{transition-group-3hnAnwSd.js → transition-group-8PmQx0A5.js} +23 -4
- package/dist/{transition-group-DD_CjSNC.d.ts → transition-group-D134iT1k.d.ts} +8 -0
- package/dist/translations/en.d.ts +1 -5
- package/dist/translations/en.js +3 -6
- package/dist/translations/es.d.ts +1 -1
- package/dist/translations/es.js +2 -5
- package/dist/types/custom-element-jsx.d.ts +26 -10
- package/dist/utilities/anchored-surface.d.ts +36 -0
- package/dist/utilities/anchored-surface.js +46 -0
- package/dist/utilities/copy-feedback.d.ts +16 -0
- package/dist/utilities/copy-feedback.js +33 -0
- package/dist/utilities/form-validity.d.ts +28 -0
- package/dist/utilities/form-validity.js +33 -0
- package/dist/utilities/localize.d.ts +1 -1
- package/dist/utilities/localize.js +1 -0
- package/package.json +3 -2
- package/dist/{carousel-XopKISBQ.js → carousel-DpIqPTuO.js} +1 -1
- package/dist/{date-CJPmOdi9.js → date-CFIR88pX.js} +1 -1
- package/dist/{dialog-Cx46HMaZ.js → dialog-Ddvyn2d_.js} +1 -1
- package/dist/{expander-Bwvxj6Oa.js → expander-CMV4QCha.js} +1 -1
- package/dist/{navicon-_yMHY27-.js → navicon-B-5pY9gq.js} +1 -1
- package/dist/{number-BNtNXNF3.js → number-BYBxfOGw.js} +1 -1
- package/dist/{pagination-CrTQnuNW.js → pagination-VOzVTV8p.js} +1 -1
- package/dist/{scroller-LYgBVyfY.js → scroller-DZATZlDa.js} +1 -1
- package/dist/{spinner-C04Dmc0H.js → spinner-C9lQARtQ.js} +1 -1
- package/dist/{toast-item-CGvz92Qk.js → toast-item-DzSPG25R.js} +1 -1
- package/dist/{zoomable-frame-DxcjLGcF.js → zoomable-frame-BrjVkNMX.js} +1 -1
package/dist/index.js
CHANGED
|
@@ -1,92 +1,89 @@
|
|
|
1
|
-
import "./translations/en.js";
|
|
2
1
|
import { registerIconLibrary, unregisterIconLibrary } from "./utilities/icon-library.js";
|
|
3
2
|
import { t as SigveloIcon } from "./icon-Df0H7LYB.js";
|
|
4
3
|
import { t as SigveloAccordionItem } from "./accordion-item-pRZLJCt2.js";
|
|
5
4
|
import { t as SigveloAccordion } from "./accordion-C0iq5HFu.js";
|
|
6
5
|
import { t as SigveloActionBar } from "./action-bar-CjN_UcnP.js";
|
|
7
|
-
import { t as SigveloAlertDialog } from "./alert-dialog-
|
|
8
|
-
import { t as SigveloDialog } from "./dialog-
|
|
6
|
+
import { t as SigveloAlertDialog } from "./alert-dialog-CGUwj_0U.js";
|
|
7
|
+
import { t as SigveloDialog } from "./dialog-Ddvyn2d_.js";
|
|
9
8
|
import { t as SigveloAvatar } from "./avatar-DAnSybDZ.js";
|
|
10
9
|
import { t as SigveloBadge } from "./badge-Ct95U4UO.js";
|
|
11
10
|
import { t as SigveloBreadcrumb } from "./breadcrumb-uURhiqWJ.js";
|
|
12
11
|
import { t as SigveloBreadcrumbItem } from "./breadcrumb-item-P5pdq_gE.js";
|
|
13
|
-
import { t as SigveloSpinner } from "./spinner-
|
|
14
|
-
import { t as SigveloButton } from "./button-
|
|
12
|
+
import { t as SigveloSpinner } from "./spinner-C9lQARtQ.js";
|
|
13
|
+
import { t as SigveloButton } from "./button-BbabhtKj.js";
|
|
15
14
|
import { t as SigveloButtonGroup } from "./button-group-BydvJTQy.js";
|
|
16
15
|
import { t as SigveloCallout } from "./callout-B8zTf8Go.js";
|
|
17
16
|
import { t as SigveloCard } from "./card-DIg1-X2G.js";
|
|
18
17
|
import { t as SigveloCarouselItem } from "./carousel-item-B5-X31Ha.js";
|
|
19
|
-
import { t as SigveloCarousel } from "./carousel-
|
|
20
|
-
import { t as SigveloCheckbox } from "./checkbox-
|
|
18
|
+
import { t as SigveloCarousel } from "./carousel-DpIqPTuO.js";
|
|
19
|
+
import { t as SigveloCheckbox } from "./checkbox-C97tlcf2.js";
|
|
21
20
|
import { t as SigveloCheckboxGroup } from "./checkbox-group-CLvNAO_F.js";
|
|
22
21
|
import { SigveloCopy } from "./components/copy/copy.js";
|
|
23
|
-
import { t as SigveloTooltip } from "./tooltip-
|
|
24
|
-
import { t as SigveloSlider } from "./slider-
|
|
25
|
-
import { t as SigveloTextField } from "./text-field-
|
|
26
|
-
import { t as SigveloColorPicker } from "./color-picker-
|
|
27
|
-
import { t as SigveloColorInput } from "./color-input-
|
|
22
|
+
import { t as SigveloTooltip } from "./tooltip-bSXNhG9l.js";
|
|
23
|
+
import { t as SigveloSlider } from "./slider-DY-GuC8T.js";
|
|
24
|
+
import { t as SigveloTextField } from "./text-field-gX5RovkE.js";
|
|
25
|
+
import { t as SigveloColorPicker } from "./color-picker-Mnpc5u6E.js";
|
|
26
|
+
import { t as SigveloColorInput } from "./color-input-Dtp1v7A-.js";
|
|
28
27
|
import { t as SigveloComboboxItem } from "./combobox-item-yM6tDrGG.js";
|
|
29
|
-
import { t as SigveloCombobox } from "./combobox-
|
|
30
|
-
import { t as SigveloComparison } from "./comparison-
|
|
31
|
-
import { t as SigveloDate } from "./date-
|
|
28
|
+
import { t as SigveloCombobox } from "./combobox-D4ji7M2B.js";
|
|
29
|
+
import { t as SigveloComparison } from "./comparison-DQUpvkmg.js";
|
|
30
|
+
import { t as SigveloDate } from "./date-CFIR88pX.js";
|
|
32
31
|
import { n as SigveloRowSelectEvent, t as SigveloDataTable } from "./data-table-CITa8DSn.js";
|
|
33
32
|
import { t as SigveloDivider } from "./divider-9vNsfHW8.js";
|
|
34
33
|
import { t as SigveloDropdownItem } from "./dropdown-item-D8cgfO7m.js";
|
|
35
|
-
import { t as SigveloDropdown } from "./dropdown-
|
|
34
|
+
import { t as SigveloDropdown } from "./dropdown-BPOpCp59.js";
|
|
36
35
|
import { t as SigveloEmptyState } from "./empty-state-BLWjtKUo.js";
|
|
37
36
|
import { t as SigveloEmptyResult } from "./empty-result-B2ln1yFL.js";
|
|
38
|
-
import { t as SigveloExpander } from "./expander-
|
|
37
|
+
import { t as SigveloExpander } from "./expander-CMV4QCha.js";
|
|
39
38
|
import { t as SigveloField } from "./field-BEyS909F.js";
|
|
40
|
-
import { t as SigveloFileInput } from "./file-input-
|
|
41
|
-
import { n as SigveloFilterChangeEvent, t as SigveloFilterBar } from "./filter-bar-
|
|
39
|
+
import { t as SigveloFileInput } from "./file-input-B4VfcfTD.js";
|
|
40
|
+
import { n as SigveloFilterChangeEvent, t as SigveloFilterBar } from "./filter-bar-DhQSMr3S.js";
|
|
42
41
|
import { t as SigveloFormSection } from "./form-section-BchPetkj.js";
|
|
43
42
|
import { t as SigveloInclude } from "./include-qNUh_6kT.js";
|
|
44
|
-
import { t as SigveloInfiniteScroller } from "./infinite-scroller-
|
|
43
|
+
import { t as SigveloInfiniteScroller } from "./infinite-scroller-DjeMswwE.js";
|
|
45
44
|
import { t as SigveloIntersectionObserver } from "./intersection-observer-B6TciOAQ.js";
|
|
46
45
|
import { t as SigveloListboxItem } from "./listbox-item-CwbjHZIu.js";
|
|
47
|
-
import { t as SigveloListbox } from "./listbox-
|
|
46
|
+
import { t as SigveloListbox } from "./listbox-BGHw-rUd.js";
|
|
48
47
|
import { t as SigveloLoremIpsum } from "./lorem-ipsum-B2x3V-v8.js";
|
|
49
48
|
import { t as SigveloMeter } from "./meter-BIDyjwFp.js";
|
|
50
49
|
import { t as SigveloMetric } from "./metric-xGnpnmNP.js";
|
|
51
50
|
import { t as SigveloMetricGrid } from "./metric-grid-YWGxI1F5.js";
|
|
52
51
|
import { t as SigveloMutationObserver } from "./mutation-observer-DS8EBuOp.js";
|
|
53
|
-
import { t as SigveloNavicon } from "./navicon-
|
|
54
|
-
import { t as SigveloNumber } from "./number-
|
|
55
|
-
import { t as SigveloNumberField } from "./number-field-
|
|
56
|
-
import { t as SigveloPagination } from "./pagination-
|
|
57
|
-
import { t as SigveloPopover } from "./popover-
|
|
58
|
-
import { t as SigveloPreviewCard } from "./preview-card-
|
|
52
|
+
import { t as SigveloNavicon } from "./navicon-B-5pY9gq.js";
|
|
53
|
+
import { t as SigveloNumber } from "./number-BYBxfOGw.js";
|
|
54
|
+
import { t as SigveloNumberField } from "./number-field-yME3rRZT.js";
|
|
55
|
+
import { t as SigveloPagination } from "./pagination-VOzVTV8p.js";
|
|
56
|
+
import { t as SigveloPopover } from "./popover-lsI6gqNk.js";
|
|
57
|
+
import { t as SigveloPreviewCard } from "./preview-card-D1msvOWP.js";
|
|
59
58
|
import { t as SigveloProgress } from "./progress-DzVk260j.js";
|
|
60
|
-
import { t as SigveloRadioItem } from "./radio-item-
|
|
61
|
-
import { t as SigveloRadio } from "./radio-
|
|
59
|
+
import { t as SigveloRadioItem } from "./radio-item-DpP3GBPV.js";
|
|
60
|
+
import { t as SigveloRadio } from "./radio-4Cok4gJI.js";
|
|
62
61
|
import { t as SigveloRandomContent } from "./random-content-BwiirXdG.js";
|
|
63
|
-
import { t as SigveloRating } from "./rating-
|
|
62
|
+
import { t as SigveloRating } from "./rating-CSn-nU2R.js";
|
|
64
63
|
import { t as SigveloResizeObserver } from "./resize-observer-DcrLhddo.js";
|
|
65
64
|
import { t as SigveloScrollArea } from "./scroll-area-COc1857S.js";
|
|
66
|
-
import { t as SigveloScroller } from "./scroller-
|
|
67
|
-
import { t as SigveloSearchList } from "./search-list-
|
|
68
|
-
import { t as SigveloSelect } from "./select-
|
|
65
|
+
import { t as SigveloScroller } from "./scroller-DZATZlDa.js";
|
|
66
|
+
import { t as SigveloSearchList } from "./search-list-BffPIgnw.js";
|
|
67
|
+
import { t as SigveloSelect } from "./select-B6nkY6E-.js";
|
|
69
68
|
import { t as SigveloSelectionSummary } from "./selection-summary-BVnNJ8Lw.js";
|
|
70
|
-
import { t as SigveloShare } from "./share-
|
|
71
|
-
import { t as SigveloSlideActivator } from "./slide-activator-
|
|
69
|
+
import { t as SigveloShare } from "./share-C7dB9NYf.js";
|
|
70
|
+
import { t as SigveloSlideActivator } from "./slide-activator-Dkv5_KPl.js";
|
|
72
71
|
import { t as SigveloSparkline } from "./sparkline-CcpTaJ_Z.js";
|
|
73
|
-
import { t as SigveloSplitter } from "./splitter-
|
|
74
|
-
import { t as SigveloSwitch } from "./switch-
|
|
72
|
+
import { t as SigveloSplitter } from "./splitter-DzC0hXGN.js";
|
|
73
|
+
import { t as SigveloSwitch } from "./switch-Chij-EaQ.js";
|
|
75
74
|
import { t as SigveloTab } from "./tab-C-FtuNmh.js";
|
|
76
75
|
import { t as SigveloTabPanel } from "./tab-panel-BaBl6eep.js";
|
|
77
|
-
import { t as SigveloTabList } from "./tab-list-
|
|
78
|
-
import { t as SigveloTextArea } from "./text-area-
|
|
76
|
+
import { t as SigveloTabList } from "./tab-list-CVOUSpAh.js";
|
|
77
|
+
import { t as SigveloTextArea } from "./text-area-DZVghSkO.js";
|
|
79
78
|
import { t as SigveloTextMask } from "./text-mask-DDEurj90.js";
|
|
80
79
|
import { t as SigveloTimedContent } from "./timed-content-pvEP4l5V.js";
|
|
81
|
-
import { t as SigveloToastItem } from "./toast-item-
|
|
82
|
-
import { t as SigveloTransitionGroup } from "./transition-group-
|
|
83
|
-
import { t as SigveloToast } from "./toast-
|
|
84
|
-
import { t as SigveloToggleIcon } from "./toggle-icon-
|
|
85
|
-
import { t as SigveloToggleTag } from "./toggle-tag-
|
|
80
|
+
import { t as SigveloToastItem } from "./toast-item-DzSPG25R.js";
|
|
81
|
+
import { t as SigveloTransitionGroup } from "./transition-group-8PmQx0A5.js";
|
|
82
|
+
import { t as SigveloToast } from "./toast-CxfaWFY_.js";
|
|
83
|
+
import { t as SigveloToggleIcon } from "./toggle-icon-B3fZuslO.js";
|
|
84
|
+
import { t as SigveloToggleTag } from "./toggle-tag--Gkp-CJJ.js";
|
|
86
85
|
import { t as SigveloToolbar } from "./toolbar-CEZ0-F-X.js";
|
|
87
|
-
import { t as SigveloZoomableFrame } from "./zoomable-frame-
|
|
86
|
+
import { t as SigveloZoomableFrame } from "./zoomable-frame-BrjVkNMX.js";
|
|
88
87
|
import "./components/index.js";
|
|
89
|
-
import { allDefined } from "
|
|
90
|
-
import { getLibraryPath, setLibraryPath } from "@mcp-b/wc-support/utilities/library";
|
|
91
|
-
import { discoverElements, preventTurboFouce, startLoader, stopLoader } from "@mcp-b/wc-support/utilities/loader";
|
|
88
|
+
import { allDefined, discoverElements, getLibraryPath, preventTurboFouce, setLibraryPath, startLoader, stopLoader } from "./sigvelo.js";
|
|
92
89
|
export { SigveloAccordion, SigveloAccordionItem, SigveloActionBar, SigveloAlertDialog, SigveloAvatar, SigveloBadge, SigveloBreadcrumb, SigveloBreadcrumbItem, SigveloButton, SigveloButtonGroup, SigveloCallout, SigveloCard, SigveloCarousel, SigveloCarouselItem, SigveloCheckbox, SigveloCheckboxGroup, SigveloColorInput, SigveloColorPicker, SigveloCombobox, SigveloComboboxItem, SigveloComparison, SigveloCopy, SigveloDataTable, SigveloDate, SigveloDialog, SigveloDivider, SigveloDropdown, SigveloDropdownItem, SigveloEmptyResult, SigveloEmptyState, SigveloExpander, SigveloField, SigveloFileInput, SigveloFilterBar, SigveloFilterChangeEvent, SigveloFormSection, SigveloIcon, SigveloInclude, SigveloInfiniteScroller, SigveloIntersectionObserver, SigveloListbox, SigveloListboxItem, SigveloLoremIpsum, SigveloMeter, SigveloMetric, SigveloMetricGrid, SigveloMutationObserver, SigveloNavicon, SigveloNumber, SigveloNumberField, SigveloPagination, SigveloPopover, SigveloPreviewCard, SigveloProgress, SigveloRadio, SigveloRadioItem, SigveloRandomContent, SigveloRating, SigveloResizeObserver, SigveloRowSelectEvent, SigveloScrollArea, SigveloScroller, SigveloSearchList, SigveloSelect, SigveloSelectionSummary, SigveloShare, SigveloSlideActivator, SigveloSlider, SigveloSparkline, SigveloSpinner, SigveloSplitter, SigveloSwitch, SigveloTab, SigveloTabList, SigveloTabPanel, SigveloTextArea, SigveloTextField, SigveloTextMask, SigveloTimedContent, SigveloToast, SigveloToastItem, SigveloToggleIcon, SigveloToggleTag, SigveloToolbar, SigveloTooltip, SigveloTransitionGroup, SigveloZoomableFrame, allDefined, discoverElements, getLibraryPath, preventTurboFouce, registerIconLibrary, setLibraryPath, startLoader, stopLoader, unregisterIconLibrary };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Localize } from "./utilities/localize.js";
|
|
2
1
|
import { t as __decorate } from "./decorate-DcF3lt7P.js";
|
|
3
|
-
import "./
|
|
2
|
+
import { Localize } from "./utilities/localize.js";
|
|
3
|
+
import "./spinner-C9lQARtQ.js";
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { property, query, state } from "lit/decorators.js";
|
|
6
6
|
import hostStyles from "@mcp-b/wc-support/styles/host.styles";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Localize } from "./utilities/localize.js";
|
|
2
1
|
import { t as __decorate } from "./decorate-DcF3lt7P.js";
|
|
2
|
+
import { Localize } from "./utilities/localize.js";
|
|
3
3
|
import "./listbox-item-CwbjHZIu.js";
|
|
4
4
|
import { css, html } from "lit";
|
|
5
5
|
import { property, query, state } from "lit/decorators.js";
|
|
@@ -27,9 +27,8 @@ var listbox_styles_default = css`
|
|
|
27
27
|
|
|
28
28
|
/* Focus state for the listbox */
|
|
29
29
|
:host(:state(focused)) #listbox {
|
|
30
|
-
outline: var(--sigvelo-
|
|
31
|
-
|
|
32
|
-
outline-offset: calc(-1 * var(--sigvelo-border-width));
|
|
30
|
+
outline: var(--sigvelo-focus-ring);
|
|
31
|
+
outline-offset: calc(-1 * var(--sigvelo-focus-width));
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
:host(:state(disabled)),
|
|
@@ -673,12 +672,10 @@ var SigveloListbox = class extends SigveloFormControlElement {
|
|
|
673
672
|
}
|
|
674
673
|
connectedCallback() {
|
|
675
674
|
super.connectedCallback();
|
|
676
|
-
this.addEventListener("invalid", this.handleHostInvalid);
|
|
677
675
|
this.addEventListener("keydown", this.handleKeyDown);
|
|
678
676
|
}
|
|
679
677
|
disconnectedCallback() {
|
|
680
678
|
super.disconnectedCallback();
|
|
681
|
-
this.removeEventListener("invalid", this.handleHostInvalid);
|
|
682
679
|
this.removeEventListener("keydown", this.handleKeyDown);
|
|
683
680
|
this.clearTypeaheadTimeout();
|
|
684
681
|
}
|
|
@@ -695,22 +692,12 @@ var SigveloListbox = class extends SigveloFormControlElement {
|
|
|
695
692
|
this.updateSelectedItems();
|
|
696
693
|
this.resetRovingTabIndex();
|
|
697
694
|
}
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
this.updateListboxAttributesOnItems();
|
|
701
|
-
}
|
|
702
|
-
const hadUserInteraction = this.hadUserInteraction || this.wasSubmitted;
|
|
703
|
-
this.customStates.set("user-invalid", hadUserInteraction && this.isInvalid);
|
|
704
|
-
this.customStates.set("user-valid", hadUserInteraction && !this.isInvalid);
|
|
705
|
-
}
|
|
706
|
-
formDisabledCallback(isDisabled) {
|
|
707
|
-
this.disabled = isDisabled;
|
|
695
|
+
this.customStates.set("disabled", this.effectiveDisabled);
|
|
696
|
+
this.updateListboxAttributesOnItems();
|
|
708
697
|
}
|
|
709
698
|
formResetCallback() {
|
|
710
|
-
|
|
699
|
+
super.formResetCallback();
|
|
711
700
|
this.wasChanged = false;
|
|
712
|
-
this.hadUserInteraction = false;
|
|
713
|
-
this.wasSubmitted = false;
|
|
714
701
|
this.firstSelectedValue = this.getAttribute("value") ?? "";
|
|
715
702
|
const initiallySelectedItems = this.getItems(true).filter((item) => item.hasAttribute("selected"));
|
|
716
703
|
this.getItems(true).forEach((item) => {
|
|
@@ -831,17 +818,14 @@ var SigveloListbox = class extends SigveloFormControlElement {
|
|
|
831
818
|
this.wasChanged = false;
|
|
832
819
|
this.updateListboxAttributesOnItems();
|
|
833
820
|
}
|
|
834
|
-
handleHostInvalid() {
|
|
835
|
-
this.wasSubmitted = true;
|
|
836
|
-
}
|
|
837
821
|
handleLabelClick() {
|
|
838
|
-
if (!this.
|
|
822
|
+
if (!this.effectiveDisabled) this.focus();
|
|
839
823
|
}
|
|
840
824
|
handleListboxPointerDown(event) {
|
|
841
825
|
event.preventDefault();
|
|
842
826
|
}
|
|
843
827
|
handleItemClick(event) {
|
|
844
|
-
if (this.
|
|
828
|
+
if (this.effectiveDisabled) return;
|
|
845
829
|
const item = event.target.closest("sigvelo-listbox-item");
|
|
846
830
|
if (item?.disabled) return;
|
|
847
831
|
if (!item) {
|
|
@@ -903,6 +887,7 @@ var SigveloListbox = class extends SigveloFormControlElement {
|
|
|
903
887
|
});
|
|
904
888
|
}
|
|
905
889
|
handleKeyDown(event) {
|
|
890
|
+
if (this.effectiveDisabled) return;
|
|
906
891
|
if (event.key.length === 1 && !event.metaKey && !event.ctrlKey) {
|
|
907
892
|
if (!this.readonly) this.handleTypeahead(event);
|
|
908
893
|
return;
|
|
@@ -1020,7 +1005,7 @@ var SigveloListbox = class extends SigveloFormControlElement {
|
|
|
1020
1005
|
updateListboxAttributesOnItems() {
|
|
1021
1006
|
const isFocused = this.customStates.has("focused");
|
|
1022
1007
|
this.getItems(true).forEach((item) => {
|
|
1023
|
-
item.customStates.set("controller-disabled", this.
|
|
1008
|
+
item.customStates.set("controller-disabled", this.effectiveDisabled);
|
|
1024
1009
|
item.customStates.set("controller-readonly", this.readonly);
|
|
1025
1010
|
item.customStates.set("controller-focused", isFocused);
|
|
1026
1011
|
});
|
|
@@ -1197,18 +1182,18 @@ var SigveloListbox = class extends SigveloFormControlElement {
|
|
|
1197
1182
|
md: this.size === "md",
|
|
1198
1183
|
lg: this.size === "lg",
|
|
1199
1184
|
xl: this.size === "xl",
|
|
1200
|
-
disabled: this.
|
|
1185
|
+
disabled: this.effectiveDisabled,
|
|
1201
1186
|
readonly: this.readonly,
|
|
1202
1187
|
multiple: this.multiple
|
|
1203
1188
|
})}
|
|
1204
1189
|
role="listbox"
|
|
1205
1190
|
aria-multiselectable=${this.multiple ? "true" : "false"}
|
|
1206
|
-
aria-disabled=${this.
|
|
1191
|
+
aria-disabled=${this.effectiveDisabled ? "true" : "false"}
|
|
1207
1192
|
aria-readonly=${this.readonly ? "true" : "false"}
|
|
1208
1193
|
aria-required=${this.required ? "true" : "false"}
|
|
1209
1194
|
aria-labelledby="label"
|
|
1210
1195
|
aria-describedby="description"
|
|
1211
|
-
tabindex=${this.
|
|
1196
|
+
tabindex=${this.effectiveDisabled ? "-1" : "0"}
|
|
1212
1197
|
@blur=${this.handleBlur}
|
|
1213
1198
|
@focus=${this.handleFocus}
|
|
1214
1199
|
@pointerdown=${this.handleListboxPointerDown}
|
|
@@ -557,14 +557,14 @@ declare class SigveloListbox extends SigveloFormControlElement {
|
|
|
557
557
|
private localize;
|
|
558
558
|
private firstSelectedValue;
|
|
559
559
|
private listbox;
|
|
560
|
-
|
|
561
|
-
|
|
560
|
+
protected hadUserInteraction: boolean;
|
|
561
|
+
protected isInvalid: boolean;
|
|
562
562
|
private lastSelectedIndex;
|
|
563
563
|
private previousValue;
|
|
564
564
|
private typeaheadBuffer;
|
|
565
565
|
private typeaheadTimeout;
|
|
566
566
|
private wasChanged;
|
|
567
|
-
|
|
567
|
+
protected wasSubmitted: boolean;
|
|
568
568
|
/** The listbox's label. If you need to provide HTML in the label, use the `label` slot instead. */
|
|
569
569
|
label: string;
|
|
570
570
|
/** The listbox's description. If you need to provide HTML in the description, use the `description` slot instead. */
|
|
@@ -609,7 +609,6 @@ declare class SigveloListbox extends SigveloFormControlElement {
|
|
|
609
609
|
disconnectedCallback(): void;
|
|
610
610
|
firstUpdated(changedProperties: PropertyValues<this>): void;
|
|
611
611
|
updated(changedProperties: PropertyValues<this>): void;
|
|
612
|
-
formDisabledCallback(isDisabled: boolean): void;
|
|
613
612
|
formResetCallback(): void;
|
|
614
613
|
private clearTypeaheadTimeout;
|
|
615
614
|
private getItems;
|
|
@@ -626,7 +625,6 @@ declare class SigveloListbox extends SigveloFormControlElement {
|
|
|
626
625
|
private updateValueFromSelectedItems;
|
|
627
626
|
private handleFocus;
|
|
628
627
|
private handleBlur;
|
|
629
|
-
private handleHostInvalid;
|
|
630
628
|
private handleLabelClick;
|
|
631
629
|
private handleListboxPointerDown;
|
|
632
630
|
private handleItemClick;
|
|
@@ -372,17 +372,12 @@ declare class SigveloNumberField extends SigveloFormControlElement {
|
|
|
372
372
|
enterkeyhint: "enter" | "done" | "go" | "next" | "previous" | "search" | "send";
|
|
373
373
|
/** When true, the add/subtract steppers won't be displayed. */
|
|
374
374
|
withoutSteppers: boolean;
|
|
375
|
-
connectedCallback(): void;
|
|
376
|
-
disconnectedCallback(): void;
|
|
377
375
|
updated(changedProperties: PropertyValues<this>): void;
|
|
378
|
-
/** @internal Called when a containing fieldset is disabled. */
|
|
379
|
-
formDisabledCallback(isDisabled: boolean): void;
|
|
380
376
|
/** @internal Called when the form is reset. */
|
|
381
377
|
formResetCallback(): void;
|
|
382
378
|
private handleBlur;
|
|
383
379
|
private handleChange;
|
|
384
380
|
private handleFocus;
|
|
385
|
-
private handleHostInvalid;
|
|
386
381
|
private handleDecrease;
|
|
387
382
|
private handleIncrease;
|
|
388
383
|
private maintainFocusOnPointerDown;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { Localize } from "./utilities/localize.js";
|
|
2
1
|
import "./icon-Df0H7LYB.js";
|
|
3
2
|
import { t as __decorate } from "./decorate-DcF3lt7P.js";
|
|
3
|
+
import { Localize } from "./utilities/localize.js";
|
|
4
|
+
import { mirrorNativeValidity } from "./utilities/form-validity.js";
|
|
4
5
|
import { css, html } from "lit";
|
|
5
6
|
import { property, query, state } from "lit/decorators.js";
|
|
6
7
|
import hostStyles from "@mcp-b/wc-support/styles/host.styles";
|
|
@@ -49,12 +50,12 @@ var number_field_styles_default = css`
|
|
|
49
50
|
align-self: stretch;
|
|
50
51
|
justify-content: center;
|
|
51
52
|
margin: 0;
|
|
52
|
-
padding: 0
|
|
53
|
+
padding: 0;
|
|
54
|
+
flex-shrink: 0;
|
|
53
55
|
border: none;
|
|
54
56
|
background: none;
|
|
55
57
|
color: inherit;
|
|
56
58
|
font: inherit;
|
|
57
|
-
font-size: 1.25em;
|
|
58
59
|
cursor: pointer;
|
|
59
60
|
transition: var(--sigvelo-motion-duration-interaction) translate ease;
|
|
60
61
|
|
|
@@ -64,7 +65,7 @@ var number_field_styles_default = css`
|
|
|
64
65
|
|
|
65
66
|
&:focus-visible {
|
|
66
67
|
outline: var(--sigvelo-focus-ring);
|
|
67
|
-
outline-offset: var(--sigvelo-
|
|
68
|
+
outline-offset: var(--sigvelo-focus-offset);
|
|
68
69
|
}
|
|
69
70
|
|
|
70
71
|
&:active:not(:disabled) {
|
|
@@ -76,6 +77,36 @@ var number_field_styles_default = css`
|
|
|
76
77
|
opacity: 0.5;
|
|
77
78
|
}
|
|
78
79
|
}
|
|
80
|
+
|
|
81
|
+
#visual-box.xs #stepper-up,
|
|
82
|
+
#visual-box.xs #stepper-down {
|
|
83
|
+
inline-size: var(--sigvelo-control-height-xs);
|
|
84
|
+
font-size: var(--sigvelo-control-icon-size-xs);
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
#visual-box.sm #stepper-up,
|
|
88
|
+
#visual-box.sm #stepper-down {
|
|
89
|
+
inline-size: var(--sigvelo-control-height-sm);
|
|
90
|
+
font-size: var(--sigvelo-control-icon-size-sm);
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
#visual-box.md #stepper-up,
|
|
94
|
+
#visual-box.md #stepper-down {
|
|
95
|
+
inline-size: var(--sigvelo-control-height-md);
|
|
96
|
+
font-size: var(--sigvelo-control-icon-size-md);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
#visual-box.lg #stepper-up,
|
|
100
|
+
#visual-box.lg #stepper-down {
|
|
101
|
+
inline-size: var(--sigvelo-control-height-lg);
|
|
102
|
+
font-size: var(--sigvelo-control-icon-size-lg);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
#visual-box.xl #stepper-up,
|
|
106
|
+
#visual-box.xl #stepper-down {
|
|
107
|
+
inline-size: var(--sigvelo-control-height-xl);
|
|
108
|
+
font-size: var(--sigvelo-control-icon-size-xl);
|
|
109
|
+
}
|
|
79
110
|
`;
|
|
80
111
|
//#endregion
|
|
81
112
|
//#region src/components/number-field/number-field.ts
|
|
@@ -419,38 +450,17 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
419
450
|
get focusableAnchor() {
|
|
420
451
|
return this.textBox;
|
|
421
452
|
}
|
|
422
|
-
connectedCallback() {
|
|
423
|
-
super.connectedCallback();
|
|
424
|
-
this.addEventListener("invalid", this.handleHostInvalid);
|
|
425
|
-
}
|
|
426
|
-
disconnectedCallback() {
|
|
427
|
-
super.disconnectedCallback();
|
|
428
|
-
this.removeEventListener("invalid", this.handleHostInvalid);
|
|
429
|
-
}
|
|
430
453
|
updated(changedProperties) {
|
|
431
454
|
this.updateValidity();
|
|
432
455
|
if (changedProperties.has("value")) {
|
|
433
456
|
this.customStates.set("blank", this.value === "");
|
|
434
457
|
this.internals.setFormValue(this.value);
|
|
435
458
|
}
|
|
436
|
-
if (changedProperties.has("disabled")) this.customStates.set("disabled", this.
|
|
437
|
-
if (this.hadUserInteraction || this.wasSubmitted) {
|
|
438
|
-
this.customStates.set("user-invalid", this.isInvalid);
|
|
439
|
-
this.customStates.set("user-valid", !this.isInvalid);
|
|
440
|
-
} else {
|
|
441
|
-
this.customStates.set("user-invalid", false);
|
|
442
|
-
this.customStates.set("user-valid", false);
|
|
443
|
-
}
|
|
444
|
-
}
|
|
445
|
-
/** @internal Called when a containing fieldset is disabled. */
|
|
446
|
-
formDisabledCallback(isDisabled) {
|
|
447
|
-
this.disabled = isDisabled;
|
|
459
|
+
if (changedProperties.has("disabled")) this.customStates.set("disabled", this.effectiveDisabled);
|
|
448
460
|
}
|
|
449
461
|
/** @internal Called when the form is reset. */
|
|
450
462
|
formResetCallback() {
|
|
451
|
-
|
|
452
|
-
this.hadUserInteraction = false;
|
|
453
|
-
this.wasSubmitted = false;
|
|
463
|
+
super.formResetCallback();
|
|
454
464
|
this.value = this.getAttribute("value") ?? "";
|
|
455
465
|
}
|
|
456
466
|
handleBlur() {
|
|
@@ -469,9 +479,6 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
469
479
|
this.customStates.set("focused", true);
|
|
470
480
|
this.dispatchEvent(new SigveloFocusEvent());
|
|
471
481
|
}
|
|
472
|
-
handleHostInvalid() {
|
|
473
|
-
this.wasSubmitted = true;
|
|
474
|
-
}
|
|
475
482
|
handleDecrease() {
|
|
476
483
|
this.stepDown();
|
|
477
484
|
this.handleInput();
|
|
@@ -512,12 +519,7 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
512
519
|
this.dispatchEvent(new SigveloInputEvent());
|
|
513
520
|
}
|
|
514
521
|
handleKeyDown(event) {
|
|
515
|
-
if (event.key === "Enter"
|
|
516
|
-
const submitter = [...this.internals.form.elements].find((el) => {
|
|
517
|
-
return ["button", "input"].includes(el.localName) && el.type === "submit";
|
|
518
|
-
});
|
|
519
|
-
this.internals.form.requestSubmit(submitter);
|
|
520
|
-
}
|
|
522
|
+
if (event.key === "Enter") this.submitAssociatedForm();
|
|
521
523
|
}
|
|
522
524
|
handleVisualBoxPointerDown(event) {
|
|
523
525
|
const target = event.target;
|
|
@@ -531,21 +533,8 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
531
533
|
/** Sets the form control's validity */
|
|
532
534
|
async updateValidity() {
|
|
533
535
|
await this.updateComplete;
|
|
534
|
-
const
|
|
535
|
-
|
|
536
|
-
const flags = {
|
|
537
|
-
badInput: this.textBox.validity.badInput,
|
|
538
|
-
customError: hasCustomValidity,
|
|
539
|
-
patternMismatch: this.textBox.validity.patternMismatch,
|
|
540
|
-
rangeOverflow: this.textBox.validity.rangeOverflow,
|
|
541
|
-
rangeUnderflow: this.textBox.validity.rangeUnderflow,
|
|
542
|
-
stepMismatch: this.textBox.validity.stepMismatch,
|
|
543
|
-
tooLong: this.textBox.validity.tooLong,
|
|
544
|
-
tooShort: this.textBox.validity.tooShort,
|
|
545
|
-
typeMismatch: this.textBox.validity.typeMismatch,
|
|
546
|
-
valueMissing: this.textBox.validity.valueMissing
|
|
547
|
-
};
|
|
548
|
-
this.isInvalid = hasCustomValidity ? true : !this.textBox.validity.valid;
|
|
536
|
+
const { flags, validationMessage, isInvalid } = mirrorNativeValidity(this.textBox, this.getCustomValidity());
|
|
537
|
+
this.isInvalid = isInvalid;
|
|
549
538
|
this.internals.setValidity(flags, validationMessage, this.focusableAnchor);
|
|
550
539
|
}
|
|
551
540
|
/** Sets focus to the number field. */
|
|
@@ -615,7 +604,7 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
615
604
|
lg: this.size === "lg",
|
|
616
605
|
xl: this.size === "xl",
|
|
617
606
|
pill: this.pill,
|
|
618
|
-
disabled: this.
|
|
607
|
+
disabled: this.effectiveDisabled
|
|
619
608
|
})}
|
|
620
609
|
@pointerdown=${this.handleVisualBoxPointerDown}
|
|
621
610
|
>
|
|
@@ -623,7 +612,7 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
623
612
|
<button
|
|
624
613
|
id="stepper-down"
|
|
625
614
|
part="stepper stepper-down"
|
|
626
|
-
?disabled=${!canDecrease || this.
|
|
615
|
+
?disabled=${!canDecrease || this.effectiveDisabled}
|
|
627
616
|
tabindex="-1"
|
|
628
617
|
aria-label=${this.localize.term("decrease")}
|
|
629
618
|
@pointerdown=${this.maintainFocusOnPointerDown}
|
|
@@ -641,7 +630,7 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
641
630
|
type="number"
|
|
642
631
|
inputmode="numeric"
|
|
643
632
|
?autofocus=${this.autofocus}
|
|
644
|
-
?disabled=${this.
|
|
633
|
+
?disabled=${this.effectiveDisabled}
|
|
645
634
|
?readonly=${this.readonly}
|
|
646
635
|
?required=${this.required}
|
|
647
636
|
placeholder=${ifDefined(this.placeholder)}
|
|
@@ -668,7 +657,7 @@ var SigveloNumberField = class extends SigveloFormControlElement {
|
|
|
668
657
|
<button
|
|
669
658
|
id="stepper-up"
|
|
670
659
|
part="stepper stepper-up"
|
|
671
|
-
?disabled=${!canIncrease || this.
|
|
660
|
+
?disabled=${!canIncrease || this.effectiveDisabled}
|
|
672
661
|
tabindex="-1"
|
|
673
662
|
aria-label=${this.localize.term("increase")}
|
|
674
663
|
@pointerdown=${this.maintainFocusOnPointerDown}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { t as __decorate } from "./decorate-DcF3lt7P.js";
|
|
2
|
+
import { positionAnchoredSurface } from "./utilities/anchored-surface.js";
|
|
2
3
|
import { css, html } from "lit";
|
|
3
4
|
import { property, query } from "lit/decorators.js";
|
|
4
5
|
import hostStyles from "@mcp-b/wc-support/styles/host.styles";
|
|
@@ -7,7 +8,7 @@ import { animateWithClass } from "@mcp-b/wc-support/utilities/animate";
|
|
|
7
8
|
import { ifDefined } from "lit/directives/if-defined.js";
|
|
8
9
|
import { SigveloBeforeCloseEvent, SigveloBeforeOpenEvent, SigveloCloseEvent, SigveloOpenEvent } from "@mcp-b/wc-support/events/open-close";
|
|
9
10
|
import { stripElementPrefix } from "@mcp-b/wc-support/prefix";
|
|
10
|
-
import {
|
|
11
|
+
import { autoUpdate } from "@floating-ui/dom";
|
|
11
12
|
import { createId } from "@mcp-b/wc-support/utilities/math";
|
|
12
13
|
//#region src/components/popover/popover.styles.ts
|
|
13
14
|
var popover_styles_default = css`
|
|
@@ -484,38 +485,14 @@ var SigveloPopover = class extends SigveloElement {
|
|
|
484
485
|
/** Repositions the popover */
|
|
485
486
|
reposition() {
|
|
486
487
|
if (!this.anchor) return;
|
|
487
|
-
|
|
488
|
+
positionAnchoredSurface({
|
|
489
|
+
anchor: this.anchor,
|
|
490
|
+
host: this,
|
|
491
|
+
surface: this.dialog,
|
|
492
|
+
arrow: this.arrow,
|
|
488
493
|
placement: this.placement,
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
mainAxis: this.distance,
|
|
492
|
-
crossAxis: this.offset
|
|
493
|
-
}),
|
|
494
|
-
flip(),
|
|
495
|
-
shift(),
|
|
496
|
-
arrow({ element: this.arrow })
|
|
497
|
-
]
|
|
498
|
-
}).then(({ x, y, middlewareData, placement }) => {
|
|
499
|
-
this.setAttribute("data-placement", placement);
|
|
500
|
-
Object.assign(this.dialog.style, {
|
|
501
|
-
left: `${x}px`,
|
|
502
|
-
top: `${y}px`
|
|
503
|
-
});
|
|
504
|
-
if (middlewareData.arrow) {
|
|
505
|
-
const arrowX = middlewareData.arrow.x;
|
|
506
|
-
const arrowY = middlewareData.arrow.y;
|
|
507
|
-
const staticSide = {
|
|
508
|
-
top: "bottom",
|
|
509
|
-
right: "left",
|
|
510
|
-
bottom: "top",
|
|
511
|
-
left: "right"
|
|
512
|
-
}[placement.split("-")[0]];
|
|
513
|
-
Object.assign(this.arrow.style, {
|
|
514
|
-
left: typeof arrowX === "number" ? `${arrowX}px` : "",
|
|
515
|
-
top: typeof arrowY === "number" ? `${arrowY}px` : "",
|
|
516
|
-
[staticSide]: "calc(var(--arrow-diagonal-size) * -1)"
|
|
517
|
-
});
|
|
518
|
-
}
|
|
494
|
+
distance: this.distance,
|
|
495
|
+
offset: this.offset
|
|
519
496
|
});
|
|
520
497
|
}
|
|
521
498
|
render() {
|
|
@@ -133,7 +133,7 @@ var SigveloPreviewCard = class extends SigveloElement {
|
|
|
133
133
|
clearTimeout(this.hoverInTimeout);
|
|
134
134
|
clearTimeout(this.hoverOutTimeout);
|
|
135
135
|
this.open = false;
|
|
136
|
-
if (event.currentTarget === this.card && this.anchor
|
|
136
|
+
if (event.currentTarget === this.card && this.anchor) this.anchor.focus();
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
static {
|