@rcarls/rc-list 0.6.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +177 -0
- package/README.md +102 -0
- package/dist/custom-elements.json +430 -2
- package/dist/rc-list-BqQXmC0M.js +325 -0
- package/dist/rc-list-BqQXmC0M.js.map +1 -0
- package/dist/rc-list-define.js +1 -1
- package/dist/rc-list.js +1 -1
- package/dist/types/packages/rc-list/src/listBaseStyles.d.ts +10 -0
- package/dist/types/packages/rc-list/src/rc-list-item.d.ts +51 -2
- package/dist/types/packages/rc-list/src/rc-list.d.ts +83 -1
- package/package.json +2 -2
- package/dist/rc-list-DyOxApRJ.js +0 -361
- package/dist/rc-list-DyOxApRJ.js.map +0 -1
|
@@ -56,6 +56,54 @@
|
|
|
56
56
|
}
|
|
57
57
|
]
|
|
58
58
|
},
|
|
59
|
+
{
|
|
60
|
+
"kind": "javascript-module",
|
|
61
|
+
"path": "src/listBaseStyles.ts",
|
|
62
|
+
"declarations": [
|
|
63
|
+
{
|
|
64
|
+
"kind": "variable",
|
|
65
|
+
"name": "LIST_BASE_CSS",
|
|
66
|
+
"default": "cssText` @layer rc-base { rc-list[reorderable] [data-rc-reorder-handle] { touch-action: none; cursor: grab; } rc-list[data-reordering] { user-select: none; -webkit-user-select: none; } rc-list[data-reordering] [data-rc-reorder-handle] { cursor: grabbing; } /* Items shifting out of the lifted item's way. The lifted item follows the pointer. */ rc-list[data-reordering] > rc-list-item:not([data-dragging]) { transition: translate var(--rc-list-item-reorder-duration, 0ms) var(--rc-list-item-reorder-easing, ease); } @media (prefers-reduced-motion: reduce) { rc-list[data-reordering] > rc-list-item { transition-duration: 0ms; } } } `",
|
|
67
|
+
"description": "Light-DOM base styles for `rc-list` reordering.\n\nReorder handles are consumer-authored buttons in light DOM, so the list's\nshadow styles cannot reach them. A handle must not start native panning, or\na touch drag scrolls the page instead of moving the item."
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"kind": "function",
|
|
71
|
+
"name": "ensureListBaseStyles",
|
|
72
|
+
"return": {
|
|
73
|
+
"type": {
|
|
74
|
+
"text": "void"
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
"parameters": [
|
|
78
|
+
{
|
|
79
|
+
"name": "root",
|
|
80
|
+
"type": {
|
|
81
|
+
"text": "Document | ShadowRoot"
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
],
|
|
85
|
+
"description": "Installs the shared list reorder styles once per containing root."
|
|
86
|
+
}
|
|
87
|
+
],
|
|
88
|
+
"exports": [
|
|
89
|
+
{
|
|
90
|
+
"kind": "js",
|
|
91
|
+
"name": "LIST_BASE_CSS",
|
|
92
|
+
"declaration": {
|
|
93
|
+
"name": "LIST_BASE_CSS",
|
|
94
|
+
"module": "src/listBaseStyles.ts"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"kind": "js",
|
|
99
|
+
"name": "ensureListBaseStyles",
|
|
100
|
+
"declaration": {
|
|
101
|
+
"name": "ensureListBaseStyles",
|
|
102
|
+
"module": "src/listBaseStyles.ts"
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
]
|
|
106
|
+
},
|
|
59
107
|
{
|
|
60
108
|
"kind": "javascript-module",
|
|
61
109
|
"path": "src/rc-list-item.ts",
|
|
@@ -204,6 +252,31 @@
|
|
|
204
252
|
"name": "--rc-list-item-disabled-opacity",
|
|
205
253
|
"default": "0.38"
|
|
206
254
|
},
|
|
255
|
+
{
|
|
256
|
+
"description": "Surface of an item lifted for reordering. Falls back to `--rc-list-item-background`, then `Canvas`, so the item stays opaque.",
|
|
257
|
+
"name": "--rc-list-item-dragged-background",
|
|
258
|
+
"default": "Canvas"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
"description": "Shadow of a lifted item. Falls back to `--rc-list-item-box-shadow`.",
|
|
262
|
+
"name": "--rc-list-item-dragged-box-shadow",
|
|
263
|
+
"default": "none"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
"description": "Lifted item state opacity.",
|
|
267
|
+
"name": "--rc-list-item-dragged-state-layer-opacity",
|
|
268
|
+
"default": "0.16"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"description": "Duration of the shift that makes room for a lifted item. Read from the item, applied from light-DOM base styles.",
|
|
272
|
+
"name": "--rc-list-item-reorder-duration",
|
|
273
|
+
"default": "0ms"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
"description": "Easing of that shift.",
|
|
277
|
+
"name": "--rc-list-item-reorder-easing",
|
|
278
|
+
"default": "ease"
|
|
279
|
+
},
|
|
207
280
|
{
|
|
208
281
|
"description": "Row state transition duration.",
|
|
209
282
|
"name": "--rc-list-item-transition-duration",
|
|
@@ -213,6 +286,26 @@
|
|
|
213
286
|
"description": "Row state transition easing.",
|
|
214
287
|
"name": "--rc-list-item-transition-easing",
|
|
215
288
|
"default": "ease"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"description": "Details region column placement.",
|
|
292
|
+
"name": "--rc-list-item-details-grid-column",
|
|
293
|
+
"default": "content-start / trailing-end"
|
|
294
|
+
},
|
|
295
|
+
{
|
|
296
|
+
"description": "Space below the details region.",
|
|
297
|
+
"name": "--rc-list-item-details-padding-block-end",
|
|
298
|
+
"default": "0"
|
|
299
|
+
},
|
|
300
|
+
{
|
|
301
|
+
"description": "Details region foreground.",
|
|
302
|
+
"name": "--rc-list-item-details-color",
|
|
303
|
+
"default": "inherit"
|
|
304
|
+
},
|
|
305
|
+
{
|
|
306
|
+
"description": "Details reveal duration.",
|
|
307
|
+
"name": "--rc-list-item-details-duration",
|
|
308
|
+
"default": "0ms"
|
|
216
309
|
}
|
|
217
310
|
],
|
|
218
311
|
"cssParts": [
|
|
@@ -239,6 +332,10 @@
|
|
|
239
332
|
{
|
|
240
333
|
"description": "Row divider.",
|
|
241
334
|
"name": "divider"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"description": "Expanded supporting region wrapper.",
|
|
338
|
+
"name": "details"
|
|
242
339
|
}
|
|
243
340
|
],
|
|
244
341
|
"slots": [
|
|
@@ -253,6 +350,10 @@
|
|
|
253
350
|
{
|
|
254
351
|
"description": "Optional trailing metadata or action.",
|
|
255
352
|
"name": "trailing"
|
|
353
|
+
},
|
|
354
|
+
{
|
|
355
|
+
"description": "Optional supporting region below the row, shown while expanded. A descendant `button[data-rc-list-item-toggle]` (usually in `trailing`) toggles it; the item wires the button's `aria-expanded` and `aria-controls` and the region's `hidden` state.",
|
|
356
|
+
"name": "details"
|
|
256
357
|
}
|
|
257
358
|
],
|
|
258
359
|
"members": [
|
|
@@ -308,6 +409,51 @@
|
|
|
308
409
|
"description": "ID of a same-root anchor or button that receives forwarded surface\nclicks — the same contract as `rc-card`'s `action-target`. Checked\nbefore the native radio/checkbox fallback, so a row can combine a\nselection input with its own `action-target` if it ever needs to\n(uncommon, but not fought against).",
|
|
309
410
|
"attribute": "action-target"
|
|
310
411
|
},
|
|
412
|
+
{
|
|
413
|
+
"kind": "field",
|
|
414
|
+
"name": "defaultExpanded",
|
|
415
|
+
"type": {
|
|
416
|
+
"text": "boolean"
|
|
417
|
+
},
|
|
418
|
+
"default": "false",
|
|
419
|
+
"description": "Initial expanded state of the `details` region for uncontrolled usage.",
|
|
420
|
+
"attribute": "default-expanded"
|
|
421
|
+
},
|
|
422
|
+
{
|
|
423
|
+
"kind": "field",
|
|
424
|
+
"name": "_controlledExpanded",
|
|
425
|
+
"type": {
|
|
426
|
+
"text": "boolean | undefined"
|
|
427
|
+
},
|
|
428
|
+
"privacy": "private"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"kind": "field",
|
|
432
|
+
"name": "_uncontrolledExpanded",
|
|
433
|
+
"type": {
|
|
434
|
+
"text": "boolean | undefined"
|
|
435
|
+
},
|
|
436
|
+
"privacy": "private"
|
|
437
|
+
},
|
|
438
|
+
{
|
|
439
|
+
"kind": "field",
|
|
440
|
+
"name": "_hasDetails",
|
|
441
|
+
"type": {
|
|
442
|
+
"text": "boolean"
|
|
443
|
+
},
|
|
444
|
+
"privacy": "private",
|
|
445
|
+
"default": "false"
|
|
446
|
+
},
|
|
447
|
+
{
|
|
448
|
+
"kind": "field",
|
|
449
|
+
"name": "expanded",
|
|
450
|
+
"type": {
|
|
451
|
+
"text": "boolean"
|
|
452
|
+
},
|
|
453
|
+
"description": "Current expanded state of the `details` region. Host writes are silent and\ntake control; assign `undefined` to release control.",
|
|
454
|
+
"attribute": "expanded",
|
|
455
|
+
"reflects": true
|
|
456
|
+
},
|
|
311
457
|
{
|
|
312
458
|
"kind": "method",
|
|
313
459
|
"name": "_hasAssignedElements",
|
|
@@ -344,6 +490,61 @@
|
|
|
344
490
|
}
|
|
345
491
|
]
|
|
346
492
|
},
|
|
493
|
+
{
|
|
494
|
+
"kind": "method",
|
|
495
|
+
"name": "_handleDetailsSlotChange",
|
|
496
|
+
"privacy": "private",
|
|
497
|
+
"return": {
|
|
498
|
+
"type": {
|
|
499
|
+
"text": "void"
|
|
500
|
+
}
|
|
501
|
+
},
|
|
502
|
+
"parameters": [
|
|
503
|
+
{
|
|
504
|
+
"name": "event",
|
|
505
|
+
"type": {
|
|
506
|
+
"text": "Event"
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
]
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
"kind": "method",
|
|
513
|
+
"name": "_toggle",
|
|
514
|
+
"privacy": "private",
|
|
515
|
+
"return": {
|
|
516
|
+
"type": {
|
|
517
|
+
"text": "HTMLElement | null"
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
"kind": "method",
|
|
523
|
+
"name": "_details",
|
|
524
|
+
"privacy": "private",
|
|
525
|
+
"return": {
|
|
526
|
+
"type": {
|
|
527
|
+
"text": "HTMLElement | null"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
"kind": "method",
|
|
533
|
+
"name": "_syncDetails",
|
|
534
|
+
"privacy": "private",
|
|
535
|
+
"return": {
|
|
536
|
+
"type": {
|
|
537
|
+
"text": "void"
|
|
538
|
+
}
|
|
539
|
+
},
|
|
540
|
+
"description": "Mirror the expanded state to the authored toggle and details region."
|
|
541
|
+
},
|
|
542
|
+
{
|
|
543
|
+
"kind": "field",
|
|
544
|
+
"name": "_handleToggleClick",
|
|
545
|
+
"privacy": "private",
|
|
546
|
+
"readonly": true
|
|
547
|
+
},
|
|
347
548
|
{
|
|
348
549
|
"kind": "method",
|
|
349
550
|
"name": "_nativeInput",
|
|
@@ -373,6 +574,12 @@
|
|
|
373
574
|
"default": "'listitem'"
|
|
374
575
|
}
|
|
375
576
|
],
|
|
577
|
+
"events": [
|
|
578
|
+
{
|
|
579
|
+
"description": "Fires when the toggle button requests a new expanded state.",
|
|
580
|
+
"name": "rc-list-item-toggle"
|
|
581
|
+
}
|
|
582
|
+
],
|
|
376
583
|
"attributes": [
|
|
377
584
|
{
|
|
378
585
|
"description": "Presentational selected state. Host writes are silent.",
|
|
@@ -410,6 +617,23 @@
|
|
|
410
617
|
"default": "''",
|
|
411
618
|
"fieldName": "actionTarget"
|
|
412
619
|
},
|
|
620
|
+
{
|
|
621
|
+
"description": "Current expanded state of the `details` region. Host writes are silent and\ntake control; assign `undefined` to release control.",
|
|
622
|
+
"name": "expanded",
|
|
623
|
+
"type": {
|
|
624
|
+
"text": "boolean"
|
|
625
|
+
},
|
|
626
|
+
"fieldName": "expanded"
|
|
627
|
+
},
|
|
628
|
+
{
|
|
629
|
+
"description": "Initial expanded state of the `details` region for uncontrolled usage.",
|
|
630
|
+
"name": "default-expanded",
|
|
631
|
+
"type": {
|
|
632
|
+
"text": "boolean"
|
|
633
|
+
},
|
|
634
|
+
"default": "false",
|
|
635
|
+
"fieldName": "defaultExpanded"
|
|
636
|
+
},
|
|
413
637
|
{
|
|
414
638
|
"description": "Reflected when the leading slot has content.",
|
|
415
639
|
"name": "has-leading"
|
|
@@ -419,7 +643,11 @@
|
|
|
419
643
|
"name": "has-trailing"
|
|
420
644
|
},
|
|
421
645
|
{
|
|
422
|
-
"description": "
|
|
646
|
+
"description": "Set by a `reorderable` parent list while this item is lifted.",
|
|
647
|
+
"name": "data-dragging"
|
|
648
|
+
},
|
|
649
|
+
{
|
|
650
|
+
"description": "Row position assigned by the parent list: from `aria-posinset` and `aria-setsize` when the row has them (a virtualized slice), otherwise from rendered order.",
|
|
423
651
|
"name": "data-rc-list-position"
|
|
424
652
|
}
|
|
425
653
|
],
|
|
@@ -482,7 +710,7 @@
|
|
|
482
710
|
"default": "1rem"
|
|
483
711
|
},
|
|
484
712
|
{
|
|
485
|
-
"description": "Gap between rows.",
|
|
713
|
+
"description": "Gap between rows. ## Reordering With `reorderable`, a native `<button data-rc-reorder-handle>` inside an item starts a reorder. Label the button yourself, for example \"Reorder Photo 2\". Handles without an authored `aria-description` get a short keyboard hint. - Pointer: press the handle and drag. The lifted item follows the pointer, the items it passes shift out of its way, and the nearest scroll container scrolls near its edges. Escape cancels. - Touch and pen: as on Android, a long press anywhere on an item also picks it up, then drag. Moving before the press completes scrolls the list instead. A mouse drags only by the handle. Item text cannot be selected in a reorderable list. - Keyboard: Space or Enter picks the item up, the block-axis arrow keys, Home, and End move it, Space or Enter drops it, and Escape returns it. Leaving the handle drops it. Each step is announced through a polite live region mounted in the nearest open `dialog` or popover, else the document body; override the text with `reorderMessages`. Focus stays on the moved item's handle, and is restored to the item at the new position when a framework replaces the item's nodes. The lifted item carries `data-dragging`, and the list carries `data-reordering`. The list writes inline `translate` offsets to items while a pointer drag previews a move.",
|
|
486
714
|
"name": "--rc-list-row-gap",
|
|
487
715
|
"default": "0"
|
|
488
716
|
}
|
|
@@ -556,6 +784,15 @@
|
|
|
556
784
|
"privacy": "private",
|
|
557
785
|
"default": "null"
|
|
558
786
|
},
|
|
787
|
+
{
|
|
788
|
+
"kind": "field",
|
|
789
|
+
"name": "_unobserveLocale",
|
|
790
|
+
"type": {
|
|
791
|
+
"text": "(() => void) | null"
|
|
792
|
+
},
|
|
793
|
+
"privacy": "private",
|
|
794
|
+
"default": "null"
|
|
795
|
+
},
|
|
559
796
|
{
|
|
560
797
|
"kind": "field",
|
|
561
798
|
"name": "variant",
|
|
@@ -578,6 +815,62 @@
|
|
|
578
815
|
"attribute": "selection",
|
|
579
816
|
"reflects": true
|
|
580
817
|
},
|
|
818
|
+
{
|
|
819
|
+
"kind": "field",
|
|
820
|
+
"name": "ordered",
|
|
821
|
+
"type": {
|
|
822
|
+
"text": "boolean"
|
|
823
|
+
},
|
|
824
|
+
"default": "false",
|
|
825
|
+
"description": "Whether item order is meaningful; positions are exposed without rendered counters.",
|
|
826
|
+
"attribute": "ordered",
|
|
827
|
+
"reflects": true
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
"kind": "field",
|
|
831
|
+
"name": "reorderable",
|
|
832
|
+
"type": {
|
|
833
|
+
"text": "boolean"
|
|
834
|
+
},
|
|
835
|
+
"default": "false",
|
|
836
|
+
"description": "Whether people can reorder items with a handle. Implies `ordered`.",
|
|
837
|
+
"attribute": "reorderable",
|
|
838
|
+
"reflects": true
|
|
839
|
+
},
|
|
840
|
+
{
|
|
841
|
+
"kind": "field",
|
|
842
|
+
"name": "reorderMessages",
|
|
843
|
+
"type": {
|
|
844
|
+
"text": "RCListReorderMessages | undefined"
|
|
845
|
+
},
|
|
846
|
+
"description": "Overrides for the reorder announcements and the handle hint."
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
"kind": "field",
|
|
850
|
+
"name": "_reorder",
|
|
851
|
+
"type": {
|
|
852
|
+
"text": "ReorderController"
|
|
853
|
+
},
|
|
854
|
+
"privacy": "private",
|
|
855
|
+
"readonly": true,
|
|
856
|
+
"default": "new ReorderController(this, { items: () => (this.reorderable ? this._visibleItems() : []), handleSelector: REORDER_HANDLE, disabled: () => !this.reorderable, messages: () => this.reorderMessages, onMove: (item, from, to) => this._moveItem(item as RCListItem, from, to), onActiveChange: (item) => { this.toggleAttribute('data-reordering', item !== null); this._items().forEach(($item) => $item.toggleAttribute('data-dragging', $item === item)); }, })"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"kind": "field",
|
|
860
|
+
"name": "_describedHandles",
|
|
861
|
+
"privacy": "private",
|
|
862
|
+
"readonly": true,
|
|
863
|
+
"default": "new Map<HTMLElement, string>()",
|
|
864
|
+
"description": "Handle descriptions this list wrote, released when no longer reorderable."
|
|
865
|
+
},
|
|
866
|
+
{
|
|
867
|
+
"kind": "field",
|
|
868
|
+
"name": "_positionedItems",
|
|
869
|
+
"privacy": "private",
|
|
870
|
+
"readonly": true,
|
|
871
|
+
"default": "new Map<RCListItem, { posinset: string; setsize: string }>()",
|
|
872
|
+
"description": "Positions this list wrote, by item. An item whose attributes no longer\nmatch was repositioned by its author, possibly after the first sync, and\nis left alone from then on."
|
|
873
|
+
},
|
|
581
874
|
{
|
|
582
875
|
"kind": "method",
|
|
583
876
|
"name": "_items",
|
|
@@ -588,6 +881,16 @@
|
|
|
588
881
|
}
|
|
589
882
|
}
|
|
590
883
|
},
|
|
884
|
+
{
|
|
885
|
+
"kind": "method",
|
|
886
|
+
"name": "_visibleItems",
|
|
887
|
+
"privacy": "private",
|
|
888
|
+
"return": {
|
|
889
|
+
"type": {
|
|
890
|
+
"text": "RCListItem[]"
|
|
891
|
+
}
|
|
892
|
+
}
|
|
893
|
+
},
|
|
591
894
|
{
|
|
592
895
|
"kind": "method",
|
|
593
896
|
"name": "_expectedInputType",
|
|
@@ -636,6 +939,103 @@
|
|
|
636
939
|
}
|
|
637
940
|
}
|
|
638
941
|
},
|
|
942
|
+
{
|
|
943
|
+
"kind": "method",
|
|
944
|
+
"name": "_syncOrderedPositions",
|
|
945
|
+
"privacy": "private",
|
|
946
|
+
"return": {
|
|
947
|
+
"type": {
|
|
948
|
+
"text": "void"
|
|
949
|
+
}
|
|
950
|
+
},
|
|
951
|
+
"parameters": [
|
|
952
|
+
{
|
|
953
|
+
"name": "items",
|
|
954
|
+
"type": {
|
|
955
|
+
"text": "RCListItem[]"
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
],
|
|
959
|
+
"description": "Expose each visible item's position in an ordered list. Items that carry\nauthored positions (a virtualized slice) keep them; positions this list\nwrote are released when the item leaves or the list stops being ordered."
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"kind": "method",
|
|
963
|
+
"name": "_isOrdered",
|
|
964
|
+
"privacy": "private",
|
|
965
|
+
"return": {
|
|
966
|
+
"type": {
|
|
967
|
+
"text": "boolean"
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"kind": "method",
|
|
973
|
+
"name": "_syncHandleDescriptions",
|
|
974
|
+
"privacy": "private",
|
|
975
|
+
"return": {
|
|
976
|
+
"type": {
|
|
977
|
+
"text": "void"
|
|
978
|
+
}
|
|
979
|
+
},
|
|
980
|
+
"parameters": [
|
|
981
|
+
{
|
|
982
|
+
"name": "items",
|
|
983
|
+
"type": {
|
|
984
|
+
"text": "RCListItem[]"
|
|
985
|
+
}
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"description": "Give each handle a keyboard hint unless its author described it. A\ndescription the author rewrites afterward is theirs from then on."
|
|
989
|
+
},
|
|
990
|
+
{
|
|
991
|
+
"kind": "method",
|
|
992
|
+
"name": "_moveItem",
|
|
993
|
+
"privacy": "private",
|
|
994
|
+
"return": {
|
|
995
|
+
"type": {
|
|
996
|
+
"text": "void"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
"parameters": [
|
|
1000
|
+
{
|
|
1001
|
+
"name": "item",
|
|
1002
|
+
"type": {
|
|
1003
|
+
"text": "RCListItem"
|
|
1004
|
+
}
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
"name": "from",
|
|
1008
|
+
"type": {
|
|
1009
|
+
"text": "number"
|
|
1010
|
+
}
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
"name": "to",
|
|
1014
|
+
"type": {
|
|
1015
|
+
"text": "number"
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
],
|
|
1019
|
+
"description": "Dispatch a reorder and, unless a consumer took it over, move the node."
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
"kind": "method",
|
|
1023
|
+
"name": "_releasePosition",
|
|
1024
|
+
"privacy": "private",
|
|
1025
|
+
"return": {
|
|
1026
|
+
"type": {
|
|
1027
|
+
"text": "void"
|
|
1028
|
+
}
|
|
1029
|
+
},
|
|
1030
|
+
"parameters": [
|
|
1031
|
+
{
|
|
1032
|
+
"name": "$item",
|
|
1033
|
+
"type": {
|
|
1034
|
+
"text": "RCListItem"
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
]
|
|
1038
|
+
},
|
|
639
1039
|
{
|
|
640
1040
|
"kind": "method",
|
|
641
1041
|
"name": "_restoreItem",
|
|
@@ -695,6 +1095,12 @@
|
|
|
695
1095
|
"default": "'list'"
|
|
696
1096
|
}
|
|
697
1097
|
],
|
|
1098
|
+
"events": [
|
|
1099
|
+
{
|
|
1100
|
+
"description": "Fires, cancelable, when a reorder moves an item; `detail: { item, from, to }`. Unless the event is canceled the list moves the item's node itself. A framework that renders the items cancels it and reorders its own data. A pointer drag fires once on drop; the keyboard fires on each step, and once more to move the item back when the reorder is canceled.",
|
|
1101
|
+
"name": "rc-list-reorder"
|
|
1102
|
+
}
|
|
1103
|
+
],
|
|
698
1104
|
"attributes": [
|
|
699
1105
|
{
|
|
700
1106
|
"description": "Appearance hint.",
|
|
@@ -714,6 +1120,28 @@
|
|
|
714
1120
|
"default": "'none'",
|
|
715
1121
|
"fieldName": "selection"
|
|
716
1122
|
},
|
|
1123
|
+
{
|
|
1124
|
+
"description": "Whether item order is meaningful; positions are exposed without rendered counters.",
|
|
1125
|
+
"name": "ordered",
|
|
1126
|
+
"type": {
|
|
1127
|
+
"text": "boolean"
|
|
1128
|
+
},
|
|
1129
|
+
"default": "false",
|
|
1130
|
+
"fieldName": "ordered"
|
|
1131
|
+
},
|
|
1132
|
+
{
|
|
1133
|
+
"description": "Whether people can reorder items with a handle. Implies `ordered`.",
|
|
1134
|
+
"name": "reorderable",
|
|
1135
|
+
"type": {
|
|
1136
|
+
"text": "boolean"
|
|
1137
|
+
},
|
|
1138
|
+
"default": "false",
|
|
1139
|
+
"fieldName": "reorderable"
|
|
1140
|
+
},
|
|
1141
|
+
{
|
|
1142
|
+
"description": "Reflected while an item is lifted.",
|
|
1143
|
+
"name": "data-reordering"
|
|
1144
|
+
},
|
|
717
1145
|
{
|
|
718
1146
|
"description": "Reflected when a visible item uses the leading slot.",
|
|
719
1147
|
"name": "has-leading"
|