@ds-mo/ui 13.15.0 → 13.16.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/dist/.package-ready.json +1 -1
- package/dist/agent-patterns.json +3 -2
- package/dist/agent.json +59 -12
- package/dist/angular/ds-bar-title.d.ts +1 -1
- package/dist/angular/ds-bar-title.js +3 -3
- package/dist/angular/ds-shell-page.d.ts +1 -1
- package/dist/angular/ds-shell-page.js +3 -3
- package/dist/angular/ds-table.d.ts +1 -1
- package/dist/angular/ds-table.js +3 -3
- 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-title.js +1 -1
- package/dist/components/ds-bar-workflow.js +1 -1
- package/dist/components/ds-card-overview.js +1 -1
- package/dist/components/ds-chart.js +1 -1
- package/dist/components/ds-code-block.js +1 -1
- package/dist/components/ds-conversation-list.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-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-scroll-overlay.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-app.js.map +1 -1
- package/dist/components/ds-shell-page.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-tooltip.js +1 -1
- package/dist/components/{p-DgIRyJoc.js → p-B53Vpuqq.js} +2 -2
- package/dist/components/{p-fKwbYrhi.js → p-B94M62Tx.js} +2 -2
- package/dist/components/p-BAAjiAIF.js +2 -0
- package/dist/components/p-BAAjiAIF.js.map +1 -0
- package/dist/components/{p-ClHpIZg0.js → p-BMAZWEDa.js} +2 -2
- package/dist/components/p-BMAZWEDa.js.map +1 -0
- package/dist/components/p-BMc0DE59.js +2 -0
- package/dist/components/p-BMc0DE59.js.map +1 -0
- package/dist/components/{p-GSnB-sa7.js → p-BPbE-Kbl.js} +2 -2
- package/dist/components/{p-CCkptWPj.js → p-BxR8omPQ.js} +2 -2
- package/dist/components/{p-CY19gMiz.js → p-CJq3n5kA.js} +2 -2
- package/dist/components/{p-IhToA4m4.js → p-CMbcRN92.js} +2 -2
- package/dist/components/{p-QDcUAz9m.js → p-CnIvWEVm.js} +2 -2
- package/dist/components/{p-DWjE0VNn.js → p-D5sIwLjA.js} +2 -2
- package/dist/components/p-D9CDoQBx.js +2 -0
- package/dist/components/{p-BLaqjUWu.js.map → p-D9CDoQBx.js.map} +1 -1
- package/dist/components/{p-CekGwihQ.js → p-D9FdOR_m.js} +2 -2
- package/dist/components/{p-D5aUkdTw.js → p-Dbobj7DI.js} +2 -2
- package/dist/components/{p-DQXzTV8N.js → p-DrvEhJhO.js} +2 -2
- package/dist/components/{p-BH_lVRgp.js → p-DyqLVdJp.js} +2 -2
- package/dist/components/{p-DWNhyLp2.js → p-m5CSrx_s.js} +2 -2
- package/dist/docs/components.json +301 -2
- package/dist/lib/components/ShellApp/shell-app-types.d.ts +12 -0
- package/dist/lib/utils/index.js +41 -4
- package/dist/lib/utils/index.js.map +2 -2
- package/dist/lib/utils/resolve-css-length-px.d.ts +1 -1
- package/dist/mcp-data/registry/bar-title.json +38 -3
- package/dist/mcp-data/registry/registry.json +58 -11
- package/dist/mcp-data/registry/shell-app.json +3 -3
- package/dist/mcp-data/registry/shell-page.json +77 -4
- package/dist/mcp-data/registry/table.json +88 -12
- package/dist/styles/table.css +161 -10
- package/dist/types/components/BarTitle/BarTitle.d.ts +5 -0
- package/dist/types/components/ShellApp/shell-app-types.d.ts +12 -0
- package/dist/types/components/ShellPage/ShellPage.d.ts +9 -0
- package/dist/types/components/Table/Table.d.ts +30 -0
- package/dist/types/components/Table/table-cell-model.d.ts +2 -0
- package/dist/types/components/Table/table-layout-controller.d.ts +6 -0
- package/dist/types/components/Table/table-types.d.ts +3 -0
- package/dist/types/components/Table/table-viewport-fit-controller.d.ts +53 -0
- package/dist/types/components.d.ts +102 -0
- package/dist/types/utils/resolve-css-length-px.d.ts +1 -1
- package/package.json +1 -1
- package/dist/components/p-BJMRBHKW.js +0 -2
- package/dist/components/p-BJMRBHKW.js.map +0 -1
- package/dist/components/p-BLaqjUWu.js +0 -2
- package/dist/components/p-ClHpIZg0.js.map +0 -1
- package/dist/components/p-DyVAWGL9.js +0 -2
- package/dist/components/p-DyVAWGL9.js.map +0 -1
- /package/dist/components/{p-DgIRyJoc.js.map → p-B53Vpuqq.js.map} +0 -0
- /package/dist/components/{p-fKwbYrhi.js.map → p-B94M62Tx.js.map} +0 -0
- /package/dist/components/{p-GSnB-sa7.js.map → p-BPbE-Kbl.js.map} +0 -0
- /package/dist/components/{p-CCkptWPj.js.map → p-BxR8omPQ.js.map} +0 -0
- /package/dist/components/{p-CY19gMiz.js.map → p-CJq3n5kA.js.map} +0 -0
- /package/dist/components/{p-IhToA4m4.js.map → p-CMbcRN92.js.map} +0 -0
- /package/dist/components/{p-QDcUAz9m.js.map → p-CnIvWEVm.js.map} +0 -0
- /package/dist/components/{p-DWjE0VNn.js.map → p-D5sIwLjA.js.map} +0 -0
- /package/dist/components/{p-CekGwihQ.js.map → p-D9FdOR_m.js.map} +0 -0
- /package/dist/components/{p-D5aUkdTw.js.map → p-Dbobj7DI.js.map} +0 -0
- /package/dist/components/{p-DQXzTV8N.js.map → p-DrvEhJhO.js.map} +0 -0
- /package/dist/components/{p-BH_lVRgp.js.map → p-DyqLVdJp.js.map} +0 -0
- /package/dist/components/{p-DWNhyLp2.js.map → p-m5CSrx_s.js.map} +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"timestamp": "2026-08-
|
|
2
|
+
"timestamp": "2026-08-13T00:16:21",
|
|
3
3
|
"compiler": {
|
|
4
4
|
"name": "@stencil/core",
|
|
5
5
|
"version": "4.43.5",
|
|
@@ -3115,6 +3115,61 @@
|
|
|
3115
3115
|
"getter": false,
|
|
3116
3116
|
"setter": false
|
|
3117
3117
|
},
|
|
3118
|
+
{
|
|
3119
|
+
"name": "showCompactDivider",
|
|
3120
|
+
"type": "boolean | undefined",
|
|
3121
|
+
"complexType": {
|
|
3122
|
+
"original": "boolean",
|
|
3123
|
+
"resolved": "boolean | undefined",
|
|
3124
|
+
"references": {}
|
|
3125
|
+
},
|
|
3126
|
+
"mutable": false,
|
|
3127
|
+
"attr": "show-compact-divider",
|
|
3128
|
+
"reflectToAttr": false,
|
|
3129
|
+
"docs": "Override divider visibility for compact and constrained variants.",
|
|
3130
|
+
"docsTags": [],
|
|
3131
|
+
"values": [
|
|
3132
|
+
{
|
|
3133
|
+
"type": "boolean"
|
|
3134
|
+
},
|
|
3135
|
+
{
|
|
3136
|
+
"type": "undefined"
|
|
3137
|
+
}
|
|
3138
|
+
],
|
|
3139
|
+
"optional": true,
|
|
3140
|
+
"required": false,
|
|
3141
|
+
"getter": false,
|
|
3142
|
+
"setter": false
|
|
3143
|
+
},
|
|
3144
|
+
{
|
|
3145
|
+
"name": "showDivider",
|
|
3146
|
+
"type": "boolean",
|
|
3147
|
+
"complexType": {
|
|
3148
|
+
"original": "boolean",
|
|
3149
|
+
"resolved": "boolean",
|
|
3150
|
+
"references": {}
|
|
3151
|
+
},
|
|
3152
|
+
"mutable": false,
|
|
3153
|
+
"attr": "show-divider",
|
|
3154
|
+
"reflectToAttr": false,
|
|
3155
|
+
"docs": "Draw the page-title divider beneath the header.",
|
|
3156
|
+
"docsTags": [
|
|
3157
|
+
{
|
|
3158
|
+
"name": "default",
|
|
3159
|
+
"text": "true"
|
|
3160
|
+
}
|
|
3161
|
+
],
|
|
3162
|
+
"default": "true",
|
|
3163
|
+
"values": [
|
|
3164
|
+
{
|
|
3165
|
+
"type": "boolean"
|
|
3166
|
+
}
|
|
3167
|
+
],
|
|
3168
|
+
"optional": false,
|
|
3169
|
+
"required": false,
|
|
3170
|
+
"getter": false,
|
|
3171
|
+
"setter": false
|
|
3172
|
+
},
|
|
3118
3173
|
{
|
|
3119
3174
|
"name": "value",
|
|
3120
3175
|
"type": "string",
|
|
@@ -19553,6 +19608,32 @@
|
|
|
19553
19608
|
"docsTags": [],
|
|
19554
19609
|
"usage": {},
|
|
19555
19610
|
"props": [
|
|
19611
|
+
{
|
|
19612
|
+
"name": "compactContentInsetBlockStartSize",
|
|
19613
|
+
"type": "string | undefined",
|
|
19614
|
+
"complexType": {
|
|
19615
|
+
"original": "string",
|
|
19616
|
+
"resolved": "string | undefined",
|
|
19617
|
+
"references": {}
|
|
19618
|
+
},
|
|
19619
|
+
"mutable": false,
|
|
19620
|
+
"attr": "compact-content-inset-block-start-size",
|
|
19621
|
+
"reflectToAttr": false,
|
|
19622
|
+
"docs": "Exact block-start content inset while the header is compact or constrained.",
|
|
19623
|
+
"docsTags": [],
|
|
19624
|
+
"values": [
|
|
19625
|
+
{
|
|
19626
|
+
"type": "string"
|
|
19627
|
+
},
|
|
19628
|
+
{
|
|
19629
|
+
"type": "undefined"
|
|
19630
|
+
}
|
|
19631
|
+
],
|
|
19632
|
+
"optional": true,
|
|
19633
|
+
"required": false,
|
|
19634
|
+
"getter": false,
|
|
19635
|
+
"setter": false
|
|
19636
|
+
},
|
|
19556
19637
|
{
|
|
19557
19638
|
"name": "contentInset",
|
|
19558
19639
|
"type": "\"default\" | \"none\"",
|
|
@@ -19594,6 +19675,73 @@
|
|
|
19594
19675
|
"getter": false,
|
|
19595
19676
|
"setter": false
|
|
19596
19677
|
},
|
|
19678
|
+
{
|
|
19679
|
+
"name": "contentInsetBlockStart",
|
|
19680
|
+
"type": "\"default\" | \"none\"",
|
|
19681
|
+
"complexType": {
|
|
19682
|
+
"original": "ShellPageContentInset",
|
|
19683
|
+
"resolved": "\"default\" | \"none\"",
|
|
19684
|
+
"references": {
|
|
19685
|
+
"ShellPageContentInset": {
|
|
19686
|
+
"location": "import",
|
|
19687
|
+
"path": "./shell-page-types",
|
|
19688
|
+
"id": "src/wc/components/ShellPage/shell-page-types.ts::ShellPageContentInset",
|
|
19689
|
+
"referenceLocation": "ShellPageContentInset"
|
|
19690
|
+
}
|
|
19691
|
+
}
|
|
19692
|
+
},
|
|
19693
|
+
"mutable": false,
|
|
19694
|
+
"attr": "content-inset-block-start",
|
|
19695
|
+
"reflectToAttr": false,
|
|
19696
|
+
"docs": "Preserve the responsive side/end gutters while allowing content to meet the header.",
|
|
19697
|
+
"docsTags": [
|
|
19698
|
+
{
|
|
19699
|
+
"name": "default",
|
|
19700
|
+
"text": "'default'"
|
|
19701
|
+
}
|
|
19702
|
+
],
|
|
19703
|
+
"default": "'default'",
|
|
19704
|
+
"values": [
|
|
19705
|
+
{
|
|
19706
|
+
"value": "default",
|
|
19707
|
+
"type": "string"
|
|
19708
|
+
},
|
|
19709
|
+
{
|
|
19710
|
+
"value": "none",
|
|
19711
|
+
"type": "string"
|
|
19712
|
+
}
|
|
19713
|
+
],
|
|
19714
|
+
"optional": false,
|
|
19715
|
+
"required": false,
|
|
19716
|
+
"getter": false,
|
|
19717
|
+
"setter": false
|
|
19718
|
+
},
|
|
19719
|
+
{
|
|
19720
|
+
"name": "contentInsetBlockStartSize",
|
|
19721
|
+
"type": "string | undefined",
|
|
19722
|
+
"complexType": {
|
|
19723
|
+
"original": "string",
|
|
19724
|
+
"resolved": "string | undefined",
|
|
19725
|
+
"references": {}
|
|
19726
|
+
},
|
|
19727
|
+
"mutable": false,
|
|
19728
|
+
"attr": "content-inset-block-start-size",
|
|
19729
|
+
"reflectToAttr": false,
|
|
19730
|
+
"docs": "Exact block-start content inset, overriding the responsive default when provided.",
|
|
19731
|
+
"docsTags": [],
|
|
19732
|
+
"values": [
|
|
19733
|
+
{
|
|
19734
|
+
"type": "string"
|
|
19735
|
+
},
|
|
19736
|
+
{
|
|
19737
|
+
"type": "undefined"
|
|
19738
|
+
}
|
|
19739
|
+
],
|
|
19740
|
+
"optional": true,
|
|
19741
|
+
"required": false,
|
|
19742
|
+
"getter": false,
|
|
19743
|
+
"setter": false
|
|
19744
|
+
},
|
|
19597
19745
|
{
|
|
19598
19746
|
"name": "contentSurface",
|
|
19599
19747
|
"type": "\"primary\" | \"secondary\"",
|
|
@@ -19770,6 +19918,35 @@
|
|
|
19770
19918
|
"required": false,
|
|
19771
19919
|
"getter": false,
|
|
19772
19920
|
"setter": false
|
|
19921
|
+
},
|
|
19922
|
+
{
|
|
19923
|
+
"name": "scrollCompaction",
|
|
19924
|
+
"type": "boolean",
|
|
19925
|
+
"complexType": {
|
|
19926
|
+
"original": "boolean",
|
|
19927
|
+
"resolved": "boolean",
|
|
19928
|
+
"references": {}
|
|
19929
|
+
},
|
|
19930
|
+
"mutable": false,
|
|
19931
|
+
"attr": "scroll-compaction",
|
|
19932
|
+
"reflectToAttr": false,
|
|
19933
|
+
"docs": "Allow roomy automatic headers to compact as the page scrolls.",
|
|
19934
|
+
"docsTags": [
|
|
19935
|
+
{
|
|
19936
|
+
"name": "default",
|
|
19937
|
+
"text": "true"
|
|
19938
|
+
}
|
|
19939
|
+
],
|
|
19940
|
+
"default": "true",
|
|
19941
|
+
"values": [
|
|
19942
|
+
{
|
|
19943
|
+
"type": "boolean"
|
|
19944
|
+
}
|
|
19945
|
+
],
|
|
19946
|
+
"optional": false,
|
|
19947
|
+
"required": false,
|
|
19948
|
+
"getter": false,
|
|
19949
|
+
"setter": false
|
|
19773
19950
|
}
|
|
19774
19951
|
],
|
|
19775
19952
|
"methods": [],
|
|
@@ -23013,6 +23190,35 @@
|
|
|
23013
23190
|
"getter": false,
|
|
23014
23191
|
"setter": false
|
|
23015
23192
|
},
|
|
23193
|
+
{
|
|
23194
|
+
"name": "fitViewport",
|
|
23195
|
+
"type": "boolean",
|
|
23196
|
+
"complexType": {
|
|
23197
|
+
"original": "boolean",
|
|
23198
|
+
"resolved": "boolean",
|
|
23199
|
+
"references": {}
|
|
23200
|
+
},
|
|
23201
|
+
"mutable": false,
|
|
23202
|
+
"attr": "fit-viewport",
|
|
23203
|
+
"reflectToAttr": false,
|
|
23204
|
+
"docs": "Fit the complete table composition to its nearest vertical scrollport.",
|
|
23205
|
+
"docsTags": [
|
|
23206
|
+
{
|
|
23207
|
+
"name": "default",
|
|
23208
|
+
"text": "false"
|
|
23209
|
+
}
|
|
23210
|
+
],
|
|
23211
|
+
"default": "false",
|
|
23212
|
+
"values": [
|
|
23213
|
+
{
|
|
23214
|
+
"type": "boolean"
|
|
23215
|
+
}
|
|
23216
|
+
],
|
|
23217
|
+
"optional": false,
|
|
23218
|
+
"required": false,
|
|
23219
|
+
"getter": false,
|
|
23220
|
+
"setter": false
|
|
23221
|
+
},
|
|
23016
23222
|
{
|
|
23017
23223
|
"name": "grouping",
|
|
23018
23224
|
"type": "TableGroupingState | null",
|
|
@@ -23115,6 +23321,35 @@
|
|
|
23115
23321
|
"getter": false,
|
|
23116
23322
|
"setter": false
|
|
23117
23323
|
},
|
|
23324
|
+
{
|
|
23325
|
+
"name": "height",
|
|
23326
|
+
"type": "number | string | undefined",
|
|
23327
|
+
"complexType": {
|
|
23328
|
+
"original": "string | number | undefined",
|
|
23329
|
+
"resolved": "number | string | undefined",
|
|
23330
|
+
"references": {}
|
|
23331
|
+
},
|
|
23332
|
+
"mutable": false,
|
|
23333
|
+
"attr": "height",
|
|
23334
|
+
"reflectToAttr": false,
|
|
23335
|
+
"docs": "Fixed height for the complete header, table frame, and footer composition.",
|
|
23336
|
+
"docsTags": [],
|
|
23337
|
+
"values": [
|
|
23338
|
+
{
|
|
23339
|
+
"type": "number"
|
|
23340
|
+
},
|
|
23341
|
+
{
|
|
23342
|
+
"type": "string"
|
|
23343
|
+
},
|
|
23344
|
+
{
|
|
23345
|
+
"type": "undefined"
|
|
23346
|
+
}
|
|
23347
|
+
],
|
|
23348
|
+
"optional": false,
|
|
23349
|
+
"required": false,
|
|
23350
|
+
"getter": false,
|
|
23351
|
+
"setter": false
|
|
23352
|
+
},
|
|
23118
23353
|
{
|
|
23119
23354
|
"name": "lazyLoading",
|
|
23120
23355
|
"type": "boolean",
|
|
@@ -23755,6 +23990,70 @@
|
|
|
23755
23990
|
"required": false,
|
|
23756
23991
|
"getter": false,
|
|
23757
23992
|
"setter": false
|
|
23993
|
+
},
|
|
23994
|
+
{
|
|
23995
|
+
"name": "viewportInsetBlockEnd",
|
|
23996
|
+
"type": "number | string",
|
|
23997
|
+
"complexType": {
|
|
23998
|
+
"original": "string | number",
|
|
23999
|
+
"resolved": "number | string",
|
|
24000
|
+
"references": {}
|
|
24001
|
+
},
|
|
24002
|
+
"mutable": false,
|
|
24003
|
+
"attr": "viewport-inset-block-end",
|
|
24004
|
+
"reflectToAttr": false,
|
|
24005
|
+
"docs": "Reserved space below a viewport-fitted table.",
|
|
24006
|
+
"docsTags": [
|
|
24007
|
+
{
|
|
24008
|
+
"name": "default",
|
|
24009
|
+
"text": "0"
|
|
24010
|
+
}
|
|
24011
|
+
],
|
|
24012
|
+
"default": "0",
|
|
24013
|
+
"values": [
|
|
24014
|
+
{
|
|
24015
|
+
"type": "number"
|
|
24016
|
+
},
|
|
24017
|
+
{
|
|
24018
|
+
"type": "string"
|
|
24019
|
+
}
|
|
24020
|
+
],
|
|
24021
|
+
"optional": false,
|
|
24022
|
+
"required": false,
|
|
24023
|
+
"getter": false,
|
|
24024
|
+
"setter": false
|
|
24025
|
+
},
|
|
24026
|
+
{
|
|
24027
|
+
"name": "viewportInsetBlockStart",
|
|
24028
|
+
"type": "number | string",
|
|
24029
|
+
"complexType": {
|
|
24030
|
+
"original": "string | number",
|
|
24031
|
+
"resolved": "number | string",
|
|
24032
|
+
"references": {}
|
|
24033
|
+
},
|
|
24034
|
+
"mutable": false,
|
|
24035
|
+
"attr": "viewport-inset-block-start",
|
|
24036
|
+
"reflectToAttr": false,
|
|
24037
|
+
"docs": "Reserved space above a viewport-fitted table once surrounding chrome is compact.",
|
|
24038
|
+
"docsTags": [
|
|
24039
|
+
{
|
|
24040
|
+
"name": "default",
|
|
24041
|
+
"text": "0"
|
|
24042
|
+
}
|
|
24043
|
+
],
|
|
24044
|
+
"default": "0",
|
|
24045
|
+
"values": [
|
|
24046
|
+
{
|
|
24047
|
+
"type": "number"
|
|
24048
|
+
},
|
|
24049
|
+
{
|
|
24050
|
+
"type": "string"
|
|
24051
|
+
}
|
|
24052
|
+
],
|
|
24053
|
+
"optional": false,
|
|
24054
|
+
"required": false,
|
|
24055
|
+
"getter": false,
|
|
24056
|
+
"setter": false
|
|
23758
24057
|
}
|
|
23759
24058
|
],
|
|
23760
24059
|
"methods": [],
|
|
@@ -27037,7 +27336,7 @@
|
|
|
27037
27336
|
"path": "src/wc/components/ShellApp/shell-app-types.ts"
|
|
27038
27337
|
},
|
|
27039
27338
|
"src/wc/components/ShellApp/shell-app-types.ts::ShellPageChromeConfig": {
|
|
27040
|
-
"declaration": "export interface ShellPageChromeConfig {\n heading?: string;\n /** Desktop/tablet route-navigation heading when it differs from the page h1. */\n routeHeading?: string;\n description?: string;\n headingLevel?: 'h1' | 'h2';\n tabs?: BarNavTab[];\n value?: string;\n basePath?: string;\n currentUrl?: string;\n sectionsAriaLabel?: string;\n subsections?: BarNavTab[];\n subvalue?: string;\n subsectionsAriaLabel?: string;\n showBack?: boolean;\n backAriaLabel?: string;\n backIcon?: string;\n backLabel?: string;\n breadcrumbs?: BreadcrumbItem[];\n breadcrumbAriaLabel?: string;\n primaryAction?: BarTitlePrimaryAction | null;\n actions?: BarTitleActionItem[];\n /** Icon actions rendered in the mobile header's trailing lane. */\n mobileActions?: PanelToolsHeaderAction[];\n actionsAriaLabel?: string;\n tone?: MobileHeaderTone;\n contentInset?: ShellPageContentInset;\n /** Canvas surface painted by ShellPage around and beneath routed content. */\n contentSurface?: ShellPageContentSurface;\n}",
|
|
27339
|
+
"declaration": "export interface ShellPageChromeConfig {\n heading?: string;\n /** Desktop/tablet route-navigation heading when it differs from the page h1. */\n routeHeading?: string;\n description?: string;\n headingLevel?: 'h1' | 'h2';\n tabs?: BarNavTab[];\n value?: string;\n basePath?: string;\n currentUrl?: string;\n sectionsAriaLabel?: string;\n subsections?: BarNavTab[];\n subvalue?: string;\n subsectionsAriaLabel?: string;\n showBack?: boolean;\n backAriaLabel?: string;\n backIcon?: string;\n backLabel?: string;\n breadcrumbs?: BreadcrumbItem[];\n breadcrumbAriaLabel?: string;\n primaryAction?: BarTitlePrimaryAction | null;\n actions?: BarTitleActionItem[];\n /** Icon actions rendered in the mobile header's trailing lane. */\n mobileActions?: PanelToolsHeaderAction[];\n actionsAriaLabel?: string;\n tone?: MobileHeaderTone;\n contentInset?: ShellPageContentInset;\n /** Remove only the content gutter adjacent to the page header. */\n contentInsetBlockStart?: ShellPageContentInset;\n /** Exact roomy block-start content inset when the responsive default is not appropriate. */\n contentInsetBlockStartSize?: string;\n /** Exact block-start content inset while page-title capacity is compact or constrained. */\n compactContentInsetBlockStartSize?: string;\n /** Allow a roomy page title to compact in response to page scrolling. */\n scrollCompaction?: boolean;\n /** Draw the divider beneath the desktop/tablet page title. */\n showHeaderDivider?: boolean;\n /** Override divider visibility while the page title is compact or constrained. */\n showCompactHeaderDivider?: boolean;\n /** Canvas surface painted by ShellPage around and beneath routed content. */\n contentSurface?: ShellPageContentSurface;\n}",
|
|
27041
27340
|
"docstring": "Route-owned page chrome. The same data drives desktop BarNav/BarTitle and\nthe intentionally different mobile MobileHeader presentation.",
|
|
27042
27341
|
"path": "src/wc/components/ShellApp/shell-app-types.ts"
|
|
27043
27342
|
},
|
|
@@ -69,6 +69,18 @@ export interface ShellPageChromeConfig {
|
|
|
69
69
|
actionsAriaLabel?: string;
|
|
70
70
|
tone?: MobileHeaderTone;
|
|
71
71
|
contentInset?: ShellPageContentInset;
|
|
72
|
+
/** Remove only the content gutter adjacent to the page header. */
|
|
73
|
+
contentInsetBlockStart?: ShellPageContentInset;
|
|
74
|
+
/** Exact roomy block-start content inset when the responsive default is not appropriate. */
|
|
75
|
+
contentInsetBlockStartSize?: string;
|
|
76
|
+
/** Exact block-start content inset while page-title capacity is compact or constrained. */
|
|
77
|
+
compactContentInsetBlockStartSize?: string;
|
|
78
|
+
/** Allow a roomy page title to compact in response to page scrolling. */
|
|
79
|
+
scrollCompaction?: boolean;
|
|
80
|
+
/** Draw the divider beneath the desktop/tablet page title. */
|
|
81
|
+
showHeaderDivider?: boolean;
|
|
82
|
+
/** Override divider visibility while the page title is compact or constrained. */
|
|
83
|
+
showCompactHeaderDivider?: boolean;
|
|
72
84
|
/** Canvas surface painted by ShellPage around and beneath routed content. */
|
|
73
85
|
contentSurface?: ShellPageContentSurface;
|
|
74
86
|
}
|
package/dist/lib/utils/index.js
CHANGED
|
@@ -28,15 +28,50 @@ function getProbeElement() {
|
|
|
28
28
|
}
|
|
29
29
|
return probeEl;
|
|
30
30
|
}
|
|
31
|
+
function applyContextVariables(probe, cssLength, context) {
|
|
32
|
+
const contextStyle = getComputedStyle(context);
|
|
33
|
+
const pending = [...cssLength.matchAll(/var\(\s*(--[\w-]+)/g)].map((match) => match[1]);
|
|
34
|
+
const visited = /* @__PURE__ */ new Set();
|
|
35
|
+
const previous = [];
|
|
36
|
+
while (pending.length > 0) {
|
|
37
|
+
const name = pending.shift();
|
|
38
|
+
if (!name || visited.has(name)) continue;
|
|
39
|
+
visited.add(name);
|
|
40
|
+
const value = contextStyle.getPropertyValue(name).trim();
|
|
41
|
+
if (!value) continue;
|
|
42
|
+
previous.push({
|
|
43
|
+
name,
|
|
44
|
+
value: probe.style.getPropertyValue(name),
|
|
45
|
+
priority: probe.style.getPropertyPriority(name)
|
|
46
|
+
});
|
|
47
|
+
probe.style.setProperty(name, value);
|
|
48
|
+
for (const match of value.matchAll(/var\(\s*(--[\w-]+)/g)) pending.push(match[1]);
|
|
49
|
+
}
|
|
50
|
+
return previous;
|
|
51
|
+
}
|
|
52
|
+
function restoreProbeVariables(probe, previous) {
|
|
53
|
+
for (const { name, value, priority } of previous) {
|
|
54
|
+
if (value) probe.style.setProperty(name, value, priority);
|
|
55
|
+
else probe.style.removeProperty(name);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
31
58
|
function clearCssLengthPxCache() {
|
|
32
59
|
lengthPxCache.clear();
|
|
33
60
|
}
|
|
34
|
-
function resolveCssLengthPx(value, fallback) {
|
|
61
|
+
function resolveCssLengthPx(value, fallback, context) {
|
|
35
62
|
const resolved = value === void 0 || value === null || value === "" ? fallback : value;
|
|
36
63
|
if (typeof resolved === "number") return resolved;
|
|
37
64
|
const trimmed = resolved.trim();
|
|
38
|
-
if (!trimmed) return resolveCssLengthPx(fallback, 0);
|
|
39
|
-
const
|
|
65
|
+
if (!trimmed) return resolveCssLengthPx(fallback, 0, context);
|
|
66
|
+
const scopedProperty = context ? trimmed.match(/^var\(\s*(--[\w-]+)/)?.[1] : void 0;
|
|
67
|
+
if (context && scopedProperty) {
|
|
68
|
+
const scopedValue = getComputedStyle(context).getPropertyValue(scopedProperty).trim();
|
|
69
|
+
if (scopedValue && scopedValue !== trimmed) {
|
|
70
|
+
return resolveCssLengthPx(scopedValue, fallback, context);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
const contextDependent = !!context && trimmed.includes("var(");
|
|
74
|
+
const cached = contextDependent ? void 0 : lengthPxCache.get(trimmed);
|
|
40
75
|
if (cached !== void 0) return cached;
|
|
41
76
|
if (/^-?\d+(\.\d+)?$/.test(trimmed)) {
|
|
42
77
|
const n = Number(trimmed);
|
|
@@ -54,10 +89,12 @@ function resolveCssLengthPx(value, fallback) {
|
|
|
54
89
|
if (!probe) {
|
|
55
90
|
return typeof fallback === "number" ? fallback : 0;
|
|
56
91
|
}
|
|
92
|
+
const previousVariables = context ? applyContextVariables(probe, cssLength, context) : [];
|
|
57
93
|
probe.style.width = cssLength;
|
|
58
94
|
const px = probe.getBoundingClientRect().width;
|
|
59
95
|
probe.style.width = "";
|
|
60
|
-
|
|
96
|
+
restoreProbeVariables(probe, previousVariables);
|
|
97
|
+
if (!contextDependent && (px !== 0 || !cssLength.includes("var("))) {
|
|
61
98
|
lengthPxCache.set(trimmed, px);
|
|
62
99
|
}
|
|
63
100
|
return px;
|