@redvars/peacock 4.5.1 → 4.6.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/dist/{BaseField-BbOj212R.js → BaseField-DOCmylob.js} +16 -3
- package/dist/BaseField-DOCmylob.js.map +1 -0
- package/dist/accordion.js +1 -1
- package/dist/activation-gate-D4IpmwyD.js +23 -0
- package/dist/activation-gate-D4IpmwyD.js.map +1 -0
- package/dist/avatar-group.js +2 -1
- package/dist/avatar-group.js.map +1 -1
- package/dist/avatar.js +3 -0
- package/dist/avatar.js.map +1 -1
- package/dist/{base-button-BJMGMcMv.js → base-button-9tGu5RSC.js} +30 -10
- package/dist/base-button-9tGu5RSC.js.map +1 -0
- package/dist/button-group.js +5 -3
- package/dist/button-group.js.map +1 -1
- package/dist/button.js +12 -16
- package/dist/button.js.map +1 -1
- package/dist/calendar-column-view.js +4 -4
- package/dist/{calendar-drag-IXMPZrTN.js → calendar-drag-DdJwSpEz.js} +2 -2
- package/dist/{calendar-drag-IXMPZrTN.js.map → calendar-drag-DdJwSpEz.js.map} +1 -1
- package/dist/{calendar-event-BQChlMXy.js → calendar-event-BvbYZHx1.js} +2 -2
- package/dist/{calendar-event-BQChlMXy.js.map → calendar-event-BvbYZHx1.js.map} +1 -1
- package/dist/calendar-month-view.js +65 -14
- package/dist/calendar-month-view.js.map +1 -1
- package/dist/calendar-timeline.js +9 -4
- package/dist/calendar-timeline.js.map +1 -1
- package/dist/calendar.js +21 -6
- package/dist/calendar.js.map +1 -1
- package/dist/card.js +29 -16
- package/dist/card.js.map +1 -1
- package/dist/chart-doughnut.js +3 -1
- package/dist/chart-doughnut.js.map +1 -1
- package/dist/chart-pie.js +9 -1
- package/dist/chart-pie.js.map +1 -1
- package/dist/chip-set.js +1 -1
- package/dist/chip.js +10 -19
- package/dist/chip.js.map +1 -1
- package/dist/color-field.js +4 -1
- package/dist/color-field.js.map +1 -1
- package/dist/currency-field.js +4 -1
- package/dist/currency-field.js.map +1 -1
- package/dist/custom-elements-jsdocs.json +26 -20
- package/dist/custom-elements.json +755 -90
- package/dist/{datasource-OwvH7SVq.js → datasource-DxEA6jHW.js} +6 -4
- package/dist/datasource-DxEA6jHW.js.map +1 -0
- package/dist/{date-cfPx3alz.js → date-DPQOY8Zd.js} +2 -2
- package/dist/{date-cfPx3alz.js.map → date-DPQOY8Zd.js.map} +1 -1
- package/dist/date-field.js +8 -5
- package/dist/date-field.js.map +1 -1
- package/dist/date-picker.js +2 -2
- package/dist/date-range-field.js +8 -5
- package/dist/date-range-field.js.map +1 -1
- package/dist/datetime-field.js +7 -4
- package/dist/datetime-field.js.map +1 -1
- package/dist/diagram-controls.js +1 -1
- package/dist/{throttle-SQ9t-HL7.js → dispatch-event-utils-DfgqVBK8.js} +2 -24
- package/dist/dispatch-event-utils-DfgqVBK8.js.map +1 -0
- package/dist/{form-submitter-beG1CXAn.js → dispatch-hooks-J_godlHh.js} +2 -87
- package/dist/dispatch-hooks-J_godlHh.js.map +1 -0
- package/dist/dropdown-button.js +11 -7
- package/dist/dropdown-button.js.map +1 -1
- package/dist/{event-manager-KGMT2x2Q.js → event-manager-DYfeN3VE.js} +3 -3
- package/dist/{event-manager-KGMT2x2Q.js.map → event-manager-DYfeN3VE.js.map} +1 -1
- package/dist/fab.js +15 -19
- package/dist/fab.js.map +1 -1
- package/dist/filter-bar.js +3 -3
- package/dist/form-submission-h40coUI8.js +13 -0
- package/dist/form-submission-h40coUI8.js.map +1 -0
- package/dist/form-submitter-BIFqZ0wq.js +88 -0
- package/dist/form-submitter-BIFqZ0wq.js.map +1 -0
- package/dist/form.js +1 -9
- package/dist/form.js.map +1 -1
- package/dist/icon-button.js +15 -19
- package/dist/icon-button.js.map +1 -1
- package/dist/icon.js +1 -1
- package/dist/implicit-submission-ChLdbxaR.js +100 -0
- package/dist/implicit-submission-ChLdbxaR.js.map +1 -0
- package/dist/index.js +20 -15
- package/dist/index.js.map +1 -1
- package/dist/{indicator-navigation-item-CmyhsOmy.js → indicator-navigation-item-BsQE3kUr.js} +2 -2
- package/dist/{indicator-navigation-item-CmyhsOmy.js.map → indicator-navigation-item-BsQE3kUr.js.map} +1 -1
- package/dist/input.js +13 -4
- package/dist/input.js.map +1 -1
- package/dist/json-viewer.js +1 -1
- package/dist/kanban.js +8 -7
- package/dist/kanban.js.map +1 -1
- package/dist/link-button.js +13 -14
- package/dist/link-button.js.map +1 -1
- package/dist/list-item.js +52 -16
- package/dist/list-item.js.map +1 -1
- package/dist/list.js +5 -3
- package/dist/list.js.map +1 -1
- package/dist/listbox.js +1 -1
- package/dist/loader-full.js +17 -12
- package/dist/loader-full.js.map +1 -1
- package/dist/loader.js +17 -12
- package/dist/loader.js.map +1 -1
- package/dist/locale-DEsJZCQG.js.map +1 -1
- package/dist/mention-input.js +8 -1
- package/dist/mention-input.js.map +1 -1
- package/dist/menu-item.js +12 -12
- package/dist/menu-item.js.map +1 -1
- package/dist/menu.js +7 -3
- package/dist/menu.js.map +1 -1
- package/dist/navigation-bar-item.js +4 -3
- package/dist/navigation-bar-item.js.map +1 -1
- package/dist/navigation-bar.js +4 -3
- package/dist/navigation-bar.js.map +1 -1
- package/dist/navigation-drawer-item.js +3 -2
- package/dist/navigation-drawer-item.js.map +1 -1
- package/dist/navigation-drawer.js +3 -2
- package/dist/navigation-drawer.js.map +1 -1
- package/dist/{navigation-item-base-kUrvJgCx.js → navigation-item-base-5ljwtLG_.js} +3 -2
- package/dist/{navigation-item-base-kUrvJgCx.js.map → navigation-item-base-5ljwtLG_.js.map} +1 -1
- package/dist/navigation-rail-item.js +4 -3
- package/dist/navigation-rail-item.js.map +1 -1
- package/dist/navigation-rail.js +6 -5
- package/dist/navigation-rail.js.map +1 -1
- package/dist/number-field.js +4 -1
- package/dist/number-field.js.map +1 -1
- package/dist/option.js +3 -2
- package/dist/option.js.map +1 -1
- package/dist/password-field.js +11 -4
- package/dist/password-field.js.map +1 -1
- package/dist/phone-field.js +4 -1
- package/dist/phone-field.js.map +1 -1
- package/dist/{picker-field-DmXYPvbF.js → picker-field-BiM3iXAQ.js} +2 -2
- package/dist/{picker-field-DmXYPvbF.js.map → picker-field-BiM3iXAQ.js.map} +1 -1
- package/dist/pin-input.js +4 -1
- package/dist/pin-input.js.map +1 -1
- package/dist/{range-utils-DZe96GnO.js → range-utils-vgG1SJ2o.js} +2 -2
- package/dist/{range-utils-DZe96GnO.js.map → range-utils-vgG1SJ2o.js.map} +1 -1
- package/dist/{roving-focus-controller-fm95JkZJ.js → roving-focus-controller-YtNbxH95.js} +30 -7
- package/dist/roving-focus-controller-YtNbxH95.js.map +1 -0
- package/dist/search.js +12 -6
- package/dist/search.js.map +1 -1
- package/dist/select.js +11 -3
- package/dist/select.js.map +1 -1
- package/dist/shipped-icons.js +1 -1
- package/dist/split-button.js +9 -1
- package/dist/split-button.js.map +1 -1
- package/dist/src/__internal/controllers/roving-focus-controller.d.ts +14 -2
- package/dist/src/__internal/implicit-submission.d.ts +25 -0
- package/dist/src/__internal/utils/activation-gate.d.ts +8 -0
- package/dist/src/__internal/utils/form-submission.d.ts +2 -0
- package/dist/src/avatar-group/avatar-group.d.ts +1 -1
- package/dist/src/button/base-button/base-button.d.ts +1 -1
- package/dist/src/button/button/button.d.ts +2 -1
- package/dist/src/button/fab/fab.d.ts +2 -1
- package/dist/src/button/icon-button/icon-button.d.ts +2 -1
- package/dist/src/button/link-button/link-button.d.ts +5 -1
- package/dist/src/calendar/calendar-month-view.d.ts +5 -1
- package/dist/src/calendar/calendar.d.ts +6 -1
- package/dist/src/card/card.d.ts +19 -9
- package/dist/src/chart-pie/chart-pie.d.ts +5 -0
- package/dist/src/chip/chip/chip.d.ts +4 -4
- package/dist/src/dropdown-button/dropdown-button.d.ts +5 -1
- package/dist/src/input/BaseField.d.ts +7 -0
- package/dist/src/input/input.d.ts +5 -1
- package/dist/src/list/list-item.d.ts +2 -1
- package/dist/src/mention-input/mention-input.d.ts +2 -0
- package/dist/src/menu/menu-item/menu-item.d.ts +6 -4
- package/dist/src/password-field/password-field.d.ts +3 -1
- package/dist/src/search/search.d.ts +1 -0
- package/dist/src/select/select.d.ts +2 -0
- package/dist/src/split-button/split-button.d.ts +6 -1
- package/dist/src/stepper/step.d.ts +3 -1
- package/dist/src/tabs/tab.d.ts +12 -2
- package/dist/src/textarea/textarea.d.ts +2 -0
- package/dist/src/toolbar/toolbar.d.ts +13 -2
- package/dist/step.js +7 -1
- package/dist/step.js.map +1 -1
- package/dist/stepper.js +10 -1
- package/dist/stepper.js.map +1 -1
- package/dist/sub-menu.js +3 -2
- package/dist/sub-menu.js.map +1 -1
- package/dist/svg.js +1 -1
- package/dist/tab-group.js +3 -2
- package/dist/tab-group.js.map +1 -1
- package/dist/tab.js +17 -12
- package/dist/tab.js.map +1 -1
- package/dist/tabs.js +3 -2
- package/dist/tabs.js.map +1 -1
- package/dist/test/accessible-name.test.d.ts +1 -0
- package/dist/test/helpers/count-activations.d.ts +9 -0
- package/dist/test/navigation-rail.test.d.ts +1 -0
- package/dist/test/throttle-delay.test.d.ts +1 -0
- package/dist/textarea.js +8 -1
- package/dist/textarea.js.map +1 -1
- package/dist/throttle-C7ZAPqtu.js +24 -0
- package/dist/throttle-C7ZAPqtu.js.map +1 -0
- package/dist/time-field.js +7 -4
- package/dist/time-field.js.map +1 -1
- package/dist/time-picker.js +2 -2
- package/dist/toolbar.js +25 -8
- package/dist/toolbar.js.map +1 -1
- package/dist/tree.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/url-field.js +4 -1
- package/dist/url-field.js.map +1 -1
- package/dist/{utils-DcvLgexs.js → utils-CQzycr9J.js} +2 -1
- package/dist/utils-CQzycr9J.js.map +1 -0
- package/package.json +2 -1
- package/src/__internal/controllers/roving-focus-controller.ts +35 -7
- package/src/__internal/i18n/locale.ts +1 -1
- package/src/__internal/implicit-submission.ts +102 -0
- package/src/__internal/utils/activation-gate.ts +20 -0
- package/src/__internal/utils/cache-fetch.ts +6 -3
- package/src/__internal/utils/form-submission.ts +11 -0
- package/src/avatar/avatar.scss +5 -0
- package/src/avatar-group/avatar-group.scss +3 -0
- package/src/avatar-group/avatar-group.ts +1 -1
- package/src/button/base-button/base-button.ts +41 -16
- package/src/button/button/button.ts +5 -16
- package/src/button/fab/fab.ts +7 -18
- package/src/button/icon-button/icon-button.ts +7 -18
- package/src/button/link-button/link-button.ts +8 -15
- package/src/calendar/_calendar-header.scss +7 -1
- package/src/calendar/calendar-month-view.scss +36 -2
- package/src/calendar/calendar-month-view.ts +33 -8
- package/src/calendar/calendar.ts +17 -2
- package/src/calendar/utils.ts +1 -0
- package/src/card/card.ts +27 -16
- package/src/chart-doughnut/chart-doughnut.ts +6 -1
- package/src/chart-pie/chart-pie.ts +10 -1
- package/src/chip/chip/chip.ts +6 -26
- package/src/dropdown-button/dropdown-button.ts +7 -2
- package/src/form/form.ts +1 -9
- package/src/input/BaseField.ts +17 -0
- package/src/input/input.ts +13 -1
- package/src/kanban/kanban.scss +11 -7
- package/src/list/list-item.scss +5 -0
- package/src/list/list-item.ts +44 -16
- package/src/mention-input/mention-input.ts +5 -0
- package/src/menu/menu/menu.ts +4 -1
- package/src/menu/menu-item/menu-item.ts +9 -14
- package/src/navigation-rail/navigation-rail.scss +3 -2
- package/src/password-field/password-field.ts +11 -1
- package/src/search/search.ts +9 -0
- package/src/select/select.ts +5 -0
- package/src/split-button/split-button.ts +10 -1
- package/src/stepper/step.ts +7 -1
- package/src/stepper/stepper.scss +13 -0
- package/src/tabs/tab.ts +21 -17
- package/src/textarea/textarea.ts +5 -0
- package/src/toolbar/toolbar.ts +26 -7
- package/dist/BaseField-BbOj212R.js.map +0 -1
- package/dist/base-button-BJMGMcMv.js.map +0 -1
- package/dist/datasource-OwvH7SVq.js.map +0 -1
- package/dist/form-submitter-beG1CXAn.js.map +0 -1
- package/dist/roving-focus-controller-fm95JkZJ.js.map +0 -1
- package/dist/throttle-SQ9t-HL7.js.map +0 -1
- package/dist/utils-DcvLgexs.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { d as defaultStrings, s as setPeacockStrings } from './strings-DeiQWMd9.js';
|
|
2
2
|
export { Icon } from './icon.js';
|
|
3
|
-
export { s as setIconBase } from './datasource-
|
|
3
|
+
export { s as setIconBase } from './datasource-DxEA6jHW.js';
|
|
4
4
|
export { Avatar } from './avatar.js';
|
|
5
5
|
export { Badge } from './badge.js';
|
|
6
6
|
export { Divider } from './divider.js';
|
|
@@ -215,12 +215,14 @@ import './query-CHb9Ft_d.js';
|
|
|
215
215
|
import './base-Cl6v8-BZ.js';
|
|
216
216
|
import './if-defined-D9DEJR_6.js';
|
|
217
217
|
import './when-DEJm_QN9.js';
|
|
218
|
-
import './
|
|
218
|
+
import './dispatch-event-utils-DfgqVBK8.js';
|
|
219
219
|
import './ButtonConstants-CahP2_NA.js';
|
|
220
220
|
import './delegate-Bw2wdPFP.js';
|
|
221
|
-
import './form-submitter-
|
|
221
|
+
import './form-submitter-BIFqZ0wq.js';
|
|
222
|
+
import './dispatch-hooks-J_godlHh.js';
|
|
222
223
|
import './element-internals-QME0yEz4.js';
|
|
223
|
-
import './base-button-
|
|
224
|
+
import './base-button-9tGu5RSC.js';
|
|
225
|
+
import './activation-gate-D4IpmwyD.js';
|
|
224
226
|
import './warn-once-BNxX1Y98.js';
|
|
225
227
|
import './form-associated-BHbg72PG.js';
|
|
226
228
|
import './is-link-Dk2OV3PM.js';
|
|
@@ -229,18 +231,20 @@ import './i18n-controller-BTeChxE0.js';
|
|
|
229
231
|
import './menu-trigger-controller-CEJq1ugC.js';
|
|
230
232
|
import './attachable-controller-DofeyflD.js';
|
|
231
233
|
import './query-assigned-elements-BJaGSqM0.js';
|
|
232
|
-
import './roving-focus-controller-
|
|
234
|
+
import './roving-focus-controller-YtNbxH95.js';
|
|
233
235
|
import './NativeHyperlinkMixin-WdY0fM-H.js';
|
|
234
236
|
import './spread-B5cgadZl.js';
|
|
235
237
|
import './BaseInput-Cv03GZLu.js';
|
|
236
238
|
import './suggestion-controller-7YRQqkaI.js';
|
|
237
239
|
import './style-map-CHOg6N_R.js';
|
|
238
240
|
import './base-progress-CqsyiVOV.js';
|
|
239
|
-
import './
|
|
240
|
-
import './
|
|
241
|
-
import './
|
|
242
|
-
import './
|
|
243
|
-
import './
|
|
241
|
+
import './implicit-submission-ChLdbxaR.js';
|
|
242
|
+
import './form-submission-h40coUI8.js';
|
|
243
|
+
import './BaseField-DOCmylob.js';
|
|
244
|
+
import './date-DPQOY8Zd.js';
|
|
245
|
+
import './utils-CQzycr9J.js';
|
|
246
|
+
import './picker-field-BiM3iXAQ.js';
|
|
247
|
+
import './range-utils-vgG1SJ2o.js';
|
|
244
248
|
import './toggle-base-BtjRAZ5z.js';
|
|
245
249
|
import './floating-controller-CABF4tBT.js';
|
|
246
250
|
import './placement-C4GO0JP9.js';
|
|
@@ -260,18 +264,19 @@ import './cartesian-chart-iE3cmeGF.js';
|
|
|
260
264
|
import './repeat-D_ERDRYT.js';
|
|
261
265
|
import './directive-helpers-Bx3mu42O.js';
|
|
262
266
|
import './virtual-window-5OYyIqZh.js';
|
|
267
|
+
import './throttle-C7ZAPqtu.js';
|
|
263
268
|
import './modal-B78gUfEO.js';
|
|
264
269
|
import './live-D_5OfuGD.js';
|
|
265
|
-
import './navigation-item-base-
|
|
266
|
-
import './indicator-navigation-item-
|
|
270
|
+
import './navigation-item-base-5ljwtLG_.js';
|
|
271
|
+
import './indicator-navigation-item-BsQE3kUr.js';
|
|
267
272
|
import './site-nav-shared-BDR2HG8e.js';
|
|
268
273
|
import './platform-BUuoTAmr.js';
|
|
269
274
|
import './relative-time-BNxqvEbg.js';
|
|
270
275
|
import './discussion-time-DqykqvNy.js';
|
|
271
|
-
import './calendar-event-
|
|
276
|
+
import './calendar-event-BvbYZHx1.js';
|
|
272
277
|
import './calendar-header-DVrfThwr.js';
|
|
273
|
-
import './calendar-drag-
|
|
274
|
-
import './event-manager-
|
|
278
|
+
import './calendar-drag-DdJwSpEz.js';
|
|
279
|
+
import './event-manager-DYfeN3VE.js';
|
|
275
280
|
import './canvas-base-BjiU3Ecl.js';
|
|
276
281
|
import './geometry-INg82Lxq.js';
|
|
277
282
|
import './host-CZK7xhzh.js';
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/dist/{indicator-navigation-item-CmyhsOmy.js → indicator-navigation-item-BsQE3kUr.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i, _ as __decorate, b } from './IndividualComponent-BK7XZjE2.js';
|
|
2
2
|
import { r } from './state-BCeDVCI9.js';
|
|
3
3
|
import { o as observerSlotChangesWithCallback } from './observe-slot-change-DPxaZrZF.js';
|
|
4
|
-
import { N as NavigationItemBase } from './navigation-item-base-
|
|
4
|
+
import { N as NavigationItemBase } from './navigation-item-base-5ljwtLG_.js';
|
|
5
5
|
|
|
6
6
|
var css_248z = i`* {
|
|
7
7
|
box-sizing: border-box;
|
|
@@ -321,4 +321,4 @@ __decorate([
|
|
|
321
321
|
], IndicatorNavigationItem.prototype, "hasActiveIcon", void 0);
|
|
322
322
|
|
|
323
323
|
export { IndicatorNavigationItem as I };
|
|
324
|
-
//# sourceMappingURL=indicator-navigation-item-
|
|
324
|
+
//# sourceMappingURL=indicator-navigation-item-BsQE3kUr.js.map
|
package/dist/{indicator-navigation-item-CmyhsOmy.js.map → indicator-navigation-item-BsQE3kUr.js.map}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indicator-navigation-item-
|
|
1
|
+
{"version":3,"file":"indicator-navigation-item-BsQE3kUr.js","sources":["../../src/__internal/indicator-navigation-item.ts"],"sourcesContent":["import { html } from 'lit';\nimport { state } from 'lit/decorators.js';\nimport { ClassInfo } from 'lit/directives/class-map.js';\nimport { observerSlotChangesWithCallback } from './utils/observe-slot-change.js';\nimport { NavigationItemBase } from './navigation-item-base.js';\nimport styles from '../navigation-rail/navigation-rail-item.scss';\n\n/**\n * Shared layout of `wc-navigation-rail-item` and `wc-navigation-bar-item`: the icon inside the\n * active-indicator pill with the label below it, the `active-icon` slot and a badge on the icon.\n *\n * Not a component on its own: it is not registered and carries no `@IndividualComponent` marker.\n */\nexport abstract class IndicatorNavigationItem extends NavigationItemBase {\n // ── Static ───────────────────────────────────────────────────────────────\n\n static styles = [styles];\n\n // ── State ────────────────────────────────────────────────────────────────\n\n /** True when the default slot contains label content. */\n @state() private hasLabel = false;\n\n /** True when the `active-icon` slot contains content. */\n @state() private hasActiveIcon = false;\n\n // ── Lifecycle ────────────────────────────────────────────────────────────\n\n protected override firstUpdated() {\n super.firstUpdated();\n\n observerSlotChangesWithCallback(\n this.renderRoot.querySelector('slot.label-slot'),\n hasContent => {\n this.hasLabel = hasContent;\n },\n );\n\n observerSlotChangesWithCallback(\n this.renderRoot.querySelector('slot.active-icon-slot'),\n hasContent => {\n this.hasActiveIcon = hasContent;\n },\n );\n }\n\n // ── Protected methods ────────────────────────────────────────────────────\n\n /** Whether the label is hidden (the rail's collapsed mode). */\n protected get labelHidden(): boolean {\n return false;\n }\n\n protected override itemClasses(): ClassInfo {\n return {\n 'item-element': true,\n 'has-label': this.hasLabel,\n 'has-active-icon': this.hasActiveIcon,\n };\n }\n\n // ── Render helpers ───────────────────────────────────────────────────────\n\n protected renderContent() {\n return html`\n <wc-focus-ring class=\"focus-ring\" for=\"item\"></wc-focus-ring>\n\n <div class=\"item-content\">\n <div class=\"indicator\">\n <wc-ripple class=\"ripple\"></wc-ripple>\n <div class=\"icon-container\">\n <slot name=\"active-icon\" class=\"active-icon-slot\"></slot>\n <slot name=\"icon\" class=\"icon-slot\"></slot>\n </div>\n ${this.renderBadge()}\n </div>\n <div class=\"label ${this.labelHidden ? 'hidden' : ''}\">\n <slot class=\"label-slot\"></slot>\n </div>\n </div>\n `;\n }\n}\n"],"names":["html","styles","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOA;;;;;AAKG;AACG,MAAgB,uBAAwB,SAAQ,kBAAkB,CAAA;AAAxE,IAAA,WAAA,GAAA;;;;;QAQmB,IAAA,CAAA,QAAQ,GAAG,KAAK;;QAGhB,IAAA,CAAA,aAAa,GAAG,KAAK;IA0DxC;;IAtDqB,YAAY,GAAA;QAC7B,KAAK,CAAC,YAAY,EAAE;AAEpB,QAAA,+BAA+B,CAC7B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,iBAAiB,CAAC,EAChD,UAAU,IAAG;AACX,YAAA,IAAI,CAAC,QAAQ,GAAG,UAAU;AAC5B,QAAA,CAAC,CACF;AAED,QAAA,+BAA+B,CAC7B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,uBAAuB,CAAC,EACtD,UAAU,IAAG;AACX,YAAA,IAAI,CAAC,aAAa,GAAG,UAAU;AACjC,QAAA,CAAC,CACF;IACH;;;AAKA,IAAA,IAAc,WAAW,GAAA;AACvB,QAAA,OAAO,KAAK;IACd;IAEmB,WAAW,GAAA;QAC5B,OAAO;AACL,YAAA,cAAc,EAAE,IAAI;YACpB,WAAW,EAAE,IAAI,CAAC,QAAQ;YAC1B,iBAAiB,EAAE,IAAI,CAAC,aAAa;SACtC;IACH;;IAIU,aAAa,GAAA;AACrB,QAAA,OAAOA,CAAI,CAAA;;;;;;;;;;YAUH,IAAI,CAAC,WAAW,EAAE;;4BAEF,IAAI,CAAC,WAAW,GAAG,QAAQ,GAAG,EAAE,CAAA;;;;KAIvD;IACH;;AAjEO,uBAAA,CAAA,MAAM,GAAG,CAACC,QAAM,CAAC;AAKP,UAAA,CAAA;AAAhB,IAAAC,CAAK;AAA4B,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAGjB,UAAA,CAAA;AAAhB,IAAAA,CAAK;AAAiC,CAAA,EAAA,uBAAA,CAAA,SAAA,EAAA,eAAA,EAAA,MAAA,CAAA;;;;"}
|
package/dist/input.js
CHANGED
|
@@ -2,10 +2,13 @@ import { i, _ as __decorate, I as IndividualComponent, A, b } from './Individual
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { e } from './query-CHb9Ft_d.js';
|
|
4
4
|
import { s as spread } from './spread-B5cgadZl.js';
|
|
5
|
-
import {
|
|
5
|
+
import { s as setupImplicitSubmission } from './implicit-submission-ChLdbxaR.js';
|
|
6
|
+
import { B as BaseField } from './BaseField-DOCmylob.js';
|
|
6
7
|
import { n as nativeValidity } from './BaseInput-Cv03GZLu.js';
|
|
7
8
|
import './base-Cl6v8-BZ.js';
|
|
8
9
|
import './directive-ZPhl09Yt.js';
|
|
10
|
+
import './dispatch-hooks-J_godlHh.js';
|
|
11
|
+
import './form-submission-h40coUI8.js';
|
|
9
12
|
import './state-BCeDVCI9.js';
|
|
10
13
|
import './strings-DeiQWMd9.js';
|
|
11
14
|
import './element-internals-QME0yEz4.js';
|
|
@@ -76,7 +79,10 @@ var css_248z = i`* {
|
|
|
76
79
|
* @summary A single-line text field for plain text, an email address or a phone number.
|
|
77
80
|
* @overview
|
|
78
81
|
* <p>Input is form-associated: inside a <code><form></code> its <code>value</code> is submitted
|
|
79
|
-
* under its <code>name</code>, and <code>form.reset()</code> restores the starting value
|
|
82
|
+
* under its <code>name</code>, and <code>form.reset()</code> restores the starting value. Enter
|
|
83
|
+
* submits the form as in a native text input: it clicks the form's first submit button, or,
|
|
84
|
+
* without one, submits a form that has no other text field. A disabled default button blocks it,
|
|
85
|
+
* and <code>preventDefault()</code> on the <code>keydown</code> stops it.</p>
|
|
80
86
|
* <p>It validates like a native input: <code>required</code> and an invalid <code>type="email"</code>
|
|
81
87
|
* block form submission, and the message shows under the field once the value is committed or the
|
|
82
88
|
* form is submitted. <code>checkValidity()</code>, <code>reportValidity()</code> and
|
|
@@ -95,9 +101,9 @@ var css_248z = i`* {
|
|
|
95
101
|
* @tags input, form
|
|
96
102
|
*/
|
|
97
103
|
let Input = class Input extends BaseField {
|
|
104
|
+
// ── Lifecycle ────────────────────────────────────────────────────────────
|
|
98
105
|
constructor() {
|
|
99
|
-
|
|
100
|
-
super(...arguments);
|
|
106
|
+
super();
|
|
101
107
|
// ── Properties ───────────────────────────────────────────────────────────
|
|
102
108
|
this.value = '';
|
|
103
109
|
/** Kind of text. For a password, use `wc-password-field`. */
|
|
@@ -119,6 +125,8 @@ let Input = class Input extends BaseField {
|
|
|
119
125
|
* the browser default applies otherwise.
|
|
120
126
|
*/
|
|
121
127
|
this.spellcheckAttribute = null;
|
|
128
|
+
// Enter submits the surrounding form, as in a native text input.
|
|
129
|
+
setupImplicitSubmission(this, () => this.inputElement);
|
|
122
130
|
}
|
|
123
131
|
// ── Public methods ───────────────────────────────────────────────────────
|
|
124
132
|
focus() {
|
|
@@ -174,6 +182,7 @@ let Input = class Input extends BaseField {
|
|
|
174
182
|
});
|
|
175
183
|
}
|
|
176
184
|
};
|
|
185
|
+
// ── Static ───────────────────────────────────────────────────────────────
|
|
177
186
|
Input.styles = [css_248z];
|
|
178
187
|
__decorate([
|
|
179
188
|
n({ type: String })
|
package/dist/input.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input.js","sources":["../../src/input/input.ts"],"sourcesContent":["import { html, nothing } from 'lit';\nimport { property, query } from 'lit/decorators.js';\n\nimport { spread } from '@/__internal/directive/spread.js';\nimport IndividualComponent from '@/IndividualComponent.js';\n\nimport BaseField from './BaseField.js';\nimport { type ControlValidity, nativeValidity } from './BaseInput.js';\nimport styles from './input.scss';\n\n/**\n * @label Input\n * @tag wc-input\n * @rawTag input\n *\n * @summary A single-line text field for plain text, an email address or a phone number.\n * @overview\n * <p>Input is form-associated: inside a <code><form></code> its <code>value</code> is submitted\n * under its <code>name</code>, and <code>form.reset()</code> restores the starting value.</p>\n * <p>It validates like a native input: <code>required</code> and an invalid <code>type=\"email\"</code>\n * block form submission, and the message shows under the field once the value is committed or the\n * form is submitted. <code>checkValidity()</code>, <code>reportValidity()</code> and\n * <code>setCustomValidity()</code> work as on <code><input></code>, and so do\n * <code>minlength</code>, <code>maxlength</code> and <code>pattern</code>. With\n * <code>maxlength</code> a character counter shows under the field.</p>\n * <p>For a password, use <code>wc-password-field</code>.</p>\n *\n * @fires {CustomEvent<{value: string}>} input - Dispatched as the user types.\n * @fires {CustomEvent<{value: string}>} change - Dispatched when the value is committed.\n *\n * @example\n * ```html\n * <wc-input label=\"Name\" required placeholder=\"Enter your name\"></wc-input>\n * ```\n * @tags input, form\n */\n@IndividualComponent\nexport class Input extends BaseField {\n // ── Static ───────────────────────────────────────────────────────────────\n\n static styles = [styles];\n\n // ── Properties ───────────────────────────────────────────────────────────\n\n @property({ type: String })\n value = '';\n\n /** Kind of text. For a password, use `wc-password-field`. */\n @property({ type: String })\n type: 'text' | 'email' | 'tel' = 'text';\n\n /**\n * Autofill hint for the browser, any `autocomplete` token such as `email`, `username`, `name`,\n * `tel`, `one-time-code` or `off`. Unset by default, so the browser decides.\n */\n @property({ type: String })\n autocomplete = '';\n\n /** Fewest characters allowed. */\n @property({ type: Number, attribute: 'minlength' })\n minLength?: number;\n\n /** Most characters allowed; the input stops taking more and shows a character counter. */\n @property({ type: Number, attribute: 'maxlength' })\n maxLength?: number;\n\n /** Regular expression the whole value must match, as on `<input pattern>`. */\n @property({ type: String })\n pattern = '';\n\n /**\n * The `inputmode` attribute: which virtual keyboard to show (`numeric`, `decimal`, `email`,\n * `tel`, `url`, `search`, `none`). Passed to the native input only when set.\n */\n @property({ type: String, attribute: 'inputmode' })\n protected inputModeAttribute: string | null = null;\n\n /**\n * The `spellcheck` attribute (`true` or `false`). Passed to the native input only when set, so\n * the browser default applies otherwise.\n */\n @property({ type: String, attribute: 'spellcheck' })\n protected spellcheckAttribute: string | null = null;\n\n // ── Queries ──────────────────────────────────────────────────────────────\n\n @query('.input-element')\n private inputElement?: HTMLInputElement;\n\n // ── Public methods ───────────────────────────────────────────────────────\n\n override focus() {\n this.inputElement?.focus();\n }\n\n override blur() {\n this.inputElement?.blur();\n }\n\n // ── Protected methods ────────────────────────────────────────────────────\n\n protected override computeValidity(): ControlValidity {\n return this.inputElement\n ? nativeValidity(this.inputElement)\n : super.computeValidity();\n }\n\n protected override validityAnchor() {\n return this.inputElement;\n }\n\n // ── Private methods ──────────────────────────────────────────────────────\n\n private handleInput(event: Event) {\n // Replace the native event, which escapes the shadow root, with the field's own.\n event.stopPropagation();\n this.value = (event.target as HTMLInputElement).value;\n this.emitValue('input');\n }\n\n private handleChange(event: Event) {\n event.stopPropagation();\n this.emitValue('change');\n }\n\n // ── Render ───────────────────────────────────────────────────────────────\n\n render() {\n return this.renderField(\n html`<input\n class=\"input input-element\"\n type=${this.type}\n placeholder=${this.placeholder}\n autocomplete=${this.autocomplete || nothing}\n minlength=${this.minLength ?? nothing}\n maxlength=${this.maxLength ?? nothing}\n pattern=${this.pattern || nothing}\n inputmode=${this.inputModeAttribute ?? nothing}\n spellcheck=${this.spellcheckAttribute ?? nothing}\n .value=${this.value}\n ?readonly=${this.readonly}\n ?required=${this.required}\n ?disabled=${this.disabled}\n @input=${this.handleInput}\n @change=${this.handleChange}\n @focus=${this.handleFieldFocus}\n @blur=${this.handleFieldFocus}\n ${spread(this.fieldAria())}\n />`,\n {\n populated: !!this.value,\n textCount: this.characterCount(this.maxLength),\n },\n );\n }\n}\n"],"names":["html","nothing","styles","property","query"],"mappings":"
|
|
1
|
+
{"version":3,"file":"input.js","sources":["../../src/input/input.ts"],"sourcesContent":["import { html, nothing } from 'lit';\nimport { property, query } from 'lit/decorators.js';\n\nimport { spread } from '@/__internal/directive/spread.js';\nimport { setupImplicitSubmission } from '@/__internal/implicit-submission.js';\nimport IndividualComponent from '@/IndividualComponent.js';\n\nimport BaseField from './BaseField.js';\nimport { type ControlValidity, nativeValidity } from './BaseInput.js';\nimport styles from './input.scss';\n\n/**\n * @label Input\n * @tag wc-input\n * @rawTag input\n *\n * @summary A single-line text field for plain text, an email address or a phone number.\n * @overview\n * <p>Input is form-associated: inside a <code><form></code> its <code>value</code> is submitted\n * under its <code>name</code>, and <code>form.reset()</code> restores the starting value. Enter\n * submits the form as in a native text input: it clicks the form's first submit button, or,\n * without one, submits a form that has no other text field. A disabled default button blocks it,\n * and <code>preventDefault()</code> on the <code>keydown</code> stops it.</p>\n * <p>It validates like a native input: <code>required</code> and an invalid <code>type=\"email\"</code>\n * block form submission, and the message shows under the field once the value is committed or the\n * form is submitted. <code>checkValidity()</code>, <code>reportValidity()</code> and\n * <code>setCustomValidity()</code> work as on <code><input></code>, and so do\n * <code>minlength</code>, <code>maxlength</code> and <code>pattern</code>. With\n * <code>maxlength</code> a character counter shows under the field.</p>\n * <p>For a password, use <code>wc-password-field</code>.</p>\n *\n * @fires {CustomEvent<{value: string}>} input - Dispatched as the user types.\n * @fires {CustomEvent<{value: string}>} change - Dispatched when the value is committed.\n *\n * @example\n * ```html\n * <wc-input label=\"Name\" required placeholder=\"Enter your name\"></wc-input>\n * ```\n * @tags input, form\n */\n@IndividualComponent\nexport class Input extends BaseField {\n // ── Static ───────────────────────────────────────────────────────────────\n\n static styles = [styles];\n\n // ── Properties ───────────────────────────────────────────────────────────\n\n @property({ type: String })\n value = '';\n\n /** Kind of text. For a password, use `wc-password-field`. */\n @property({ type: String })\n type: 'text' | 'email' | 'tel' = 'text';\n\n /**\n * Autofill hint for the browser, any `autocomplete` token such as `email`, `username`, `name`,\n * `tel`, `one-time-code` or `off`. Unset by default, so the browser decides.\n */\n @property({ type: String })\n autocomplete = '';\n\n /** Fewest characters allowed. */\n @property({ type: Number, attribute: 'minlength' })\n minLength?: number;\n\n /** Most characters allowed; the input stops taking more and shows a character counter. */\n @property({ type: Number, attribute: 'maxlength' })\n maxLength?: number;\n\n /** Regular expression the whole value must match, as on `<input pattern>`. */\n @property({ type: String })\n pattern = '';\n\n /**\n * The `inputmode` attribute: which virtual keyboard to show (`numeric`, `decimal`, `email`,\n * `tel`, `url`, `search`, `none`). Passed to the native input only when set.\n */\n @property({ type: String, attribute: 'inputmode' })\n protected inputModeAttribute: string | null = null;\n\n /**\n * The `spellcheck` attribute (`true` or `false`). Passed to the native input only when set, so\n * the browser default applies otherwise.\n */\n @property({ type: String, attribute: 'spellcheck' })\n protected spellcheckAttribute: string | null = null;\n\n // ── Queries ──────────────────────────────────────────────────────────────\n\n @query('.input-element')\n private inputElement?: HTMLInputElement;\n\n // ── Lifecycle ────────────────────────────────────────────────────────────\n\n constructor() {\n super();\n // Enter submits the surrounding form, as in a native text input.\n setupImplicitSubmission(this, () => this.inputElement);\n }\n\n // ── Public methods ───────────────────────────────────────────────────────\n\n override focus() {\n this.inputElement?.focus();\n }\n\n override blur() {\n this.inputElement?.blur();\n }\n\n // ── Protected methods ────────────────────────────────────────────────────\n\n protected override computeValidity(): ControlValidity {\n return this.inputElement\n ? nativeValidity(this.inputElement)\n : super.computeValidity();\n }\n\n protected override validityAnchor() {\n return this.inputElement;\n }\n\n // ── Private methods ──────────────────────────────────────────────────────\n\n private handleInput(event: Event) {\n // Replace the native event, which escapes the shadow root, with the field's own.\n event.stopPropagation();\n this.value = (event.target as HTMLInputElement).value;\n this.emitValue('input');\n }\n\n private handleChange(event: Event) {\n event.stopPropagation();\n this.emitValue('change');\n }\n\n // ── Render ───────────────────────────────────────────────────────────────\n\n render() {\n return this.renderField(\n html`<input\n class=\"input input-element\"\n type=${this.type}\n placeholder=${this.placeholder}\n autocomplete=${this.autocomplete || nothing}\n minlength=${this.minLength ?? nothing}\n maxlength=${this.maxLength ?? nothing}\n pattern=${this.pattern || nothing}\n inputmode=${this.inputModeAttribute ?? nothing}\n spellcheck=${this.spellcheckAttribute ?? nothing}\n .value=${this.value}\n ?readonly=${this.readonly}\n ?required=${this.required}\n ?disabled=${this.disabled}\n @input=${this.handleInput}\n @change=${this.handleChange}\n @focus=${this.handleFieldFocus}\n @blur=${this.handleFieldFocus}\n ${spread(this.fieldAria())}\n />`,\n {\n populated: !!this.value,\n textCount: this.characterCount(this.maxLength),\n },\n );\n }\n}\n"],"names":["html","nothing","styles","property","query"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWA;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BG;AAEI,IAAM,KAAK,GAAX,MAAM,KAAM,SAAQ,SAAS,CAAA;;AAsDlC,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;QA/CT,IAAA,CAAA,KAAK,GAAG,EAAE;;QAIV,IAAA,CAAA,IAAI,GAA6B,MAAM;AAEvC;;;AAGG;QAEH,IAAA,CAAA,YAAY,GAAG,EAAE;;QAYjB,IAAA,CAAA,OAAO,GAAG,EAAE;AAEZ;;;AAGG;QAEO,IAAA,CAAA,kBAAkB,GAAkB,IAAI;AAElD;;;AAGG;QAEO,IAAA,CAAA,mBAAmB,GAAkB,IAAI;;QAYjD,uBAAuB,CAAC,IAA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A,EAAA,KAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAOH,UAAA,CAAA;IADTA,CAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE;AACC,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,oBAAA,EAAA,MAAA,CAAA;AAOzC,UAAA,CAAA;IADTA,CAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE;AACC,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,qBAAA,EAAA,MAAA,CAAA;AAK5C,UAAA,CAAA;IADPC,CAAK,CAAC,gBAAgB;AACiB,CAAA,EAAA,KAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAlD7B,KAAK,GAAA,UAAA,CAAA;IADjB;AACY,CAAA,EAAA,KAAK,CA8HjB;;;;"}
|
package/dist/json-viewer.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { c } from './repeat-D_ERDRYT.js';
|
|
5
5
|
import { I as I18nController } from './i18n-controller-BTeChxE0.js';
|
|
6
|
-
import { R as RovingFocusController } from './roving-focus-controller-
|
|
6
|
+
import { R as RovingFocusController } from './roving-focus-controller-YtNbxH95.js';
|
|
7
7
|
import { w as writeClipboardText } from './clipboard-C7hBdUXP.js';
|
|
8
8
|
import './directive-ZPhl09Yt.js';
|
|
9
9
|
import './directive-helpers-Bx3mu42O.js';
|
package/dist/kanban.js
CHANGED
|
@@ -159,13 +159,14 @@ var css_248z = i`* {
|
|
|
159
159
|
font-weight: var(--typography-body-medium-font-weight);
|
|
160
160
|
line-height: var(--typography-body-medium-line-height);
|
|
161
161
|
letter-spacing: var(--typography-body-medium-letter-spacing);
|
|
162
|
-
display: block;
|
|
163
|
-
box-sizing: border-box;
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
162
|
+
display: block !important;
|
|
163
|
+
box-sizing: border-box !important;
|
|
164
|
+
margin: 0 !important;
|
|
165
|
+
padding: var(--kanban-card-padding, var(--spacing-150)) !important;
|
|
166
|
+
border-radius: var(--shape-corner-small) !important;
|
|
167
|
+
background-color: var(--kanban-card-container-color, var(--color-surface)) !important;
|
|
167
168
|
color: var(--color-on-surface);
|
|
168
|
-
box-shadow: var(--elevation-level1);
|
|
169
|
+
box-shadow: var(--elevation-level1) !important;
|
|
169
170
|
cursor: grab;
|
|
170
171
|
user-select: none;
|
|
171
172
|
outline: none;
|
|
@@ -177,7 +178,7 @@ var css_248z = i`* {
|
|
|
177
178
|
}
|
|
178
179
|
|
|
179
180
|
::slotted([data-dragging]) {
|
|
180
|
-
box-shadow: var(--elevation-level3);
|
|
181
|
+
box-shadow: var(--elevation-level3) !important;
|
|
181
182
|
outline: 2px solid var(--color-primary);
|
|
182
183
|
outline-offset: 2px;
|
|
183
184
|
}
|
package/dist/kanban.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kanban.js","sources":["../../src/kanban/kanban.ts"],"sourcesContent":["import { html, LitElement, nothing, render, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { repeat } from 'lit/directives/repeat.js';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport { isRtl } from '@/__internal/i18n/locale.js';\nimport styles from './kanban.scss';\n\n/** A column of the board. */\nexport interface KanbanColumn {\n id: string;\n /** Shown in the column header and read in announcements. */\n title: string;\n /** Work-in-progress limit: the header shows the count against it and flags a column over it. */\n limit?: number;\n}\n\n/** A card of the board. Add any fields of your own; `renderCard` receives the whole object. */\nexport interface KanbanCard {\n id: string;\n /** The `id` of the column the card is in. */\n columnId: string;\n /** Shown by the default card and read in announcements. */\n title: string;\n [key: string]: unknown;\n}\n\n/**\n * Renders the content of one card. Return anything Lit can render: a `TemplateResult`, a DOM node\n * or a string. Declared as a method type so a function typed for your own card type fits.\n */\nexport type KanbanRenderCard = {\n bivarianceHack(card: KanbanCard): unknown;\n}['bivarianceHack'];\n\n/** Detail of the `card-move` event. Indices are 0-based positions within a column. */\nexport interface KanbanCardMoveDetail {\n cardId: string;\n fromColumn: string;\n toColumn: string;\n fromIndex: number;\n /** The card's index in `toColumn` after the move. */\n toIndex: number;\n}\n\n/** Detail of the `card-add` event. */\nexport interface KanbanCardAddDetail {\n columnId: string;\n}\n\n/** The pending move of a lifted card. */\ninterface DragState extends KanbanCardMoveDetail {\n mode: 'keyboard' | 'pointer';\n}\n\n/** One entry of a rendered column: a card's slot, or the drop placeholder of a pointer drag. */\ntype LayoutEntry = { kind: 'card'; card: KanbanCard } | { kind: 'placeholder' };\n\n/** The press on a card that may become a pointer drag. */\ninterface PointerPress {\n pointerId: number;\n pointerType: string;\n card: HTMLElement;\n cardId: string;\n startX: number;\n startY: number;\n x: number;\n y: number;\n lifted: boolean;\n offsetX: number;\n offsetY: number;\n holdTimer?: ReturnType<typeof setTimeout>;\n frame?: number;\n}\n\n/** Elements inside a card that handle their own pointer and keys. */\nconst INTERACTIVE =\n 'a[href], button, input, select, textarea, [contenteditable]:not([contenteditable=\"false\"]), wc-button, wc-icon-button, wc-link, wc-checkbox, wc-switch, wc-select, wc-input';\n\n/** Pixels a mouse or pen moves before a press becomes a drag. */\nconst DRAG_DISTANCE = 5;\n/** Milliseconds a finger holds still on a card before it lifts; moving sooner scrolls. */\nconst TOUCH_HOLD_MS = 250;\n/** Pixels a finger may move during the hold. */\nconst TOUCH_SLOP = 8;\n/** Distance from a scroll container's edge, in pixels, at which a drag scrolls it. */\nconst SCROLL_EDGE = 48;\n\nlet instructionsCount = 0;\n\n/**\n * Moves a card in a `cards` array the way the board does, returning a new array. Use it to apply\n * a `card-move` you canceled, for example once the server has accepted it.\n */\nexport function applyKanbanMove(\n cards: readonly KanbanCard[],\n move: Pick<KanbanCardMoveDetail, 'cardId' | 'toColumn' | 'toIndex'>,\n): KanbanCard[] {\n const card = cards.find(item => item.id === move.cardId);\n if (!card) return [...cards];\n const rest = cards.filter(item => item !== card);\n const moved: KanbanCard = { ...card, columnId: move.toColumn };\n const target = rest.filter(item => item.columnId === move.toColumn);\n const index = Math.min(Math.max(0, move.toIndex), target.length);\n let at: number;\n if (index < target.length) at = rest.indexOf(target[index]);\n else if (target.length) at = rest.indexOf(target[target.length - 1]) + 1;\n else at = rest.length;\n rest.splice(at, 0, moved);\n return rest;\n}\n\nfunction prefersReducedMotion(): boolean {\n return (\n typeof window !== 'undefined' &&\n !!window.matchMedia?.('(prefers-reduced-motion: reduce)').matches\n );\n}\n\n/**\n * @label Kanban\n * @tag wc-kanban\n * @rawTag kanban\n *\n * @summary A board of columns whose cards the person moves by drag and drop or with the keyboard.\n * @overview\n * <p>The board is data-driven: <code>columns</code> (<code>{id, title, limit?}</code>) and\n * <code>cards</code> (<code>{id, columnId, title, ...}</code>), where the order of\n * <code>cards</code> is the order within each column. <code>renderCard</code> renders a card's\n * content; without it a card shows its <code>title</code>. Cards are rendered into the light DOM,\n * so page styles reach the content, and each sits in a wrapper with <code>role=\"listitem\"</code>\n * inside its column's <code>role=\"list\"</code>, named by the column title.</p>\n * <p>Moving a card fires the cancelable <code>card-move</code> event with\n * <code>{cardId, fromColumn, toColumn, fromIndex, toIndex}</code>. Unless it is canceled, the\n * board applies the move itself and replaces <code>cards</code> with a new array. To confirm a\n * move with a server first, cancel the event and apply it later with\n * <code>applyKanbanMove()</code>.</p>\n * <p>With a pointer, drag a card (on touch, hold it briefly first, so a swipe still scrolls). A\n * placeholder shows where it will land, and the board and columns scroll when the card nears\n * their edges. Escape cancels.</p>\n * <p>Cards are one tab stop. The arrow keys move focus between cards (Left and Right between\n * columns, mirrored in right-to-left), Home and End to the first and last card of the column.\n * Space or Enter picks the focused card up; the arrow keys then move it, Space or Enter drops it\n * and Escape or Tab cancels. Each step is announced in a live region.</p>\n * <p>A column with a <code>limit</code> shows its count against it and is flagged when it holds\n * more cards. <code>addable</code> adds an \"Add card\" button to every column, which fires\n * <code>card-add</code>.</p>\n *\n * @fires {CustomEvent<{cardId: string, fromColumn: string, toColumn: string, fromIndex: number, toIndex: number}>} card-move - Dispatched when the person drops a card in a new place. Cancelable: cancel it to keep the cards as they are.\n * @fires {CustomEvent<{columnId: string}>} card-add - Dispatched when the person presses a column's \"Add card\" button.\n *\n * @cssprop --kanban-column-inline-size - The width of a column. Defaults to `18rem`.\n * @cssprop --kanban-column-container-color - The background of a column.\n * @cssprop --kanban-card-container-color - The background of a card.\n * @cssprop --kanban-card-padding - The padding of a card. Defaults to `var(--spacing-150)`.\n *\n * @example\n * ```html\n * <wc-kanban id=\"board\" label=\"Sprint\" style=\"height: 28rem\" addable></wc-kanban>\n * <script>\n * const board = document.getElementById('board');\n * board.columns = [\n * { id: 'todo', title: 'To do' },\n * { id: 'doing', title: 'In progress', limit: 2 },\n * { id: 'done', title: 'Done' },\n * ];\n * board.cards = [\n * { id: '1', columnId: 'todo', title: 'Fix login' },\n * { id: '2', columnId: 'doing', title: 'Write docs' },\n * ];\n * board.addEventListener('card-move', event => console.log(event.detail));\n * </script>\n * ```\n * @tags display\n */\n@IndividualComponent\nexport class Kanban extends LitElement {\n // ── Static\n\n static styles = [styles];\n\n // ── Properties\n\n /** The columns, in order. */\n @property({ attribute: false }) columns: KanbanColumn[] = [];\n\n /** The cards. Their order is the order within each column; cards of unknown columns are not shown. */\n @property({ attribute: false }) cards: KanbanCard[] = [];\n\n /** Renders a card's content. Without it, a card shows its `title`. */\n @property({ attribute: false }) renderCard?: KanbanRenderCard;\n\n /** The accessible name of the board. Defaults to \"Board\". */\n @property({ type: String }) label = '';\n\n /** Adds an \"Add card\" button to every column, which fires `card-add`. */\n @property({ type: Boolean, reflect: true }) addable = false;\n\n // ── State\n\n /** The card being moved, with where it would land. */\n @state() private drag: DragState | null = null;\n\n /** The id of the card that holds the tab stop. */\n @state() private activeCardId = '';\n\n /** The live region's text. */\n @state() private announcement = '';\n\n // ── Private fields\n\n /** Each column's entries, worked out before every render. */\n private layouts = new Map<string, LayoutEntry[]>();\n\n /** The press or pointer drag in progress. */\n private press: PointerPress | null = null;\n\n /** Height of the dragged card, for the placeholder. */\n private placeholderHeight = 0;\n\n /** Whether to focus and reveal the lifted card after the next update. */\n private revealLifted = false;\n\n private readonly instructionsId = `wc-kanban-instructions-${(instructionsCount += 1)}`;\n\n private readonly i18n = new I18nController(this);\n\n // ── Lifecycle\n\n override connectedCallback() {\n super.connectedCallback();\n this.addEventListener('keydown', this.__handleKeyDown);\n this.addEventListener('focusin', this.__handleFocusIn);\n this.addEventListener('focusout', this.__handleFocusOut);\n this.addEventListener('pointerdown', this.__handlePointerDown);\n this.addEventListener('touchmove', this.__handleTouchMove, {\n passive: false,\n });\n this.addEventListener('contextmenu', this.__handleContextMenu);\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('keydown', this.__handleKeyDown);\n this.removeEventListener('focusin', this.__handleFocusIn);\n this.removeEventListener('focusout', this.__handleFocusOut);\n this.removeEventListener('pointerdown', this.__handlePointerDown);\n this.removeEventListener('touchmove', this.__handleTouchMove);\n this.removeEventListener('contextmenu', this.__handleContextMenu);\n this.__endPress();\n this.drag = null;\n }\n\n protected override willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n this.layouts = this.__computeLayouts();\n const shown = this.__shownCards();\n if (!shown.some(card => card.id === this.activeCardId)) {\n this.activeCardId = shown[0]?.id ?? '';\n }\n }\n\n /** Renders the shadow DOM (columns and slots), then the cards into the light DOM. */\n protected override update(changed: PropertyValues<this>) {\n super.update(changed);\n render(this.__renderCards(), this);\n }\n\n protected override updated(changed: PropertyValues<this>) {\n super.updated(changed);\n if (this.revealLifted && this.drag) {\n this.revealLifted = false;\n const card = this.__cardElement(this.drag.cardId);\n if (card) {\n if (!card.matches(':focus')) card.focus({ preventScroll: true });\n this.__reveal(card);\n }\n }\n }\n\n // ── Private methods\n\n /** The cards of `columnId` in order, optionally without one card. */\n private __cardsIn(columnId: string, without?: string): KanbanCard[] {\n return this.cards.filter(\n card => card.columnId === columnId && card.id !== without,\n );\n }\n\n private __computeLayouts(): Map<string, LayoutEntry[]> {\n const layouts = new Map<string, LayoutEntry[]>();\n const { drag } = this;\n const dragged = drag\n ? this.cards.find(card => card.id === drag.cardId)\n : undefined;\n this.columns.forEach(column => {\n const entries: LayoutEntry[] = this.__cardsIn(column.id, dragged?.id).map(\n card => ({ kind: 'card', card }),\n );\n if (drag && dragged && drag.toColumn === column.id) {\n const at = Math.min(drag.toIndex, entries.length);\n const inserted: LayoutEntry[] = [{ kind: 'card', card: dragged }];\n if (drag.mode === 'pointer') inserted.push({ kind: 'placeholder' });\n entries.splice(at, 0, ...inserted);\n }\n layouts.set(column.id, entries);\n });\n return layouts;\n }\n\n /** The rendered cards in column order (the order focus moves through). */\n private __shownCards(): KanbanCard[] {\n const shown: KanbanCard[] = [];\n this.layouts.forEach(entries =>\n entries.forEach(entry => {\n if (entry.kind === 'card') shown.push(entry.card);\n }),\n );\n return shown;\n }\n\n /** The cards of a rendered column. */\n private __layoutCards(columnId: string): KanbanCard[] {\n const cards: KanbanCard[] = [];\n this.layouts.get(columnId)?.forEach(entry => {\n if (entry.kind === 'card') cards.push(entry.card);\n });\n return cards;\n }\n\n /** Where a card is in the committed `cards`. */\n private __positionOf(\n cardId: string,\n ): { columnId: string; index: number } | null {\n const card = this.cards.find(item => item.id === cardId);\n if (!card || !this.columns.some(column => column.id === card.columnId)) {\n return null;\n }\n return {\n columnId: card.columnId,\n index: this.__cardsIn(card.columnId).indexOf(card),\n };\n }\n\n private __cardElement(cardId: string): HTMLElement | null {\n return (\n Array.from(this.children).find(\n (child): child is HTMLElement =>\n child instanceof HTMLElement && child.dataset.kanbanCard === cardId,\n ) ?? null\n );\n }\n\n /** The card wrapper that contains `node`, if any. */\n private __cardOf(node: EventTarget | null): HTMLElement | null {\n if (!(node instanceof Element)) return null;\n const card = node.closest<HTMLElement>('[data-kanban-card]');\n return card && card.parentElement === this ? card : null;\n }\n\n private __format(value: number): string {\n return new Intl.NumberFormat(this.i18n.locale).format(value);\n }\n\n private __columnTitle(columnId: string): string {\n return this.columns.find(column => column.id === columnId)?.title ?? '';\n }\n\n private __cardTitle(cardId: string): string {\n return this.cards.find(card => card.id === cardId)?.title ?? '';\n }\n\n /** Announces a step of a move, with the card's position in `columnId`. */\n private __announceAt(\n key: 'kanbanPickedUp' | 'kanbanMoved' | 'kanbanDropped' | 'kanbanCanceled',\n cardId: string,\n columnId: string,\n index: number,\n total: number,\n ) {\n this.__announce(\n this.i18n.t(key)(\n this.__cardTitle(cardId),\n this.__columnTitle(columnId),\n this.__format(index + 1),\n this.__format(total),\n ),\n );\n }\n\n /** Announces the lifted card at its pending place. */\n private __announceDrag(\n key: 'kanbanPickedUp' | 'kanbanMoved' | 'kanbanDropped',\n ) {\n const { drag } = this;\n if (!drag) return;\n const total = this.__cardsIn(drag.toColumn, drag.cardId).length + 1;\n this.__announceAt(key, drag.cardId, drag.toColumn, drag.toIndex, total);\n }\n\n private __announce(message: string) {\n // Clear first, so the same message twice in a row is read again.\n this.announcement = '';\n setTimeout(() => {\n this.announcement = message;\n });\n }\n\n /** Scrolls a card into view within its column and the board. */\n private __reveal(card: HTMLElement) {\n card.scrollIntoView?.({\n block: 'nearest',\n inline: 'nearest',\n behavior: prefersReducedMotion() ? 'auto' : 'smooth',\n });\n }\n\n /** Lifts a card for a move. */\n private __lift(cardId: string, mode: DragState['mode']) {\n const position = this.__positionOf(cardId);\n if (!position) return false;\n this.drag = {\n mode,\n cardId,\n fromColumn: position.columnId,\n fromIndex: position.index,\n toColumn: position.columnId,\n toIndex: position.index,\n };\n this.__announceDrag('kanbanPickedUp');\n return true;\n }\n\n /** Drops the lifted card where it is: fires `card-move` and applies it unless canceled. */\n private __drop() {\n const { drag } = this;\n if (!drag) return;\n this.drag = null;\n const { cardId, fromColumn, toColumn, fromIndex, toIndex } = drag;\n if (fromColumn === toColumn && fromIndex === toIndex) {\n const total = this.__cardsIn(toColumn).length;\n this.__announceAt('kanbanDropped', cardId, toColumn, toIndex, total);\n return;\n }\n const detail: KanbanCardMoveDetail = {\n cardId,\n fromColumn,\n toColumn,\n fromIndex,\n toIndex,\n };\n const event = new CustomEvent<KanbanCardMoveDetail>('card-move', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail,\n });\n if (!this.dispatchEvent(event)) {\n const total = this.__cardsIn(fromColumn).length;\n this.__announceAt('kanbanCanceled', cardId, fromColumn, fromIndex, total);\n return;\n }\n this.cards = applyKanbanMove(this.cards, detail);\n const total = this.__cardsIn(toColumn).length;\n this.__announceAt('kanbanDropped', cardId, toColumn, toIndex, total);\n }\n\n /** Puts the lifted card back where it was. */\n private __cancel() {\n const { drag } = this;\n if (!drag) return;\n this.drag = null;\n const total = this.__cardsIn(drag.fromColumn).length;\n this.__announceAt(\n 'kanbanCanceled',\n drag.cardId,\n drag.fromColumn,\n drag.fromIndex,\n total,\n );\n }\n\n /** Moves the pending place of a keyboard-lifted card by whole columns or positions. */\n private __moveLifted(columnStep: number, indexStep: number) {\n const { drag } = this;\n if (!drag) return;\n const columnIndex = this.columns.findIndex(\n column => column.id === drag.toColumn,\n );\n const nextColumn =\n this.columns[\n Math.min(Math.max(0, columnIndex + columnStep), this.columns.length - 1)\n ];\n if (!nextColumn) return;\n const others = this.__cardsIn(nextColumn.id, drag.cardId);\n const toIndex = Math.min(\n Math.max(0, drag.toIndex + indexStep),\n others.length,\n );\n if (nextColumn.id === drag.toColumn && toIndex === drag.toIndex) return;\n this.drag = { ...drag, toColumn: nextColumn.id, toIndex };\n this.revealLifted = true;\n this.__announceDrag('kanbanMoved');\n }\n\n /** Moves focus (and the tab stop) to a card. */\n private async __focusCard(cardId: string) {\n this.activeCardId = cardId;\n await this.updateComplete;\n const card = this.__cardElement(cardId);\n if (!card) return;\n card.focus({ preventScroll: true });\n this.__reveal(card);\n }\n\n /** The card focus moves to from `cardId` by `key`, when no card is lifted. */\n private __cardInDirection(cardId: string, key: string): string | undefined {\n const columnIds = this.columns.map(column => column.id);\n const columnIndex = columnIds.findIndex(id =>\n this.__layoutCards(id).some(card => card.id === cardId),\n );\n if (columnIndex < 0) return undefined;\n const cards = this.__layoutCards(columnIds[columnIndex]);\n const index = cards.findIndex(card => card.id === cardId);\n switch (key) {\n case 'ArrowUp':\n return cards[Math.max(0, index - 1)]?.id;\n case 'ArrowDown':\n return cards[Math.min(cards.length - 1, index + 1)]?.id;\n case 'Home':\n return cards[0]?.id;\n case 'End':\n return cards[cards.length - 1]?.id;\n default: {\n // Left or Right, already mirrored: the nearest column with cards in that direction.\n const step = key === 'next' ? 1 : -1;\n for (\n let other = columnIndex + step;\n other >= 0 && other < columnIds.length;\n other += step\n ) {\n const target = this.__layoutCards(columnIds[other]);\n if (target.length) {\n return target[Math.min(index, target.length - 1)].id;\n }\n }\n return undefined;\n }\n }\n }\n\n private readonly __handleKeyDown = (event: KeyboardEvent) => {\n const card = this.__cardOf(event.target);\n // Keys inside a card's own controls belong to them.\n if (!card || event.target !== card) return;\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const cardId = card.dataset.kanbanCard ?? '';\n const rtl = isRtl(this);\n const horizontal = (key: string) =>\n (key === 'ArrowRight') !== rtl ? 'next' : 'previous';\n\n if (this.drag?.mode === 'keyboard') {\n switch (event.key) {\n case 'ArrowUp':\n this.__moveLifted(0, -1);\n break;\n case 'ArrowDown':\n this.__moveLifted(0, 1);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n this.__moveLifted(horizontal(event.key) === 'next' ? 1 : -1, 0);\n break;\n case ' ':\n case 'Enter':\n this.__drop();\n break;\n case 'Escape':\n // Keep an enclosing dialog open.\n event.stopPropagation();\n this.__cancel();\n break;\n case 'Tab':\n this.__cancel();\n return;\n default:\n return;\n }\n event.preventDefault();\n return;\n }\n\n let next: string | undefined;\n switch (event.key) {\n case ' ':\n case 'Enter':\n event.preventDefault();\n if (this.__lift(cardId, 'keyboard')) this.revealLifted = true;\n return;\n case 'ArrowUp':\n case 'ArrowDown':\n case 'Home':\n case 'End':\n next = this.__cardInDirection(cardId, event.key);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n next = this.__cardInDirection(cardId, horizontal(event.key));\n break;\n default:\n return;\n }\n event.preventDefault();\n if (next && next !== cardId) this.__focusCard(next);\n };\n\n private readonly __handleFocusIn = (event: FocusEvent) => {\n const card = this.__cardOf(event.target);\n if (card?.dataset.kanbanCard) this.activeCardId = card.dataset.kanbanCard;\n };\n\n private readonly __handleFocusOut = () => {\n if (this.drag?.mode !== 'keyboard') return;\n // A moved card's slot moves, which can blur it for a moment; `updated()` focuses it again.\n queueMicrotask(() => {\n const { drag } = this;\n if (drag?.mode !== 'keyboard') return;\n const card = this.__cardElement(drag.cardId);\n if (!card || document.activeElement !== card) this.__cancel();\n });\n };\n\n // ── Pointer drag\n\n private readonly __handlePointerDown = (event: PointerEvent) => {\n if (!event.isPrimary || event.button !== 0 || this.press) return;\n const card = this.__cardOf(event.target);\n if (!card || !(event.target instanceof Element)) return;\n const control = event.target.closest(INTERACTIVE);\n if (control && control !== card && card.contains(control)) return;\n if (this.drag) this.__cancel();\n const press: PointerPress = {\n pointerId: event.pointerId,\n pointerType: event.pointerType,\n card,\n cardId: card.dataset.kanbanCard ?? '',\n startX: event.clientX,\n startY: event.clientY,\n x: event.clientX,\n y: event.clientY,\n lifted: false,\n offsetX: 0,\n offsetY: 0,\n };\n this.press = press;\n if (press.pointerType === 'touch') {\n press.holdTimer = setTimeout(() => this.__liftPointer(), TOUCH_HOLD_MS);\n }\n window.addEventListener('pointermove', this.__handlePointerMove);\n window.addEventListener('pointerup', this.__handlePointerUp);\n window.addEventListener('pointercancel', this.__handlePointerCancel);\n window.addEventListener('keydown', this.__handleWindowKeyDown, true);\n };\n\n private readonly __handlePointerMove = (event: PointerEvent) => {\n const { press } = this;\n if (!press || event.pointerId !== press.pointerId) return;\n press.x = event.clientX;\n press.y = event.clientY;\n const distance = Math.hypot(press.x - press.startX, press.y - press.startY);\n if (!press.lifted) {\n if (press.pointerType === 'touch') {\n // Moving before the hold ends is a scroll, not a drag.\n if (distance > TOUCH_SLOP) this.__endPress();\n return;\n }\n if (distance < DRAG_DISTANCE) return;\n this.__liftPointer();\n return;\n }\n event.preventDefault();\n this.__followPointer();\n };\n\n private readonly __handlePointerUp = (event: PointerEvent) => {\n const { press } = this;\n if (!press || event.pointerId !== press.pointerId) return;\n const { lifted } = press;\n this.__endPress();\n if (!lifted) return;\n // The click that follows a drag is not a click on the card.\n const swallow = (click: Event) => {\n click.stopPropagation();\n click.preventDefault();\n };\n window.addEventListener('click', swallow, { capture: true, once: true });\n setTimeout(() => window.removeEventListener('click', swallow, true));\n this.__drop();\n };\n\n private readonly __handlePointerCancel = (event: PointerEvent) => {\n if (!this.press || event.pointerId !== this.press.pointerId) return;\n const { lifted } = this.press;\n this.__endPress();\n if (lifted) this.__cancel();\n };\n\n private readonly __handleWindowKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Escape' || !this.press?.lifted) return;\n event.preventDefault();\n event.stopPropagation();\n this.__endPress();\n this.__cancel();\n };\n\n private readonly __handleTouchMove = (event: TouchEvent) => {\n // Keep the page from scrolling under a lifted card.\n if (this.press?.lifted && event.cancelable) event.preventDefault();\n };\n\n private readonly __handleContextMenu = (event: Event) => {\n if (this.press) event.preventDefault();\n };\n\n /** Turns the press into a drag: the card follows the pointer and a placeholder marks its place. */\n private __liftPointer() {\n const { press } = this;\n if (!press || press.lifted) return;\n if (!this.__lift(press.cardId, 'pointer')) {\n this.__endPress();\n return;\n }\n const rect = press.card.getBoundingClientRect();\n press.lifted = true;\n press.offsetX = press.startX - rect.left;\n press.offsetY = press.startY - rect.top;\n this.placeholderHeight = rect.height;\n const { style } = press.card;\n style.setProperty('position', 'fixed');\n style.setProperty('inline-size', `${rect.width}px`);\n style.setProperty('z-index', '1000');\n style.setProperty('pointer-events', 'none');\n this.__followPointer();\n const tick = () => {\n if (!this.press?.lifted) return;\n this.__autoScroll();\n this.press.frame = requestAnimationFrame(tick);\n };\n press.frame = requestAnimationFrame(tick);\n }\n\n /** Places the lifted card under the pointer and works out where it would land. */\n private __followPointer() {\n const { press, drag } = this;\n if (!press?.lifted || !drag) return;\n press.card.style.setProperty('left', `${press.x - press.offsetX}px`);\n press.card.style.setProperty('top', `${press.y - press.offsetY}px`);\n\n const columns = Array.from(\n this.renderRoot.querySelectorAll<HTMLElement>('.column'),\n );\n let column: HTMLElement | undefined;\n let best = Infinity;\n columns.forEach(candidate => {\n const rect = candidate.getBoundingClientRect();\n const distance = Math.max(0, rect.left - press.x, press.x - rect.right);\n if (distance < best) {\n best = distance;\n column = candidate;\n }\n });\n const columnId = column?.dataset.columnId;\n if (!columnId) return;\n let toIndex = 0;\n this.__cardsIn(columnId, drag.cardId).forEach(card => {\n const rect = this.__cardElement(card.id)?.getBoundingClientRect();\n if (rect && press.y > rect.top + rect.height / 2) toIndex += 1;\n });\n if (columnId !== drag.toColumn || toIndex !== drag.toIndex) {\n this.drag = { ...drag, toColumn: columnId, toIndex };\n }\n }\n\n /** Scrolls the board and the column under the pointer when it nears their edges. */\n private __autoScroll() {\n const { press, drag } = this;\n if (!press || !drag) return;\n const speed = (overshoot: number) =>\n Math.sign(overshoot) * Math.ceil(Math.abs(overshoot) / 4);\n const edge = (position: number, start: number, end: number) => {\n if (position < start + SCROLL_EDGE) {\n return speed(position - (start + SCROLL_EDGE));\n }\n if (position > end - SCROLL_EDGE) {\n return speed(position - (end - SCROLL_EDGE));\n }\n return 0;\n };\n let scrolled = false;\n const board = this.renderRoot.querySelector<HTMLElement>('.board');\n if (board) {\n const rect = board.getBoundingClientRect();\n const left = edge(press.x, rect.left, rect.right);\n if (left) {\n const before = board.scrollLeft;\n board.scrollBy({ left });\n scrolled ||= board.scrollLeft !== before;\n }\n }\n const scroller = Array.from(\n this.renderRoot.querySelectorAll<HTMLElement>('.cards'),\n ).find(element => element.dataset.columnId === drag.toColumn);\n if (scroller) {\n const rect = scroller.getBoundingClientRect();\n const top = edge(press.y, rect.top, rect.bottom);\n if (top) {\n const before = scroller.scrollTop;\n scroller.scrollBy({ top });\n scrolled ||= scroller.scrollTop !== before;\n }\n }\n if (scrolled) this.__followPointer();\n }\n\n /** Ends a press or pointer drag and puts the card back in the flow. */\n private __endPress() {\n const { press } = this;\n if (!press) return;\n this.press = null;\n if (press.holdTimer) clearTimeout(press.holdTimer);\n if (press.frame !== undefined) cancelAnimationFrame(press.frame);\n if (press.lifted) {\n [\n 'position',\n 'inline-size',\n 'z-index',\n 'pointer-events',\n 'left',\n 'top',\n ].forEach(name => press.card.style.removeProperty(name));\n }\n window.removeEventListener('pointermove', this.__handlePointerMove);\n window.removeEventListener('pointerup', this.__handlePointerUp);\n window.removeEventListener('pointercancel', this.__handlePointerCancel);\n window.removeEventListener('keydown', this.__handleWindowKeyDown, true);\n }\n\n private __handleAdd(columnId: string) {\n this.dispatchEvent(\n new CustomEvent<KanbanCardAddDetail>('card-add', {\n bubbles: true,\n composed: true,\n detail: { columnId },\n }),\n );\n }\n\n // ── Render helpers\n\n /** The light-DOM cards, each assigned to its own slot, and the keyboard instructions. */\n private __renderCards() {\n const positions = new Map<string, { index: number; size: number }>();\n this.layouts.forEach(entries => {\n const cards = entries.filter(entry => entry.kind === 'card');\n cards.forEach((entry, index) => {\n if (entry.kind === 'card') {\n positions.set(entry.card.id, { index, size: cards.length });\n }\n });\n });\n const { drag } = this;\n return html`${repeat(\n this.cards.filter(card => positions.has(card.id)),\n card => card.id,\n card => {\n const position = positions.get(card.id);\n return html`<div\n slot=\"card-${card.id}\"\n data-kanban-card=${card.id}\n data-dragging=${drag?.cardId === card.id ? drag.mode : nothing}\n role=\"listitem\"\n tabindex=${card.id === this.activeCardId ? '0' : '-1'}\n aria-describedby=${this.instructionsId}\n aria-setsize=${position?.size ?? nothing}\n aria-posinset=${position ? position.index + 1 : nothing}\n >\n ${this.renderCard ? this.renderCard(card) : card.title}\n </div>`;\n },\n )}\n <div id=${this.instructionsId} hidden>\n ${this.i18n.t('kanbanInstructions')}\n </div>`;\n }\n\n private __renderHeader(column: KanbanColumn, titleId: string, count: number) {\n const { limit } = column;\n const hasLimit = typeof limit === 'number' && limit >= 0;\n const over = hasLimit && count > limit;\n const visible = hasLimit\n ? `${this.__format(count)}/${this.__format(limit)}`\n : this.__format(count);\n return html`<div class=\"header\">\n <span class=\"title\" id=${titleId}>${column.title}</span>\n <span class=\"count\" aria-hidden=\"true\">${visible}</span>\n <span class=\"screen-reader-only\"\n >${this.i18n.t('kanbanCount')(\n count,\n this.__format(count),\n hasLimit ? this.__format(limit) : undefined,\n )}</span\n >\n ${over\n ? html`<span class=\"over-limit\"\n ><wc-icon name=\"warning\"></wc-icon>${this.i18n.t(\n 'kanbanOverLimit',\n )}</span\n >`\n : nothing}\n </div>`;\n }\n\n private __renderColumn(column: KanbanColumn, index: number) {\n const entries = this.layouts.get(column.id) ?? [];\n const count = entries.filter(entry => entry.kind === 'card').length;\n const over =\n typeof column.limit === 'number' &&\n column.limit >= 0 &&\n count > column.limit;\n const titleId = `title-${index}`;\n const target = this.drag?.toColumn === column.id;\n return html`<section\n class=\"column ${over ? 'over' : ''} ${target ? 'target' : ''}\"\n data-column-id=${column.id}\n aria-labelledby=${titleId}\n >\n ${this.__renderHeader(column, titleId, count)}\n <div class=\"cards\" data-column-id=${column.id}>\n <div class=\"list\" role=\"list\" aria-labelledby=${titleId}>\n ${repeat(\n entries,\n entry =>\n entry.kind === 'card' ? `card:${entry.card.id}` : 'placeholder',\n entry =>\n entry.kind === 'card'\n ? html`<slot name=\"card-${entry.card.id}\"></slot>`\n : html`<div\n class=\"placeholder\"\n aria-hidden=\"true\"\n style=\"block-size: ${this.placeholderHeight}px\"\n ></div>`,\n )}\n </div>\n ${entries.length\n ? nothing\n : html`<div class=\"empty\">${this.i18n.t('kanbanEmpty')}</div>`}\n </div>\n ${this.addable\n ? html`<wc-button\n class=\"add\"\n variant=\"text\"\n aria-label=${this.i18n.t('kanbanAddCardTo')(column.title)}\n @click=${() => this.__handleAdd(column.id)}\n ><wc-icon slot=\"icon\" name=\"add\"></wc-icon>${this.i18n.t(\n 'kanbanAddCard',\n )}</wc-button\n >`\n : nothing}\n </section>`;\n }\n\n // ── Render\n\n render() {\n return html`<div\n class=\"board ${this.drag ? 'dragging' : ''}\"\n role=\"group\"\n aria-label=${this.label || this.i18n.t('kanbanLabel')}\n >\n ${this.columns.map((column, index) =>\n this.__renderColumn(column, index),\n )}\n </div>\n <div class=\"screen-reader-only\" role=\"status\" aria-live=\"polite\">\n ${this.announcement}\n </div>`;\n }\n}\n"],"names":["LitElement","render","html","repeat","nothing","styles","property","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EA;AACA,MAAM,WAAW,GACf,6KAA6K;AAE/K;AACA,MAAM,aAAa,GAAG,CAAC;AACvB;AACA,MAAM,aAAa,GAAG,GAAG;AACzB;AACA,MAAM,UAAU,GAAG,CAAC;AACpB;AACA,MAAM,WAAW,GAAG,EAAE;AAEtB,IAAI,iBAAiB,GAAG,CAAC;AAEzB;;;AAGG;AACG,SAAU,eAAe,CAC7B,KAA4B,EAC5B,IAAmE,EAAA;AAEnE,IAAA,MAAM,IAAI,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,KAAK,IAAI,CAAC,MAAM,CAAC;AACxD,IAAA,IAAI,CAAC,IAAI;AAAE,QAAA,OAAO,CAAC,GAAG,KAAK,CAAC;AAC5B,IAAA,MAAM,IAAI,GAAG,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI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2B,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAGzB,UAAA,CAAA;AAA/B,IAAAA,CAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AAAgC,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAGlC,UAAA,CAAA;AAA3B,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE;AAAa,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,OAAA,EAAA,MAAA,CAAA;AAGK,UAAA,CAAA;IAA3CA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE;AAAkB,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAK3C,UAAA,CAAA;AAAhB,IAAAC,CAAK;AAAyC,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAG9B,UAAA,CAAA;AAAhB,IAAAA,CAAK;AAA6B,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAGlB,UAAA,CAAA;AAAhB,IAAAA,CAAK;AAA6B,CAAA,EAAA,MAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AA/BxB,MAAM,GAAA,UAAA,CAAA;IADlB;AACY,CAAA,EAAA,MAAM,CA2yBlB;;;;"}
|
|
1
|
+
{"version":3,"file":"kanban.js","sources":["../../src/kanban/kanban.ts"],"sourcesContent":["import { html, LitElement, nothing, render, type PropertyValues } from 'lit';\nimport { property, state } from 'lit/decorators.js';\nimport { repeat } from 'lit/directives/repeat.js';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport { isRtl } from '@/__internal/i18n/locale.js';\nimport styles from './kanban.scss';\n\n/** A column of the board. */\nexport interface KanbanColumn {\n id: string;\n /** Shown in the column header and read in announcements. */\n title: string;\n /** Work-in-progress limit: the header shows the count against it and flags a column over it. */\n limit?: number;\n}\n\n/** A card of the board. Add any fields of your own; `renderCard` receives the whole object. */\nexport interface KanbanCard {\n id: string;\n /** The `id` of the column the card is in. */\n columnId: string;\n /** Shown by the default card and read in announcements. */\n title: string;\n [key: string]: unknown;\n}\n\n/**\n * Renders the content of one card. Return anything Lit can render: a `TemplateResult`, a DOM node\n * or a string. Declared as a method type so a function typed for your own card type fits.\n */\nexport type KanbanRenderCard = {\n bivarianceHack(card: KanbanCard): unknown;\n}['bivarianceHack'];\n\n/** Detail of the `card-move` event. Indices are 0-based positions within a column. */\nexport interface KanbanCardMoveDetail {\n cardId: string;\n fromColumn: string;\n toColumn: string;\n fromIndex: number;\n /** The card's index in `toColumn` after the move. */\n toIndex: number;\n}\n\n/** Detail of the `card-add` event. */\nexport interface KanbanCardAddDetail {\n columnId: string;\n}\n\n/** The pending move of a lifted card. */\ninterface DragState extends KanbanCardMoveDetail {\n mode: 'keyboard' | 'pointer';\n}\n\n/** One entry of a rendered column: a card's slot, or the drop placeholder of a pointer drag. */\ntype LayoutEntry = { kind: 'card'; card: KanbanCard } | { kind: 'placeholder' };\n\n/** The press on a card that may become a pointer drag. */\ninterface PointerPress {\n pointerId: number;\n pointerType: string;\n card: HTMLElement;\n cardId: string;\n startX: number;\n startY: number;\n x: number;\n y: number;\n lifted: boolean;\n offsetX: number;\n offsetY: number;\n holdTimer?: ReturnType<typeof setTimeout>;\n frame?: number;\n}\n\n/** Elements inside a card that handle their own pointer and keys. */\nconst INTERACTIVE =\n 'a[href], button, input, select, textarea, [contenteditable]:not([contenteditable=\"false\"]), wc-button, wc-icon-button, wc-link, wc-checkbox, wc-switch, wc-select, wc-input';\n\n/** Pixels a mouse or pen moves before a press becomes a drag. */\nconst DRAG_DISTANCE = 5;\n/** Milliseconds a finger holds still on a card before it lifts; moving sooner scrolls. */\nconst TOUCH_HOLD_MS = 250;\n/** Pixels a finger may move during the hold. */\nconst TOUCH_SLOP = 8;\n/** Distance from a scroll container's edge, in pixels, at which a drag scrolls it. */\nconst SCROLL_EDGE = 48;\n\nlet instructionsCount = 0;\n\n/**\n * Moves a card in a `cards` array the way the board does, returning a new array. Use it to apply\n * a `card-move` you canceled, for example once the server has accepted it.\n */\nexport function applyKanbanMove(\n cards: readonly KanbanCard[],\n move: Pick<KanbanCardMoveDetail, 'cardId' | 'toColumn' | 'toIndex'>,\n): KanbanCard[] {\n const card = cards.find(item => item.id === move.cardId);\n if (!card) return [...cards];\n const rest = cards.filter(item => item !== card);\n const moved: KanbanCard = { ...card, columnId: move.toColumn };\n const target = rest.filter(item => item.columnId === move.toColumn);\n const index = Math.min(Math.max(0, move.toIndex), target.length);\n let at: number;\n if (index < target.length) at = rest.indexOf(target[index]);\n else if (target.length) at = rest.indexOf(target[target.length - 1]) + 1;\n else at = rest.length;\n rest.splice(at, 0, moved);\n return rest;\n}\n\nfunction prefersReducedMotion(): boolean {\n return (\n typeof window !== 'undefined' &&\n !!window.matchMedia?.('(prefers-reduced-motion: reduce)').matches\n );\n}\n\n/**\n * @label Kanban\n * @tag wc-kanban\n * @rawTag kanban\n *\n * @summary A board of columns whose cards the person moves by drag and drop or with the keyboard.\n * @overview\n * <p>The board is data-driven: <code>columns</code> (<code>{id, title, limit?}</code>) and\n * <code>cards</code> (<code>{id, columnId, title, ...}</code>), where the order of\n * <code>cards</code> is the order within each column. <code>renderCard</code> renders a card's\n * content; without it a card shows its <code>title</code>. Cards are rendered into the light DOM,\n * so page styles reach the content, and each sits in a wrapper with <code>role=\"listitem\"</code>\n * inside its column's <code>role=\"list\"</code>, named by the column title.</p>\n * <p>Moving a card fires the cancelable <code>card-move</code> event with\n * <code>{cardId, fromColumn, toColumn, fromIndex, toIndex}</code>. Unless it is canceled, the\n * board applies the move itself and replaces <code>cards</code> with a new array. To confirm a\n * move with a server first, cancel the event and apply it later with\n * <code>applyKanbanMove()</code>.</p>\n * <p>With a pointer, drag a card (on touch, hold it briefly first, so a swipe still scrolls). A\n * placeholder shows where it will land, and the board and columns scroll when the card nears\n * their edges. Escape cancels.</p>\n * <p>Cards are one tab stop. The arrow keys move focus between cards (Left and Right between\n * columns, mirrored in right-to-left), Home and End to the first and last card of the column.\n * Space or Enter picks the focused card up; the arrow keys then move it, Space or Enter drops it\n * and Escape or Tab cancels. Each step is announced in a live region.</p>\n * <p>A column with a <code>limit</code> shows its count against it and is flagged when it holds\n * more cards. <code>addable</code> adds an \"Add card\" button to every column, which fires\n * <code>card-add</code>.</p>\n *\n * @fires {CustomEvent<{cardId: string, fromColumn: string, toColumn: string, fromIndex: number, toIndex: number}>} card-move - Dispatched when the person drops a card in a new place. Cancelable: cancel it to keep the cards as they are.\n * @fires {CustomEvent<{columnId: string}>} card-add - Dispatched when the person presses a column's \"Add card\" button.\n *\n * @cssprop --kanban-column-inline-size - The width of a column. Defaults to `18rem`.\n * @cssprop --kanban-column-container-color - The background of a column.\n * @cssprop --kanban-card-container-color - The background of a card.\n * @cssprop --kanban-card-padding - The padding of a card. Defaults to `var(--spacing-150)`.\n *\n * @example\n * ```html\n * <wc-kanban id=\"board\" label=\"Sprint\" style=\"height: 28rem\" addable></wc-kanban>\n * <script>\n * const board = document.getElementById('board');\n * board.columns = [\n * { id: 'todo', title: 'To do' },\n * { id: 'doing', title: 'In progress', limit: 2 },\n * { id: 'done', title: 'Done' },\n * ];\n * board.cards = [\n * { id: '1', columnId: 'todo', title: 'Fix login' },\n * { id: '2', columnId: 'doing', title: 'Write docs' },\n * ];\n * board.addEventListener('card-move', event => console.log(event.detail));\n * </script>\n * ```\n * @tags display\n */\n@IndividualComponent\nexport class Kanban extends LitElement {\n // ── Static\n\n static styles = [styles];\n\n // ── Properties\n\n /** The columns, in order. */\n @property({ attribute: false }) columns: KanbanColumn[] = [];\n\n /** The cards. Their order is the order within each column; cards of unknown columns are not shown. */\n @property({ attribute: false }) cards: KanbanCard[] = [];\n\n /** Renders a card's content. Without it, a card shows its `title`. */\n @property({ attribute: false }) renderCard?: KanbanRenderCard;\n\n /** The accessible name of the board. Defaults to \"Board\". */\n @property({ type: String }) label = '';\n\n /** Adds an \"Add card\" button to every column, which fires `card-add`. */\n @property({ type: Boolean, reflect: true }) addable = false;\n\n // ── State\n\n /** The card being moved, with where it would land. */\n @state() private drag: DragState | null = null;\n\n /** The id of the card that holds the tab stop. */\n @state() private activeCardId = '';\n\n /** The live region's text. */\n @state() private announcement = '';\n\n // ── Private fields\n\n /** Each column's entries, worked out before every render. */\n private layouts = new Map<string, LayoutEntry[]>();\n\n /** The press or pointer drag in progress. */\n private press: PointerPress | null = null;\n\n /** Height of the dragged card, for the placeholder. */\n private placeholderHeight = 0;\n\n /** Whether to focus and reveal the lifted card after the next update. */\n private revealLifted = false;\n\n private readonly instructionsId = `wc-kanban-instructions-${(instructionsCount += 1)}`;\n\n private readonly i18n = new I18nController(this);\n\n // ── Lifecycle\n\n override connectedCallback() {\n super.connectedCallback();\n this.addEventListener('keydown', this.__handleKeyDown);\n this.addEventListener('focusin', this.__handleFocusIn);\n this.addEventListener('focusout', this.__handleFocusOut);\n this.addEventListener('pointerdown', this.__handlePointerDown);\n this.addEventListener('touchmove', this.__handleTouchMove, {\n passive: false,\n });\n this.addEventListener('contextmenu', this.__handleContextMenu);\n }\n\n override disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('keydown', this.__handleKeyDown);\n this.removeEventListener('focusin', this.__handleFocusIn);\n this.removeEventListener('focusout', this.__handleFocusOut);\n this.removeEventListener('pointerdown', this.__handlePointerDown);\n this.removeEventListener('touchmove', this.__handleTouchMove);\n this.removeEventListener('contextmenu', this.__handleContextMenu);\n this.__endPress();\n this.drag = null;\n }\n\n protected override willUpdate(changed: PropertyValues<this>) {\n super.willUpdate(changed);\n this.layouts = this.__computeLayouts();\n const shown = this.__shownCards();\n if (!shown.some(card => card.id === this.activeCardId)) {\n this.activeCardId = shown[0]?.id ?? '';\n }\n }\n\n /** Renders the shadow DOM (columns and slots), then the cards into the light DOM. */\n protected override update(changed: PropertyValues<this>) {\n super.update(changed);\n render(this.__renderCards(), this);\n }\n\n protected override updated(changed: PropertyValues<this>) {\n super.updated(changed);\n if (this.revealLifted && this.drag) {\n this.revealLifted = false;\n const card = this.__cardElement(this.drag.cardId);\n if (card) {\n if (!card.matches(':focus')) card.focus({ preventScroll: true });\n this.__reveal(card);\n }\n }\n }\n\n // ── Private methods\n\n /** The cards of `columnId` in order, optionally without one card. */\n private __cardsIn(columnId: string, without?: string): KanbanCard[] {\n return this.cards.filter(\n card => card.columnId === columnId && card.id !== without,\n );\n }\n\n private __computeLayouts(): Map<string, LayoutEntry[]> {\n const layouts = new Map<string, LayoutEntry[]>();\n const { drag } = this;\n const dragged = drag\n ? this.cards.find(card => card.id === drag.cardId)\n : undefined;\n this.columns.forEach(column => {\n const entries: LayoutEntry[] = this.__cardsIn(column.id, dragged?.id).map(\n card => ({ kind: 'card', card }),\n );\n if (drag && dragged && drag.toColumn === column.id) {\n const at = Math.min(drag.toIndex, entries.length);\n const inserted: LayoutEntry[] = [{ kind: 'card', card: dragged }];\n if (drag.mode === 'pointer') inserted.push({ kind: 'placeholder' });\n entries.splice(at, 0, ...inserted);\n }\n layouts.set(column.id, entries);\n });\n return layouts;\n }\n\n /** The rendered cards in column order (the order focus moves through). */\n private __shownCards(): KanbanCard[] {\n const shown: KanbanCard[] = [];\n this.layouts.forEach(entries =>\n entries.forEach(entry => {\n if (entry.kind === 'card') shown.push(entry.card);\n }),\n );\n return shown;\n }\n\n /** The cards of a rendered column. */\n private __layoutCards(columnId: string): KanbanCard[] {\n const cards: KanbanCard[] = [];\n this.layouts.get(columnId)?.forEach(entry => {\n if (entry.kind === 'card') cards.push(entry.card);\n });\n return cards;\n }\n\n /** Where a card is in the committed `cards`. */\n private __positionOf(\n cardId: string,\n ): { columnId: string; index: number } | null {\n const card = this.cards.find(item => item.id === cardId);\n if (!card || !this.columns.some(column => column.id === card.columnId)) {\n return null;\n }\n return {\n columnId: card.columnId,\n index: this.__cardsIn(card.columnId).indexOf(card),\n };\n }\n\n private __cardElement(cardId: string): HTMLElement | null {\n return (\n Array.from(this.children).find(\n (child): child is HTMLElement =>\n child instanceof HTMLElement && child.dataset.kanbanCard === cardId,\n ) ?? null\n );\n }\n\n /** The card wrapper that contains `node`, if any. */\n private __cardOf(node: EventTarget | null): HTMLElement | null {\n if (!(node instanceof Element)) return null;\n const card = node.closest<HTMLElement>('[data-kanban-card]');\n return card && card.parentElement === this ? card : null;\n }\n\n private __format(value: number): string {\n return new Intl.NumberFormat(this.i18n.locale).format(value);\n }\n\n private __columnTitle(columnId: string): string {\n return this.columns.find(column => column.id === columnId)?.title ?? '';\n }\n\n private __cardTitle(cardId: string): string {\n return this.cards.find(card => card.id === cardId)?.title ?? '';\n }\n\n /** Announces a step of a move, with the card's position in `columnId`. */\n private __announceAt(\n key: 'kanbanPickedUp' | 'kanbanMoved' | 'kanbanDropped' | 'kanbanCanceled',\n cardId: string,\n columnId: string,\n index: number,\n total: number,\n ) {\n this.__announce(\n this.i18n.t(key)(\n this.__cardTitle(cardId),\n this.__columnTitle(columnId),\n this.__format(index + 1),\n this.__format(total),\n ),\n );\n }\n\n /** Announces the lifted card at its pending place. */\n private __announceDrag(\n key: 'kanbanPickedUp' | 'kanbanMoved' | 'kanbanDropped',\n ) {\n const { drag } = this;\n if (!drag) return;\n const total = this.__cardsIn(drag.toColumn, drag.cardId).length + 1;\n this.__announceAt(key, drag.cardId, drag.toColumn, drag.toIndex, total);\n }\n\n private __announce(message: string) {\n // Clear first, so the same message twice in a row is read again.\n this.announcement = '';\n setTimeout(() => {\n this.announcement = message;\n });\n }\n\n /** Scrolls a card into view within its column and the board. */\n private __reveal(card: HTMLElement) {\n card.scrollIntoView?.({\n block: 'nearest',\n inline: 'nearest',\n behavior: prefersReducedMotion() ? 'auto' : 'smooth',\n });\n }\n\n /** Lifts a card for a move. */\n private __lift(cardId: string, mode: DragState['mode']) {\n const position = this.__positionOf(cardId);\n if (!position) return false;\n this.drag = {\n mode,\n cardId,\n fromColumn: position.columnId,\n fromIndex: position.index,\n toColumn: position.columnId,\n toIndex: position.index,\n };\n this.__announceDrag('kanbanPickedUp');\n return true;\n }\n\n /** Drops the lifted card where it is: fires `card-move` and applies it unless canceled. */\n private __drop() {\n const { drag } = this;\n if (!drag) return;\n this.drag = null;\n const { cardId, fromColumn, toColumn, fromIndex, toIndex } = drag;\n if (fromColumn === toColumn && fromIndex === toIndex) {\n const total = this.__cardsIn(toColumn).length;\n this.__announceAt('kanbanDropped', cardId, toColumn, toIndex, total);\n return;\n }\n const detail: KanbanCardMoveDetail = {\n cardId,\n fromColumn,\n toColumn,\n fromIndex,\n toIndex,\n };\n const event = new CustomEvent<KanbanCardMoveDetail>('card-move', {\n bubbles: true,\n composed: true,\n cancelable: true,\n detail,\n });\n if (!this.dispatchEvent(event)) {\n const total = this.__cardsIn(fromColumn).length;\n this.__announceAt('kanbanCanceled', cardId, fromColumn, fromIndex, total);\n return;\n }\n this.cards = applyKanbanMove(this.cards, detail);\n const total = this.__cardsIn(toColumn).length;\n this.__announceAt('kanbanDropped', cardId, toColumn, toIndex, total);\n }\n\n /** Puts the lifted card back where it was. */\n private __cancel() {\n const { drag } = this;\n if (!drag) return;\n this.drag = null;\n const total = this.__cardsIn(drag.fromColumn).length;\n this.__announceAt(\n 'kanbanCanceled',\n drag.cardId,\n drag.fromColumn,\n drag.fromIndex,\n total,\n );\n }\n\n /** Moves the pending place of a keyboard-lifted card by whole columns or positions. */\n private __moveLifted(columnStep: number, indexStep: number) {\n const { drag } = this;\n if (!drag) return;\n const columnIndex = this.columns.findIndex(\n column => column.id === drag.toColumn,\n );\n const nextColumn =\n this.columns[\n Math.min(Math.max(0, columnIndex + columnStep), this.columns.length - 1)\n ];\n if (!nextColumn) return;\n const others = this.__cardsIn(nextColumn.id, drag.cardId);\n const toIndex = Math.min(\n Math.max(0, drag.toIndex + indexStep),\n others.length,\n );\n if (nextColumn.id === drag.toColumn && toIndex === drag.toIndex) return;\n this.drag = { ...drag, toColumn: nextColumn.id, toIndex };\n this.revealLifted = true;\n this.__announceDrag('kanbanMoved');\n }\n\n /** Moves focus (and the tab stop) to a card. */\n private async __focusCard(cardId: string) {\n this.activeCardId = cardId;\n await this.updateComplete;\n const card = this.__cardElement(cardId);\n if (!card) return;\n card.focus({ preventScroll: true });\n this.__reveal(card);\n }\n\n /** The card focus moves to from `cardId` by `key`, when no card is lifted. */\n private __cardInDirection(cardId: string, key: string): string | undefined {\n const columnIds = this.columns.map(column => column.id);\n const columnIndex = columnIds.findIndex(id =>\n this.__layoutCards(id).some(card => card.id === cardId),\n );\n if (columnIndex < 0) return undefined;\n const cards = this.__layoutCards(columnIds[columnIndex]);\n const index = cards.findIndex(card => card.id === cardId);\n switch (key) {\n case 'ArrowUp':\n return cards[Math.max(0, index - 1)]?.id;\n case 'ArrowDown':\n return cards[Math.min(cards.length - 1, index + 1)]?.id;\n case 'Home':\n return cards[0]?.id;\n case 'End':\n return cards[cards.length - 1]?.id;\n default: {\n // Left or Right, already mirrored: the nearest column with cards in that direction.\n const step = key === 'next' ? 1 : -1;\n for (\n let other = columnIndex + step;\n other >= 0 && other < columnIds.length;\n other += step\n ) {\n const target = this.__layoutCards(columnIds[other]);\n if (target.length) {\n return target[Math.min(index, target.length - 1)].id;\n }\n }\n return undefined;\n }\n }\n }\n\n private readonly __handleKeyDown = (event: KeyboardEvent) => {\n const card = this.__cardOf(event.target);\n // Keys inside a card's own controls belong to them.\n if (!card || event.target !== card) return;\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const cardId = card.dataset.kanbanCard ?? '';\n const rtl = isRtl(this);\n const horizontal = (key: string) =>\n (key === 'ArrowRight') !== rtl ? 'next' : 'previous';\n\n if (this.drag?.mode === 'keyboard') {\n switch (event.key) {\n case 'ArrowUp':\n this.__moveLifted(0, -1);\n break;\n case 'ArrowDown':\n this.__moveLifted(0, 1);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n this.__moveLifted(horizontal(event.key) === 'next' ? 1 : -1, 0);\n break;\n case ' ':\n case 'Enter':\n this.__drop();\n break;\n case 'Escape':\n // Keep an enclosing dialog open.\n event.stopPropagation();\n this.__cancel();\n break;\n case 'Tab':\n this.__cancel();\n return;\n default:\n return;\n }\n event.preventDefault();\n return;\n }\n\n let next: string | undefined;\n switch (event.key) {\n case ' ':\n case 'Enter':\n event.preventDefault();\n if (this.__lift(cardId, 'keyboard')) this.revealLifted = true;\n return;\n case 'ArrowUp':\n case 'ArrowDown':\n case 'Home':\n case 'End':\n next = this.__cardInDirection(cardId, event.key);\n break;\n case 'ArrowLeft':\n case 'ArrowRight':\n next = this.__cardInDirection(cardId, horizontal(event.key));\n break;\n default:\n return;\n }\n event.preventDefault();\n if (next && next !== cardId) this.__focusCard(next);\n };\n\n private readonly __handleFocusIn = (event: FocusEvent) => {\n const card = this.__cardOf(event.target);\n if (card?.dataset.kanbanCard) this.activeCardId = card.dataset.kanbanCard;\n };\n\n private readonly __handleFocusOut = () => {\n if (this.drag?.mode !== 'keyboard') return;\n // A moved card's slot moves, which can blur it for a moment; `updated()` focuses it again.\n queueMicrotask(() => {\n const { drag } = this;\n if (drag?.mode !== 'keyboard') return;\n const card = this.__cardElement(drag.cardId);\n if (!card || document.activeElement !== card) this.__cancel();\n });\n };\n\n // ── Pointer drag\n\n private readonly __handlePointerDown = (event: PointerEvent) => {\n if (!event.isPrimary || event.button !== 0 || this.press) return;\n const card = this.__cardOf(event.target);\n if (!card || !(event.target instanceof Element)) return;\n const control = event.target.closest(INTERACTIVE);\n if (control && control !== card && card.contains(control)) return;\n if (this.drag) this.__cancel();\n const press: PointerPress = {\n pointerId: event.pointerId,\n pointerType: event.pointerType,\n card,\n cardId: card.dataset.kanbanCard ?? '',\n startX: event.clientX,\n startY: event.clientY,\n x: event.clientX,\n y: event.clientY,\n lifted: false,\n offsetX: 0,\n offsetY: 0,\n };\n this.press = press;\n if (press.pointerType === 'touch') {\n press.holdTimer = setTimeout(() => this.__liftPointer(), TOUCH_HOLD_MS);\n }\n window.addEventListener('pointermove', this.__handlePointerMove);\n window.addEventListener('pointerup', this.__handlePointerUp);\n window.addEventListener('pointercancel', this.__handlePointerCancel);\n window.addEventListener('keydown', this.__handleWindowKeyDown, true);\n };\n\n private readonly __handlePointerMove = (event: PointerEvent) => {\n const { press } = this;\n if (!press || event.pointerId !== press.pointerId) return;\n press.x = event.clientX;\n press.y = event.clientY;\n const distance = Math.hypot(press.x - press.startX, press.y - press.startY);\n if (!press.lifted) {\n if (press.pointerType === 'touch') {\n // Moving before the hold ends is a scroll, not a drag.\n if (distance > TOUCH_SLOP) this.__endPress();\n return;\n }\n if (distance < DRAG_DISTANCE) return;\n this.__liftPointer();\n return;\n }\n event.preventDefault();\n this.__followPointer();\n };\n\n private readonly __handlePointerUp = (event: PointerEvent) => {\n const { press } = this;\n if (!press || event.pointerId !== press.pointerId) return;\n const { lifted } = press;\n this.__endPress();\n if (!lifted) return;\n // The click that follows a drag is not a click on the card.\n const swallow = (click: Event) => {\n click.stopPropagation();\n click.preventDefault();\n };\n window.addEventListener('click', swallow, { capture: true, once: true });\n setTimeout(() => window.removeEventListener('click', swallow, true));\n this.__drop();\n };\n\n private readonly __handlePointerCancel = (event: PointerEvent) => {\n if (!this.press || event.pointerId !== this.press.pointerId) return;\n const { lifted } = this.press;\n this.__endPress();\n if (lifted) this.__cancel();\n };\n\n private readonly __handleWindowKeyDown = (event: KeyboardEvent) => {\n if (event.key !== 'Escape' || !this.press?.lifted) return;\n event.preventDefault();\n event.stopPropagation();\n this.__endPress();\n this.__cancel();\n };\n\n private readonly __handleTouchMove = (event: TouchEvent) => {\n // Keep the page from scrolling under a lifted card.\n if (this.press?.lifted && event.cancelable) event.preventDefault();\n };\n\n private readonly __handleContextMenu = (event: Event) => {\n if (this.press) event.preventDefault();\n };\n\n /** Turns the press into a drag: the card follows the pointer and a placeholder marks its place. */\n private __liftPointer() {\n const { press } = this;\n if (!press || press.lifted) return;\n if (!this.__lift(press.cardId, 'pointer')) {\n this.__endPress();\n return;\n }\n const rect = press.card.getBoundingClientRect();\n press.lifted = true;\n press.offsetX = press.startX - rect.left;\n press.offsetY = press.startY - rect.top;\n this.placeholderHeight = rect.height;\n const { style } = press.card;\n style.setProperty('position', 'fixed');\n style.setProperty('inline-size', `${rect.width}px`);\n style.setProperty('z-index', '1000');\n style.setProperty('pointer-events', 'none');\n this.__followPointer();\n const tick = () => {\n if (!this.press?.lifted) return;\n this.__autoScroll();\n this.press.frame = requestAnimationFrame(tick);\n };\n press.frame = requestAnimationFrame(tick);\n }\n\n /** Places the lifted card under the pointer and works out where it would land. */\n private __followPointer() {\n const { press, drag } = this;\n if (!press?.lifted || !drag) return;\n press.card.style.setProperty('left', `${press.x - press.offsetX}px`);\n press.card.style.setProperty('top', `${press.y - press.offsetY}px`);\n\n const columns = Array.from(\n this.renderRoot.querySelectorAll<HTMLElement>('.column'),\n );\n let column: HTMLElement | undefined;\n let best = Infinity;\n columns.forEach(candidate => {\n const rect = candidate.getBoundingClientRect();\n const distance = Math.max(0, rect.left - press.x, press.x - rect.right);\n if (distance < best) {\n best = distance;\n column = candidate;\n }\n });\n const columnId = column?.dataset.columnId;\n if (!columnId) return;\n let toIndex = 0;\n this.__cardsIn(columnId, drag.cardId).forEach(card => {\n const rect = this.__cardElement(card.id)?.getBoundingClientRect();\n if (rect && press.y > rect.top + rect.height / 2) toIndex += 1;\n });\n if (columnId !== drag.toColumn || toIndex !== drag.toIndex) {\n this.drag = { ...drag, toColumn: columnId, toIndex };\n }\n }\n\n /** Scrolls the board and the column under the pointer when it nears their edges. */\n private __autoScroll() {\n const { press, drag } = this;\n if (!press || !drag) return;\n const speed = (overshoot: number) =>\n Math.sign(overshoot) * Math.ceil(Math.abs(overshoot) / 4);\n const edge = (position: number, start: number, end: number) => {\n if (position < start + SCROLL_EDGE) {\n return speed(position - (start + SCROLL_EDGE));\n }\n if (position > end - SCROLL_EDGE) {\n return speed(position - (end - SCROLL_EDGE));\n }\n return 0;\n };\n let scrolled = false;\n const board = this.renderRoot.querySelector<HTMLElement>('.board');\n if (board) {\n const rect = board.getBoundingClientRect();\n const left = edge(press.x, rect.left, rect.right);\n if (left) {\n const before = board.scrollLeft;\n board.scrollBy({ left });\n scrolled ||= board.scrollLeft !== before;\n }\n }\n const scroller = Array.from(\n this.renderRoot.querySelectorAll<HTMLElement>('.cards'),\n ).find(element => element.dataset.columnId === drag.toColumn);\n if (scroller) {\n const rect = scroller.getBoundingClientRect();\n const top = edge(press.y, rect.top, rect.bottom);\n if (top) {\n const before = scroller.scrollTop;\n scroller.scrollBy({ top });\n scrolled ||= scroller.scrollTop !== before;\n }\n }\n if (scrolled) this.__followPointer();\n }\n\n /** Ends a press or pointer drag and puts the card back in the flow. */\n private __endPress() {\n const { press } = this;\n if (!press) return;\n this.press = null;\n if (press.holdTimer) clearTimeout(press.holdTimer);\n if (press.frame !== undefined) cancelAnimationFrame(press.frame);\n if (press.lifted) {\n [\n 'position',\n 'inline-size',\n 'z-index',\n 'pointer-events',\n 'left',\n 'top',\n ].forEach(name => press.card.style.removeProperty(name));\n }\n window.removeEventListener('pointermove', this.__handlePointerMove);\n window.removeEventListener('pointerup', this.__handlePointerUp);\n window.removeEventListener('pointercancel', this.__handlePointerCancel);\n window.removeEventListener('keydown', this.__handleWindowKeyDown, true);\n }\n\n private __handleAdd(columnId: string) {\n this.dispatchEvent(\n new CustomEvent<KanbanCardAddDetail>('card-add', {\n bubbles: true,\n composed: true,\n detail: { columnId },\n }),\n );\n }\n\n // ── Render helpers\n\n /** The light-DOM cards, each assigned to its own slot, and the keyboard instructions. */\n private __renderCards() {\n const positions = new Map<string, { index: number; size: number }>();\n this.layouts.forEach(entries => {\n const cards = entries.filter(entry => entry.kind === 'card');\n cards.forEach((entry, index) => {\n if (entry.kind === 'card') {\n positions.set(entry.card.id, { index, size: cards.length });\n }\n });\n });\n const { drag } = this;\n return html`${repeat(\n this.cards.filter(card => positions.has(card.id)),\n card => card.id,\n card => {\n const position = positions.get(card.id);\n return html`<div\n slot=\"card-${card.id}\"\n data-kanban-card=${card.id}\n data-dragging=${drag?.cardId === card.id ? drag.mode : nothing}\n role=\"listitem\"\n tabindex=${card.id === this.activeCardId ? '0' : '-1'}\n aria-describedby=${this.instructionsId}\n aria-setsize=${position?.size ?? nothing}\n aria-posinset=${position ? position.index + 1 : nothing}\n >\n ${this.renderCard ? this.renderCard(card) : card.title}\n </div>`;\n },\n )}\n <div id=${this.instructionsId} hidden>\n ${this.i18n.t('kanbanInstructions')}\n </div>`;\n }\n\n private __renderHeader(column: KanbanColumn, titleId: string, count: number) {\n const { limit } = column;\n const hasLimit = typeof limit === 'number' && limit >= 0;\n const over = hasLimit && count > limit;\n const visible = hasLimit\n ? `${this.__format(count)}/${this.__format(limit)}`\n : this.__format(count);\n return html`<div class=\"header\">\n <span class=\"title\" id=${titleId}>${column.title}</span>\n <span class=\"count\" aria-hidden=\"true\">${visible}</span>\n <span class=\"screen-reader-only\"\n >${this.i18n.t('kanbanCount')(\n count,\n this.__format(count),\n hasLimit ? this.__format(limit) : undefined,\n )}</span\n >\n ${over\n ? html`<span class=\"over-limit\"\n ><wc-icon name=\"warning\"></wc-icon>${this.i18n.t(\n 'kanbanOverLimit',\n )}</span\n >`\n : nothing}\n </div>`;\n }\n\n private __renderColumn(column: KanbanColumn, index: number) {\n const entries = this.layouts.get(column.id) ?? [];\n const count = entries.filter(entry => entry.kind === 'card').length;\n const over =\n typeof column.limit === 'number' &&\n column.limit >= 0 &&\n count > column.limit;\n const titleId = `title-${index}`;\n const target = this.drag?.toColumn === column.id;\n return html`<section\n class=\"column ${over ? 'over' : ''} ${target ? 'target' : ''}\"\n data-column-id=${column.id}\n aria-labelledby=${titleId}\n >\n ${this.__renderHeader(column, titleId, count)}\n <div class=\"cards\" data-column-id=${column.id}>\n <div class=\"list\" role=\"list\" aria-labelledby=${titleId}>\n ${repeat(\n entries,\n entry =>\n entry.kind === 'card' ? `card:${entry.card.id}` : 'placeholder',\n entry =>\n entry.kind === 'card'\n ? html`<slot name=\"card-${entry.card.id}\"></slot>`\n : html`<div\n class=\"placeholder\"\n aria-hidden=\"true\"\n style=\"block-size: ${this.placeholderHeight}px\"\n ></div>`,\n )}\n </div>\n ${entries.length\n ? nothing\n : html`<div class=\"empty\">${this.i18n.t('kanbanEmpty')}</div>`}\n </div>\n ${this.addable\n ? html`<wc-button\n class=\"add\"\n variant=\"text\"\n aria-label=${this.i18n.t('kanbanAddCardTo')(column.title)}\n @click=${() => this.__handleAdd(column.id)}\n ><wc-icon slot=\"icon\" name=\"add\"></wc-icon>${this.i18n.t(\n 'kanbanAddCard',\n )}</wc-button\n >`\n : nothing}\n </section>`;\n }\n\n // ── Render\n\n render() {\n return html`<div\n class=\"board ${this.drag ? 'dragging' : ''}\"\n role=\"group\"\n aria-label=${this.label || this.i18n.t('kanbanLabel')}\n >\n ${this.columns.map((column, index) =>\n this.__renderColumn(column, index),\n )}\n </div>\n <div class=\"screen-reader-only\" role=\"status\" aria-live=\"polite\">\n ${this.announcement}\n </div>`;\n }\n}\n"],"names":["LitElement","render","html","repeat","nothing","styles","property","state"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2EA;AACA,MAAM,WAAW,GACf,6KAA6K;AAE/K;AACA,MAAM,aAAa,GAAG,CAAC;AACvB;AACA,MAAM,aAAa,GAAG,GAAG;AACzB;AACA,MAAM,UAAU,GAAG,CAAC;AACpB;AACA,MAAM,WAAW,GAAG,EAAE;AAEtB,IAAI,iBAAiB,GAAG,CAAC;AAEzB;;;AAGG;AACG,SAAU,eAAe,CAC7B,KAA4B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