@xleddyl/443-components-vue 0.16.81 → 0.16.82
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/CATALOG.md +15 -15
- package/README.md +1 -1
- package/dist/components/overlays/ConfirmDialog.vue.d.ts +2 -0
- package/dist/components/overlays/ConfirmHost.vue.d.ts +2 -0
- package/dist/components/overlays/Modal.vue +4 -2
- package/dist/components/overlays/Modal.vue.d.ts +2 -0
- package/dist/components/templates/FormModal.vue.d.ts +1 -0
- package/dist/components/templates/SettingsModal.vue.d.ts +2 -0
- package/dist/internal/overlays/OverlayView.vue.d.ts +2 -0
- package/dist/styles/overlays/modal.css +4 -0
- package/dist/styles/templates/settings-modal.css +1 -1
- package/package.json +1 -1
package/CATALOG.md
CHANGED
|
@@ -194,21 +194,21 @@ All field components work inside `FormField` and take `invalid`, `disabled`, `re
|
|
|
194
194
|
|
|
195
195
|
Mount `OverlayHost` once for the imperative hooks (see [Composables](#composables)).
|
|
196
196
|
|
|
197
|
-
| Component | Purpose and when to use it | Main props, models, slots, events
|
|
198
|
-
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
199
|
-
| `Modal` | Centered dialog for forms and content. Use `Drawer` for a side panel, `useConfirm` for a yes or no question. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `size` (sm to xl, full, fit, fullscreen), `width`, `minHeight`, `dismissible`, `hideClose`, `sheet`, `flush`, `fill`, `loading`, `beforeClose(reason)`, `tabs` (tabs in the header), `trail` (breadcrumb title and back button; a long trail stays on one line, the middle crumbs collapse into a "..." menu and the current title truncates), `backLabel`, `guard` (default `true`: closing, or a trail navigation, with a dirty `Form` inside asks to discard first; `beforeClose` runs after), `guardTitle`, `guardMessage`. Slots: default (`{ tab }`), `header`, `actions` (header, before the close button), `footer`, `title-trailing`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`. | `overlays/modal.vue` |
|
|
200
|
-
| `Drawer` | Panel from the side or bottom for details and edit forms. Use `Modal` for short focused dialogs. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `side` (left, right, bottom), `size` (sm to xl, full), `dismissible`, `hideClose`, `flush`, `fill` (the body content takes the full height, for a table or a grid), `loading`, `beforeClose(reason)`, `tabs`, `trail`, `backLabel`, `guard`, `guardTitle`, `guardMessage` (as `Modal`). Slots like `Modal`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`.
|
|
201
|
-
| `ConfirmDialog` | Declarative confirm dialog. Prefer `useConfirm()`. Use this one only when the dialog state lives in the template. | Model: `v-model:open`. Props: `title`, `description`, `confirmLabel`, `cancelLabel`, `tone`, `icon`, `hideCancel`, `onConfirm`. Events: `resolve(confirmed)`, `cancel`, `afterLeave`.
|
|
202
|
-
| `ConfirmHost` | Renders the dialogs of `useConfirm`, `useAlert`, `usePrompt`. `OverlayHost` includes it. Do not mount it alone. | None.
|
|
203
|
-
| `OverlayHost` | One mount point for toasts, confirm dialogs, programmatic modals and loading indicators. | Props: `toaster` (true or options), `confirm`, `modals`, `loading` (true or `{ bar, delay, label }`).
|
|
204
|
-
| `Toaster` | Renders toasts. `OverlayHost` includes it. Use it directly only for custom options. The stack moves out of the way of an open side Drawer (beside it, or above its footer). | Props: `position`, `max`, `duration`, `gap`, `expand`, `progress`, `hotkey`.
|
|
205
|
-
| `DropdownMenu` | Menu opened by its trigger. Items can have icons, shortcuts, checkboxes, radios, sub menus and links. | Model: `v-model:open`. Props: `items` (`label`, `icon`, `color` (palette name or hex dot, or `muted` for a grey dot of an empty state), `to`, `href`, `tone: danger`, `shortcut`, `disabled`, `disabledReason` (with `disabled`: a tooltip on hover and keyboard focus, linked with `aria-describedby`; the item stays reachable but not selectable), `children`, `onSelect`; also `type`: checkbox, radio, label, separator), `placement`, `offset`, `matchTriggerWidth`, `minWidth`. Slot: default (the trigger). Event: `select`.
|
|
206
|
-
| `ContextMenu` | Menu on right click of the wrapped area. | Model: `v-model:open`. Props: `items` (same as `DropdownMenu`), `disabled`. Slot: default (the area). Event: `select`.
|
|
207
|
-
| `Popover` | Floating panel with any content (a form, filters) opened by its trigger. Use `DropdownMenu` for a list of actions. | Model: `v-model:open`. Props: `placement`, `offset`, `arrow`, `label`, `initialFocus`. Slots: default (the trigger), `content`.
|
|
208
|
-
| `HoverCard` | Rich preview on hover or focus (user card, link preview). Use `Tooltip` for plain text. | Model: `v-model:open`. Props: `placement`, `openDelay`, `closeDelay`, `arrow`, `disabled`. Slots: default (trigger), `content`.
|
|
209
|
-
| `Tooltip` | Short text on hover or focus. Optional shortcut. `Button` already shows one for icon-only buttons, `tooltip` and `disabledReason`. | Props: `text`, `placement`, `openDelay`, `closeDelay`, `arrow`, `shortcut`, `disabled`. Slots: default (trigger), `content`.
|
|
210
|
-
| `CommandPalette` | Search and command dialog (Cmd+K) with groups, recent items, async search and typed item data. Groups take `icon` (default item icon) and `more` (a last "show all" item). Matching (`matchesSearch`, exported) finds every word in any order, without case or accents. | Models: `v-model:open`, `v-model:query`. Props: `groups` (items with `id`, `label`, `description`, `icon`, `badge`, `shortcut`, `keywords`, `to`, `data`, `onSelect`), `search(query, signal)`, `shortcut`, `trigger`, `recentKey`, `emptyText`, `notice`. Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `open`, `close`.
|
|
211
|
-
| `CommandButton` | A `Button` made from a `CommandItem`: label, icon, `to`, `href`, `disabled`, `disabledReason` (tooltip on the disabled button) and `onSelect` come from the command. | Props: `command`, `label`, `icon`, `iconOnly` (a square button with the icon only, the label as `aria-label` and tooltip), and every `Button` prop (size, variant, tone).
|
|
197
|
+
| Component | Purpose and when to use it | Main props, models, slots, events | Playground |
|
|
198
|
+
| ---------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ |
|
|
199
|
+
| `Modal` | Centered dialog for forms and content. Use `Drawer` for a side panel, `useConfirm` for a yes or no question. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `size` (sm to xl, full, fit, fullscreen), `width`, `minHeight`, `height` (fixed, capped at the viewport), `dismissible`, `hideClose`, `sheet`, `flush`, `fill`, `loading`, `beforeClose(reason)`, `tabs` (tabs in the header), `trail` (breadcrumb title and back button; a long trail stays on one line, the middle crumbs collapse into a "..." menu and the current title truncates), `backLabel`, `guard` (default `true`: closing, or a trail navigation, with a dirty `Form` inside asks to discard first; `beforeClose` runs after), `guardTitle`, `guardMessage`. Slots: default (`{ tab }`), `header`, `actions` (header, before the close button), `footer`, `title-trailing`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`. | `overlays/modal.vue` |
|
|
200
|
+
| `Drawer` | Panel from the side or bottom for details and edit forms. Use `Modal` for short focused dialogs. | Models: `v-model:open`, `v-model:tab`. Props: `title`, `description`, `side` (left, right, bottom), `size` (sm to xl, full), `dismissible`, `hideClose`, `flush`, `fill` (the body content takes the full height, for a table or a grid), `loading`, `beforeClose(reason)`, `tabs`, `trail`, `backLabel`, `guard`, `guardTitle`, `guardMessage` (as `Modal`). Slots like `Modal`. Events: `open`, `close`, `afterLeave`, `navigate(index)`. Exposes `close()`, `confirmLeave()`, `dirty`. | `overlays/drawer.vue` |
|
|
201
|
+
| `ConfirmDialog` | Declarative confirm dialog. Prefer `useConfirm()`. Use this one only when the dialog state lives in the template. | Model: `v-model:open`. Props: `title`, `description`, `confirmLabel`, `cancelLabel`, `tone`, `icon`, `hideCancel`, `onConfirm`. Events: `resolve(confirmed)`, `cancel`, `afterLeave`. | `overlays/confirm-dialog.vue` |
|
|
202
|
+
| `ConfirmHost` | Renders the dialogs of `useConfirm`, `useAlert`, `usePrompt`. `OverlayHost` includes it. Do not mount it alone. | None. | - |
|
|
203
|
+
| `OverlayHost` | One mount point for toasts, confirm dialogs, programmatic modals and loading indicators. | Props: `toaster` (true or options), `confirm`, `modals`, `loading` (true or `{ bar, delay, label }`). | `overlays/hooks.vue` |
|
|
204
|
+
| `Toaster` | Renders toasts. `OverlayHost` includes it. Use it directly only for custom options. The stack moves out of the way of an open side Drawer (beside it, or above its footer). | Props: `position`, `max`, `duration`, `gap`, `expand`, `progress`, `hotkey`. | `overlays/toast.vue` |
|
|
205
|
+
| `DropdownMenu` | Menu opened by its trigger. Items can have icons, shortcuts, checkboxes, radios, sub menus and links. | Model: `v-model:open`. Props: `items` (`label`, `icon`, `color` (palette name or hex dot, or `muted` for a grey dot of an empty state), `to`, `href`, `tone: danger`, `shortcut`, `disabled`, `disabledReason` (with `disabled`: a tooltip on hover and keyboard focus, linked with `aria-describedby`; the item stays reachable but not selectable), `children`, `onSelect`; also `type`: checkbox, radio, label, separator), `placement`, `offset`, `matchTriggerWidth`, `minWidth`. Slot: default (the trigger). Event: `select`. | `overlays/dropdown-menu.vue` |
|
|
206
|
+
| `ContextMenu` | Menu on right click of the wrapped area. | Model: `v-model:open`. Props: `items` (same as `DropdownMenu`), `disabled`. Slot: default (the area). Event: `select`. | `overlays/context-menu.vue` |
|
|
207
|
+
| `Popover` | Floating panel with any content (a form, filters) opened by its trigger. Use `DropdownMenu` for a list of actions. | Model: `v-model:open`. Props: `placement`, `offset`, `arrow`, `label`, `initialFocus`. Slots: default (the trigger), `content`. | `overlays/popover.vue` |
|
|
208
|
+
| `HoverCard` | Rich preview on hover or focus (user card, link preview). Use `Tooltip` for plain text. | Model: `v-model:open`. Props: `placement`, `openDelay`, `closeDelay`, `arrow`, `disabled`. Slots: default (trigger), `content`. | `overlays/hover-card.vue` |
|
|
209
|
+
| `Tooltip` | Short text on hover or focus. Optional shortcut. `Button` already shows one for icon-only buttons, `tooltip` and `disabledReason`. | Props: `text`, `placement`, `openDelay`, `closeDelay`, `arrow`, `shortcut`, `disabled`. Slots: default (trigger), `content`. | `overlays/tooltip.vue` |
|
|
210
|
+
| `CommandPalette` | Search and command dialog (Cmd+K) with groups, recent items, async search and typed item data. Groups take `icon` (default item icon) and `more` (a last "show all" item). Matching (`matchesSearch`, exported) finds every word in any order, without case or accents. | Models: `v-model:open`, `v-model:query`. Props: `groups` (items with `id`, `label`, `description`, `icon`, `badge`, `shortcut`, `keywords`, `to`, `data`, `onSelect`), `search(query, signal)`, `shortcut`, `trigger`, `recentKey`, `emptyText`, `notice`. Slots: `item`, `empty`, `group-label`, `after-results`. Events: `select`, `open`, `close`. | `overlays/command-palette.vue` |
|
|
211
|
+
| `CommandButton` | A `Button` made from a `CommandItem`: label, icon, `to`, `href`, `disabled`, `disabledReason` (tooltip on the disabled button) and `onSelect` come from the command. | Props: `command`, `label`, `icon`, `iconOnly` (a square button with the icon only, the label as `aria-label` and tooltip), and every `Button` prop (size, variant, tone). | `overlays/command-palette.vue` |
|
|
212
212
|
|
|
213
213
|
## Data
|
|
214
214
|
|
package/README.md
CHANGED
|
@@ -520,7 +520,7 @@ On your own elements, `paletteClass(color)` gives the class of a palette name an
|
|
|
520
520
|
- `FilterPills` can list active filters: options with `removable: true` render as active pills with a remove button (`removeLabel`, a `'Remove {label}'` template). Clicking the pill emits `select(value)`, the button emits `remove(value)` (and drops the value from the model when it is selected); focus moves to the next pill when the removed one disappears.
|
|
521
521
|
- `Calendar` takes `dayText: (iso) => string | undefined`, a short line under each day number that is also added to the day's accessible name (availability, prices). The `#day` slot (`{ date, number, text, selected, unavailable, outOfRange, inMonth }`) replaces the cell content; it is decorative, so announced text still comes from `dayText`. Days before `min` or after `max` get the `is-out-of-range` class (and `is-unavailable`, like days rejected by `isDateDisabled`), so the `--k-calendar-out-of-range-*` tokens style them apart from disabled days.
|
|
522
522
|
- `Separator` takes `description` (or `#description`) under its label, and an `#actions` slot rendered next to them (a small add or edit button). `variant="heading"` (`SeparatorVariant`, `'label' | 'heading'`, default `'label'`) shows the label as a section title on its own (an `h3`, `level` changes it) with the description below and the actions at the end, under one line above instead of the small muted label between two lines. `:lines="false"` (default `true`) hides the lines of either variant. `align` (`SeparatorAlign`, `'start' | 'center'`, default `'start'`) centers the heading title and description. `--k-separator-heading-font-size` (0.9375rem) sizes the heading, `--k-separator-heading-color` (default `--k-text`) colors it, and `--k-separator-label-font-size` (0.75rem) sizes the small label of `variant="label"`, with or without lines.
|
|
523
|
-
- `Modal` takes `width` (any CSS length, overrides `size`)
|
|
523
|
+
- `Modal` takes `width` (any CSS length, overrides `size`), `minHeight` (keeps the height steady while tabs or steps change) and `height` (a fixed height, capped at the viewport: every tab or step has the same size and the body scrolls). The size widths are tokens: `--k-modal-width-sm` (26rem), `--k-modal-width-md` (32rem), `--k-modal-width-lg` (50rem), `--k-modal-width-xl` (64rem).
|
|
524
524
|
- `Stepper` shows the steps of a wizard: `steps` (`StepperStep[]`: `value`, `label`, `description`, `icon`, `disabled`, `state` `'complete' | 'error'`) and `v-model` for the current value. It renders a `nav` (named by `label`, default "Progress") around an ordered list; the current step has `aria-current="step"`, every step carries a hidden "Step 2 of 4" (`stepper.position`, `positionLabel` overrides it) and its state ("completed", "has errors"). Clickable steps are buttons with one tab stop and arrow keys, Home and End between them. `linear` makes only completed steps (`state: 'complete'` or before the current one) and the current step clickable; `readonly` renders no buttons. `orientation="vertical"` stacks the steps; `size="sm"` is denser. `compact` is `'auto'` by default: below 36rem of container width the labels are visually hidden (still read) and a "Step 2 of 4 Columns" line shows the current step; `true` forces it, `false` turns it off. `:summary="false"` keeps only the numbers in compact mode, without that line (a stepper in a modal header). `select(step)` fires on a click before the model changes.
|
|
525
525
|
|
|
526
526
|
```vue
|
|
@@ -133,6 +133,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
133
133
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
134
134
|
innerHTML?: string | undefined;
|
|
135
135
|
color?: string | undefined;
|
|
136
|
+
height?: string;
|
|
136
137
|
lang?: string | undefined;
|
|
137
138
|
width?: string;
|
|
138
139
|
tabindex?: (string | number) | undefined;
|
|
@@ -373,6 +374,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
373
374
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
374
375
|
innerHTML?: string | undefined;
|
|
375
376
|
color?: string | undefined;
|
|
377
|
+
height?: string;
|
|
376
378
|
lang?: string | undefined;
|
|
377
379
|
width?: string;
|
|
378
380
|
tabindex?: (string | number) | undefined;
|
|
@@ -123,6 +123,7 @@ declare const __VLS_export: import("vue").DefineComponent<Partial<NonNullable<{
|
|
|
123
123
|
readonly onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
124
124
|
readonly innerHTML?: string | undefined | undefined;
|
|
125
125
|
readonly color?: string | undefined | undefined;
|
|
126
|
+
readonly height?: string | undefined;
|
|
126
127
|
readonly lang?: string | undefined | undefined;
|
|
127
128
|
readonly width?: string | undefined;
|
|
128
129
|
readonly tabindex?: (string | number) | undefined;
|
|
@@ -359,6 +360,7 @@ declare const __VLS_export: import("vue").DefineComponent<Partial<NonNullable<{
|
|
|
359
360
|
readonly onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
360
361
|
readonly innerHTML?: string | undefined | undefined;
|
|
361
362
|
readonly color?: string | undefined | undefined;
|
|
363
|
+
readonly height?: string | undefined;
|
|
362
364
|
readonly lang?: string | undefined | undefined;
|
|
363
365
|
readonly width?: string | undefined;
|
|
364
366
|
readonly tabindex?: (string | number) | undefined;
|
|
@@ -56,11 +56,13 @@ const props = defineProps({
|
|
|
56
56
|
guardTitle: { type: String, required: false },
|
|
57
57
|
guardMessage: { type: String, required: false },
|
|
58
58
|
width: { type: String, required: false },
|
|
59
|
-
minHeight: { type: String, required: false }
|
|
59
|
+
minHeight: { type: String, required: false },
|
|
60
|
+
height: { type: String, required: false }
|
|
60
61
|
});
|
|
61
62
|
const sizeStyle = computed(() => ({
|
|
62
63
|
"--k-modal-custom-width": props.width,
|
|
63
|
-
"--k-modal-min-height": props.minHeight
|
|
64
|
+
"--k-modal-min-height": props.minHeight,
|
|
65
|
+
"--k-modal-height": props.height
|
|
64
66
|
}));
|
|
65
67
|
const slots = defineSlots();
|
|
66
68
|
const slotNames = () => Object.keys(slots);
|
|
@@ -23,6 +23,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
23
23
|
guardMessage?: string;
|
|
24
24
|
width?: string;
|
|
25
25
|
minHeight?: string;
|
|
26
|
+
height?: string;
|
|
26
27
|
open?: boolean | undefined;
|
|
27
28
|
tab?: TabItem["value"];
|
|
28
29
|
key?: PropertyKey | undefined;
|
|
@@ -258,6 +259,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
258
259
|
guardMessage?: string;
|
|
259
260
|
width?: string;
|
|
260
261
|
minHeight?: string;
|
|
262
|
+
height?: string;
|
|
261
263
|
open?: boolean | undefined;
|
|
262
264
|
tab?: TabItem["value"];
|
|
263
265
|
key?: PropertyKey | undefined;
|
|
@@ -60,6 +60,7 @@ declare const __VLS_export: <S extends FormSchema, V extends object>(__VLS_props
|
|
|
60
60
|
readonly guardMessage?: string | undefined;
|
|
61
61
|
readonly width?: string | undefined;
|
|
62
62
|
readonly minHeight?: string | undefined;
|
|
63
|
+
readonly height?: string | undefined;
|
|
63
64
|
readonly open?: boolean | undefined;
|
|
64
65
|
readonly tab?: import("../layout/types.ts").TabItem["value"] | undefined;
|
|
65
66
|
readonly key?: PropertyKey | undefined;
|
|
@@ -168,6 +168,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
168
168
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
169
169
|
innerHTML?: string | undefined;
|
|
170
170
|
color?: string | undefined;
|
|
171
|
+
height?: string;
|
|
171
172
|
lang?: string | undefined;
|
|
172
173
|
width?: string;
|
|
173
174
|
tabindex?: (string | number) | undefined;
|
|
@@ -423,6 +424,7 @@ declare const __VLS_base: import("vue").DefineComponent<{
|
|
|
423
424
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
424
425
|
innerHTML?: string | undefined;
|
|
425
426
|
color?: string | undefined;
|
|
427
|
+
height?: string;
|
|
426
428
|
lang?: string | undefined;
|
|
427
429
|
width?: string;
|
|
428
430
|
tabindex?: (string | number) | undefined;
|
|
@@ -119,6 +119,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
119
119
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
120
120
|
innerHTML?: string | undefined;
|
|
121
121
|
color?: string | undefined;
|
|
122
|
+
height?: string;
|
|
122
123
|
lang?: string | undefined;
|
|
123
124
|
width?: string;
|
|
124
125
|
tabindex?: (string | number) | undefined;
|
|
@@ -352,6 +353,7 @@ declare const __VLS_export: import("vue").DefineComponent<{
|
|
|
352
353
|
onTransitionstart?: ((payload: TransitionEvent) => void) | undefined;
|
|
353
354
|
innerHTML?: string | undefined;
|
|
354
355
|
color?: string | undefined;
|
|
356
|
+
height?: string;
|
|
355
357
|
lang?: string | undefined;
|
|
356
358
|
width?: string;
|
|
357
359
|
tabindex?: (string | number) | undefined;
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
.k-modal {
|
|
22
|
+
--k-modal-custom-width: initial;
|
|
23
|
+
--k-modal-min-height: initial;
|
|
24
|
+
--k-modal-height: initial;
|
|
22
25
|
place-items: center;
|
|
23
26
|
}
|
|
24
27
|
|
|
@@ -57,6 +60,7 @@
|
|
|
57
60
|
flex-direction: column;
|
|
58
61
|
width: 100%;
|
|
59
62
|
max-width: var(--k-modal-custom-width, var(--k-modal-width));
|
|
63
|
+
height: var(--k-modal-height, auto);
|
|
60
64
|
min-height: min(var(--k-modal-min-height, 0px), calc(100dvh - 2rem));
|
|
61
65
|
max-height: calc(100dvh - 2rem);
|
|
62
66
|
overflow: hidden;
|
package/package.json
CHANGED