reke-ui 0.3.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/custom-elements.json +1888 -445
- package/dist/_virtual/_rolldown/runtime.js +11 -0
- package/dist/components/reke-chip/reke-chip.d.ts +7 -0
- package/dist/components/reke-chip/reke-chip.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.js +8 -2
- package/dist/components/reke-chip/reke-chip.styles.d.ts.map +1 -1
- package/dist/components/reke-chip/reke-chip.styles.js +32 -0
- package/dist/components/reke-combobox/reke-combobox.d.ts +21 -1
- package/dist/components/reke-combobox/reke-combobox.d.ts.map +1 -1
- package/dist/components/reke-combobox/reke-combobox.js +76 -16
- package/dist/components/reke-combobox/reke-combobox.styles.d.ts.map +1 -1
- package/dist/components/reke-combobox/reke-combobox.styles.js +128 -0
- package/dist/components/reke-input/reke-input.d.ts +14 -0
- package/dist/components/reke-input/reke-input.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.js +41 -22
- package/dist/components/reke-input/reke-input.styles.d.ts.map +1 -1
- package/dist/components/reke-input/reke-input.styles.js +44 -16
- package/dist/components/reke-menu/reke-menu.d.ts +51 -0
- package/dist/components/reke-menu/reke-menu.d.ts.map +1 -0
- package/dist/components/reke-menu/reke-menu.js +106 -0
- package/dist/components/reke-menu/reke-menu.styles.d.ts +2 -0
- package/dist/components/reke-menu/reke-menu.styles.d.ts.map +1 -0
- package/dist/components/reke-menu/reke-menu.styles.js +25 -0
- package/dist/components/reke-menu-item/reke-menu-item.d.ts +32 -0
- package/dist/components/reke-menu-item/reke-menu-item.d.ts.map +1 -0
- package/dist/components/reke-menu-item/reke-menu-item.js +49 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts +2 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.d.ts.map +1 -0
- package/dist/components/reke-menu-item/reke-menu-item.styles.js +53 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts +59 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.d.ts.map +1 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.js +117 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts +2 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.d.ts.map +1 -0
- package/dist/components/reke-pie-chart/reke-pie-chart.styles.js +28 -0
- package/dist/components/reke-table/reke-table.d.ts +202 -3
- package/dist/components/reke-table/reke-table.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.js +244 -64
- package/dist/components/reke-table/reke-table.styles.d.ts.map +1 -1
- package/dist/components/reke-table/reke-table.styles.js +29 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -7
- package/dist/node_modules/echarts/lib/animation/basicTransition.js +70 -0
- package/dist/node_modules/echarts/lib/chart/custom/customSeriesRegister.js +7 -0
- package/dist/node_modules/echarts/lib/chart/helper/createRenderPlanner.js +11 -0
- package/dist/node_modules/echarts/lib/chart/helper/createSeriesDataSimply.js +11 -0
- package/dist/node_modules/echarts/lib/chart/helper/sectorHelper.js +19 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieSeries.js +112 -0
- package/dist/node_modules/echarts/lib/chart/pie/PieView.js +119 -0
- package/dist/node_modules/echarts/lib/chart/pie/install.js +12 -0
- package/dist/node_modules/echarts/lib/chart/pie/labelLayout.js +190 -0
- package/dist/node_modules/echarts/lib/chart/pie/pieLayout.js +72 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisBuilder.js +554 -0
- package/dist/node_modules/echarts/lib/component/axis/AxisView.js +36 -0
- package/dist/node_modules/echarts/lib/component/axis/axisAction.js +4 -0
- package/dist/node_modules/echarts/lib/component/axis/axisBreakHelper.js +5 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerModel.js +57 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/AxisPointerView.js +28 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/BaseAxisPointer.js +174 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/CartesianAxisPointer.js +65 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/axisTrigger.js +189 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/findPointFromSeries.js +27 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/globalListener.js +56 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/install.js +25 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/modelHelper.js +117 -0
- package/dist/node_modules/echarts/lib/component/axisPointer/viewHelper.js +103 -0
- package/dist/node_modules/echarts/lib/component/helper/listComponent.js +20 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendModel.js +184 -0
- package/dist/node_modules/echarts/lib/component/legend/LegendView.js +227 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendModel.js +45 -0
- package/dist/node_modules/echarts/lib/component/legend/ScrollableLegendView.js +145 -0
- package/dist/node_modules/echarts/lib/component/legend/install.js +9 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendPlain.js +12 -0
- package/dist/node_modules/echarts/lib/component/legend/installLegendScroll.js +11 -0
- package/dist/node_modules/echarts/lib/component/legend/legendAction.js +38 -0
- package/dist/node_modules/echarts/lib/component/legend/legendFilter.js +12 -0
- package/dist/node_modules/echarts/lib/component/legend/scrollableLegendAction.js +15 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipHTMLContent.js +170 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipModel.js +55 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipRichContent.js +102 -0
- package/dist/node_modules/echarts/lib/component/tooltip/TooltipView.js +367 -0
- package/dist/node_modules/echarts/lib/component/tooltip/helper.js +37 -0
- package/dist/node_modules/echarts/lib/component/tooltip/install.js +19 -0
- package/dist/node_modules/echarts/lib/component/tooltip/seriesFormatTooltip.js +56 -0
- package/dist/node_modules/echarts/lib/component/tooltip/tooltipMarkup.js +173 -0
- package/dist/node_modules/echarts/lib/coord/axisBand.js +31 -0
- package/dist/node_modules/echarts/lib/coord/axisHelper.js +21 -0
- package/dist/node_modules/echarts/lib/coord/axisStatistics.js +38 -0
- package/dist/node_modules/echarts/lib/coord/axisTickLabelBuilder.js +14 -0
- package/dist/node_modules/echarts/lib/coord/cartesian/cartesianAxisHelper.js +31 -0
- package/dist/node_modules/echarts/lib/core/CoordinateSystem.js +50 -0
- package/dist/node_modules/echarts/lib/core/ExtensionAPI.js +32 -0
- package/dist/node_modules/echarts/lib/core/Scheduler.js +203 -0
- package/dist/node_modules/echarts/lib/core/echarts.js +986 -0
- package/dist/node_modules/echarts/lib/core/impl.js +11 -0
- package/dist/node_modules/echarts/lib/core/lifecycle.js +5 -0
- package/dist/node_modules/echarts/lib/core/locale.js +27 -0
- package/dist/node_modules/echarts/lib/core/task.js +81 -0
- package/dist/node_modules/echarts/lib/data/DataDiffer.js +68 -0
- package/dist/node_modules/echarts/lib/data/DataStore.js +359 -0
- package/dist/node_modules/echarts/lib/data/SeriesData.js +328 -0
- package/dist/node_modules/echarts/lib/data/SeriesDimensionDefine.js +10 -0
- package/dist/node_modules/echarts/lib/data/Source.js +132 -0
- package/dist/node_modules/echarts/lib/data/helper/SeriesDataSchema.js +80 -0
- package/dist/node_modules/echarts/lib/data/helper/createDimensions.js +105 -0
- package/dist/node_modules/echarts/lib/data/helper/dataProvider.js +155 -0
- package/dist/node_modules/echarts/lib/data/helper/dataValueHelper.js +87 -0
- package/dist/node_modules/echarts/lib/data/helper/dimensionHelper.js +50 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceHelper.js +98 -0
- package/dist/node_modules/echarts/lib/data/helper/sourceManager.js +115 -0
- package/dist/node_modules/echarts/lib/data/helper/transform.js +145 -0
- package/dist/node_modules/echarts/lib/extension.js +62 -0
- package/dist/node_modules/echarts/lib/i18n/langEN.js +148 -0
- package/dist/node_modules/echarts/lib/i18n/langZH.js +148 -0
- package/dist/node_modules/echarts/lib/label/labelGuideHelper.js +106 -0
- package/dist/node_modules/echarts/lib/label/labelLayoutHelper.js +152 -0
- package/dist/node_modules/echarts/lib/label/labelStyle.js +190 -0
- package/dist/node_modules/echarts/lib/legacy/dataSelectAction.js +53 -0
- package/dist/node_modules/echarts/lib/loading/default.js +85 -0
- package/dist/node_modules/echarts/lib/model/Component.js +64 -0
- package/dist/node_modules/echarts/lib/model/Global.js +320 -0
- package/dist/node_modules/echarts/lib/model/Model.js +50 -0
- package/dist/node_modules/echarts/lib/model/OptionManager.js +78 -0
- package/dist/node_modules/echarts/lib/model/Series.js +216 -0
- package/dist/node_modules/echarts/lib/model/globalDefault.js +94 -0
- package/dist/node_modules/echarts/lib/model/internalComponentCreator.js +14 -0
- package/dist/node_modules/echarts/lib/model/mixin/areaStyle.js +16 -0
- package/dist/node_modules/echarts/lib/model/mixin/dataFormat.js +63 -0
- package/dist/node_modules/echarts/lib/model/mixin/itemStyle.js +24 -0
- package/dist/node_modules/echarts/lib/model/mixin/lineStyle.js +23 -0
- package/dist/node_modules/echarts/lib/model/mixin/makeStyleMapper.js +17 -0
- package/dist/node_modules/echarts/lib/model/mixin/palette.js +32 -0
- package/dist/node_modules/echarts/lib/model/mixin/textStyle.js +36 -0
- package/dist/node_modules/echarts/lib/preprocessor/backwardCompat.js +89 -0
- package/dist/node_modules/echarts/lib/preprocessor/helper/compatStyle.js +118 -0
- package/dist/node_modules/echarts/lib/processor/dataFilter.js +18 -0
- package/dist/node_modules/echarts/lib/processor/dataStack.js +52 -0
- package/dist/node_modules/echarts/lib/processor/negativeDataFilter.js +16 -0
- package/dist/node_modules/echarts/lib/renderer/installCanvasRenderer.js +7 -0
- package/dist/node_modules/echarts/lib/scale/break.js +9 -0
- package/dist/node_modules/echarts/lib/scale/helper.js +9 -0
- package/dist/node_modules/echarts/lib/scale/scaleMapper.js +26 -0
- package/dist/node_modules/echarts/lib/theme/dark.js +159 -0
- package/dist/node_modules/echarts/lib/util/ECEventProcessor.js +52 -0
- package/dist/node_modules/echarts/lib/util/clazz.js +99 -0
- package/dist/node_modules/echarts/lib/util/component.js +75 -0
- package/dist/node_modules/echarts/lib/util/cycleCache.js +14 -0
- package/dist/node_modules/echarts/lib/util/decal.js +162 -0
- package/dist/node_modules/echarts/lib/util/event.js +7 -0
- package/dist/node_modules/echarts/lib/util/format.js +87 -0
- package/dist/node_modules/echarts/lib/util/graphic.js +361 -0
- package/dist/node_modules/echarts/lib/util/innerStore.js +13 -0
- package/dist/node_modules/echarts/lib/util/layout.js +174 -0
- package/dist/node_modules/echarts/lib/util/log.js +54 -0
- package/dist/node_modules/echarts/lib/util/model.js +296 -0
- package/dist/node_modules/echarts/lib/util/number.js +132 -0
- package/dist/node_modules/echarts/lib/util/states.js +323 -0
- package/dist/node_modules/echarts/lib/util/symbol.js +146 -0
- package/dist/node_modules/echarts/lib/util/throttle.js +37 -0
- package/dist/node_modules/echarts/lib/util/time.js +43 -0
- package/dist/node_modules/echarts/lib/util/types.js +13 -0
- package/dist/node_modules/echarts/lib/view/Chart.js +81 -0
- package/dist/node_modules/echarts/lib/view/Component.js +16 -0
- package/dist/node_modules/echarts/lib/visual/LegendVisualProvider.js +18 -0
- package/dist/node_modules/echarts/lib/visual/decal.js +25 -0
- package/dist/node_modules/echarts/lib/visual/helper.js +23 -0
- package/dist/node_modules/echarts/lib/visual/style.js +79 -0
- package/dist/node_modules/echarts/lib/visual/symbol.js +47 -0
- package/dist/node_modules/echarts/lib/visual/tokens.js +108 -0
- package/dist/node_modules/echarts/node_modules/tslib/tslib.es6.js +18 -0
- package/dist/node_modules/zrender/lib/Element.js +442 -0
- package/dist/node_modules/zrender/lib/Handler.js +167 -0
- package/dist/node_modules/zrender/lib/Storage.js +68 -0
- package/dist/node_modules/zrender/lib/animation/Animation.js +65 -0
- package/dist/node_modules/zrender/lib/animation/Animator.js +348 -0
- package/dist/node_modules/zrender/lib/animation/Clip.js +31 -0
- package/dist/node_modules/zrender/lib/animation/cubicEasing.js +17 -0
- package/dist/node_modules/zrender/lib/animation/easing.js +104 -0
- package/dist/node_modules/zrender/lib/animation/requestAnimationFrame.js +7 -0
- package/dist/node_modules/zrender/lib/canvas/Layer.js +135 -0
- package/dist/node_modules/zrender/lib/canvas/Painter.js +352 -0
- package/dist/node_modules/zrender/lib/canvas/dashStyle.js +17 -0
- package/dist/node_modules/zrender/lib/canvas/graphic.js +199 -0
- package/dist/node_modules/zrender/lib/canvas/helper.js +33 -0
- package/dist/node_modules/zrender/lib/config.js +7 -0
- package/dist/node_modules/zrender/lib/contain/arc.js +20 -0
- package/dist/node_modules/zrender/lib/contain/cubic.js +9 -0
- package/dist/node_modules/zrender/lib/contain/line.js +12 -0
- package/dist/node_modules/zrender/lib/contain/path.js +133 -0
- package/dist/node_modules/zrender/lib/contain/quadratic.js +9 -0
- package/dist/node_modules/zrender/lib/contain/text.js +106 -0
- package/dist/node_modules/zrender/lib/contain/util.js +7 -0
- package/dist/node_modules/zrender/lib/contain/windingLine.js +10 -0
- package/dist/node_modules/zrender/lib/core/BoundingRect.js +111 -0
- package/dist/node_modules/zrender/lib/core/Eventful.js +82 -0
- package/dist/node_modules/zrender/lib/core/GestureMgr.js +56 -0
- package/dist/node_modules/zrender/lib/core/LRU.js +49 -0
- package/dist/node_modules/zrender/lib/core/OrientedBoundingRect.js +41 -0
- package/dist/node_modules/zrender/lib/core/PathProxy.js +288 -0
- package/dist/node_modules/zrender/lib/core/Point.js +72 -0
- package/dist/node_modules/zrender/lib/core/Transformable.js +96 -0
- package/dist/node_modules/zrender/lib/core/WeakMap.js +25 -0
- package/dist/node_modules/zrender/lib/core/bbox.js +40 -0
- package/dist/node_modules/zrender/lib/core/curve.js +142 -0
- package/dist/node_modules/zrender/lib/core/dom.js +74 -0
- package/dist/node_modules/zrender/lib/core/env.js +22 -0
- package/dist/node_modules/zrender/lib/core/event.js +58 -0
- package/dist/node_modules/zrender/lib/core/fourPointsTransform.js +109 -0
- package/dist/node_modules/zrender/lib/core/matrix.js +39 -0
- package/dist/node_modules/zrender/lib/core/platform.js +42 -0
- package/dist/node_modules/zrender/lib/core/timsort.js +246 -0
- package/dist/node_modules/zrender/lib/core/util.js +314 -0
- package/dist/node_modules/zrender/lib/core/vector.js +52 -0
- package/dist/node_modules/zrender/lib/dom/HandlerProxy.js +190 -0
- package/dist/node_modules/zrender/lib/graphic/CompoundPath.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/Displayable.js +133 -0
- package/dist/node_modules/zrender/lib/graphic/Gradient.js +14 -0
- package/dist/node_modules/zrender/lib/graphic/Group.js +86 -0
- package/dist/node_modules/zrender/lib/graphic/Image.js +49 -0
- package/dist/node_modules/zrender/lib/graphic/IncrementalDisplayable.js +65 -0
- package/dist/node_modules/zrender/lib/graphic/LinearGradient.js +13 -0
- package/dist/node_modules/zrender/lib/graphic/Path.js +200 -0
- package/dist/node_modules/zrender/lib/graphic/RadialGradient.js +13 -0
- package/dist/node_modules/zrender/lib/graphic/TSpan.js +39 -0
- package/dist/node_modules/zrender/lib/graphic/Text.js +216 -0
- package/dist/node_modules/zrender/lib/graphic/helper/image.js +39 -0
- package/dist/node_modules/zrender/lib/graphic/helper/parseText.js +226 -0
- package/dist/node_modules/zrender/lib/graphic/helper/poly.js +21 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundRect.js +9 -0
- package/dist/node_modules/zrender/lib/graphic/helper/roundSector.js +85 -0
- package/dist/node_modules/zrender/lib/graphic/helper/smoothBezier.js +26 -0
- package/dist/node_modules/zrender/lib/graphic/helper/subPixelOptimize.js +25 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Arc.js +28 -0
- package/dist/node_modules/zrender/lib/graphic/shape/BezierCurve.js +40 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Circle.js +22 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ellipse.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Line.js +37 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polygon.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Polyline.js +28 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Rect.js +31 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Ring.js +23 -0
- package/dist/node_modules/zrender/lib/graphic/shape/Sector.js +25 -0
- package/dist/node_modules/zrender/lib/mixin/Draggable.js +28 -0
- package/dist/node_modules/zrender/lib/svg/helper.js +19 -0
- package/dist/node_modules/zrender/lib/tool/color.js +1039 -0
- package/dist/node_modules/zrender/lib/tool/path.js +153 -0
- package/dist/node_modules/zrender/lib/tool/transformPath.js +41 -0
- package/dist/node_modules/zrender/lib/zrender.js +124 -0
- package/dist/node_modules/zrender/node_modules/tslib/tslib.es6.js +18 -0
- package/dist/react-bridge/table.d.ts.map +1 -1
- package/dist/react-bridge/table.js +36 -21
- package/dist/react.d.ts +8 -0
- package/dist/react.d.ts.map +1 -1
- package/dist/react.js +58 -46
- package/dist/shared/base-element.d.ts +1 -0
- package/dist/shared/base-element.d.ts.map +1 -1
- package/dist/shared/base-element.js +6 -0
- package/dist/shared/tailwind.js +1 -1
- package/dist/tokens/reke-tokens.css +15 -0
- package/package.json +15 -1
package/custom-elements.json
CHANGED
|
@@ -4,48 +4,48 @@
|
|
|
4
4
|
"modules": [
|
|
5
5
|
{
|
|
6
6
|
"kind": "javascript-module",
|
|
7
|
-
"path": "src/components/reke-
|
|
7
|
+
"path": "src/components/reke-badge/reke-badge.ts",
|
|
8
8
|
"declarations": [
|
|
9
9
|
{
|
|
10
10
|
"kind": "class",
|
|
11
11
|
"description": "",
|
|
12
|
-
"name": "
|
|
12
|
+
"name": "RekeBadge",
|
|
13
13
|
"cssProperties": [
|
|
14
14
|
{
|
|
15
|
-
"description": "
|
|
16
|
-
"name": "--reke-color-
|
|
17
|
-
"default": "#
|
|
15
|
+
"description": "Default variant background color.",
|
|
16
|
+
"name": "--reke-color-surface",
|
|
17
|
+
"default": "#1A1A1A"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"description": "
|
|
21
|
-
"name": "--reke-color-
|
|
22
|
-
"default": "#
|
|
20
|
+
"description": "Default variant text color.",
|
|
21
|
+
"name": "--reke-color-text",
|
|
22
|
+
"default": "#E5E5E5"
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
"description": "
|
|
26
|
-
"name": "--reke-color-
|
|
27
|
-
"default": "#
|
|
25
|
+
"description": "Default variant border color.",
|
|
26
|
+
"name": "--reke-color-border",
|
|
27
|
+
"default": "#252525"
|
|
28
28
|
},
|
|
29
29
|
{
|
|
30
|
-
"description": "
|
|
31
|
-
"name": "--reke-color-
|
|
32
|
-
"default": "#
|
|
30
|
+
"description": "Primary/success variant accent color.",
|
|
31
|
+
"name": "--reke-color-primary",
|
|
32
|
+
"default": "#22C55E"
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"description": "
|
|
36
|
-
"name": "--reke-
|
|
37
|
-
"default": "
|
|
35
|
+
"description": "Danger variant accent color.",
|
|
36
|
+
"name": "--reke-color-danger",
|
|
37
|
+
"default": "#EF4444"
|
|
38
38
|
}
|
|
39
39
|
],
|
|
40
40
|
"cssParts": [
|
|
41
41
|
{
|
|
42
|
-
"description": "The
|
|
43
|
-
"name": "
|
|
42
|
+
"description": "The inner badge element.",
|
|
43
|
+
"name": "badge"
|
|
44
44
|
}
|
|
45
45
|
],
|
|
46
46
|
"slots": [
|
|
47
47
|
{
|
|
48
|
-
"description": "Default slot for
|
|
48
|
+
"description": "Default slot for badge text.",
|
|
49
49
|
"name": ""
|
|
50
50
|
}
|
|
51
51
|
],
|
|
@@ -54,124 +54,131 @@
|
|
|
54
54
|
"kind": "field",
|
|
55
55
|
"name": "variant",
|
|
56
56
|
"type": {
|
|
57
|
-
"text": "
|
|
57
|
+
"text": "BadgeVariant"
|
|
58
58
|
},
|
|
59
|
-
"default": "'
|
|
59
|
+
"default": "'default'",
|
|
60
60
|
"attribute": "variant",
|
|
61
61
|
"reflects": true
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"kind": "field",
|
|
65
|
-
"name": "
|
|
65
|
+
"name": "size",
|
|
66
66
|
"type": {
|
|
67
|
-
"text": "
|
|
67
|
+
"text": "BadgeSize"
|
|
68
68
|
},
|
|
69
|
-
"default": "
|
|
70
|
-
"attribute": "
|
|
69
|
+
"default": "'md'",
|
|
70
|
+
"attribute": "size",
|
|
71
71
|
"reflects": true
|
|
72
72
|
},
|
|
73
73
|
{
|
|
74
|
-
"kind": "
|
|
75
|
-
"name": "
|
|
76
|
-
"
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
"
|
|
82
|
-
"name": "reke-close"
|
|
74
|
+
"kind": "field",
|
|
75
|
+
"name": "shape",
|
|
76
|
+
"type": {
|
|
77
|
+
"text": "BadgeShape"
|
|
78
|
+
},
|
|
79
|
+
"default": "'pill'",
|
|
80
|
+
"attribute": "shape",
|
|
81
|
+
"reflects": true
|
|
83
82
|
}
|
|
84
83
|
],
|
|
85
84
|
"attributes": [
|
|
86
85
|
{
|
|
87
86
|
"name": "variant",
|
|
88
87
|
"type": {
|
|
89
|
-
"text": "
|
|
88
|
+
"text": "BadgeVariant"
|
|
90
89
|
},
|
|
91
|
-
"default": "'
|
|
90
|
+
"default": "'default'",
|
|
92
91
|
"fieldName": "variant"
|
|
93
92
|
},
|
|
94
93
|
{
|
|
95
|
-
"name": "
|
|
94
|
+
"name": "size",
|
|
96
95
|
"type": {
|
|
97
|
-
"text": "
|
|
96
|
+
"text": "BadgeSize"
|
|
98
97
|
},
|
|
99
|
-
"default": "
|
|
100
|
-
"fieldName": "
|
|
98
|
+
"default": "'md'",
|
|
99
|
+
"fieldName": "size"
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
"name": "shape",
|
|
103
|
+
"type": {
|
|
104
|
+
"text": "BadgeShape"
|
|
105
|
+
},
|
|
106
|
+
"default": "'pill'",
|
|
107
|
+
"fieldName": "shape"
|
|
101
108
|
}
|
|
102
109
|
],
|
|
103
110
|
"superclass": {
|
|
104
111
|
"name": "RekeElement",
|
|
105
112
|
"module": "/src/shared/base-element.js"
|
|
106
113
|
},
|
|
107
|
-
"tagName": "reke-
|
|
114
|
+
"tagName": "reke-badge",
|
|
108
115
|
"customElement": true,
|
|
109
|
-
"summary": "
|
|
116
|
+
"summary": "A badge component for displaying labels, statuses, and counts."
|
|
110
117
|
}
|
|
111
118
|
],
|
|
112
119
|
"exports": [
|
|
113
120
|
{
|
|
114
121
|
"kind": "js",
|
|
115
|
-
"name": "
|
|
122
|
+
"name": "RekeBadge",
|
|
116
123
|
"declaration": {
|
|
117
|
-
"name": "
|
|
118
|
-
"module": "src/components/reke-
|
|
124
|
+
"name": "RekeBadge",
|
|
125
|
+
"module": "src/components/reke-badge/reke-badge.ts"
|
|
119
126
|
}
|
|
120
127
|
},
|
|
121
128
|
{
|
|
122
129
|
"kind": "custom-element-definition",
|
|
123
|
-
"name": "reke-
|
|
130
|
+
"name": "reke-badge",
|
|
124
131
|
"declaration": {
|
|
125
|
-
"name": "
|
|
126
|
-
"module": "src/components/reke-
|
|
132
|
+
"name": "RekeBadge",
|
|
133
|
+
"module": "src/components/reke-badge/reke-badge.ts"
|
|
127
134
|
}
|
|
128
135
|
}
|
|
129
136
|
]
|
|
130
137
|
},
|
|
131
138
|
{
|
|
132
139
|
"kind": "javascript-module",
|
|
133
|
-
"path": "src/components/reke-
|
|
140
|
+
"path": "src/components/reke-alert/reke-alert.ts",
|
|
134
141
|
"declarations": [
|
|
135
142
|
{
|
|
136
143
|
"kind": "class",
|
|
137
144
|
"description": "",
|
|
138
|
-
"name": "
|
|
145
|
+
"name": "RekeAlert",
|
|
139
146
|
"cssProperties": [
|
|
140
147
|
{
|
|
141
|
-
"description": "
|
|
142
|
-
"name": "--reke-color-
|
|
143
|
-
"default": "#
|
|
148
|
+
"description": "Success variant color.",
|
|
149
|
+
"name": "--reke-color-primary",
|
|
150
|
+
"default": "#22C55E"
|
|
144
151
|
},
|
|
145
152
|
{
|
|
146
|
-
"description": "
|
|
147
|
-
"name": "--reke-color-
|
|
148
|
-
"default": "#
|
|
153
|
+
"description": "Error variant color.",
|
|
154
|
+
"name": "--reke-color-danger",
|
|
155
|
+
"default": "#EF4444"
|
|
149
156
|
},
|
|
150
157
|
{
|
|
151
|
-
"description": "
|
|
152
|
-
"name": "--reke-color-
|
|
153
|
-
"default": "#
|
|
158
|
+
"description": "Warning variant color.",
|
|
159
|
+
"name": "--reke-color-warning",
|
|
160
|
+
"default": "#F59E0B"
|
|
154
161
|
},
|
|
155
162
|
{
|
|
156
|
-
"description": "
|
|
157
|
-
"name": "--reke-color-
|
|
158
|
-
"default": "#
|
|
163
|
+
"description": "Info variant color.",
|
|
164
|
+
"name": "--reke-color-secondary",
|
|
165
|
+
"default": "#3B82F6"
|
|
159
166
|
},
|
|
160
167
|
{
|
|
161
|
-
"description": "
|
|
162
|
-
"name": "--reke-
|
|
163
|
-
"default": "
|
|
168
|
+
"description": "Alert border radius.",
|
|
169
|
+
"name": "--reke-radius",
|
|
170
|
+
"default": "4px"
|
|
164
171
|
}
|
|
165
172
|
],
|
|
166
173
|
"cssParts": [
|
|
167
174
|
{
|
|
168
|
-
"description": "The
|
|
169
|
-
"name": "
|
|
175
|
+
"description": "The outer alert container.",
|
|
176
|
+
"name": "alert"
|
|
170
177
|
}
|
|
171
178
|
],
|
|
172
179
|
"slots": [
|
|
173
180
|
{
|
|
174
|
-
"description": "Default slot for
|
|
181
|
+
"description": "Default slot for alert content (icon + text, or just text).",
|
|
175
182
|
"name": ""
|
|
176
183
|
}
|
|
177
184
|
],
|
|
@@ -180,83 +187,76 @@
|
|
|
180
187
|
"kind": "field",
|
|
181
188
|
"name": "variant",
|
|
182
189
|
"type": {
|
|
183
|
-
"text": "
|
|
190
|
+
"text": "AlertVariant"
|
|
184
191
|
},
|
|
185
|
-
"default": "'
|
|
192
|
+
"default": "'info'",
|
|
186
193
|
"attribute": "variant",
|
|
187
194
|
"reflects": true
|
|
188
195
|
},
|
|
189
196
|
{
|
|
190
197
|
"kind": "field",
|
|
191
|
-
"name": "
|
|
198
|
+
"name": "dismissible",
|
|
192
199
|
"type": {
|
|
193
|
-
"text": "
|
|
200
|
+
"text": "boolean"
|
|
194
201
|
},
|
|
195
|
-
"default": "
|
|
196
|
-
"attribute": "
|
|
202
|
+
"default": "false",
|
|
203
|
+
"attribute": "dismissible",
|
|
197
204
|
"reflects": true
|
|
198
205
|
},
|
|
199
206
|
{
|
|
200
|
-
"kind": "
|
|
201
|
-
"name": "
|
|
202
|
-
"
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
"
|
|
207
|
+
"kind": "method",
|
|
208
|
+
"name": "handleClose",
|
|
209
|
+
"privacy": "private"
|
|
210
|
+
}
|
|
211
|
+
],
|
|
212
|
+
"events": [
|
|
213
|
+
{
|
|
214
|
+
"description": "Fired when the alert is dismissed (only when dismissible).",
|
|
215
|
+
"name": "reke-close"
|
|
208
216
|
}
|
|
209
217
|
],
|
|
210
218
|
"attributes": [
|
|
211
219
|
{
|
|
212
220
|
"name": "variant",
|
|
213
221
|
"type": {
|
|
214
|
-
"text": "
|
|
222
|
+
"text": "AlertVariant"
|
|
215
223
|
},
|
|
216
|
-
"default": "'
|
|
224
|
+
"default": "'info'",
|
|
217
225
|
"fieldName": "variant"
|
|
218
226
|
},
|
|
219
227
|
{
|
|
220
|
-
"name": "
|
|
221
|
-
"type": {
|
|
222
|
-
"text": "BadgeSize"
|
|
223
|
-
},
|
|
224
|
-
"default": "'md'",
|
|
225
|
-
"fieldName": "size"
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
"name": "shape",
|
|
228
|
+
"name": "dismissible",
|
|
229
229
|
"type": {
|
|
230
|
-
"text": "
|
|
230
|
+
"text": "boolean"
|
|
231
231
|
},
|
|
232
|
-
"default": "
|
|
233
|
-
"fieldName": "
|
|
232
|
+
"default": "false",
|
|
233
|
+
"fieldName": "dismissible"
|
|
234
234
|
}
|
|
235
235
|
],
|
|
236
236
|
"superclass": {
|
|
237
237
|
"name": "RekeElement",
|
|
238
238
|
"module": "/src/shared/base-element.js"
|
|
239
239
|
},
|
|
240
|
-
"tagName": "reke-
|
|
240
|
+
"tagName": "reke-alert",
|
|
241
241
|
"customElement": true,
|
|
242
|
-
"summary": "
|
|
242
|
+
"summary": "An inline alert with color variants. Content via default slot."
|
|
243
243
|
}
|
|
244
244
|
],
|
|
245
245
|
"exports": [
|
|
246
246
|
{
|
|
247
247
|
"kind": "js",
|
|
248
|
-
"name": "
|
|
248
|
+
"name": "RekeAlert",
|
|
249
249
|
"declaration": {
|
|
250
|
-
"name": "
|
|
251
|
-
"module": "src/components/reke-
|
|
250
|
+
"name": "RekeAlert",
|
|
251
|
+
"module": "src/components/reke-alert/reke-alert.ts"
|
|
252
252
|
}
|
|
253
253
|
},
|
|
254
254
|
{
|
|
255
255
|
"kind": "custom-element-definition",
|
|
256
|
-
"name": "reke-
|
|
256
|
+
"name": "reke-alert",
|
|
257
257
|
"declaration": {
|
|
258
|
-
"name": "
|
|
259
|
-
"module": "src/components/reke-
|
|
258
|
+
"name": "RekeAlert",
|
|
259
|
+
"module": "src/components/reke-alert/reke-alert.ts"
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
]
|
|
@@ -865,6 +865,11 @@
|
|
|
865
865
|
"description": "Chip border radius.",
|
|
866
866
|
"name": "--reke-radius",
|
|
867
867
|
"default": "4px"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
"description": "Prefix container size.",
|
|
871
|
+
"name": "--reke-chip-prefix-size",
|
|
872
|
+
"default": "16px"
|
|
868
873
|
}
|
|
869
874
|
],
|
|
870
875
|
"cssParts": [
|
|
@@ -872,6 +877,10 @@
|
|
|
872
877
|
"description": "The outer chip container.",
|
|
873
878
|
"name": "chip"
|
|
874
879
|
},
|
|
880
|
+
{
|
|
881
|
+
"description": "The prefix container element.",
|
|
882
|
+
"name": "chip-prefix"
|
|
883
|
+
},
|
|
875
884
|
{
|
|
876
885
|
"description": "The dismiss button element.",
|
|
877
886
|
"name": "dismiss"
|
|
@@ -881,6 +890,10 @@
|
|
|
881
890
|
{
|
|
882
891
|
"description": "Default slot for chip label text.",
|
|
883
892
|
"name": ""
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
"description": "Content rendered before the label (e.g. `<img>`, `<svg>`).",
|
|
896
|
+
"name": "prefix"
|
|
884
897
|
}
|
|
885
898
|
],
|
|
886
899
|
"members": [
|
|
@@ -917,6 +930,16 @@
|
|
|
917
930
|
"attribute": "dismissible",
|
|
918
931
|
"reflects": true
|
|
919
932
|
},
|
|
933
|
+
{
|
|
934
|
+
"kind": "field",
|
|
935
|
+
"name": "dismissLabel",
|
|
936
|
+
"type": {
|
|
937
|
+
"text": "string"
|
|
938
|
+
},
|
|
939
|
+
"default": "'Dismiss'",
|
|
940
|
+
"description": "Accessible label for the dismiss button (default `'Dismiss'`).",
|
|
941
|
+
"attribute": "dismiss-label"
|
|
942
|
+
},
|
|
920
943
|
{
|
|
921
944
|
"kind": "field",
|
|
922
945
|
"name": "disabled",
|
|
@@ -984,6 +1007,15 @@
|
|
|
984
1007
|
"description": "Shows a dismiss (×) button.",
|
|
985
1008
|
"fieldName": "dismissible"
|
|
986
1009
|
},
|
|
1010
|
+
{
|
|
1011
|
+
"name": "dismiss-label",
|
|
1012
|
+
"type": {
|
|
1013
|
+
"text": "string"
|
|
1014
|
+
},
|
|
1015
|
+
"default": "'Dismiss'",
|
|
1016
|
+
"description": "Accessible label for the dismiss button (default `'Dismiss'`).",
|
|
1017
|
+
"fieldName": "dismissLabel"
|
|
1018
|
+
},
|
|
987
1019
|
{
|
|
988
1020
|
"name": "disabled",
|
|
989
1021
|
"type": {
|
|
@@ -1069,6 +1101,16 @@
|
|
|
1069
1101
|
"description": "Label color.",
|
|
1070
1102
|
"name": "--reke-color-text-label",
|
|
1071
1103
|
"default": "#8A8A8A"
|
|
1104
|
+
},
|
|
1105
|
+
{
|
|
1106
|
+
"description": "Option flash animation duration.",
|
|
1107
|
+
"name": "--reke-animation-flash",
|
|
1108
|
+
"default": "250ms"
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"description": "Chip scale-in animation duration.",
|
|
1112
|
+
"name": "--reke-animation-scale-in",
|
|
1113
|
+
"default": "200ms"
|
|
1072
1114
|
}
|
|
1073
1115
|
],
|
|
1074
1116
|
"cssParts": [
|
|
@@ -1087,6 +1129,14 @@
|
|
|
1087
1129
|
{
|
|
1088
1130
|
"description": "The \"no results\" row.",
|
|
1089
1131
|
"name": "empty"
|
|
1132
|
+
},
|
|
1133
|
+
{
|
|
1134
|
+
"description": "Each chip inside the control (tags mode).",
|
|
1135
|
+
"name": "chip"
|
|
1136
|
+
},
|
|
1137
|
+
{
|
|
1138
|
+
"description": "The prefix image/icon inside a chip.",
|
|
1139
|
+
"name": "chip-prefix"
|
|
1090
1140
|
}
|
|
1091
1141
|
],
|
|
1092
1142
|
"members": [
|
|
@@ -1118,45 +1168,76 @@
|
|
|
1118
1168
|
},
|
|
1119
1169
|
{
|
|
1120
1170
|
"kind": "field",
|
|
1121
|
-
"name": "
|
|
1171
|
+
"name": "multiple",
|
|
1122
1172
|
"type": {
|
|
1123
1173
|
"text": "boolean"
|
|
1124
1174
|
},
|
|
1125
1175
|
"default": "false",
|
|
1126
|
-
"
|
|
1176
|
+
"description": "Enables multi-selection. In this mode use `values` instead of `value`.",
|
|
1177
|
+
"attribute": "multiple",
|
|
1127
1178
|
"reflects": true
|
|
1128
1179
|
},
|
|
1129
1180
|
{
|
|
1130
1181
|
"kind": "field",
|
|
1131
|
-
"name": "
|
|
1182
|
+
"name": "tags",
|
|
1132
1183
|
"type": {
|
|
1133
1184
|
"text": "boolean"
|
|
1134
1185
|
},
|
|
1135
1186
|
"default": "false",
|
|
1136
|
-
"
|
|
1187
|
+
"description": "Render selected values as dismissible chips inside the control. Ignored unless `multiple`.",
|
|
1188
|
+
"attribute": "tags",
|
|
1137
1189
|
"reflects": true
|
|
1138
1190
|
},
|
|
1139
1191
|
{
|
|
1140
1192
|
"kind": "field",
|
|
1141
|
-
"name": "
|
|
1193
|
+
"name": "values",
|
|
1142
1194
|
"type": {
|
|
1143
|
-
"text": "string"
|
|
1195
|
+
"text": "string[]"
|
|
1144
1196
|
},
|
|
1145
|
-
"default": "
|
|
1146
|
-
"
|
|
1197
|
+
"default": "[]",
|
|
1198
|
+
"description": "Selected values when `multiple` is set."
|
|
1147
1199
|
},
|
|
1148
1200
|
{
|
|
1149
1201
|
"kind": "field",
|
|
1150
|
-
"name": "
|
|
1202
|
+
"name": "disabled",
|
|
1151
1203
|
"type": {
|
|
1152
|
-
"text": "
|
|
1204
|
+
"text": "boolean"
|
|
1153
1205
|
},
|
|
1154
|
-
"default": "
|
|
1155
|
-
"attribute": "
|
|
1206
|
+
"default": "false",
|
|
1207
|
+
"attribute": "disabled",
|
|
1208
|
+
"reflects": true
|
|
1156
1209
|
},
|
|
1157
1210
|
{
|
|
1158
1211
|
"kind": "field",
|
|
1159
|
-
"name": "
|
|
1212
|
+
"name": "error",
|
|
1213
|
+
"type": {
|
|
1214
|
+
"text": "boolean"
|
|
1215
|
+
},
|
|
1216
|
+
"default": "false",
|
|
1217
|
+
"attribute": "error",
|
|
1218
|
+
"reflects": true
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"kind": "field",
|
|
1222
|
+
"name": "label",
|
|
1223
|
+
"type": {
|
|
1224
|
+
"text": "string"
|
|
1225
|
+
},
|
|
1226
|
+
"default": "''",
|
|
1227
|
+
"attribute": "label"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
"kind": "field",
|
|
1231
|
+
"name": "emptyText",
|
|
1232
|
+
"type": {
|
|
1233
|
+
"text": "string"
|
|
1234
|
+
},
|
|
1235
|
+
"default": "'Sin resultados'",
|
|
1236
|
+
"attribute": "emptyText"
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"kind": "field",
|
|
1240
|
+
"name": "size",
|
|
1160
1241
|
"type": {
|
|
1161
1242
|
"text": "ComboboxSize"
|
|
1162
1243
|
},
|
|
@@ -1191,6 +1272,24 @@
|
|
|
1191
1272
|
"privacy": "private",
|
|
1192
1273
|
"default": "0"
|
|
1193
1274
|
},
|
|
1275
|
+
{
|
|
1276
|
+
"kind": "field",
|
|
1277
|
+
"name": "_flashValue",
|
|
1278
|
+
"type": {
|
|
1279
|
+
"text": "string"
|
|
1280
|
+
},
|
|
1281
|
+
"privacy": "private",
|
|
1282
|
+
"default": "''"
|
|
1283
|
+
},
|
|
1284
|
+
{
|
|
1285
|
+
"kind": "field",
|
|
1286
|
+
"name": "_scaleInValues",
|
|
1287
|
+
"type": {
|
|
1288
|
+
"text": "string[]"
|
|
1289
|
+
},
|
|
1290
|
+
"privacy": "private",
|
|
1291
|
+
"default": "[]"
|
|
1292
|
+
},
|
|
1194
1293
|
{
|
|
1195
1294
|
"kind": "field",
|
|
1196
1295
|
"name": "_dropdownStyle",
|
|
@@ -1248,6 +1347,34 @@
|
|
|
1248
1347
|
"privacy": "private",
|
|
1249
1348
|
"readonly": true
|
|
1250
1349
|
},
|
|
1350
|
+
{
|
|
1351
|
+
"kind": "field",
|
|
1352
|
+
"name": "selectedSummary",
|
|
1353
|
+
"type": {
|
|
1354
|
+
"text": "string"
|
|
1355
|
+
},
|
|
1356
|
+
"privacy": "private",
|
|
1357
|
+
"description": "Comma-joined labels of the current multi-selection (empty if none).",
|
|
1358
|
+
"readonly": true
|
|
1359
|
+
},
|
|
1360
|
+
{
|
|
1361
|
+
"kind": "method",
|
|
1362
|
+
"name": "isSelected",
|
|
1363
|
+
"privacy": "private",
|
|
1364
|
+
"return": {
|
|
1365
|
+
"type": {
|
|
1366
|
+
"text": "boolean"
|
|
1367
|
+
}
|
|
1368
|
+
},
|
|
1369
|
+
"parameters": [
|
|
1370
|
+
{
|
|
1371
|
+
"name": "option",
|
|
1372
|
+
"type": {
|
|
1373
|
+
"text": "ComboboxOption"
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
]
|
|
1377
|
+
},
|
|
1251
1378
|
{
|
|
1252
1379
|
"kind": "field",
|
|
1253
1380
|
"name": "filteredOptions",
|
|
@@ -1280,6 +1407,25 @@
|
|
|
1280
1407
|
}
|
|
1281
1408
|
]
|
|
1282
1409
|
},
|
|
1410
|
+
{
|
|
1411
|
+
"kind": "method",
|
|
1412
|
+
"name": "handleControlClick",
|
|
1413
|
+
"privacy": "private",
|
|
1414
|
+
"description": "Tags mode: clicking anywhere in the control focuses the input."
|
|
1415
|
+
},
|
|
1416
|
+
{
|
|
1417
|
+
"kind": "method",
|
|
1418
|
+
"name": "handleChipDismiss",
|
|
1419
|
+
"privacy": "private",
|
|
1420
|
+
"parameters": [
|
|
1421
|
+
{
|
|
1422
|
+
"name": "value",
|
|
1423
|
+
"type": {
|
|
1424
|
+
"text": "string"
|
|
1425
|
+
}
|
|
1426
|
+
}
|
|
1427
|
+
]
|
|
1428
|
+
},
|
|
1283
1429
|
{
|
|
1284
1430
|
"kind": "method",
|
|
1285
1431
|
"name": "handleInput",
|
|
@@ -1309,7 +1455,7 @@
|
|
|
1309
1455
|
],
|
|
1310
1456
|
"events": [
|
|
1311
1457
|
{
|
|
1312
|
-
"description": "Fired when
|
|
1458
|
+
"description": "Fired when the selection changes. Detail: `{ value: string }` in single mode, `{ values: string[] }` when `multiple` is set.",
|
|
1313
1459
|
"name": "reke-change"
|
|
1314
1460
|
},
|
|
1315
1461
|
{
|
|
@@ -1334,6 +1480,24 @@
|
|
|
1334
1480
|
"default": "'Buscar...'",
|
|
1335
1481
|
"fieldName": "placeholder"
|
|
1336
1482
|
},
|
|
1483
|
+
{
|
|
1484
|
+
"name": "multiple",
|
|
1485
|
+
"type": {
|
|
1486
|
+
"text": "boolean"
|
|
1487
|
+
},
|
|
1488
|
+
"default": "false",
|
|
1489
|
+
"description": "Enables multi-selection. In this mode use `values` instead of `value`.",
|
|
1490
|
+
"fieldName": "multiple"
|
|
1491
|
+
},
|
|
1492
|
+
{
|
|
1493
|
+
"name": "tags",
|
|
1494
|
+
"type": {
|
|
1495
|
+
"text": "boolean"
|
|
1496
|
+
},
|
|
1497
|
+
"default": "false",
|
|
1498
|
+
"description": "Render selected values as dismissible chips inside the control. Ignored unless `multiple`.",
|
|
1499
|
+
"fieldName": "tags"
|
|
1500
|
+
},
|
|
1337
1501
|
{
|
|
1338
1502
|
"name": "disabled",
|
|
1339
1503
|
"type": {
|
|
@@ -2345,11 +2509,25 @@
|
|
|
2345
2509
|
}
|
|
2346
2510
|
],
|
|
2347
2511
|
"cssParts": [
|
|
2512
|
+
{
|
|
2513
|
+
"description": "The bordered box wrapping the input and adornments.",
|
|
2514
|
+
"name": "field"
|
|
2515
|
+
},
|
|
2348
2516
|
{
|
|
2349
2517
|
"description": "The inner input element.",
|
|
2350
2518
|
"name": "input"
|
|
2351
2519
|
}
|
|
2352
2520
|
],
|
|
2521
|
+
"slots": [
|
|
2522
|
+
{
|
|
2523
|
+
"description": "Content rendered inside the field, before the input (unit, icon, symbol).",
|
|
2524
|
+
"name": "prefix"
|
|
2525
|
+
},
|
|
2526
|
+
{
|
|
2527
|
+
"description": "Content rendered inside the field, after the input (unit, icon, symbol).",
|
|
2528
|
+
"name": "suffix"
|
|
2529
|
+
}
|
|
2530
|
+
],
|
|
2353
2531
|
"members": [
|
|
2354
2532
|
{
|
|
2355
2533
|
"kind": "field",
|
|
@@ -2417,6 +2595,87 @@
|
|
|
2417
2595
|
"default": "''",
|
|
2418
2596
|
"attribute": "label"
|
|
2419
2597
|
},
|
|
2598
|
+
{
|
|
2599
|
+
"kind": "field",
|
|
2600
|
+
"name": "name",
|
|
2601
|
+
"type": {
|
|
2602
|
+
"text": "string"
|
|
2603
|
+
},
|
|
2604
|
+
"default": "''",
|
|
2605
|
+
"attribute": "name"
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
"kind": "field",
|
|
2609
|
+
"name": "inputmode",
|
|
2610
|
+
"type": {
|
|
2611
|
+
"text": "'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | 'none' | undefined"
|
|
2612
|
+
},
|
|
2613
|
+
"attribute": "inputmode"
|
|
2614
|
+
},
|
|
2615
|
+
{
|
|
2616
|
+
"kind": "field",
|
|
2617
|
+
"name": "min",
|
|
2618
|
+
"type": {
|
|
2619
|
+
"text": "string | undefined"
|
|
2620
|
+
},
|
|
2621
|
+
"attribute": "min"
|
|
2622
|
+
},
|
|
2623
|
+
{
|
|
2624
|
+
"kind": "field",
|
|
2625
|
+
"name": "max",
|
|
2626
|
+
"type": {
|
|
2627
|
+
"text": "string | undefined"
|
|
2628
|
+
},
|
|
2629
|
+
"attribute": "max"
|
|
2630
|
+
},
|
|
2631
|
+
{
|
|
2632
|
+
"kind": "field",
|
|
2633
|
+
"name": "step",
|
|
2634
|
+
"type": {
|
|
2635
|
+
"text": "string | undefined"
|
|
2636
|
+
},
|
|
2637
|
+
"attribute": "step"
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
"kind": "field",
|
|
2641
|
+
"name": "maxlength",
|
|
2642
|
+
"type": {
|
|
2643
|
+
"text": "number | undefined"
|
|
2644
|
+
},
|
|
2645
|
+
"attribute": "maxlength"
|
|
2646
|
+
},
|
|
2647
|
+
{
|
|
2648
|
+
"kind": "field",
|
|
2649
|
+
"name": "autocomplete",
|
|
2650
|
+
"type": {
|
|
2651
|
+
"text": "string | undefined"
|
|
2652
|
+
},
|
|
2653
|
+
"attribute": "autocomplete"
|
|
2654
|
+
},
|
|
2655
|
+
{
|
|
2656
|
+
"kind": "field",
|
|
2657
|
+
"name": "required",
|
|
2658
|
+
"type": {
|
|
2659
|
+
"text": "boolean"
|
|
2660
|
+
},
|
|
2661
|
+
"default": "false",
|
|
2662
|
+
"attribute": "required",
|
|
2663
|
+
"reflects": true
|
|
2664
|
+
},
|
|
2665
|
+
{
|
|
2666
|
+
"kind": "method",
|
|
2667
|
+
"name": "focus",
|
|
2668
|
+
"parameters": [
|
|
2669
|
+
{
|
|
2670
|
+
"name": "options",
|
|
2671
|
+
"optional": true,
|
|
2672
|
+
"type": {
|
|
2673
|
+
"text": "FocusOptions"
|
|
2674
|
+
}
|
|
2675
|
+
}
|
|
2676
|
+
],
|
|
2677
|
+
"description": "Focus the inner input (delegatesFocus also makes host .focus() work)."
|
|
2678
|
+
},
|
|
2420
2679
|
{
|
|
2421
2680
|
"kind": "method",
|
|
2422
2681
|
"name": "handleInput",
|
|
@@ -2502,6 +2761,64 @@
|
|
|
2502
2761
|
},
|
|
2503
2762
|
"default": "''",
|
|
2504
2763
|
"fieldName": "label"
|
|
2764
|
+
},
|
|
2765
|
+
{
|
|
2766
|
+
"name": "name",
|
|
2767
|
+
"type": {
|
|
2768
|
+
"text": "string"
|
|
2769
|
+
},
|
|
2770
|
+
"default": "''",
|
|
2771
|
+
"fieldName": "name"
|
|
2772
|
+
},
|
|
2773
|
+
{
|
|
2774
|
+
"name": "inputmode",
|
|
2775
|
+
"type": {
|
|
2776
|
+
"text": "'text' | 'decimal' | 'numeric' | 'tel' | 'search' | 'email' | 'url' | 'none' | undefined"
|
|
2777
|
+
},
|
|
2778
|
+
"fieldName": "inputmode"
|
|
2779
|
+
},
|
|
2780
|
+
{
|
|
2781
|
+
"name": "min",
|
|
2782
|
+
"type": {
|
|
2783
|
+
"text": "string | undefined"
|
|
2784
|
+
},
|
|
2785
|
+
"fieldName": "min"
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
"name": "max",
|
|
2789
|
+
"type": {
|
|
2790
|
+
"text": "string | undefined"
|
|
2791
|
+
},
|
|
2792
|
+
"fieldName": "max"
|
|
2793
|
+
},
|
|
2794
|
+
{
|
|
2795
|
+
"name": "step",
|
|
2796
|
+
"type": {
|
|
2797
|
+
"text": "string | undefined"
|
|
2798
|
+
},
|
|
2799
|
+
"fieldName": "step"
|
|
2800
|
+
},
|
|
2801
|
+
{
|
|
2802
|
+
"name": "maxlength",
|
|
2803
|
+
"type": {
|
|
2804
|
+
"text": "number | undefined"
|
|
2805
|
+
},
|
|
2806
|
+
"fieldName": "maxlength"
|
|
2807
|
+
},
|
|
2808
|
+
{
|
|
2809
|
+
"name": "autocomplete",
|
|
2810
|
+
"type": {
|
|
2811
|
+
"text": "string | undefined"
|
|
2812
|
+
},
|
|
2813
|
+
"fieldName": "autocomplete"
|
|
2814
|
+
},
|
|
2815
|
+
{
|
|
2816
|
+
"name": "required",
|
|
2817
|
+
"type": {
|
|
2818
|
+
"text": "boolean"
|
|
2819
|
+
},
|
|
2820
|
+
"default": "false",
|
|
2821
|
+
"fieldName": "required"
|
|
2505
2822
|
}
|
|
2506
2823
|
],
|
|
2507
2824
|
"superclass": {
|
|
@@ -2534,110 +2851,80 @@
|
|
|
2534
2851
|
},
|
|
2535
2852
|
{
|
|
2536
2853
|
"kind": "javascript-module",
|
|
2537
|
-
"path": "src/components/reke-
|
|
2854
|
+
"path": "src/components/reke-menu/reke-menu.ts",
|
|
2538
2855
|
"declarations": [
|
|
2539
2856
|
{
|
|
2540
2857
|
"kind": "class",
|
|
2541
2858
|
"description": "",
|
|
2542
|
-
"name": "
|
|
2859
|
+
"name": "RekeMenu",
|
|
2543
2860
|
"cssProperties": [
|
|
2544
2861
|
{
|
|
2545
|
-
"description": "
|
|
2546
|
-
"name": "--reke-color-primary",
|
|
2547
|
-
"default": "#22C55E"
|
|
2548
|
-
},
|
|
2549
|
-
{
|
|
2550
|
-
"description": "Trigger and dropdown background.",
|
|
2551
|
-
"name": "--reke-color-surface",
|
|
2552
|
-
"default": "#1A1A1A"
|
|
2553
|
-
},
|
|
2554
|
-
{
|
|
2555
|
-
"description": "Option hover background.",
|
|
2862
|
+
"description": "Menu background.",
|
|
2556
2863
|
"name": "--reke-color-surface-elevated",
|
|
2557
2864
|
"default": "#151515"
|
|
2558
2865
|
},
|
|
2559
2866
|
{
|
|
2560
|
-
"description": "
|
|
2867
|
+
"description": "Menu border.",
|
|
2561
2868
|
"name": "--reke-color-border",
|
|
2562
2869
|
"default": "#252525"
|
|
2563
2870
|
},
|
|
2564
2871
|
{
|
|
2565
|
-
"description": "
|
|
2566
|
-
"name": "--reke-
|
|
2567
|
-
"default": "
|
|
2568
|
-
},
|
|
2569
|
-
{
|
|
2570
|
-
"description": "Text color.",
|
|
2571
|
-
"name": "--reke-color-text",
|
|
2572
|
-
"default": "#E5E5E5"
|
|
2573
|
-
},
|
|
2574
|
-
{
|
|
2575
|
-
"description": "Placeholder color.",
|
|
2576
|
-
"name": "--reke-color-text-muted",
|
|
2577
|
-
"default": "#525252"
|
|
2578
|
-
},
|
|
2579
|
-
{
|
|
2580
|
-
"description": "Label color.",
|
|
2581
|
-
"name": "--reke-color-text-label",
|
|
2582
|
-
"default": "#8A8A8A"
|
|
2872
|
+
"description": "Menu border radius.",
|
|
2873
|
+
"name": "--reke-radius",
|
|
2874
|
+
"default": "4px"
|
|
2583
2875
|
}
|
|
2584
2876
|
],
|
|
2585
2877
|
"cssParts": [
|
|
2586
2878
|
{
|
|
2587
|
-
"description": "The
|
|
2588
|
-
"name": "
|
|
2589
|
-
}
|
|
2879
|
+
"description": "The floating menu container.",
|
|
2880
|
+
"name": "menu"
|
|
2881
|
+
}
|
|
2882
|
+
],
|
|
2883
|
+
"slots": [
|
|
2590
2884
|
{
|
|
2591
|
-
"description": "
|
|
2592
|
-
"name": "
|
|
2885
|
+
"description": "Default slot for `reke-menu-item` elements.",
|
|
2886
|
+
"name": ""
|
|
2593
2887
|
}
|
|
2594
2888
|
],
|
|
2595
2889
|
"members": [
|
|
2596
2890
|
{
|
|
2597
2891
|
"kind": "field",
|
|
2598
|
-
"name": "
|
|
2599
|
-
"type": {
|
|
2600
|
-
"text": "string"
|
|
2601
|
-
},
|
|
2602
|
-
"default": "''",
|
|
2603
|
-
"attribute": "value"
|
|
2604
|
-
},
|
|
2605
|
-
{
|
|
2606
|
-
"kind": "field",
|
|
2607
|
-
"name": "placeholder",
|
|
2892
|
+
"name": "open",
|
|
2608
2893
|
"type": {
|
|
2609
|
-
"text": "
|
|
2894
|
+
"text": "boolean"
|
|
2610
2895
|
},
|
|
2611
|
-
"default": "
|
|
2612
|
-
"attribute": "
|
|
2896
|
+
"default": "false",
|
|
2897
|
+
"attribute": "open",
|
|
2898
|
+
"reflects": true
|
|
2613
2899
|
},
|
|
2614
2900
|
{
|
|
2615
2901
|
"kind": "field",
|
|
2616
|
-
"name": "
|
|
2902
|
+
"name": "x",
|
|
2617
2903
|
"type": {
|
|
2618
|
-
"text": "
|
|
2904
|
+
"text": "number"
|
|
2619
2905
|
},
|
|
2620
|
-
"default": "
|
|
2906
|
+
"default": "0",
|
|
2907
|
+
"description": "Viewport X coordinate (used when `anchor` is not set).",
|
|
2908
|
+
"attribute": "x"
|
|
2621
2909
|
},
|
|
2622
2910
|
{
|
|
2623
2911
|
"kind": "field",
|
|
2624
|
-
"name": "
|
|
2912
|
+
"name": "y",
|
|
2625
2913
|
"type": {
|
|
2626
|
-
"text": "
|
|
2914
|
+
"text": "number"
|
|
2627
2915
|
},
|
|
2628
|
-
"default": "
|
|
2629
|
-
"
|
|
2630
|
-
"
|
|
2916
|
+
"default": "0",
|
|
2917
|
+
"description": "Viewport Y coordinate (used when `anchor` is not set).",
|
|
2918
|
+
"attribute": "y"
|
|
2631
2919
|
},
|
|
2632
2920
|
{
|
|
2633
2921
|
"kind": "field",
|
|
2634
|
-
"name": "
|
|
2922
|
+
"name": "anchor",
|
|
2635
2923
|
"type": {
|
|
2636
|
-
"text": "
|
|
2924
|
+
"text": "HTMLElement | null"
|
|
2637
2925
|
},
|
|
2638
|
-
"default": "
|
|
2639
|
-
"
|
|
2640
|
-
"reflects": true
|
|
2926
|
+
"default": "null",
|
|
2927
|
+
"description": "Element to anchor the menu below. Overrides `x`/`y` when set."
|
|
2641
2928
|
},
|
|
2642
2929
|
{
|
|
2643
2930
|
"kind": "field",
|
|
@@ -2645,505 +2932,1578 @@
|
|
|
2645
2932
|
"type": {
|
|
2646
2933
|
"text": "string"
|
|
2647
2934
|
},
|
|
2648
|
-
"default": "''",
|
|
2935
|
+
"default": "'Menu'",
|
|
2649
2936
|
"attribute": "label"
|
|
2650
2937
|
},
|
|
2651
2938
|
{
|
|
2652
2939
|
"kind": "field",
|
|
2653
|
-
"name": "
|
|
2654
|
-
"
|
|
2655
|
-
"text": "SelectSize"
|
|
2656
|
-
},
|
|
2657
|
-
"default": "'md'",
|
|
2658
|
-
"attribute": "size",
|
|
2659
|
-
"reflects": true
|
|
2940
|
+
"name": "_boundOutsideClick",
|
|
2941
|
+
"privacy": "private"
|
|
2660
2942
|
},
|
|
2661
2943
|
{
|
|
2662
2944
|
"kind": "field",
|
|
2663
|
-
"name": "
|
|
2945
|
+
"name": "_boundClose",
|
|
2946
|
+
"privacy": "private"
|
|
2947
|
+
},
|
|
2948
|
+
{
|
|
2949
|
+
"kind": "method",
|
|
2950
|
+
"name": "handleOpen",
|
|
2951
|
+
"privacy": "private"
|
|
2952
|
+
},
|
|
2953
|
+
{
|
|
2954
|
+
"kind": "field",
|
|
2955
|
+
"name": "items",
|
|
2664
2956
|
"type": {
|
|
2665
|
-
"text": "
|
|
2957
|
+
"text": "RekeMenuItem[]"
|
|
2666
2958
|
},
|
|
2667
2959
|
"privacy": "private",
|
|
2668
|
-
"
|
|
2960
|
+
"readonly": true
|
|
2669
2961
|
},
|
|
2670
2962
|
{
|
|
2671
|
-
"kind": "
|
|
2672
|
-
"name": "
|
|
2963
|
+
"kind": "method",
|
|
2964
|
+
"name": "resolveOrigin",
|
|
2965
|
+
"privacy": "private",
|
|
2966
|
+
"return": {
|
|
2967
|
+
"type": {
|
|
2968
|
+
"text": "{ x: number; y: number }"
|
|
2969
|
+
}
|
|
2970
|
+
}
|
|
2971
|
+
},
|
|
2972
|
+
{
|
|
2973
|
+
"kind": "method",
|
|
2974
|
+
"name": "updatePosition",
|
|
2673
2975
|
"privacy": "private"
|
|
2674
2976
|
},
|
|
2675
2977
|
{
|
|
2676
|
-
"kind": "
|
|
2677
|
-
"name": "
|
|
2978
|
+
"kind": "method",
|
|
2979
|
+
"name": "addListeners",
|
|
2678
2980
|
"privacy": "private"
|
|
2679
2981
|
},
|
|
2680
2982
|
{
|
|
2681
2983
|
"kind": "method",
|
|
2682
|
-
"name": "
|
|
2683
|
-
"privacy": "private"
|
|
2684
|
-
"parameters": [
|
|
2685
|
-
{
|
|
2686
|
-
"name": "e",
|
|
2687
|
-
"type": {
|
|
2688
|
-
"text": "Event"
|
|
2689
|
-
}
|
|
2690
|
-
}
|
|
2691
|
-
]
|
|
2984
|
+
"name": "removeListeners",
|
|
2985
|
+
"privacy": "private"
|
|
2692
2986
|
},
|
|
2693
2987
|
{
|
|
2694
2988
|
"kind": "method",
|
|
2695
|
-
"name": "
|
|
2989
|
+
"name": "handleOutsideClick",
|
|
2696
2990
|
"privacy": "private",
|
|
2697
2991
|
"parameters": [
|
|
2698
2992
|
{
|
|
2699
2993
|
"name": "e",
|
|
2700
2994
|
"type": {
|
|
2701
|
-
"text": "
|
|
2995
|
+
"text": "Event"
|
|
2702
2996
|
}
|
|
2703
2997
|
}
|
|
2704
2998
|
]
|
|
2705
2999
|
},
|
|
2706
3000
|
{
|
|
2707
3001
|
"kind": "method",
|
|
2708
|
-
"name": "
|
|
3002
|
+
"name": "requestClose",
|
|
2709
3003
|
"privacy": "private"
|
|
2710
3004
|
},
|
|
2711
3005
|
{
|
|
2712
3006
|
"kind": "method",
|
|
2713
|
-
"name": "
|
|
3007
|
+
"name": "handleKeyDown",
|
|
2714
3008
|
"privacy": "private",
|
|
2715
3009
|
"parameters": [
|
|
2716
3010
|
{
|
|
2717
|
-
"name": "
|
|
3011
|
+
"name": "e",
|
|
2718
3012
|
"type": {
|
|
2719
|
-
"text": "
|
|
3013
|
+
"text": "KeyboardEvent"
|
|
2720
3014
|
}
|
|
2721
3015
|
}
|
|
2722
3016
|
]
|
|
2723
3017
|
},
|
|
2724
3018
|
{
|
|
2725
|
-
"kind": "
|
|
2726
|
-
"name": "
|
|
2727
|
-
"
|
|
2728
|
-
"text": "string | undefined"
|
|
2729
|
-
},
|
|
2730
|
-
"privacy": "private",
|
|
2731
|
-
"readonly": true
|
|
3019
|
+
"kind": "method",
|
|
3020
|
+
"name": "handleSelect",
|
|
3021
|
+
"privacy": "private"
|
|
2732
3022
|
}
|
|
2733
3023
|
],
|
|
2734
3024
|
"events": [
|
|
2735
3025
|
{
|
|
2736
|
-
"description": "Fired when
|
|
2737
|
-
"name": "reke-
|
|
3026
|
+
"description": "Fired when the menu requests to close (outside click, Escape, scroll, or item selection). The consumer should set `open=false`.",
|
|
3027
|
+
"name": "reke-close"
|
|
2738
3028
|
}
|
|
2739
3029
|
],
|
|
2740
3030
|
"attributes": [
|
|
2741
3031
|
{
|
|
2742
|
-
"name": "
|
|
2743
|
-
"type": {
|
|
2744
|
-
"text": "string"
|
|
2745
|
-
},
|
|
2746
|
-
"default": "''",
|
|
2747
|
-
"fieldName": "value"
|
|
2748
|
-
},
|
|
2749
|
-
{
|
|
2750
|
-
"name": "placeholder",
|
|
3032
|
+
"name": "open",
|
|
2751
3033
|
"type": {
|
|
2752
|
-
"text": "
|
|
3034
|
+
"text": "boolean"
|
|
2753
3035
|
},
|
|
2754
|
-
"default": "
|
|
2755
|
-
"fieldName": "
|
|
3036
|
+
"default": "false",
|
|
3037
|
+
"fieldName": "open"
|
|
2756
3038
|
},
|
|
2757
3039
|
{
|
|
2758
|
-
"name": "
|
|
3040
|
+
"name": "x",
|
|
2759
3041
|
"type": {
|
|
2760
|
-
"text": "
|
|
3042
|
+
"text": "number"
|
|
2761
3043
|
},
|
|
2762
|
-
"default": "
|
|
2763
|
-
"
|
|
3044
|
+
"default": "0",
|
|
3045
|
+
"description": "Viewport X coordinate (used when `anchor` is not set).",
|
|
3046
|
+
"fieldName": "x"
|
|
2764
3047
|
},
|
|
2765
3048
|
{
|
|
2766
|
-
"name": "
|
|
3049
|
+
"name": "y",
|
|
2767
3050
|
"type": {
|
|
2768
|
-
"text": "
|
|
3051
|
+
"text": "number"
|
|
2769
3052
|
},
|
|
2770
|
-
"default": "
|
|
2771
|
-
"
|
|
3053
|
+
"default": "0",
|
|
3054
|
+
"description": "Viewport Y coordinate (used when `anchor` is not set).",
|
|
3055
|
+
"fieldName": "y"
|
|
2772
3056
|
},
|
|
2773
3057
|
{
|
|
2774
3058
|
"name": "label",
|
|
2775
3059
|
"type": {
|
|
2776
3060
|
"text": "string"
|
|
2777
3061
|
},
|
|
2778
|
-
"default": "''",
|
|
3062
|
+
"default": "'Menu'",
|
|
2779
3063
|
"fieldName": "label"
|
|
2780
|
-
},
|
|
2781
|
-
{
|
|
2782
|
-
"name": "size",
|
|
2783
|
-
"type": {
|
|
2784
|
-
"text": "SelectSize"
|
|
2785
|
-
},
|
|
2786
|
-
"default": "'md'",
|
|
2787
|
-
"fieldName": "size"
|
|
2788
3064
|
}
|
|
2789
3065
|
],
|
|
2790
3066
|
"superclass": {
|
|
2791
3067
|
"name": "RekeElement",
|
|
2792
3068
|
"module": "/src/shared/base-element.js"
|
|
2793
3069
|
},
|
|
2794
|
-
"tagName": "reke-
|
|
3070
|
+
"tagName": "reke-menu",
|
|
2795
3071
|
"customElement": true,
|
|
2796
|
-
"summary": "A dropdown
|
|
3072
|
+
"summary": "A floating action menu (dropdown / context menu). Anchor it to\n`{x, y}` coordinates (right-click menus) or to an element via `anchor`.\nCloses on outside click, Escape, and scroll. Holds `reke-menu-item` children."
|
|
2797
3073
|
}
|
|
2798
3074
|
],
|
|
2799
3075
|
"exports": [
|
|
2800
3076
|
{
|
|
2801
3077
|
"kind": "js",
|
|
2802
|
-
"name": "
|
|
3078
|
+
"name": "RekeMenu",
|
|
2803
3079
|
"declaration": {
|
|
2804
|
-
"name": "
|
|
2805
|
-
"module": "src/components/reke-
|
|
3080
|
+
"name": "RekeMenu",
|
|
3081
|
+
"module": "src/components/reke-menu/reke-menu.ts"
|
|
2806
3082
|
}
|
|
2807
3083
|
},
|
|
2808
3084
|
{
|
|
2809
3085
|
"kind": "custom-element-definition",
|
|
2810
|
-
"name": "reke-
|
|
3086
|
+
"name": "reke-menu",
|
|
2811
3087
|
"declaration": {
|
|
2812
|
-
"name": "
|
|
2813
|
-
"module": "src/components/reke-
|
|
3088
|
+
"name": "RekeMenu",
|
|
3089
|
+
"module": "src/components/reke-menu/reke-menu.ts"
|
|
2814
3090
|
}
|
|
2815
3091
|
}
|
|
2816
3092
|
]
|
|
2817
3093
|
},
|
|
2818
3094
|
{
|
|
2819
3095
|
"kind": "javascript-module",
|
|
2820
|
-
"path": "src/components/reke-
|
|
3096
|
+
"path": "src/components/reke-menu-item/reke-menu-item.ts",
|
|
2821
3097
|
"declarations": [
|
|
2822
3098
|
{
|
|
2823
3099
|
"kind": "class",
|
|
2824
3100
|
"description": "",
|
|
2825
|
-
"name": "
|
|
3101
|
+
"name": "RekeMenuItem",
|
|
2826
3102
|
"cssProperties": [
|
|
2827
3103
|
{
|
|
2828
|
-
"description": "
|
|
2829
|
-
"name": "--reke-color-surface",
|
|
2830
|
-
"default": "#1A1A1A"
|
|
2831
|
-
},
|
|
2832
|
-
{
|
|
2833
|
-
"description": "Border and row divider color.",
|
|
2834
|
-
"name": "--reke-color-border",
|
|
2835
|
-
"default": "#252525"
|
|
2836
|
-
},
|
|
2837
|
-
{
|
|
2838
|
-
"description": "Cell text color.",
|
|
3104
|
+
"description": "Item text color.",
|
|
2839
3105
|
"name": "--reke-color-text",
|
|
2840
3106
|
"default": "#E5E5E5"
|
|
2841
3107
|
},
|
|
2842
3108
|
{
|
|
2843
|
-
"description": "
|
|
2844
|
-
"name": "--reke-color-
|
|
2845
|
-
"default": "#
|
|
2846
|
-
},
|
|
2847
|
-
{
|
|
2848
|
-
"description": "Chevron focus outline color.",
|
|
2849
|
-
"name": "--reke-color-primary",
|
|
2850
|
-
"default": "#22C55E"
|
|
3109
|
+
"description": "Danger variant text color.",
|
|
3110
|
+
"name": "--reke-color-danger",
|
|
3111
|
+
"default": "#EF4444"
|
|
2851
3112
|
},
|
|
2852
3113
|
{
|
|
2853
|
-
"description": "
|
|
2854
|
-
"name": "--reke-
|
|
2855
|
-
"default": "
|
|
3114
|
+
"description": "Hover/focus background.",
|
|
3115
|
+
"name": "--reke-color-surface-elevated",
|
|
3116
|
+
"default": "#151515"
|
|
2856
3117
|
}
|
|
2857
3118
|
],
|
|
2858
3119
|
"cssParts": [
|
|
2859
3120
|
{
|
|
2860
|
-
"description": "The
|
|
2861
|
-
"name": "
|
|
2862
|
-
},
|
|
2863
|
-
{
|
|
2864
|
-
"description": "The thead element.",
|
|
2865
|
-
"name": "header"
|
|
2866
|
-
},
|
|
2867
|
-
{
|
|
2868
|
-
"description": "The tbody element.",
|
|
2869
|
-
"name": "body"
|
|
2870
|
-
},
|
|
2871
|
-
{
|
|
2872
|
-
"description": "Each tbody data tr element.",
|
|
2873
|
-
"name": "row"
|
|
2874
|
-
},
|
|
2875
|
-
{
|
|
2876
|
-
"description": "Each tbody td element.",
|
|
2877
|
-
"name": "cell"
|
|
2878
|
-
},
|
|
2879
|
-
{
|
|
2880
|
-
"description": "Each thead th element.",
|
|
2881
|
-
"name": "header-cell"
|
|
2882
|
-
},
|
|
2883
|
-
{
|
|
2884
|
-
"description": "The toolbar wrapper div.",
|
|
2885
|
-
"name": "toolbar"
|
|
2886
|
-
},
|
|
2887
|
-
{
|
|
2888
|
-
"description": "The footer wrapper div.",
|
|
2889
|
-
"name": "footer"
|
|
2890
|
-
},
|
|
2891
|
-
{
|
|
2892
|
-
"description": "The tr for expanded content.",
|
|
2893
|
-
"name": "expand-row"
|
|
2894
|
-
},
|
|
2895
|
-
{
|
|
2896
|
-
"description": "The td spanning all columns in the expanded row.",
|
|
2897
|
-
"name": "expand-content"
|
|
2898
|
-
},
|
|
2899
|
-
{
|
|
2900
|
-
"description": "The leading `<td>` that contains the chevron button (only when `expandable`).",
|
|
2901
|
-
"name": "expand-toggle-cell"
|
|
2902
|
-
},
|
|
2903
|
-
{
|
|
2904
|
-
"description": "The chevron `<button>` itself (only when `expandable`).",
|
|
2905
|
-
"name": "expand-toggle-button"
|
|
3121
|
+
"description": "The inner button element.",
|
|
3122
|
+
"name": "item"
|
|
2906
3123
|
}
|
|
2907
3124
|
],
|
|
2908
3125
|
"slots": [
|
|
2909
3126
|
{
|
|
2910
|
-
"description": "
|
|
2911
|
-
"name": "
|
|
2912
|
-
},
|
|
2913
|
-
{
|
|
2914
|
-
"description": "Footer area below the table (pagination, record count).",
|
|
2915
|
-
"name": "footer"
|
|
3127
|
+
"description": "Default slot for the item label.",
|
|
3128
|
+
"name": ""
|
|
2916
3129
|
},
|
|
2917
3130
|
{
|
|
2918
|
-
"description": "
|
|
2919
|
-
"name": "
|
|
3131
|
+
"description": "Content rendered before the label (e.g. an icon).",
|
|
3132
|
+
"name": "prefix"
|
|
2920
3133
|
}
|
|
2921
3134
|
],
|
|
2922
3135
|
"members": [
|
|
2923
3136
|
{
|
|
2924
3137
|
"kind": "field",
|
|
2925
|
-
"name": "
|
|
2926
|
-
"type": {
|
|
2927
|
-
"text": "TableColumn[]"
|
|
2928
|
-
},
|
|
2929
|
-
"default": "[]"
|
|
2930
|
-
},
|
|
2931
|
-
{
|
|
2932
|
-
"kind": "field",
|
|
2933
|
-
"name": "rows",
|
|
3138
|
+
"name": "variant",
|
|
2934
3139
|
"type": {
|
|
2935
|
-
"text": "
|
|
3140
|
+
"text": "MenuItemVariant"
|
|
2936
3141
|
},
|
|
2937
|
-
"default": "
|
|
3142
|
+
"default": "'default'",
|
|
3143
|
+
"attribute": "variant",
|
|
3144
|
+
"reflects": true
|
|
2938
3145
|
},
|
|
2939
3146
|
{
|
|
2940
3147
|
"kind": "field",
|
|
2941
|
-
"name": "
|
|
3148
|
+
"name": "disabled",
|
|
2942
3149
|
"type": {
|
|
2943
3150
|
"text": "boolean"
|
|
2944
3151
|
},
|
|
2945
3152
|
"default": "false",
|
|
2946
|
-
"attribute": "
|
|
3153
|
+
"attribute": "disabled",
|
|
2947
3154
|
"reflects": true
|
|
2948
3155
|
},
|
|
2949
3156
|
{
|
|
2950
|
-
"kind": "
|
|
3157
|
+
"kind": "method",
|
|
3158
|
+
"name": "focus",
|
|
3159
|
+
"parameters": [
|
|
3160
|
+
{
|
|
3161
|
+
"name": "options",
|
|
3162
|
+
"optional": true,
|
|
3163
|
+
"type": {
|
|
3164
|
+
"text": "FocusOptions"
|
|
3165
|
+
}
|
|
3166
|
+
}
|
|
3167
|
+
],
|
|
3168
|
+
"description": "Focus the inner button (used by reke-menu for keyboard navigation)."
|
|
3169
|
+
},
|
|
3170
|
+
{
|
|
3171
|
+
"kind": "method",
|
|
3172
|
+
"name": "handleClick",
|
|
3173
|
+
"privacy": "private",
|
|
3174
|
+
"parameters": [
|
|
3175
|
+
{
|
|
3176
|
+
"name": "e",
|
|
3177
|
+
"type": {
|
|
3178
|
+
"text": "MouseEvent"
|
|
3179
|
+
}
|
|
3180
|
+
}
|
|
3181
|
+
]
|
|
3182
|
+
}
|
|
3183
|
+
],
|
|
3184
|
+
"events": [
|
|
3185
|
+
{
|
|
3186
|
+
"description": "Fired when the item is activated and not disabled.",
|
|
3187
|
+
"name": "reke-select"
|
|
3188
|
+
}
|
|
3189
|
+
],
|
|
3190
|
+
"attributes": [
|
|
3191
|
+
{
|
|
3192
|
+
"name": "variant",
|
|
3193
|
+
"type": {
|
|
3194
|
+
"text": "MenuItemVariant"
|
|
3195
|
+
},
|
|
3196
|
+
"default": "'default'",
|
|
3197
|
+
"fieldName": "variant"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"name": "disabled",
|
|
3201
|
+
"type": {
|
|
3202
|
+
"text": "boolean"
|
|
3203
|
+
},
|
|
3204
|
+
"default": "false",
|
|
3205
|
+
"fieldName": "disabled"
|
|
3206
|
+
}
|
|
3207
|
+
],
|
|
3208
|
+
"superclass": {
|
|
3209
|
+
"name": "RekeElement",
|
|
3210
|
+
"module": "/src/shared/base-element.js"
|
|
3211
|
+
},
|
|
3212
|
+
"tagName": "reke-menu-item",
|
|
3213
|
+
"customElement": true,
|
|
3214
|
+
"summary": "A single actionable item inside a `reke-menu`."
|
|
3215
|
+
}
|
|
3216
|
+
],
|
|
3217
|
+
"exports": [
|
|
3218
|
+
{
|
|
3219
|
+
"kind": "js",
|
|
3220
|
+
"name": "RekeMenuItem",
|
|
3221
|
+
"declaration": {
|
|
3222
|
+
"name": "RekeMenuItem",
|
|
3223
|
+
"module": "src/components/reke-menu-item/reke-menu-item.ts"
|
|
3224
|
+
}
|
|
3225
|
+
},
|
|
3226
|
+
{
|
|
3227
|
+
"kind": "custom-element-definition",
|
|
3228
|
+
"name": "reke-menu-item",
|
|
3229
|
+
"declaration": {
|
|
3230
|
+
"name": "RekeMenuItem",
|
|
3231
|
+
"module": "src/components/reke-menu-item/reke-menu-item.ts"
|
|
3232
|
+
}
|
|
3233
|
+
}
|
|
3234
|
+
]
|
|
3235
|
+
},
|
|
3236
|
+
{
|
|
3237
|
+
"kind": "javascript-module",
|
|
3238
|
+
"path": "src/components/reke-pie-chart/reke-pie-chart.ts",
|
|
3239
|
+
"declarations": [
|
|
3240
|
+
{
|
|
3241
|
+
"kind": "class",
|
|
3242
|
+
"description": "",
|
|
3243
|
+
"name": "RekePieChart",
|
|
3244
|
+
"cssProperties": [
|
|
3245
|
+
{
|
|
3246
|
+
"description": "First slice / accent color.",
|
|
3247
|
+
"name": "--reke-color-primary",
|
|
3248
|
+
"default": "#22C55E"
|
|
3249
|
+
}
|
|
3250
|
+
],
|
|
3251
|
+
"cssParts": [
|
|
3252
|
+
{
|
|
3253
|
+
"description": "The chart canvas container.",
|
|
3254
|
+
"name": "chart"
|
|
3255
|
+
}
|
|
3256
|
+
],
|
|
3257
|
+
"members": [
|
|
3258
|
+
{
|
|
3259
|
+
"kind": "field",
|
|
3260
|
+
"name": "data",
|
|
3261
|
+
"type": {
|
|
3262
|
+
"text": "PieChartDatum[]"
|
|
3263
|
+
},
|
|
3264
|
+
"default": "[]",
|
|
3265
|
+
"description": "Slices to render."
|
|
3266
|
+
},
|
|
3267
|
+
{
|
|
3268
|
+
"kind": "field",
|
|
3269
|
+
"name": "variant",
|
|
3270
|
+
"type": {
|
|
3271
|
+
"text": "PieChartVariant"
|
|
3272
|
+
},
|
|
3273
|
+
"default": "'donut'",
|
|
3274
|
+
"description": "Pie (filled) or donut (ring).",
|
|
3275
|
+
"attribute": "variant",
|
|
3276
|
+
"reflects": true
|
|
3277
|
+
},
|
|
3278
|
+
{
|
|
3279
|
+
"kind": "field",
|
|
3280
|
+
"name": "label",
|
|
3281
|
+
"type": {
|
|
3282
|
+
"text": "string"
|
|
3283
|
+
},
|
|
3284
|
+
"default": "'Pie chart'",
|
|
3285
|
+
"description": "Accessible label describing the chart. Required for screen readers.",
|
|
3286
|
+
"attribute": "label"
|
|
3287
|
+
},
|
|
3288
|
+
{
|
|
3289
|
+
"kind": "field",
|
|
3290
|
+
"name": "size",
|
|
3291
|
+
"type": {
|
|
3292
|
+
"text": "number | undefined"
|
|
3293
|
+
},
|
|
3294
|
+
"description": "Square size in px. Falls back to filling the container.",
|
|
3295
|
+
"attribute": "size"
|
|
3296
|
+
},
|
|
3297
|
+
{
|
|
3298
|
+
"kind": "field",
|
|
3299
|
+
"name": "showLegend",
|
|
3300
|
+
"type": {
|
|
3301
|
+
"text": "boolean"
|
|
3302
|
+
},
|
|
3303
|
+
"default": "false",
|
|
3304
|
+
"description": "Show the legend below the chart.",
|
|
3305
|
+
"attribute": "show-legend",
|
|
3306
|
+
"reflects": true
|
|
3307
|
+
},
|
|
3308
|
+
{
|
|
3309
|
+
"kind": "field",
|
|
3310
|
+
"name": "loading",
|
|
3311
|
+
"type": {
|
|
3312
|
+
"text": "boolean"
|
|
3313
|
+
},
|
|
3314
|
+
"default": "false",
|
|
3315
|
+
"description": "Show ECharts' native loading spinner (skeleton) over the chart.",
|
|
3316
|
+
"attribute": "loading",
|
|
3317
|
+
"reflects": true
|
|
3318
|
+
},
|
|
3319
|
+
{
|
|
3320
|
+
"kind": "field",
|
|
3321
|
+
"name": "palette",
|
|
3322
|
+
"type": {
|
|
3323
|
+
"text": "string[] | undefined"
|
|
3324
|
+
},
|
|
3325
|
+
"description": "Explicit color palette. Overrides the `--reke-chart-*` tokens when set."
|
|
3326
|
+
},
|
|
3327
|
+
{
|
|
3328
|
+
"kind": "field",
|
|
3329
|
+
"name": "chart",
|
|
3330
|
+
"type": {
|
|
3331
|
+
"text": "ECharts | undefined"
|
|
3332
|
+
},
|
|
3333
|
+
"privacy": "private"
|
|
3334
|
+
},
|
|
3335
|
+
{
|
|
3336
|
+
"kind": "field",
|
|
3337
|
+
"name": "observer",
|
|
3338
|
+
"type": {
|
|
3339
|
+
"text": "ResizeObserver | undefined"
|
|
3340
|
+
},
|
|
3341
|
+
"privacy": "private"
|
|
3342
|
+
},
|
|
3343
|
+
{
|
|
3344
|
+
"kind": "method",
|
|
3345
|
+
"name": "readToken",
|
|
3346
|
+
"privacy": "private",
|
|
3347
|
+
"return": {
|
|
3348
|
+
"type": {
|
|
3349
|
+
"text": "string"
|
|
3350
|
+
}
|
|
3351
|
+
},
|
|
3352
|
+
"parameters": [
|
|
3353
|
+
{
|
|
3354
|
+
"name": "name",
|
|
3355
|
+
"type": {
|
|
3356
|
+
"text": "string"
|
|
3357
|
+
}
|
|
3358
|
+
},
|
|
3359
|
+
{
|
|
3360
|
+
"name": "fallback",
|
|
3361
|
+
"type": {
|
|
3362
|
+
"text": "string"
|
|
3363
|
+
}
|
|
3364
|
+
}
|
|
3365
|
+
],
|
|
3366
|
+
"description": "Read a CSS custom property off the host's computed style (canvas can't read var())."
|
|
3367
|
+
},
|
|
3368
|
+
{
|
|
3369
|
+
"kind": "method",
|
|
3370
|
+
"name": "resolvePalette",
|
|
3371
|
+
"privacy": "private",
|
|
3372
|
+
"return": {
|
|
3373
|
+
"type": {
|
|
3374
|
+
"text": "string[]"
|
|
3375
|
+
}
|
|
3376
|
+
}
|
|
3377
|
+
},
|
|
3378
|
+
{
|
|
3379
|
+
"kind": "method",
|
|
3380
|
+
"name": "applyLoading",
|
|
3381
|
+
"privacy": "private",
|
|
3382
|
+
"return": {
|
|
3383
|
+
"type": {
|
|
3384
|
+
"text": "void"
|
|
3385
|
+
}
|
|
3386
|
+
}
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
"kind": "field",
|
|
3390
|
+
"name": "total",
|
|
3391
|
+
"type": {
|
|
3392
|
+
"text": "number"
|
|
3393
|
+
},
|
|
3394
|
+
"privacy": "private",
|
|
3395
|
+
"readonly": true
|
|
3396
|
+
},
|
|
3397
|
+
{
|
|
3398
|
+
"kind": "field",
|
|
3399
|
+
"name": "chartAriaLabel",
|
|
3400
|
+
"type": {
|
|
3401
|
+
"text": "string"
|
|
3402
|
+
},
|
|
3403
|
+
"privacy": "private",
|
|
3404
|
+
"readonly": true
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
"kind": "method",
|
|
3408
|
+
"name": "buildOption",
|
|
3409
|
+
"privacy": "private",
|
|
3410
|
+
"return": {
|
|
3411
|
+
"type": {
|
|
3412
|
+
"text": "ChartOption"
|
|
3413
|
+
}
|
|
3414
|
+
}
|
|
3415
|
+
}
|
|
3416
|
+
],
|
|
3417
|
+
"events": [
|
|
3418
|
+
{
|
|
3419
|
+
"description": "Fired when a slice is clicked. `detail: { name, value, percent }`.",
|
|
3420
|
+
"name": "reke-pie-chart-select"
|
|
3421
|
+
}
|
|
3422
|
+
],
|
|
3423
|
+
"attributes": [
|
|
3424
|
+
{
|
|
3425
|
+
"name": "variant",
|
|
3426
|
+
"type": {
|
|
3427
|
+
"text": "PieChartVariant"
|
|
3428
|
+
},
|
|
3429
|
+
"default": "'donut'",
|
|
3430
|
+
"description": "Pie (filled) or donut (ring).",
|
|
3431
|
+
"fieldName": "variant"
|
|
3432
|
+
},
|
|
3433
|
+
{
|
|
3434
|
+
"name": "label",
|
|
3435
|
+
"type": {
|
|
3436
|
+
"text": "string"
|
|
3437
|
+
},
|
|
3438
|
+
"default": "'Pie chart'",
|
|
3439
|
+
"description": "Accessible label describing the chart. Required for screen readers.",
|
|
3440
|
+
"fieldName": "label"
|
|
3441
|
+
},
|
|
3442
|
+
{
|
|
3443
|
+
"name": "size",
|
|
3444
|
+
"type": {
|
|
3445
|
+
"text": "number | undefined"
|
|
3446
|
+
},
|
|
3447
|
+
"description": "Square size in px. Falls back to filling the container.",
|
|
3448
|
+
"fieldName": "size"
|
|
3449
|
+
},
|
|
3450
|
+
{
|
|
3451
|
+
"name": "show-legend",
|
|
3452
|
+
"type": {
|
|
3453
|
+
"text": "boolean"
|
|
3454
|
+
},
|
|
3455
|
+
"default": "false",
|
|
3456
|
+
"description": "Show the legend below the chart.",
|
|
3457
|
+
"fieldName": "showLegend"
|
|
3458
|
+
},
|
|
3459
|
+
{
|
|
3460
|
+
"name": "loading",
|
|
3461
|
+
"type": {
|
|
3462
|
+
"text": "boolean"
|
|
3463
|
+
},
|
|
3464
|
+
"default": "false",
|
|
3465
|
+
"description": "Show ECharts' native loading spinner (skeleton) over the chart.",
|
|
3466
|
+
"fieldName": "loading"
|
|
3467
|
+
}
|
|
3468
|
+
],
|
|
3469
|
+
"superclass": {
|
|
3470
|
+
"name": "RekeElement",
|
|
3471
|
+
"module": "/src/shared/base-element.js"
|
|
3472
|
+
},
|
|
3473
|
+
"tagName": "reke-pie-chart",
|
|
3474
|
+
"customElement": true,
|
|
3475
|
+
"summary": "A circular (pie / donut) chart rendered with ECharts, isolated in Shadow DOM."
|
|
3476
|
+
}
|
|
3477
|
+
],
|
|
3478
|
+
"exports": [
|
|
3479
|
+
{
|
|
3480
|
+
"kind": "js",
|
|
3481
|
+
"name": "RekePieChart",
|
|
3482
|
+
"declaration": {
|
|
3483
|
+
"name": "RekePieChart",
|
|
3484
|
+
"module": "src/components/reke-pie-chart/reke-pie-chart.ts"
|
|
3485
|
+
}
|
|
3486
|
+
},
|
|
3487
|
+
{
|
|
3488
|
+
"kind": "custom-element-definition",
|
|
3489
|
+
"name": "reke-pie-chart",
|
|
3490
|
+
"declaration": {
|
|
3491
|
+
"name": "RekePieChart",
|
|
3492
|
+
"module": "src/components/reke-pie-chart/reke-pie-chart.ts"
|
|
3493
|
+
}
|
|
3494
|
+
}
|
|
3495
|
+
]
|
|
3496
|
+
},
|
|
3497
|
+
{
|
|
3498
|
+
"kind": "javascript-module",
|
|
3499
|
+
"path": "src/components/reke-select/reke-select.ts",
|
|
3500
|
+
"declarations": [
|
|
3501
|
+
{
|
|
3502
|
+
"kind": "class",
|
|
3503
|
+
"description": "",
|
|
3504
|
+
"name": "RekeSelect",
|
|
3505
|
+
"cssProperties": [
|
|
3506
|
+
{
|
|
3507
|
+
"description": "Focus ring and selected option color.",
|
|
3508
|
+
"name": "--reke-color-primary",
|
|
3509
|
+
"default": "#22C55E"
|
|
3510
|
+
},
|
|
3511
|
+
{
|
|
3512
|
+
"description": "Trigger and dropdown background.",
|
|
3513
|
+
"name": "--reke-color-surface",
|
|
3514
|
+
"default": "#1A1A1A"
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
"description": "Option hover background.",
|
|
3518
|
+
"name": "--reke-color-surface-elevated",
|
|
3519
|
+
"default": "#151515"
|
|
3520
|
+
},
|
|
3521
|
+
{
|
|
3522
|
+
"description": "Trigger and dropdown border.",
|
|
3523
|
+
"name": "--reke-color-border",
|
|
3524
|
+
"default": "#252525"
|
|
3525
|
+
},
|
|
3526
|
+
{
|
|
3527
|
+
"description": "Error state border.",
|
|
3528
|
+
"name": "--reke-color-danger",
|
|
3529
|
+
"default": "#EF4444"
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
"description": "Text color.",
|
|
3533
|
+
"name": "--reke-color-text",
|
|
3534
|
+
"default": "#E5E5E5"
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"description": "Placeholder color.",
|
|
3538
|
+
"name": "--reke-color-text-muted",
|
|
3539
|
+
"default": "#525252"
|
|
3540
|
+
},
|
|
3541
|
+
{
|
|
3542
|
+
"description": "Label color.",
|
|
3543
|
+
"name": "--reke-color-text-label",
|
|
3544
|
+
"default": "#8A8A8A"
|
|
3545
|
+
}
|
|
3546
|
+
],
|
|
3547
|
+
"cssParts": [
|
|
3548
|
+
{
|
|
3549
|
+
"description": "The trigger button element.",
|
|
3550
|
+
"name": "trigger"
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
"description": "The dropdown list container.",
|
|
3554
|
+
"name": "dropdown"
|
|
3555
|
+
}
|
|
3556
|
+
],
|
|
3557
|
+
"members": [
|
|
3558
|
+
{
|
|
3559
|
+
"kind": "field",
|
|
3560
|
+
"name": "value",
|
|
3561
|
+
"type": {
|
|
3562
|
+
"text": "string"
|
|
3563
|
+
},
|
|
3564
|
+
"default": "''",
|
|
3565
|
+
"attribute": "value"
|
|
3566
|
+
},
|
|
3567
|
+
{
|
|
3568
|
+
"kind": "field",
|
|
3569
|
+
"name": "placeholder",
|
|
3570
|
+
"type": {
|
|
3571
|
+
"text": "string"
|
|
3572
|
+
},
|
|
3573
|
+
"default": "'Select...'",
|
|
3574
|
+
"attribute": "placeholder"
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"kind": "field",
|
|
3578
|
+
"name": "options",
|
|
3579
|
+
"type": {
|
|
3580
|
+
"text": "SelectOption[]"
|
|
3581
|
+
},
|
|
3582
|
+
"default": "[]"
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
"kind": "field",
|
|
3586
|
+
"name": "disabled",
|
|
3587
|
+
"type": {
|
|
3588
|
+
"text": "boolean"
|
|
3589
|
+
},
|
|
3590
|
+
"default": "false",
|
|
3591
|
+
"attribute": "disabled",
|
|
3592
|
+
"reflects": true
|
|
3593
|
+
},
|
|
3594
|
+
{
|
|
3595
|
+
"kind": "field",
|
|
3596
|
+
"name": "error",
|
|
3597
|
+
"type": {
|
|
3598
|
+
"text": "boolean"
|
|
3599
|
+
},
|
|
3600
|
+
"default": "false",
|
|
3601
|
+
"attribute": "error",
|
|
3602
|
+
"reflects": true
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
"kind": "field",
|
|
3606
|
+
"name": "label",
|
|
3607
|
+
"type": {
|
|
3608
|
+
"text": "string"
|
|
3609
|
+
},
|
|
3610
|
+
"default": "''",
|
|
3611
|
+
"attribute": "label"
|
|
3612
|
+
},
|
|
3613
|
+
{
|
|
3614
|
+
"kind": "field",
|
|
3615
|
+
"name": "size",
|
|
3616
|
+
"type": {
|
|
3617
|
+
"text": "SelectSize"
|
|
3618
|
+
},
|
|
3619
|
+
"default": "'md'",
|
|
3620
|
+
"attribute": "size",
|
|
3621
|
+
"reflects": true
|
|
3622
|
+
},
|
|
3623
|
+
{
|
|
3624
|
+
"kind": "field",
|
|
3625
|
+
"name": "_open",
|
|
3626
|
+
"type": {
|
|
3627
|
+
"text": "boolean"
|
|
3628
|
+
},
|
|
3629
|
+
"privacy": "private",
|
|
3630
|
+
"default": "false"
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"kind": "field",
|
|
3634
|
+
"name": "_boundHandleOutsideClick",
|
|
3635
|
+
"privacy": "private"
|
|
3636
|
+
},
|
|
3637
|
+
{
|
|
3638
|
+
"kind": "field",
|
|
3639
|
+
"name": "_boundHandleKeyDown",
|
|
3640
|
+
"privacy": "private"
|
|
3641
|
+
},
|
|
3642
|
+
{
|
|
3643
|
+
"kind": "method",
|
|
3644
|
+
"name": "handleOutsideClick",
|
|
3645
|
+
"privacy": "private",
|
|
3646
|
+
"parameters": [
|
|
3647
|
+
{
|
|
3648
|
+
"name": "e",
|
|
3649
|
+
"type": {
|
|
3650
|
+
"text": "Event"
|
|
3651
|
+
}
|
|
3652
|
+
}
|
|
3653
|
+
]
|
|
3654
|
+
},
|
|
3655
|
+
{
|
|
3656
|
+
"kind": "method",
|
|
3657
|
+
"name": "handleKeyDown",
|
|
3658
|
+
"privacy": "private",
|
|
3659
|
+
"parameters": [
|
|
3660
|
+
{
|
|
3661
|
+
"name": "e",
|
|
3662
|
+
"type": {
|
|
3663
|
+
"text": "KeyboardEvent"
|
|
3664
|
+
}
|
|
3665
|
+
}
|
|
3666
|
+
]
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
"kind": "method",
|
|
3670
|
+
"name": "handleTriggerClick",
|
|
3671
|
+
"privacy": "private"
|
|
3672
|
+
},
|
|
3673
|
+
{
|
|
3674
|
+
"kind": "method",
|
|
3675
|
+
"name": "handleOptionClick",
|
|
3676
|
+
"privacy": "private",
|
|
3677
|
+
"parameters": [
|
|
3678
|
+
{
|
|
3679
|
+
"name": "optionValue",
|
|
3680
|
+
"type": {
|
|
3681
|
+
"text": "string"
|
|
3682
|
+
}
|
|
3683
|
+
}
|
|
3684
|
+
]
|
|
3685
|
+
},
|
|
3686
|
+
{
|
|
3687
|
+
"kind": "field",
|
|
3688
|
+
"name": "selectedLabel",
|
|
3689
|
+
"type": {
|
|
3690
|
+
"text": "string | undefined"
|
|
3691
|
+
},
|
|
3692
|
+
"privacy": "private",
|
|
3693
|
+
"readonly": true
|
|
3694
|
+
}
|
|
3695
|
+
],
|
|
3696
|
+
"events": [
|
|
3697
|
+
{
|
|
3698
|
+
"description": "Fired when an option is selected. Detail: `{ value: string }`.",
|
|
3699
|
+
"name": "reke-change"
|
|
3700
|
+
}
|
|
3701
|
+
],
|
|
3702
|
+
"attributes": [
|
|
3703
|
+
{
|
|
3704
|
+
"name": "value",
|
|
3705
|
+
"type": {
|
|
3706
|
+
"text": "string"
|
|
3707
|
+
},
|
|
3708
|
+
"default": "''",
|
|
3709
|
+
"fieldName": "value"
|
|
3710
|
+
},
|
|
3711
|
+
{
|
|
3712
|
+
"name": "placeholder",
|
|
3713
|
+
"type": {
|
|
3714
|
+
"text": "string"
|
|
3715
|
+
},
|
|
3716
|
+
"default": "'Select...'",
|
|
3717
|
+
"fieldName": "placeholder"
|
|
3718
|
+
},
|
|
3719
|
+
{
|
|
3720
|
+
"name": "disabled",
|
|
3721
|
+
"type": {
|
|
3722
|
+
"text": "boolean"
|
|
3723
|
+
},
|
|
3724
|
+
"default": "false",
|
|
3725
|
+
"fieldName": "disabled"
|
|
3726
|
+
},
|
|
3727
|
+
{
|
|
3728
|
+
"name": "error",
|
|
3729
|
+
"type": {
|
|
3730
|
+
"text": "boolean"
|
|
3731
|
+
},
|
|
3732
|
+
"default": "false",
|
|
3733
|
+
"fieldName": "error"
|
|
3734
|
+
},
|
|
3735
|
+
{
|
|
3736
|
+
"name": "label",
|
|
3737
|
+
"type": {
|
|
3738
|
+
"text": "string"
|
|
3739
|
+
},
|
|
3740
|
+
"default": "''",
|
|
3741
|
+
"fieldName": "label"
|
|
3742
|
+
},
|
|
3743
|
+
{
|
|
3744
|
+
"name": "size",
|
|
3745
|
+
"type": {
|
|
3746
|
+
"text": "SelectSize"
|
|
3747
|
+
},
|
|
3748
|
+
"default": "'md'",
|
|
3749
|
+
"fieldName": "size"
|
|
3750
|
+
}
|
|
3751
|
+
],
|
|
3752
|
+
"superclass": {
|
|
3753
|
+
"name": "RekeElement",
|
|
3754
|
+
"module": "/src/shared/base-element.js"
|
|
3755
|
+
},
|
|
3756
|
+
"tagName": "reke-select",
|
|
3757
|
+
"customElement": true,
|
|
3758
|
+
"summary": "A dropdown select component with sizes, error, and disabled states."
|
|
3759
|
+
}
|
|
3760
|
+
],
|
|
3761
|
+
"exports": [
|
|
3762
|
+
{
|
|
3763
|
+
"kind": "js",
|
|
3764
|
+
"name": "RekeSelect",
|
|
3765
|
+
"declaration": {
|
|
3766
|
+
"name": "RekeSelect",
|
|
3767
|
+
"module": "src/components/reke-select/reke-select.ts"
|
|
3768
|
+
}
|
|
3769
|
+
},
|
|
3770
|
+
{
|
|
3771
|
+
"kind": "custom-element-definition",
|
|
3772
|
+
"name": "reke-select",
|
|
3773
|
+
"declaration": {
|
|
3774
|
+
"name": "RekeSelect",
|
|
3775
|
+
"module": "src/components/reke-select/reke-select.ts"
|
|
3776
|
+
}
|
|
3777
|
+
}
|
|
3778
|
+
]
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
"kind": "javascript-module",
|
|
3782
|
+
"path": "src/components/reke-table/reke-table.ts",
|
|
3783
|
+
"declarations": [
|
|
3784
|
+
{
|
|
3785
|
+
"kind": "class",
|
|
3786
|
+
"description": "",
|
|
3787
|
+
"name": "RekeTable",
|
|
3788
|
+
"cssProperties": [
|
|
3789
|
+
{
|
|
3790
|
+
"description": "Table background.",
|
|
3791
|
+
"name": "--reke-color-surface",
|
|
3792
|
+
"default": "#1A1A1A"
|
|
3793
|
+
},
|
|
3794
|
+
{
|
|
3795
|
+
"description": "Border and row divider color.",
|
|
3796
|
+
"name": "--reke-color-border",
|
|
3797
|
+
"default": "#252525"
|
|
3798
|
+
},
|
|
3799
|
+
{
|
|
3800
|
+
"description": "Cell text color.",
|
|
3801
|
+
"name": "--reke-color-text",
|
|
3802
|
+
"default": "#E5E5E5"
|
|
3803
|
+
},
|
|
3804
|
+
{
|
|
3805
|
+
"description": "Header text color.",
|
|
3806
|
+
"name": "--reke-color-text-muted",
|
|
3807
|
+
"default": "#525252"
|
|
3808
|
+
},
|
|
3809
|
+
{
|
|
3810
|
+
"description": "Chevron focus outline color.",
|
|
3811
|
+
"name": "--reke-color-primary",
|
|
3812
|
+
"default": "#22C55E"
|
|
3813
|
+
},
|
|
3814
|
+
{
|
|
3815
|
+
"description": "Chevron button corner radius. Props: - `expandedRowElement`: Framework-agnostic expand render. Receives `(host, row, key)`. Mount any framework. Return cleanup or void. - `getRowKey`: Optional `(row, index) => RowKey`. Defaults to `String(index)`. Use a stable domain id for identity-keyed expand state across sorts. - `expandable`: Opt-in boolean (default `false`). When `true`, `reke-table` prepends a leading toggle column with an accessible chevron `<button>` per row: `aria-expanded` reflects the row's expand state, `aria-controls` points at the expand `<td>`, and `Enter`/`Space` activate the toggle. Consumers can also build their own toggles by leaving `expandable=false` (default) and calling `toggleExpand(key)` directly. - `expandOnRowClick` (attribute `expand-on-row-click`): Opt-in boolean (default `false`). When `true`, clicking anywhere on a row calls `toggleExpand(key)` internally. `reke-row-click` is STILL emitted on every row click. The chevron button calls `stopPropagation()` so chevron clicks do NOT double-toggle. Consumers MUST use EITHER this prop OR their own `reke-row-click` → `toggleExpand` handler, not both. For keyboard / screen-reader users, pair with `expandable`.",
|
|
3816
|
+
"name": "--reke-radius",
|
|
3817
|
+
"default": "4px"
|
|
3818
|
+
}
|
|
3819
|
+
],
|
|
3820
|
+
"cssParts": [
|
|
3821
|
+
{
|
|
3822
|
+
"description": "The native table element.",
|
|
3823
|
+
"name": "table"
|
|
3824
|
+
},
|
|
3825
|
+
{
|
|
3826
|
+
"description": "The thead element.",
|
|
3827
|
+
"name": "header"
|
|
3828
|
+
},
|
|
3829
|
+
{
|
|
3830
|
+
"description": "The tbody element.",
|
|
3831
|
+
"name": "body"
|
|
3832
|
+
},
|
|
3833
|
+
{
|
|
3834
|
+
"description": "Each tbody data tr element.",
|
|
3835
|
+
"name": "row"
|
|
3836
|
+
},
|
|
3837
|
+
{
|
|
3838
|
+
"description": "Each tbody td element.",
|
|
3839
|
+
"name": "cell"
|
|
3840
|
+
},
|
|
3841
|
+
{
|
|
3842
|
+
"description": "Each thead th element.",
|
|
3843
|
+
"name": "header-cell"
|
|
3844
|
+
},
|
|
3845
|
+
{
|
|
3846
|
+
"description": "The toolbar wrapper div.",
|
|
3847
|
+
"name": "toolbar"
|
|
3848
|
+
},
|
|
3849
|
+
{
|
|
3850
|
+
"description": "The footer wrapper div.",
|
|
3851
|
+
"name": "footer"
|
|
3852
|
+
},
|
|
3853
|
+
{
|
|
3854
|
+
"description": "The tr for expanded content.",
|
|
3855
|
+
"name": "expand-row"
|
|
3856
|
+
},
|
|
3857
|
+
{
|
|
3858
|
+
"description": "The td spanning all columns in the expanded row.",
|
|
3859
|
+
"name": "expand-content"
|
|
3860
|
+
},
|
|
3861
|
+
{
|
|
3862
|
+
"description": "The leading `<td>` that contains the chevron button (only when `expandable`).",
|
|
3863
|
+
"name": "expand-toggle-cell"
|
|
3864
|
+
},
|
|
3865
|
+
{
|
|
3866
|
+
"description": "The chevron `<button>` itself (only when `expandable`).",
|
|
3867
|
+
"name": "expand-toggle-button"
|
|
3868
|
+
}
|
|
3869
|
+
],
|
|
3870
|
+
"slots": [
|
|
3871
|
+
{
|
|
3872
|
+
"description": "Toolbar area above the table (search, filters, title).",
|
|
3873
|
+
"name": "toolbar"
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
"description": "Footer area below the table (pagination, record count).",
|
|
3877
|
+
"name": "footer"
|
|
3878
|
+
},
|
|
3879
|
+
{
|
|
3880
|
+
"description": "Custom empty state content (replaces default \"No data\").",
|
|
3881
|
+
"name": "empty"
|
|
3882
|
+
}
|
|
3883
|
+
],
|
|
3884
|
+
"members": [
|
|
3885
|
+
{
|
|
3886
|
+
"kind": "field",
|
|
3887
|
+
"name": "shadowRootOptions",
|
|
3888
|
+
"type": {
|
|
3889
|
+
"text": "ShadowRootInit"
|
|
3890
|
+
},
|
|
3891
|
+
"static": true,
|
|
3892
|
+
"default": "{ ...RekeElement.shadowRootOptions, delegatesFocus: false, }"
|
|
3893
|
+
},
|
|
3894
|
+
{
|
|
3895
|
+
"kind": "field",
|
|
3896
|
+
"name": "columns",
|
|
3897
|
+
"type": {
|
|
3898
|
+
"text": "TableColumn[]"
|
|
3899
|
+
},
|
|
3900
|
+
"default": "[]"
|
|
3901
|
+
},
|
|
3902
|
+
{
|
|
3903
|
+
"kind": "field",
|
|
3904
|
+
"name": "rows",
|
|
3905
|
+
"type": {
|
|
3906
|
+
"text": "TableRow[]"
|
|
3907
|
+
},
|
|
3908
|
+
"default": "[]"
|
|
3909
|
+
},
|
|
3910
|
+
{
|
|
3911
|
+
"kind": "field",
|
|
3912
|
+
"name": "striped",
|
|
3913
|
+
"type": {
|
|
3914
|
+
"text": "boolean"
|
|
3915
|
+
},
|
|
3916
|
+
"default": "false",
|
|
3917
|
+
"attribute": "striped",
|
|
3918
|
+
"reflects": true
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
"kind": "field",
|
|
2951
3922
|
"name": "dense",
|
|
2952
3923
|
"type": {
|
|
2953
3924
|
"text": "boolean"
|
|
2954
3925
|
},
|
|
2955
3926
|
"default": "false",
|
|
2956
|
-
"attribute": "dense",
|
|
3927
|
+
"attribute": "dense",
|
|
3928
|
+
"reflects": true
|
|
3929
|
+
},
|
|
3930
|
+
{
|
|
3931
|
+
"kind": "field",
|
|
3932
|
+
"name": "hoverable",
|
|
3933
|
+
"type": {
|
|
3934
|
+
"text": "boolean"
|
|
3935
|
+
},
|
|
3936
|
+
"default": "false",
|
|
3937
|
+
"attribute": "hoverable",
|
|
3938
|
+
"reflects": true
|
|
3939
|
+
},
|
|
3940
|
+
{
|
|
3941
|
+
"kind": "field",
|
|
3942
|
+
"name": "bordered",
|
|
3943
|
+
"type": {
|
|
3944
|
+
"text": "boolean"
|
|
3945
|
+
},
|
|
3946
|
+
"default": "false",
|
|
3947
|
+
"attribute": "bordered",
|
|
3948
|
+
"reflects": true
|
|
3949
|
+
},
|
|
3950
|
+
{
|
|
3951
|
+
"kind": "field",
|
|
3952
|
+
"name": "borderless",
|
|
3953
|
+
"type": {
|
|
3954
|
+
"text": "boolean"
|
|
3955
|
+
},
|
|
3956
|
+
"default": "false",
|
|
3957
|
+
"attribute": "borderless",
|
|
2957
3958
|
"reflects": true
|
|
2958
3959
|
},
|
|
2959
3960
|
{
|
|
2960
3961
|
"kind": "field",
|
|
2961
|
-
"name": "
|
|
3962
|
+
"name": "expandable",
|
|
2962
3963
|
"type": {
|
|
2963
3964
|
"text": "boolean"
|
|
2964
3965
|
},
|
|
2965
3966
|
"default": "false",
|
|
2966
|
-
"
|
|
3967
|
+
"description": "Opt-in: when `true`, the table prepends a leading toggle column whose\n`<button>` calls `toggleExpand(key)`, exposes `aria-expanded` reflecting\nthe expand state, `aria-controls` pointing at the expand `<td>` id\n(`reke-table-expand-<key>`), and accepts `Enter` / `Space` activation.\n\nDefaults to `false` so consumers that already wire their own toggles\n(chips, links, custom buttons) are unaffected.",
|
|
3968
|
+
"attribute": "expandable",
|
|
2967
3969
|
"reflects": true
|
|
2968
3970
|
},
|
|
2969
3971
|
{
|
|
2970
3972
|
"kind": "field",
|
|
2971
|
-
"name": "
|
|
3973
|
+
"name": "expandOnRowClick",
|
|
2972
3974
|
"type": {
|
|
2973
3975
|
"text": "boolean"
|
|
2974
3976
|
},
|
|
2975
3977
|
"default": "false",
|
|
2976
|
-
"
|
|
3978
|
+
"description": "Opt-in: when `true`, clicking anywhere on a row (outside the chevron, if\npresent) calls `toggleExpand(key)` internally using the row's identity\nkey. The `reke-row-click` event is STILL emitted on every row click so\nconsumers can react in addition to the built-in toggle.\n\nDefault is `false` to preserve non-breaking behavior: existing consumers\nthat wire their own `reke-row-click` → `toggleExpand` handlers are\nunaffected.\n\nA11y note: row clicks are a pointer convenience only. The `<tr>` does NOT\nreceive `role=\"button\"` or `tabindex` (that would be a clickable-row\na11y anti-pattern). For keyboard / screen-reader users, pair this prop\nwith `expandable` so the accessible chevron `<button>` is available.\n\nDouble-wiring caveat: consumers MUST use EITHER `expandOnRowClick` OR\ntheir own `reke-row-click` → `toggleExpand` handler — not both — or the\nrow will toggle twice and net to no change.\n\nChevron interaction: the chevron `<button>` calls `stopPropagation()`, so\nclicking the chevron does NOT trigger the row-click toggle (no double\ntoggle).",
|
|
3979
|
+
"attribute": "expand-on-row-click",
|
|
2977
3980
|
"reflects": true
|
|
2978
3981
|
},
|
|
2979
3982
|
{
|
|
2980
3983
|
"kind": "field",
|
|
2981
|
-
"name": "
|
|
3984
|
+
"name": "virtualized",
|
|
2982
3985
|
"type": {
|
|
2983
3986
|
"text": "boolean"
|
|
2984
3987
|
},
|
|
2985
3988
|
"default": "false",
|
|
2986
|
-
"
|
|
3989
|
+
"description": "Opt-in row windowing: only the rows intersecting the viewport are rendered,\nwith spacer rows standing in for the rest.\n\nThis is NOT a transparent optimization — it changes the layout contract.\nA virtualized table needs a bounded scroll container, so `maxHeight` and\n`rowHeight` are both REQUIRED when this is `true` (dev error otherwise), and\nthe table switches to `table-layout: fixed` so column widths stop depending\non whichever rows happen to be rendered. That is also why this is a prop and\nnot an automatic row-count threshold: silently changing a consumer's layout\nbecause their dataset grew past some boundary is worse than being slow.\n\nNot yet compatible with `expandedRowElement` — see the class JSDoc.",
|
|
3990
|
+
"attribute": "virtualized",
|
|
3991
|
+
"reflects": true
|
|
3992
|
+
},
|
|
3993
|
+
{
|
|
3994
|
+
"kind": "field",
|
|
3995
|
+
"name": "rowHeight",
|
|
3996
|
+
"type": {
|
|
3997
|
+
"text": "number"
|
|
3998
|
+
},
|
|
3999
|
+
"default": "0",
|
|
4000
|
+
"description": "Height in px of a single COLLAPSED row, declared by the consumer. Required\nwhen `virtualized` is `true`.\n\nDeclared rather than measured on purpose: it makes row offsets pure\narithmetic (`index * rowHeight`) available on the very first frame, with no\nmeasure-then-render pass. The tradeoff is yours to honor — if your cell\ncontent is taller than this, rows will overlap. Keep it in sync with the\n`dense` modifier if you use it.",
|
|
4001
|
+
"attribute": "row-height"
|
|
4002
|
+
},
|
|
4003
|
+
{
|
|
4004
|
+
"kind": "field",
|
|
4005
|
+
"name": "maxHeight",
|
|
4006
|
+
"type": {
|
|
4007
|
+
"text": "string"
|
|
4008
|
+
},
|
|
4009
|
+
"default": "''",
|
|
4010
|
+
"description": "CSS length capping the scroll container height (e.g. `'600px'`, `'70vh'`).\nRequired when `virtualized` is `true` — without a bounded height there is\nno viewport to window against.",
|
|
4011
|
+
"attribute": "max-height"
|
|
4012
|
+
},
|
|
4013
|
+
{
|
|
4014
|
+
"kind": "field",
|
|
4015
|
+
"name": "overscan",
|
|
4016
|
+
"type": {
|
|
4017
|
+
"text": "number"
|
|
4018
|
+
},
|
|
4019
|
+
"default": "4",
|
|
4020
|
+
"description": "Extra rows rendered above and below the viewport, absorbing fast scrolls\nbefore blank space can appear. Higher costs more per frame.",
|
|
4021
|
+
"attribute": "overscan"
|
|
4022
|
+
},
|
|
4023
|
+
{
|
|
4024
|
+
"kind": "field",
|
|
4025
|
+
"name": "sortKey",
|
|
4026
|
+
"type": {
|
|
4027
|
+
"text": "string"
|
|
4028
|
+
},
|
|
4029
|
+
"default": "''",
|
|
4030
|
+
"attribute": "sort-key",
|
|
4031
|
+
"reflects": true
|
|
4032
|
+
},
|
|
4033
|
+
{
|
|
4034
|
+
"kind": "field",
|
|
4035
|
+
"name": "sortDirection",
|
|
4036
|
+
"type": {
|
|
4037
|
+
"text": "'asc' | 'desc'"
|
|
4038
|
+
},
|
|
4039
|
+
"default": "'asc'",
|
|
4040
|
+
"attribute": "sort-direction",
|
|
2987
4041
|
"reflects": true
|
|
2988
4042
|
},
|
|
2989
4043
|
{
|
|
2990
4044
|
"kind": "field",
|
|
2991
|
-
"name": "
|
|
4045
|
+
"name": "expandedRowElement",
|
|
4046
|
+
"type": {
|
|
4047
|
+
"text": "ExpandedRowElement | null"
|
|
4048
|
+
},
|
|
4049
|
+
"default": "null",
|
|
4050
|
+
"description": "Framework-agnostic expand callback. Sole expand API."
|
|
4051
|
+
},
|
|
4052
|
+
{
|
|
4053
|
+
"kind": "field",
|
|
4054
|
+
"name": "getRowKey",
|
|
4055
|
+
"type": {
|
|
4056
|
+
"text": "GetRowKey | undefined"
|
|
4057
|
+
},
|
|
4058
|
+
"description": "Resolve a stable identifier for each row.\nDefaults to `String(index)` — identity-equivalent only when rows are stable.\nProvide a domain id (e.g. `row => row.id`) to keep expand state across sorts."
|
|
4059
|
+
},
|
|
4060
|
+
{
|
|
4061
|
+
"kind": "field",
|
|
4062
|
+
"name": "expandedRows",
|
|
4063
|
+
"type": {
|
|
4064
|
+
"text": "Set<RowKey>"
|
|
4065
|
+
},
|
|
4066
|
+
"default": "new Set()",
|
|
4067
|
+
"description": "Set of row keys currently expanded."
|
|
4068
|
+
},
|
|
4069
|
+
{
|
|
4070
|
+
"kind": "field",
|
|
4071
|
+
"name": "_hostCache",
|
|
4072
|
+
"privacy": "private",
|
|
4073
|
+
"default": "new Map<RowKey, HTMLElement>()",
|
|
4074
|
+
"description": "Host element cached per row key. Survives unrelated re-renders."
|
|
4075
|
+
},
|
|
4076
|
+
{
|
|
4077
|
+
"kind": "field",
|
|
4078
|
+
"name": "_cleanupMap",
|
|
4079
|
+
"privacy": "private",
|
|
4080
|
+
"default": "new Map<RowKey, Cleanup>()",
|
|
4081
|
+
"description": "Cleanup cached per row key. Invoked exactly once on collapse / row removal / disconnect."
|
|
4082
|
+
},
|
|
4083
|
+
{
|
|
4084
|
+
"kind": "field",
|
|
4085
|
+
"name": "_warnedDupKeys",
|
|
4086
|
+
"privacy": "private",
|
|
4087
|
+
"default": "new Set<RowKey>()",
|
|
4088
|
+
"description": "Keys we have already warned about as duplicates (one-shot per component lifetime)."
|
|
4089
|
+
},
|
|
4090
|
+
{
|
|
4091
|
+
"kind": "field",
|
|
4092
|
+
"name": "_warnedNumericTarget",
|
|
4093
|
+
"type": {
|
|
4094
|
+
"text": "boolean"
|
|
4095
|
+
},
|
|
4096
|
+
"privacy": "private",
|
|
4097
|
+
"default": "false",
|
|
4098
|
+
"description": "One-shot guard for the numeric-target-with-getRowKey ambiguity warning."
|
|
4099
|
+
},
|
|
4100
|
+
{
|
|
4101
|
+
"kind": "field",
|
|
4102
|
+
"name": "_mountedKeys",
|
|
4103
|
+
"privacy": "private",
|
|
4104
|
+
"default": "new Set<RowKey>()",
|
|
4105
|
+
"description": "Track which keys are currently mounted in the DOM, to honor the contract that mount happens after `updated()` reconciles."
|
|
4106
|
+
},
|
|
4107
|
+
{
|
|
4108
|
+
"kind": "field",
|
|
4109
|
+
"name": "_collapsingKeys",
|
|
4110
|
+
"privacy": "private",
|
|
4111
|
+
"default": "new Set<RowKey>()",
|
|
4112
|
+
"description": "Keys currently animating their collapse. The row stays rendered while the\nkey is here; teardown runs when the collapse settles (see\n`_scheduleCollapseTeardown`). A key is NEVER in both this set and\n`expandedRows` — collapse removes it from `expandedRows` immediately, which\nis what makes a re-entrant toggle read as a genuine re-expand."
|
|
4113
|
+
},
|
|
4114
|
+
{
|
|
4115
|
+
"kind": "field",
|
|
4116
|
+
"name": "_enteringKeys",
|
|
4117
|
+
"privacy": "private",
|
|
4118
|
+
"default": "new Set<RowKey>()",
|
|
4119
|
+
"description": "Keys newly expanded this tick. They render collapsed (0fr) for the first\npaint, then `updated()` clears them on the next frame so the CSS grid\ntransition animates open (0fr → 1fr). Without this, a freshly-mounted\nexpand row starts at 1fr and pops open with no animation."
|
|
4120
|
+
},
|
|
4121
|
+
{
|
|
4122
|
+
"kind": "field",
|
|
4123
|
+
"name": "_collapseTokens",
|
|
4124
|
+
"privacy": "private",
|
|
4125
|
+
"default": "new Map<RowKey, number>()",
|
|
4126
|
+
"description": "Generation token per collapsing key. A pending settle only tears the key\ndown when its token is still the current one, so cancelling a collapse\n(re-expand, row removal, disconnect) is a single map delete."
|
|
4127
|
+
},
|
|
4128
|
+
{
|
|
4129
|
+
"kind": "field",
|
|
4130
|
+
"name": "_collapseSeq",
|
|
4131
|
+
"type": {
|
|
4132
|
+
"text": "number"
|
|
4133
|
+
},
|
|
4134
|
+
"privacy": "private",
|
|
4135
|
+
"default": "0"
|
|
4136
|
+
},
|
|
4137
|
+
{
|
|
4138
|
+
"kind": "field",
|
|
4139
|
+
"name": "_keyToRow",
|
|
4140
|
+
"privacy": "private",
|
|
4141
|
+
"default": "new Map<RowKey, TableRow>()",
|
|
4142
|
+
"description": "Latest resolved row map: key → row. Filled during render so callbacks can look up rows."
|
|
4143
|
+
},
|
|
4144
|
+
{
|
|
4145
|
+
"kind": "field",
|
|
4146
|
+
"name": "_keyToIndex",
|
|
4147
|
+
"privacy": "private",
|
|
4148
|
+
"default": "new Map<RowKey, number>()",
|
|
4149
|
+
"description": "Latest resolved index map: key → absolute index into `rows`."
|
|
4150
|
+
},
|
|
4151
|
+
{
|
|
4152
|
+
"kind": "field",
|
|
4153
|
+
"name": "_expandedHeights",
|
|
4154
|
+
"privacy": "private",
|
|
4155
|
+
"default": "new Map<RowKey, number>()",
|
|
4156
|
+
"description": "Measured height in px of each rendered expand row, keyed by row key.\n\nThis is the whole reason expand and virtualization can coexist. A collapsed\nrow's height is declared (`rowHeight`); an expanded row's is not knowable in\nadvance, because the consumer mounts arbitrary content into the host. So we\nmeasure it — and that is affordable precisely because the set is tiny: no\none has ten thousand rows open at once. Offsets stay\n`index * rowHeight + sum(extra heights of expanded rows above)`.\n\nEntries survive an expanded row scrolling out of the window (the height is\nstill needed for the math) and are dropped only on teardown."
|
|
4157
|
+
},
|
|
4158
|
+
{
|
|
4159
|
+
"kind": "field",
|
|
4160
|
+
"name": "_expandRowElements",
|
|
4161
|
+
"privacy": "private",
|
|
4162
|
+
"default": "new Map<RowKey, HTMLElement>()"
|
|
4163
|
+
},
|
|
4164
|
+
{
|
|
4165
|
+
"kind": "field",
|
|
4166
|
+
"name": "_expandRowKeys",
|
|
4167
|
+
"privacy": "private",
|
|
4168
|
+
"default": "new WeakMap<Element, RowKey>()"
|
|
4169
|
+
},
|
|
4170
|
+
{
|
|
4171
|
+
"kind": "field",
|
|
4172
|
+
"name": "_expandRowRefs",
|
|
4173
|
+
"privacy": "private",
|
|
4174
|
+
"default": "new Map<RowKey, (el: Element | undefined) => void>()"
|
|
4175
|
+
},
|
|
4176
|
+
{
|
|
4177
|
+
"kind": "field",
|
|
4178
|
+
"name": "_expandObserver",
|
|
4179
|
+
"type": {
|
|
4180
|
+
"text": "ResizeObserver | null"
|
|
4181
|
+
},
|
|
4182
|
+
"privacy": "private",
|
|
4183
|
+
"default": "null"
|
|
4184
|
+
},
|
|
4185
|
+
{
|
|
4186
|
+
"kind": "field",
|
|
4187
|
+
"name": "_windowStart",
|
|
4188
|
+
"type": {
|
|
4189
|
+
"text": "number"
|
|
4190
|
+
},
|
|
4191
|
+
"privacy": "private",
|
|
4192
|
+
"default": "0",
|
|
4193
|
+
"description": "Window rendered on the last pass, for scroll anchoring and focus rescue."
|
|
4194
|
+
},
|
|
4195
|
+
{
|
|
4196
|
+
"kind": "field",
|
|
4197
|
+
"name": "_windowEnd",
|
|
4198
|
+
"type": {
|
|
4199
|
+
"text": "number"
|
|
4200
|
+
},
|
|
4201
|
+
"privacy": "private",
|
|
4202
|
+
"default": "0"
|
|
4203
|
+
},
|
|
4204
|
+
{
|
|
4205
|
+
"kind": "field",
|
|
4206
|
+
"name": "_previousWindowStart",
|
|
4207
|
+
"type": {
|
|
4208
|
+
"text": "number"
|
|
4209
|
+
},
|
|
4210
|
+
"privacy": "private",
|
|
4211
|
+
"default": "0"
|
|
4212
|
+
},
|
|
4213
|
+
{
|
|
4214
|
+
"kind": "field",
|
|
4215
|
+
"name": "_previousWindowEnd",
|
|
4216
|
+
"type": {
|
|
4217
|
+
"text": "number"
|
|
4218
|
+
},
|
|
4219
|
+
"privacy": "private",
|
|
4220
|
+
"default": "0"
|
|
4221
|
+
},
|
|
4222
|
+
{
|
|
4223
|
+
"kind": "field",
|
|
4224
|
+
"name": "_focusInsideRows",
|
|
4225
|
+
"type": {
|
|
4226
|
+
"text": "boolean"
|
|
4227
|
+
},
|
|
4228
|
+
"privacy": "private",
|
|
4229
|
+
"default": "false",
|
|
4230
|
+
"description": "Which record focus was last placed on, as an `aria-rowindex`. Scrolling a\nvirtualized table does not usually destroy the focused control — Lit reuses\nthe row's DOM positionally and rebinds it to a different record — so the\nthing to detect is not \"focus disappeared\" but \"focus is now on a different\nrow than the user put it on\"."
|
|
4231
|
+
},
|
|
4232
|
+
{
|
|
4233
|
+
"kind": "field",
|
|
4234
|
+
"name": "_focusedRowIndex",
|
|
4235
|
+
"type": {
|
|
4236
|
+
"text": "number | null"
|
|
4237
|
+
},
|
|
4238
|
+
"privacy": "private",
|
|
4239
|
+
"default": "null"
|
|
4240
|
+
},
|
|
4241
|
+
{
|
|
4242
|
+
"kind": "field",
|
|
4243
|
+
"name": "_onRowsFocusIn",
|
|
4244
|
+
"privacy": "private"
|
|
4245
|
+
},
|
|
4246
|
+
{
|
|
4247
|
+
"kind": "method",
|
|
4248
|
+
"name": "_rowIndexOf",
|
|
4249
|
+
"privacy": "private",
|
|
4250
|
+
"return": {
|
|
4251
|
+
"type": {
|
|
4252
|
+
"text": "number | null"
|
|
4253
|
+
}
|
|
4254
|
+
},
|
|
4255
|
+
"parameters": [
|
|
4256
|
+
{
|
|
4257
|
+
"name": "node",
|
|
4258
|
+
"type": {
|
|
4259
|
+
"text": "Element | null"
|
|
4260
|
+
}
|
|
4261
|
+
}
|
|
4262
|
+
],
|
|
4263
|
+
"description": "The `aria-rowindex` of the row containing a node, if any."
|
|
4264
|
+
},
|
|
4265
|
+
{
|
|
4266
|
+
"kind": "method",
|
|
4267
|
+
"name": "_clearRowFocusTracking",
|
|
4268
|
+
"privacy": "private",
|
|
4269
|
+
"return": {
|
|
4270
|
+
"type": {
|
|
4271
|
+
"text": "void"
|
|
4272
|
+
}
|
|
4273
|
+
}
|
|
4274
|
+
},
|
|
4275
|
+
{
|
|
4276
|
+
"kind": "field",
|
|
4277
|
+
"name": "_refCallbacks",
|
|
4278
|
+
"privacy": "private",
|
|
4279
|
+
"default": "new Map<RowKey, (el: Element | undefined) => void>()",
|
|
4280
|
+
"description": "Stable ref callback per row key. One closure per key, reused across renders."
|
|
4281
|
+
},
|
|
4282
|
+
{
|
|
4283
|
+
"kind": "field",
|
|
4284
|
+
"name": "_hasToolbar",
|
|
2992
4285
|
"type": {
|
|
2993
4286
|
"text": "boolean"
|
|
2994
4287
|
},
|
|
2995
|
-
"
|
|
2996
|
-
"
|
|
2997
|
-
"attribute": "expandable",
|
|
2998
|
-
"reflects": true
|
|
4288
|
+
"privacy": "private",
|
|
4289
|
+
"default": "false"
|
|
2999
4290
|
},
|
|
3000
4291
|
{
|
|
3001
4292
|
"kind": "field",
|
|
3002
|
-
"name": "
|
|
4293
|
+
"name": "_hasFooter",
|
|
3003
4294
|
"type": {
|
|
3004
4295
|
"text": "boolean"
|
|
3005
4296
|
},
|
|
3006
|
-
"
|
|
3007
|
-
"
|
|
3008
|
-
"attribute": "expand-on-row-click",
|
|
3009
|
-
"reflects": true
|
|
4297
|
+
"privacy": "private",
|
|
4298
|
+
"default": "false"
|
|
3010
4299
|
},
|
|
3011
4300
|
{
|
|
3012
4301
|
"kind": "field",
|
|
3013
|
-
"name": "
|
|
4302
|
+
"name": "_scrollTop",
|
|
3014
4303
|
"type": {
|
|
3015
|
-
"text": "
|
|
4304
|
+
"text": "number"
|
|
3016
4305
|
},
|
|
3017
|
-
"
|
|
3018
|
-
"
|
|
3019
|
-
"
|
|
4306
|
+
"privacy": "private",
|
|
4307
|
+
"default": "0",
|
|
4308
|
+
"description": "Live scroll offset of the scroll container, in px. Virtualized mode only."
|
|
3020
4309
|
},
|
|
3021
4310
|
{
|
|
3022
4311
|
"kind": "field",
|
|
3023
|
-
"name": "
|
|
4312
|
+
"name": "_viewportHeight",
|
|
3024
4313
|
"type": {
|
|
3025
|
-
"text": "
|
|
4314
|
+
"text": "number"
|
|
3026
4315
|
},
|
|
3027
|
-
"
|
|
3028
|
-
"
|
|
3029
|
-
"
|
|
4316
|
+
"privacy": "private",
|
|
4317
|
+
"default": "0",
|
|
4318
|
+
"description": "Measured height of the scroll container, in px. Virtualized mode only."
|
|
3030
4319
|
},
|
|
3031
4320
|
{
|
|
3032
4321
|
"kind": "field",
|
|
3033
|
-
"name": "
|
|
4322
|
+
"name": "_scrollContainer",
|
|
3034
4323
|
"type": {
|
|
3035
|
-
"text": "
|
|
4324
|
+
"text": "HTMLElement | null"
|
|
3036
4325
|
},
|
|
3037
|
-
"
|
|
3038
|
-
"
|
|
4326
|
+
"privacy": "private",
|
|
4327
|
+
"default": "null"
|
|
3039
4328
|
},
|
|
3040
4329
|
{
|
|
3041
4330
|
"kind": "field",
|
|
3042
|
-
"name": "
|
|
4331
|
+
"name": "_viewportObserver",
|
|
3043
4332
|
"type": {
|
|
3044
|
-
"text": "
|
|
4333
|
+
"text": "ResizeObserver | null"
|
|
3045
4334
|
},
|
|
3046
|
-
"
|
|
4335
|
+
"privacy": "private",
|
|
4336
|
+
"default": "null"
|
|
3047
4337
|
},
|
|
3048
4338
|
{
|
|
3049
4339
|
"kind": "field",
|
|
3050
|
-
"name": "
|
|
4340
|
+
"name": "_scrollFrame",
|
|
3051
4341
|
"type": {
|
|
3052
|
-
"text": "
|
|
4342
|
+
"text": "number | null"
|
|
3053
4343
|
},
|
|
3054
|
-
"default": "new Set()",
|
|
3055
|
-
"description": "Set of row keys currently expanded."
|
|
3056
|
-
},
|
|
3057
|
-
{
|
|
3058
|
-
"kind": "field",
|
|
3059
|
-
"name": "_hostCache",
|
|
3060
4344
|
"privacy": "private",
|
|
3061
|
-
"default": "
|
|
3062
|
-
"description": "Host element cached per row key. Survives unrelated re-renders."
|
|
4345
|
+
"default": "null"
|
|
3063
4346
|
},
|
|
3064
4347
|
{
|
|
3065
4348
|
"kind": "field",
|
|
3066
|
-
"name": "
|
|
4349
|
+
"name": "_onScroll",
|
|
3067
4350
|
"privacy": "private",
|
|
3068
|
-
"
|
|
3069
|
-
"description": "Cleanup cached per row key. Invoked exactly once on collapse / row removal / disconnect."
|
|
4351
|
+
"description": "Coalesce scroll into one update per frame. A trackpad fires scroll events\nfar faster than the browser paints, and each one would otherwise queue a\nfull window recompute."
|
|
3070
4352
|
},
|
|
3071
4353
|
{
|
|
3072
4354
|
"kind": "field",
|
|
3073
|
-
"name": "
|
|
4355
|
+
"name": "_bindScrollContainer",
|
|
3074
4356
|
"privacy": "private",
|
|
3075
|
-
"
|
|
3076
|
-
"description": "Keys we have already warned about as duplicates (one-shot per component lifetime)."
|
|
4357
|
+
"description": "Bind the scroll container. Called by lit's `ref` on every render, so it must\nbe cheap and idempotent — it rebinds only when the element actually changes."
|
|
3077
4358
|
},
|
|
3078
4359
|
{
|
|
3079
|
-
"kind": "
|
|
3080
|
-
"name": "
|
|
3081
|
-
"type": {
|
|
3082
|
-
"text": "boolean"
|
|
3083
|
-
},
|
|
4360
|
+
"kind": "method",
|
|
4361
|
+
"name": "_extraHeights",
|
|
3084
4362
|
"privacy": "private",
|
|
3085
|
-
"
|
|
3086
|
-
|
|
4363
|
+
"return": {
|
|
4364
|
+
"type": {
|
|
4365
|
+
"text": "{ index: number; extra: number }[]"
|
|
4366
|
+
}
|
|
4367
|
+
},
|
|
4368
|
+
"description": "Expanded rows that add height, as `{ index, extra }` sorted by index.\nSmall by construction — this is the set of rows the user has open."
|
|
3087
4369
|
},
|
|
3088
4370
|
{
|
|
3089
|
-
"kind": "
|
|
3090
|
-
"name": "
|
|
4371
|
+
"kind": "method",
|
|
4372
|
+
"name": "_offsetOf",
|
|
3091
4373
|
"privacy": "private",
|
|
3092
|
-
"
|
|
3093
|
-
|
|
4374
|
+
"return": {
|
|
4375
|
+
"type": {
|
|
4376
|
+
"text": "number"
|
|
4377
|
+
}
|
|
4378
|
+
},
|
|
4379
|
+
"parameters": [
|
|
4380
|
+
{
|
|
4381
|
+
"name": "index",
|
|
4382
|
+
"type": {
|
|
4383
|
+
"text": "number"
|
|
4384
|
+
}
|
|
4385
|
+
},
|
|
4386
|
+
{
|
|
4387
|
+
"name": "extras",
|
|
4388
|
+
"type": {
|
|
4389
|
+
"text": "readonly { index: number; extra: number }[]"
|
|
4390
|
+
}
|
|
4391
|
+
}
|
|
4392
|
+
],
|
|
4393
|
+
"description": "Distance in px from the top of the dataset to the top of row `index`."
|
|
3094
4394
|
},
|
|
3095
4395
|
{
|
|
3096
|
-
"kind": "
|
|
3097
|
-
"name": "
|
|
4396
|
+
"kind": "method",
|
|
4397
|
+
"name": "_indexAtOffset",
|
|
3098
4398
|
"privacy": "private",
|
|
3099
|
-
"
|
|
3100
|
-
|
|
4399
|
+
"return": {
|
|
4400
|
+
"type": {
|
|
4401
|
+
"text": "number"
|
|
4402
|
+
}
|
|
4403
|
+
},
|
|
4404
|
+
"parameters": [
|
|
4405
|
+
{
|
|
4406
|
+
"name": "offset",
|
|
4407
|
+
"type": {
|
|
4408
|
+
"text": "number"
|
|
4409
|
+
}
|
|
4410
|
+
},
|
|
4411
|
+
{
|
|
4412
|
+
"name": "extras",
|
|
4413
|
+
"type": {
|
|
4414
|
+
"text": "readonly { index: number; extra: number }[]"
|
|
4415
|
+
}
|
|
4416
|
+
},
|
|
4417
|
+
{
|
|
4418
|
+
"name": "total",
|
|
4419
|
+
"type": {
|
|
4420
|
+
"text": "number"
|
|
4421
|
+
}
|
|
4422
|
+
}
|
|
4423
|
+
],
|
|
4424
|
+
"description": "Inverse of `_offsetOf`: the row index sitting at a given scroll offset.\nWalks the (short) list of expanded rows to find which linear segment the\noffset falls in, then divides within that segment."
|
|
3101
4425
|
},
|
|
3102
4426
|
{
|
|
3103
|
-
"kind": "
|
|
3104
|
-
"name": "
|
|
4427
|
+
"kind": "method",
|
|
4428
|
+
"name": "_computeWindow",
|
|
3105
4429
|
"privacy": "private",
|
|
3106
|
-
"
|
|
3107
|
-
|
|
4430
|
+
"return": {
|
|
4431
|
+
"type": {
|
|
4432
|
+
"text": "{\n start: number;\n end: number;\n topSpacer: number;\n bottomSpacer: number;\n }"
|
|
4433
|
+
}
|
|
4434
|
+
},
|
|
4435
|
+
"description": "The slice of `rows` to render plus the spacer heights standing in for the\nrows outside it. `end` is exclusive.\n\nExpanded rows INSIDE the window render at their real height, so their extra\nheight is deliberately excluded from the spacers — only rows above and below\nthe window contribute."
|
|
3108
4436
|
},
|
|
3109
4437
|
{
|
|
3110
|
-
"kind": "
|
|
3111
|
-
"name": "
|
|
4438
|
+
"kind": "method",
|
|
4439
|
+
"name": "_expandRowRef",
|
|
3112
4440
|
"privacy": "private",
|
|
3113
|
-
"
|
|
3114
|
-
|
|
4441
|
+
"return": {
|
|
4442
|
+
"type": {
|
|
4443
|
+
"text": "(el: Element | undefined) => void"
|
|
4444
|
+
}
|
|
4445
|
+
},
|
|
4446
|
+
"parameters": [
|
|
4447
|
+
{
|
|
4448
|
+
"name": "key",
|
|
4449
|
+
"type": {
|
|
4450
|
+
"text": "RowKey"
|
|
4451
|
+
}
|
|
4452
|
+
}
|
|
4453
|
+
],
|
|
4454
|
+
"description": "Observe an expand row so its height feeds the window math. Measuring is what\nlets expanded rows coexist with windowing; the observer also fires\ncontinuously while the row animates open, so the offsets track the\ntransition instead of jumping at the end."
|
|
3115
4455
|
},
|
|
3116
4456
|
{
|
|
3117
|
-
"kind": "
|
|
3118
|
-
"name": "
|
|
4457
|
+
"kind": "method",
|
|
4458
|
+
"name": "_rescueFocusAfterWindowChange",
|
|
3119
4459
|
"privacy": "private",
|
|
3120
|
-
"
|
|
3121
|
-
|
|
4460
|
+
"return": {
|
|
4461
|
+
"type": {
|
|
4462
|
+
"text": "void"
|
|
4463
|
+
}
|
|
4464
|
+
},
|
|
4465
|
+
"description": "Hand focus back to the scroll container when a window change moved it off\nthe record the user chose.\n\nTwo things can happen when the window slides under a focused control. Lit\nusually reuses the row's DOM and rebinds it, so focus silently ends up on a\nDIFFERENT record with nothing announced — the user believes they are on row\n5 while they are on row 505. Less often the node is destroyed outright and\nfocus falls to the document body, after which arrow keys scroll the page\ninstead of the table. Both are resolved by parking focus on the scroll\ncontainer, which is a place the user can reason about.\n\nGuarded so a normal Tab-away or an unrelated re-render is never hijacked:\nit acts only when the window actually moved and focus is still inside this\ncomponent."
|
|
3122
4466
|
},
|
|
3123
4467
|
{
|
|
3124
|
-
"kind": "
|
|
3125
|
-
"name": "
|
|
4468
|
+
"kind": "method",
|
|
4469
|
+
"name": "_clampScrollToContent",
|
|
3126
4470
|
"privacy": "private",
|
|
3127
|
-
"
|
|
3128
|
-
|
|
4471
|
+
"return": {
|
|
4472
|
+
"type": {
|
|
4473
|
+
"text": "void"
|
|
4474
|
+
}
|
|
4475
|
+
},
|
|
4476
|
+
"description": "Keep the tracked scroll offset in agreement with the container after the\ndataset changes size.\n\nFiltering 10.000 rows down to 10 while parked near the bottom leaves the\noffset past the end of the new content. The browser silently clamps its own\n`scrollTop` when that happens but emits no scroll event, so `_scrollTop`\nwould keep describing a position that no longer exists and the window math\nwould render a slice of nothing. Clamp explicitly, then resync either way."
|
|
3129
4477
|
},
|
|
3130
4478
|
{
|
|
3131
|
-
"kind": "
|
|
3132
|
-
"name": "
|
|
3133
|
-
"type": {
|
|
3134
|
-
"text": "boolean"
|
|
3135
|
-
},
|
|
4479
|
+
"kind": "method",
|
|
4480
|
+
"name": "_ensureExpandObserver",
|
|
3136
4481
|
"privacy": "private",
|
|
3137
|
-
"
|
|
4482
|
+
"return": {
|
|
4483
|
+
"type": {
|
|
4484
|
+
"text": "ResizeObserver"
|
|
4485
|
+
}
|
|
4486
|
+
}
|
|
3138
4487
|
},
|
|
3139
4488
|
{
|
|
3140
|
-
"kind": "
|
|
3141
|
-
"name": "
|
|
3142
|
-
"type": {
|
|
3143
|
-
"text": "boolean"
|
|
3144
|
-
},
|
|
4489
|
+
"kind": "method",
|
|
4490
|
+
"name": "_renderSpacerRow",
|
|
3145
4491
|
"privacy": "private",
|
|
3146
|
-
"
|
|
4492
|
+
"parameters": [
|
|
4493
|
+
{
|
|
4494
|
+
"name": "height",
|
|
4495
|
+
"type": {
|
|
4496
|
+
"text": "number"
|
|
4497
|
+
}
|
|
4498
|
+
},
|
|
4499
|
+
{
|
|
4500
|
+
"name": "position",
|
|
4501
|
+
"type": {
|
|
4502
|
+
"text": "'top' | 'bottom'"
|
|
4503
|
+
}
|
|
4504
|
+
}
|
|
4505
|
+
],
|
|
4506
|
+
"description": "A zero-content row standing in for the rows outside the window, holding the\nscroll height they would have occupied. `<tr>` height is honored as a\nminimum, and the cell is stripped of padding and borders so it contributes\nnothing beyond `height`."
|
|
3147
4507
|
},
|
|
3148
4508
|
{
|
|
3149
4509
|
"kind": "method",
|
|
@@ -3384,6 +4744,53 @@
|
|
|
3384
4744
|
"privacy": "private",
|
|
3385
4745
|
"default": "false"
|
|
3386
4746
|
},
|
|
4747
|
+
{
|
|
4748
|
+
"kind": "field",
|
|
4749
|
+
"name": "_warnedVirtualConfig",
|
|
4750
|
+
"type": {
|
|
4751
|
+
"text": "boolean"
|
|
4752
|
+
},
|
|
4753
|
+
"privacy": "private",
|
|
4754
|
+
"default": "false"
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
"kind": "method",
|
|
4758
|
+
"name": "_scheduleCollapseTeardown",
|
|
4759
|
+
"privacy": "private",
|
|
4760
|
+
"return": {
|
|
4761
|
+
"type": {
|
|
4762
|
+
"text": "void"
|
|
4763
|
+
}
|
|
4764
|
+
},
|
|
4765
|
+
"parameters": [
|
|
4766
|
+
{
|
|
4767
|
+
"name": "key",
|
|
4768
|
+
"type": {
|
|
4769
|
+
"text": "RowKey"
|
|
4770
|
+
}
|
|
4771
|
+
}
|
|
4772
|
+
],
|
|
4773
|
+
"description": "Wait for a collapsing row to finish animating, then tear it down.\n\nThe wait resolves off `getAnimations()`, not `transitionend`: that event is\nnever guaranteed (reduced motion, `display: none`, a backgrounded tab, a\nzero-duration override, the row being unmounted mid-flight), and when it\nfailed to arrive the key stayed in `_collapsingKeys` forever, which in turn\ndisabled the purge in `updated()`. If there is no animation at all,\n`Promise.allSettled([])` settles on the next microtask and teardown is\nimmediate. `COLLAPSE_TEARDOWN_FALLBACK_MS` is the last resort for an\nanimation that never finishes."
|
|
4774
|
+
},
|
|
4775
|
+
{
|
|
4776
|
+
"kind": "method",
|
|
4777
|
+
"name": "_teardownKey",
|
|
4778
|
+
"privacy": "private",
|
|
4779
|
+
"return": {
|
|
4780
|
+
"type": {
|
|
4781
|
+
"text": "void"
|
|
4782
|
+
}
|
|
4783
|
+
},
|
|
4784
|
+
"parameters": [
|
|
4785
|
+
{
|
|
4786
|
+
"name": "key",
|
|
4787
|
+
"type": {
|
|
4788
|
+
"text": "RowKey"
|
|
4789
|
+
}
|
|
4790
|
+
}
|
|
4791
|
+
],
|
|
4792
|
+
"description": "Release every resource held for a row key. Idempotent and safe to call at\nany point in the lifecycle — each step is a delete, and `_safeCleanup`\ndrops its entry after running."
|
|
4793
|
+
},
|
|
3387
4794
|
{
|
|
3388
4795
|
"kind": "method",
|
|
3389
4796
|
"name": "_safeCleanup",
|
|
@@ -3487,6 +4894,42 @@
|
|
|
3487
4894
|
"description": "Opt-in: when `true`, clicking anywhere on a row (outside the chevron, if\npresent) calls `toggleExpand(key)` internally using the row's identity\nkey. The `reke-row-click` event is STILL emitted on every row click so\nconsumers can react in addition to the built-in toggle.\n\nDefault is `false` to preserve non-breaking behavior: existing consumers\nthat wire their own `reke-row-click` → `toggleExpand` handlers are\nunaffected.\n\nA11y note: row clicks are a pointer convenience only. The `<tr>` does NOT\nreceive `role=\"button\"` or `tabindex` (that would be a clickable-row\na11y anti-pattern). For keyboard / screen-reader users, pair this prop\nwith `expandable` so the accessible chevron `<button>` is available.\n\nDouble-wiring caveat: consumers MUST use EITHER `expandOnRowClick` OR\ntheir own `reke-row-click` → `toggleExpand` handler — not both — or the\nrow will toggle twice and net to no change.\n\nChevron interaction: the chevron `<button>` calls `stopPropagation()`, so\nclicking the chevron does NOT trigger the row-click toggle (no double\ntoggle).",
|
|
3488
4895
|
"fieldName": "expandOnRowClick"
|
|
3489
4896
|
},
|
|
4897
|
+
{
|
|
4898
|
+
"name": "virtualized",
|
|
4899
|
+
"type": {
|
|
4900
|
+
"text": "boolean"
|
|
4901
|
+
},
|
|
4902
|
+
"default": "false",
|
|
4903
|
+
"description": "Opt-in row windowing: only the rows intersecting the viewport are rendered,\nwith spacer rows standing in for the rest.\n\nThis is NOT a transparent optimization — it changes the layout contract.\nA virtualized table needs a bounded scroll container, so `maxHeight` and\n`rowHeight` are both REQUIRED when this is `true` (dev error otherwise), and\nthe table switches to `table-layout: fixed` so column widths stop depending\non whichever rows happen to be rendered. That is also why this is a prop and\nnot an automatic row-count threshold: silently changing a consumer's layout\nbecause their dataset grew past some boundary is worse than being slow.\n\nNot yet compatible with `expandedRowElement` — see the class JSDoc.",
|
|
4904
|
+
"fieldName": "virtualized"
|
|
4905
|
+
},
|
|
4906
|
+
{
|
|
4907
|
+
"name": "row-height",
|
|
4908
|
+
"type": {
|
|
4909
|
+
"text": "number"
|
|
4910
|
+
},
|
|
4911
|
+
"default": "0",
|
|
4912
|
+
"description": "Height in px of a single COLLAPSED row, declared by the consumer. Required\nwhen `virtualized` is `true`.\n\nDeclared rather than measured on purpose: it makes row offsets pure\narithmetic (`index * rowHeight`) available on the very first frame, with no\nmeasure-then-render pass. The tradeoff is yours to honor — if your cell\ncontent is taller than this, rows will overlap. Keep it in sync with the\n`dense` modifier if you use it.",
|
|
4913
|
+
"fieldName": "rowHeight"
|
|
4914
|
+
},
|
|
4915
|
+
{
|
|
4916
|
+
"name": "max-height",
|
|
4917
|
+
"type": {
|
|
4918
|
+
"text": "string"
|
|
4919
|
+
},
|
|
4920
|
+
"default": "''",
|
|
4921
|
+
"description": "CSS length capping the scroll container height (e.g. `'600px'`, `'70vh'`).\nRequired when `virtualized` is `true` — without a bounded height there is\nno viewport to window against.",
|
|
4922
|
+
"fieldName": "maxHeight"
|
|
4923
|
+
},
|
|
4924
|
+
{
|
|
4925
|
+
"name": "overscan",
|
|
4926
|
+
"type": {
|
|
4927
|
+
"text": "number"
|
|
4928
|
+
},
|
|
4929
|
+
"default": "4",
|
|
4930
|
+
"description": "Extra rows rendered above and below the viewport, absorbing fast scrolls\nbefore blank space can appear. Higher costs more per frame.",
|
|
4931
|
+
"fieldName": "overscan"
|
|
4932
|
+
},
|
|
3490
4933
|
{
|
|
3491
4934
|
"name": "sort-key",
|
|
3492
4935
|
"type": {
|
|
@@ -3510,7 +4953,7 @@
|
|
|
3510
4953
|
},
|
|
3511
4954
|
"tagName": "reke-table",
|
|
3512
4955
|
"customElement": true,
|
|
3513
|
-
"summary": "A data table with custom cell rendering, framework-agnostic expandable rows, and toolbar/footer slots."
|
|
4956
|
+
"summary": "A data table with custom cell rendering, framework-agnostic expandable rows, and toolbar/footer slots.\n\nVirtualization: opt-in via `virtualized`, off by default. When on, only the\nrows intersecting the viewport are rendered and spacer rows carry the scroll\nheight of the rest. Requires `rowHeight` and `maxHeight`. Expandable rows are\nsupported: their height is measured with a ResizeObserver and folded into the\nrow offsets, which is affordable because only a handful of rows are ever open\nat once. Rows are never recycled across keys — a row key keeps its host\nelement and its cleanup contract even while scrolled out of the window.\nSee README-DOC.md."
|
|
3514
4957
|
}
|
|
3515
4958
|
],
|
|
3516
4959
|
"exports": [
|