@fusion.dev/helix 0.182.2 → 0.183.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +191 -15
- package/dist/bar-chart/root/bar-chart-root.css.js +1 -1
- package/lint.json +1 -1
- package/package.json +6 -6
- package/types/jsx.d.ts +40 -8
- package/types/vue.d.ts +10 -2
package/custom-elements.json
CHANGED
|
@@ -11893,7 +11893,7 @@
|
|
|
11893
11893
|
"part": "Root",
|
|
11894
11894
|
"examples": [
|
|
11895
11895
|
{
|
|
11896
|
-
"description": "Revenue by quarter, drawn from a table whose cells show text and hold the plotted number in `data-value`, then signups by channel stacked into one column a quarter, and a net figure that goes below zero.",
|
|
11896
|
+
"description": "Revenue by quarter, drawn from a table whose cells show text and hold the plotted number in `data-value`, then signups by channel stacked into one column a quarter, and a net figure that goes below zero, outlined.",
|
|
11897
11897
|
"slug": "preview"
|
|
11898
11898
|
},
|
|
11899
11899
|
{
|
|
@@ -12004,6 +12004,14 @@
|
|
|
12004
12004
|
"module": "src/bar-chart/root/bar-chart-root.ts"
|
|
12005
12005
|
}
|
|
12006
12006
|
},
|
|
12007
|
+
{
|
|
12008
|
+
"description": "A bar below zero, standing alone or any segment of a stack below it, whose base is its top, or its inline end when the bars run across. Set together with `bar`.",
|
|
12009
|
+
"name": "bar-negative",
|
|
12010
|
+
"inheritedFrom": {
|
|
12011
|
+
"name": "HelixHeadlessBarChart",
|
|
12012
|
+
"module": "src/bar-chart/root/bar-chart-root.ts"
|
|
12013
|
+
}
|
|
12014
|
+
},
|
|
12007
12015
|
{
|
|
12008
12016
|
"description": "The far stop of a bar's gradient, where one is used.",
|
|
12009
12017
|
"name": "bar-wash-end",
|
|
@@ -99214,7 +99222,7 @@
|
|
|
99214
99222
|
},
|
|
99215
99223
|
"privacy": "private",
|
|
99216
99224
|
"default": "-1",
|
|
99217
|
-
"description": "Where a range taken in with Shift starts: the cell last pressed, or none.",
|
|
99225
|
+
"description": "Where a range taken in with Shift starts: the row of the table whose cell\nwas last pressed, or none.\n\n**The row, and not the cell's place among those drawn.** A narrow strip\ndraws the newest whole columns, so a resize that drops or adds a column\nmoves every cell's place, and an anchor kept as a place started the next\nrange on another day.",
|
|
99218
99226
|
"inheritedFrom": {
|
|
99219
99227
|
"name": "HelixHeadlessHeatmap",
|
|
99220
99228
|
"module": "src/heatmap/root/heatmap-root.ts"
|
|
@@ -99498,6 +99506,20 @@
|
|
|
99498
99506
|
"module": "src/heatmap/root/heatmap-root.ts"
|
|
99499
99507
|
}
|
|
99500
99508
|
},
|
|
99509
|
+
{
|
|
99510
|
+
"kind": "field",
|
|
99511
|
+
"name": "dropped",
|
|
99512
|
+
"type": {
|
|
99513
|
+
"text": "number"
|
|
99514
|
+
},
|
|
99515
|
+
"privacy": "private",
|
|
99516
|
+
"description": "How many of the oldest rows a narrow strip leaves undrawn.",
|
|
99517
|
+
"readonly": true,
|
|
99518
|
+
"inheritedFrom": {
|
|
99519
|
+
"name": "HelixHeadlessHeatmap",
|
|
99520
|
+
"module": "src/heatmap/root/heatmap-root.ts"
|
|
99521
|
+
}
|
|
99522
|
+
},
|
|
99501
99523
|
{
|
|
99502
99524
|
"kind": "method",
|
|
99503
99525
|
"name": "pageFrom",
|
|
@@ -251603,6 +251625,20 @@
|
|
|
251603
251625
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
251604
251626
|
}
|
|
251605
251627
|
},
|
|
251628
|
+
{
|
|
251629
|
+
"kind": "field",
|
|
251630
|
+
"name": "layout",
|
|
251631
|
+
"type": {
|
|
251632
|
+
"text": "'grid' | 'waterfall'"
|
|
251633
|
+
},
|
|
251634
|
+
"default": "'grid'",
|
|
251635
|
+
"description": "How items of more than one column are laid out. `grid`, the default, puts\nthem in lines of equal columns. `waterfall` puts each item, in the order\nof the set, under the column that ends highest, as a wall of photos of\ndifferent heights is: `columns`, or `min-column-width`, says how many\ncolumns. Rows of a waterfall are measured, and Up and Down move along a\ncolumn.",
|
|
251636
|
+
"attribute": "layout",
|
|
251637
|
+
"inheritedFrom": {
|
|
251638
|
+
"name": "HelixHeadlessVirtualList",
|
|
251639
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
251640
|
+
}
|
|
251641
|
+
},
|
|
251606
251642
|
{
|
|
251607
251643
|
"kind": "field",
|
|
251608
251644
|
"name": "loading",
|
|
@@ -251669,7 +251705,7 @@
|
|
|
251669
251705
|
"text": "'horizontal' | 'vertical'"
|
|
251670
251706
|
},
|
|
251671
251707
|
"default": "'vertical'",
|
|
251672
|
-
"description": "Which way the list runs. `horizontal` lays the items out along a line\nand scrolls it sideways: Left and Right move between items, the other\nway round on a right-to-left page, and `estimate` is an item's width. A\ngrid always
|
|
251708
|
+
"description": "Which way the list runs. `horizontal` lays the items out along a line\nand scrolls it sideways: Left and Right move between items, the other\nway round on a right-to-left page, and `estimate` is an item's width. A\ngrid and a waterfall always run down.",
|
|
251673
251709
|
"attribute": "orientation",
|
|
251674
251710
|
"inheritedFrom": {
|
|
251675
251711
|
"name": "HelixHeadlessVirtualList",
|
|
@@ -251707,7 +251743,7 @@
|
|
|
251707
251743
|
"text": "boolean"
|
|
251708
251744
|
},
|
|
251709
251745
|
"default": "false",
|
|
251710
|
-
"description": "Lets a reader move items, once `@fusion.dev/helix/virtual-list/reorder`\n(or `@fusion.dev/helix-headless/virtual-list/reorder`) is imported: Alt\nwith an arrow moves the row the keys are on, and a pointer drags a row.\nThe list moves no item itself: you move your `items` on `helix-reorder`.\nWithout that import it does nothing, so a list that never moves items\ncarries none of the code. A list of one column, without sections.",
|
|
251746
|
+
"description": "Lets a reader move items, once `@fusion.dev/helix/virtual-list/reorder`\n(or `@fusion.dev/helix-headless/virtual-list/reorder`) is imported: Alt\nwith an arrow moves the row the keys are on, and a pointer drags a row.\nThe list moves no item itself: you move your `items` on `helix-reorder`.\nWithout that import it does nothing, so a list that never moves items\ncarries none of the code. A list of one column, without sections or a\nwaterfall.",
|
|
251711
251747
|
"attribute": "reorderable",
|
|
251712
251748
|
"inheritedFrom": {
|
|
251713
251749
|
"name": "HelixHeadlessVirtualList",
|
|
@@ -251972,7 +252008,7 @@
|
|
|
251972
252008
|
"name": "virtualize",
|
|
251973
252009
|
"privacy": "private",
|
|
251974
252010
|
"readonly": true,
|
|
251975
|
-
"default": "new VirtualizeController(this, { container: () => this.partNamed('viewport'), count: () => this.sections ? this.data.length + this.sections.starts.length : Math.ceil(this.data.length / this.across), estimate: () => this.estimate, gap: () => this.space, horizontal: () => this.horizontal, measured: () => this.measured, rows: () => this.lines(), })",
|
|
252011
|
+
"default": "new VirtualizeController(this, { container: () => this.partNamed('viewport'), count: () => this.sections ? this.data.length + this.sections.starts.length : Math.ceil(this.data.length / this.across), estimate: () => this.estimate, gap: () => this.space, horizontal: () => this.horizontal, measured: () => this.measured, rows: () => this.lines(), waterfall: () => { this.lanes.lanes = this.columnCount return this.waterfall ? this.lanes : undefined }, })",
|
|
251976
252012
|
"inheritedFrom": {
|
|
251977
252013
|
"name": "HelixHeadlessVirtualList",
|
|
251978
252014
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
@@ -252005,6 +252041,46 @@
|
|
|
252005
252041
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252006
252042
|
}
|
|
252007
252043
|
},
|
|
252044
|
+
{
|
|
252045
|
+
"kind": "field",
|
|
252046
|
+
"name": "lanes",
|
|
252047
|
+
"privacy": "private",
|
|
252048
|
+
"readonly": true,
|
|
252049
|
+
"default": "new Waterfall()",
|
|
252050
|
+
"description": "Where each item of a waterfall stands, which the controller places.",
|
|
252051
|
+
"inheritedFrom": {
|
|
252052
|
+
"name": "HelixHeadlessVirtualList",
|
|
252053
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252054
|
+
}
|
|
252055
|
+
},
|
|
252056
|
+
{
|
|
252057
|
+
"kind": "field",
|
|
252058
|
+
"name": "waterfall",
|
|
252059
|
+
"type": {
|
|
252060
|
+
"text": "boolean"
|
|
252061
|
+
},
|
|
252062
|
+
"privacy": "private",
|
|
252063
|
+
"description": "Whether the items are laid out as a waterfall, each down a column.",
|
|
252064
|
+
"readonly": true,
|
|
252065
|
+
"inheritedFrom": {
|
|
252066
|
+
"name": "HelixHeadlessVirtualList",
|
|
252067
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252068
|
+
}
|
|
252069
|
+
},
|
|
252070
|
+
{
|
|
252071
|
+
"kind": "field",
|
|
252072
|
+
"name": "lined",
|
|
252073
|
+
"type": {
|
|
252074
|
+
"text": "boolean"
|
|
252075
|
+
},
|
|
252076
|
+
"privacy": "private",
|
|
252077
|
+
"description": "Whether the list is a grid a reader reads, and not a list box: lines of\ncolumns with no `selection-mode`, which are `grid`, `row` and `gridcell`\nto a reader, as the APG's grid and React Aria's grid list are.",
|
|
252078
|
+
"readonly": true,
|
|
252079
|
+
"inheritedFrom": {
|
|
252080
|
+
"name": "HelixHeadlessVirtualList",
|
|
252081
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252082
|
+
}
|
|
252083
|
+
},
|
|
252008
252084
|
{
|
|
252009
252085
|
"kind": "field",
|
|
252010
252086
|
"name": "across",
|
|
@@ -252012,7 +252088,21 @@
|
|
|
252012
252088
|
"text": "number"
|
|
252013
252089
|
},
|
|
252014
252090
|
"privacy": "private",
|
|
252015
|
-
"description": "How many items a line holds
|
|
252091
|
+
"description": "How many items a line holds, which a waterfall draws one at a time: its\ncolumns are not lines.",
|
|
252092
|
+
"readonly": true,
|
|
252093
|
+
"inheritedFrom": {
|
|
252094
|
+
"name": "HelixHeadlessVirtualList",
|
|
252095
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252096
|
+
}
|
|
252097
|
+
},
|
|
252098
|
+
{
|
|
252099
|
+
"kind": "field",
|
|
252100
|
+
"name": "columnCount",
|
|
252101
|
+
"type": {
|
|
252102
|
+
"text": "number"
|
|
252103
|
+
},
|
|
252104
|
+
"privacy": "private",
|
|
252105
|
+
"description": "How many columns there are: as many as fit at `min-column-width` where\nit is set and the box has a width, and `columns` otherwise, at least one.",
|
|
252016
252106
|
"readonly": true,
|
|
252017
252107
|
"inheritedFrom": {
|
|
252018
252108
|
"name": "HelixHeadlessVirtualList",
|
|
@@ -252050,11 +252140,11 @@
|
|
|
252050
252140
|
"kind": "field",
|
|
252051
252141
|
"name": "measuredAcross",
|
|
252052
252142
|
"type": {
|
|
252053
|
-
"text": "number"
|
|
252143
|
+
"text": "number | string"
|
|
252054
252144
|
},
|
|
252055
252145
|
"privacy": "private",
|
|
252056
252146
|
"default": "1",
|
|
252057
|
-
"description": "The items to a line the measurements were taken at.",
|
|
252147
|
+
"description": "The items to a line the measurements were taken at, or a waterfall's columns and width.",
|
|
252058
252148
|
"inheritedFrom": {
|
|
252059
252149
|
"name": "HelixHeadlessVirtualList",
|
|
252060
252150
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
@@ -252069,7 +252159,7 @@
|
|
|
252069
252159
|
"text": "void"
|
|
252070
252160
|
}
|
|
252071
252161
|
},
|
|
252072
|
-
"description": "Watches the box for its width while `min-column-width` asks for it.",
|
|
252162
|
+
"description": "Watches the box for its width while `min-column-width` asks for it, or a\nwaterfall, whose items are as tall as their width makes them.",
|
|
252073
252163
|
"inheritedFrom": {
|
|
252074
252164
|
"name": "HelixHeadlessVirtualList",
|
|
252075
252165
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
@@ -252128,7 +252218,7 @@
|
|
|
252128
252218
|
"text": "boolean"
|
|
252129
252219
|
},
|
|
252130
252220
|
"privacy": "private",
|
|
252131
|
-
"description": "Whether the list runs across, which a grid never
|
|
252221
|
+
"description": "Whether the list runs across, which a grid and a waterfall never do.",
|
|
252132
252222
|
"readonly": true,
|
|
252133
252223
|
"inheritedFrom": {
|
|
252134
252224
|
"name": "HelixHeadlessVirtualList",
|
|
@@ -252468,6 +252558,47 @@
|
|
|
252468
252558
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252469
252559
|
}
|
|
252470
252560
|
},
|
|
252561
|
+
{
|
|
252562
|
+
"kind": "method",
|
|
252563
|
+
"name": "inWaterfall",
|
|
252564
|
+
"privacy": "private",
|
|
252565
|
+
"return": {
|
|
252566
|
+
"type": {
|
|
252567
|
+
"text": "number | undefined"
|
|
252568
|
+
}
|
|
252569
|
+
},
|
|
252570
|
+
"parameters": [
|
|
252571
|
+
{
|
|
252572
|
+
"name": "key",
|
|
252573
|
+
"type": {
|
|
252574
|
+
"text": "string"
|
|
252575
|
+
}
|
|
252576
|
+
},
|
|
252577
|
+
{
|
|
252578
|
+
"name": "at",
|
|
252579
|
+
"type": {
|
|
252580
|
+
"text": "number"
|
|
252581
|
+
}
|
|
252582
|
+
},
|
|
252583
|
+
{
|
|
252584
|
+
"name": "count",
|
|
252585
|
+
"type": {
|
|
252586
|
+
"text": "number"
|
|
252587
|
+
}
|
|
252588
|
+
},
|
|
252589
|
+
{
|
|
252590
|
+
"name": "forward",
|
|
252591
|
+
"type": {
|
|
252592
|
+
"text": "string"
|
|
252593
|
+
}
|
|
252594
|
+
}
|
|
252595
|
+
],
|
|
252596
|
+
"description": "Where a key goes in a waterfall, through the columns `Waterfall.step`\nreads: along the column for Down, Up, Page Down and Page Up, and to the\nitem beside in the next column or the one before for the keys along the\nline, the other way round on a right-to-left page. Past a disabled item,\non the same way.",
|
|
252597
|
+
"inheritedFrom": {
|
|
252598
|
+
"name": "HelixHeadlessVirtualList",
|
|
252599
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252600
|
+
}
|
|
252601
|
+
},
|
|
252471
252602
|
{
|
|
252472
252603
|
"kind": "method",
|
|
252473
252604
|
"name": "keyAt",
|
|
@@ -252707,7 +252838,7 @@
|
|
|
252707
252838
|
}
|
|
252708
252839
|
}
|
|
252709
252840
|
],
|
|
252710
|
-
"description": "Writes a row's role, and whether it is chosen in a list that selects:\n`option` with `aria-selected` there, and `listitem
|
|
252841
|
+
"description": "Writes a row's role, and whether it is chosen in a list that selects:\n`option` with `aria-selected` there, `gridcell` in a grid, and `listitem`\notherwise, and `aria-disabled` on an item `disabled-keys` names. Every\npass, since a choice changes no row's content.\n\nIts place too: `aria-posinset` and `aria-setsize` in a list, and in a\ngrid its column, with the line's `row` given by the slot it is drawn in.\n\n`data-selected` and `data-disabled` say the same to a stylesheet, as\nReact Aria's rows do, so one rule reads the same in either kind of list.",
|
|
252711
252842
|
"inheritedFrom": {
|
|
252712
252843
|
"name": "HelixHeadlessVirtualList",
|
|
252713
252844
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
@@ -252736,7 +252867,7 @@
|
|
|
252736
252867
|
}
|
|
252737
252868
|
}
|
|
252738
252869
|
],
|
|
252739
|
-
"description": "Writes a row
|
|
252870
|
+
"description": "Writes which item a row drew, for the controller to measure it against:\nthe real index, the same one `aria-posinset` carries one higher.\n\n`mark` writes the place a reader hears from it, the real index and the\nreal total, not the position in the window. A reader arrowing through\nthis should hear where they are in the set.",
|
|
252740
252871
|
"inheritedFrom": {
|
|
252741
252872
|
"name": "HelixHeadlessVirtualList",
|
|
252742
252873
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
@@ -252828,6 +252959,34 @@
|
|
|
252828
252959
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252829
252960
|
}
|
|
252830
252961
|
},
|
|
252962
|
+
{
|
|
252963
|
+
"kind": "field",
|
|
252964
|
+
"name": "placedWaterfall",
|
|
252965
|
+
"type": {
|
|
252966
|
+
"text": "boolean"
|
|
252967
|
+
},
|
|
252968
|
+
"privacy": "private",
|
|
252969
|
+
"default": "false",
|
|
252970
|
+
"description": "Whether the rows were last placed in a waterfall.",
|
|
252971
|
+
"inheritedFrom": {
|
|
252972
|
+
"name": "HelixHeadlessVirtualList",
|
|
252973
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252974
|
+
}
|
|
252975
|
+
},
|
|
252976
|
+
{
|
|
252977
|
+
"kind": "field",
|
|
252978
|
+
"name": "drawnLines",
|
|
252979
|
+
"type": {
|
|
252980
|
+
"text": "number[]"
|
|
252981
|
+
},
|
|
252982
|
+
"privacy": "private",
|
|
252983
|
+
"default": "[]",
|
|
252984
|
+
"description": "The lines of a grid drawn on the last pass, each a `row` the render draws a slot in.",
|
|
252985
|
+
"inheritedFrom": {
|
|
252986
|
+
"name": "HelixHeadlessVirtualList",
|
|
252987
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
252988
|
+
}
|
|
252989
|
+
},
|
|
252831
252990
|
{
|
|
252832
252991
|
"kind": "field",
|
|
252833
252992
|
"name": "headedBy",
|
|
@@ -253277,6 +253436,10 @@
|
|
|
253277
253436
|
{
|
|
253278
253437
|
"description": "Files given as an array and drawn from a row template with links, with more added as you near the end.",
|
|
253279
253438
|
"slug": "loading-more"
|
|
253439
|
+
},
|
|
253440
|
+
{
|
|
253441
|
+
"description": "Two thousand cards of different heights in three columns, each placed under the column that ends highest, with Down and Up moving along a column and Left and Right across.",
|
|
253442
|
+
"slug": "waterfall"
|
|
253280
253443
|
}
|
|
253281
253444
|
],
|
|
253282
253445
|
"source": "helix/styled/src/virtual-list"
|
|
@@ -253414,6 +253577,19 @@
|
|
|
253414
253577
|
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
253415
253578
|
}
|
|
253416
253579
|
},
|
|
253580
|
+
{
|
|
253581
|
+
"name": "layout",
|
|
253582
|
+
"type": {
|
|
253583
|
+
"text": "'grid' | 'waterfall'"
|
|
253584
|
+
},
|
|
253585
|
+
"default": "'grid'",
|
|
253586
|
+
"description": "How items of more than one column are laid out. `grid`, the default, puts\nthem in lines of equal columns. `waterfall` puts each item, in the order\nof the set, under the column that ends highest, as a wall of photos of\ndifferent heights is: `columns`, or `min-column-width`, says how many\ncolumns. Rows of a waterfall are measured, and Up and Down move along a\ncolumn.",
|
|
253587
|
+
"fieldName": "layout",
|
|
253588
|
+
"inheritedFrom": {
|
|
253589
|
+
"name": "HelixHeadlessVirtualList",
|
|
253590
|
+
"module": "src/virtual-list/root/virtual-list-root.ts"
|
|
253591
|
+
}
|
|
253592
|
+
},
|
|
253417
253593
|
{
|
|
253418
253594
|
"name": "loading",
|
|
253419
253595
|
"type": {
|
|
@@ -253472,7 +253648,7 @@
|
|
|
253472
253648
|
"text": "'horizontal' | 'vertical'"
|
|
253473
253649
|
},
|
|
253474
253650
|
"default": "'vertical'",
|
|
253475
|
-
"description": "Which way the list runs. `horizontal` lays the items out along a line\nand scrolls it sideways: Left and Right move between items, the other\nway round on a right-to-left page, and `estimate` is an item's width. A\ngrid always
|
|
253651
|
+
"description": "Which way the list runs. `horizontal` lays the items out along a line\nand scrolls it sideways: Left and Right move between items, the other\nway round on a right-to-left page, and `estimate` is an item's width. A\ngrid and a waterfall always run down.",
|
|
253476
253652
|
"fieldName": "orientation",
|
|
253477
253653
|
"inheritedFrom": {
|
|
253478
253654
|
"name": "HelixHeadlessVirtualList",
|
|
@@ -253485,7 +253661,7 @@
|
|
|
253485
253661
|
"text": "boolean"
|
|
253486
253662
|
},
|
|
253487
253663
|
"default": "false",
|
|
253488
|
-
"description": "Lets a reader move items, once `@fusion.dev/helix/virtual-list/reorder`\n(or `@fusion.dev/helix-headless/virtual-list/reorder`) is imported: Alt\nwith an arrow moves the row the keys are on, and a pointer drags a row.\nThe list moves no item itself: you move your `items` on `helix-reorder`.\nWithout that import it does nothing, so a list that never moves items\ncarries none of the code. A list of one column, without sections.",
|
|
253664
|
+
"description": "Lets a reader move items, once `@fusion.dev/helix/virtual-list/reorder`\n(or `@fusion.dev/helix-headless/virtual-list/reorder`) is imported: Alt\nwith an arrow moves the row the keys are on, and a pointer drags a row.\nThe list moves no item itself: you move your `items` on `helix-reorder`.\nWithout that import it does nothing, so a list that never moves items\ncarries none of the code. A list of one column, without sections or a\nwaterfall.",
|
|
253489
253665
|
"fieldName": "reorderable",
|
|
253490
253666
|
"inheritedFrom": {
|
|
253491
253667
|
"name": "HelixHeadlessVirtualList",
|
|
@@ -253691,6 +253867,6 @@
|
|
|
253691
253867
|
],
|
|
253692
253868
|
"helix": {
|
|
253693
253869
|
"package": "@fusion.dev/helix",
|
|
253694
|
-
"version": "0.
|
|
253870
|
+
"version": "0.183.0"
|
|
253695
253871
|
}
|
|
253696
253872
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createSheet } from '@fusion.dev/helix-core';
|
|
2
|
-
export const styles = createSheet(`:host {display: grid;position: relative;gap: var(--bar-chart-gap, var(--helix-space-2xs))}[part="plot"] {position: relative;block-size: var(--bar-chart-block-size, 12em)}[part="plot"] svg {block-size: 100%;inline-size: 100%;overflow: visible}[part="baseline"] {stroke: var(--helix-color-border);stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke}[part~="bar"] {--_bar-chart-corners: var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0 0;--_bar-chart-base: 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0;clip-path: inset(var(--_bar-chart-foot, 0) round var(--_bar-chart-corners));fill: var(--_bar-chart-series)}:host([orientation="horizontal"]) [part~="bar"] {--_bar-chart-corners: 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0;--_bar-chart-base: 0 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2)}:host([stacked]) [part~="bar"]:not([part~="bar-end"]) {--_bar-chart-corners: 0}[part~="bar-end-negative"] {--_bar-chart-corners: 0 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px)}:host([orientation="horizontal"]) [part~="bar-end-negative"] {--_bar-chart-corners: var(--bar-chart-bar-radius, 2px) 0 0 var(--bar-chart-bar-radius, 2px)}[part="labels"] {display: grid;grid-auto-columns: 1fr;grid-auto-flow: column}[part="label"] {color: var(--helix-color-foreground-muted);font-size: var(--helix-text-xs);overflow: hidden;text-align: center;text-overflow: ellipsis;white-space: nowrap}:host([orientation="horizontal"]) {grid-template-columns: auto 1fr}:host([orientation="horizontal"]) [part="labels"] {grid-column: 1;grid-row: 1}:host([orientation="horizontal"]) [part="plot"] {grid-column: 2;grid-row: 1}:host([orientation="horizontal"]) [part="labels"] {grid-auto-columns: auto;grid-auto-flow: row;grid-auto-rows: 1fr;align-self: start;block-size: var(--bar-chart-block-size, 12em)}:host([orientation="horizontal"]) [part="label"] {align-self: center;text-align: end}[part~="bar"], [part="line"] {--_bar-chart-series: var(--chart-series)}:host {--bar-chart-tone-accent: var(--helix-color-accent);--bar-chart-tone-danger: var(--helix-color-danger);--bar-chart-tone-info: var(--helix-color-info);--bar-chart-tone-muted: var(--helix-color-foreground-subtle);--bar-chart-tone-primary: var(--helix-color-primary);--bar-chart-tone-success: var(--helix-color-success);--bar-chart-tone-warning: var(--helix-color-warning)}[part="plot"]:has([data-active]) [part~="group"]:not([data-active]) {opacity: 0.45}[part~="group"] {transition: opacity var(--helix-duration-fast) var(--helix-easing-decelerate)}[part~="bar"] {transition: height var(--helix-duration-normal) var(--helix-easing-decelerate), width var(--helix-duration-normal) var(--helix-easing-decelerate), x var(--helix-duration-normal) var(--helix-easing-decelerate), y var(--helix-duration-normal) var(--helix-easing-decelerate)}@starting-style {:host(:not([orientation="horizontal"])) [part~="bar"] {height: 0;y: 100}:host([orientation="horizontal"]) [part~="bar"] {width: 0}}[part="plot"] {cursor: crosshair}[part="gridline"] {stroke: var(--bar-chart-gridline-color, var(--helix-color-border));stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke}[part="band"] {fill: var(--bar-chart-band-color, var(--helix-color-surface-sunken))}[part="line"] {fill: none;stroke: var(--bar-chart-line-color, var(--_bar-chart-series, var(--helix-color-series-1)));stroke-linecap: round;stroke-linejoin: round;stroke-width: var(--bar-chart-line-width, var(--_chart-stroke));vector-effect: non-scaling-stroke}:host([secondary]) {grid-template-columns: auto 1fr auto}:host([secondary]) [part="axis"][data-axis="primary"] {grid-column: 1;grid-row: 1}:host([secondary]) [part="plot"] {grid-column: 2;grid-row: 1}[part="axis"][data-axis="secondary"] {--_bar-chart-axis-ink: color-mix(in oklab, var(--bar-chart-secondary) 45%, var(--helix-color-foreground));color: var(--_bar-chart-axis-ink, var(--helix-color-foreground-subtle))}:host([secondary]) [part="axis"][data-axis="secondary"] {grid-column: 3;grid-row: 1}:host([secondary]) [part="labels"] {grid-column: 2;grid-row: 2}:host([orientation="horizontal"][secondary]) {grid-template-columns: auto 1fr;grid-template-rows: auto 1fr auto}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="secondary"] {grid-column: 2;grid-row: 1}:host([orientation="horizontal"][secondary]) [part="labels"] {grid-column: 1;grid-row: 2}:host([orientation="horizontal"][secondary]) [part="plot"] {grid-column: 2;grid-row: 2}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="primary"] {grid-column: 2;grid-row: 3}:host([value-axis]:not([secondary]):not([orientation="horizontal"])) {grid-template-columns: auto 1fr}:host([value-axis]:not([secondary]):not([orientation="horizontal"])) [part="axis"][data-axis="primary"] {grid-column: 1;grid-row: 1}:host([value-axis]:not([secondary]):not([orientation="horizontal"])) [part="plot"], :host([value-axis]:not([secondary]):not([orientation="horizontal"])) [part="labels"] {grid-column: 2}:host([value-axis][orientation="horizontal"]:not([secondary])) {grid-template-rows: 1fr auto}:host([value-axis][orientation="horizontal"]:not([secondary])) [part="axis"][data-axis="primary"] {grid-column: 2;grid-row: 2}[part="axis"] {color: var(--helix-color-foreground-subtle);font-size: var(--helix-text-xs);font-variant-numeric: tabular-nums;pointer-events: none;position: relative}:host(:not([orientation="horizontal"])) [part="axis"] {inline-size: var(--bar-chart-axis, 3ch)}:host([orientation="horizontal"]) [part="axis"] {block-size: 1lh}[part="tick"] {position: absolute}:host(:not([orientation="horizontal"])) [part="tick"] {inset-inline-end: 0;translate: 0 -50%}:host([orientation="horizontal"]) [part="tick"] {translate: -50% 0}:host([orientation="horizontal"]:dir(rtl)) [part="tick"] {translate: 50% 0}:host(:not([orientation="horizontal"])) [part="axis"][data-axis="secondary"] [part="tick"] {inset-inline-end: auto;inset-inline-start: 0}[part~="bar"] {fill-opacity: calc(var(--_bar-chart-area, 1) * var(--_bar-chart-through, 1));stroke-opacity: var(--_bar-chart-through, 1)}[part~="bar"][data-emphasis="outlined"], :host([emphasis="outlined"]) [part~="bar"]:not([data-emphasis]) {--_bar-chart-foot: var(--_bar-chart-base);fill: var(--_bar-chart-shade);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke}[part~="bar"][data-emphasis="subtle"], :host([emphasis="subtle"]) [part~="bar"]:not([data-emphasis]) {--_bar-chart-area: 0.2;--_bar-chart-foot: var(--_bar-chart-base);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke}[part~="bar"] {--_bar-chart-shade: color-mix(in oklab, var(--_bar-chart-series) 60%, var(--helix-color-background))}[part~="bar"][data-material="glass"], :host([material="glass"]) [part~="bar"]:not([data-material]) {--_bar-chart-through: calc(0.62 * var(--helix-material-opacity))}:host([material="frosted"]) [part~="bar"]:not([data-material]) {--_bar-chart-through: calc(0.88 * var(--helix-material-opacity))}:host([wash="gradient"]) [part~="bar"] {fill: var(--chart-bar-wash)}[part="bar-wash-start"] {stop-color: var(--chart-series);stop-opacity: calc(1 * var(--helix-material-opacity))}[part="bar-wash-end"] {stop-color: var(--chart-series);stop-opacity: calc(0.35 * var(--helix-material-opacity))}@media print {:host {print-color-adjust: exact}}[part="summary"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;position: absolute;white-space: nowrap}`);
|
|
2
|
+
export const styles = createSheet(`:host {display: grid;position: relative;gap: var(--bar-chart-gap, var(--helix-space-2xs))}[part="plot"] {position: relative;block-size: var(--bar-chart-block-size, 12em)}[part="plot"] svg {block-size: 100%;inline-size: 100%;overflow: visible}[part="baseline"] {stroke: var(--helix-color-border);stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke}[part~="bar"] {--_bar-chart-corners: var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0 0;--_bar-chart-base: 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0;clip-path: inset(var(--_bar-chart-foot, 0) round var(--_bar-chart-corners));fill: var(--_bar-chart-series)}:host([orientation="horizontal"]) [part~="bar"] {--_bar-chart-corners: 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px) 0;--_bar-chart-base: 0 0 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2)}:host([stacked]) [part~="bar"]:not([part~="bar-end"]) {--_bar-chart-corners: 0}[part~="bar-end-negative"] {--_bar-chart-corners: 0 0 var(--bar-chart-bar-radius, 2px) var(--bar-chart-bar-radius, 2px)}:host([orientation="horizontal"]) [part~="bar-end-negative"] {--_bar-chart-corners: var(--bar-chart-bar-radius, 2px) 0 0 var(--bar-chart-bar-radius, 2px)}[part~="bar-negative"] {--_bar-chart-base: calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0 0 0}:host([orientation="horizontal"]) [part~="bar-negative"] {--_bar-chart-base: 0 calc(var(--bar-chart-bar-stroke, var(--helix-border-thick)) / 2) 0 0}[part="labels"] {display: grid;grid-auto-columns: 1fr;grid-auto-flow: column}[part="label"] {color: var(--helix-color-foreground-muted);font-size: var(--helix-text-xs);overflow: hidden;text-align: center;text-overflow: ellipsis;white-space: nowrap}:host([orientation="horizontal"]) {grid-template-columns: auto 1fr}:host([orientation="horizontal"]) [part="labels"] {grid-column: 1;grid-row: 1}:host([orientation="horizontal"]) [part="plot"] {grid-column: 2;grid-row: 1}:host([orientation="horizontal"]) [part="labels"] {grid-auto-columns: auto;grid-auto-flow: row;grid-auto-rows: 1fr;align-self: start;block-size: var(--bar-chart-block-size, 12em)}:host([orientation="horizontal"]) [part="label"] {align-self: center;text-align: end}[part~="bar"], [part="line"] {--_bar-chart-series: var(--chart-series)}:host {--bar-chart-tone-accent: var(--helix-color-accent);--bar-chart-tone-danger: var(--helix-color-danger);--bar-chart-tone-info: var(--helix-color-info);--bar-chart-tone-muted: var(--helix-color-foreground-subtle);--bar-chart-tone-primary: var(--helix-color-primary);--bar-chart-tone-success: var(--helix-color-success);--bar-chart-tone-warning: var(--helix-color-warning)}[part="plot"]:has([data-active]) [part~="group"]:not([data-active]) {opacity: 0.45}[part~="group"] {transition: opacity var(--helix-duration-fast) var(--helix-easing-decelerate)}[part~="bar"] {transition: height var(--helix-duration-normal) var(--helix-easing-decelerate), width var(--helix-duration-normal) var(--helix-easing-decelerate), x var(--helix-duration-normal) var(--helix-easing-decelerate), y var(--helix-duration-normal) var(--helix-easing-decelerate)}@starting-style {:host(:not([orientation="horizontal"])) [part~="bar"] {height: 0;y: 100}:host([orientation="horizontal"]) [part~="bar"] {width: 0}}[part="plot"] {cursor: crosshair}[part="gridline"] {stroke: var(--bar-chart-gridline-color, var(--helix-color-border));stroke-width: var(--helix-border-thin);vector-effect: non-scaling-stroke}[part="band"] {fill: var(--bar-chart-band-color, var(--helix-color-surface-sunken))}[part="line"] {fill: none;stroke: var(--bar-chart-line-color, var(--_bar-chart-series, var(--helix-color-series-1)));stroke-linecap: round;stroke-linejoin: round;stroke-width: var(--bar-chart-line-width, var(--_chart-stroke));vector-effect: non-scaling-stroke}:host([secondary]) {grid-template-columns: auto 1fr auto}:host([secondary]) [part="axis"][data-axis="primary"] {grid-column: 1;grid-row: 1}:host([secondary]) [part="plot"] {grid-column: 2;grid-row: 1}[part="axis"][data-axis="secondary"] {--_bar-chart-axis-ink: color-mix(in oklab, var(--bar-chart-secondary) 45%, var(--helix-color-foreground));color: var(--_bar-chart-axis-ink, var(--helix-color-foreground-subtle))}:host([secondary]) [part="axis"][data-axis="secondary"] {grid-column: 3;grid-row: 1}:host([secondary]) [part="labels"] {grid-column: 2;grid-row: 2}:host([orientation="horizontal"][secondary]) {grid-template-columns: auto 1fr;grid-template-rows: auto 1fr auto}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="secondary"] {grid-column: 2;grid-row: 1}:host([orientation="horizontal"][secondary]) [part="labels"] {grid-column: 1;grid-row: 2}:host([orientation="horizontal"][secondary]) [part="plot"] {grid-column: 2;grid-row: 2}:host([orientation="horizontal"][secondary]) [part="axis"][data-axis="primary"] {grid-column: 2;grid-row: 3}:host([value-axis]:not([secondary]):not([orientation="horizontal"])) {grid-template-columns: auto 1fr}:host([value-axis]:not([secondary]):not([orientation="horizontal"])) [part="axis"][data-axis="primary"] {grid-column: 1;grid-row: 1}:host([value-axis]:not([secondary]):not([orientation="horizontal"])) [part="plot"], :host([value-axis]:not([secondary]):not([orientation="horizontal"])) [part="labels"] {grid-column: 2}:host([value-axis][orientation="horizontal"]:not([secondary])) {grid-template-rows: 1fr auto}:host([value-axis][orientation="horizontal"]:not([secondary])) [part="axis"][data-axis="primary"] {grid-column: 2;grid-row: 2}[part="axis"] {color: var(--helix-color-foreground-subtle);font-size: var(--helix-text-xs);font-variant-numeric: tabular-nums;pointer-events: none;position: relative}:host(:not([orientation="horizontal"])) [part="axis"] {inline-size: var(--bar-chart-axis, 3ch)}:host([orientation="horizontal"]) [part="axis"] {block-size: 1lh}[part="tick"] {position: absolute}:host(:not([orientation="horizontal"])) [part="tick"] {inset-inline-end: 0;translate: 0 -50%}:host([orientation="horizontal"]) [part="tick"] {translate: -50% 0}:host([orientation="horizontal"]:dir(rtl)) [part="tick"] {translate: 50% 0}:host(:not([orientation="horizontal"])) [part="axis"][data-axis="secondary"] [part="tick"] {inset-inline-end: auto;inset-inline-start: 0}[part~="bar"] {fill-opacity: calc(var(--_bar-chart-area, 1) * var(--_bar-chart-through, 1));stroke-opacity: var(--_bar-chart-through, 1)}[part~="bar"][data-emphasis="outlined"], :host([emphasis="outlined"]) [part~="bar"]:not([data-emphasis]) {--_bar-chart-foot: var(--_bar-chart-base);fill: var(--_bar-chart-shade);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke}[part~="bar"][data-emphasis="subtle"], :host([emphasis="subtle"]) [part~="bar"]:not([data-emphasis]) {--_bar-chart-area: 0.2;--_bar-chart-foot: var(--_bar-chart-base);stroke: var(--_bar-chart-series);stroke-width: var(--bar-chart-bar-stroke, var(--helix-border-thick));vector-effect: non-scaling-stroke}[part~="bar"] {--_bar-chart-shade: color-mix(in oklab, var(--_bar-chart-series) 60%, var(--helix-color-background))}[part~="bar"][data-material="glass"], :host([material="glass"]) [part~="bar"]:not([data-material]) {--_bar-chart-through: calc(0.62 * var(--helix-material-opacity))}:host([material="frosted"]) [part~="bar"]:not([data-material]) {--_bar-chart-through: calc(0.88 * var(--helix-material-opacity))}:host([wash="gradient"]) [part~="bar"] {fill: var(--chart-bar-wash)}[part="bar-wash-start"] {stop-color: var(--chart-series);stop-opacity: calc(1 * var(--helix-material-opacity))}[part="bar-wash-end"] {stop-color: var(--chart-series);stop-opacity: calc(0.35 * var(--helix-material-opacity))}@media print {:host {print-color-adjust: exact}}[part="summary"] {block-size: 1px;clip-path: inset(50%);inline-size: 1px;margin: var(--helix-space-none);overflow: hidden;position: absolute;white-space: nowrap}`);
|