@ds-mo/ui 16.1.0 → 16.1.2
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/dist/.package-ready.json +1 -1
- package/dist/agent-patterns.json +1 -1
- package/dist/agent.json +133 -32
- package/dist/angular/boolean-value-accessor.js +3 -3
- package/dist/angular/ds-agent-activity.js +3 -3
- package/dist/angular/ds-agent-questionnaire.js +3 -3
- package/dist/angular/ds-agent-response.js +3 -3
- package/dist/angular/ds-agent-source-list.js +3 -3
- package/dist/angular/ds-agent-tool-call.js +3 -3
- package/dist/angular/ds-attachment-list.js +3 -3
- package/dist/angular/ds-avatar.js +3 -3
- package/dist/angular/ds-badge.js +3 -3
- package/dist/angular/ds-banner.js +3 -3
- package/dist/angular/ds-bar-action.js +3 -3
- package/dist/angular/ds-bar-nav.js +3 -3
- package/dist/angular/ds-bar-page-title.js +3 -3
- package/dist/angular/ds-bar-title.js +3 -3
- package/dist/angular/ds-bar-workflow.js +3 -3
- package/dist/angular/ds-breadcrumb.js +3 -3
- package/dist/angular/ds-button-filled.js +3 -3
- package/dist/angular/ds-button-inverted.js +3 -3
- package/dist/angular/ds-button-unfilled.js +3 -3
- package/dist/angular/ds-calendar.js +3 -3
- package/dist/angular/ds-card-action-center.js +3 -3
- package/dist/angular/ds-card-chart.js +3 -3
- package/dist/angular/ds-card-navigation.js +3 -3
- package/dist/angular/ds-card-overview.js +3 -3
- package/dist/angular/ds-card-setting.js +3 -3
- package/dist/angular/ds-card-settings-scope.js +3 -3
- package/dist/angular/ds-chart-legend.js +3 -3
- package/dist/angular/ds-chart.js +3 -3
- package/dist/angular/ds-checkbox-group.js +3 -3
- package/dist/angular/ds-checkbox.js +3 -3
- package/dist/angular/ds-chip.js +3 -3
- package/dist/angular/ds-code-block.js +3 -3
- package/dist/angular/ds-conversation-list-item.js +3 -3
- package/dist/angular/ds-conversation-list-section.js +3 -3
- package/dist/angular/ds-conversation-list.js +3 -3
- package/dist/angular/ds-data-customize.js +3 -3
- package/dist/angular/ds-data-filter.js +3 -3
- package/dist/angular/ds-data-group.js +3 -3
- package/dist/angular/ds-data-preferences.js +3 -3
- package/dist/angular/ds-data-saved-views.js +3 -3
- package/dist/angular/ds-data-search.js +3 -3
- package/dist/angular/ds-data-sort.js +3 -3
- package/dist/angular/ds-data-toolbar.js +3 -3
- package/dist/angular/ds-divider.js +3 -3
- package/dist/angular/ds-empty-state.js +3 -3
- package/dist/angular/ds-field.js +3 -3
- package/dist/angular/ds-filter-menu.js +3 -3
- package/dist/angular/ds-icon.js +3 -3
- package/dist/angular/ds-inline-banner-settings.js +3 -3
- package/dist/angular/ds-input-date.js +3 -3
- package/dist/angular/ds-input-time.js +3 -3
- package/dist/angular/ds-input.js +3 -3
- package/dist/angular/ds-loader.js +3 -3
- package/dist/angular/ds-map-cluster-marker.js +3 -3
- package/dist/angular/ds-map-entity-marker.js +3 -3
- package/dist/angular/ds-map-marker.js +3 -3
- package/dist/angular/ds-markdown.js +3 -3
- package/dist/angular/ds-menu.js +3 -3
- package/dist/angular/ds-message-actions.js +3 -3
- package/dist/angular/ds-message-bubble.js +3 -3
- package/dist/angular/ds-message-composer.js +3 -3
- package/dist/angular/ds-message-scroller.js +3 -3
- package/dist/angular/ds-message.js +3 -3
- package/dist/angular/ds-mobile-bar-nav.js +3 -3
- package/dist/angular/ds-mobile-header.js +3 -3
- package/dist/angular/ds-mobile-section-switcher.js +3 -3
- package/dist/angular/ds-mobile-sheet-nav.js +3 -3
- package/dist/angular/ds-modal.js +3 -3
- package/dist/angular/ds-navigation-tab-group.js +3 -3
- package/dist/angular/ds-pagination.js +3 -3
- package/dist/angular/ds-panel-nav.js +3 -3
- package/dist/angular/ds-panel-sub-nav.js +3 -3
- package/dist/angular/ds-panel-tool-header.js +3 -3
- package/dist/angular/ds-panel-tool-search.js +3 -3
- package/dist/angular/ds-panel-tools.js +3 -3
- package/dist/angular/ds-paper-texture.js +3 -3
- package/dist/angular/ds-radio-tile.js +3 -3
- package/dist/angular/ds-radio.js +3 -3
- package/dist/angular/ds-score.js +3 -3
- package/dist/angular/ds-scroll-overlay.js +3 -3
- package/dist/angular/ds-select-toggle.js +3 -3
- package/dist/angular/ds-select.js +3 -3
- package/dist/angular/ds-setting-row-checkbox.js +3 -3
- package/dist/angular/ds-setting-row-radio.js +3 -3
- package/dist/angular/ds-setting-row-toggle.js +3 -3
- package/dist/angular/ds-shell-app.js +3 -3
- package/dist/angular/ds-shell-page.js +3 -3
- package/dist/angular/ds-shell-tools.js +3 -3
- package/dist/angular/ds-skeleton.js +3 -3
- package/dist/angular/ds-slider.js +3 -3
- package/dist/angular/ds-swatch-picker.js +3 -3
- package/dist/angular/ds-switch.js +3 -3
- package/dist/angular/ds-tab-group.js +3 -3
- package/dist/angular/ds-table.js +3 -3
- package/dist/angular/ds-tag.js +3 -3
- package/dist/angular/ds-text.js +3 -3
- package/dist/angular/ds-textarea.js +3 -3
- package/dist/angular/ds-time-picker.js +3 -3
- package/dist/angular/ds-toast.js +3 -3
- package/dist/angular/ds-tooltip-chart.js +3 -3
- package/dist/angular/ds-tooltip.js +3 -3
- package/dist/angular/ds-typing-indicator.js +3 -3
- package/dist/angular/number-value-accessor.js +3 -3
- package/dist/angular/radio-value-accessor.js +3 -3
- package/dist/angular/select-value-accessor.js +3 -3
- package/dist/angular/text-value-accessor.js +3 -3
- package/dist/angular/value-accessor.js +3 -3
- package/dist/components/THIRD-PARTY-NOTICES +2 -2
- package/dist/components/bundled-dependencies.json +2 -2
- package/dist/components/ds-agent-questionnaire.js +1 -1
- package/dist/components/ds-agent-response.js +1 -1
- package/dist/components/ds-banner.js +1 -1
- package/dist/components/ds-bar-nav.js +1 -1
- package/dist/components/ds-bar-page-title.js +1 -1
- package/dist/components/ds-bar-title.js +1 -1
- package/dist/components/ds-bar-workflow.js +1 -1
- package/dist/components/ds-button-unfilled.js +1 -1
- package/dist/components/ds-calendar.js +1 -1
- package/dist/components/ds-card-chart.js +1 -1
- package/dist/components/ds-card-overview.js +1 -1
- package/dist/components/ds-card-setting.js +1 -1
- package/dist/components/ds-chart-legend.js +1 -1
- package/dist/components/ds-chart-legend.js.map +1 -1
- package/dist/components/ds-code-block.js +1 -1
- package/dist/components/ds-data-customize.js +1 -1
- package/dist/components/ds-data-filter.js +1 -1
- package/dist/components/ds-data-group.js +1 -1
- package/dist/components/ds-data-preferences.js +1 -1
- package/dist/components/ds-data-saved-views.js +1 -1
- package/dist/components/ds-data-search.js +1 -1
- package/dist/components/ds-data-sort.js +1 -1
- package/dist/components/ds-filter-menu.js +1 -1
- package/dist/components/ds-input-date.js +1 -1
- package/dist/components/ds-input-time.js +1 -1
- package/dist/components/ds-input.js +1 -1
- package/dist/components/ds-markdown.js +1 -1
- package/dist/components/ds-menu.js +1 -1
- package/dist/components/ds-message-actions.js +1 -1
- package/dist/components/ds-message-composer.js +1 -1
- package/dist/components/ds-message-scroller.js +1 -1
- package/dist/components/ds-mobile-header.js +1 -1
- package/dist/components/ds-mobile-section-switcher.js +1 -1
- package/dist/components/ds-mobile-sheet-nav.js +1 -1
- package/dist/components/ds-modal.js +1 -1
- package/dist/components/ds-pagination.js +1 -1
- package/dist/components/ds-panel-nav.js +1 -1
- package/dist/components/ds-panel-tool-header.js +1 -1
- package/dist/components/ds-panel-tool-search.js +1 -1
- package/dist/components/ds-panel-tools.js +1 -1
- package/dist/components/ds-select.js +1 -1
- package/dist/components/ds-shell-app.js +1 -1
- package/dist/components/ds-shell-tools.js +1 -1
- package/dist/components/ds-table.js +1 -1
- package/dist/components/ds-table.js.map +1 -1
- package/dist/components/ds-toast.js +1 -1
- package/dist/components/ds-toast.js.map +1 -1
- package/dist/components/ds-tooltip.js +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index.js.map +1 -1
- package/dist/components/{p-BufAjyCA.js → p-9zDZcSc0.js} +2 -2
- package/dist/components/{p-SuM1Dske.js → p-B8jrUwL-.js} +2 -2
- package/dist/components/{p-DbBRCHst.js → p-BJB6kfA2.js} +2 -2
- package/dist/components/{p-a_-GSwE_.js → p-BK_SriZN.js} +2 -2
- package/dist/components/{p-DwiHy7ws.js → p-BKd0e8k8.js} +2 -2
- package/dist/components/{p-FsosWHV6.js → p-BNySDuzx.js} +2 -2
- package/dist/components/{p-DGznD-OD.js → p-BdJqRDKY.js} +2 -2
- package/dist/components/{p-CtBlyEwu.js → p-BgMeLCj3.js} +2 -2
- package/dist/components/{p-B6kIiHGc.js → p-BknNUjWh.js} +2 -2
- package/dist/components/{p-D1D_nwPJ.js → p-Bn-tsogb.js} +2 -2
- package/dist/components/{p-C9R-Yn0N.js → p-C3nUi5Lo.js} +2 -2
- package/dist/components/{p-DACIe-66.js → p-CcWT4SzP.js} +2 -2
- package/dist/components/{p-BL98zGOI.js → p-Ckar-ZZa.js} +2 -2
- package/dist/components/{p-D4wFhnby.js → p-CvK-Gy-b.js} +2 -2
- package/dist/components/{p-8XJLNIKj.js → p-D9MqUHig.js} +2 -2
- package/dist/components/{p-BNimvRZy.js → p-DI5GEmid.js} +2 -2
- package/dist/components/p-DTlNtCX1.js +2 -0
- package/dist/components/p-DTlNtCX1.js.map +1 -0
- package/dist/components/p-D_kOVT6i.js +2 -0
- package/dist/components/{p-S6vTfjOk.js.map → p-D_kOVT6i.js.map} +1 -1
- package/dist/components/{p-DC_yjqdf.js → p-Ddkyu_wE.js} +2 -2
- package/dist/components/{p-CeaXdjwl.js → p-ZcZ0N7Ok.js} +2 -2
- package/dist/components/{p-BO0Tb3LT.js → p-ZumxIz-2.js} +2 -2
- package/dist/components/{p-BLPr2sCi.js → p-qnp-yeXl.js} +2 -2
- package/dist/components/{p-02bODFpT.js → p-txmcXZdy.js} +2 -2
- package/dist/components/{p-BiB2qjNS.js → p-xouEdChm.js} +2 -2
- package/dist/components/{p-Dp90dvw8.js → p-zdiRX3Sf.js} +2 -2
- package/dist/docs/components.json +359 -39
- package/dist/lib/toast/index.js +61 -20
- package/dist/lib/toast/index.js.map +2 -2
- package/dist/lib/toast/toast-types.d.ts +1 -0
- package/dist/lint/THIRD-PARTY-NOTICES +1 -1
- package/dist/lint/bundled-dependencies.json +1 -1
- package/dist/lint/index.js +18 -10
- package/dist/mcp-data/registry/agent-response.json +30 -2
- package/dist/mcp-data/registry/agent-tool-call.json +22 -2
- package/dist/mcp-data/registry/banner.json +10 -2
- package/dist/mcp-data/registry/bar-action.json +10 -2
- package/dist/mcp-data/registry/card-chart.json +30 -2
- package/dist/mcp-data/registry/card-navigation.json +12 -2
- package/dist/mcp-data/registry/card-overview.json +22 -2
- package/dist/mcp-data/registry/card-setting.json +18 -2
- package/dist/mcp-data/registry/chart-legend.json +6 -6
- package/dist/mcp-data/registry/checkbox-group.json +12 -2
- package/dist/mcp-data/registry/conversation-list-item.json +22 -2
- package/dist/mcp-data/registry/conversation-list-section.json +12 -2
- package/dist/mcp-data/registry/conversation-list.json +24 -2
- package/dist/mcp-data/registry/data-toolbar.json +28 -2
- package/dist/mcp-data/registry/field.json +12 -2
- package/dist/mcp-data/registry/input.json +16 -2
- package/dist/mcp-data/registry/message-bubble.json +12 -2
- package/dist/mcp-data/registry/message-composer.json +28 -2
- package/dist/mcp-data/registry/message-scroller.json +24 -2
- package/dist/mcp-data/registry/message.json +36 -2
- package/dist/mcp-data/registry/mobile-header.json +16 -2
- package/dist/mcp-data/registry/modal.json +18 -2
- package/dist/mcp-data/registry/registry.json +132 -31
- package/dist/mcp-data/registry/scroll-overlay.json +18 -2
- package/dist/mcp-data/registry/setting-row-checkbox.json +12 -2
- package/dist/mcp-data/registry/setting-row-radio.json +12 -2
- package/dist/mcp-data/registry/shell-app.json +60 -2
- package/dist/mcp-data/registry/shell-page.json +24 -2
- package/dist/mcp-data/registry/table.json +31 -2
- package/dist/mcp-data/registry/text.json +12 -2
- package/dist/mcp-data/registry/tooltip.json +12 -2
- package/dist/react/react-runtime.js +44 -1
- package/dist/types/components/ChartLegend/ChartLegend.d.ts +2 -2
- package/dist/types/components/Table/table-group-load-controller.d.ts +1 -1
- package/dist/types/components/Table/table-load-controller.d.ts +1 -2
- package/dist/types/components/Table/table-load-observer.d.ts +13 -0
- package/dist/types/components.d.ts +3 -3
- package/dist/types/stencil-public-runtime.d.ts +73 -55
- package/dist/types/toast/toast-types.d.ts +1 -0
- package/dist/types/utils/anchored-position-controller.d.ts +3 -2
- package/dist/vue/vue-runtime.js +13 -1
- package/package.json +15 -12
- package/dist/components/p-BMI0F08u.js +0 -2
- package/dist/components/p-BMI0F08u.js.map +0 -1
- package/dist/components/p-S6vTfjOk.js +0 -2
- /package/dist/components/{p-BufAjyCA.js.map → p-9zDZcSc0.js.map} +0 -0
- /package/dist/components/{p-SuM1Dske.js.map → p-B8jrUwL-.js.map} +0 -0
- /package/dist/components/{p-DbBRCHst.js.map → p-BJB6kfA2.js.map} +0 -0
- /package/dist/components/{p-a_-GSwE_.js.map → p-BK_SriZN.js.map} +0 -0
- /package/dist/components/{p-DwiHy7ws.js.map → p-BKd0e8k8.js.map} +0 -0
- /package/dist/components/{p-FsosWHV6.js.map → p-BNySDuzx.js.map} +0 -0
- /package/dist/components/{p-DGznD-OD.js.map → p-BdJqRDKY.js.map} +0 -0
- /package/dist/components/{p-CtBlyEwu.js.map → p-BgMeLCj3.js.map} +0 -0
- /package/dist/components/{p-B6kIiHGc.js.map → p-BknNUjWh.js.map} +0 -0
- /package/dist/components/{p-D1D_nwPJ.js.map → p-Bn-tsogb.js.map} +0 -0
- /package/dist/components/{p-C9R-Yn0N.js.map → p-C3nUi5Lo.js.map} +0 -0
- /package/dist/components/{p-DACIe-66.js.map → p-CcWT4SzP.js.map} +0 -0
- /package/dist/components/{p-BL98zGOI.js.map → p-Ckar-ZZa.js.map} +0 -0
- /package/dist/components/{p-D4wFhnby.js.map → p-CvK-Gy-b.js.map} +0 -0
- /package/dist/components/{p-8XJLNIKj.js.map → p-D9MqUHig.js.map} +0 -0
- /package/dist/components/{p-BNimvRZy.js.map → p-DI5GEmid.js.map} +0 -0
- /package/dist/components/{p-DC_yjqdf.js.map → p-Ddkyu_wE.js.map} +0 -0
- /package/dist/components/{p-CeaXdjwl.js.map → p-ZcZ0N7Ok.js.map} +0 -0
- /package/dist/components/{p-BO0Tb3LT.js.map → p-ZumxIz-2.js.map} +0 -0
- /package/dist/components/{p-BLPr2sCi.js.map → p-qnp-yeXl.js.map} +0 -0
- /package/dist/components/{p-02bODFpT.js.map → p-txmcXZdy.js.map} +0 -0
- /package/dist/components/{p-BiB2qjNS.js.map → p-xouEdChm.js.map} +0 -0
- /package/dist/components/{p-Dp90dvw8.js.map → p-zdiRX3Sf.js.map} +0 -0
|
@@ -752,7 +752,7 @@ declare namespace LocalJSX {
|
|
|
752
752
|
}
|
|
753
753
|
export { LocalJSX as JSX };
|
|
754
754
|
export declare namespace JSXBase {
|
|
755
|
-
interface IntrinsicElements {
|
|
755
|
+
export interface IntrinsicElements {
|
|
756
756
|
slot: JSXBase.SlotAttributes<HTMLSlotElement>;
|
|
757
757
|
a: JSXBase.AnchorHTMLAttributes<HTMLAnchorElement>;
|
|
758
758
|
abbr: JSXBase.HTMLAttributes;
|
|
@@ -923,12 +923,12 @@ export declare namespace JSXBase {
|
|
|
923
923
|
use: JSXBase.SVGAttributes;
|
|
924
924
|
view: JSXBase.SVGAttributes;
|
|
925
925
|
}
|
|
926
|
-
interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
926
|
+
export interface SlotAttributes<T = HTMLSlotElement> extends JSXAttributes<T> {
|
|
927
927
|
name?: string;
|
|
928
928
|
slot?: string;
|
|
929
929
|
onSlotchange?: (event: Event) => void;
|
|
930
930
|
}
|
|
931
|
-
interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
931
|
+
export interface AnchorHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
932
932
|
download?: any;
|
|
933
933
|
href?: string;
|
|
934
934
|
hrefLang?: string;
|
|
@@ -939,9 +939,9 @@ export declare namespace JSXBase {
|
|
|
939
939
|
target?: string;
|
|
940
940
|
referrerPolicy?: ReferrerPolicy;
|
|
941
941
|
}
|
|
942
|
-
interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
942
|
+
export interface AudioHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
943
943
|
}
|
|
944
|
-
interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
944
|
+
export interface AreaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
945
945
|
alt?: string;
|
|
946
946
|
coords?: string;
|
|
947
947
|
download?: any;
|
|
@@ -953,14 +953,14 @@ export declare namespace JSXBase {
|
|
|
953
953
|
shape?: string;
|
|
954
954
|
target?: string;
|
|
955
955
|
}
|
|
956
|
-
interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
956
|
+
export interface BaseHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
957
957
|
href?: string;
|
|
958
958
|
target?: string;
|
|
959
959
|
}
|
|
960
|
-
interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
960
|
+
export interface BlockquoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
961
961
|
cite?: string;
|
|
962
962
|
}
|
|
963
|
-
interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
963
|
+
export interface ButtonHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
964
964
|
disabled?: boolean;
|
|
965
965
|
form?: string;
|
|
966
966
|
formAction?: string;
|
|
@@ -983,44 +983,45 @@ export declare namespace JSXBase {
|
|
|
983
983
|
commandFor?: string;
|
|
984
984
|
commandfor?: string;
|
|
985
985
|
}
|
|
986
|
-
interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
986
|
+
export interface CanvasHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
987
987
|
height?: number | string;
|
|
988
988
|
width?: number | string;
|
|
989
989
|
}
|
|
990
|
-
interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
990
|
+
export interface ColHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
991
991
|
span?: number;
|
|
992
992
|
}
|
|
993
|
-
interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
993
|
+
export interface ColgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
994
994
|
span?: number;
|
|
995
995
|
}
|
|
996
|
-
interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
996
|
+
export interface DetailsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
997
997
|
open?: boolean;
|
|
998
998
|
name?: string;
|
|
999
999
|
onToggle?: (event: ToggleEvent) => void;
|
|
1000
1000
|
}
|
|
1001
|
-
interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1001
|
+
export interface DelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1002
1002
|
cite?: string;
|
|
1003
1003
|
dateTime?: string;
|
|
1004
1004
|
datetime?: string;
|
|
1005
1005
|
}
|
|
1006
|
-
interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1006
|
+
export interface DialogHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1007
1007
|
onCancel?: (event: Event) => void;
|
|
1008
1008
|
onClose?: (event: Event) => void;
|
|
1009
1009
|
open?: boolean;
|
|
1010
1010
|
returnValue?: string;
|
|
1011
|
+
closedby?: 'any' | 'closerequest' | 'none';
|
|
1011
1012
|
}
|
|
1012
|
-
interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1013
|
+
export interface EmbedHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1013
1014
|
height?: number | string;
|
|
1014
1015
|
src?: string;
|
|
1015
1016
|
type?: string;
|
|
1016
1017
|
width?: number | string;
|
|
1017
1018
|
}
|
|
1018
|
-
interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1019
|
+
export interface FieldsetHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1019
1020
|
disabled?: boolean;
|
|
1020
1021
|
form?: string;
|
|
1021
1022
|
name?: string;
|
|
1022
1023
|
}
|
|
1023
|
-
interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1024
|
+
export interface FormHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1024
1025
|
acceptCharset?: string;
|
|
1025
1026
|
acceptcharset?: string;
|
|
1026
1027
|
action?: string;
|
|
@@ -1034,10 +1035,10 @@ export declare namespace JSXBase {
|
|
|
1034
1035
|
novalidate?: boolean | string;
|
|
1035
1036
|
target?: string;
|
|
1036
1037
|
}
|
|
1037
|
-
interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1038
|
+
export interface HtmlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1038
1039
|
manifest?: string;
|
|
1039
1040
|
}
|
|
1040
|
-
interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1041
|
+
export interface IframeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1041
1042
|
allow?: string;
|
|
1042
1043
|
allowFullScreen?: boolean;
|
|
1043
1044
|
allowfullScreen?: string | boolean;
|
|
@@ -1045,6 +1046,8 @@ export declare namespace JSXBase {
|
|
|
1045
1046
|
allowtransparency?: string | boolean;
|
|
1046
1047
|
frameBorder?: number | string;
|
|
1047
1048
|
frameborder?: number | string;
|
|
1049
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1050
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1048
1051
|
importance?: 'low' | 'auto' | 'high';
|
|
1049
1052
|
height?: number | string;
|
|
1050
1053
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1062,11 +1065,13 @@ export declare namespace JSXBase {
|
|
|
1062
1065
|
srcdoc?: string;
|
|
1063
1066
|
width?: number | string;
|
|
1064
1067
|
}
|
|
1065
|
-
interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1068
|
+
export interface ImgHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1066
1069
|
alt?: string;
|
|
1067
1070
|
crossOrigin?: string;
|
|
1068
1071
|
crossorigin?: string;
|
|
1069
1072
|
decoding?: 'async' | 'auto' | 'sync';
|
|
1073
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1074
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1070
1075
|
importance?: 'low' | 'auto' | 'high';
|
|
1071
1076
|
height?: number | string;
|
|
1072
1077
|
loading?: 'lazy' | 'auto' | 'eager';
|
|
@@ -1079,12 +1084,12 @@ export declare namespace JSXBase {
|
|
|
1079
1084
|
usemap?: string;
|
|
1080
1085
|
width?: number | string;
|
|
1081
1086
|
}
|
|
1082
|
-
interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1087
|
+
export interface InsHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1083
1088
|
cite?: string;
|
|
1084
1089
|
dateTime?: string;
|
|
1085
1090
|
datetime?: string;
|
|
1086
1091
|
}
|
|
1087
|
-
interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1092
|
+
export interface InputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1088
1093
|
accept?: string;
|
|
1089
1094
|
allowdirs?: boolean;
|
|
1090
1095
|
alt?: string;
|
|
@@ -1147,7 +1152,7 @@ export declare namespace JSXBase {
|
|
|
1147
1152
|
popoverTargetElement?: Element | null;
|
|
1148
1153
|
popoverTarget?: string;
|
|
1149
1154
|
}
|
|
1150
|
-
interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1155
|
+
export interface KeygenHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1151
1156
|
challenge?: string;
|
|
1152
1157
|
disabled?: boolean;
|
|
1153
1158
|
form?: string;
|
|
@@ -1157,15 +1162,17 @@ export declare namespace JSXBase {
|
|
|
1157
1162
|
keyparams?: string;
|
|
1158
1163
|
name?: string;
|
|
1159
1164
|
}
|
|
1160
|
-
interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
|
+
export interface LabelHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1161
1166
|
form?: string;
|
|
1162
1167
|
htmlFor?: string;
|
|
1163
1168
|
}
|
|
1164
|
-
interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1169
|
+
export interface LiHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1165
1170
|
value?: string | string[] | number;
|
|
1166
1171
|
}
|
|
1167
|
-
interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1172
|
+
export interface LinkHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1168
1173
|
as?: string;
|
|
1174
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1175
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1169
1176
|
href?: string;
|
|
1170
1177
|
hrefLang?: string;
|
|
1171
1178
|
hreflang?: string;
|
|
@@ -1176,13 +1183,13 @@ export declare namespace JSXBase {
|
|
|
1176
1183
|
sizes?: string;
|
|
1177
1184
|
type?: string;
|
|
1178
1185
|
}
|
|
1179
|
-
interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1186
|
+
export interface MapHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1180
1187
|
name?: string;
|
|
1181
1188
|
}
|
|
1182
|
-
interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1189
|
+
export interface MenuHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1183
1190
|
type?: string;
|
|
1184
1191
|
}
|
|
1185
|
-
interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1192
|
+
export interface MediaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1186
1193
|
autoPlay?: boolean;
|
|
1187
1194
|
autoplay?: boolean | string;
|
|
1188
1195
|
controls?: boolean;
|
|
@@ -1222,7 +1229,7 @@ export declare namespace JSXBase {
|
|
|
1222
1229
|
onVolumeChange?: (event: Event) => void;
|
|
1223
1230
|
onWaiting?: (event: Event) => void;
|
|
1224
1231
|
}
|
|
1225
|
-
interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1232
|
+
export interface MetaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1226
1233
|
charSet?: string;
|
|
1227
1234
|
charset?: string;
|
|
1228
1235
|
content?: string;
|
|
@@ -1230,7 +1237,7 @@ export declare namespace JSXBase {
|
|
|
1230
1237
|
httpequiv?: string;
|
|
1231
1238
|
name?: string;
|
|
1232
1239
|
}
|
|
1233
|
-
interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1240
|
+
export interface MeterHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1234
1241
|
form?: string;
|
|
1235
1242
|
high?: number;
|
|
1236
1243
|
low?: number;
|
|
@@ -1239,10 +1246,10 @@ export declare namespace JSXBase {
|
|
|
1239
1246
|
optimum?: number;
|
|
1240
1247
|
value?: string | string[] | number;
|
|
1241
1248
|
}
|
|
1242
|
-
interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1249
|
+
export interface QuoteHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1243
1250
|
cite?: string;
|
|
1244
1251
|
}
|
|
1245
|
-
interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1252
|
+
export interface ObjectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1246
1253
|
classID?: string;
|
|
1247
1254
|
classid?: string;
|
|
1248
1255
|
data?: string;
|
|
@@ -1255,47 +1262,49 @@ export declare namespace JSXBase {
|
|
|
1255
1262
|
width?: number | string;
|
|
1256
1263
|
wmode?: string;
|
|
1257
1264
|
}
|
|
1258
|
-
interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1265
|
+
export interface OlHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1259
1266
|
reversed?: boolean;
|
|
1260
1267
|
start?: number;
|
|
1261
1268
|
}
|
|
1262
|
-
interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1269
|
+
export interface OptgroupHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1263
1270
|
disabled?: boolean;
|
|
1264
1271
|
label?: string;
|
|
1265
1272
|
}
|
|
1266
|
-
interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1273
|
+
export interface OptionHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1267
1274
|
disabled?: boolean;
|
|
1268
1275
|
label?: string;
|
|
1269
1276
|
selected?: boolean;
|
|
1270
1277
|
value?: string | string[] | number;
|
|
1271
1278
|
}
|
|
1272
|
-
interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1279
|
+
export interface OutputHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1273
1280
|
form?: string;
|
|
1274
1281
|
htmlFor?: string;
|
|
1275
1282
|
name?: string;
|
|
1276
1283
|
}
|
|
1277
|
-
interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1284
|
+
export interface ParamHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1278
1285
|
name?: string;
|
|
1279
1286
|
value?: string | string[] | number;
|
|
1280
1287
|
}
|
|
1281
|
-
interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1288
|
+
export interface ProgressHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1282
1289
|
max?: number | string;
|
|
1283
1290
|
value?: string | string[] | number;
|
|
1284
1291
|
}
|
|
1285
|
-
interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1292
|
+
export interface ScriptHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1286
1293
|
async?: boolean;
|
|
1287
1294
|
charSet?: string;
|
|
1288
1295
|
charset?: string;
|
|
1289
1296
|
crossOrigin?: string;
|
|
1290
1297
|
crossorigin?: string;
|
|
1291
1298
|
defer?: boolean;
|
|
1299
|
+
fetchPriority?: 'high' | 'low' | 'auto';
|
|
1300
|
+
fetchpriority?: 'high' | 'low' | 'auto';
|
|
1292
1301
|
importance?: 'low' | 'auto' | 'high';
|
|
1293
1302
|
integrity?: string;
|
|
1294
1303
|
nonce?: string;
|
|
1295
1304
|
src?: string;
|
|
1296
1305
|
type?: string;
|
|
1297
1306
|
}
|
|
1298
|
-
interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1307
|
+
export interface SelectHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1299
1308
|
disabled?: boolean;
|
|
1300
1309
|
form?: string;
|
|
1301
1310
|
multiple?: boolean;
|
|
@@ -1305,7 +1314,7 @@ export declare namespace JSXBase {
|
|
|
1305
1314
|
autoComplete?: string;
|
|
1306
1315
|
autocomplete?: string;
|
|
1307
1316
|
}
|
|
1308
|
-
interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1317
|
+
export interface SourceHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1309
1318
|
height?: number;
|
|
1310
1319
|
media?: string;
|
|
1311
1320
|
sizes?: string;
|
|
@@ -1314,20 +1323,20 @@ export declare namespace JSXBase {
|
|
|
1314
1323
|
type?: string;
|
|
1315
1324
|
width?: number;
|
|
1316
1325
|
}
|
|
1317
|
-
interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1326
|
+
export interface StyleHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1318
1327
|
media?: string;
|
|
1319
1328
|
nonce?: string;
|
|
1320
1329
|
scoped?: boolean;
|
|
1321
1330
|
type?: string;
|
|
1322
1331
|
}
|
|
1323
|
-
interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1332
|
+
export interface TableHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1324
1333
|
cellPadding?: number | string;
|
|
1325
1334
|
cellpadding?: number | string;
|
|
1326
1335
|
cellSpacing?: number | string;
|
|
1327
1336
|
cellspacing?: number | string;
|
|
1328
1337
|
summary?: string;
|
|
1329
1338
|
}
|
|
1330
|
-
interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1339
|
+
export interface TextareaHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1331
1340
|
autoComplete?: string;
|
|
1332
1341
|
autocomplete?: string;
|
|
1333
1342
|
cols?: number;
|
|
@@ -1348,12 +1357,12 @@ export declare namespace JSXBase {
|
|
|
1348
1357
|
value?: string | string[] | number;
|
|
1349
1358
|
wrap?: string;
|
|
1350
1359
|
}
|
|
1351
|
-
interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1360
|
+
export interface TdHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1352
1361
|
colSpan?: number;
|
|
1353
1362
|
headers?: string;
|
|
1354
1363
|
rowSpan?: number;
|
|
1355
1364
|
}
|
|
1356
|
-
interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1365
|
+
export interface ThHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1357
1366
|
abbr?: string;
|
|
1358
1367
|
colSpan?: number;
|
|
1359
1368
|
headers?: string;
|
|
@@ -1361,10 +1370,10 @@ export declare namespace JSXBase {
|
|
|
1361
1370
|
rowspan?: number | string;
|
|
1362
1371
|
scope?: string;
|
|
1363
1372
|
}
|
|
1364
|
-
interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1373
|
+
export interface TimeHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1365
1374
|
dateTime?: string;
|
|
1366
1375
|
}
|
|
1367
|
-
interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1376
|
+
export interface TrackHTMLAttributes<T> extends HTMLAttributes<T> {
|
|
1368
1377
|
default?: boolean;
|
|
1369
1378
|
kind?: string;
|
|
1370
1379
|
label?: string;
|
|
@@ -1372,14 +1381,14 @@ export declare namespace JSXBase {
|
|
|
1372
1381
|
srcLang?: string;
|
|
1373
1382
|
srclang?: string;
|
|
1374
1383
|
}
|
|
1375
|
-
interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1384
|
+
export interface VideoHTMLAttributes<T> extends MediaHTMLAttributes<T> {
|
|
1376
1385
|
height?: number | string;
|
|
1377
1386
|
playsInline?: boolean;
|
|
1378
1387
|
playsinline?: boolean | string;
|
|
1379
1388
|
poster?: string;
|
|
1380
1389
|
width?: number | string;
|
|
1381
1390
|
}
|
|
1382
|
-
interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1391
|
+
export interface HTMLAttributes<T = HTMLElement> extends DOMAttributes<T> {
|
|
1383
1392
|
innerHTML?: string;
|
|
1384
1393
|
accessKey?: string;
|
|
1385
1394
|
autoFocus?: boolean;
|
|
@@ -1404,7 +1413,10 @@ export declare namespace JSXBase {
|
|
|
1404
1413
|
tabIndex?: number;
|
|
1405
1414
|
tabindex?: number | string;
|
|
1406
1415
|
title?: string;
|
|
1416
|
+
translate?: 'yes' | 'no' | (string & {});
|
|
1407
1417
|
popover?: string | null;
|
|
1418
|
+
focusgroup?: string;
|
|
1419
|
+
focusgroupstart?: boolean;
|
|
1408
1420
|
inputMode?: string;
|
|
1409
1421
|
inputmode?: string;
|
|
1410
1422
|
enterKeyHint?: string;
|
|
@@ -1442,7 +1454,7 @@ export declare namespace JSXBase {
|
|
|
1442
1454
|
security?: string;
|
|
1443
1455
|
unselectable?: boolean;
|
|
1444
1456
|
}
|
|
1445
|
-
interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1457
|
+
export interface SVGAttributes<T = SVGElement> extends DOMAttributes<T> {
|
|
1446
1458
|
class?: string | {
|
|
1447
1459
|
[className: string]: boolean;
|
|
1448
1460
|
};
|
|
@@ -1704,13 +1716,19 @@ export declare namespace JSXBase {
|
|
|
1704
1716
|
zoomAndPan?: string;
|
|
1705
1717
|
}
|
|
1706
1718
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent) */
|
|
1707
|
-
interface ToggleEvent extends Event {
|
|
1719
|
+
export interface ToggleEvent extends Event {
|
|
1708
1720
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/newState) */
|
|
1709
1721
|
readonly newState: string;
|
|
1710
1722
|
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/ToggleEvent/oldState) */
|
|
1711
1723
|
readonly oldState: string;
|
|
1712
1724
|
}
|
|
1713
|
-
|
|
1725
|
+
type AriaIDLPropertyName = {
|
|
1726
|
+
[K in keyof ARIAMixin]: ARIAMixin[K] extends string | null ? K : never;
|
|
1727
|
+
}[keyof ARIAMixin];
|
|
1728
|
+
type JSXAriaProperties = {
|
|
1729
|
+
[K in AriaIDLPropertyName]?: string | boolean | undefined;
|
|
1730
|
+
};
|
|
1731
|
+
export interface DOMAttributes<T> extends JSXAttributes<T>, JSXAriaProperties {
|
|
1714
1732
|
slot?: string;
|
|
1715
1733
|
part?: string;
|
|
1716
1734
|
exportparts?: string;
|
|
@@ -1840,8 +1858,8 @@ export declare namespace JSXBase {
|
|
|
1840
1858
|
onTransitionStart?: (event: TransitionEvent) => void;
|
|
1841
1859
|
onTransitionStartCapture?: (event: TransitionEvent) => void;
|
|
1842
1860
|
[key: `aria-${string}`]: string | boolean | undefined;
|
|
1843
|
-
[key: `aria${string}`]: string | boolean | undefined;
|
|
1844
1861
|
}
|
|
1862
|
+
export {};
|
|
1845
1863
|
}
|
|
1846
1864
|
export interface JSXAttributes<T = Element> {
|
|
1847
1865
|
key?: string | number;
|
|
@@ -63,6 +63,7 @@ export interface ToastManager<Data = unknown> {
|
|
|
63
63
|
update(id: string, updates: Partial<ToastOptions<Data>>): void;
|
|
64
64
|
close(id: string, reason?: ToastCloseReason): void;
|
|
65
65
|
closeAll(reason?: ToastCloseReason): void;
|
|
66
|
+
/** A replaced, retyped, or dismissed loading toast ignores its old promise's presentation result; progress copy may still update. */
|
|
66
67
|
promise<Value>(promiseValue: PromiseLike<Value>, options: ToastPromiseOptions<Value, Data>): Promise<Value>;
|
|
67
68
|
subscribe(listener: ToastListener<Data>): () => void;
|
|
68
69
|
getSnapshot(): readonly ToastRecord<Data>[];
|
|
@@ -72,6 +72,7 @@ export declare class AnchoredPositionController {
|
|
|
72
72
|
private readonly options;
|
|
73
73
|
private scrollResizeHandler;
|
|
74
74
|
private resizeObserver;
|
|
75
|
+
private resizeTargets;
|
|
75
76
|
private retryRaf;
|
|
76
77
|
private liveRaf;
|
|
77
78
|
private anchorMotionRaf;
|
|
@@ -113,8 +114,8 @@ export declare class AnchoredPositionController {
|
|
|
113
114
|
private eventCanMoveAnchor;
|
|
114
115
|
private scheduleAnchorMotionUpdate;
|
|
115
116
|
/**
|
|
116
|
-
*
|
|
117
|
-
*
|
|
117
|
+
* Keep only the current connected anchor and popup observed. Replaced or
|
|
118
|
+
* detached elements must not remain retained until the overlay closes.
|
|
118
119
|
*/
|
|
119
120
|
observeResizeTargets(): void;
|
|
120
121
|
}
|
package/dist/vue/vue-runtime.js
CHANGED
|
@@ -212,7 +212,19 @@ var defineContainer = (name, defineCustomElement, componentProps = [], emitProps
|
|
|
212
212
|
emits
|
|
213
213
|
});
|
|
214
214
|
};
|
|
215
|
+
|
|
216
|
+
// src/framework/vue-runtime.ts
|
|
217
|
+
function defineContainer2(...args) {
|
|
218
|
+
const component = defineContainer(...args);
|
|
219
|
+
const { props } = component;
|
|
220
|
+
for (const name of args[2] ?? []) {
|
|
221
|
+
if (name.startsWith("aria") && typeof props[name]?.default === "symbol") {
|
|
222
|
+
props[name] = { ...props[name], default: void 0 };
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
return component;
|
|
226
|
+
}
|
|
215
227
|
export {
|
|
216
|
-
defineContainer,
|
|
228
|
+
defineContainer2 as defineContainer,
|
|
217
229
|
defineStencilSSRComponent
|
|
218
230
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ds-mo/ui",
|
|
3
|
-
"version": "16.1.
|
|
3
|
+
"version": "16.1.2",
|
|
4
4
|
"description": "CompoMo — composable web components styled with TokoMo design tokens",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components",
|
|
@@ -95,8 +95,9 @@
|
|
|
95
95
|
"pretest": "node scripts/generate-icon-catalog.mjs",
|
|
96
96
|
"build": "stencil build && node scripts/finalize-package.mjs",
|
|
97
97
|
"verify:pack": "node scripts/verify-framework-proxies.mjs && node scripts/verify-npm-pack.mjs && node scripts/verify-package-imports.mjs",
|
|
98
|
-
"verify:local": "npm run format:check && npm run typecheck && npm run typecheck:storybook && npm run lint && npm test && npm run build && npm run agent:validate && npm run verify:pack",
|
|
99
|
-
"verify:local:full": "npm run verify:local && npm run test:e2e:chromium",
|
|
98
|
+
"verify:local": "npm run format:check && npm run verify:storybook-compatibility && npm run typecheck && npm run typecheck:storybook && npm run lint && npm test && npm run build && npm run agent:validate && npm run verify:pack",
|
|
99
|
+
"verify:local:full": "npm run verify:local && npm run test:e2e:chromium && npm run test:framework-consumers",
|
|
100
|
+
"test:framework-consumers": "node scripts/verify-package-imports.mjs --browser",
|
|
100
101
|
"perf:measure": "node --import tsx/esm scripts/measure-performance.mjs && node scripts/measure-bundles.mjs",
|
|
101
102
|
"test": "node --import tsx/esm --test tests/*.test.ts",
|
|
102
103
|
"test:e2e": "npm run build && playwright test",
|
|
@@ -128,7 +129,9 @@
|
|
|
128
129
|
"registry:build": "node scripts/build-registry.mjs",
|
|
129
130
|
"agent:validate": "node scripts/validate-agent-contract.mjs",
|
|
130
131
|
"agent:validate:trilogy": "node scripts/validate-trilogy-manifests.mjs",
|
|
131
|
-
"mcp": "node scripts/mcp-server.mjs"
|
|
132
|
+
"mcp": "node scripts/mcp-server.mjs",
|
|
133
|
+
"test:visual": "playwright test --config playwright.visual.config.ts",
|
|
134
|
+
"verify:storybook-compatibility": "npm ls storybook @storybook/addon-vitest vitest @vitest/browser-playwright"
|
|
132
135
|
},
|
|
133
136
|
"peerDependencies": {
|
|
134
137
|
"@angular/core": ">=19 <23",
|
|
@@ -192,11 +195,11 @@
|
|
|
192
195
|
"@stencil/core": "^4.43.5",
|
|
193
196
|
"@stencil/react-output-target": "^1.6.0",
|
|
194
197
|
"@stencil/vue-output-target": "^0.14.1",
|
|
195
|
-
"@storybook/addon-a11y": "^10.
|
|
196
|
-
"@storybook/addon-docs": "^10.
|
|
197
|
-
"@storybook/addon-vitest": "^10.
|
|
198
|
-
"@storybook/web-components": "^10.
|
|
199
|
-
"@storybook/web-components-vite": "^10.
|
|
198
|
+
"@storybook/addon-a11y": "^10.6.1",
|
|
199
|
+
"@storybook/addon-docs": "^10.6.1",
|
|
200
|
+
"@storybook/addon-vitest": "^10.6.1",
|
|
201
|
+
"@storybook/web-components": "^10.6.1",
|
|
202
|
+
"@storybook/web-components-vite": "^10.6.1",
|
|
200
203
|
"@types/d3-array": "^3.2.2",
|
|
201
204
|
"@types/d3-scale": "^4.0.9",
|
|
202
205
|
"@types/d3-shape": "^3.1.8",
|
|
@@ -204,7 +207,7 @@
|
|
|
204
207
|
"@types/react": "^19.2.17",
|
|
205
208
|
"@types/react-dom": "^19.2.3",
|
|
206
209
|
"@types/sax": "^1.2.7",
|
|
207
|
-
"@vitest/browser-playwright": "^5.0.
|
|
210
|
+
"@vitest/browser-playwright": "^5.0.3",
|
|
208
211
|
"ajv": "^8.20.0",
|
|
209
212
|
"axe-core": "^4.12.1",
|
|
210
213
|
"colord": "^2.9.4",
|
|
@@ -223,13 +226,13 @@
|
|
|
223
226
|
"prettier": "3.8.3",
|
|
224
227
|
"react": "^19.2.7",
|
|
225
228
|
"react-dom": "^19.2.7",
|
|
226
|
-
"storybook": "^10.
|
|
229
|
+
"storybook": "^10.6.1",
|
|
227
230
|
"svg-tags": "^1.0.0",
|
|
228
231
|
"tsx": "^4.23.0",
|
|
229
232
|
"typescript": "~6.0.3",
|
|
230
233
|
"typescript-eslint": "^8.63.0",
|
|
231
234
|
"vite": "^8.1.4",
|
|
232
|
-
"vitest": "^5.0.
|
|
235
|
+
"vitest": "^5.0.3",
|
|
233
236
|
"vue": "^3.5.41",
|
|
234
237
|
"vue-router": "^5.2.0",
|
|
235
238
|
"zod": "^4.4.3"
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{p as t,H as i,h as s,a as o,t as n}from"./index.js";import{d as e}from"./p-DMPn_dt7.js";import{b as r,T as h,a,r as l}from"./p-mSCnWLhL.js";import{r as d}from"./p-CVYjLzYI.js";import{C as c}from"./p-CuwopElg.js";const p=new Set(["⌘","⇧","⌥","⌃"]);const u={alt:"⌥",cmd:"⌘",command:"⌘",control:"⌃",ctrl:"⌃",option:"⌥",shift:"⇧"};function f(t){return u[t.toLowerCase()]??t}function m(t){const i=t.trim();if(!i)return[];if(i.includes("+")){return i.split("+").map((t=>t.trim())).filter(Boolean).map(f)}if(/\s/.test(i)){return i.split(/\s+/).filter(Boolean).map(f)}const s=Array.from(i);const o=[];while(s.length>1&&p.has(s[0])){o.push(s.shift())}o.push(s.join(""));return o}const g={top:"bottom",right:"left",bottom:"top",left:"right"};function v(t,i){const{anchorRect:s,popupWidth:o,popupHeight:n,align:e,sideOffsetPx:r,alignOffsetPx:h}=t;if(i==="top"||i==="bottom"){return{x:e==="start"?s.left+h:e==="end"?s.right-o+h:s.left+s.width/2-o/2+h,y:i==="top"?s.top-n-r:s.bottom+r}}return{x:i==="left"?s.left-o-r:s.right+r,y:e==="start"?s.top+h:e==="end"?s.bottom-n+h:s.top+s.height/2-n/2+h}}function y(t){const i=t.collisionRect??{top:0,left:0,right:t.viewportWidth,bottom:t.viewportHeight};return{top:i.top+t.viewportPadPx,left:i.left+t.viewportPadPx,right:i.right-t.viewportPadPx,bottom:i.bottom-t.viewportPadPx}}function b(t,i,s){const{popupWidth:o,popupHeight:n}=t;const e=y(t);if(i==="top"||i==="bottom"){return Math.max(e.top-s.y,0)+Math.max(s.y+n-e.bottom,0)}return Math.max(e.left-s.x,0)+Math.max(s.x+o-e.right,0)}function w(t,i,s,o){const n=Math.max(s,o-i);return Math.min(Math.max(t,s),n)}function x(t){const i=y(t);const s=v(t,t.side);const o=g[t.side];const n=v(t,o);const e=b(t,t.side,s);const r=b(t,o,n);const h=e>0&&r<e;const a=h?o:t.side;const l=h?n:s;const d=a==="top"?t.anchorRect.top-i.top-t.sideOffsetPx:a==="bottom"?i.bottom-t.anchorRect.bottom-t.sideOffsetPx:i.bottom-i.top;return{x:w(l.x,t.popupWidth,i.left,i.right),y:w(l.y,t.popupHeight,i.top,i.bottom),resolvedSide:a,availableHeight:Math.max(0,d)}}const C=8;class O{constructor(t){this.scrollResizeHandler=null;this.resizeObserver=null;this.retryRaf=null;this.liveRaf=null;this.anchorMotionRaf=null;this.activeAnchorMotions=0;this.ownerDocument=null;this.last=null;this.isReady=false;this.generation=0;this.retryGeneration=0;this.anchorMotionStartHandler=t=>{if(!this.eventCanMoveAnchor(t))return;this.activeAnchorMotions+=1;this.scheduleAnchorMotionUpdate()};this.anchorMotionEndHandler=t=>{if(!this.eventCanMoveAnchor(t))return;this.activeAnchorMotions=Math.max(0,this.activeAnchorMotions-1);this.scheduleAnchorMotionUpdate()};this.options=t}get ready(){return this.isReady}observe(){this.bindListeners()}unobserve(){this.unbindListeners();this.cancel();this.last=null;this.isReady=false}schedule(t){this.cancelRetry();this.isReady=false;const i=this.generation;const s=this.retryGeneration;const o=()=>i===this.generation&&s===this.retryGeneration;let n=this.options.retryBudget??C;const e=()=>{if(!o())return;this.retryRaf=null;const i=this.update();if(!o())return;if(i){this.isReady=true;this.options.onReady?.();if(o())t?.();return}if(n>0){n-=1;this.retryRaf=requestAnimationFrame(e)}};this.retryRaf=requestAnimationFrame(e)}update(){const t=this.options.getAnchor();if(!t?.isConnected)return false;const i=this.options.getPopup();if(!i?.isConnected)return false;this.observeResizeTargets();if(this.options.topLayer&&typeof i.showPopover==="function"&&!i.matches(":popover-open")){try{i.showPopover()}catch{return false}}const s=this.options.measure(t,i);if(!s)return false;const o=x(s);if(!this.last||this.last.x!==o.x||this.last.y!==o.y||this.last.resolvedSide!==o.resolvedSide||this.last.availableHeight!==o.availableHeight){this.last=o;this.options.apply(o)}return true}scheduleLiveUpdate(){const t=this.generation;const i=this.options.liveUpdate??"sync";if(i==="sync"){this.update();return}if(this.liveRaf!==null)return;if(i==="frame"){this.liveRaf=requestAnimationFrame((()=>{if(t!==this.generation)return;this.liveRaf=null;this.update()}));return}this.liveRaf=requestAnimationFrame((()=>{if(t!==this.generation)return;this.update();if(t!==this.generation)return;this.liveRaf=requestAnimationFrame((()=>{if(t!==this.generation)return;this.liveRaf=null;this.update()}))}))}cancel(){this.generation+=1;this.cancelRetry();if(this.liveRaf!==null){cancelAnimationFrame(this.liveRaf);this.liveRaf=null}if(this.anchorMotionRaf!==null){cancelAnimationFrame(this.anchorMotionRaf);this.anchorMotionRaf=null}}cancelRetry(){this.retryGeneration+=1;if(this.retryRaf===null)return;cancelAnimationFrame(this.retryRaf);this.retryRaf=null}bindListeners(){this.unbindListeners();this.scrollResizeHandler=()=>this.scheduleLiveUpdate();window.addEventListener("scroll",this.scrollResizeHandler,true);window.addEventListener("resize",this.scrollResizeHandler);if(this.options.observeResize&&typeof ResizeObserver!=="undefined"){const t=new ResizeObserver((()=>{if(this.resizeObserver===t)this.scheduleLiveUpdate()}));this.resizeObserver=t;this.observeResizeTargets()}if(this.options.observeAnchorMotion){this.ownerDocument=this.options.getAnchor()?.ownerDocument??this.options.getOwnerDocument?.()??null;this.ownerDocument?.addEventListener("transitionrun",this.anchorMotionStartHandler,true);this.ownerDocument?.addEventListener("transitionend",this.anchorMotionEndHandler,true);this.ownerDocument?.addEventListener("transitioncancel",this.anchorMotionEndHandler,true);this.ownerDocument?.addEventListener("animationstart",this.anchorMotionStartHandler,true);this.ownerDocument?.addEventListener("animationend",this.anchorMotionEndHandler,true);this.ownerDocument?.addEventListener("animationcancel",this.anchorMotionEndHandler,true)}}unbindListeners(){if(this.scrollResizeHandler){window.removeEventListener("scroll",this.scrollResizeHandler,true);window.removeEventListener("resize",this.scrollResizeHandler);this.scrollResizeHandler=null}this.resizeObserver?.disconnect();this.resizeObserver=null;this.ownerDocument?.removeEventListener("transitionrun",this.anchorMotionStartHandler,true);this.ownerDocument?.removeEventListener("transitionend",this.anchorMotionEndHandler,true);this.ownerDocument?.removeEventListener("transitioncancel",this.anchorMotionEndHandler,true);this.ownerDocument?.removeEventListener("animationstart",this.anchorMotionStartHandler,true);this.ownerDocument?.removeEventListener("animationend",this.anchorMotionEndHandler,true);this.ownerDocument?.removeEventListener("animationcancel",this.anchorMotionEndHandler,true);this.ownerDocument=null;this.activeAnchorMotions=0}eventCanMoveAnchor(t){const i=this.options.getAnchor();const s=t.target;if(!i||!(s instanceof Element))return false;return s===i||s.contains(i)}scheduleAnchorMotionUpdate(){if(this.anchorMotionRaf!==null)return;const t=this.generation;const i=()=>{if(t!==this.generation)return;this.anchorMotionRaf=null;this.update();if(t!==this.generation)return;if(this.activeAnchorMotions<=0||!this.options.getAnchor()?.isConnected){this.activeAnchorMotions=0;return}this.anchorMotionRaf=requestAnimationFrame(i)};this.anchorMotionRaf=requestAnimationFrame(i)}observeResizeTargets(){if(!this.resizeObserver)return;const t=this.options.getPopup();if(t)this.resizeObserver.observe(t);const i=this.options.getAnchor();if(i)this.resizeObserver.observe(i)}}const P="data-ds-overlay-boundary";function k(t){if(t.assignedSlot)return t.assignedSlot;if(t.parentElement)return t.parentElement;const i=t.getRootNode();return i instanceof ShadowRoot?i.host:null}function z(t){let i=t;while(i){if(i instanceof HTMLElement&&i.hasAttribute(P)){return i}i=k(i)}return null}function A(t,i){if(i==="viewport")return undefined;return(i??z(t))?.getBoundingClientRect()}const F=()=>`.sc-ds-tooltip-h,.sc-ds-tooltip:where(.ds-table),.sc-ds-tooltip:where(.tooltip-popup),.sc-ds-tooltip:where(.ds-radius){--ds-radius-control:var(--dimension-radius-025);--ds-radius-card:var(--dimension-radius-050);--ds-radius-modal:var(--dimension-radius-050);--ds-radius-menu:var(--dimension-radius-075);--ds-radius-tooltip-control:var(--dimension-radius-025);--ds-radius-tooltip-menu:var(--dimension-radius-075);--ds-radius-table:var(--dimension-radius-050)}.ds-control--lg.sc-ds-tooltip,.ds-control--lg.sc-ds-tooltip-h,.ds-control--md.sc-ds-tooltip-h,.ds-control--md.sc-ds-tooltip,.ds-control--sm.sc-ds-tooltip-h,.ds-control--sm.sc-ds-tooltip,.ds-control--xs.sc-ds-tooltip-h,.ds-control--xs.sc-ds-tooltip{--ds-control-radius:var(--ds-radius-control)}.ds-control--lg.sc-ds-tooltip-h,.ds-control--lg.sc-ds-tooltip{--ds-control-height:var(--dimension-size-500);--ds-control-icon:var(--dimension-iconography-lg);--ds-control-padding-inline:var(--dimension-space-100);--ds-control-label-inset:var(--dimension-space-050);--ds-control-gap:var(--dimension-space-050)}.ds-control--md.sc-ds-tooltip-h,.ds-control--md.sc-ds-tooltip{--ds-control-height:var(--dimension-size-400);--ds-control-icon:var(--dimension-iconography-md);--ds-control-padding-inline:var(--dimension-space-075);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:var(--dimension-space-050)}.ds-control--sm.sc-ds-tooltip-h,.ds-control--sm.sc-ds-tooltip{--ds-control-height:var(--dimension-size-300);--ds-control-icon:var(--dimension-iconography-sm);--ds-control-padding-inline:var(--dimension-space-050);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:var(--dimension-space-025)}.ds-control--xs.sc-ds-tooltip-h,.ds-control--xs.sc-ds-tooltip{--ds-control-height:var(--dimension-size-200);--ds-control-icon:var(--dimension-iconography-xs);--ds-control-padding-inline:var(--dimension-space-025);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:0}.ds-control--lg.sc-ds-tooltip,.ds-control--lg.sc-ds-tooltip-h,.ds-control--md.sc-ds-tooltip-h,.ds-control--md.sc-ds-tooltip,.ds-control--sm.sc-ds-tooltip-h,.ds-control--sm.sc-ds-tooltip,.ds-control--xs.sc-ds-tooltip-h,.ds-control--xs.sc-ds-tooltip{--ds-control-radius:var(--ds-radius-control)}.ds-control--lg.sc-ds-tooltip-h,.ds-control--lg.sc-ds-tooltip{--ds-control-height:var(--dimension-size-500);--ds-control-icon:var(--dimension-iconography-lg);--ds-control-padding-inline:var(--dimension-space-100);--ds-control-label-inset:var(--dimension-space-050);--ds-control-gap:var(--dimension-space-050)}.ds-control--md.sc-ds-tooltip-h,.ds-control--md.sc-ds-tooltip{--ds-control-height:var(--dimension-size-400);--ds-control-icon:var(--dimension-iconography-md);--ds-control-padding-inline:var(--dimension-space-075);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:var(--dimension-space-050)}.ds-control--sm.sc-ds-tooltip-h,.ds-control--sm.sc-ds-tooltip{--ds-control-height:var(--dimension-size-300);--ds-control-icon:var(--dimension-iconography-sm);--ds-control-padding-inline:var(--dimension-space-050);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:var(--dimension-space-025)}.ds-control--xs.sc-ds-tooltip-h,.ds-control--xs.sc-ds-tooltip{--ds-control-height:var(--dimension-size-200);--ds-control-icon:var(--dimension-iconography-xs);--ds-control-padding-inline:var(--dimension-space-025);--ds-control-label-inset:var(--dimension-space-025);--ds-control-gap:0}.key-hint-group.sc-ds-tooltip{display:inline-flex;align-items:center;gap:var(--dimension-stroke-width-012);width:max-content;flex-shrink:0}.key-hint.sc-ds-tooltip{box-sizing:border-box;min-width:var(--ds-control-icon, var(--dimension-iconography-md));width:var(--ds-control-icon, var(--dimension-iconography-md));height:var(--ds-control-icon, var(--dimension-iconography-md));padding-inline:0;flex-shrink:0;display:inline-flex;align-items:center;justify-content:center;background-color:var(--color-background-secondary);border:var(--dimension-stroke-width-015) solid var(--color-border-tertiary);border-bottom-width:var(--dimension-stroke-width-025);border-radius:var(--dimension-radius-025);color:var(--color-foreground-secondary)}.key-hint--wide.sc-ds-tooltip{width:calc(var(--ds-control-icon, var(--dimension-iconography-md)) * 1.5)}.key-hint__label.sc-ds-tooltip{display:inline-flex;width:max-content;min-width:max-content;font-family:var(--typography-font-family-ui);font-size:var(--typography-fontsize-xs);line-height:1;font-weight:var(--typography-weight-regular);letter-spacing:0;text-transform:uppercase;color:inherit}.ds-control--xs.sc-ds-tooltip .key-hint__label.sc-ds-tooltip{font-size:calc(var(--typography-fontsize-xs) * 0.78)}@media (forced-colors: active){.sc-ds-tooltip:root,.sc-ds-tooltip-h,.ds-forced-colors-scope.sc-ds-tooltip{--ds-forced-color-surface:Canvas;--ds-forced-color-content:CanvasText;--ds-forced-color-control-boundary:ButtonText;--ds-forced-color-selected:Highlight;--ds-forced-color-on-selected:HighlightText;--ds-forced-color-disabled:GrayText}}.tooltip-popup.sc-ds-tooltip{box-sizing:border-box;background-color:var(--color-background-primary);border-radius:var(--ds-radius-tooltip-control, var(--dimension-radius-025));box-shadow:var(--effect-elevation-elevated-floating);white-space:nowrap;pointer-events:none;animation:tooltipFadeIn var(--effect-motion-short-2) forwards;will-change:transform;backface-visibility:hidden}.tooltip-popup--instant.sc-ds-tooltip{animation:none;opacity:1}.tooltip-popup--closing.sc-ds-tooltip{animation:tooltipFadeOut var(--effect-motion-short-3) forwards}.tooltip-inner.sc-ds-tooltip{box-sizing:border-box;height:var(--ds-control-height, var(--dimension-size-400));display:flex;align-items:center;gap:var(--ds-control-gap, var(--dimension-space-050));padding:0 var(--ds-control-padding-inline, var(--dimension-space-075))}.tooltip-inner.sc-ds-tooltip>ds-text.sc-ds-tooltip{flex-shrink:0;min-width:max-content;max-width:none;padding:0 var(--ds-control-label-inset, var(--dimension-space-025));color:var(--color-foreground-primary)}.tooltip-popup--wrap.sc-ds-tooltip{white-space:normal;max-inline-size:var(--dimension-panel-width-xs)}.tooltip-popup--wrap.sc-ds-tooltip .tooltip-inner.sc-ds-tooltip{height:auto;min-height:var(--ds-control-height, var(--dimension-size-400));padding-block:var(--dimension-space-050);align-items:flex-start}.tooltip-popup--wrap.sc-ds-tooltip .tooltip-inner.sc-ds-tooltip>ds-text.sc-ds-tooltip{flex:1 1 auto;min-width:0;max-width:100%;white-space:pre-line}@keyframes tooltipFadeIn{from{opacity:0}to{opacity:1}}@keyframes tooltipFadeOut{from{opacity:1}to{opacity:0}}@media (prefers-reduced-motion: reduce){.tooltip-popup.sc-ds-tooltip,.tooltip-popup--instant.sc-ds-tooltip{animation:none;opacity:1}.tooltip-popup--closing.sc-ds-tooltip{animation:none;opacity:0}}@media (forced-colors: active){.tooltip-popup.sc-ds-tooltip{box-shadow:none;outline:var(--dimension-stroke-width-012) solid var(--ds-forced-color-content);outline-offset:calc(-1 * var(--dimension-stroke-width-012))}}`;const M={md:h.size400,sm:h.size300,xs:h.size200};let L=0;let T=0;let R=null;function q(t){const i=document.createElement("ds-text");i.as="span";i.variant=t.variant;i.emphasis=t.emphasis??false;i.color=t.color??"inherit";if(t.wrap)i.wrap=t.wrap;i.textContent=t.text;return i}function D(t,i=false){t.style.flexShrink=i?"1":"0";t.style.minWidth=i?"0":"max-content";t.style.maxWidth=i?"100%":"none";t.style.whiteSpace=i?"pre-line":"";t.style.padding="0 var(--ds-control-label-inset, var(--dimension-space-025))";t.style.color="var(--color-foreground-primary)"}const E=t(class t extends i{constructor(t){super();if(t!==false){this.__registerHost()}this.size="md";this.side="top";this.align="center";this.sideOffset=r.space050;this.alignOffset=0;this.delay=h.animationDelayMedium3;this.shortcutKeyPosition="end";this.describedBy=true;this.wrapLabel=false;this.tooltipId=`ds-tooltip-${++T}`;this.delayTimer=null;this.closeTimer=null;this.anchor=null;this.popupEl=null;this.anchorObserver=null;this.didLoad=false;this.position=new O({getAnchor:()=>this.anchor,getPopup:()=>this.popupEl,getOwnerDocument:()=>this.el.ownerDocument,measure:(t,i)=>({anchorRect:t.getBoundingClientRect(),popupWidth:i.offsetWidth||this.tooltipFallbackWidthPx,popupHeight:i.offsetHeight||this.tooltipFallbackHeightPx,side:this.side,align:this.align,sideOffsetPx:this.sideOffsetPx,alignOffsetPx:this.alignOffsetPx,viewportPadPx:this.viewportPadPx,viewportWidth:window.innerWidth,viewportHeight:window.innerHeight,collisionRect:A(t,this.boundary)}),apply:({x:t,y:i,resolvedSide:s})=>{if(!this.popupEl)return;this.popupEl.dataset.side=s;this.popupEl.style.transform=`translate(${Math.round(t)}px, ${Math.round(i)}px)`},liveUpdate:"frame",observeResize:true});this.skipEnterAnimation=false;this.isOpen=false;this.programmaticAnchor=false;this.lastInteractionWasKeyboard=false;this.pointerEnterHandler=t=>{if(t.pointerType==="touch")return;this.show()};this.pointerLeaveHandler=t=>{if(t.pointerType==="touch")return;this.hide()};this.pointerDownHandler=t=>{this.lastInteractionWasKeyboard=false;if(t.pointerType==="touch"&&(this.isOpen||this.popupEl))this.hideInstant()};this.keyDownHandler=()=>{this.lastInteractionWasKeyboard=true};this.focusHandler=()=>{if(this.lastInteractionWasKeyboard||this.anchor?.matches(":focus-visible"))this.show()};this.blurHandler=t=>{const i=t.relatedTarget;if(i&&this.anchor?.contains(i))return;this.hide()};this.escapeHandler=t=>{if(t.key!=="Escape"||!this.isOpen)return;t.preventDefault();this.hide()};this.handleSlotChange=()=>{if(this.programmaticAnchor)return;const t=this.el.querySelector("slot");const i=t?.assignedElements?.()[0]??this.el.firstElementChild;if(i===this.anchor||i?.tagName==="SLOT")return;if(this.isOpen||this.popupEl)this.hideInstant();this.unbindAnchor();this.bindAnchor()}}connectedCallback(){if(!this.didLoad)return;this.connectAnchor()}componentDidLoad(){this.didLoad=true;this.connectAnchor()}connectAnchor(){this.bindAnchor();if(this.anchorObserver)return;this.anchorObserver=new MutationObserver((()=>this.handleSlotChange()));this.anchorObserver.observe(this.el,{childList:true})}disconnectedCallback(){if(R===this)R=null;this.anchorObserver?.disconnect();this.anchorObserver=null;this.unbindAnchor();this.clearTimers();this.destroyPopup()}onContentOrPositionChange(){if(!this.label?.trim()){if(this.isOpen||this.popupEl)this.hideInstant();return}if(!this.popupEl||!this.isOpen)return;this.renderPopupContent();this.schedulePosition()}get viewportPadPx(){return d(h.space050,h.space050)}get sideOffsetPx(){return d(this.sideOffset,h.space050)}get alignOffsetPx(){return d(this.alignOffset,0)}get hoverDelayMs(){return a(this.delay,h.animationDelayMedium3)}get instantReopenMs(){return a(h.animationDurationMedium1,h.animationDurationMedium1)}get fadeOutMs(){return l(h.motionShort3,h.animationDurationShort3)}get tooltipFallbackWidthPx(){return d(h.tooltipFallbackWidth,h.tooltipFallbackWidth)}get tooltipFallbackHeightPx(){const t=M[this.size];return d(t,t)}async presentFrom(t,i){if(i!=null)this.label=i;if(!this.label?.trim()){this.hide();return}const s=this.anchor===t;if(!s){this.unbindAnchor();this.anchor=t;this.programmaticAnchor=true;if(this.popupEl&&this.describedBy)this.linkDescribedBy()}if(this.popupEl){this.renderPopupContent();this.schedulePosition();return}if(this.delayTimer&&s)return;this.show()}async dismiss(){this.hide()}bindAnchor(){if(this.programmaticAnchor)return;const t=this.el.querySelector("slot");const i=t?.assignedElements?.()??[];const s=i[0]??this.el.firstElementChild;if(!s||s.tagName==="SLOT"||s===this.anchor)return;this.anchor=s;s.addEventListener("pointerenter",this.pointerEnterHandler);s.addEventListener("pointerleave",this.pointerLeaveHandler);s.addEventListener("pointerdown",this.pointerDownHandler);s.addEventListener("keydown",this.keyDownHandler);s.addEventListener("focusin",this.focusHandler);s.addEventListener("focusout",this.blurHandler)}unbindAnchor(){if(!this.anchor)return;this.unlinkDescribedBy();if(!this.programmaticAnchor){this.anchor.removeEventListener("pointerenter",this.pointerEnterHandler);this.anchor.removeEventListener("pointerleave",this.pointerLeaveHandler);this.anchor.removeEventListener("pointerdown",this.pointerDownHandler);this.anchor.removeEventListener("keydown",this.keyDownHandler);this.anchor.removeEventListener("focusin",this.focusHandler);this.anchor.removeEventListener("focusout",this.blurHandler)}this.anchor=null;this.programmaticAnchor=false}linkDescribedBy(){if(!this.describedBy||!this.anchor||!this.popupEl)return;const t=new Set((this.anchor.getAttribute("aria-describedby")??"").split(/\s+/).filter(Boolean));t.add(this.tooltipId);this.anchor.setAttribute("aria-describedby",Array.from(t).join(" "))}unlinkDescribedBy(){if(!this.anchor)return;const t=(this.anchor.getAttribute("aria-describedby")??"").split(/\s+/).filter((t=>t&&t!==this.tooltipId));if(t.length)this.anchor.setAttribute("aria-describedby",t.join(" "));else this.anchor.removeAttribute("aria-describedby")}clearTimers(){if(this.delayTimer){clearTimeout(this.delayTimer);this.delayTimer=null}if(this.closeTimer){clearTimeout(this.closeTimer);this.closeTimer=null}}setupOpenListeners(){this.position.observe();document.addEventListener("keydown",this.escapeHandler)}teardownOpenListeners(){this.position.unobserve();document.removeEventListener("keydown",this.escapeHandler)}destroyPopup(){this.teardownOpenListeners();this.unlinkDescribedBy();if(!this.popupEl)return;this.popupEl.remove();this.popupEl=null}schedulePosition(){if(!this.popupEl)return;const t=()=>{const t=this.popupEl?.querySelector(":scope > .tooltip-inner > ds-text");if(t instanceof i)D(t,this.wrapLabel)};requestAnimationFrame((()=>{t();this.position.update();requestAnimationFrame((()=>{t();this.position.update()}))}));this.position.observeResizeTargets()}hideInstant(){this.clearTimers();L=Date.now();if(R===this)R=null;this.destroyPopup();this.isOpen=false;this.skipEnterAnimation=false}show(){if(!this.label?.trim())return;this.clearTimers();let t=Date.now()-L<this.instantReopenMs;if(R&&R!==this){R.hideInstant();t=true}R=this;this.skipEnterAnimation=t;if(t){this.mountPopup();return}this.delayTimer=setTimeout((()=>{this.delayTimer=null;if(!this.label?.trim())return;this.mountPopup()}),this.hoverDelayMs)}hide(){this.clearTimers();if(!this.popupEl&&!this.isOpen)return;L=Date.now();if(!this.popupEl){this.isOpen=false;return}this.popupEl.classList.remove("tooltip-popup--instant");this.popupEl.classList.add("tooltip-popup--closing");if(this.fadeOutMs===0){if(R===this)R=null;this.destroyPopup();this.isOpen=false;this.skipEnterAnimation=false;return}this.closeTimer=setTimeout((()=>{this.closeTimer=null;if(R===this)R=null;this.destroyPopup();this.isOpen=false;this.skipEnterAnimation=false}),this.fadeOutMs)}mountPopup(){if(!this.popupEl){const t=document.createElement("div");t.id=this.tooltipId;t.setAttribute("role","tooltip");t.className="tooltip-popup ds-forced-colors-scope sc-ds-tooltip";Object.assign(t.style,{position:"fixed",left:"0",top:"0",zIndex:"var(--dimension-z-index-tooltip)",pointerEvents:"none"});document.body.appendChild(t);this.popupEl=t}this.setupOpenListeners();this.linkDescribedBy();this.popupEl.classList.toggle("tooltip-popup--instant",this.skipEnterAnimation);this.popupEl.classList.toggle("tooltip-popup--wrap",this.wrapLabel);this.popupEl.classList.remove("tooltip-popup--closing");this.renderPopupContent();this.schedulePosition();this.isOpen=true}renderPopupContent(){if(!this.popupEl)return;this.popupEl.classList.toggle("tooltip-popup--wrap",this.wrapLabel);const t=c[this.size];const i=this.size==="md"?"ds-control--md":this.size==="sm"?"ds-control--sm":"ds-control--xs";const s="sc-ds-tooltip";const o=document.createElement("div");o.className=`tooltip-inner ${i} ${s}`;const n=t=>{if(!this.shortcutKey||this.shortcutKeyPosition!==t)return;const i=document.createElement("span");i.className=`key-hint-group ${s}`;i.setAttribute("aria-hidden","true");for(const t of m(this.shortcutKey)){const o=document.createElement("span");const n=Array.from(t).length>1?" key-hint--wide":"";o.className=`key-hint${n} ${s}`;const e=document.createElement("span");e.className=`key-hint__label ${s}`;e.textContent=t;o.appendChild(e);i.appendChild(o)}o.appendChild(i)};n("start");const e=q({variant:t,wrap:this.wrapLabel?"wrap":"nowrap",text:this.label});D(e,this.wrapLabel);o.appendChild(e);n("end");this.popupEl.replaceChildren(o)}render(){return s(o,{key:"a91ea35cad4d388682b562745b5079553b1cfd4f",style:{display:"contents"}},s("slot",{key:"2ecadc1cd67d800114e42cc7f66c2d2566a475d2",onSlotchange:this.handleSlotChange}))}get el(){return this}static get watchers(){return{label:[{onContentOrPositionChange:0}],size:[{onContentOrPositionChange:0}],side:[{onContentOrPositionChange:0}],align:[{onContentOrPositionChange:0}],sideOffset:[{onContentOrPositionChange:0}],alignOffset:[{onContentOrPositionChange:0}],boundary:[{onContentOrPositionChange:0}],shortcutKey:[{onContentOrPositionChange:0}],shortcutKeyPosition:[{onContentOrPositionChange:0}],wrapLabel:[{onContentOrPositionChange:0}]}}static get style(){return F()}},[262,"ds-tooltip",{label:[1],size:[1],side:[1],align:[1],sideOffset:[8,"side-offset"],alignOffset:[8,"align-offset"],boundary:[1],delay:[8],shortcutKey:[1,"shortcut-key"],shortcutKeyPosition:[1,"shortcut-key-position"],describedBy:[4,"described-by"],wrapLabel:[4,"wrap-label"],presentFrom:[64],dismiss:[64]},undefined,{label:[{onContentOrPositionChange:0}],size:[{onContentOrPositionChange:0}],side:[{onContentOrPositionChange:0}],align:[{onContentOrPositionChange:0}],sideOffset:[{onContentOrPositionChange:0}],alignOffset:[{onContentOrPositionChange:0}],boundary:[{onContentOrPositionChange:0}],shortcutKey:[{onContentOrPositionChange:0}],shortcutKeyPosition:[{onContentOrPositionChange:0}],wrapLabel:[{onContentOrPositionChange:0}]}]);function H(){if(typeof customElements==="undefined"){return}const t=["ds-tooltip","ds-text"];t.forEach((t=>{switch(t){case"ds-tooltip":if(!customElements.get(n(t))){customElements.define(n(t),E)}break;case"ds-text":if(!customElements.get(n(t))){e()}break}}))}H();export{O as A,E as T,P as a,x as c,H as d,A as r};
|
|
2
|
-
//# sourceMappingURL=p-BMI0F08u.js.map
|