ngwr 16.1.0 → 16.2.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.
Files changed (123) hide show
  1. package/date-picker/styles/_index.scss +89 -1
  2. package/dropdown/styles/_index.scss +37 -1
  3. package/fesm2022/ngwr-date-picker-testing.mjs +18 -0
  4. package/fesm2022/ngwr-date-picker-testing.mjs.map +1 -1
  5. package/fesm2022/ngwr-date-picker.mjs +152 -8
  6. package/fesm2022/ngwr-date-picker.mjs.map +1 -1
  7. package/fesm2022/ngwr-date-stamp-testing.mjs.map +1 -1
  8. package/fesm2022/ngwr-date-stamp.mjs +73 -9
  9. package/fesm2022/ngwr-date-stamp.mjs.map +1 -1
  10. package/fesm2022/ngwr-date.mjs +86 -5
  11. package/fesm2022/ngwr-date.mjs.map +1 -1
  12. package/fesm2022/ngwr-dropdown-testing.mjs +38 -3
  13. package/fesm2022/ngwr-dropdown-testing.mjs.map +1 -1
  14. package/fesm2022/ngwr-dropdown.mjs +358 -24
  15. package/fesm2022/ngwr-dropdown.mjs.map +1 -1
  16. package/fesm2022/ngwr-i18n-ar.mjs +7 -2
  17. package/fesm2022/ngwr-i18n-ar.mjs.map +1 -1
  18. package/fesm2022/ngwr-i18n-cs.mjs +7 -2
  19. package/fesm2022/ngwr-i18n-cs.mjs.map +1 -1
  20. package/fesm2022/ngwr-i18n-de.mjs +7 -2
  21. package/fesm2022/ngwr-i18n-de.mjs.map +1 -1
  22. package/fesm2022/ngwr-i18n-en.mjs +7 -2
  23. package/fesm2022/ngwr-i18n-en.mjs.map +1 -1
  24. package/fesm2022/ngwr-i18n-es.mjs +7 -2
  25. package/fesm2022/ngwr-i18n-es.mjs.map +1 -1
  26. package/fesm2022/ngwr-i18n-fr.mjs +7 -2
  27. package/fesm2022/ngwr-i18n-fr.mjs.map +1 -1
  28. package/fesm2022/ngwr-i18n-he.mjs +7 -2
  29. package/fesm2022/ngwr-i18n-he.mjs.map +1 -1
  30. package/fesm2022/ngwr-i18n-hi.mjs +7 -2
  31. package/fesm2022/ngwr-i18n-hi.mjs.map +1 -1
  32. package/fesm2022/ngwr-i18n-id.mjs +7 -2
  33. package/fesm2022/ngwr-i18n-id.mjs.map +1 -1
  34. package/fesm2022/ngwr-i18n-it.mjs +7 -2
  35. package/fesm2022/ngwr-i18n-it.mjs.map +1 -1
  36. package/fesm2022/ngwr-i18n-ja.mjs +7 -2
  37. package/fesm2022/ngwr-i18n-ja.mjs.map +1 -1
  38. package/fesm2022/ngwr-i18n-ko.mjs +7 -2
  39. package/fesm2022/ngwr-i18n-ko.mjs.map +1 -1
  40. package/fesm2022/ngwr-i18n-nl.mjs +7 -2
  41. package/fesm2022/ngwr-i18n-nl.mjs.map +1 -1
  42. package/fesm2022/ngwr-i18n-pl.mjs +7 -2
  43. package/fesm2022/ngwr-i18n-pl.mjs.map +1 -1
  44. package/fesm2022/ngwr-i18n-pt.mjs +7 -2
  45. package/fesm2022/ngwr-i18n-pt.mjs.map +1 -1
  46. package/fesm2022/ngwr-i18n-ru.mjs +7 -2
  47. package/fesm2022/ngwr-i18n-ru.mjs.map +1 -1
  48. package/fesm2022/ngwr-i18n-sv.mjs +7 -2
  49. package/fesm2022/ngwr-i18n-sv.mjs.map +1 -1
  50. package/fesm2022/ngwr-i18n-tr.mjs +7 -2
  51. package/fesm2022/ngwr-i18n-tr.mjs.map +1 -1
  52. package/fesm2022/ngwr-i18n-uk.mjs +7 -2
  53. package/fesm2022/ngwr-i18n-uk.mjs.map +1 -1
  54. package/fesm2022/ngwr-i18n-vi.mjs +7 -2
  55. package/fesm2022/ngwr-i18n-vi.mjs.map +1 -1
  56. package/fesm2022/ngwr-i18n-zh-tw.mjs +7 -2
  57. package/fesm2022/ngwr-i18n-zh-tw.mjs.map +1 -1
  58. package/fesm2022/ngwr-i18n-zh.mjs +7 -2
  59. package/fesm2022/ngwr-i18n-zh.mjs.map +1 -1
  60. package/fesm2022/ngwr-lightbox-testing.mjs +26 -0
  61. package/fesm2022/ngwr-lightbox-testing.mjs.map +1 -1
  62. package/fesm2022/ngwr-lightbox.mjs +246 -10
  63. package/fesm2022/ngwr-lightbox.mjs.map +1 -1
  64. package/fesm2022/ngwr-pipes.mjs +28 -6
  65. package/fesm2022/ngwr-pipes.mjs.map +1 -1
  66. package/fesm2022/ngwr-schema-form.mjs +3 -0
  67. package/fesm2022/ngwr-schema-form.mjs.map +1 -1
  68. package/fesm2022/ngwr-slider-testing.mjs +17 -0
  69. package/fesm2022/ngwr-slider-testing.mjs.map +1 -1
  70. package/fesm2022/ngwr-slider.mjs +87 -11
  71. package/fesm2022/ngwr-slider.mjs.map +1 -1
  72. package/fesm2022/ngwr-sortable-list-testing.mjs +103 -0
  73. package/fesm2022/ngwr-sortable-list-testing.mjs.map +1 -0
  74. package/fesm2022/ngwr-sortable-list.mjs +257 -53
  75. package/fesm2022/ngwr-sortable-list.mjs.map +1 -1
  76. package/fesm2022/ngwr-version.mjs +1 -1
  77. package/fesm2022/ngwr-version.mjs.map +1 -1
  78. package/i18n/ar.json +7 -2
  79. package/i18n/cs.json +7 -2
  80. package/i18n/de.json +7 -2
  81. package/i18n/en.json +7 -2
  82. package/i18n/es.json +7 -2
  83. package/i18n/fr.json +7 -2
  84. package/i18n/he.json +7 -2
  85. package/i18n/hi.json +7 -2
  86. package/i18n/id.json +7 -2
  87. package/i18n/it.json +7 -2
  88. package/i18n/ja.json +7 -2
  89. package/i18n/ko.json +7 -2
  90. package/i18n/nl.json +7 -2
  91. package/i18n/pl.json +7 -2
  92. package/i18n/pt.json +7 -2
  93. package/i18n/ru.json +7 -2
  94. package/i18n/sv.json +7 -2
  95. package/i18n/tr.json +7 -2
  96. package/i18n/uk.json +7 -2
  97. package/i18n/vi.json +7 -2
  98. package/i18n/zh-TW.json +7 -2
  99. package/i18n/zh.json +7 -2
  100. package/lightbox/styles/_rules.scss +96 -0
  101. package/llms-full.txt +12 -8
  102. package/llms.txt +12 -0
  103. package/package.json +5 -1
  104. package/schematics/use/symbol-map.json +1 -0
  105. package/skills/ngwr/SKILL.md +1 -1
  106. package/skills/ngwr/references/catalog.md +2 -1
  107. package/slider/styles/_index.scss +106 -0
  108. package/sortable-list/styles/_rules.scss +23 -1
  109. package/types/ngwr-date-picker-testing.d.ts +17 -0
  110. package/types/ngwr-date-picker.d.ts +79 -2
  111. package/types/ngwr-date-stamp-testing.d.ts +1 -1
  112. package/types/ngwr-date-stamp.d.ts +53 -7
  113. package/types/ngwr-date.d.ts +118 -15
  114. package/types/ngwr-dropdown-testing.d.ts +53 -5
  115. package/types/ngwr-dropdown.d.ts +100 -0
  116. package/types/ngwr-lightbox-testing.d.ts +27 -0
  117. package/types/ngwr-lightbox.d.ts +71 -6
  118. package/types/ngwr-pipes.d.ts +33 -13
  119. package/types/ngwr-slider-testing.d.ts +8 -1
  120. package/types/ngwr-slider.d.ts +89 -3
  121. package/types/ngwr-sortable-list-testing.d.ts +79 -0
  122. package/types/ngwr-sortable-list.d.ts +113 -10
  123. package/types/ngwr-version.d.ts +1 -1
@@ -0,0 +1,103 @@
1
+ import { ComponentHarness, HarnessPredicate, TestKey } from "@angular/cdk/testing";
2
+ /**
3
+ * @license
4
+ *
5
+ * Use of this source code is governed by an MIT-style license that can be
6
+ * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
7
+ */
8
+ var WrSortableListHarness = class WrSortableListHarness extends ComponentHarness {
9
+ static hostSelector = "wr-sortable-list";
10
+ static with(options = {}) {
11
+ return new HarnessPredicate(WrSortableListHarness, options).addOption("ariaLabel", options.ariaLabel, async (harness, label) => HarnessPredicate.stringMatches(harness.getAriaLabel(), label)).addOption("item", options.item, async (harness, item) => {
12
+ for (const text of await harness.getItems()) if (await HarnessPredicate.stringMatches(text, item)) return true;
13
+ return false;
14
+ });
15
+ }
16
+ rows = this.locatorForAll(".wr-sortable-list__item");
17
+ list = this.locatorFor(".wr-sortable-list__list");
18
+ status = this.locatorFor("[role=\"status\"]");
19
+ held = this.documentRootLocatorFactory().locatorForOptional(".wr-sortable-list__item--grabbed");
20
+ allLists = this.documentRootLocatorFactory().locatorForAll("wr-sortable-list");
21
+ async getItems() {
22
+ const rows = await this.rows();
23
+ return Promise.all(rows.map((row) => row.text()));
24
+ }
25
+ async getAriaLabel() {
26
+ return (await this.list()).getAttribute("aria-label");
27
+ }
28
+ async getId() {
29
+ return (await this.host()).getAttribute("id");
30
+ }
31
+ async isEmpty() {
32
+ return (await this.host()).hasClass("wr-sortable-list--empty");
33
+ }
34
+ async isConnected() {
35
+ return (await this.host()).hasClass("wr-sortable-list--connected");
36
+ }
37
+ async getEmptyText() {
38
+ const text = await (await this.locatorForOptional(".wr-sortable-list__empty")())?.text() ?? "";
39
+ return text === "" ? null : text;
40
+ }
41
+ async getAnnouncement() {
42
+ return (await this.status()).text();
43
+ }
44
+ async getHeldIndex() {
45
+ const rows = await this.rows();
46
+ for (const [index, row] of rows.entries()) if (await row.hasClass("wr-sortable-list__item--grabbed")) return index;
47
+ return null;
48
+ }
49
+ async moveItem(from, to) {
50
+ const text = await this.grab(from, "moveItem");
51
+ await this.walkTo(to, "moveItem");
52
+ await this.release(text, to, "moveItem");
53
+ }
54
+ async moveItemTo(from, target, to) {
55
+ const name = "moveItemTo";
56
+ const reach = (await this.allLists()).length;
57
+ for (const key of [TestKey.RIGHT_ARROW, TestKey.LEFT_ARROW]) {
58
+ const text = await this.grab(from, name);
59
+ for (let i = 0; i < reach && await target.getHeldIndex() === null; i += 1) await (await this.heldRow(name)).sendKeys(key);
60
+ if (await target.getHeldIndex() !== null) {
61
+ await target.walkTo(to, name);
62
+ await target.release(text, to, name);
63
+ return;
64
+ }
65
+ await (await this.heldRow(name)).sendKeys(TestKey.ESCAPE);
66
+ }
67
+ throw new Error(`WrSortableListHarness.${name}(): the row never reached the target list. The two lists share no group, or the target is disabled or its canEnter refused the item. The row is back at index ${from}.`);
68
+ }
69
+ async grab(index, name) {
70
+ const rows = await this.rows();
71
+ const row = rows[index];
72
+ if (!row) throw new Error(`WrSortableListHarness.${name}(): index ${index} is out of range. This list holds ${rows.length} row(s).`);
73
+ const text = await row.text();
74
+ await row.sendKeys(TestKey.ENTER);
75
+ if (await this.getHeldIndex() !== index) throw new Error(`WrSortableListHarness.${name}(): the row at ${index} was not picked up. Is the list disabled?`);
76
+ return text;
77
+ }
78
+ async walkTo(to, name) {
79
+ const total = (await this.rows()).length;
80
+ if (to < 0 || to >= total) {
81
+ await (await this.heldRow(name)).sendKeys(TestKey.ESCAPE);
82
+ throw new Error(`WrSortableListHarness.${name}(): target index ${to} is out of range. The list holds ${total} row(s) with the moved one, so the last index is ${total - 1}. The move was cancelled.`);
83
+ }
84
+ for (let i = 0; i < total; i += 1) {
85
+ const at = await this.getHeldIndex();
86
+ if (at === null || at === to) return;
87
+ await (await this.heldRow(name)).sendKeys(at < to ? TestKey.DOWN_ARROW : TestKey.UP_ARROW);
88
+ }
89
+ }
90
+ async release(text, to, name) {
91
+ const at = await this.getHeldIndex();
92
+ await (await this.heldRow(name)).sendKeys(at === to ? TestKey.ENTER : TestKey.ESCAPE);
93
+ if (at !== to || (await this.getItems())[to] !== text) throw new Error(`WrSortableListHarness.${name}(): the row stopped at ${at} instead of ${to} and the move was cancelled. This harness drives vertical lists only.`);
94
+ }
95
+ async heldRow(name) {
96
+ const row = await this.held();
97
+ if (!row) throw new Error(`WrSortableListHarness.${name}(): no row is being held, the gesture ended early.`);
98
+ return row;
99
+ }
100
+ };
101
+ export { WrSortableListHarness };
102
+
103
+ //# sourceMappingURL=ngwr-sortable-list-testing.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ngwr-sortable-list-testing.mjs","names":[],"sources":["../../../projects/lib/sortable-list/testing/wr-sortable-list-harness.ts"],"sourcesContent":["/**\n * @license\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE\n */\n\nimport { ComponentHarness, HarnessPredicate, type TestElement, TestKey } from '@angular/cdk/testing';\n\nimport type { WrSortableListHarnessFilters } from './types';\n\n/**\n * Test harness for `<wr-sortable-list>`.\n *\n * Every move goes through the keyboard path: pick up, arrows, drop. There is\n * no drag method, because a drag is decided by measured boxes and jsdom has\n * none, so one would report success on a list that sorts nothing.\n *\n * The moves drive a VERTICAL list (ArrowUp / ArrowDown inside it, ArrowLeft /\n * ArrowRight across its group). `orientation` is an input that never reaches\n * the DOM, so the harness cannot read it; on a horizontal list a move lands\n * nowhere and throws, rather than resolving on an order nobody asked for.\n *\n * @example\n * ```ts\n * const todo = await loader.getHarness(WrSortableListHarness.with({ ariaLabel: 'To do' }));\n * const done = await loader.getHarness(WrSortableListHarness.with({ ariaLabel: 'Done' }));\n *\n * await todo.moveItemTo(0, done, 0);\n * expect(await done.getItems()).toEqual(['Write the spec']);\n * ```\n *\n * @see https://ngwr.dev/guides/testing\n */\nexport class WrSortableListHarness extends ComponentHarness {\n static hostSelector = 'wr-sortable-list';\n\n /** Build a predicate that narrows the query: pass to `getHarness` / `getAllHarnesses`. */\n static with(options: WrSortableListHarnessFilters = {}): HarnessPredicate<WrSortableListHarness> {\n return new HarnessPredicate(WrSortableListHarness, options)\n .addOption('ariaLabel', options.ariaLabel, async (harness, label) =>\n HarnessPredicate.stringMatches(harness.getAriaLabel(), label)\n )\n .addOption('item', options.item, async (harness, item) => {\n for (const text of await harness.getItems()) {\n if (await HarnessPredicate.stringMatches(text, item)) return true;\n }\n return false;\n });\n }\n\n private readonly rows = this.locatorForAll('.wr-sortable-list__item');\n private readonly list = this.locatorFor('.wr-sortable-list__list');\n private readonly status = this.locatorFor('[role=\"status\"]');\n /** The row the keyboard is holding, in whichever list of the page has it. */\n private readonly held = this.documentRootLocatorFactory().locatorForOptional('.wr-sortable-list__item--grabbed');\n private readonly allLists = this.documentRootLocatorFactory().locatorForAll('wr-sortable-list');\n\n /** The text of every row, in order. The empty-state slot is not a row. */\n async getItems(): Promise<string[]> {\n const rows = await this.rows();\n return Promise.all(rows.map(row => row.text()));\n }\n\n /** The list's accessible name, or `null` when it has none. */\n async getAriaLabel(): Promise<string | null> {\n return (await this.list()).getAttribute('aria-label');\n }\n\n /** The host's `id`: the `id` input, or the generated one. */\n async getId(): Promise<string | null> {\n return (await this.host()).getAttribute('id');\n }\n\n /** Whether the list has no rows. */\n async isEmpty(): Promise<boolean> {\n return (await this.host()).hasClass('wr-sortable-list--empty');\n }\n\n /** Whether the list belongs to a group, so it can exchange rows with other lists. */\n async isConnected(): Promise<boolean> {\n return (await this.host()).hasClass('wr-sortable-list--connected');\n }\n\n /** The text projected into the empty-state slot, or `null` when the list has rows or projects nothing. */\n async getEmptyText(): Promise<string | null> {\n const empty = await this.locatorForOptional('.wr-sortable-list__empty')();\n const text = (await empty?.text()) ?? '';\n return text === '' ? null : text;\n }\n\n /** What the list's live region last said. Written by keyboard moves only. */\n async getAnnouncement(): Promise<string> {\n return (await this.status()).text();\n }\n\n /** Index of the row the keyboard is holding in THIS list, or `null`. */\n async getHeldIndex(): Promise<number | null> {\n const rows = await this.rows();\n for (const [index, row] of rows.entries()) {\n if (await row.hasClass('wr-sortable-list__item--grabbed')) return index;\n }\n return null;\n }\n\n /**\n * Moves the row at `from` to `to` inside this list: pick up, arrows, drop.\n * The list emits one `reorder`. Throws when the row does not land on `to`,\n * which is what a disabled or horizontal list does.\n */\n async moveItem(from: number, to: number): Promise<void> {\n const text = await this.grab(from, 'moveItem');\n await this.walkTo(to, 'moveItem');\n await this.release(text, to, 'moveItem');\n }\n\n /**\n * Moves the row at `from` into another list of the same group, at `to`.\n * The target emits one `move`.\n *\n * It walks the group one way, then the other, so it needs no knowledge of the\n * page's direction. Throws when the row never reaches `target`: another\n * group, a list that is disabled, or a `canEnter` that refuses the item. The\n * row is back where it started by then.\n */\n async moveItemTo(from: number, target: WrSortableListHarness, to: number): Promise<void> {\n const name = 'moveItemTo';\n const reach = (await this.allLists()).length;\n\n for (const key of [TestKey.RIGHT_ARROW, TestKey.LEFT_ARROW]) {\n const text = await this.grab(from, name);\n for (let i = 0; i < reach && (await target.getHeldIndex()) === null; i += 1) {\n await (await this.heldRow(name)).sendKeys(key);\n }\n if ((await target.getHeldIndex()) !== null) {\n await target.walkTo(to, name);\n await target.release(text, to, name);\n return;\n }\n await (await this.heldRow(name)).sendKeys(TestKey.ESCAPE);\n }\n\n throw new Error(\n `WrSortableListHarness.${name}(): the row never reached the target list. The two lists share no group, ` +\n `or the target is disabled or its canEnter refused the item. The row is back at index ${from}.`\n );\n }\n\n private async grab(index: number, name: string): Promise<string> {\n const rows = await this.rows();\n const row = rows[index];\n if (!row) {\n throw new Error(\n `WrSortableListHarness.${name}(): index ${index} is out of range. This list holds ${rows.length} row(s).`\n );\n }\n const text = await row.text();\n await row.sendKeys(TestKey.ENTER);\n if ((await this.getHeldIndex()) !== index) {\n throw new Error(`WrSortableListHarness.${name}(): the row at ${index} was not picked up. Is the list disabled?`);\n }\n return text;\n }\n\n private async walkTo(to: number, name: string): Promise<void> {\n const total = (await this.rows()).length;\n if (to < 0 || to >= total) {\n await (await this.heldRow(name)).sendKeys(TestKey.ESCAPE);\n throw new Error(\n `WrSortableListHarness.${name}(): target index ${to} is out of range. The list holds ${total} row(s) ` +\n `with the moved one, so the last index is ${total - 1}. The move was cancelled.`\n );\n }\n for (let i = 0; i < total; i += 1) {\n const at = await this.getHeldIndex();\n if (at === null || at === to) return;\n await (await this.heldRow(name)).sendKeys(at < to ? TestKey.DOWN_ARROW : TestKey.UP_ARROW);\n }\n }\n\n private async release(text: string, to: number, name: string): Promise<void> {\n const at = await this.getHeldIndex();\n await (await this.heldRow(name)).sendKeys(at === to ? TestKey.ENTER : TestKey.ESCAPE);\n if (at !== to || (await this.getItems())[to] !== text) {\n throw new Error(\n `WrSortableListHarness.${name}(): the row stopped at ${at} instead of ${to} and the move was cancelled. ` +\n `This harness drives vertical lists only.`\n );\n }\n }\n\n private async heldRow(name: string): Promise<TestElement> {\n const row = await this.held();\n if (!row) throw new Error(`WrSortableListHarness.${name}(): no row is being held, the gesture ended early.`);\n return row;\n }\n}\n"],"mappings":";;;;;;;AAkCA,IAAa,wBAAb,MAAa,8BAA8B,iBAAgB;CACzD,OAAO,eAAe;CAGtB,OAAO,KAAK,UAAwC,CAAA,GAAE;EACpD,OAAO,IAAI,iBAAiB,uBAAuB,OAAO,CAAC,CACxD,UAAU,aAAa,QAAQ,WAAW,OAAO,SAAS,UACzD,iBAAiB,cAAc,QAAQ,aAAY,GAAI,KAAK,CAAC,CAC9D,CACA,UAAU,QAAQ,QAAQ,MAAM,OAAO,SAAS,SAAQ;GACvD,KAAK,MAAM,QAAQ,MAAM,QAAQ,SAAQ,GACvC,IAAI,MAAM,iBAAiB,cAAc,MAAM,IAAI,GAAG,OAAO;GAE/D,OAAO;EACT,CAAC;CACL;CAEiB,OAAO,KAAK,cAAc,yBAAyB;CACnD,OAAO,KAAK,WAAW,yBAAyB;CAChD,SAAS,KAAK,WAAW,mBAAiB;CAE1C,OAAO,KAAK,2BAA0B,CAAE,CAAC,mBAAmB,kCAAkC;CAC9F,WAAW,KAAK,2BAA0B,CAAE,CAAC,cAAc,kBAAkB;CAG9F,MAAM,WAAQ;EACZ,MAAM,OAAO,MAAM,KAAK,KAAI;EAC5B,OAAO,QAAQ,IAAI,KAAK,KAAI,QAAO,IAAI,KAAI,CAAE,CAAC;CAChD;CAGA,MAAM,eAAY;EAChB,QAAQ,MAAM,KAAK,KAAI,EAAA,CAAI,aAAa,YAAY;CACtD;CAGA,MAAM,QAAK;EACT,QAAQ,MAAM,KAAK,KAAI,EAAA,CAAI,aAAa,IAAI;CAC9C;CAGA,MAAM,UAAO;EACX,QAAQ,MAAM,KAAK,KAAI,EAAA,CAAI,SAAS,yBAAyB;CAC/D;CAGA,MAAM,cAAW;EACf,QAAQ,MAAM,KAAK,KAAI,EAAA,CAAI,SAAS,6BAA6B;CACnE;CAGA,MAAM,eAAY;EAEhB,MAAM,OAAQ,OAAM,MADA,KAAK,mBAAmB,0BAA0B,CAAC,CAAA,EACnD,EAAO,KAAI,KAAO;EACtC,OAAO,SAAS,KAAK,OAAO;CAC9B;CAGA,MAAM,kBAAe;EACnB,QAAQ,MAAM,KAAK,OAAM,EAAA,CAAI,KAAI;CACnC;CAGA,MAAM,eAAY;EAChB,MAAM,OAAO,MAAM,KAAK,KAAI;EAC5B,KAAK,MAAM,CAAC,OAAO,QAAQ,KAAK,QAAO,GACrC,IAAI,MAAM,IAAI,SAAS,iCAAiC,GAAG,OAAO;EAEpE,OAAO;CACT;CAOA,MAAM,SAAS,MAAc,IAAU;EACrC,MAAM,OAAO,MAAM,KAAK,KAAK,MAAM,UAAU;EAC7C,MAAM,KAAK,OAAO,IAAI,UAAU;EAChC,MAAM,KAAK,QAAQ,MAAM,IAAI,UAAU;CACzC;CAWA,MAAM,WAAW,MAAc,QAA+B,IAAU;EACtE,MAAM,OAAO;EACb,MAAM,SAAS,MAAM,KAAK,SAAQ,EAAA,CAAI;EAEtC,KAAK,MAAM,OAAO,CAAC,QAAQ,aAAa,QAAQ,UAAU,GAAG;GAC3D,MAAM,OAAO,MAAM,KAAK,KAAK,MAAM,IAAI;GACvC,KAAK,IAAI,IAAI,GAAG,IAAI,SAAU,MAAM,OAAO,aAAY,MAAQ,MAAM,KAAK,GACxE,OAAO,MAAM,KAAK,QAAQ,IAAI,EAAA,CAAG,SAAS,GAAG;GAE/C,IAAK,MAAM,OAAO,aAAY,MAAQ,MAAM;IAC1C,MAAM,OAAO,OAAO,IAAI,IAAI;IAC5B,MAAM,OAAO,QAAQ,MAAM,IAAI,IAAI;IACnC;GACF;GACA,OAAO,MAAM,KAAK,QAAQ,IAAI,EAAA,CAAG,SAAS,QAAQ,MAAM;EAC1D;EAEA,MAAM,IAAI,MACR,yBAAyB,KAAI,gKAC6D,KAAI,EAAG;CAErG;CAEQ,MAAM,KAAK,OAAe,MAAY;EAC5C,MAAM,OAAO,MAAM,KAAK,KAAI;EAC5B,MAAM,MAAM,KAAK;EACjB,IAAI,CAAC,KACH,MAAM,IAAI,MACR,yBAAyB,KAAI,YAAa,MAAK,oCAAqC,KAAK,OAAM,SAAU;EAG7G,MAAM,OAAO,MAAM,IAAI,KAAI;EAC3B,MAAM,IAAI,SAAS,QAAQ,KAAK;EAChC,IAAK,MAAM,KAAK,aAAY,MAAQ,OAClC,MAAM,IAAI,MAAM,yBAAyB,KAAI,iBAAkB,MAAK,0CAA2C;EAEjH,OAAO;CACT;CAEQ,MAAM,OAAO,IAAY,MAAY;EAC3C,MAAM,SAAS,MAAM,KAAK,KAAI,EAAA,CAAI;EAClC,IAAI,KAAK,KAAK,MAAM,OAAO;GACzB,OAAO,MAAM,KAAK,QAAQ,IAAI,EAAA,CAAG,SAAS,QAAQ,MAAM;GACxD,MAAM,IAAI,MACR,yBAAyB,KAAI,mBAAoB,GAAE,mCAAoC,MAAK,mDAC9C,QAAQ,EAAC,0BAA2B;EAEtF;EACA,KAAK,IAAI,IAAI,GAAG,IAAI,OAAO,KAAK,GAAG;GACjC,MAAM,KAAK,MAAM,KAAK,aAAY;GAClC,IAAI,OAAO,QAAQ,OAAO,IAAI;GAC9B,OAAO,MAAM,KAAK,QAAQ,IAAI,EAAA,CAAG,SAAS,KAAK,KAAK,QAAQ,aAAa,QAAQ,QAAQ;EAC3F;CACF;CAEQ,MAAM,QAAQ,MAAc,IAAY,MAAY;EAC1D,MAAM,KAAK,MAAM,KAAK,aAAY;EAClC,OAAO,MAAM,KAAK,QAAQ,IAAI,EAAA,CAAG,SAAS,OAAO,KAAK,QAAQ,QAAQ,QAAQ,MAAM;EACpF,IAAI,OAAO,OAAO,MAAM,KAAK,SAAQ,EAAA,CAAI,QAAQ,MAC/C,MAAM,IAAI,MACR,yBAAyB,KAAI,yBAA0B,GAAE,cAAe,GAAE,sEAC9B;CAGlD;CAEQ,MAAM,QAAQ,MAAY;EAChC,MAAM,MAAM,MAAM,KAAK,KAAI;EAC3B,IAAI,CAAC,KAAK,MAAM,IAAI,MAAM,yBAAyB,KAAI,mDAAoD;EAC3G,OAAO;CACT"}
@@ -1,5 +1,5 @@
1
1
  import * as i0 from "@angular/core";
2
- import { Component, Directive, ElementRef, InjectionToken, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal } from "@angular/core";
2
+ import { Component, DestroyRef, Directive, ElementRef, InjectionToken, Injector, ViewEncapsulation, afterNextRender, computed, effect, inject, input, model, output, signal, viewChild } from "@angular/core";
3
3
  import { coerceBooleanProperty } from "@angular/cdk/coercion";
4
4
  import { wrCheckStyles } from "ngwr/utils";
5
5
  import { useI18nFormatter, wrReadI18nText } from "ngwr/i18n";
@@ -13,6 +13,10 @@ import { CdkDrag, CdkDragHandle, CdkDropList, moveItemInArray } from "@angular/c
13
13
  * found in the LICENSE file at https://github.com/thekhegay/ngwr/blob/main/LICENSE
14
14
  */
15
15
  const WR_SORTABLE_LIST = new InjectionToken("WR_SORTABLE_LIST");
16
+ const WR_SORTABLE_LISTS = new InjectionToken("WR_SORTABLE_LISTS", {
17
+ providedIn: "root",
18
+ factory: () => signal([])
19
+ });
16
20
  /**
17
21
  * @license
18
22
  *
@@ -35,21 +39,76 @@ var WrSortableList = class WrSortableList {
35
39
  touch: 150,
36
40
  mouse: 0
37
41
  }, ...ngDevMode ? [{ debugName: "dragStartDelay" }] : /* istanbul ignore next */ []);
42
+ group = input(null, ...ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []);
43
+ canEnter = input(null, ...ngDevMode ? [{ debugName: "canEnter" }] : /* istanbul ignore next */ []);
44
+ ariaLabel = input(null, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
45
+ id = input(...ngDevMode ? [void 0, { debugName: "id" }] : /* istanbul ignore next */ []);
38
46
  reorder = output();
47
+ move = output();
39
48
  injector = inject(Injector);
49
+ host = inject(ElementRef);
50
+ dropList = inject(CdkDropList, { self: true });
51
+ lists = inject(WR_SORTABLE_LISTS);
52
+ listEl = viewChild.required("list", ...ngDevMode ? [{ debugName: "listEl" }] : /* istanbul ignore next */ []);
53
+ peers = computed(() => {
54
+ const group = this.group();
55
+ return group ? this.lists().filter((list) => list !== this && list.group() === group) : [];
56
+ }, ...ngDevMode ? [{ debugName: "peers" }] : /* istanbul ignore next */ []);
40
57
  dir = inject(Directionality, { optional: true });
41
58
  rows = [];
42
59
  grabbedIndex = signal(null, ...ngDevMode ? [{ debugName: "grabbedIndex" }] : /* istanbul ignore next */ []);
43
60
  announcement = signal("", ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
44
- keyHelpId = `wr-sortable-list-help-${++sortableListUid}`;
45
- resolvedKeyHelp = wrReadI18nText("sortableList.keyHelp", "Press Space to pick this item up, then use the arrow keys to move it. Press Space again to drop it, or Escape to put it back.");
61
+ uid = ++sortableListUid;
62
+ keyHelpId = `wr-sortable-list-help-${this.uid}`;
63
+ fallbackId = `wr-sortable-list-${this.uid}`;
64
+ keyHelp = wrReadI18nText("sortableList.keyHelp", "Press Space to pick this item up, then use the arrow keys to move it. Press Space again to drop it, or Escape to put it back.");
65
+ groupKeyHelp = wrReadI18nText("sortableList.groupKeyHelp", "Press Space to pick this item up, then use the arrow keys to move it, within its list or into the next one. Press Space again to drop it, or Escape to put it back.");
66
+ resolvedKeyHelp = computed(() => this.group() ? this.groupKeyHelp() : this.keyHelp(), ...ngDevMode ? [{ debugName: "resolvedKeyHelp" }] : /* istanbul ignore next */ []);
46
67
  grabbedText = useI18nFormatter("sortableList.grabbed", "Grabbed. {{index}} of {{total}}.");
47
68
  movedText = useI18nFormatter("sortableList.moved", "{{index}} of {{total}}.");
48
69
  droppedText = useI18nFormatter("sortableList.dropped", "Dropped. {{index}} of {{total}}.");
49
70
  cancelledText = wrReadI18nText("sortableList.cancelled", "Move cancelled.");
50
- grabOrigin = -1;
71
+ movedToText = useI18nFormatter("sortableList.movedTo", "Moved to {{list}}. {{index}} of {{total}}.");
72
+ listPositionText = useI18nFormatter("sortableList.listPosition", "list {{index}} of {{total}}");
73
+ grabOrigin = null;
51
74
  restoringFocus = false;
75
+ constructor() {
76
+ this.lists.update((lists) => [...lists, this]);
77
+ inject(DestroyRef).onDestroy(() => this.lists.update((lists) => lists.filter((list) => list !== this)));
78
+ const dropList = this.dropList;
79
+ dropList.data = this;
80
+ dropList.elementContainerSelector = ".wr-sortable-list__list";
81
+ dropList.enterPredicate = (drag) => {
82
+ const from = drag.dropContainer?.data;
83
+ return !!from && this.accepts(drag.data, from);
84
+ };
85
+ dropList.dropped.subscribe((event) => this.onDrop(event));
86
+ effect(() => {
87
+ dropList.id = this.id() ?? this.fallbackId;
88
+ dropList.orientation = this.orientation();
89
+ dropList.disabled = this.disabled();
90
+ dropList.connectedTo = this.peers().map((list) => list.dropList);
91
+ });
92
+ afterNextRender(() => dropList._dropListRef.withElementContainer(this.listEl().nativeElement));
93
+ }
52
94
  onDrop(event) {
95
+ if (event.previousContainer !== event.container) {
96
+ const source = event.previousContainer.data;
97
+ const item = source.removeAt(event.previousIndex);
98
+ this.insertAt(item, event.currentIndex);
99
+ this.move.emit({
100
+ item,
101
+ from: {
102
+ list: source,
103
+ index: event.previousIndex
104
+ },
105
+ to: {
106
+ list: this,
107
+ index: event.currentIndex
108
+ }
109
+ });
110
+ return;
111
+ }
53
112
  if (event.previousIndex === event.currentIndex) return;
54
113
  const next = this.items().slice();
55
114
  moveItemInArray(next, event.previousIndex, event.currentIndex);
@@ -76,9 +135,13 @@ var WrSortableList = class WrSortableList {
76
135
  if (this.disabled() || event.target !== event.currentTarget) return;
77
136
  const grabbed = this.grabbedIndex();
78
137
  const horizontal = this.orientation() === "horizontal";
79
- const rtl = horizontal && this.dir?.value === "rtl";
80
- const forward = horizontal ? rtl ? "ArrowLeft" : "ArrowRight" : "ArrowDown";
81
- const back = horizontal ? rtl ? "ArrowRight" : "ArrowLeft" : "ArrowUp";
138
+ const rtl = this.dir?.value === "rtl";
139
+ const inlineForward = rtl ? "ArrowLeft" : "ArrowRight";
140
+ const inlineBack = rtl ? "ArrowRight" : "ArrowLeft";
141
+ const forward = horizontal ? inlineForward : "ArrowDown";
142
+ const back = horizontal ? inlineBack : "ArrowUp";
143
+ const nextList = horizontal ? "ArrowDown" : inlineForward;
144
+ const previousList = horizontal ? "ArrowUp" : inlineBack;
82
145
  if (event.key === " " || event.key === "Enter") {
83
146
  event.preventDefault();
84
147
  if (grabbed === null) this.grab(index);
@@ -95,6 +158,11 @@ var WrSortableList = class WrSortableList {
95
158
  if (event.key === forward || event.key === back) {
96
159
  event.preventDefault();
97
160
  this.moveGrabbed(event.key === forward ? 1 : -1);
161
+ return;
162
+ }
163
+ if (this.group() && (event.key === nextList || event.key === previousList)) {
164
+ event.preventDefault();
165
+ this.moveToList(event.key === nextList ? 1 : -1);
98
166
  }
99
167
  }
100
168
  onRowFocusout() {
@@ -102,7 +170,10 @@ var WrSortableList = class WrSortableList {
102
170
  this.drop();
103
171
  }
104
172
  grab(index) {
105
- this.grabOrigin = index;
173
+ this.grabOrigin = {
174
+ list: this,
175
+ index
176
+ };
106
177
  this.grabbedIndex.set(index);
107
178
  this.announcement.set(this.grabbedText(this.position(index)));
108
179
  }
@@ -115,33 +186,100 @@ var WrSortableList = class WrSortableList {
115
186
  this.grabbedIndex.set(to);
116
187
  this.announcement.set(this.movedText(this.position(to)));
117
188
  }
189
+ moveToList(step) {
190
+ const from = this.grabbedIndex();
191
+ const origin = this.grabOrigin;
192
+ if (from === null || !origin) return;
193
+ const group = this.groupLists();
194
+ const item = this.items()[from];
195
+ let at = group.indexOf(this) + step;
196
+ while (group[at] && !group[at].accepts(item, origin.list)) at += step;
197
+ const target = group[at];
198
+ if (!target) return;
199
+ this.grabbedIndex.set(null);
200
+ this.grabOrigin = null;
201
+ this.announcement.set("");
202
+ this.removeAt(from);
203
+ const to = Math.min(from, target.items().length);
204
+ target.insertAt(item, to);
205
+ target.grabOrigin = origin;
206
+ target.grabbedIndex.set(to);
207
+ const list = target.ariaLabel() ?? target.listPositionText({
208
+ index: group.indexOf(target) + 1,
209
+ total: group.length
210
+ });
211
+ target.announcement.set(target.movedToText({
212
+ list,
213
+ ...target.position(to)
214
+ }));
215
+ target.focusRow(to);
216
+ }
118
217
  drop() {
119
218
  const to = this.grabbedIndex();
120
- const from = this.grabOrigin;
219
+ const origin = this.grabOrigin;
121
220
  this.grabbedIndex.set(null);
122
- this.grabOrigin = -1;
123
- if (to === null) return;
221
+ this.grabOrigin = null;
222
+ if (to === null || !origin) return;
124
223
  this.announcement.set(this.droppedText(this.position(to)));
125
- if (from === to) return;
224
+ if (origin.list !== this) {
225
+ this.move.emit({
226
+ item: this.items()[to],
227
+ from: origin,
228
+ to: {
229
+ list: this,
230
+ index: to
231
+ }
232
+ });
233
+ return;
234
+ }
235
+ if (origin.index === to) return;
126
236
  this.reorder.emit({
127
237
  items: this.items(),
128
- previousIndex: from,
238
+ previousIndex: origin.index,
129
239
  currentIndex: to,
130
240
  item: this.items()[to]
131
241
  });
132
242
  }
133
243
  cancelGrab() {
134
244
  const from = this.grabbedIndex();
135
- if (from === null) return;
136
- if (from !== this.grabOrigin) this.relocate(from, this.grabOrigin);
245
+ const origin = this.grabOrigin;
246
+ if (from === null || !origin) return;
137
247
  this.grabbedIndex.set(null);
138
- this.grabOrigin = -1;
139
- this.announcement.set(this.cancelledText());
248
+ this.grabOrigin = null;
249
+ if (origin.list === this) {
250
+ if (from !== origin.index) this.relocate(from, origin.index);
251
+ this.announcement.set(this.cancelledText());
252
+ return;
253
+ }
254
+ this.announcement.set("");
255
+ origin.list.insertAt(this.removeAt(from), origin.index);
256
+ origin.list.announcement.set(origin.list.cancelledText());
257
+ origin.list.focusRow(origin.index);
258
+ }
259
+ accepts(item, from) {
260
+ return !this.disabled() && (from === this || (this.canEnter()?.(item, from) ?? true));
261
+ }
262
+ groupLists() {
263
+ return [this, ...this.peers()].sort((a, b) => follows(a.host.nativeElement, b.host.nativeElement) ? -1 : 1);
264
+ }
265
+ removeAt(index) {
266
+ const next = this.items().slice();
267
+ const [item] = next.splice(index, 1);
268
+ this.items.set(next);
269
+ return item;
270
+ }
271
+ insertAt(item, index) {
272
+ const next = this.items().slice();
273
+ next.splice(index, 0, item);
274
+ this.items.set(next);
140
275
  }
141
276
  relocate(from, to) {
142
277
  const next = this.items().slice();
143
278
  moveItemInArray(next, from, to);
144
279
  this.items.set(next);
280
+ this.focusRow(to);
281
+ }
282
+ focusRow(to) {
145
283
  this.restoringFocus = true;
146
284
  afterNextRender(() => {
147
285
  this.sortRows();
@@ -164,7 +302,7 @@ var WrSortableList = class WrSortableList {
164
302
  target: i0.ɵɵFactoryTarget.Component
165
303
  });
166
304
  static ɵcmp = i0.ɵɵngDeclareComponent({
167
- minVersion: "17.1.0",
305
+ minVersion: "17.0.0",
168
306
  version: "22.2.5",
169
307
  type: WrSortableList,
170
308
  isStandalone: true,
@@ -204,47 +342,64 @@ var WrSortableList = class WrSortableList {
204
342
  isSignal: true,
205
343
  isRequired: false,
206
344
  transformFunction: null
345
+ },
346
+ group: {
347
+ classPropertyName: "group",
348
+ publicName: "group",
349
+ isSignal: true,
350
+ isRequired: false,
351
+ transformFunction: null
352
+ },
353
+ canEnter: {
354
+ classPropertyName: "canEnter",
355
+ publicName: "canEnter",
356
+ isSignal: true,
357
+ isRequired: false,
358
+ transformFunction: null
359
+ },
360
+ ariaLabel: {
361
+ classPropertyName: "ariaLabel",
362
+ publicName: "ariaLabel",
363
+ isSignal: true,
364
+ isRequired: false,
365
+ transformFunction: null
366
+ },
367
+ id: {
368
+ classPropertyName: "id",
369
+ publicName: "id",
370
+ isSignal: true,
371
+ isRequired: false,
372
+ transformFunction: null
207
373
  }
208
374
  },
209
375
  outputs: {
210
376
  items: "itemsChange",
211
- reorder: "reorder"
377
+ reorder: "reorder",
378
+ move: "move"
379
+ },
380
+ host: {
381
+ properties: {
382
+ "class.wr-sortable-list--connected": "!!group()",
383
+ "class.wr-sortable-list--empty": "items().length === 0",
384
+ "attr.id": "id() ?? fallbackId"
385
+ },
386
+ classAttribute: "wr-sortable-list"
212
387
  },
213
- host: { classAttribute: "wr-sortable-list" },
214
388
  providers: [{
215
389
  provide: WR_SORTABLE_LIST,
216
390
  useExisting: WrSortableList
217
391
  }],
218
- ngImport: i0,
219
- template: "<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div\n cdkDropList\n role=\"list\"\n class=\"wr-sortable-list__list\"\n [cdkDropListOrientation]=\"orientation()\"\n [cdkDropListDisabled]=\"disabled()\"\n (cdkDropListDropped)=\"onDrop($event)\"\n>\n <ng-content />\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\n",
220
- styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list__list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"],
221
- dependencies: [{
222
- kind: "directive",
223
- type: CdkDropList,
224
- selector: "[cdkDropList], cdk-drop-list",
225
- inputs: [
226
- "cdkDropListConnectedTo",
227
- "cdkDropListData",
228
- "cdkDropListOrientation",
229
- "id",
230
- "cdkDropListLockAxis",
231
- "cdkDropListDisabled",
232
- "cdkDropListSortingDisabled",
233
- "cdkDropListEnterPredicate",
234
- "cdkDropListSortPredicate",
235
- "cdkDropListAutoScrollDisabled",
236
- "cdkDropListAutoScrollStep",
237
- "cdkDropListElementContainer",
238
- "cdkDropListHasAnchor"
239
- ],
240
- outputs: [
241
- "cdkDropListDropped",
242
- "cdkDropListEntered",
243
- "cdkDropListExited",
244
- "cdkDropListSorted"
245
- ],
246
- exportAs: ["cdkDropList"]
392
+ viewQueries: [{
393
+ propertyName: "listEl",
394
+ first: true,
395
+ predicate: ["list"],
396
+ descendants: true,
397
+ isSignal: true
247
398
  }],
399
+ hostDirectives: [{ directive: i1.CdkDropList }],
400
+ ngImport: i0,
401
+ template: "<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div #list role=\"list\" class=\"wr-sortable-list__list\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content />\n @if (items().length === 0) {\n <!-- A row of its own, so the list announces what it shows; hidden by `:empty` when nothing is projected. -->\n <div role=\"listitem\" class=\"wr-sortable-list__empty\"><ng-content select=\"[wrSortableListEmpty]\" /></div>\n }\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\n",
402
+ styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);--wr-sortable-list-empty-min-height: calc(var(--wr-space-xl) * 2);--wr-sortable-list-empty-color: var(--wr-color-placeholder);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list--connected.wr-sortable-list--empty .wr-sortable-list__list{min-height:var(--wr-sortable-list-empty-min-height)}.wr-sortable-list__empty{color:var(--wr-sortable-list-empty-color)}.wr-sortable-list__empty:empty{display:none}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__empty{display:none}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"],
248
403
  encapsulation: i0.ViewEncapsulation.None
249
404
  });
250
405
  };
@@ -258,16 +413,22 @@ i0.ɵɵngDeclareClassMetadata({
258
413
  args: [{
259
414
  selector: "wr-sortable-list",
260
415
  encapsulation: ViewEncapsulation.None,
261
- imports: [CdkDropList],
262
- host: { class: "wr-sortable-list" },
416
+ hostDirectives: [CdkDropList],
417
+ host: {
418
+ class: "wr-sortable-list",
419
+ "[class.wr-sortable-list--connected]": "!!group()",
420
+ "[class.wr-sortable-list--empty]": "items().length === 0",
421
+ "[attr.id]": "id() ?? fallbackId"
422
+ },
263
423
  providers: [{
264
424
  provide: WR_SORTABLE_LIST,
265
425
  useExisting: WrSortableList
266
426
  }],
267
- template: "<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div\n cdkDropList\n role=\"list\"\n class=\"wr-sortable-list__list\"\n [cdkDropListOrientation]=\"orientation()\"\n [cdkDropListDisabled]=\"disabled()\"\n (cdkDropListDropped)=\"onDrop($event)\"\n>\n <ng-content />\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\n",
268
- styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list__list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"]
427
+ template: "<!--\n `role=\"list\"` on the container and `role=\"listitem\"` on each row rather than\n bare divs: every row is a tab stop, and a focusable element with no role at\n all is announced as loose text. The list role is what gives the reader the\n position of the row focus lands on.\n\n Rows arrive through `<ng-content>` — the consumer writes the loop, so the\n markup says what each row is instead of hiding it in an unnamed template.\n-->\n<div #list role=\"list\" class=\"wr-sortable-list__list\" [attr.aria-label]=\"ariaLabel()\">\n <ng-content />\n @if (items().length === 0) {\n <!-- A row of its own, so the list announces what it shows; hidden by `:empty` when nothing is projected. -->\n <div role=\"listitem\" class=\"wr-sortable-list__empty\"><ng-content select=\"[wrSortableListEmpty]\" /></div>\n }\n</div>\n\n<!--\n The key model, on every row rather than once on the container: focus lands on\n a row and never on the list itself, so a description hung on the list would\n never be read out.\n-->\n<p class=\"wr-sortable-list__sr-only\" [id]=\"keyHelpId\">{{ resolvedKeyHelp() }}</p>\n\n<!--\n Position announcements, written by the keyboard path only — a drag already\n gives sighted feedback, and announcing every pointer move would flood the\n region.\n-->\n<p class=\"wr-sortable-list__sr-only\" role=\"status\">{{ announcement() }}</p>\n",
428
+ styles: [".wr-btn:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__sort-btn:focus-visible,.wr-table-filter__trigger:focus-visible,.wr-table__expand-btn:focus-visible,.wr-table__group-toggle:focus-visible,.wr-table__tree-toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table:has(>.wr-table__scroll:focus-visible){outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-table__scroll:focus-visible{outline:none}.wr-tabs__tab:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-tabs__panel:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sidebar__row:focus-visible,.wr-sidebar__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-anchor__link:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-collapse__header:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-collapse--flat .wr-collapse__header:focus-visible{outline-offset:var(--wr-focus-ring-offset)}.wr-command-palette__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-mention-panel__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-segmented__option:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-back-top:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-carousel__nav:focus-visible,.wr-carousel__dot:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-speed-dial__trigger:focus-visible,.wr-speed-dial__action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-stepper__header-button:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-window__chrome-action:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-date-picker__trigger:focus-visible,.wr-time-picker__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-dropdown-item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-alert__close:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-graph__viewport:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-chart-legend__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-pull-to-refresh:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-tree__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-color-picker__sv:focus-visible,.wr-color-picker__slider:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-input-group__toggle:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-input-number__step:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);outline-offset:-2px}.wr-file-upload__zone:focus-visible,.wr-file-upload__remove:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-event-calendar__more:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo);position:relative;z-index:1}.wr-sortable-list{--wr-sortable-list-gap: var(--wr-space-sm);--wr-sortable-list-placeholder-radius: var(--wr-border-radius-base);--wr-sortable-list-empty-min-height: calc(var(--wr-space-xl) * 2);--wr-sortable-list-empty-color: var(--wr-color-placeholder);display:block}.wr-sortable-list__list{display:flex;flex-direction:column;gap:var(--wr-sortable-list-gap)}.wr-sortable-list__item{--wr-sortable-list-item-font-family: var(--wr-font-family-base);cursor:grab;-webkit-user-select:none;user-select:none}.wr-sortable-list__item.cdk-drag-disabled{cursor:default}.wr-sortable-list__item:active{cursor:grabbing}.wr-sortable-list__item:focus-visible{outline:var(--wr-focus-ring-width) solid var(--wr-focus-ring-color);outline-offset:var(--wr-focus-ring-offset);box-shadow:0 0 0 var(--wr-focus-ring-offset) var(--wr-focus-ring-halo)}.wr-sortable-list__item--grabbed{cursor:grabbing}.wr-sortable-list__item--grabbed:focus-visible{outline-color:var(--wr-color-primary)}.wr-sortable-list--connected.wr-sortable-list--empty .wr-sortable-list__list{min-height:var(--wr-sortable-list-empty-min-height)}.wr-sortable-list__empty{color:var(--wr-sortable-list-empty-color)}.wr-sortable-list__empty:empty{display:none}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__empty{display:none}.wr-sortable-list__sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.wr-sortable-list[orientation=horizontal] .wr-sortable-list__list,.wr-sortable-list[data-orientation=horizontal] .wr-sortable-list__list{flex-direction:row}.wr-drag-handle{cursor:grab;display:inline-flex;align-items:center;justify-content:center;color:color-mix(in srgb,var(--wr-color-on-surface) 45%,transparent);transition:color .15s ease}@media(pointer:coarse){.wr-drag-handle{position:relative}.wr-drag-handle:after{content:\"\";position:absolute;top:50%;left:50%;width:100%;height:100%;min-width:44px;min-height:44px;transform:translate(-50%,-50%)}}.wr-drag-handle:hover{color:var(--wr-color-on-surface)}.wr-drag-handle:active{cursor:grabbing}.cdk-drag-preview.wr-sortable-list__item{box-sizing:border-box;color:var(--wr-color-on-surface);font-family:var(--wr-sortable-list-item-font-family, var(--wr-font-family-base));transition:none;filter:drop-shadow(0 8px 12px color-mix(in srgb,var(--wr-color-backdrop) 24%,transparent)) drop-shadow(0 2px 3px color-mix(in srgb,var(--wr-color-backdrop) 16%,transparent))}.wr-sortable-list .cdk-drag-placeholder{opacity:.35;background:var(--wr-color-fill-strong);border-radius:var(--wr-sortable-list-placeholder-radius);outline:1px dashed color-mix(in srgb,var(--wr-color-on-surface) 25%,transparent);outline-offset:-1px}.cdk-drag-animating.wr-sortable-list__item{transition:transform .18s var(--wr-ease-spring)}.wr-sortable-list.cdk-drop-list-dragging .wr-sortable-list__item:not(.cdk-drag-placeholder){transition:transform .18s var(--wr-ease-spring)}\n"]
269
429
  }]
270
430
  }],
431
+ ctorParameters: () => [],
271
432
  propDecorators: {
272
433
  items: [{
273
434
  type: i0.Input,
@@ -312,9 +473,49 @@ i0.ɵɵngDeclareClassMetadata({
312
473
  required: false
313
474
  }]
314
475
  }],
476
+ group: [{
477
+ type: i0.Input,
478
+ args: [{
479
+ isSignal: true,
480
+ alias: "group",
481
+ required: false
482
+ }]
483
+ }],
484
+ canEnter: [{
485
+ type: i0.Input,
486
+ args: [{
487
+ isSignal: true,
488
+ alias: "canEnter",
489
+ required: false
490
+ }]
491
+ }],
492
+ ariaLabel: [{
493
+ type: i0.Input,
494
+ args: [{
495
+ isSignal: true,
496
+ alias: "ariaLabel",
497
+ required: false
498
+ }]
499
+ }],
500
+ id: [{
501
+ type: i0.Input,
502
+ args: [{
503
+ isSignal: true,
504
+ alias: "id",
505
+ required: false
506
+ }]
507
+ }],
315
508
  reorder: [{
316
509
  type: i0.Output,
317
510
  args: ["reorder"]
511
+ }],
512
+ move: [{
513
+ type: i0.Output,
514
+ args: ["move"]
515
+ }],
516
+ listEl: [{
517
+ type: i0.ViewChild,
518
+ args: ["list", { isSignal: true }]
318
519
  }]
319
520
  }
320
521
  });
@@ -341,6 +542,9 @@ var WrSortableItem = class WrSortableItem {
341
542
  this.drag.lockAxis = this.list.lockAxis() ?? null;
342
543
  this.drag.dragStartDelay = this.list.dragStartDelay();
343
544
  });
545
+ effect(() => {
546
+ this.drag.data = this.list.items()[this.index()];
547
+ });
344
548
  }
345
549
  onKeydown(event) {
346
550
  this.list.onRowKeydown(event, this.list.indexOf(this));