@xihan-ui/web-components 1.0.0-alpha.3 → 1.0.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/CHANGELOG.md +1603 -0
- package/custom-elements.json +1689 -430
- package/dist/backgrounds.js +1 -1
- package/dist/define.d.ts +482 -179
- package/dist/define.d.ts.map +1 -1
- package/dist/define.js +1232 -680
- package/dist/define.js.map +1 -1
- package/dist/{element-Cpkqkn_U.js → element-ib25-l85.js} +2 -2
- package/dist/{element-Cpkqkn_U.js.map → element-ib25-l85.js.map} +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/{machine-controller-j_fnUsFq.js → machine-controller-DE6edQbK.js} +3 -2
- package/dist/{machine-controller-j_fnUsFq.js.map → machine-controller-DE6edQbK.js.map} +1 -1
- package/package.json +12 -12
package/custom-elements.json
CHANGED
|
@@ -704,6 +704,9 @@
|
|
|
704
704
|
{
|
|
705
705
|
"name": "--xh-alert-gap"
|
|
706
706
|
},
|
|
707
|
+
{
|
|
708
|
+
"name": "--xh-alert-icon-box"
|
|
709
|
+
},
|
|
707
710
|
{
|
|
708
711
|
"name": "--xh-alert-icon-fg"
|
|
709
712
|
},
|
|
@@ -1627,12 +1630,16 @@
|
|
|
1627
1630
|
"declarations": [
|
|
1628
1631
|
{
|
|
1629
1632
|
"kind": "class",
|
|
1630
|
-
"description": "`<xh-badge>` ——
|
|
1633
|
+
"description": "`<xh-badge>` —— 角标宿主,无状态机。\n\n被标记的东西写进 root,角标本身写进 indicator;角标是挂在别的元素角上的一枚标记,\n行内的状态药丸请用 `<xh-tag>`。",
|
|
1631
1634
|
"name": "XhBadgeElement",
|
|
1632
1635
|
"cssParts": [
|
|
1633
1636
|
{
|
|
1634
|
-
"description": "
|
|
1637
|
+
"description": "锚点:被标记的那个东西放进它里面",
|
|
1635
1638
|
"name": "root"
|
|
1639
|
+
},
|
|
1640
|
+
{
|
|
1641
|
+
"description": "角标本身,绝对定位在 root 的某个角上",
|
|
1642
|
+
"name": "indicator"
|
|
1636
1643
|
}
|
|
1637
1644
|
],
|
|
1638
1645
|
"members": [
|
|
@@ -1647,12 +1654,12 @@
|
|
|
1647
1654
|
},
|
|
1648
1655
|
{
|
|
1649
1656
|
"kind": "field",
|
|
1650
|
-
"name": "
|
|
1657
|
+
"name": "placement",
|
|
1651
1658
|
"privacy": "public",
|
|
1652
1659
|
"type": {
|
|
1653
|
-
"text": "
|
|
1660
|
+
"text": "BadgePlacement | undefined"
|
|
1654
1661
|
},
|
|
1655
|
-
"attribute": "
|
|
1662
|
+
"attribute": "placement"
|
|
1656
1663
|
},
|
|
1657
1664
|
{
|
|
1658
1665
|
"kind": "field",
|
|
@@ -1731,11 +1738,11 @@
|
|
|
1731
1738
|
"attributes": [
|
|
1732
1739
|
{
|
|
1733
1740
|
"type": {
|
|
1734
|
-
"text": "
|
|
1741
|
+
"text": "BadgePlacement | undefined"
|
|
1735
1742
|
},
|
|
1736
|
-
"description": "
|
|
1737
|
-
"name": "
|
|
1738
|
-
"fieldName": "
|
|
1743
|
+
"description": "挂在哪个角上,默认 top-end",
|
|
1744
|
+
"name": "placement",
|
|
1745
|
+
"fieldName": "placement"
|
|
1739
1746
|
},
|
|
1740
1747
|
{
|
|
1741
1748
|
"type": {
|
|
@@ -1789,7 +1796,7 @@
|
|
|
1789
1796
|
"type": {
|
|
1790
1797
|
"text": "string | undefined"
|
|
1791
1798
|
},
|
|
1792
|
-
"description": "
|
|
1799
|
+
"description": "读屏怎么念这枚角标,例如「3 条未读」",
|
|
1793
1800
|
"name": "label",
|
|
1794
1801
|
"fieldName": "label"
|
|
1795
1802
|
}
|
|
@@ -1815,6 +1822,18 @@
|
|
|
1815
1822
|
},
|
|
1816
1823
|
{
|
|
1817
1824
|
"name": "--xh-badge-font-weight"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "--xh-badge-min-size"
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
"name": "--xh-badge-px"
|
|
1831
|
+
},
|
|
1832
|
+
{
|
|
1833
|
+
"name": "--xh-badge-radius"
|
|
1834
|
+
},
|
|
1835
|
+
{
|
|
1836
|
+
"name": "--xh-badge-ring"
|
|
1818
1837
|
}
|
|
1819
1838
|
]
|
|
1820
1839
|
}
|
|
@@ -3167,12 +3186,30 @@
|
|
|
3167
3186
|
{
|
|
3168
3187
|
"name": "--xh-card-bg"
|
|
3169
3188
|
},
|
|
3189
|
+
{
|
|
3190
|
+
"name": "--xh-card-body-pt"
|
|
3191
|
+
},
|
|
3170
3192
|
{
|
|
3171
3193
|
"name": "--xh-card-border"
|
|
3172
3194
|
},
|
|
3195
|
+
{
|
|
3196
|
+
"name": "--xh-card-divider"
|
|
3197
|
+
},
|
|
3173
3198
|
{
|
|
3174
3199
|
"name": "--xh-card-fg"
|
|
3175
3200
|
},
|
|
3201
|
+
{
|
|
3202
|
+
"name": "--xh-card-footer-gap"
|
|
3203
|
+
},
|
|
3204
|
+
{
|
|
3205
|
+
"name": "--xh-card-footer-pt"
|
|
3206
|
+
},
|
|
3207
|
+
{
|
|
3208
|
+
"name": "--xh-card-header-gap"
|
|
3209
|
+
},
|
|
3210
|
+
{
|
|
3211
|
+
"name": "--xh-card-header-pb"
|
|
3212
|
+
},
|
|
3176
3213
|
{
|
|
3177
3214
|
"name": "--xh-card-radius"
|
|
3178
3215
|
},
|
|
@@ -3941,6 +3978,14 @@
|
|
|
3941
3978
|
"readonly": true,
|
|
3942
3979
|
"default": "new MachineController<CascaderSchema>( this, cascaderMachine, () => this.machineProps(), { scope: this.cascaderScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
3943
3980
|
},
|
|
3981
|
+
{
|
|
3982
|
+
"kind": "field",
|
|
3983
|
+
"name": "bars",
|
|
3984
|
+
"privacy": "private",
|
|
3985
|
+
"readonly": true,
|
|
3986
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), axes: ['horizontal'], props: () => ({ dir: this.direction }), })",
|
|
3987
|
+
"description": "列区的自绘条:与 content 同级挂在已经 fixed 的 positioner 上。\n只摆横的——列多到放不下时整体横向滚动,纵向溢出归每一列自己;\n横条的正负按排版方向算,而组件不读计算样式,把作者写的那份显式交过去。"
|
|
3988
|
+
},
|
|
3944
3989
|
{
|
|
3945
3990
|
"kind": "method",
|
|
3946
3991
|
"name": "machineProps",
|
|
@@ -4338,6 +4383,9 @@
|
|
|
4338
4383
|
{
|
|
4339
4384
|
"name": "--xh-cascader-column-divider"
|
|
4340
4385
|
},
|
|
4386
|
+
{
|
|
4387
|
+
"name": "--xh-cascader-column-gap"
|
|
4388
|
+
},
|
|
4341
4389
|
{
|
|
4342
4390
|
"name": "--xh-cascader-column-h"
|
|
4343
4391
|
},
|
|
@@ -4494,6 +4542,12 @@
|
|
|
4494
4542
|
{
|
|
4495
4543
|
"name": "--xh-cascader-row-selected-font-weight"
|
|
4496
4544
|
},
|
|
4545
|
+
{
|
|
4546
|
+
"name": "--xh-cascader-search-divider"
|
|
4547
|
+
},
|
|
4548
|
+
{
|
|
4549
|
+
"name": "--xh-cascader-search-list-gap"
|
|
4550
|
+
},
|
|
4497
4551
|
{
|
|
4498
4552
|
"name": "--xh-cascader-search-p"
|
|
4499
4553
|
},
|
|
@@ -5250,6 +5304,9 @@
|
|
|
5250
5304
|
},
|
|
5251
5305
|
{
|
|
5252
5306
|
"name": "--xh-checkbox-label-gap"
|
|
5307
|
+
},
|
|
5308
|
+
{
|
|
5309
|
+
"name": "--xh-checkbox-radius"
|
|
5253
5310
|
}
|
|
5254
5311
|
]
|
|
5255
5312
|
}
|
|
@@ -6175,6 +6232,15 @@
|
|
|
6175
6232
|
},
|
|
6176
6233
|
"attribute": "name"
|
|
6177
6234
|
},
|
|
6235
|
+
{
|
|
6236
|
+
"kind": "field",
|
|
6237
|
+
"name": "size",
|
|
6238
|
+
"privacy": "public",
|
|
6239
|
+
"type": {
|
|
6240
|
+
"text": "Size | undefined"
|
|
6241
|
+
},
|
|
6242
|
+
"attribute": "size"
|
|
6243
|
+
},
|
|
6178
6244
|
{
|
|
6179
6245
|
"kind": "field",
|
|
6180
6246
|
"name": "direction",
|
|
@@ -6272,6 +6338,14 @@
|
|
|
6272
6338
|
"readonly": true,
|
|
6273
6339
|
"default": "new MachineController<ColorPickerSchema>( this, colorPickerMachine, () => this.machineProps(), { scope: this.pickerScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
6274
6340
|
},
|
|
6341
|
+
{
|
|
6342
|
+
"kind": "field",
|
|
6343
|
+
"name": "bars",
|
|
6344
|
+
"privacy": "private",
|
|
6345
|
+
"readonly": true,
|
|
6346
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
6347
|
+
"description": "面板的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
6348
|
+
},
|
|
6275
6349
|
{
|
|
6276
6350
|
"kind": "method",
|
|
6277
6351
|
"name": "machineProps",
|
|
@@ -6491,6 +6565,14 @@
|
|
|
6491
6565
|
"name": "swatches",
|
|
6492
6566
|
"fieldName": "swatches"
|
|
6493
6567
|
},
|
|
6568
|
+
{
|
|
6569
|
+
"type": {
|
|
6570
|
+
"text": "Size | undefined"
|
|
6571
|
+
},
|
|
6572
|
+
"description": "尺寸",
|
|
6573
|
+
"name": "size",
|
|
6574
|
+
"fieldName": "size"
|
|
6575
|
+
},
|
|
6494
6576
|
{
|
|
6495
6577
|
"type": {
|
|
6496
6578
|
"text": "Direction | undefined"
|
|
@@ -7102,6 +7184,14 @@
|
|
|
7102
7184
|
"readonly": true,
|
|
7103
7185
|
"default": "new MachineController<ComboboxSchema>( this, comboboxMachine, () => this.machineProps(), { scope: this.comboboxScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
7104
7186
|
},
|
|
7187
|
+
{
|
|
7188
|
+
"kind": "field",
|
|
7189
|
+
"name": "bars",
|
|
7190
|
+
"privacy": "private",
|
|
7191
|
+
"readonly": true,
|
|
7192
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
7193
|
+
"description": "候选列表的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
7194
|
+
},
|
|
7105
7195
|
{
|
|
7106
7196
|
"kind": "field",
|
|
7107
7197
|
"name": "declaredDisabled",
|
|
@@ -7421,6 +7511,9 @@
|
|
|
7421
7511
|
{
|
|
7422
7512
|
"name": "--xh-combobox-content-fg"
|
|
7423
7513
|
},
|
|
7514
|
+
{
|
|
7515
|
+
"name": "--xh-combobox-content-gap"
|
|
7516
|
+
},
|
|
7424
7517
|
{
|
|
7425
7518
|
"name": "--xh-combobox-content-max-h"
|
|
7426
7519
|
},
|
|
@@ -7532,6 +7625,9 @@
|
|
|
7532
7625
|
{
|
|
7533
7626
|
"name": "--xh-combobox-input-font-size"
|
|
7534
7627
|
},
|
|
7628
|
+
{
|
|
7629
|
+
"name": "--xh-combobox-input-py"
|
|
7630
|
+
},
|
|
7535
7631
|
{
|
|
7536
7632
|
"name": "--xh-combobox-item-bg-hover"
|
|
7537
7633
|
},
|
|
@@ -7550,6 +7646,9 @@
|
|
|
7550
7646
|
{
|
|
7551
7647
|
"name": "--xh-combobox-item-gap"
|
|
7552
7648
|
},
|
|
7649
|
+
{
|
|
7650
|
+
"name": "--xh-combobox-item-group-gap"
|
|
7651
|
+
},
|
|
7553
7652
|
{
|
|
7554
7653
|
"name": "--xh-combobox-item-indicator-fg"
|
|
7555
7654
|
},
|
|
@@ -8229,6 +8328,14 @@
|
|
|
8229
8328
|
"readonly": true,
|
|
8230
8329
|
"default": "new MachineController<ContextMenuSchema>( this, contextMenuMachine, () => this.machineProps(), { scope: this.menuScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
8231
8330
|
},
|
|
8331
|
+
{
|
|
8332
|
+
"kind": "field",
|
|
8333
|
+
"name": "bars",
|
|
8334
|
+
"privacy": "private",
|
|
8335
|
+
"readonly": true,
|
|
8336
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
8337
|
+
"description": "条目列表的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
8338
|
+
},
|
|
8232
8339
|
{
|
|
8233
8340
|
"kind": "field",
|
|
8234
8341
|
"name": "declaredDisabled",
|
|
@@ -8448,9 +8555,15 @@
|
|
|
8448
8555
|
{
|
|
8449
8556
|
"name": "--xh-context-menu-border"
|
|
8450
8557
|
},
|
|
8558
|
+
{
|
|
8559
|
+
"name": "--xh-context-menu-content-gap"
|
|
8560
|
+
},
|
|
8451
8561
|
{
|
|
8452
8562
|
"name": "--xh-context-menu-fg"
|
|
8453
8563
|
},
|
|
8564
|
+
{
|
|
8565
|
+
"name": "--xh-context-menu-group-gap"
|
|
8566
|
+
},
|
|
8454
8567
|
{
|
|
8455
8568
|
"name": "--xh-context-menu-group-label-fg"
|
|
8456
8569
|
},
|
|
@@ -9519,6 +9632,24 @@
|
|
|
9519
9632
|
},
|
|
9520
9633
|
"attribute": "visible-count"
|
|
9521
9634
|
},
|
|
9635
|
+
{
|
|
9636
|
+
"kind": "field",
|
|
9637
|
+
"name": "fixedWeeks",
|
|
9638
|
+
"privacy": "public",
|
|
9639
|
+
"type": {
|
|
9640
|
+
"text": "boolean | undefined"
|
|
9641
|
+
},
|
|
9642
|
+
"attribute": "fixed-weeks"
|
|
9643
|
+
},
|
|
9644
|
+
{
|
|
9645
|
+
"kind": "field",
|
|
9646
|
+
"name": "defaultFocusedValue",
|
|
9647
|
+
"privacy": "public",
|
|
9648
|
+
"type": {
|
|
9649
|
+
"text": "string | undefined"
|
|
9650
|
+
},
|
|
9651
|
+
"attribute": "default-focused-value"
|
|
9652
|
+
},
|
|
9522
9653
|
{
|
|
9523
9654
|
"kind": "field",
|
|
9524
9655
|
"name": "disabled",
|
|
@@ -9756,6 +9887,14 @@
|
|
|
9756
9887
|
"readonly": true,
|
|
9757
9888
|
"default": "new MachineController<DateFieldSchema>( this, dateFieldMachine, () => datePickerFieldEndProps(this.rootCtrl.service), { scope: this.pickerScope }, )"
|
|
9758
9889
|
},
|
|
9890
|
+
{
|
|
9891
|
+
"kind": "field",
|
|
9892
|
+
"name": "bars",
|
|
9893
|
+
"privacy": "private",
|
|
9894
|
+
"readonly": true,
|
|
9895
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
9896
|
+
"description": "浮层面板的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
9897
|
+
},
|
|
9759
9898
|
{
|
|
9760
9899
|
"kind": "method",
|
|
9761
9900
|
"name": "services",
|
|
@@ -10048,10 +10187,26 @@
|
|
|
10048
10187
|
"type": {
|
|
10049
10188
|
"text": "number | undefined"
|
|
10050
10189
|
},
|
|
10051
|
-
"description": "
|
|
10190
|
+
"description": "并排展示几页;缺省单选 1,区间按两端定,同一页放得下就 1",
|
|
10052
10191
|
"name": "visible-count",
|
|
10053
10192
|
"fieldName": "visibleCount"
|
|
10054
10193
|
},
|
|
10194
|
+
{
|
|
10195
|
+
"type": {
|
|
10196
|
+
"text": "boolean | undefined"
|
|
10197
|
+
},
|
|
10198
|
+
"description": "日历恒渲染六行,默认开;写 fixed-weeks=\"false\" 关掉",
|
|
10199
|
+
"name": "fixed-weeks",
|
|
10200
|
+
"fieldName": "fixedWeeks"
|
|
10201
|
+
},
|
|
10202
|
+
{
|
|
10203
|
+
"type": {
|
|
10204
|
+
"text": "string | undefined"
|
|
10205
|
+
},
|
|
10206
|
+
"description": "初始聚焦日,同时决定展开时先落在哪一页",
|
|
10207
|
+
"name": "default-focused-value",
|
|
10208
|
+
"fieldName": "defaultFocusedValue"
|
|
10209
|
+
},
|
|
10055
10210
|
{
|
|
10056
10211
|
"type": {
|
|
10057
10212
|
"text": "boolean | undefined"
|
|
@@ -10197,6 +10352,9 @@
|
|
|
10197
10352
|
{
|
|
10198
10353
|
"name": "--xh-date-picker-calendar-gap"
|
|
10199
10354
|
},
|
|
10355
|
+
{
|
|
10356
|
+
"name": "--xh-date-picker-column-divider"
|
|
10357
|
+
},
|
|
10200
10358
|
{
|
|
10201
10359
|
"name": "--xh-date-picker-confirm-bg"
|
|
10202
10360
|
},
|
|
@@ -10206,6 +10364,12 @@
|
|
|
10206
10364
|
{
|
|
10207
10365
|
"name": "--xh-date-picker-confirm-fg"
|
|
10208
10366
|
},
|
|
10367
|
+
{
|
|
10368
|
+
"name": "--xh-date-picker-confirm-trigger-px"
|
|
10369
|
+
},
|
|
10370
|
+
{
|
|
10371
|
+
"name": "--xh-date-picker-confirm-trigger-radius"
|
|
10372
|
+
},
|
|
10209
10373
|
{
|
|
10210
10374
|
"name": "--xh-date-picker-content-bg"
|
|
10211
10375
|
},
|
|
@@ -10311,18 +10475,33 @@
|
|
|
10311
10475
|
{
|
|
10312
10476
|
"name": "--xh-date-picker-preset-fg-selected"
|
|
10313
10477
|
},
|
|
10478
|
+
{
|
|
10479
|
+
"name": "--xh-date-picker-preset-px"
|
|
10480
|
+
},
|
|
10481
|
+
{
|
|
10482
|
+
"name": "--xh-date-picker-preset-py"
|
|
10483
|
+
},
|
|
10484
|
+
{
|
|
10485
|
+
"name": "--xh-date-picker-preset-radius"
|
|
10486
|
+
},
|
|
10314
10487
|
{
|
|
10315
10488
|
"name": "--xh-date-picker-presets-gap"
|
|
10316
10489
|
},
|
|
10317
10490
|
{
|
|
10318
10491
|
"name": "--xh-date-picker-presets-h"
|
|
10319
10492
|
},
|
|
10493
|
+
{
|
|
10494
|
+
"name": "--xh-date-picker-presets-padding"
|
|
10495
|
+
},
|
|
10320
10496
|
{
|
|
10321
10497
|
"name": "--xh-date-picker-time-column-gap"
|
|
10322
10498
|
},
|
|
10323
10499
|
{
|
|
10324
10500
|
"name": "--xh-date-picker-time-column-h"
|
|
10325
10501
|
},
|
|
10502
|
+
{
|
|
10503
|
+
"name": "--xh-date-picker-time-column-padding"
|
|
10504
|
+
},
|
|
10326
10505
|
{
|
|
10327
10506
|
"name": "--xh-date-picker-time-item-bg-hover"
|
|
10328
10507
|
},
|
|
@@ -10331,6 +10510,15 @@
|
|
|
10331
10510
|
},
|
|
10332
10511
|
{
|
|
10333
10512
|
"name": "--xh-date-picker-time-item-fg-selected"
|
|
10513
|
+
},
|
|
10514
|
+
{
|
|
10515
|
+
"name": "--xh-date-picker-time-item-px"
|
|
10516
|
+
},
|
|
10517
|
+
{
|
|
10518
|
+
"name": "--xh-date-picker-time-item-py"
|
|
10519
|
+
},
|
|
10520
|
+
{
|
|
10521
|
+
"name": "--xh-date-picker-time-item-radius"
|
|
10334
10522
|
}
|
|
10335
10523
|
]
|
|
10336
10524
|
}
|
|
@@ -10476,6 +10664,9 @@
|
|
|
10476
10664
|
{
|
|
10477
10665
|
"name": "--xh-descriptions-border"
|
|
10478
10666
|
},
|
|
10667
|
+
{
|
|
10668
|
+
"name": "--xh-descriptions-divider"
|
|
10669
|
+
},
|
|
10479
10670
|
{
|
|
10480
10671
|
"name": "--xh-descriptions-fg"
|
|
10481
10672
|
},
|
|
@@ -10887,6 +11078,9 @@
|
|
|
10887
11078
|
{
|
|
10888
11079
|
"name": "--xh-dialog-max-w"
|
|
10889
11080
|
},
|
|
11081
|
+
{
|
|
11082
|
+
"name": "--xh-dialog-positioner-padding"
|
|
11083
|
+
},
|
|
10890
11084
|
{
|
|
10891
11085
|
"name": "--xh-dialog-px"
|
|
10892
11086
|
},
|
|
@@ -14115,7 +14309,7 @@
|
|
|
14115
14309
|
"name": "XhFlexElement",
|
|
14116
14310
|
"cssParts": [
|
|
14117
14311
|
{
|
|
14118
|
-
"description": "排布容器,承载 data-
|
|
14312
|
+
"description": "排布容器,承载 data-orientation / data-align / data-justify / data-gap / data-wrap / data-inline",
|
|
14119
14313
|
"name": "root"
|
|
14120
14314
|
}
|
|
14121
14315
|
],
|
|
@@ -14129,6 +14323,15 @@
|
|
|
14129
14323
|
"static": true,
|
|
14130
14324
|
"default": "{ anatomy: flexAnatomy, meta: flexMeta }"
|
|
14131
14325
|
},
|
|
14326
|
+
{
|
|
14327
|
+
"kind": "field",
|
|
14328
|
+
"name": "orientation",
|
|
14329
|
+
"privacy": "public",
|
|
14330
|
+
"type": {
|
|
14331
|
+
"text": "string | undefined"
|
|
14332
|
+
},
|
|
14333
|
+
"attribute": "orientation"
|
|
14334
|
+
},
|
|
14132
14335
|
{
|
|
14133
14336
|
"kind": "field",
|
|
14134
14337
|
"name": "direction",
|
|
@@ -14199,7 +14402,15 @@
|
|
|
14199
14402
|
"type": {
|
|
14200
14403
|
"text": "string | undefined"
|
|
14201
14404
|
},
|
|
14202
|
-
"description": "主轴方向,缺省
|
|
14405
|
+
"description": "主轴方向,缺省 horizontal",
|
|
14406
|
+
"name": "orientation",
|
|
14407
|
+
"fieldName": "orientation"
|
|
14408
|
+
},
|
|
14409
|
+
{
|
|
14410
|
+
"type": {
|
|
14411
|
+
"text": "string | undefined"
|
|
14412
|
+
},
|
|
14413
|
+
"description": "主轴方向的旧写法,两个都写时以 orientation 为准",
|
|
14203
14414
|
"name": "direction",
|
|
14204
14415
|
"fieldName": "direction"
|
|
14205
14416
|
},
|
|
@@ -16605,6 +16816,9 @@
|
|
|
16605
16816
|
{
|
|
16606
16817
|
"name": "--xh-highlight-fg"
|
|
16607
16818
|
},
|
|
16819
|
+
{
|
|
16820
|
+
"name": "--xh-highlight-mark-px"
|
|
16821
|
+
},
|
|
16608
16822
|
{
|
|
16609
16823
|
"name": "--xh-highlight-radius"
|
|
16610
16824
|
}
|
|
@@ -17125,6 +17339,14 @@
|
|
|
17125
17339
|
"readonly": true,
|
|
17126
17340
|
"default": "new MachineController<HoverCardSchema>( this, hoverCardMachine, () => this.machineProps(), { scope: this.hoverCardScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
17127
17341
|
},
|
|
17342
|
+
{
|
|
17343
|
+
"kind": "field",
|
|
17344
|
+
"name": "bars",
|
|
17345
|
+
"privacy": "private",
|
|
17346
|
+
"readonly": true,
|
|
17347
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
17348
|
+
"description": "卡片内容的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
17349
|
+
},
|
|
17128
17350
|
{
|
|
17129
17351
|
"kind": "method",
|
|
17130
17352
|
"name": "machineProps",
|
|
@@ -18652,6 +18874,9 @@
|
|
|
18652
18874
|
{
|
|
18653
18875
|
"name": "--xh-image-viewer-close-size"
|
|
18654
18876
|
},
|
|
18877
|
+
{
|
|
18878
|
+
"name": "--xh-image-viewer-counter-padding"
|
|
18879
|
+
},
|
|
18655
18880
|
{
|
|
18656
18881
|
"name": "--xh-image-viewer-fg"
|
|
18657
18882
|
},
|
|
@@ -18660,6 +18885,18 @@
|
|
|
18660
18885
|
},
|
|
18661
18886
|
{
|
|
18662
18887
|
"name": "--xh-image-viewer-layer"
|
|
18888
|
+
},
|
|
18889
|
+
{
|
|
18890
|
+
"name": "--xh-image-viewer-overlay-radius"
|
|
18891
|
+
},
|
|
18892
|
+
{
|
|
18893
|
+
"name": "--xh-image-viewer-toolbar-gap"
|
|
18894
|
+
},
|
|
18895
|
+
{
|
|
18896
|
+
"name": "--xh-image-viewer-toolbar-padding"
|
|
18897
|
+
},
|
|
18898
|
+
{
|
|
18899
|
+
"name": "--xh-image-viewer-toolbar-radius"
|
|
18663
18900
|
}
|
|
18664
18901
|
]
|
|
18665
18902
|
}
|
|
@@ -19170,6 +19407,15 @@
|
|
|
19170
19407
|
},
|
|
19171
19408
|
"attribute": "sort-keys"
|
|
19172
19409
|
},
|
|
19410
|
+
{
|
|
19411
|
+
"kind": "field",
|
|
19412
|
+
"name": "view",
|
|
19413
|
+
"privacy": "public",
|
|
19414
|
+
"type": {
|
|
19415
|
+
"text": "'tree' | 'text' | undefined"
|
|
19416
|
+
},
|
|
19417
|
+
"attribute": "view"
|
|
19418
|
+
},
|
|
19173
19419
|
{
|
|
19174
19420
|
"kind": "field",
|
|
19175
19421
|
"name": "loop",
|
|
@@ -19218,6 +19464,24 @@
|
|
|
19218
19464
|
"readonly": true,
|
|
19219
19465
|
"default": "new MachineController<JsonViewerSchema>(this, jsonViewerMachine, () => this.machineProps())"
|
|
19220
19466
|
},
|
|
19467
|
+
{
|
|
19468
|
+
"kind": "field",
|
|
19469
|
+
"name": "bars",
|
|
19470
|
+
"privacy": "private",
|
|
19471
|
+
"readonly": true,
|
|
19472
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('root'), scrollable: () => scrollLayerOf(this.getPart('root')), axes: ['vertical', 'horizontal'], props: () => ({ dir: this.direction }), })",
|
|
19473
|
+
"description": "两档的自绘条:与滚动层同级挂在根上。两档互斥,交此刻在场的那个——\n两个容器都归本元素建,身上没有 data-xh-part,从 root 里现查。\n两条轴都摆:深层缩进往行首方向推、长字符串往行尾伸。"
|
|
19474
|
+
},
|
|
19475
|
+
{
|
|
19476
|
+
"kind": "field",
|
|
19477
|
+
"name": "wiredLayer",
|
|
19478
|
+
"type": {
|
|
19479
|
+
"text": "HTMLElement | null"
|
|
19480
|
+
},
|
|
19481
|
+
"privacy": "private",
|
|
19482
|
+
"default": "null",
|
|
19483
|
+
"description": "条子上一轮接的是哪一档的容器。"
|
|
19484
|
+
},
|
|
19221
19485
|
{
|
|
19222
19486
|
"kind": "method",
|
|
19223
19487
|
"name": "machineProps",
|
|
@@ -19237,6 +19501,14 @@
|
|
|
19237
19501
|
"privacy": "private",
|
|
19238
19502
|
"description": "树容器与每一行都归本元素建,按路径留着复用。"
|
|
19239
19503
|
},
|
|
19504
|
+
{
|
|
19505
|
+
"kind": "field",
|
|
19506
|
+
"name": "textEl",
|
|
19507
|
+
"type": {
|
|
19508
|
+
"text": "HTMLElement | undefined"
|
|
19509
|
+
},
|
|
19510
|
+
"privacy": "private"
|
|
19511
|
+
},
|
|
19240
19512
|
{
|
|
19241
19513
|
"kind": "field",
|
|
19242
19514
|
"name": "rows",
|
|
@@ -19338,6 +19610,48 @@
|
|
|
19338
19610
|
"text": "void"
|
|
19339
19611
|
}
|
|
19340
19612
|
}
|
|
19613
|
+
},
|
|
19614
|
+
{
|
|
19615
|
+
"kind": "method",
|
|
19616
|
+
"name": "syncBars",
|
|
19617
|
+
"privacy": "private",
|
|
19618
|
+
"return": {
|
|
19619
|
+
"type": {
|
|
19620
|
+
"text": "void"
|
|
19621
|
+
}
|
|
19622
|
+
},
|
|
19623
|
+
"description": "把条子接到此刻在场的那一档容器上。\n机器的追踪器在本轮渲染之前就跑完了,这一轮换掉的容器它看不见;\n换了档就再催一轮,下一轮的追踪器才把滚动监听与容器标记挪过去。"
|
|
19624
|
+
},
|
|
19625
|
+
{
|
|
19626
|
+
"kind": "method",
|
|
19627
|
+
"name": "adopt",
|
|
19628
|
+
"privacy": "private",
|
|
19629
|
+
"return": {
|
|
19630
|
+
"type": {
|
|
19631
|
+
"text": "void"
|
|
19632
|
+
}
|
|
19633
|
+
},
|
|
19634
|
+
"parameters": [
|
|
19635
|
+
{
|
|
19636
|
+
"name": "root",
|
|
19637
|
+
"type": {
|
|
19638
|
+
"text": "HTMLElement"
|
|
19639
|
+
}
|
|
19640
|
+
},
|
|
19641
|
+
{
|
|
19642
|
+
"name": "keep",
|
|
19643
|
+
"type": {
|
|
19644
|
+
"text": "HTMLElement"
|
|
19645
|
+
}
|
|
19646
|
+
},
|
|
19647
|
+
{
|
|
19648
|
+
"name": "drop",
|
|
19649
|
+
"type": {
|
|
19650
|
+
"text": "HTMLElement | undefined"
|
|
19651
|
+
}
|
|
19652
|
+
}
|
|
19653
|
+
],
|
|
19654
|
+
"description": "root 里只留这一档的容器:摘走另一档,作者写在里面的东西也一并清掉。\n自绘条同样挂在 root 上,按 scope 认出来留着——整份 replaceChildren 会把条子一起抹掉。\n已经就位的节点一个都不碰:移动一个节点等于把它摘下来再插回去,焦点在树里会掉回 body。"
|
|
19341
19655
|
}
|
|
19342
19656
|
],
|
|
19343
19657
|
"events": [
|
|
@@ -19413,6 +19727,13 @@
|
|
|
19413
19727
|
"description": "尺寸",
|
|
19414
19728
|
"name": "size",
|
|
19415
19729
|
"fieldName": "size"
|
|
19730
|
+
},
|
|
19731
|
+
{
|
|
19732
|
+
"name": "view",
|
|
19733
|
+
"type": {
|
|
19734
|
+
"text": "'tree' | 'text' | undefined"
|
|
19735
|
+
},
|
|
19736
|
+
"fieldName": "view"
|
|
19416
19737
|
}
|
|
19417
19738
|
],
|
|
19418
19739
|
"superclass": {
|
|
@@ -19502,6 +19823,9 @@
|
|
|
19502
19823
|
},
|
|
19503
19824
|
{
|
|
19504
19825
|
"name": "--xh-json-viewer-string-fg"
|
|
19826
|
+
},
|
|
19827
|
+
{
|
|
19828
|
+
"name": "--xh-json-viewer-text-fg"
|
|
19505
19829
|
}
|
|
19506
19830
|
]
|
|
19507
19831
|
}
|
|
@@ -19755,21 +20079,33 @@
|
|
|
19755
20079
|
{
|
|
19756
20080
|
"name": "--xh-layout-border"
|
|
19757
20081
|
},
|
|
20082
|
+
{
|
|
20083
|
+
"name": "--xh-layout-content-padding"
|
|
20084
|
+
},
|
|
19758
20085
|
{
|
|
19759
20086
|
"name": "--xh-layout-fg"
|
|
19760
20087
|
},
|
|
19761
20088
|
{
|
|
19762
20089
|
"name": "--xh-layout-footer-bg"
|
|
19763
20090
|
},
|
|
20091
|
+
{
|
|
20092
|
+
"name": "--xh-layout-footer-padding"
|
|
20093
|
+
},
|
|
19764
20094
|
{
|
|
19765
20095
|
"name": "--xh-layout-header-bg"
|
|
19766
20096
|
},
|
|
20097
|
+
{
|
|
20098
|
+
"name": "--xh-layout-header-gap"
|
|
20099
|
+
},
|
|
19767
20100
|
{
|
|
19768
20101
|
"name": "--xh-layout-header-h"
|
|
19769
20102
|
},
|
|
19770
20103
|
{
|
|
19771
20104
|
"name": "--xh-layout-header-layer"
|
|
19772
20105
|
},
|
|
20106
|
+
{
|
|
20107
|
+
"name": "--xh-layout-header-px"
|
|
20108
|
+
},
|
|
19773
20109
|
{
|
|
19774
20110
|
"name": "--xh-layout-scrollport-h"
|
|
19775
20111
|
},
|
|
@@ -19779,6 +20115,9 @@
|
|
|
19779
20115
|
{
|
|
19780
20116
|
"name": "--xh-layout-sider-collapsed-width"
|
|
19781
20117
|
},
|
|
20118
|
+
{
|
|
20119
|
+
"name": "--xh-layout-sider-padding"
|
|
20120
|
+
},
|
|
19782
20121
|
{
|
|
19783
20122
|
"name": "--xh-layout-sider-trigger-bg"
|
|
19784
20123
|
},
|
|
@@ -19788,6 +20127,12 @@
|
|
|
19788
20127
|
{
|
|
19789
20128
|
"name": "--xh-layout-sider-trigger-fg"
|
|
19790
20129
|
},
|
|
20130
|
+
{
|
|
20131
|
+
"name": "--xh-layout-sider-trigger-gap"
|
|
20132
|
+
},
|
|
20133
|
+
{
|
|
20134
|
+
"name": "--xh-layout-sider-trigger-px"
|
|
20135
|
+
},
|
|
19791
20136
|
{
|
|
19792
20137
|
"name": "--xh-layout-sider-trigger-radius"
|
|
19793
20138
|
},
|
|
@@ -19962,6 +20307,9 @@
|
|
|
19962
20307
|
{
|
|
19963
20308
|
"name": "--xh-list-description-font-size"
|
|
19964
20309
|
},
|
|
20310
|
+
{
|
|
20311
|
+
"name": "--xh-list-divider"
|
|
20312
|
+
},
|
|
19965
20313
|
{
|
|
19966
20314
|
"name": "--xh-list-fg"
|
|
19967
20315
|
},
|
|
@@ -19974,6 +20322,15 @@
|
|
|
19974
20322
|
{
|
|
19975
20323
|
"name": "--xh-list-item-px"
|
|
19976
20324
|
},
|
|
20325
|
+
{
|
|
20326
|
+
"name": "--xh-list-item-px-lg"
|
|
20327
|
+
},
|
|
20328
|
+
{
|
|
20329
|
+
"name": "--xh-list-item-px-md"
|
|
20330
|
+
},
|
|
20331
|
+
{
|
|
20332
|
+
"name": "--xh-list-item-px-sm"
|
|
20333
|
+
},
|
|
19977
20334
|
{
|
|
19978
20335
|
"name": "--xh-list-item-py"
|
|
19979
20336
|
},
|
|
@@ -20371,6 +20728,9 @@
|
|
|
20371
20728
|
{
|
|
20372
20729
|
"name": "--xh-listbox-content-fg"
|
|
20373
20730
|
},
|
|
20731
|
+
{
|
|
20732
|
+
"name": "--xh-listbox-content-gap"
|
|
20733
|
+
},
|
|
20374
20734
|
{
|
|
20375
20735
|
"name": "--xh-listbox-content-max-h"
|
|
20376
20736
|
},
|
|
@@ -20425,6 +20785,9 @@
|
|
|
20425
20785
|
{
|
|
20426
20786
|
"name": "--xh-listbox-item-gap"
|
|
20427
20787
|
},
|
|
20788
|
+
{
|
|
20789
|
+
"name": "--xh-listbox-item-group-gap"
|
|
20790
|
+
},
|
|
20428
20791
|
{
|
|
20429
20792
|
"name": "--xh-listbox-item-indicator-fg"
|
|
20430
20793
|
},
|
|
@@ -21605,6 +21968,14 @@
|
|
|
21605
21968
|
"readonly": true,
|
|
21606
21969
|
"default": "new MachineController<MentionSchema>( this, mentionMachine, () => this.machineProps(), { scope: this.mentionScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
21607
21970
|
},
|
|
21971
|
+
{
|
|
21972
|
+
"kind": "field",
|
|
21973
|
+
"name": "bars",
|
|
21974
|
+
"privacy": "private",
|
|
21975
|
+
"readonly": true,
|
|
21976
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
21977
|
+
"description": "候选列表的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
21978
|
+
},
|
|
21608
21979
|
{
|
|
21609
21980
|
"kind": "field",
|
|
21610
21981
|
"name": "declaredDisabled",
|
|
@@ -21843,6 +22214,9 @@
|
|
|
21843
22214
|
{
|
|
21844
22215
|
"name": "--xh-mention-content-fg"
|
|
21845
22216
|
},
|
|
22217
|
+
{
|
|
22218
|
+
"name": "--xh-mention-content-gap"
|
|
22219
|
+
},
|
|
21846
22220
|
{
|
|
21847
22221
|
"name": "--xh-mention-content-max-h"
|
|
21848
22222
|
},
|
|
@@ -22180,6 +22554,14 @@
|
|
|
22180
22554
|
"readonly": true,
|
|
22181
22555
|
"default": "new MachineController<MenuSchema>( this, menuMachine, () => this.machineProps(), { scope: this.menuScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
22182
22556
|
},
|
|
22557
|
+
{
|
|
22558
|
+
"kind": "field",
|
|
22559
|
+
"name": "bars",
|
|
22560
|
+
"privacy": "private",
|
|
22561
|
+
"readonly": true,
|
|
22562
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
22563
|
+
"description": "条目列表的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
22564
|
+
},
|
|
22183
22565
|
{
|
|
22184
22566
|
"kind": "field",
|
|
22185
22567
|
"name": "declaredDisabled",
|
|
@@ -22412,9 +22794,15 @@
|
|
|
22412
22794
|
{
|
|
22413
22795
|
"name": "--xh-menu-border"
|
|
22414
22796
|
},
|
|
22797
|
+
{
|
|
22798
|
+
"name": "--xh-menu-content-gap"
|
|
22799
|
+
},
|
|
22415
22800
|
{
|
|
22416
22801
|
"name": "--xh-menu-fg"
|
|
22417
22802
|
},
|
|
22803
|
+
{
|
|
22804
|
+
"name": "--xh-menu-group-gap"
|
|
22805
|
+
},
|
|
22418
22806
|
{
|
|
22419
22807
|
"name": "--xh-menu-group-label-fg"
|
|
22420
22808
|
},
|
|
@@ -23002,9 +23390,15 @@
|
|
|
23002
23390
|
{
|
|
23003
23391
|
"name": "--xh-menubar-border"
|
|
23004
23392
|
},
|
|
23393
|
+
{
|
|
23394
|
+
"name": "--xh-menubar-content-gap"
|
|
23395
|
+
},
|
|
23005
23396
|
{
|
|
23006
23397
|
"name": "--xh-menubar-fg"
|
|
23007
23398
|
},
|
|
23399
|
+
{
|
|
23400
|
+
"name": "--xh-menubar-group-gap"
|
|
23401
|
+
},
|
|
23008
23402
|
{
|
|
23009
23403
|
"name": "--xh-menubar-group-label-fg"
|
|
23010
23404
|
},
|
|
@@ -23592,6 +23986,763 @@
|
|
|
23592
23986
|
}
|
|
23593
23987
|
]
|
|
23594
23988
|
},
|
|
23989
|
+
{
|
|
23990
|
+
"kind": "javascript-module",
|
|
23991
|
+
"path": "src/elements/notification.ts",
|
|
23992
|
+
"declarations": [
|
|
23993
|
+
{
|
|
23994
|
+
"kind": "class",
|
|
23995
|
+
"description": "`<xh-notification>` —— Light-DOM 行为宿主:作者写 root 与若干 group 角色节点,\n元素跑 notification 机器并把 connect 产出打上去。每个 group 用 `placement` 属性声明自己是哪个位置,\n不写就落在队列的 placement 上。\n\n单条通知的节点由作者按队列渲染(读 `items` 或听 `items-change`),元素不替作者生成:\n生成节点就等于收走模板控制权,图标、进度条、i18n 文案都再塞不进来。\n每条渲染成一个 `<xh-notification-item>`,它走完退场会冒泡一条 status-change,本元素据此把记录删掉。",
|
|
23996
|
+
"name": "XhNotificationElement",
|
|
23997
|
+
"cssParts": [
|
|
23998
|
+
{
|
|
23999
|
+
"description": "队列的作用域包装(display: contents,不占布局),承载 data-count / data-empty",
|
|
24000
|
+
"name": "root"
|
|
24001
|
+
},
|
|
24002
|
+
{
|
|
24003
|
+
"description": "role=region 的地标,某一个位置上的那一摞;可自带 placement 属性,承载 data-placement / data-count / data-empty 与间距",
|
|
24004
|
+
"name": "group"
|
|
24005
|
+
}
|
|
24006
|
+
],
|
|
24007
|
+
"members": [
|
|
24008
|
+
{
|
|
24009
|
+
"kind": "field",
|
|
24010
|
+
"name": "partContract",
|
|
24011
|
+
"type": {
|
|
24012
|
+
"text": "object"
|
|
24013
|
+
},
|
|
24014
|
+
"static": true,
|
|
24015
|
+
"default": "{ anatomy: notificationAnatomy, meta: notificationMeta }"
|
|
24016
|
+
},
|
|
24017
|
+
{
|
|
24018
|
+
"kind": "field",
|
|
24019
|
+
"name": "items",
|
|
24020
|
+
"privacy": "public",
|
|
24021
|
+
"type": {
|
|
24022
|
+
"text": "NotificationRecord[] | undefined"
|
|
24023
|
+
}
|
|
24024
|
+
},
|
|
24025
|
+
{
|
|
24026
|
+
"kind": "field",
|
|
24027
|
+
"name": "defaultItems",
|
|
24028
|
+
"privacy": "public",
|
|
24029
|
+
"type": {
|
|
24030
|
+
"text": "NotificationRecord[] | undefined"
|
|
24031
|
+
}
|
|
24032
|
+
},
|
|
24033
|
+
{
|
|
24034
|
+
"kind": "field",
|
|
24035
|
+
"name": "placement",
|
|
24036
|
+
"privacy": "public",
|
|
24037
|
+
"type": {
|
|
24038
|
+
"text": "NotificationPlacement | undefined"
|
|
24039
|
+
},
|
|
24040
|
+
"attribute": "placement"
|
|
24041
|
+
},
|
|
24042
|
+
{
|
|
24043
|
+
"kind": "field",
|
|
24044
|
+
"name": "max",
|
|
24045
|
+
"privacy": "public",
|
|
24046
|
+
"type": {
|
|
24047
|
+
"text": "number | undefined"
|
|
24048
|
+
},
|
|
24049
|
+
"attribute": "max"
|
|
24050
|
+
},
|
|
24051
|
+
{
|
|
24052
|
+
"kind": "field",
|
|
24053
|
+
"name": "gap",
|
|
24054
|
+
"privacy": "public",
|
|
24055
|
+
"type": {
|
|
24056
|
+
"text": "number | undefined"
|
|
24057
|
+
},
|
|
24058
|
+
"attribute": "gap"
|
|
24059
|
+
},
|
|
24060
|
+
{
|
|
24061
|
+
"kind": "field",
|
|
24062
|
+
"name": "duration",
|
|
24063
|
+
"privacy": "public",
|
|
24064
|
+
"type": {
|
|
24065
|
+
"text": "number | undefined"
|
|
24066
|
+
},
|
|
24067
|
+
"attribute": "duration"
|
|
24068
|
+
},
|
|
24069
|
+
{
|
|
24070
|
+
"kind": "field",
|
|
24071
|
+
"name": "removeDelay",
|
|
24072
|
+
"privacy": "public",
|
|
24073
|
+
"type": {
|
|
24074
|
+
"text": "number | undefined"
|
|
24075
|
+
},
|
|
24076
|
+
"attribute": "remove-delay"
|
|
24077
|
+
},
|
|
24078
|
+
{
|
|
24079
|
+
"kind": "field",
|
|
24080
|
+
"name": "pauseOnPageIdle",
|
|
24081
|
+
"privacy": "public",
|
|
24082
|
+
"type": {
|
|
24083
|
+
"text": "boolean | undefined"
|
|
24084
|
+
},
|
|
24085
|
+
"attribute": "pause-on-page-idle"
|
|
24086
|
+
},
|
|
24087
|
+
{
|
|
24088
|
+
"kind": "field",
|
|
24089
|
+
"name": "translations",
|
|
24090
|
+
"privacy": "public",
|
|
24091
|
+
"type": {
|
|
24092
|
+
"text": "Partial<NotificationTranslations> | undefined"
|
|
24093
|
+
}
|
|
24094
|
+
},
|
|
24095
|
+
{
|
|
24096
|
+
"kind": "field",
|
|
24097
|
+
"name": "notify",
|
|
24098
|
+
"privacy": "private",
|
|
24099
|
+
"readonly": true
|
|
24100
|
+
},
|
|
24101
|
+
{
|
|
24102
|
+
"kind": "field",
|
|
24103
|
+
"name": "ctrl",
|
|
24104
|
+
"privacy": "private",
|
|
24105
|
+
"readonly": true,
|
|
24106
|
+
"default": "new MachineController<NotificationSchema>(this, notificationMachine, () => this.machineProps())"
|
|
24107
|
+
},
|
|
24108
|
+
{
|
|
24109
|
+
"kind": "method",
|
|
24110
|
+
"name": "machineProps",
|
|
24111
|
+
"privacy": "private",
|
|
24112
|
+
"return": {
|
|
24113
|
+
"type": {
|
|
24114
|
+
"text": "Partial<NotificationSchema['props']>"
|
|
24115
|
+
}
|
|
24116
|
+
}
|
|
24117
|
+
},
|
|
24118
|
+
{
|
|
24119
|
+
"kind": "method",
|
|
24120
|
+
"name": "commands",
|
|
24121
|
+
"privacy": "private",
|
|
24122
|
+
"return": {
|
|
24123
|
+
"type": {
|
|
24124
|
+
"text": "NotificationApi"
|
|
24125
|
+
}
|
|
24126
|
+
},
|
|
24127
|
+
"description": "命令式入口共用的取法。机器要到进文档(hostConnected)才建:\n还没进文档就发通知是调用方的时序问题,明说好过把这条通知静默丢掉。"
|
|
24128
|
+
},
|
|
24129
|
+
{
|
|
24130
|
+
"kind": "method",
|
|
24131
|
+
"name": "create",
|
|
24132
|
+
"return": {
|
|
24133
|
+
"type": {
|
|
24134
|
+
"text": "string"
|
|
24135
|
+
}
|
|
24136
|
+
},
|
|
24137
|
+
"parameters": [
|
|
24138
|
+
{
|
|
24139
|
+
"name": "options",
|
|
24140
|
+
"default": "{}",
|
|
24141
|
+
"type": {
|
|
24142
|
+
"text": "NotificationOptions"
|
|
24143
|
+
}
|
|
24144
|
+
}
|
|
24145
|
+
],
|
|
24146
|
+
"description": "入队并返回 id;同 id 已存在则就地改写,位置不动(处理中转已完成走的就是这条)。"
|
|
24147
|
+
},
|
|
24148
|
+
{
|
|
24149
|
+
"kind": "method",
|
|
24150
|
+
"name": "updateItem",
|
|
24151
|
+
"return": {
|
|
24152
|
+
"type": {
|
|
24153
|
+
"text": "void"
|
|
24154
|
+
}
|
|
24155
|
+
},
|
|
24156
|
+
"parameters": [
|
|
24157
|
+
{
|
|
24158
|
+
"name": "id",
|
|
24159
|
+
"type": {
|
|
24160
|
+
"text": "string"
|
|
24161
|
+
}
|
|
24162
|
+
},
|
|
24163
|
+
{
|
|
24164
|
+
"name": "options",
|
|
24165
|
+
"type": {
|
|
24166
|
+
"text": "Partial<NotificationOptions>"
|
|
24167
|
+
}
|
|
24168
|
+
}
|
|
24169
|
+
],
|
|
24170
|
+
"description": "刻意不叫 `update`:那是 Lit 自己的渲染生命周期钩子,占用它会让宿主每次重渲\n都拐进这里来(还带着一个 changedProperties 当 id),组件当场不工作。\nVue 侧没有这层基类,composable 上仍叫 `update`。"
|
|
24171
|
+
},
|
|
24172
|
+
{
|
|
24173
|
+
"kind": "method",
|
|
24174
|
+
"name": "dismiss",
|
|
24175
|
+
"return": {
|
|
24176
|
+
"type": {
|
|
24177
|
+
"text": "void"
|
|
24178
|
+
}
|
|
24179
|
+
},
|
|
24180
|
+
"parameters": [
|
|
24181
|
+
{
|
|
24182
|
+
"name": "id",
|
|
24183
|
+
"type": {
|
|
24184
|
+
"text": "string"
|
|
24185
|
+
}
|
|
24186
|
+
}
|
|
24187
|
+
]
|
|
24188
|
+
},
|
|
24189
|
+
{
|
|
24190
|
+
"kind": "method",
|
|
24191
|
+
"name": "dismissAll",
|
|
24192
|
+
"return": {
|
|
24193
|
+
"type": {
|
|
24194
|
+
"text": "void"
|
|
24195
|
+
}
|
|
24196
|
+
}
|
|
24197
|
+
},
|
|
24198
|
+
{
|
|
24199
|
+
"kind": "field",
|
|
24200
|
+
"name": "visibleNotifications",
|
|
24201
|
+
"type": {
|
|
24202
|
+
"text": "ResolvedNotification[]"
|
|
24203
|
+
},
|
|
24204
|
+
"description": "max 之内、按加入先后排列的可见条目,已补齐默认值,可直接摊给 `<xh-notification-item>`。",
|
|
24205
|
+
"readonly": true
|
|
24206
|
+
},
|
|
24207
|
+
{
|
|
24208
|
+
"kind": "field",
|
|
24209
|
+
"name": "placements",
|
|
24210
|
+
"type": {
|
|
24211
|
+
"text": "NotificationPlacement[]"
|
|
24212
|
+
},
|
|
24213
|
+
"description": "当前有条目的位置,按九宫格固定顺序。",
|
|
24214
|
+
"readonly": true
|
|
24215
|
+
},
|
|
24216
|
+
{
|
|
24217
|
+
"kind": "field",
|
|
24218
|
+
"name": "count",
|
|
24219
|
+
"type": {
|
|
24220
|
+
"text": "number"
|
|
24221
|
+
},
|
|
24222
|
+
"readonly": true
|
|
24223
|
+
},
|
|
24224
|
+
{
|
|
24225
|
+
"kind": "method",
|
|
24226
|
+
"name": "getItemsByPlacement",
|
|
24227
|
+
"return": {
|
|
24228
|
+
"type": {
|
|
24229
|
+
"text": "ResolvedNotification[]"
|
|
24230
|
+
}
|
|
24231
|
+
},
|
|
24232
|
+
"parameters": [
|
|
24233
|
+
{
|
|
24234
|
+
"name": "placement",
|
|
24235
|
+
"type": {
|
|
24236
|
+
"text": "NotificationPlacement"
|
|
24237
|
+
}
|
|
24238
|
+
}
|
|
24239
|
+
]
|
|
24240
|
+
},
|
|
24241
|
+
{
|
|
24242
|
+
"kind": "field",
|
|
24243
|
+
"name": "onItemStatus",
|
|
24244
|
+
"privacy": "private",
|
|
24245
|
+
"readonly": true,
|
|
24246
|
+
"description": "单条通知走完退场会冒泡上来:记录该从队列里删掉了。\n认元素名而不是只认事件名——avatar 之类的部件也派 status-change,且完全可能就摆在通知内部。"
|
|
24247
|
+
},
|
|
24248
|
+
{
|
|
24249
|
+
"kind": "method",
|
|
24250
|
+
"name": "wire",
|
|
24251
|
+
"privacy": "protected",
|
|
24252
|
+
"return": {
|
|
24253
|
+
"type": {
|
|
24254
|
+
"text": "void"
|
|
24255
|
+
}
|
|
24256
|
+
}
|
|
24257
|
+
}
|
|
24258
|
+
],
|
|
24259
|
+
"events": [
|
|
24260
|
+
{
|
|
24261
|
+
"description": "队列变化;detail 为 `{ items: NotificationRecord[] }`",
|
|
24262
|
+
"name": "items-change",
|
|
24263
|
+
"type": {
|
|
24264
|
+
"text": "NotificationItemsChangeDetails"
|
|
24265
|
+
}
|
|
24266
|
+
}
|
|
24267
|
+
],
|
|
24268
|
+
"attributes": [
|
|
24269
|
+
{
|
|
24270
|
+
"type": {
|
|
24271
|
+
"text": "NotificationPlacement | undefined"
|
|
24272
|
+
},
|
|
24273
|
+
"description": "默认落位,默认 bottom-end",
|
|
24274
|
+
"name": "placement",
|
|
24275
|
+
"fieldName": "placement"
|
|
24276
|
+
},
|
|
24277
|
+
{
|
|
24278
|
+
"type": {
|
|
24279
|
+
"text": "number | undefined"
|
|
24280
|
+
},
|
|
24281
|
+
"description": "每个位置最多同时留几条,超出挤掉最旧的;不给即不限",
|
|
24282
|
+
"name": "max",
|
|
24283
|
+
"fieldName": "max"
|
|
24284
|
+
},
|
|
24285
|
+
{
|
|
24286
|
+
"type": {
|
|
24287
|
+
"text": "number | undefined"
|
|
24288
|
+
},
|
|
24289
|
+
"description": "同一摞内的间距(px),默认 16",
|
|
24290
|
+
"name": "gap",
|
|
24291
|
+
"fieldName": "gap"
|
|
24292
|
+
},
|
|
24293
|
+
{
|
|
24294
|
+
"type": {
|
|
24295
|
+
"text": "number | undefined"
|
|
24296
|
+
},
|
|
24297
|
+
"description": "单条没写 duration 时的默认停留毫秒",
|
|
24298
|
+
"name": "duration",
|
|
24299
|
+
"fieldName": "duration"
|
|
24300
|
+
},
|
|
24301
|
+
{
|
|
24302
|
+
"type": {
|
|
24303
|
+
"text": "number | undefined"
|
|
24304
|
+
},
|
|
24305
|
+
"description": "单条没写 remove-delay 时的默认退场窗口毫秒",
|
|
24306
|
+
"name": "remove-delay",
|
|
24307
|
+
"fieldName": "removeDelay"
|
|
24308
|
+
},
|
|
24309
|
+
{
|
|
24310
|
+
"type": {
|
|
24311
|
+
"text": "boolean | undefined"
|
|
24312
|
+
},
|
|
24313
|
+
"description": "页面切到后台时按住计时,逐条下发",
|
|
24314
|
+
"name": "pause-on-page-idle",
|
|
24315
|
+
"fieldName": "pauseOnPageIdle"
|
|
24316
|
+
}
|
|
24317
|
+
],
|
|
24318
|
+
"superclass": {
|
|
24319
|
+
"name": "XhElement",
|
|
24320
|
+
"module": "/src/element-base"
|
|
24321
|
+
},
|
|
24322
|
+
"tagName": "xh-notification",
|
|
24323
|
+
"customElement": true,
|
|
24324
|
+
"cssProperties": [
|
|
24325
|
+
{
|
|
24326
|
+
"name": "--xh-notification-action-bg"
|
|
24327
|
+
},
|
|
24328
|
+
{
|
|
24329
|
+
"name": "--xh-notification-action-bg-active"
|
|
24330
|
+
},
|
|
24331
|
+
{
|
|
24332
|
+
"name": "--xh-notification-action-bg-hover"
|
|
24333
|
+
},
|
|
24334
|
+
{
|
|
24335
|
+
"name": "--xh-notification-action-border"
|
|
24336
|
+
},
|
|
24337
|
+
{
|
|
24338
|
+
"name": "--xh-notification-action-fg"
|
|
24339
|
+
},
|
|
24340
|
+
{
|
|
24341
|
+
"name": "--xh-notification-action-font-weight"
|
|
24342
|
+
},
|
|
24343
|
+
{
|
|
24344
|
+
"name": "--xh-notification-action-h"
|
|
24345
|
+
},
|
|
24346
|
+
{
|
|
24347
|
+
"name": "--xh-notification-action-px"
|
|
24348
|
+
},
|
|
24349
|
+
{
|
|
24350
|
+
"name": "--xh-notification-action-radius"
|
|
24351
|
+
},
|
|
24352
|
+
{
|
|
24353
|
+
"name": "--xh-notification-bg"
|
|
24354
|
+
},
|
|
24355
|
+
{
|
|
24356
|
+
"name": "--xh-notification-border"
|
|
24357
|
+
},
|
|
24358
|
+
{
|
|
24359
|
+
"name": "--xh-notification-close-bg-active"
|
|
24360
|
+
},
|
|
24361
|
+
{
|
|
24362
|
+
"name": "--xh-notification-close-bg-hover"
|
|
24363
|
+
},
|
|
24364
|
+
{
|
|
24365
|
+
"name": "--xh-notification-close-fg"
|
|
24366
|
+
},
|
|
24367
|
+
{
|
|
24368
|
+
"name": "--xh-notification-close-fg-hover"
|
|
24369
|
+
},
|
|
24370
|
+
{
|
|
24371
|
+
"name": "--xh-notification-close-inset"
|
|
24372
|
+
},
|
|
24373
|
+
{
|
|
24374
|
+
"name": "--xh-notification-close-radius"
|
|
24375
|
+
},
|
|
24376
|
+
{
|
|
24377
|
+
"name": "--xh-notification-close-size"
|
|
24378
|
+
},
|
|
24379
|
+
{
|
|
24380
|
+
"name": "--xh-notification-description-fg"
|
|
24381
|
+
},
|
|
24382
|
+
{
|
|
24383
|
+
"name": "--xh-notification-description-font-size"
|
|
24384
|
+
},
|
|
24385
|
+
{
|
|
24386
|
+
"name": "--xh-notification-fg"
|
|
24387
|
+
},
|
|
24388
|
+
{
|
|
24389
|
+
"name": "--xh-notification-font-size"
|
|
24390
|
+
},
|
|
24391
|
+
{
|
|
24392
|
+
"name": "--xh-notification-gap"
|
|
24393
|
+
},
|
|
24394
|
+
{
|
|
24395
|
+
"name": "--xh-notification-icon-size"
|
|
24396
|
+
},
|
|
24397
|
+
{
|
|
24398
|
+
"name": "--xh-notification-indicator-fg"
|
|
24399
|
+
},
|
|
24400
|
+
{
|
|
24401
|
+
"name": "--xh-notification-indicator-size"
|
|
24402
|
+
},
|
|
24403
|
+
{
|
|
24404
|
+
"name": "--xh-notification-inset"
|
|
24405
|
+
},
|
|
24406
|
+
{
|
|
24407
|
+
"name": "--xh-notification-layer"
|
|
24408
|
+
},
|
|
24409
|
+
{
|
|
24410
|
+
"name": "--xh-notification-leading"
|
|
24411
|
+
},
|
|
24412
|
+
{
|
|
24413
|
+
"name": "--xh-notification-px"
|
|
24414
|
+
},
|
|
24415
|
+
{
|
|
24416
|
+
"name": "--xh-notification-py"
|
|
24417
|
+
},
|
|
24418
|
+
{
|
|
24419
|
+
"name": "--xh-notification-radius"
|
|
24420
|
+
},
|
|
24421
|
+
{
|
|
24422
|
+
"name": "--xh-notification-row-gap"
|
|
24423
|
+
},
|
|
24424
|
+
{
|
|
24425
|
+
"name": "--xh-notification-shadow"
|
|
24426
|
+
},
|
|
24427
|
+
{
|
|
24428
|
+
"name": "--xh-notification-title-fg"
|
|
24429
|
+
},
|
|
24430
|
+
{
|
|
24431
|
+
"name": "--xh-notification-title-font-size"
|
|
24432
|
+
},
|
|
24433
|
+
{
|
|
24434
|
+
"name": "--xh-notification-title-font-weight"
|
|
24435
|
+
},
|
|
24436
|
+
{
|
|
24437
|
+
"name": "--xh-notification-title-leading"
|
|
24438
|
+
},
|
|
24439
|
+
{
|
|
24440
|
+
"name": "--xh-notification-w"
|
|
24441
|
+
}
|
|
24442
|
+
]
|
|
24443
|
+
},
|
|
24444
|
+
{
|
|
24445
|
+
"kind": "class",
|
|
24446
|
+
"description": "`<xh-notification-item>` —— 单条通知卡片:作者写 item/item-indicator/item-title/\nitem-description/item-action-trigger/item-close-trigger 角色节点,\n元素跑生命周期机器并把 connect 产出打上去。\n\nitem 承载 role 与 aria-live:默认 status + polite(排队等读屏的空隙),\ntype=\"error\" 换成 alert + assertive(打断当前朗读)。指针停在卡片上、\n或焦点落进卡片内部都会把倒计时按住,离开才接着走剩下的那一段。\n\n退场窗口走完只把卡片收起、不删节点:作者写在里面的内容归作者,\n什么时候把这条从队列里删掉是 `<xh-notification>` 的事(它收本元素冒泡上去的 status-change)。",
|
|
24447
|
+
"name": "XhNotificationItemElement",
|
|
24448
|
+
"cssParts": [
|
|
24449
|
+
{
|
|
24450
|
+
"description": "role=status(error 时 alert)的卡片,承载 data-type / data-tone / data-state / data-paused",
|
|
24451
|
+
"name": "item"
|
|
24452
|
+
},
|
|
24453
|
+
{
|
|
24454
|
+
"description": "类型指示符;留空即由皮肤按 data-type 画一枚兜底字形",
|
|
24455
|
+
"name": "item-indicator"
|
|
24456
|
+
},
|
|
24457
|
+
{
|
|
24458
|
+
"description": "标题,aria-labelledby 的目标",
|
|
24459
|
+
"name": "item-title"
|
|
24460
|
+
},
|
|
24461
|
+
{
|
|
24462
|
+
"description": "补充说明,aria-describedby 的目标",
|
|
24463
|
+
"name": "item-description"
|
|
24464
|
+
},
|
|
24465
|
+
{
|
|
24466
|
+
"description": "操作按钮:先发 action 再进入退场",
|
|
24467
|
+
"name": "item-action-trigger"
|
|
24468
|
+
},
|
|
24469
|
+
{
|
|
24470
|
+
"description": "关闭按钮;closable=false 时转原生 disabled 并收起",
|
|
24471
|
+
"name": "item-close-trigger"
|
|
24472
|
+
}
|
|
24473
|
+
],
|
|
24474
|
+
"members": [
|
|
24475
|
+
{
|
|
24476
|
+
"kind": "field",
|
|
24477
|
+
"name": "partContract",
|
|
24478
|
+
"static": true,
|
|
24479
|
+
"default": "{ anatomy: notificationAnatomy, meta: { component: 'notification', requiredParts: ['item'] } }",
|
|
24480
|
+
"type": {
|
|
24481
|
+
"text": "object"
|
|
24482
|
+
}
|
|
24483
|
+
},
|
|
24484
|
+
{
|
|
24485
|
+
"kind": "field",
|
|
24486
|
+
"name": "itemId",
|
|
24487
|
+
"privacy": "public",
|
|
24488
|
+
"type": {
|
|
24489
|
+
"text": "string | undefined"
|
|
24490
|
+
},
|
|
24491
|
+
"attribute": "id"
|
|
24492
|
+
},
|
|
24493
|
+
{
|
|
24494
|
+
"kind": "field",
|
|
24495
|
+
"name": "titleText",
|
|
24496
|
+
"privacy": "public",
|
|
24497
|
+
"type": {
|
|
24498
|
+
"text": "string | undefined"
|
|
24499
|
+
},
|
|
24500
|
+
"attribute": "title"
|
|
24501
|
+
},
|
|
24502
|
+
{
|
|
24503
|
+
"kind": "field",
|
|
24504
|
+
"name": "description",
|
|
24505
|
+
"privacy": "public",
|
|
24506
|
+
"type": {
|
|
24507
|
+
"text": "string | undefined"
|
|
24508
|
+
},
|
|
24509
|
+
"attribute": "description"
|
|
24510
|
+
},
|
|
24511
|
+
{
|
|
24512
|
+
"kind": "field",
|
|
24513
|
+
"name": "type",
|
|
24514
|
+
"privacy": "public",
|
|
24515
|
+
"type": {
|
|
24516
|
+
"text": "NotificationType | undefined"
|
|
24517
|
+
},
|
|
24518
|
+
"attribute": "type"
|
|
24519
|
+
},
|
|
24520
|
+
{
|
|
24521
|
+
"kind": "field",
|
|
24522
|
+
"name": "duration",
|
|
24523
|
+
"privacy": "public",
|
|
24524
|
+
"type": {
|
|
24525
|
+
"text": "number | undefined"
|
|
24526
|
+
},
|
|
24527
|
+
"attribute": "duration"
|
|
24528
|
+
},
|
|
24529
|
+
{
|
|
24530
|
+
"kind": "field",
|
|
24531
|
+
"name": "removeDelay",
|
|
24532
|
+
"privacy": "public",
|
|
24533
|
+
"type": {
|
|
24534
|
+
"text": "number | undefined"
|
|
24535
|
+
},
|
|
24536
|
+
"attribute": "remove-delay"
|
|
24537
|
+
},
|
|
24538
|
+
{
|
|
24539
|
+
"kind": "field",
|
|
24540
|
+
"name": "closable",
|
|
24541
|
+
"privacy": "public",
|
|
24542
|
+
"type": {
|
|
24543
|
+
"text": "boolean | undefined"
|
|
24544
|
+
},
|
|
24545
|
+
"attribute": "closable"
|
|
24546
|
+
},
|
|
24547
|
+
{
|
|
24548
|
+
"kind": "field",
|
|
24549
|
+
"name": "pauseOnPageIdle",
|
|
24550
|
+
"privacy": "public",
|
|
24551
|
+
"type": {
|
|
24552
|
+
"text": "boolean | undefined"
|
|
24553
|
+
},
|
|
24554
|
+
"attribute": "pause-on-page-idle"
|
|
24555
|
+
},
|
|
24556
|
+
{
|
|
24557
|
+
"kind": "field",
|
|
24558
|
+
"name": "translations",
|
|
24559
|
+
"privacy": "public",
|
|
24560
|
+
"type": {
|
|
24561
|
+
"text": "Partial<NotificationTranslations> | undefined"
|
|
24562
|
+
}
|
|
24563
|
+
},
|
|
24564
|
+
{
|
|
24565
|
+
"kind": "field",
|
|
24566
|
+
"name": "notifyStatus",
|
|
24567
|
+
"privacy": "private",
|
|
24568
|
+
"readonly": true
|
|
24569
|
+
},
|
|
24570
|
+
{
|
|
24571
|
+
"kind": "field",
|
|
24572
|
+
"name": "notifyAction",
|
|
24573
|
+
"privacy": "private",
|
|
24574
|
+
"readonly": true
|
|
24575
|
+
},
|
|
24576
|
+
{
|
|
24577
|
+
"kind": "field",
|
|
24578
|
+
"name": "ctrl",
|
|
24579
|
+
"privacy": "private",
|
|
24580
|
+
"readonly": true,
|
|
24581
|
+
"default": "new MachineController<ToastSchema>(this, toastMachine, () => this.machineProps(), { configName: 'notification' })"
|
|
24582
|
+
},
|
|
24583
|
+
{
|
|
24584
|
+
"kind": "method",
|
|
24585
|
+
"name": "machineProps",
|
|
24586
|
+
"privacy": "private",
|
|
24587
|
+
"return": {
|
|
24588
|
+
"type": {
|
|
24589
|
+
"text": "Partial<ToastSchema['props']>"
|
|
24590
|
+
}
|
|
24591
|
+
}
|
|
24592
|
+
},
|
|
24593
|
+
{
|
|
24594
|
+
"kind": "field",
|
|
24595
|
+
"name": "authorOwnsText",
|
|
24596
|
+
"privacy": "private",
|
|
24597
|
+
"readonly": true,
|
|
24598
|
+
"default": "new WeakMap<HTMLElement, boolean>()",
|
|
24599
|
+
"description": "这个部件的文字归不归作者:头一回见到它时定案,之后不再改口。"
|
|
24600
|
+
},
|
|
24601
|
+
{
|
|
24602
|
+
"kind": "method",
|
|
24603
|
+
"name": "fillText",
|
|
24604
|
+
"privacy": "private",
|
|
24605
|
+
"return": {
|
|
24606
|
+
"type": {
|
|
24607
|
+
"text": "void"
|
|
24608
|
+
}
|
|
24609
|
+
},
|
|
24610
|
+
"parameters": [
|
|
24611
|
+
{
|
|
24612
|
+
"name": "el",
|
|
24613
|
+
"type": {
|
|
24614
|
+
"text": "HTMLElement | null"
|
|
24615
|
+
}
|
|
24616
|
+
},
|
|
24617
|
+
{
|
|
24618
|
+
"name": "text",
|
|
24619
|
+
"type": {
|
|
24620
|
+
"text": "string | undefined"
|
|
24621
|
+
}
|
|
24622
|
+
}
|
|
24623
|
+
],
|
|
24624
|
+
"description": "作者没往部件里写内容时,用 props 上的文案填进去。\n\n归属只判一次:判完本轮就会把文字写进去,再回读分不清是作者写的还是自己写的,\n从那以后 title 属性改了也再刷不动(Vue 侧是响应式渲染,会跟着改,两侧就此分叉)。"
|
|
24625
|
+
},
|
|
24626
|
+
{
|
|
24627
|
+
"kind": "method",
|
|
24628
|
+
"name": "wire",
|
|
24629
|
+
"privacy": "protected",
|
|
24630
|
+
"return": {
|
|
24631
|
+
"type": {
|
|
24632
|
+
"text": "void"
|
|
24633
|
+
}
|
|
24634
|
+
}
|
|
24635
|
+
}
|
|
24636
|
+
],
|
|
24637
|
+
"events": [
|
|
24638
|
+
{
|
|
24639
|
+
"description": "生命周期落位;detail 为 `{ id: string, status: 'dismissing'|'unmounted' }`",
|
|
24640
|
+
"name": "status-change",
|
|
24641
|
+
"type": {
|
|
24642
|
+
"text": "ToastStatusChangeDetails"
|
|
24643
|
+
}
|
|
24644
|
+
},
|
|
24645
|
+
{
|
|
24646
|
+
"description": "操作按钮被按下;detail 为 `{ id: string }`",
|
|
24647
|
+
"name": "action",
|
|
24648
|
+
"type": {
|
|
24649
|
+
"text": "ToastActionDetails"
|
|
24650
|
+
}
|
|
24651
|
+
}
|
|
24652
|
+
],
|
|
24653
|
+
"attributes": [
|
|
24654
|
+
{
|
|
24655
|
+
"type": {
|
|
24656
|
+
"text": "string | undefined"
|
|
24657
|
+
},
|
|
24658
|
+
"description": "队列身份,`<xh-notification>` 按它寻址;不给就用实例自己的 scope id",
|
|
24659
|
+
"name": "id",
|
|
24660
|
+
"fieldName": "itemId"
|
|
24661
|
+
},
|
|
24662
|
+
{
|
|
24663
|
+
"type": {
|
|
24664
|
+
"text": "string | undefined"
|
|
24665
|
+
},
|
|
24666
|
+
"description": "标题文案;作者没在 item-title 部件里写内容时由元素填入",
|
|
24667
|
+
"name": "title",
|
|
24668
|
+
"fieldName": "titleText"
|
|
24669
|
+
},
|
|
24670
|
+
{
|
|
24671
|
+
"type": {
|
|
24672
|
+
"text": "string | undefined"
|
|
24673
|
+
},
|
|
24674
|
+
"description": "补充说明;作者没在 item-description 部件里写内容时由元素填入",
|
|
24675
|
+
"name": "description",
|
|
24676
|
+
"fieldName": "description"
|
|
24677
|
+
},
|
|
24678
|
+
{
|
|
24679
|
+
"type": {
|
|
24680
|
+
"text": "NotificationType | undefined"
|
|
24681
|
+
},
|
|
24682
|
+
"description": "语气,默认 info;loading 不自动消失",
|
|
24683
|
+
"name": "type",
|
|
24684
|
+
"fieldName": "type"
|
|
24685
|
+
},
|
|
24686
|
+
{
|
|
24687
|
+
"type": {
|
|
24688
|
+
"text": "number | undefined"
|
|
24689
|
+
},
|
|
24690
|
+
"description": "停留毫秒,默认 5000;<=0 即关掉自动消失",
|
|
24691
|
+
"name": "duration",
|
|
24692
|
+
"fieldName": "duration"
|
|
24693
|
+
},
|
|
24694
|
+
{
|
|
24695
|
+
"type": {
|
|
24696
|
+
"text": "number | undefined"
|
|
24697
|
+
},
|
|
24698
|
+
"description": "退场窗口毫秒,默认 200,留给退场动画",
|
|
24699
|
+
"name": "remove-delay",
|
|
24700
|
+
"fieldName": "removeDelay"
|
|
24701
|
+
},
|
|
24702
|
+
{
|
|
24703
|
+
"type": {
|
|
24704
|
+
"text": "boolean | undefined"
|
|
24705
|
+
},
|
|
24706
|
+
"description": "是否给可用的关闭按钮,默认 true;写 closable=\"false\" 关掉",
|
|
24707
|
+
"name": "closable",
|
|
24708
|
+
"fieldName": "closable"
|
|
24709
|
+
},
|
|
24710
|
+
{
|
|
24711
|
+
"type": {
|
|
24712
|
+
"text": "boolean | undefined"
|
|
24713
|
+
},
|
|
24714
|
+
"description": "页面切到后台时按住计时,默认关",
|
|
24715
|
+
"name": "pause-on-page-idle",
|
|
24716
|
+
"fieldName": "pauseOnPageIdle"
|
|
24717
|
+
}
|
|
24718
|
+
],
|
|
24719
|
+
"superclass": {
|
|
24720
|
+
"name": "XhElement",
|
|
24721
|
+
"module": "/src/element-base"
|
|
24722
|
+
},
|
|
24723
|
+
"tagName": "xh-notification-item",
|
|
24724
|
+
"customElement": true
|
|
24725
|
+
}
|
|
24726
|
+
],
|
|
24727
|
+
"exports": [
|
|
24728
|
+
{
|
|
24729
|
+
"kind": "js",
|
|
24730
|
+
"name": "XhNotificationElement",
|
|
24731
|
+
"declaration": {
|
|
24732
|
+
"name": "XhNotificationElement",
|
|
24733
|
+
"module": "src/elements/notification.ts"
|
|
24734
|
+
}
|
|
24735
|
+
},
|
|
24736
|
+
{
|
|
24737
|
+
"kind": "js",
|
|
24738
|
+
"name": "XhNotificationItemElement",
|
|
24739
|
+
"declaration": {
|
|
24740
|
+
"name": "XhNotificationItemElement",
|
|
24741
|
+
"module": "src/elements/notification.ts"
|
|
24742
|
+
}
|
|
24743
|
+
}
|
|
24744
|
+
]
|
|
24745
|
+
},
|
|
23595
24746
|
{
|
|
23596
24747
|
"kind": "javascript-module",
|
|
23597
24748
|
"path": "src/elements/number-animation.ts",
|
|
@@ -24546,7 +25697,7 @@
|
|
|
24546
25697
|
"name": "item"
|
|
24547
25698
|
},
|
|
24548
25699
|
{
|
|
24549
|
-
"description": "
|
|
25700
|
+
"description": "折进去那几页的入口,须自带 side 属性(start / end);承载 data-side 与 aria-expanded",
|
|
24550
25701
|
"name": "ellipsis"
|
|
24551
25702
|
}
|
|
24552
25703
|
],
|
|
@@ -24578,6 +25729,24 @@
|
|
|
24578
25729
|
},
|
|
24579
25730
|
"attribute": "page-size"
|
|
24580
25731
|
},
|
|
25732
|
+
{
|
|
25733
|
+
"kind": "field",
|
|
25734
|
+
"name": "defaultPageSize",
|
|
25735
|
+
"privacy": "public",
|
|
25736
|
+
"type": {
|
|
25737
|
+
"text": "number | undefined"
|
|
25738
|
+
},
|
|
25739
|
+
"attribute": "default-page-size"
|
|
25740
|
+
},
|
|
25741
|
+
{
|
|
25742
|
+
"kind": "field",
|
|
25743
|
+
"name": "pageSizeOptions",
|
|
25744
|
+
"privacy": "public",
|
|
25745
|
+
"type": {
|
|
25746
|
+
"text": "number[]"
|
|
25747
|
+
},
|
|
25748
|
+
"description": "可选的每页条数档位,默认 [10, 20, 50, 100]"
|
|
25749
|
+
},
|
|
24581
25750
|
{
|
|
24582
25751
|
"kind": "field",
|
|
24583
25752
|
"name": "page",
|
|
@@ -24640,18 +25809,164 @@
|
|
|
24640
25809
|
"text": "Partial<PaginationTranslations> | undefined"
|
|
24641
25810
|
}
|
|
24642
25811
|
},
|
|
25812
|
+
{
|
|
25813
|
+
"kind": "field",
|
|
25814
|
+
"name": "placement",
|
|
25815
|
+
"privacy": "public",
|
|
25816
|
+
"type": {
|
|
25817
|
+
"text": "Placement | undefined"
|
|
25818
|
+
},
|
|
25819
|
+
"attribute": "placement"
|
|
25820
|
+
},
|
|
25821
|
+
{
|
|
25822
|
+
"kind": "field",
|
|
25823
|
+
"name": "offset",
|
|
25824
|
+
"privacy": "public",
|
|
25825
|
+
"type": {
|
|
25826
|
+
"text": "number | undefined"
|
|
25827
|
+
},
|
|
25828
|
+
"attribute": "offset"
|
|
25829
|
+
},
|
|
25830
|
+
{
|
|
25831
|
+
"kind": "field",
|
|
25832
|
+
"name": "openDelay",
|
|
25833
|
+
"privacy": "public",
|
|
25834
|
+
"type": {
|
|
25835
|
+
"text": "number | undefined"
|
|
25836
|
+
},
|
|
25837
|
+
"attribute": "open-delay"
|
|
25838
|
+
},
|
|
25839
|
+
{
|
|
25840
|
+
"kind": "field",
|
|
25841
|
+
"name": "closeDelay",
|
|
25842
|
+
"privacy": "public",
|
|
25843
|
+
"type": {
|
|
25844
|
+
"text": "number | undefined"
|
|
25845
|
+
},
|
|
25846
|
+
"attribute": "close-delay"
|
|
25847
|
+
},
|
|
25848
|
+
{
|
|
25849
|
+
"kind": "field",
|
|
25850
|
+
"name": "idGen",
|
|
25851
|
+
"type": {
|
|
25852
|
+
"text": "IdGenerator"
|
|
25853
|
+
},
|
|
25854
|
+
"privacy": "private",
|
|
25855
|
+
"readonly": true
|
|
25856
|
+
},
|
|
25857
|
+
{
|
|
25858
|
+
"kind": "field",
|
|
25859
|
+
"name": "paginationScope",
|
|
25860
|
+
"privacy": "private",
|
|
25861
|
+
"readonly": true
|
|
25862
|
+
},
|
|
25863
|
+
{
|
|
25864
|
+
"kind": "field",
|
|
25865
|
+
"name": "positionEngine",
|
|
25866
|
+
"type": {
|
|
25867
|
+
"text": "PositionEnginePort"
|
|
25868
|
+
},
|
|
25869
|
+
"privacy": "private",
|
|
25870
|
+
"readonly": true
|
|
25871
|
+
},
|
|
25872
|
+
{
|
|
25873
|
+
"kind": "field",
|
|
25874
|
+
"name": "config",
|
|
25875
|
+
"type": {
|
|
25876
|
+
"text": "RuntimeConfig | null"
|
|
25877
|
+
},
|
|
25878
|
+
"privacy": "private",
|
|
25879
|
+
"default": "null"
|
|
25880
|
+
},
|
|
25881
|
+
{
|
|
25882
|
+
"kind": "field",
|
|
25883
|
+
"name": "exit",
|
|
25884
|
+
"type": {
|
|
25885
|
+
"text": "OverlayExit | null"
|
|
25886
|
+
},
|
|
25887
|
+
"privacy": "private",
|
|
25888
|
+
"default": "null",
|
|
25889
|
+
"description": "退场闸门:收起从跟着展开态走改成跟着 presence 走,退场动画播完才真收。"
|
|
25890
|
+
},
|
|
24643
25891
|
{
|
|
24644
25892
|
"kind": "field",
|
|
24645
25893
|
"name": "notify",
|
|
24646
25894
|
"privacy": "private",
|
|
24647
25895
|
"readonly": true
|
|
24648
25896
|
},
|
|
25897
|
+
{
|
|
25898
|
+
"kind": "field",
|
|
25899
|
+
"name": "notifyPageSize",
|
|
25900
|
+
"privacy": "private",
|
|
25901
|
+
"readonly": true
|
|
25902
|
+
},
|
|
24649
25903
|
{
|
|
24650
25904
|
"kind": "field",
|
|
24651
25905
|
"name": "ctrl",
|
|
24652
25906
|
"privacy": "private",
|
|
24653
25907
|
"readonly": true,
|
|
24654
|
-
"default": "new MachineController<PaginationSchema>(this, paginationMachine, () => this.machineProps())"
|
|
25908
|
+
"default": "new MachineController<PaginationSchema>( this, paginationMachine, () => this.machineProps(), { scope: this.paginationScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
25909
|
+
},
|
|
25910
|
+
{
|
|
25911
|
+
"kind": "field",
|
|
25912
|
+
"name": "bars",
|
|
25913
|
+
"privacy": "private",
|
|
25914
|
+
"readonly": true,
|
|
25915
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
25916
|
+
"description": "折叠页码列表的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
25917
|
+
},
|
|
25918
|
+
{
|
|
25919
|
+
"kind": "method",
|
|
25920
|
+
"name": "ensureConfig",
|
|
25921
|
+
"privacy": "private",
|
|
25922
|
+
"return": {
|
|
25923
|
+
"type": {
|
|
25924
|
+
"text": "void"
|
|
25925
|
+
}
|
|
25926
|
+
}
|
|
25927
|
+
},
|
|
25928
|
+
{
|
|
25929
|
+
"kind": "method",
|
|
25930
|
+
"name": "openEllipsisEl",
|
|
25931
|
+
"privacy": "private",
|
|
25932
|
+
"return": {
|
|
25933
|
+
"type": {
|
|
25934
|
+
"text": "HTMLElement | null"
|
|
25935
|
+
}
|
|
25936
|
+
},
|
|
25937
|
+
"parameters": [
|
|
25938
|
+
{
|
|
25939
|
+
"name": "side",
|
|
25940
|
+
"type": {
|
|
25941
|
+
"text": "PaginationEllipsisSide | null"
|
|
25942
|
+
}
|
|
25943
|
+
}
|
|
25944
|
+
],
|
|
25945
|
+
"description": "此刻摊开的是哪个省略位的节点——它是定位锚点。"
|
|
25946
|
+
},
|
|
25947
|
+
{
|
|
25948
|
+
"kind": "field",
|
|
25949
|
+
"name": "registerLayer",
|
|
25950
|
+
"privacy": "private",
|
|
25951
|
+
"readonly": true
|
|
25952
|
+
},
|
|
25953
|
+
{
|
|
25954
|
+
"kind": "method",
|
|
25955
|
+
"name": "injectRefs",
|
|
25956
|
+
"privacy": "private",
|
|
25957
|
+
"return": {
|
|
25958
|
+
"type": {
|
|
25959
|
+
"text": "void"
|
|
25960
|
+
}
|
|
25961
|
+
},
|
|
25962
|
+
"parameters": [
|
|
25963
|
+
{
|
|
25964
|
+
"name": "svc",
|
|
25965
|
+
"type": {
|
|
25966
|
+
"text": "Service<PaginationSchema>"
|
|
25967
|
+
}
|
|
25968
|
+
}
|
|
25969
|
+
]
|
|
24655
25970
|
},
|
|
24656
25971
|
{
|
|
24657
25972
|
"kind": "method",
|
|
@@ -24681,6 +25996,10 @@
|
|
|
24681
25996
|
"type": {
|
|
24682
25997
|
"text": "PaginationPageChangeDetails"
|
|
24683
25998
|
}
|
|
25999
|
+
},
|
|
26000
|
+
{
|
|
26001
|
+
"description": "每页条数变化;detail 为 `{ pageSize: number, page: number }`,页码是换算后的",
|
|
26002
|
+
"name": "page-size-change"
|
|
24684
26003
|
}
|
|
24685
26004
|
],
|
|
24686
26005
|
"attributes": [
|
|
@@ -24747,6 +26066,46 @@
|
|
|
24747
26066
|
"description": "尺寸",
|
|
24748
26067
|
"name": "size",
|
|
24749
26068
|
"fieldName": "size"
|
|
26069
|
+
},
|
|
26070
|
+
{
|
|
26071
|
+
"type": {
|
|
26072
|
+
"text": "Placement | undefined"
|
|
26073
|
+
},
|
|
26074
|
+
"description": "省略位摊开后的落点,默认 bottom-start",
|
|
26075
|
+
"name": "placement",
|
|
26076
|
+
"fieldName": "placement"
|
|
26077
|
+
},
|
|
26078
|
+
{
|
|
26079
|
+
"type": {
|
|
26080
|
+
"text": "number | undefined"
|
|
26081
|
+
},
|
|
26082
|
+
"description": "浮层与省略位之间的间距(px),默认 8",
|
|
26083
|
+
"name": "offset",
|
|
26084
|
+
"fieldName": "offset"
|
|
26085
|
+
},
|
|
26086
|
+
{
|
|
26087
|
+
"type": {
|
|
26088
|
+
"text": "number | undefined"
|
|
26089
|
+
},
|
|
26090
|
+
"description": "指针停在省略位多久才摊开(ms),默认 200",
|
|
26091
|
+
"name": "open-delay",
|
|
26092
|
+
"fieldName": "openDelay"
|
|
26093
|
+
},
|
|
26094
|
+
{
|
|
26095
|
+
"type": {
|
|
26096
|
+
"text": "number | undefined"
|
|
26097
|
+
},
|
|
26098
|
+
"description": "指针离开后多久收起(ms),默认 300",
|
|
26099
|
+
"name": "close-delay",
|
|
26100
|
+
"fieldName": "closeDelay"
|
|
26101
|
+
},
|
|
26102
|
+
{
|
|
26103
|
+
"type": {
|
|
26104
|
+
"text": "number | undefined"
|
|
26105
|
+
},
|
|
26106
|
+
"description": "非受控初始每页条数,默认 10",
|
|
26107
|
+
"name": "default-page-size",
|
|
26108
|
+
"fieldName": "defaultPageSize"
|
|
24750
26109
|
}
|
|
24751
26110
|
],
|
|
24752
26111
|
"superclass": {
|
|
@@ -24756,6 +26115,27 @@
|
|
|
24756
26115
|
"tagName": "xh-pagination",
|
|
24757
26116
|
"customElement": true,
|
|
24758
26117
|
"cssProperties": [
|
|
26118
|
+
{
|
|
26119
|
+
"name": "--xh-pagination-content-bg"
|
|
26120
|
+
},
|
|
26121
|
+
{
|
|
26122
|
+
"name": "--xh-pagination-content-border"
|
|
26123
|
+
},
|
|
26124
|
+
{
|
|
26125
|
+
"name": "--xh-pagination-content-max-h"
|
|
26126
|
+
},
|
|
26127
|
+
{
|
|
26128
|
+
"name": "--xh-pagination-content-max-w"
|
|
26129
|
+
},
|
|
26130
|
+
{
|
|
26131
|
+
"name": "--xh-pagination-content-p"
|
|
26132
|
+
},
|
|
26133
|
+
{
|
|
26134
|
+
"name": "--xh-pagination-content-radius"
|
|
26135
|
+
},
|
|
26136
|
+
{
|
|
26137
|
+
"name": "--xh-pagination-content-shadow"
|
|
26138
|
+
},
|
|
24759
26139
|
{
|
|
24760
26140
|
"name": "--xh-pagination-ellipsis-fg"
|
|
24761
26141
|
},
|
|
@@ -24765,6 +26145,9 @@
|
|
|
24765
26145
|
{
|
|
24766
26146
|
"name": "--xh-pagination-gap"
|
|
24767
26147
|
},
|
|
26148
|
+
{
|
|
26149
|
+
"name": "--xh-pagination-icon-size"
|
|
26150
|
+
},
|
|
24768
26151
|
{
|
|
24769
26152
|
"name": "--xh-pagination-item-bg"
|
|
24770
26153
|
},
|
|
@@ -24812,6 +26195,18 @@
|
|
|
24812
26195
|
},
|
|
24813
26196
|
{
|
|
24814
26197
|
"name": "--xh-pagination-item-radius"
|
|
26198
|
+
},
|
|
26199
|
+
{
|
|
26200
|
+
"name": "--xh-pagination-layer"
|
|
26201
|
+
},
|
|
26202
|
+
{
|
|
26203
|
+
"name": "--xh-pagination-page-size-bg"
|
|
26204
|
+
},
|
|
26205
|
+
{
|
|
26206
|
+
"name": "--xh-pagination-page-size-border"
|
|
26207
|
+
},
|
|
26208
|
+
{
|
|
26209
|
+
"name": "--xh-pagination-page-size-border-hover"
|
|
24815
26210
|
}
|
|
24816
26211
|
]
|
|
24817
26212
|
}
|
|
@@ -26093,6 +27488,9 @@
|
|
|
26093
27488
|
"tagName": "xh-popconfirm",
|
|
26094
27489
|
"customElement": true,
|
|
26095
27490
|
"cssProperties": [
|
|
27491
|
+
{
|
|
27492
|
+
"name": "--xh-popconfirm-action-radius"
|
|
27493
|
+
},
|
|
26096
27494
|
{
|
|
26097
27495
|
"name": "--xh-popconfirm-bg"
|
|
26098
27496
|
},
|
|
@@ -26105,6 +27503,9 @@
|
|
|
26105
27503
|
{
|
|
26106
27504
|
"name": "--xh-popconfirm-cancel-fg"
|
|
26107
27505
|
},
|
|
27506
|
+
{
|
|
27507
|
+
"name": "--xh-popconfirm-cancel-trigger-px"
|
|
27508
|
+
},
|
|
26108
27509
|
{
|
|
26109
27510
|
"name": "--xh-popconfirm-confirm-bg"
|
|
26110
27511
|
},
|
|
@@ -26349,6 +27750,14 @@
|
|
|
26349
27750
|
"readonly": true,
|
|
26350
27751
|
"default": "new MachineController<PopoverSchema>( this, popoverMachine, () => this.machineProps(), { scope: this.popoverScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
26351
27752
|
},
|
|
27753
|
+
{
|
|
27754
|
+
"kind": "field",
|
|
27755
|
+
"name": "bars",
|
|
27756
|
+
"privacy": "private",
|
|
27757
|
+
"readonly": true,
|
|
27758
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
27759
|
+
"description": "面板内容的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
27760
|
+
},
|
|
26352
27761
|
{
|
|
26353
27762
|
"kind": "method",
|
|
26354
27763
|
"name": "machineProps",
|
|
@@ -26848,6 +28257,14 @@
|
|
|
26848
28257
|
"readonly": true,
|
|
26849
28258
|
"default": "new MachineController<ListboxSchema>( this, listboxMachine, () => this.listboxProps(), { scope: this.popselectScope }, )"
|
|
26850
28259
|
},
|
|
28260
|
+
{
|
|
28261
|
+
"kind": "field",
|
|
28262
|
+
"name": "bars",
|
|
28263
|
+
"privacy": "private",
|
|
28264
|
+
"readonly": true,
|
|
28265
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), })",
|
|
28266
|
+
"description": "候选列表的自绘条:与 content 同级挂在已经 fixed 的 positioner 上"
|
|
28267
|
+
},
|
|
26851
28268
|
{
|
|
26852
28269
|
"kind": "field",
|
|
26853
28270
|
"name": "declaredDisabled",
|
|
@@ -27162,6 +28579,9 @@
|
|
|
27162
28579
|
{
|
|
27163
28580
|
"name": "--xh-popselect-content-fg"
|
|
27164
28581
|
},
|
|
28582
|
+
{
|
|
28583
|
+
"name": "--xh-popselect-content-gap"
|
|
28584
|
+
},
|
|
27165
28585
|
{
|
|
27166
28586
|
"name": "--xh-popselect-content-max-h"
|
|
27167
28587
|
},
|
|
@@ -27529,6 +28949,9 @@
|
|
|
27529
28949
|
{
|
|
27530
28950
|
"name": "--xh-progress-range"
|
|
27531
28951
|
},
|
|
28952
|
+
{
|
|
28953
|
+
"name": "--xh-progress-range-radius"
|
|
28954
|
+
},
|
|
27532
28955
|
{
|
|
27533
28956
|
"name": "--xh-progress-size"
|
|
27534
28957
|
},
|
|
@@ -27537,6 +28960,9 @@
|
|
|
27537
28960
|
},
|
|
27538
28961
|
{
|
|
27539
28962
|
"name": "--xh-progress-track"
|
|
28963
|
+
},
|
|
28964
|
+
{
|
|
28965
|
+
"name": "--xh-progress-track-radius"
|
|
27540
28966
|
}
|
|
27541
28967
|
]
|
|
27542
28968
|
}
|
|
@@ -28203,6 +29629,9 @@
|
|
|
28203
29629
|
{
|
|
28204
29630
|
"name": "--xh-radio-group-indicator-dot"
|
|
28205
29631
|
},
|
|
29632
|
+
{
|
|
29633
|
+
"name": "--xh-radio-group-indicator-radius"
|
|
29634
|
+
},
|
|
28206
29635
|
{
|
|
28207
29636
|
"name": "--xh-radio-group-indicator-size"
|
|
28208
29637
|
},
|
|
@@ -29031,7 +30460,7 @@
|
|
|
29031
30460
|
"type": {
|
|
29032
30461
|
"text": "ScrollbarType | undefined"
|
|
29033
30462
|
},
|
|
29034
|
-
"description": "滚动条露面的时机,默认 hover",
|
|
30463
|
+
"description": "滚动条露面的时机,默认 scroll-hover",
|
|
29035
30464
|
"name": "type",
|
|
29036
30465
|
"fieldName": "type"
|
|
29037
30466
|
},
|
|
@@ -29039,7 +30468,7 @@
|
|
|
29039
30468
|
"type": {
|
|
29040
30469
|
"text": "number | undefined"
|
|
29041
30470
|
},
|
|
29042
|
-
"description": "收起前的等待毫秒(type 为 scroll / hover 时生效),默认 600",
|
|
30471
|
+
"description": "收起前的等待毫秒(type 为 scroll / hover / scroll-hover 时生效),默认 600",
|
|
29043
30472
|
"name": "hide-delay",
|
|
29044
30473
|
"fieldName": "hideDelay"
|
|
29045
30474
|
},
|
|
@@ -29383,7 +30812,7 @@
|
|
|
29383
30812
|
"type": {
|
|
29384
30813
|
"text": "ScrollbarType | undefined"
|
|
29385
30814
|
},
|
|
29386
|
-
"description": "露面的时机,默认 hover",
|
|
30815
|
+
"description": "露面的时机,默认 scroll-hover",
|
|
29387
30816
|
"name": "type",
|
|
29388
30817
|
"fieldName": "type"
|
|
29389
30818
|
},
|
|
@@ -29391,7 +30820,7 @@
|
|
|
29391
30820
|
"type": {
|
|
29392
30821
|
"text": "number | undefined"
|
|
29393
30822
|
},
|
|
29394
|
-
"description": "收起前的等待毫秒(type 为 scroll / hover 时生效),默认 600",
|
|
30823
|
+
"description": "收起前的等待毫秒(type 为 scroll / hover / scroll-hover 时生效),默认 600",
|
|
29395
30824
|
"name": "hide-delay",
|
|
29396
30825
|
"fieldName": "hideDelay"
|
|
29397
30826
|
},
|
|
@@ -30800,9 +32229,6 @@
|
|
|
30800
32229
|
{
|
|
30801
32230
|
"name": "--xh-select-control-h"
|
|
30802
32231
|
},
|
|
30803
|
-
{
|
|
30804
|
-
"name": "--xh-select-control-max-w"
|
|
30805
|
-
},
|
|
30806
32232
|
{
|
|
30807
32233
|
"name": "--xh-select-control-min-w"
|
|
30808
32234
|
},
|
|
@@ -30905,6 +32331,9 @@
|
|
|
30905
32331
|
{
|
|
30906
32332
|
"name": "--xh-select-layer"
|
|
30907
32333
|
},
|
|
32334
|
+
{
|
|
32335
|
+
"name": "--xh-select-list-gap"
|
|
32336
|
+
},
|
|
30908
32337
|
{
|
|
30909
32338
|
"name": "--xh-select-placeholder-fg"
|
|
30910
32339
|
},
|
|
@@ -31486,12 +32915,27 @@
|
|
|
31486
32915
|
{
|
|
31487
32916
|
"name": "--xh-side-nav-gap"
|
|
31488
32917
|
},
|
|
32918
|
+
{
|
|
32919
|
+
"name": "--xh-side-nav-group-label-px"
|
|
32920
|
+
},
|
|
32921
|
+
{
|
|
32922
|
+
"name": "--xh-side-nav-group-label-py"
|
|
32923
|
+
},
|
|
31489
32924
|
{
|
|
31490
32925
|
"name": "--xh-side-nav-icon-size"
|
|
31491
32926
|
},
|
|
31492
32927
|
{
|
|
31493
32928
|
"name": "--xh-side-nav-indent"
|
|
31494
32929
|
},
|
|
32930
|
+
{
|
|
32931
|
+
"name": "--xh-side-nav-link-gap"
|
|
32932
|
+
},
|
|
32933
|
+
{
|
|
32934
|
+
"name": "--xh-side-nav-link-px"
|
|
32935
|
+
},
|
|
32936
|
+
{
|
|
32937
|
+
"name": "--xh-side-nav-link-radius"
|
|
32938
|
+
},
|
|
31495
32939
|
{
|
|
31496
32940
|
"name": "--xh-side-nav-p"
|
|
31497
32941
|
},
|
|
@@ -32585,6 +34029,9 @@
|
|
|
32585
34029
|
{
|
|
32586
34030
|
"name": "--xh-slider-mark-label-gap"
|
|
32587
34031
|
},
|
|
34032
|
+
{
|
|
34033
|
+
"name": "--xh-slider-mark-radius"
|
|
34034
|
+
},
|
|
32588
34035
|
{
|
|
32589
34036
|
"name": "--xh-slider-mark-size"
|
|
32590
34037
|
},
|
|
@@ -32675,6 +34122,15 @@
|
|
|
32675
34122
|
"static": true,
|
|
32676
34123
|
"default": "{ anatomy: spaceAnatomy, meta: spaceMeta }"
|
|
32677
34124
|
},
|
|
34125
|
+
{
|
|
34126
|
+
"kind": "field",
|
|
34127
|
+
"name": "orientation",
|
|
34128
|
+
"privacy": "public",
|
|
34129
|
+
"type": {
|
|
34130
|
+
"text": "SpaceProps['orientation'] | undefined"
|
|
34131
|
+
},
|
|
34132
|
+
"attribute": "orientation"
|
|
34133
|
+
},
|
|
32678
34134
|
{
|
|
32679
34135
|
"kind": "field",
|
|
32680
34136
|
"name": "direction",
|
|
@@ -32743,9 +34199,17 @@
|
|
|
32743
34199
|
"attributes": [
|
|
32744
34200
|
{
|
|
32745
34201
|
"type": {
|
|
32746
|
-
"text": "SpaceProps['
|
|
34202
|
+
"text": "SpaceProps['orientation'] | undefined"
|
|
32747
34203
|
},
|
|
32748
34204
|
"description": "排布方向,缺省 horizontal",
|
|
34205
|
+
"name": "orientation",
|
|
34206
|
+
"fieldName": "orientation"
|
|
34207
|
+
},
|
|
34208
|
+
{
|
|
34209
|
+
"type": {
|
|
34210
|
+
"text": "SpaceProps['direction'] | undefined"
|
|
34211
|
+
},
|
|
34212
|
+
"description": "排布方向的旧写法,两个都写时以 orientation 为准",
|
|
32749
34213
|
"name": "direction",
|
|
32750
34214
|
"fieldName": "direction"
|
|
32751
34215
|
},
|
|
@@ -32797,21 +34261,6 @@
|
|
|
32797
34261
|
"tagName": "xh-space",
|
|
32798
34262
|
"customElement": true,
|
|
32799
34263
|
"cssProperties": [
|
|
32800
|
-
{
|
|
32801
|
-
"name": "--xh-space-1"
|
|
32802
|
-
},
|
|
32803
|
-
{
|
|
32804
|
-
"name": "--xh-space-2"
|
|
32805
|
-
},
|
|
32806
|
-
{
|
|
32807
|
-
"name": "--xh-space-3"
|
|
32808
|
-
},
|
|
32809
|
-
{
|
|
32810
|
-
"name": "--xh-space-4"
|
|
32811
|
-
},
|
|
32812
|
-
{
|
|
32813
|
-
"name": "--xh-space-6"
|
|
32814
|
-
},
|
|
32815
34264
|
{
|
|
32816
34265
|
"name": "--xh-space-gap"
|
|
32817
34266
|
}
|
|
@@ -33779,6 +35228,9 @@
|
|
|
33779
35228
|
{
|
|
33780
35229
|
"name": "--xh-steps-indicator-font-size"
|
|
33781
35230
|
},
|
|
35231
|
+
{
|
|
35232
|
+
"name": "--xh-steps-indicator-radius"
|
|
35233
|
+
},
|
|
33782
35234
|
{
|
|
33783
35235
|
"name": "--xh-steps-indicator-size"
|
|
33784
35236
|
},
|
|
@@ -33797,6 +35249,9 @@
|
|
|
33797
35249
|
{
|
|
33798
35250
|
"name": "--xh-steps-separator-min-length"
|
|
33799
35251
|
},
|
|
35252
|
+
{
|
|
35253
|
+
"name": "--xh-steps-separator-radius"
|
|
35254
|
+
},
|
|
33800
35255
|
{
|
|
33801
35256
|
"name": "--xh-steps-separator-thickness"
|
|
33802
35257
|
},
|
|
@@ -34143,9 +35598,15 @@
|
|
|
34143
35598
|
{
|
|
34144
35599
|
"name": "--xh-switch-loading-fg"
|
|
34145
35600
|
},
|
|
35601
|
+
{
|
|
35602
|
+
"name": "--xh-switch-radius"
|
|
35603
|
+
},
|
|
34146
35604
|
{
|
|
34147
35605
|
"name": "--xh-switch-thumb"
|
|
34148
35606
|
},
|
|
35607
|
+
{
|
|
35608
|
+
"name": "--xh-switch-thumb-radius"
|
|
35609
|
+
},
|
|
34149
35610
|
{
|
|
34150
35611
|
"name": "--xh-switch-thumb-shadow"
|
|
34151
35612
|
},
|
|
@@ -34325,6 +35786,50 @@
|
|
|
34325
35786
|
},
|
|
34326
35787
|
"attribute": "selection-mode"
|
|
34327
35788
|
},
|
|
35789
|
+
{
|
|
35790
|
+
"kind": "field",
|
|
35791
|
+
"name": "prefixColumns",
|
|
35792
|
+
"privacy": "public",
|
|
35793
|
+
"type": {
|
|
35794
|
+
"text": "TableColumnKind[]"
|
|
35795
|
+
},
|
|
35796
|
+
"description": "要哪几列前缀列,按给定顺序插在最前面"
|
|
35797
|
+
},
|
|
35798
|
+
{
|
|
35799
|
+
"kind": "field",
|
|
35800
|
+
"name": "columnPreference",
|
|
35801
|
+
"privacy": "public",
|
|
35802
|
+
"type": {
|
|
35803
|
+
"text": "TableColumnPreference"
|
|
35804
|
+
},
|
|
35805
|
+
"description": "列偏好(显隐/顺序/宽/冻结),给定即受控"
|
|
35806
|
+
},
|
|
35807
|
+
{
|
|
35808
|
+
"kind": "field",
|
|
35809
|
+
"name": "defaultColumnPreference",
|
|
35810
|
+
"privacy": "public",
|
|
35811
|
+
"type": {
|
|
35812
|
+
"text": "TableColumnPreference | undefined"
|
|
35813
|
+
}
|
|
35814
|
+
},
|
|
35815
|
+
{
|
|
35816
|
+
"kind": "field",
|
|
35817
|
+
"name": "page",
|
|
35818
|
+
"privacy": "public",
|
|
35819
|
+
"type": {
|
|
35820
|
+
"text": "number | undefined"
|
|
35821
|
+
},
|
|
35822
|
+
"attribute": "page"
|
|
35823
|
+
},
|
|
35824
|
+
{
|
|
35825
|
+
"kind": "field",
|
|
35826
|
+
"name": "pageSize",
|
|
35827
|
+
"privacy": "public",
|
|
35828
|
+
"type": {
|
|
35829
|
+
"text": "number | undefined"
|
|
35830
|
+
},
|
|
35831
|
+
"attribute": "page-size"
|
|
35832
|
+
},
|
|
34328
35833
|
{
|
|
34329
35834
|
"kind": "field",
|
|
34330
35835
|
"name": "loading",
|
|
@@ -34415,6 +35920,12 @@
|
|
|
34415
35920
|
},
|
|
34416
35921
|
"attribute": "size"
|
|
34417
35922
|
},
|
|
35923
|
+
{
|
|
35924
|
+
"kind": "field",
|
|
35925
|
+
"name": "notifyColumnPreference",
|
|
35926
|
+
"privacy": "private",
|
|
35927
|
+
"readonly": true
|
|
35928
|
+
},
|
|
34418
35929
|
{
|
|
34419
35930
|
"kind": "field",
|
|
34420
35931
|
"name": "notifySort",
|
|
@@ -34568,6 +36079,10 @@
|
|
|
34568
36079
|
"text": "TableSortChangeDetails"
|
|
34569
36080
|
}
|
|
34570
36081
|
},
|
|
36082
|
+
{
|
|
36083
|
+
"description": "列偏好变化;detail 为 `{ value: TableColumnPreference }`",
|
|
36084
|
+
"name": "column-preference-change"
|
|
36085
|
+
},
|
|
34571
36086
|
{
|
|
34572
36087
|
"description": "选中集合变化;detail 为 `{ value: string[] | 'all' }`",
|
|
34573
36088
|
"name": "selection-change",
|
|
@@ -34671,6 +36186,20 @@
|
|
|
34671
36186
|
"description": "密度:只换单元格的纵向内边距与字号,列宽不受影响",
|
|
34672
36187
|
"name": "size",
|
|
34673
36188
|
"fieldName": "size"
|
|
36189
|
+
},
|
|
36190
|
+
{
|
|
36191
|
+
"name": "page",
|
|
36192
|
+
"type": {
|
|
36193
|
+
"text": "number | undefined"
|
|
36194
|
+
},
|
|
36195
|
+
"fieldName": "page"
|
|
36196
|
+
},
|
|
36197
|
+
{
|
|
36198
|
+
"name": "page-size",
|
|
36199
|
+
"type": {
|
|
36200
|
+
"text": "number | undefined"
|
|
36201
|
+
},
|
|
36202
|
+
"fieldName": "pageSize"
|
|
34674
36203
|
}
|
|
34675
36204
|
],
|
|
34676
36205
|
"superclass": {
|
|
@@ -38207,6 +39736,9 @@
|
|
|
38207
39736
|
{
|
|
38208
39737
|
"name": "--xh-time-picker-preset-py"
|
|
38209
39738
|
},
|
|
39739
|
+
{
|
|
39740
|
+
"name": "--xh-time-picker-preset-radius"
|
|
39741
|
+
},
|
|
38210
39742
|
{
|
|
38211
39743
|
"name": "--xh-time-picker-presets-gap"
|
|
38212
39744
|
},
|
|
@@ -38576,9 +40108,21 @@
|
|
|
38576
40108
|
{
|
|
38577
40109
|
"name": "--xh-timeline-connector-min-length"
|
|
38578
40110
|
},
|
|
40111
|
+
{
|
|
40112
|
+
"name": "--xh-timeline-connector-radius"
|
|
40113
|
+
},
|
|
38579
40114
|
{
|
|
38580
40115
|
"name": "--xh-timeline-connector-thickness"
|
|
38581
40116
|
},
|
|
40117
|
+
{
|
|
40118
|
+
"name": "--xh-timeline-content-gap"
|
|
40119
|
+
},
|
|
40120
|
+
{
|
|
40121
|
+
"name": "--xh-timeline-content-pb"
|
|
40122
|
+
},
|
|
40123
|
+
{
|
|
40124
|
+
"name": "--xh-timeline-content-pt"
|
|
40125
|
+
},
|
|
38582
40126
|
{
|
|
38583
40127
|
"name": "--xh-timeline-description-fg"
|
|
38584
40128
|
},
|
|
@@ -38600,6 +40144,9 @@
|
|
|
38600
40144
|
{
|
|
38601
40145
|
"name": "--xh-timeline-indicator-font-size"
|
|
38602
40146
|
},
|
|
40147
|
+
{
|
|
40148
|
+
"name": "--xh-timeline-indicator-radius"
|
|
40149
|
+
},
|
|
38603
40150
|
{
|
|
38604
40151
|
"name": "--xh-timeline-indicator-size"
|
|
38605
40152
|
},
|
|
@@ -38986,7 +40533,7 @@
|
|
|
38986
40533
|
"declarations": [
|
|
38987
40534
|
{
|
|
38988
40535
|
"kind": "class",
|
|
38989
|
-
"description": "`<xh-toast>` —— Light-DOM 行为宿主:作者写 root/title/
|
|
40536
|
+
"description": "`<xh-toast>` —— Light-DOM 行为宿主:作者写 root/title/action-trigger/close-trigger\n角色节点,元素跑 toast 机器并把 connect 产出打上去。\n\nroot 承载 role 与 aria-live:默认 status + polite(排队等读屏的空隙),\ntype=\"error\" 换成 alert + assertive(打断当前朗读)。指针停在条子上、\n或焦点落进条子内部都会把倒计时按住,离开才接着走剩下的那一段。\n\n退场窗口走完只把 root 收起、不删节点:作者写在里面的内容归作者,\n什么时候把这条从队列里删掉是全局服务的事(它收本元素冒泡上去的 status-change)。",
|
|
38990
40537
|
"name": "XhToastElement",
|
|
38991
40538
|
"cssParts": [
|
|
38992
40539
|
{
|
|
@@ -38997,10 +40544,6 @@
|
|
|
38997
40544
|
"description": "标题,aria-labelledby 的目标",
|
|
38998
40545
|
"name": "title"
|
|
38999
40546
|
},
|
|
39000
|
-
{
|
|
39001
|
-
"description": "补充说明,aria-describedby 的目标",
|
|
39002
|
-
"name": "description"
|
|
39003
|
-
},
|
|
39004
40547
|
{
|
|
39005
40548
|
"description": "操作按钮:先发 action 再进入退场",
|
|
39006
40549
|
"name": "action-trigger"
|
|
@@ -39038,15 +40581,6 @@
|
|
|
39038
40581
|
},
|
|
39039
40582
|
"attribute": "title"
|
|
39040
40583
|
},
|
|
39041
|
-
{
|
|
39042
|
-
"kind": "field",
|
|
39043
|
-
"name": "description",
|
|
39044
|
-
"privacy": "public",
|
|
39045
|
-
"type": {
|
|
39046
|
-
"text": "string | undefined"
|
|
39047
|
-
},
|
|
39048
|
-
"attribute": "description"
|
|
39049
|
-
},
|
|
39050
40584
|
{
|
|
39051
40585
|
"kind": "field",
|
|
39052
40586
|
"name": "type",
|
|
@@ -39194,7 +40728,7 @@
|
|
|
39194
40728
|
"type": {
|
|
39195
40729
|
"text": "string | undefined"
|
|
39196
40730
|
},
|
|
39197
|
-
"description": "
|
|
40731
|
+
"description": "队列身份,全局服务按它寻址;不给就用实例自己的 scope id",
|
|
39198
40732
|
"name": "id",
|
|
39199
40733
|
"fieldName": "toastId"
|
|
39200
40734
|
},
|
|
@@ -39206,14 +40740,6 @@
|
|
|
39206
40740
|
"name": "title",
|
|
39207
40741
|
"fieldName": "titleText"
|
|
39208
40742
|
},
|
|
39209
|
-
{
|
|
39210
|
-
"type": {
|
|
39211
|
-
"text": "string | undefined"
|
|
39212
|
-
},
|
|
39213
|
-
"description": "补充说明;作者没在 description 部件里写内容时由元素填入",
|
|
39214
|
-
"name": "description",
|
|
39215
|
-
"fieldName": "description"
|
|
39216
|
-
},
|
|
39217
40743
|
{
|
|
39218
40744
|
"type": {
|
|
39219
40745
|
"text": "ToastType | undefined"
|
|
@@ -39262,12 +40788,6 @@
|
|
|
39262
40788
|
"tagName": "xh-toast",
|
|
39263
40789
|
"customElement": true,
|
|
39264
40790
|
"cssProperties": [
|
|
39265
|
-
{
|
|
39266
|
-
"name": "--xh-toast-accent"
|
|
39267
|
-
},
|
|
39268
|
-
{
|
|
39269
|
-
"name": "--xh-toast-accent-width"
|
|
39270
|
-
},
|
|
39271
40791
|
{
|
|
39272
40792
|
"name": "--xh-toast-action-bg"
|
|
39273
40793
|
},
|
|
@@ -39319,12 +40839,6 @@
|
|
|
39319
40839
|
{
|
|
39320
40840
|
"name": "--xh-toast-close-size"
|
|
39321
40841
|
},
|
|
39322
|
-
{
|
|
39323
|
-
"name": "--xh-toast-description-fg"
|
|
39324
|
-
},
|
|
39325
|
-
{
|
|
39326
|
-
"name": "--xh-toast-description-font-size"
|
|
39327
|
-
},
|
|
39328
40842
|
{
|
|
39329
40843
|
"name": "--xh-toast-fg"
|
|
39330
40844
|
},
|
|
@@ -39337,6 +40851,12 @@
|
|
|
39337
40851
|
{
|
|
39338
40852
|
"name": "--xh-toast-icon-size"
|
|
39339
40853
|
},
|
|
40854
|
+
{
|
|
40855
|
+
"name": "--xh-toast-inset"
|
|
40856
|
+
},
|
|
40857
|
+
{
|
|
40858
|
+
"name": "--xh-toast-layer"
|
|
40859
|
+
},
|
|
39340
40860
|
{
|
|
39341
40861
|
"name": "--xh-toast-leading"
|
|
39342
40862
|
},
|
|
@@ -39381,362 +40901,6 @@
|
|
|
39381
40901
|
}
|
|
39382
40902
|
]
|
|
39383
40903
|
},
|
|
39384
|
-
{
|
|
39385
|
-
"kind": "javascript-module",
|
|
39386
|
-
"path": "src/elements/toaster.ts",
|
|
39387
|
-
"declarations": [
|
|
39388
|
-
{
|
|
39389
|
-
"kind": "class",
|
|
39390
|
-
"description": "`<xh-toaster>` —— Light-DOM 行为宿主:作者写 root 与若干 group 角色节点,\n元素跑 toaster 机器并把 connect 产出打上去。每个 group 用 `placement` 属性声明自己是哪个位置,\n不写就落在 toaster 的 placement 上。\n\n单条通知的节点由作者按队列渲染(读 `visibleToasts` 或听 `toasts-change`),元素不替作者生成:\n生成节点就等于收走模板控制权,图标、进度条、i18n 文案都再塞不进来。\n每条渲染成一个 `<xh-toast>`,它走完退场会冒泡一条 status-change,本元素据此把记录删掉。",
|
|
39391
|
-
"name": "XhToasterElement",
|
|
39392
|
-
"cssParts": [
|
|
39393
|
-
{
|
|
39394
|
-
"description": "role=region 的地标容器,承载 data-count / data-empty",
|
|
39395
|
-
"name": "root"
|
|
39396
|
-
},
|
|
39397
|
-
{
|
|
39398
|
-
"description": "某一个位置上的那一摞,可自带 placement 属性;承载 data-placement / data-count / data-empty 与间距",
|
|
39399
|
-
"name": "group"
|
|
39400
|
-
}
|
|
39401
|
-
],
|
|
39402
|
-
"members": [
|
|
39403
|
-
{
|
|
39404
|
-
"kind": "field",
|
|
39405
|
-
"name": "partContract",
|
|
39406
|
-
"type": {
|
|
39407
|
-
"text": "object"
|
|
39408
|
-
},
|
|
39409
|
-
"static": true,
|
|
39410
|
-
"default": "{ anatomy: toasterAnatomy, meta: toasterMeta }"
|
|
39411
|
-
},
|
|
39412
|
-
{
|
|
39413
|
-
"kind": "field",
|
|
39414
|
-
"name": "toasts",
|
|
39415
|
-
"privacy": "public",
|
|
39416
|
-
"type": {
|
|
39417
|
-
"text": "ToastRecord[] | undefined"
|
|
39418
|
-
}
|
|
39419
|
-
},
|
|
39420
|
-
{
|
|
39421
|
-
"kind": "field",
|
|
39422
|
-
"name": "defaultToasts",
|
|
39423
|
-
"privacy": "public",
|
|
39424
|
-
"type": {
|
|
39425
|
-
"text": "ToastRecord[] | undefined"
|
|
39426
|
-
}
|
|
39427
|
-
},
|
|
39428
|
-
{
|
|
39429
|
-
"kind": "field",
|
|
39430
|
-
"name": "placement",
|
|
39431
|
-
"privacy": "public",
|
|
39432
|
-
"type": {
|
|
39433
|
-
"text": "ToastPlacement | undefined"
|
|
39434
|
-
},
|
|
39435
|
-
"attribute": "placement"
|
|
39436
|
-
},
|
|
39437
|
-
{
|
|
39438
|
-
"kind": "field",
|
|
39439
|
-
"name": "max",
|
|
39440
|
-
"privacy": "public",
|
|
39441
|
-
"type": {
|
|
39442
|
-
"text": "number | undefined"
|
|
39443
|
-
},
|
|
39444
|
-
"attribute": "max"
|
|
39445
|
-
},
|
|
39446
|
-
{
|
|
39447
|
-
"kind": "field",
|
|
39448
|
-
"name": "gap",
|
|
39449
|
-
"privacy": "public",
|
|
39450
|
-
"type": {
|
|
39451
|
-
"text": "number | undefined"
|
|
39452
|
-
},
|
|
39453
|
-
"attribute": "gap"
|
|
39454
|
-
},
|
|
39455
|
-
{
|
|
39456
|
-
"kind": "field",
|
|
39457
|
-
"name": "duration",
|
|
39458
|
-
"privacy": "public",
|
|
39459
|
-
"type": {
|
|
39460
|
-
"text": "number | undefined"
|
|
39461
|
-
},
|
|
39462
|
-
"attribute": "duration"
|
|
39463
|
-
},
|
|
39464
|
-
{
|
|
39465
|
-
"kind": "field",
|
|
39466
|
-
"name": "removeDelay",
|
|
39467
|
-
"privacy": "public",
|
|
39468
|
-
"type": {
|
|
39469
|
-
"text": "number | undefined"
|
|
39470
|
-
},
|
|
39471
|
-
"attribute": "remove-delay"
|
|
39472
|
-
},
|
|
39473
|
-
{
|
|
39474
|
-
"kind": "field",
|
|
39475
|
-
"name": "pauseOnPageIdle",
|
|
39476
|
-
"privacy": "public",
|
|
39477
|
-
"type": {
|
|
39478
|
-
"text": "boolean | undefined"
|
|
39479
|
-
},
|
|
39480
|
-
"attribute": "pause-on-page-idle"
|
|
39481
|
-
},
|
|
39482
|
-
{
|
|
39483
|
-
"kind": "field",
|
|
39484
|
-
"name": "translations",
|
|
39485
|
-
"privacy": "public",
|
|
39486
|
-
"type": {
|
|
39487
|
-
"text": "Partial<ToasterTranslations> | undefined"
|
|
39488
|
-
}
|
|
39489
|
-
},
|
|
39490
|
-
{
|
|
39491
|
-
"kind": "field",
|
|
39492
|
-
"name": "notify",
|
|
39493
|
-
"privacy": "private",
|
|
39494
|
-
"readonly": true
|
|
39495
|
-
},
|
|
39496
|
-
{
|
|
39497
|
-
"kind": "field",
|
|
39498
|
-
"name": "ctrl",
|
|
39499
|
-
"privacy": "private",
|
|
39500
|
-
"readonly": true,
|
|
39501
|
-
"default": "new MachineController<ToasterSchema>(this, toasterMachine, () => this.machineProps())"
|
|
39502
|
-
},
|
|
39503
|
-
{
|
|
39504
|
-
"kind": "method",
|
|
39505
|
-
"name": "machineProps",
|
|
39506
|
-
"privacy": "private",
|
|
39507
|
-
"return": {
|
|
39508
|
-
"type": {
|
|
39509
|
-
"text": "Partial<ToasterSchema['props']>"
|
|
39510
|
-
}
|
|
39511
|
-
}
|
|
39512
|
-
},
|
|
39513
|
-
{
|
|
39514
|
-
"kind": "method",
|
|
39515
|
-
"name": "commands",
|
|
39516
|
-
"privacy": "private",
|
|
39517
|
-
"return": {
|
|
39518
|
-
"type": {
|
|
39519
|
-
"text": "ToasterApi"
|
|
39520
|
-
}
|
|
39521
|
-
},
|
|
39522
|
-
"description": "命令式入口共用的取法。机器要到进文档(hostConnected)才建:\n还没进文档就发通知是调用方的时序问题,明说好过把这条通知静默丢掉。"
|
|
39523
|
-
},
|
|
39524
|
-
{
|
|
39525
|
-
"kind": "method",
|
|
39526
|
-
"name": "create",
|
|
39527
|
-
"return": {
|
|
39528
|
-
"type": {
|
|
39529
|
-
"text": "string"
|
|
39530
|
-
}
|
|
39531
|
-
},
|
|
39532
|
-
"parameters": [
|
|
39533
|
-
{
|
|
39534
|
-
"name": "options",
|
|
39535
|
-
"default": "{}",
|
|
39536
|
-
"type": {
|
|
39537
|
-
"text": "ToastOptions"
|
|
39538
|
-
}
|
|
39539
|
-
}
|
|
39540
|
-
],
|
|
39541
|
-
"description": "入队并返回 id;同 id 已存在则就地改写,位置不动(loading 转 success 走的就是这条)。"
|
|
39542
|
-
},
|
|
39543
|
-
{
|
|
39544
|
-
"kind": "method",
|
|
39545
|
-
"name": "updateToast",
|
|
39546
|
-
"return": {
|
|
39547
|
-
"type": {
|
|
39548
|
-
"text": "void"
|
|
39549
|
-
}
|
|
39550
|
-
},
|
|
39551
|
-
"parameters": [
|
|
39552
|
-
{
|
|
39553
|
-
"name": "id",
|
|
39554
|
-
"type": {
|
|
39555
|
-
"text": "string"
|
|
39556
|
-
}
|
|
39557
|
-
},
|
|
39558
|
-
{
|
|
39559
|
-
"name": "options",
|
|
39560
|
-
"type": {
|
|
39561
|
-
"text": "Partial<ToastOptions>"
|
|
39562
|
-
}
|
|
39563
|
-
}
|
|
39564
|
-
],
|
|
39565
|
-
"description": "刻意不叫 `update`:那是 Lit 自己的渲染生命周期钩子,占用它会让宿主每次重渲\n都拐进这里来(还带着一个 changedProperties 当 id),组件当场不工作。\nVue 侧没有这层基类,composable 上仍叫 `update`。"
|
|
39566
|
-
},
|
|
39567
|
-
{
|
|
39568
|
-
"kind": "method",
|
|
39569
|
-
"name": "dismiss",
|
|
39570
|
-
"return": {
|
|
39571
|
-
"type": {
|
|
39572
|
-
"text": "void"
|
|
39573
|
-
}
|
|
39574
|
-
},
|
|
39575
|
-
"parameters": [
|
|
39576
|
-
{
|
|
39577
|
-
"name": "id",
|
|
39578
|
-
"type": {
|
|
39579
|
-
"text": "string"
|
|
39580
|
-
}
|
|
39581
|
-
}
|
|
39582
|
-
]
|
|
39583
|
-
},
|
|
39584
|
-
{
|
|
39585
|
-
"kind": "method",
|
|
39586
|
-
"name": "dismissAll",
|
|
39587
|
-
"return": {
|
|
39588
|
-
"type": {
|
|
39589
|
-
"text": "void"
|
|
39590
|
-
}
|
|
39591
|
-
}
|
|
39592
|
-
},
|
|
39593
|
-
{
|
|
39594
|
-
"kind": "field",
|
|
39595
|
-
"name": "visibleToasts",
|
|
39596
|
-
"type": {
|
|
39597
|
-
"text": "ResolvedToast[]"
|
|
39598
|
-
},
|
|
39599
|
-
"description": "max 之内、按加入先后排列的可见条目,已补齐默认值,可直接摊给 `<xh-toast>`。",
|
|
39600
|
-
"readonly": true
|
|
39601
|
-
},
|
|
39602
|
-
{
|
|
39603
|
-
"kind": "field",
|
|
39604
|
-
"name": "placements",
|
|
39605
|
-
"type": {
|
|
39606
|
-
"text": "ToastPlacement[]"
|
|
39607
|
-
},
|
|
39608
|
-
"description": "当前有条目的位置,按九宫格固定顺序。",
|
|
39609
|
-
"readonly": true
|
|
39610
|
-
},
|
|
39611
|
-
{
|
|
39612
|
-
"kind": "field",
|
|
39613
|
-
"name": "count",
|
|
39614
|
-
"type": {
|
|
39615
|
-
"text": "number"
|
|
39616
|
-
},
|
|
39617
|
-
"readonly": true
|
|
39618
|
-
},
|
|
39619
|
-
{
|
|
39620
|
-
"kind": "method",
|
|
39621
|
-
"name": "getToastsByPlacement",
|
|
39622
|
-
"return": {
|
|
39623
|
-
"type": {
|
|
39624
|
-
"text": "ResolvedToast[]"
|
|
39625
|
-
}
|
|
39626
|
-
},
|
|
39627
|
-
"parameters": [
|
|
39628
|
-
{
|
|
39629
|
-
"name": "placement",
|
|
39630
|
-
"type": {
|
|
39631
|
-
"text": "ToastPlacement"
|
|
39632
|
-
}
|
|
39633
|
-
}
|
|
39634
|
-
]
|
|
39635
|
-
},
|
|
39636
|
-
{
|
|
39637
|
-
"kind": "field",
|
|
39638
|
-
"name": "onToastStatus",
|
|
39639
|
-
"privacy": "private",
|
|
39640
|
-
"readonly": true,
|
|
39641
|
-
"description": "单条通知走完退场会冒泡上来:记录该从队列里删掉了。\n认元素名而不是只认事件名——avatar 之类的部件也派 status-change,且完全可能就摆在通知内部。"
|
|
39642
|
-
},
|
|
39643
|
-
{
|
|
39644
|
-
"kind": "method",
|
|
39645
|
-
"name": "wire",
|
|
39646
|
-
"privacy": "protected",
|
|
39647
|
-
"return": {
|
|
39648
|
-
"type": {
|
|
39649
|
-
"text": "void"
|
|
39650
|
-
}
|
|
39651
|
-
}
|
|
39652
|
-
}
|
|
39653
|
-
],
|
|
39654
|
-
"events": [
|
|
39655
|
-
{
|
|
39656
|
-
"description": "队列变化;detail 为 `{ toasts: ToastRecord[] }`",
|
|
39657
|
-
"name": "toasts-change",
|
|
39658
|
-
"type": {
|
|
39659
|
-
"text": "ToasterToastsChangeDetails"
|
|
39660
|
-
}
|
|
39661
|
-
}
|
|
39662
|
-
],
|
|
39663
|
-
"attributes": [
|
|
39664
|
-
{
|
|
39665
|
-
"type": {
|
|
39666
|
-
"text": "ToastPlacement | undefined"
|
|
39667
|
-
},
|
|
39668
|
-
"description": "默认落位,默认 bottom-end",
|
|
39669
|
-
"name": "placement",
|
|
39670
|
-
"fieldName": "placement"
|
|
39671
|
-
},
|
|
39672
|
-
{
|
|
39673
|
-
"type": {
|
|
39674
|
-
"text": "number | undefined"
|
|
39675
|
-
},
|
|
39676
|
-
"description": "每个位置最多同时留几条,超出挤掉最旧的;不给即不限",
|
|
39677
|
-
"name": "max",
|
|
39678
|
-
"fieldName": "max"
|
|
39679
|
-
},
|
|
39680
|
-
{
|
|
39681
|
-
"type": {
|
|
39682
|
-
"text": "number | undefined"
|
|
39683
|
-
},
|
|
39684
|
-
"description": "同一摞内的间距(px),默认 16",
|
|
39685
|
-
"name": "gap",
|
|
39686
|
-
"fieldName": "gap"
|
|
39687
|
-
},
|
|
39688
|
-
{
|
|
39689
|
-
"type": {
|
|
39690
|
-
"text": "number | undefined"
|
|
39691
|
-
},
|
|
39692
|
-
"description": "单条没写 duration 时的默认停留毫秒",
|
|
39693
|
-
"name": "duration",
|
|
39694
|
-
"fieldName": "duration"
|
|
39695
|
-
},
|
|
39696
|
-
{
|
|
39697
|
-
"type": {
|
|
39698
|
-
"text": "number | undefined"
|
|
39699
|
-
},
|
|
39700
|
-
"description": "单条没写 remove-delay 时的默认退场窗口毫秒",
|
|
39701
|
-
"name": "remove-delay",
|
|
39702
|
-
"fieldName": "removeDelay"
|
|
39703
|
-
},
|
|
39704
|
-
{
|
|
39705
|
-
"type": {
|
|
39706
|
-
"text": "boolean | undefined"
|
|
39707
|
-
},
|
|
39708
|
-
"description": "页面切到后台时按住计时,逐条下发",
|
|
39709
|
-
"name": "pause-on-page-idle",
|
|
39710
|
-
"fieldName": "pauseOnPageIdle"
|
|
39711
|
-
}
|
|
39712
|
-
],
|
|
39713
|
-
"superclass": {
|
|
39714
|
-
"name": "XhElement",
|
|
39715
|
-
"module": "/src/element-base"
|
|
39716
|
-
},
|
|
39717
|
-
"tagName": "xh-toaster",
|
|
39718
|
-
"customElement": true,
|
|
39719
|
-
"cssProperties": [
|
|
39720
|
-
{
|
|
39721
|
-
"name": "--xh-toaster-inset"
|
|
39722
|
-
},
|
|
39723
|
-
{
|
|
39724
|
-
"name": "--xh-toaster-layer"
|
|
39725
|
-
}
|
|
39726
|
-
]
|
|
39727
|
-
}
|
|
39728
|
-
],
|
|
39729
|
-
"exports": [
|
|
39730
|
-
{
|
|
39731
|
-
"kind": "js",
|
|
39732
|
-
"name": "XhToasterElement",
|
|
39733
|
-
"declaration": {
|
|
39734
|
-
"name": "XhToasterElement",
|
|
39735
|
-
"module": "src/elements/toaster.ts"
|
|
39736
|
-
}
|
|
39737
|
-
}
|
|
39738
|
-
]
|
|
39739
|
-
},
|
|
39740
40904
|
{
|
|
39741
40905
|
"kind": "javascript-module",
|
|
39742
40906
|
"path": "src/elements/toggle-group.ts",
|
|
@@ -39818,6 +40982,15 @@
|
|
|
39818
40982
|
},
|
|
39819
40983
|
"attribute": "disallow-empty"
|
|
39820
40984
|
},
|
|
40985
|
+
{
|
|
40986
|
+
"kind": "field",
|
|
40987
|
+
"name": "size",
|
|
40988
|
+
"privacy": "public",
|
|
40989
|
+
"type": {
|
|
40990
|
+
"text": "Size | undefined"
|
|
40991
|
+
},
|
|
40992
|
+
"attribute": "size"
|
|
40993
|
+
},
|
|
39821
40994
|
{
|
|
39822
40995
|
"kind": "field",
|
|
39823
40996
|
"name": "orientation",
|
|
@@ -39999,6 +41172,14 @@
|
|
|
39999
41172
|
"name": "disallow-empty",
|
|
40000
41173
|
"fieldName": "disallowEmpty"
|
|
40001
41174
|
},
|
|
41175
|
+
{
|
|
41176
|
+
"type": {
|
|
41177
|
+
"text": "Size | undefined"
|
|
41178
|
+
},
|
|
41179
|
+
"description": "尺寸",
|
|
41180
|
+
"name": "size",
|
|
41181
|
+
"fieldName": "size"
|
|
41182
|
+
},
|
|
40002
41183
|
{
|
|
40003
41184
|
"type": {
|
|
40004
41185
|
"text": "Orientation | undefined"
|
|
@@ -41490,6 +42671,9 @@
|
|
|
41490
42671
|
"tagName": "xh-tour",
|
|
41491
42672
|
"customElement": true,
|
|
41492
42673
|
"cssProperties": [
|
|
42674
|
+
{
|
|
42675
|
+
"name": "--xh-tour-action-radius"
|
|
42676
|
+
},
|
|
41493
42677
|
{
|
|
41494
42678
|
"name": "--xh-tour-arrow-size"
|
|
41495
42679
|
},
|
|
@@ -41547,6 +42731,9 @@
|
|
|
41547
42731
|
{
|
|
41548
42732
|
"name": "--xh-tour-positioner-layer"
|
|
41549
42733
|
},
|
|
42734
|
+
{
|
|
42735
|
+
"name": "--xh-tour-positioner-padding"
|
|
42736
|
+
},
|
|
41550
42737
|
{
|
|
41551
42738
|
"name": "--xh-tour-progress-fg"
|
|
41552
42739
|
},
|
|
@@ -41565,6 +42752,9 @@
|
|
|
41565
42752
|
{
|
|
41566
42753
|
"name": "--xh-tour-shadow"
|
|
41567
42754
|
},
|
|
42755
|
+
{
|
|
42756
|
+
"name": "--xh-tour-skip-trigger-px"
|
|
42757
|
+
},
|
|
41568
42758
|
{
|
|
41569
42759
|
"name": "--xh-tour-spotlight-layer"
|
|
41570
42760
|
},
|
|
@@ -41995,6 +43185,9 @@
|
|
|
41995
43185
|
{
|
|
41996
43186
|
"name": "--xh-transfer-item-radius"
|
|
41997
43187
|
},
|
|
43188
|
+
{
|
|
43189
|
+
"name": "--xh-transfer-list-gap"
|
|
43190
|
+
},
|
|
41998
43191
|
{
|
|
41999
43192
|
"name": "--xh-transfer-list-h"
|
|
42000
43193
|
},
|
|
@@ -42476,6 +43669,14 @@
|
|
|
42476
43669
|
"readonly": true,
|
|
42477
43670
|
"default": "new MachineController<TreeSelectSchema>( this, treeSelectMachine, () => this.machineProps(), { scope: this.treeSelectScope, onBuilt: svc => this.injectRefs(svc) }, )"
|
|
42478
43671
|
},
|
|
43672
|
+
{
|
|
43673
|
+
"kind": "field",
|
|
43674
|
+
"name": "bars",
|
|
43675
|
+
"privacy": "private",
|
|
43676
|
+
"readonly": true,
|
|
43677
|
+
"default": "new ScrollbarsController(this, { shell: () => this.getPart('positioner'), scrollable: () => this.getPart('content'), axes: ['vertical', 'horizontal'], props: () => ({ dir: this.direction }), })",
|
|
43678
|
+
"description": "树的自绘条:与 content 同级挂在已经 fixed 的 positioner 上。\n两条轴都摆——深层节点靠缩进往行末推,横向溢出与纵向一样是常态;\n横条的正负按排版方向算,而组件不读计算样式,把作者写的那份显式交过去。"
|
|
43679
|
+
},
|
|
42479
43680
|
{
|
|
42480
43681
|
"kind": "method",
|
|
42481
43682
|
"name": "machineProps",
|
|
@@ -42808,6 +44009,12 @@
|
|
|
42808
44009
|
{
|
|
42809
44010
|
"name": "--xh-tree-select-action-size"
|
|
42810
44011
|
},
|
|
44012
|
+
{
|
|
44013
|
+
"name": "--xh-tree-select-branch-content-gap"
|
|
44014
|
+
},
|
|
44015
|
+
{
|
|
44016
|
+
"name": "--xh-tree-select-branch-gap"
|
|
44017
|
+
},
|
|
42811
44018
|
{
|
|
42812
44019
|
"name": "--xh-tree-select-branch-indicator-fg"
|
|
42813
44020
|
},
|
|
@@ -42943,6 +44150,9 @@
|
|
|
42943
44150
|
{
|
|
42944
44151
|
"name": "--xh-tree-select-row-selected-font-weight"
|
|
42945
44152
|
},
|
|
44153
|
+
{
|
|
44154
|
+
"name": "--xh-tree-select-tree-gap"
|
|
44155
|
+
},
|
|
42946
44156
|
{
|
|
42947
44157
|
"name": "--xh-tree-select-trigger-fg"
|
|
42948
44158
|
},
|
|
@@ -43085,6 +44295,24 @@
|
|
|
43085
44295
|
"text": "string[] | undefined"
|
|
43086
44296
|
}
|
|
43087
44297
|
},
|
|
44298
|
+
{
|
|
44299
|
+
"kind": "field",
|
|
44300
|
+
"name": "multiple",
|
|
44301
|
+
"privacy": "public",
|
|
44302
|
+
"type": {
|
|
44303
|
+
"text": "boolean | undefined"
|
|
44304
|
+
},
|
|
44305
|
+
"attribute": "multiple"
|
|
44306
|
+
},
|
|
44307
|
+
{
|
|
44308
|
+
"kind": "field",
|
|
44309
|
+
"name": "leafOrientation",
|
|
44310
|
+
"privacy": "public",
|
|
44311
|
+
"type": {
|
|
44312
|
+
"text": "Orientation | undefined"
|
|
44313
|
+
},
|
|
44314
|
+
"attribute": "leaf-orientation"
|
|
44315
|
+
},
|
|
43088
44316
|
{
|
|
43089
44317
|
"kind": "field",
|
|
43090
44318
|
"name": "selectionMode",
|
|
@@ -43258,11 +44486,27 @@
|
|
|
43258
44486
|
}
|
|
43259
44487
|
],
|
|
43260
44488
|
"attributes": [
|
|
44489
|
+
{
|
|
44490
|
+
"type": {
|
|
44491
|
+
"text": "boolean | undefined"
|
|
44492
|
+
},
|
|
44493
|
+
"description": "复选,默认关闭",
|
|
44494
|
+
"name": "multiple",
|
|
44495
|
+
"fieldName": "multiple"
|
|
44496
|
+
},
|
|
44497
|
+
{
|
|
44498
|
+
"type": {
|
|
44499
|
+
"text": "Orientation | undefined"
|
|
44500
|
+
},
|
|
44501
|
+
"description": "末端那一层怎么排,默认 vertical;horizontal 让子节点全是叶子的那层并排铺开",
|
|
44502
|
+
"name": "leaf-orientation",
|
|
44503
|
+
"fieldName": "leafOrientation"
|
|
44504
|
+
},
|
|
43261
44505
|
{
|
|
43262
44506
|
"type": {
|
|
43263
44507
|
"text": "TreeSelectionMode | undefined"
|
|
43264
44508
|
},
|
|
43265
|
-
"description": "
|
|
44509
|
+
"description": "选择模式的旧写法,默认 single;与 multiple 同时给时以它为准",
|
|
43266
44510
|
"name": "selection-mode",
|
|
43267
44511
|
"fieldName": "selectionMode"
|
|
43268
44512
|
},
|
|
@@ -43336,6 +44580,12 @@
|
|
|
43336
44580
|
{
|
|
43337
44581
|
"name": "--xh-tree-border"
|
|
43338
44582
|
},
|
|
44583
|
+
{
|
|
44584
|
+
"name": "--xh-tree-branch-content-gap"
|
|
44585
|
+
},
|
|
44586
|
+
{
|
|
44587
|
+
"name": "--xh-tree-branch-gap"
|
|
44588
|
+
},
|
|
43339
44589
|
{
|
|
43340
44590
|
"name": "--xh-tree-branch-indicator-fg"
|
|
43341
44591
|
},
|
|
@@ -43390,6 +44640,9 @@
|
|
|
43390
44640
|
{
|
|
43391
44641
|
"name": "--xh-tree-label-font-weight"
|
|
43392
44642
|
},
|
|
44643
|
+
{
|
|
44644
|
+
"name": "--xh-tree-leaf-row-gap"
|
|
44645
|
+
},
|
|
43393
44646
|
{
|
|
43394
44647
|
"name": "--xh-tree-max-h"
|
|
43395
44648
|
},
|
|
@@ -43431,6 +44684,9 @@
|
|
|
43431
44684
|
},
|
|
43432
44685
|
{
|
|
43433
44686
|
"name": "--xh-tree-row-selected-font-weight"
|
|
44687
|
+
},
|
|
44688
|
+
{
|
|
44689
|
+
"name": "--xh-tree-tree-gap"
|
|
43434
44690
|
}
|
|
43435
44691
|
]
|
|
43436
44692
|
}
|
|
@@ -43529,6 +44785,9 @@
|
|
|
43529
44785
|
{
|
|
43530
44786
|
"name": "--xh-typography-code-bg"
|
|
43531
44787
|
},
|
|
44788
|
+
{
|
|
44789
|
+
"name": "--xh-typography-code-font"
|
|
44790
|
+
},
|
|
43532
44791
|
{
|
|
43533
44792
|
"name": "--xh-typography-code-font-size"
|
|
43534
44793
|
},
|