@juice-js/ui 3.0.0-alpha.6 → 3.0.0-alpha.8

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.
@@ -5,6 +5,7 @@ import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
5
5
  import { Overlay, CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
6
6
  import { isPlatformBrowser, DOCUMENT as DOCUMENT$1 } from '@angular/common';
7
7
  import { JuiceIcon } from '@juice-js/icons';
8
+ import { Dialog } from '@angular/cdk/dialog';
8
9
 
9
10
  const BUTTON_STYLES = `
10
11
  [juiceButton], [juiceIconButton] {
@@ -1396,9 +1397,64 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
1396
1397
  }]
1397
1398
  }], propDecorators: { title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], retryLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "retryLabel", required: false }] }], retry: [{ type: i0.Output, args: ["retry"] }] } });
1398
1399
 
1400
+ /** The dialog styles, added to the document once (the CDK pane lives outside every component). */
1401
+ class JuiceDialogStyles {
1402
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: JuiceDialogStyles, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
1403
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.6", type: JuiceDialogStyles, isStandalone: true, selector: "juice-dialog-styles", ngImport: i0, template: '', isInline: true, styles: [".juice-dialog{--_margin: 2rem;max-width:calc(100vw - 2 * var(--_margin))}.juice-dialog--sm{width:25rem}.juice-dialog--md{width:35rem}.juice-dialog--lg{width:45rem}.juice-dialog.juice-dialog--tablet{--_margin: 1.5rem}.juice-dialog>.cdk-dialog-container{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-height:calc(100dvh - 2 * var(--_margin));overflow:auto;overscroll-behavior:contain;border:1px solid var(--juice-panel-border);border-radius:var(--juice-radius-lg);background:var(--juice-color-surface-raised);color:var(--juice-color-text);box-shadow:var(--juice-shadow-overlay);font-family:var(--juice-font-sans);outline:none}.juice-dialog.juice-dialog--fullscreen{width:100vw;max-width:100vw;height:100dvh}.juice-dialog--fullscreen>.cdk-dialog-container{height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}.juice-dialog.juice-dialog--sheet{width:100vw;max-width:100vw}.juice-dialog--sheet>.cdk-dialog-container{max-height:85dvh;border-width:1px 0 0;border-radius:var(--juice-radius-xl) var(--juice-radius-xl) 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}.juice-dialog--sheet>.cdk-dialog-container:before{content:\"\";flex:none;align-self:center;width:2.25rem;height:.25rem;margin:var(--juice-space-2) 0 0;border-radius:var(--juice-radius-full);background:var(--juice-color-border-strong)}@media(prefers-reduced-motion:no-preference){.juice-dialog--sheet>.cdk-dialog-container{animation:juice-sheet-in var(--juice-duration-slow) var(--juice-ease-standard)}}@keyframes juice-sheet-in{0%{transform:translateY(1.5rem);opacity:0}}.juice-dialog-backdrop{background:color-mix(in srgb,var(--juice-color-overlay, #000) 40%,transparent)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
1404
+ }
1405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: JuiceDialogStyles, decorators: [{
1406
+ type: Component,
1407
+ args: [{ selector: 'juice-dialog-styles', template: '', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".juice-dialog{--_margin: 2rem;max-width:calc(100vw - 2 * var(--_margin))}.juice-dialog--sm{width:25rem}.juice-dialog--md{width:35rem}.juice-dialog--lg{width:45rem}.juice-dialog.juice-dialog--tablet{--_margin: 1.5rem}.juice-dialog>.cdk-dialog-container{box-sizing:border-box;display:flex;flex-direction:column;width:100%;max-height:calc(100dvh - 2 * var(--_margin));overflow:auto;overscroll-behavior:contain;border:1px solid var(--juice-panel-border);border-radius:var(--juice-radius-lg);background:var(--juice-color-surface-raised);color:var(--juice-color-text);box-shadow:var(--juice-shadow-overlay);font-family:var(--juice-font-sans);outline:none}.juice-dialog.juice-dialog--fullscreen{width:100vw;max-width:100vw;height:100dvh}.juice-dialog--fullscreen>.cdk-dialog-container{height:100%;max-height:none;border:0;border-radius:0;box-shadow:none;padding:env(safe-area-inset-top,0px) env(safe-area-inset-right,0px) env(safe-area-inset-bottom,0px) env(safe-area-inset-left,0px)}.juice-dialog.juice-dialog--sheet{width:100vw;max-width:100vw}.juice-dialog--sheet>.cdk-dialog-container{max-height:85dvh;border-width:1px 0 0;border-radius:var(--juice-radius-xl) var(--juice-radius-xl) 0 0;padding-bottom:env(safe-area-inset-bottom,0px)}.juice-dialog--sheet>.cdk-dialog-container:before{content:\"\";flex:none;align-self:center;width:2.25rem;height:.25rem;margin:var(--juice-space-2) 0 0;border-radius:var(--juice-radius-full);background:var(--juice-color-border-strong)}@media(prefers-reduced-motion:no-preference){.juice-dialog--sheet>.cdk-dialog-container{animation:juice-sheet-in var(--juice-duration-slow) var(--juice-ease-standard)}}@keyframes juice-sheet-in{0%{transform:translateY(1.5rem);opacity:0}}.juice-dialog-backdrop{background:color-mix(in srgb,var(--juice-color-overlay, #000) 40%,transparent)}\n"] }]
1408
+ }] });
1409
+ /**
1410
+ * Opens a CDK dialog in the workspace's form (JuiceResponsive, the token breakpoints): centred with a 32px margin on a desktop and
1411
+ * 24px on a tablet; on a phone full screen, a bottom sheet, or centred (`mobile`). The CDK dialog brings the focus trap, Escape,
1412
+ * the backdrop and the focus return; the form is fixed when it opens.
1413
+ *
1414
+ * ```ts
1415
+ * dialog.open(EditRuleComponent, { size: 'md', ariaLabelledBy: 'edit-title' }); // full screen on a phone
1416
+ * dialog.open(pickTeamTpl, { size: 'sm', mobile: 'sheet', ariaLabel: 'Route to a team' });
1417
+ * ```
1418
+ */
1419
+ class JuiceDialog {
1420
+ constructor() {
1421
+ this.dialog = inject(Dialog);
1422
+ this.overlay = inject(Overlay);
1423
+ this.responsive = inject(JuiceResponsive);
1424
+ loadStyles(JuiceDialogStyles);
1425
+ }
1426
+ open(content, config = {}) {
1427
+ const { size = 'md', mobile = 'fullscreen', panelClass, backdropClass, ...rest } = config;
1428
+ const onPhone = this.responsive.mobile();
1429
+ const form = onPhone && mobile !== 'dialog' ? mobile : 'dialog';
1430
+ const position = this.overlay.position().global();
1431
+ if (form === 'fullscreen')
1432
+ position.top('0').left('0');
1433
+ else if (form === 'sheet')
1434
+ position.bottom('0').centerHorizontally();
1435
+ else
1436
+ position.centerHorizontally().centerVertically();
1437
+ const classes = ['juice-dialog', `juice-dialog--${size}`, `juice-dialog--${form}`];
1438
+ if (this.responsive.tablet())
1439
+ classes.push('juice-dialog--tablet');
1440
+ return this.dialog.open(content, {
1441
+ ...rest,
1442
+ positionStrategy: position,
1443
+ panelClass: [...classes, ...(Array.isArray(panelClass) ? panelClass : panelClass ? [panelClass] : [])],
1444
+ backdropClass: backdropClass ?? 'juice-dialog-backdrop',
1445
+ });
1446
+ }
1447
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: JuiceDialog, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1448
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: JuiceDialog, providedIn: 'root' }); }
1449
+ }
1450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: JuiceDialog, decorators: [{
1451
+ type: Injectable,
1452
+ args: [{ providedIn: 'root' }]
1453
+ }], ctorParameters: () => [] });
1454
+
1399
1455
  /**
1400
1456
  * Generated bundle index. Do not edit.
1401
1457
  */
1402
1458
 
1403
- export { JUICE_BREAKPOINTS, JUICE_CONTAINER, JUICE_CONTAINER_BREAKPOINTS, JUICE_MEDIA, JUICE_MOBILE_FLOOR, JUICE_MOBILE_MIN, JUICE_RESPONSIVE_OPTIONS, JuiceBadge, JuiceButton, JuiceCheckbox, JuiceEmptyState, JuiceErrorState, JuiceField, JuiceIconButton, JuiceInput, JuiceLoadingState, JuiceOption, JuiceProgress, JuiceResponsive, JuiceSelect, JuiceSpinner, provideJuiceResponsive };
1459
+ export { JUICE_BREAKPOINTS, JUICE_CONTAINER, JUICE_CONTAINER_BREAKPOINTS, JUICE_MEDIA, JUICE_MOBILE_FLOOR, JUICE_MOBILE_MIN, JUICE_RESPONSIVE_OPTIONS, JuiceBadge, JuiceButton, JuiceCheckbox, JuiceDialog, JuiceEmptyState, JuiceErrorState, JuiceField, JuiceIconButton, JuiceInput, JuiceLoadingState, JuiceOption, JuiceProgress, JuiceResponsive, JuiceSelect, JuiceSpinner, provideJuiceResponsive };
1404
1460
  //# sourceMappingURL=juice-js-ui.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"juice-js-ui.mjs","sources":["../../../../projects/juice-js/ui/src/lib/button/button.ts","../../../../projects/juice-js/ui/src/lib/core/style-loader.ts","../../../../projects/juice-js/ui/src/lib/field/field.ts","../../../../projects/juice-js/ui/src/lib/responsive/breakpoints.ts","../../../../projects/juice-js/ui/src/lib/responsive/responsive.ts","../../../../projects/juice-js/ui/src/lib/select/select.ts","../../../../projects/juice-js/ui/src/lib/checkbox/checkbox.ts","../../../../projects/juice-js/ui/src/lib/feedback/feedback.ts","../../../../projects/juice-js/ui/src/juice-js-ui.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n inject,\n input,\n isDevMode,\n} from '@angular/core';\n\nexport type JuiceButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';\nexport type JuiceButtonSize = 'sm' | 'md' | 'lg';\n\nconst BUTTON_STYLES = `\n [juiceButton], [juiceIconButton] {\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--juice-space-2);\n min-height: var(--juice-control-height-md);\n max-width: 100%;\n padding: var(--juice-space-1) var(--juice-space-4);\n border: 1px solid transparent;\n border-radius: var(--juice-radius-md);\n background: transparent;\n color: var(--juice-color-text);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-text-sm);\n font-weight: var(--juice-weight-medium);\n /* Labels wrap rather than push the button past its container (long Vietnamese labels): 1.25 keeps stacked diacritics\n clear of the next line; break-word only breaks a word that alone is wider than the container (an id, a URL). */\n line-height: 1.25;\n text-align: center;\n text-decoration: none;\n white-space: normal;\n overflow-wrap: break-word;\n cursor: pointer;\n user-select: none;\n transition: background-color var(--juice-duration-fast) var(--juice-ease-standard),\n border-color var(--juice-duration-fast) var(--juice-ease-standard),\n color var(--juice-duration-fast) var(--juice-ease-standard);\n }\n [juiceButton][data-size='sm'] { min-height: var(--juice-control-height-sm); padding: var(--juice-space-1) var(--juice-space-3); font-size: var(--juice-text-xs); }\n [juiceButton][data-size='lg'] { min-height: var(--juice-control-height-lg); padding: var(--juice-space-1) var(--juice-space-6); font-size: var(--juice-text-md); }\n [juiceIconButton] {\n flex: none;\n width: var(--juice-control-height-md);\n height: var(--juice-control-height-md);\n padding: 0;\n white-space: nowrap;\n }\n /* The hit area is never smaller than --juice-target-size (24px with a mouse, 44px with touch) even where the visible\n button is: an invisible box centred on it. The visual size does not change. */\n [juiceButton][data-size='sm']::after, [juiceIconButton]::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: max(100%, var(--juice-target-size));\n height: max(100%, var(--juice-target-size));\n transform: translate(-50%, -50%);\n }\n [juiceButton]:focus-visible, [juiceIconButton]:focus-visible {\n outline: 2px solid var(--juice-button-focus-ring);\n outline-offset: 2px;\n }\n /* Interaction (README, Interaction tokens): filled variants lighten slightly on hover and deepen on press in dark, and\n deepen on both in light; outlined and ghost variants step the surface. Hover and press never apply to a disabled\n button: :where() keeps that guard at zero specificity, so the disabled rule below still wins on its own. */\n [juiceButton][data-variant='primary'] { background: var(--juice-button-bg); color: var(--juice-button-fg); }\n [juiceButton][data-variant='primary']:where(:not(:disabled, [aria-disabled='true'])):hover { background: var(--juice-button-hover-bg); }\n [juiceButton][data-variant='primary']:where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-active-bg); }\n [juiceButton][data-variant='secondary'] {\n background: var(--juice-button-secondary-bg);\n border-color: var(--juice-button-secondary-border);\n color: var(--juice-button-secondary-fg);\n }\n [juiceButton][data-variant='secondary']:where(:not(:disabled, [aria-disabled='true'])):hover {\n background: var(--juice-button-secondary-hover-bg);\n border-color: var(--juice-button-secondary-hover-border);\n }\n [juiceButton][data-variant='secondary']:where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-secondary-active-bg); }\n [juiceButton][data-variant='ghost'], [juiceIconButton] { color: var(--juice-button-ghost-fg); }\n :is([juiceButton][data-variant='ghost'], [juiceIconButton]):where(:not(:disabled, [aria-disabled='true'])):hover { background: var(--juice-button-ghost-hover-bg); }\n :is([juiceButton][data-variant='ghost'], [juiceIconButton]):where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-ghost-active-bg); }\n [juiceButton][data-variant='danger'] { background: var(--juice-button-danger-bg); color: var(--juice-button-danger-fg); }\n [juiceButton][data-variant='danger']:where(:not(:disabled, [aria-disabled='true'])):hover { background: var(--juice-button-danger-hover-bg); }\n [juiceButton][data-variant='danger']:where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-danger-active-bg); }\n [juiceButton]:disabled, [juiceIconButton]:disabled, [juiceButton][aria-disabled='true'] {\n background: var(--juice-button-disabled-bg);\n border-color: transparent;\n color: var(--juice-button-disabled-fg);\n cursor: not-allowed;\n }\n [juiceButton][data-loading] { cursor: progress; }\n .juice-button__spinner {\n box-sizing: border-box;\n width: 1em;\n height: 1em;\n border: 2px solid currentColor;\n border-right-color: transparent;\n border-radius: var(--juice-radius-full);\n animation: juice-button-spin 700ms linear infinite;\n }\n @media (prefers-reduced-motion: reduce) { .juice-button__spinner { animation-duration: 3s; } }\n @keyframes juice-button-spin { to { transform: rotate(360deg); } }\n`;\n\n/**\n * Button or link styled as a button. `loading` sets `aria-busy` and swallows activation (the element stays focusable\n * and does not use `disabled`, so focus is not lost while busy).\n */\n@Component({\n selector: 'button[juiceButton], a[juiceButton]',\n template: `@if (loading()) {<span class=\"juice-button__spinner\" aria-hidden=\"true\"></span>}<span class=\"juice-button__label\"><ng-content /></span>`,\n styles: BUTTON_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-loading]': 'loading() ? \"\" : null',\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class JuiceButton {\n readonly variant = input<JuiceButtonVariant>('secondary');\n readonly size = input<JuiceButtonSize>('md');\n readonly loading = input(false, { transform: booleanAttribute });\n\n constructor() {\n const el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n if (el.tagName === 'BUTTON' && !el.hasAttribute('type')) el.setAttribute('type', 'button');\n // Capture phase on the target itself runs before the consumer's (click) handler, so loading blocks it.\n const block = (e: Event) => {\n if (this.loading()) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n };\n el.addEventListener('click', block, true);\n inject(DestroyRef).onDestroy(() => el.removeEventListener('click', block, true));\n }\n}\n\n/** Square icon-only button. It has no visible text, so an `aria-label` (or `aria-labelledby`) is required. */\n@Component({\n selector: 'button[juiceIconButton]',\n template: `<ng-content />`,\n styles: BUTTON_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class JuiceIconButton {\n constructor() {\n const el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n if (!el.hasAttribute('type')) el.setAttribute('type', 'button');\n if (isDevMode()) {\n afterNextRender(() => {\n if (!el.getAttribute('aria-label')?.trim() && !el.getAttribute('aria-labelledby')?.trim()) {\n console.error('[juiceIconButton] An icon button needs an aria-label (or aria-labelledby).', el);\n }\n });\n }\n }\n}\n","import { ApplicationRef, EnvironmentInjector, Type, createComponent, inject } from '@angular/core';\n\nconst loaded = new WeakMap<ApplicationRef, Set<Type<unknown>>>();\n\nlet counter = 0;\n\n/** Next unique DOM id with the given prefix (unique per page, not per component). */\nexport function nextId(prefix: string): string {\n return `${prefix}-${++counter}`;\n}\n\n/**\n * Directives on native elements (`input[juiceInput]`) cannot own styles. This instantiates a hidden component whose\n * `ViewEncapsulation.None` styles Angular adds to the document once per application. Call it from an injection context.\n */\nexport function loadStyles(styleHost: Type<unknown>): void {\n const appRef = inject(ApplicationRef);\n const env = inject(EnvironmentInjector);\n let set = loaded.get(appRef);\n if (!set) loaded.set(appRef, (set = new Set()));\n if (set.has(styleHost)) return;\n set.add(styleHost);\n createComponent(styleHost, { environmentInjector: env });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n DoCheck,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { loadStyles, nextId } from '../core/style-loader';\n\n// One rulebook for every text control (input, textarea, and the select trigger, which reads the same tokens):\n// content 14/20, label 13/20 medium, assistance 12/16; one edge; focus = accent edge + soft halo, never a second outline.\nconst FIELD_STYLES = `\n juice-field { display: flex; flex-direction: column; font-family: var(--juice-font-sans); }\n .juice-field__label {\n margin-bottom: var(--juice-field-label-gap);\n color: var(--juice-field-label);\n font-size: var(--juice-field-label-font-size);\n font-weight: var(--juice-field-label-font-weight);\n line-height: 1.25rem;\n }\n .juice-field__message {\n display: flex;\n align-items: flex-start;\n gap: 0.375rem;\n margin-top: var(--juice-field-message-gap);\n color: var(--juice-field-hint);\n font-size: var(--juice-field-message-font-size);\n line-height: var(--juice-field-message-line-height);\n }\n .juice-field__message[data-status='error'] { color: var(--juice-field-error); }\n .juice-field__message[data-status='warning'] { color: var(--juice-field-warning); }\n .juice-field__message[data-status='success'] { color: var(--juice-field-success); }\n .juice-field__icon { flex: none; width: 0.875rem; height: 0.875rem; margin-top: 1px; }\n .juice-field__counter { margin-left: auto; padding-left: var(--juice-space-2); color: var(--juice-field-counter-fg); font-variant-numeric: tabular-nums; white-space: nowrap; }\n .juice-field__counter[data-level='near'] { color: var(--juice-field-warning); }\n .juice-field__counter[data-level='limit'] { color: var(--juice-field-error); }\n .juice-field__live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n\n :is(input, textarea)[juiceInput] {\n box-sizing: border-box;\n width: 100%;\n min-height: var(--juice-field-height);\n margin: 0;\n padding: 0 var(--juice-field-padding-x);\n border: 1px solid var(--juice-field-border);\n border-radius: var(--juice-field-radius);\n background: var(--juice-field-bg);\n color: var(--juice-field-fg);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-field-font-size);\n line-height: var(--juice-field-line-height);\n transition:\n border-color var(--juice-field-duration) var(--juice-field-ease),\n box-shadow var(--juice-field-duration) var(--juice-field-ease);\n }\n textarea[juiceInput] {\n display: block;\n min-height: var(--juice-field-textarea-min-height);\n padding-block: var(--juice-field-textarea-padding-y);\n resize: vertical;\n }\n :is(input, textarea)[juiceInput]::placeholder { color: var(--juice-field-placeholder); opacity: 1; }\n :is(input, textarea)[juiceInput]:enabled:not([readonly]):hover { border-color: var(--juice-field-border-hover); }\n :is(input, textarea)[juiceInput]:focus {\n outline: none;\n border-color: var(--juice-field-border-focus);\n box-shadow: 0 0 0 3px var(--juice-field-focus-halo);\n }\n :is(input, textarea)[juiceInput][data-status='error'] { border-color: var(--juice-field-error); }\n :is(input, textarea)[juiceInput][data-status='error']:focus { box-shadow: 0 0 0 3px var(--juice-field-error-halo); }\n :is(input, textarea)[juiceInput][data-status='warning'] { border-color: var(--juice-field-warning); }\n :is(input, textarea)[juiceInput][data-status='warning']:focus { box-shadow: 0 0 0 3px var(--juice-field-warning-halo); }\n :is(input, textarea)[juiceInput][data-status='success'] { border-color: var(--juice-field-success); }\n :is(input, textarea)[juiceInput][data-status='success']:focus { box-shadow: 0 0 0 3px var(--juice-field-success-halo); }\n :is(input, textarea)[juiceInput][readonly] { background: var(--juice-field-readonly-bg); border-color: var(--juice-field-readonly-border); }\n :is(input, textarea)[juiceInput]:disabled {\n background: var(--juice-field-disabled-bg);\n border-color: var(--juice-field-disabled-border);\n color: var(--juice-field-disabled-fg);\n cursor: not-allowed;\n }\n :is(input, textarea)[juiceInput]:disabled::placeholder { color: var(--juice-field-disabled-fg); }\n @media (prefers-reduced-motion: reduce) { :is(input, textarea)[juiceInput] { transition: none; } }\n /* Forced colours drop box-shadow, so focus falls back to a system-coloured outline. */\n @media (forced-colors: active) { :is(input, textarea)[juiceInput]:focus { outline: 2px solid CanvasText; outline-offset: 1px; } }\n`;\n\nexport type JuiceFieldStatus = 'error' | 'warning' | 'success';\n\n/** What a control inside `<juice-field>` needs from it. */\nexport interface JuiceFieldControl {\n readonly controlId: string;\n readonly labelId: string;\n readonly describedBy: () => string | null;\n readonly invalid: () => boolean;\n}\n\n/**\n * Label, hint, status message and optional character counter for one form control. The projected `[juiceInput]` (or\n * `<juice-select>`) gets the id the label points at, `aria-describedby` for the message and counter, `aria-invalid` for\n * an error, and `data-status` for its edge. A status message (error over warning over success) replaces the hint while it\n * shows. `counter` shows `length / maxlength` for a control with a `maxlength`; screen readers hear only the 90% and limit\n * thresholds, not every keystroke.\n */\n@Component({\n selector: 'juice-field',\n template: `\n <label class=\"juice-field__label\" [id]=\"labelId\" [attr.for]=\"controlId\">{{ label() }}</label>\n <ng-content />\n @if (message() || showCounter()) {\n <div class=\"juice-field__message\" [attr.data-status]=\"status()\">\n @if (message()) {\n @switch (status()) {\n @case ('error') {\n <svg class=\"juice-field__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 8v4M12 16h.01\" /></svg>\n }\n @case ('warning') {\n <svg class=\"juice-field__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" /><path d=\"M12 9v4M12 17h.01\" /></svg>\n }\n @case ('success') {\n <svg class=\"juice-field__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m9 12 2 2 4-4\" /></svg>\n }\n }\n <span [id]=\"messageId\">{{ message() }}</span>\n }\n @if (showCounter()) {\n <span class=\"juice-field__counter\" [id]=\"counterId\" [attr.data-level]=\"level()\">{{ length() }} / {{ max() }}</span>\n }\n </div>\n }\n @if (showCounter()) {\n <span class=\"juice-field__live\" aria-live=\"polite\">{{ announcement() }}</span>\n }\n `,\n styles: FIELD_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class JuiceField implements JuiceFieldControl {\n readonly label = input.required<string>();\n readonly hint = input<string>('');\n readonly error = input<string>('');\n readonly warning = input<string>('');\n readonly success = input<string>('');\n readonly counter = input(false, { transform: booleanAttribute });\n\n readonly controlId = nextId('juice-field');\n readonly messageId = `${this.controlId}-message`;\n readonly counterId = `${this.controlId}-counter`;\n readonly labelId = `${this.controlId}-label`;\n /** @deprecated since 3.0: the hint and the status message share one element; use `messageId`. */\n readonly hintId = this.messageId;\n /** @deprecated since 3.0: use `messageId`. */\n readonly errorId = this.messageId;\n\n /** Length and `maxlength` of the projected control, reported by `[juiceInput]`. */\n readonly length = signal(0);\n readonly max = signal<number | null>(null);\n\n readonly status = computed<JuiceFieldStatus | null>(() =>\n this.error() ? 'error' : this.warning() ? 'warning' : this.success() ? 'success' : null,\n );\n readonly message = computed(() => {\n const s = this.status();\n return s === 'error' ? this.error() : s === 'warning' ? this.warning() : s === 'success' ? this.success() : this.hint();\n });\n readonly invalid = () => !!this.error();\n\n protected readonly showCounter = computed(() => this.counter() && this.max() !== null);\n protected readonly level = computed<'near' | 'limit' | null>(() => {\n const max = this.max();\n if (!this.counter() || max === null || max <= 0) return null;\n const n = this.length();\n return n >= max ? 'limit' : n >= max * 0.9 ? 'near' : null;\n });\n protected readonly announcement = computed(() =>\n this.level() === 'limit' ? 'Character limit reached' : this.level() === 'near' ? 'Approaching the character limit' : '',\n );\n\n readonly describedBy = computed(() => {\n const ids = [this.message() ? this.messageId : '', this.showCounter() ? this.counterId : ''].filter(Boolean);\n return ids.length ? ids.join(' ') : null;\n });\n}\n\n/** Styles for the text input and textarea, wired to a surrounding `<juice-field>` when there is one. */\n@Directive({\n selector: 'input[juiceInput], textarea[juiceInput]',\n host: {\n '[attr.id]': 'field?.controlId ?? null',\n '[attr.aria-describedby]': 'field?.describedBy() ?? null',\n '[attr.aria-invalid]': 'invalid() ? \"true\" : null',\n '[attr.data-status]': 'status()',\n '(blur)': 'sync()',\n '(input)': 'sync()',\n },\n})\nexport class JuiceInput implements DoCheck {\n protected readonly field = inject(JuiceField, { optional: true });\n private readonly control = inject(NgControl, { optional: true, self: true });\n private readonly el = inject<ElementRef<HTMLInputElement | HTMLTextAreaElement>>(ElementRef).nativeElement;\n private readonly state = signal(false);\n\n /** Invalid is shown only once the user has touched the control (or the field was given an error without a form control). */\n protected readonly invalid = computed(() => this.state() || (!this.control && !!this.field?.error()));\n /** The field's status edge; an error edge waits for `invalid`, like `aria-invalid`. */\n protected readonly status = computed(() => {\n const s = this.field?.status() ?? null;\n return s === 'error' && !this.invalid() && !!this.control ? null : s;\n });\n\n constructor() {\n loadStyles(JuiceFieldStyles);\n }\n\n ngDoCheck(): void {\n this.sync();\n }\n\n protected sync(): void {\n const c = this.control;\n this.state.set(!!c && !!c.invalid && !!c.touched);\n const f = this.field;\n if (f) {\n f.length.set(this.el.value.length);\n f.max.set(this.el.maxLength > 0 ? this.el.maxLength : null);\n }\n }\n}\n\n@Component({ selector: 'juice-field-styles', template: '', styles: FIELD_STYLES, encapsulation: ViewEncapsulation.None })\nclass JuiceFieldStyles {}\n","// Generated by @juice-js/design-tokens (build.mjs) from tokens.mjs, do not edit. One source: BREAKPOINTS.\n\n/** The minimum width of each viewport range, in px (mobile is everything below tablet). */\nexport const JUICE_BREAKPOINTS = {\n tablet: 768,\n desktop: 1024,\n wide: 1440\n} as const;\n\n/** Container-query steps, in px. */\nexport const JUICE_CONTAINER_BREAKPOINTS = {\n sm: 480,\n md: 768\n} as const;\n\n/** The narrowest designed width, and the one nothing may break at. */\nexport const JUICE_MOBILE_MIN = 360;\nexport const JUICE_MOBILE_FLOOR = 320;\n\n/** Media queries (em: px / 16) for matchMedia and for component styles. */\nexport const JUICE_MEDIA = {\n mobile: '(width < 48em)',\n tablet: '(48em <= width < 64em)',\n desktop: '(width >= 64em)',\n wide: '(width >= 90em)',\n tabletUp: '(width >= 48em)',\n coarse: '(pointer: coarse)',\n anyCoarse: '(any-pointer: coarse)'\n} as const;\n\n/** Container-query widths (em), for `@container (width < ${JUICE_CONTAINER.sm})`. */\nexport const JUICE_CONTAINER = {\n sm: '30em',\n md: '48em'\n} as const;\n\n/** A viewport range. */\nexport type JuiceViewportSize = 'mobile' | 'tablet' | 'desktop';\n","import {\n DOCUMENT, DestroyRef, EnvironmentProviders, Injectable, InjectionToken, PLATFORM_ID, Signal, computed, inject, makeEnvironmentProviders,\n signal,\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { JUICE_MEDIA, JuiceViewportSize } from './breakpoints';\n\n/** The effective pointer: decides touch sizing (44px targets, 16px inputs) or mouse sizing. */\nexport type JuicePointer = 'touch' | 'fine';\n\nexport interface JuiceResponsiveOptions {\n /**\n * `auto` (default): touch on a coarse primary pointer (CSS alone does this); on a hybrid device (a touch laptop, a tablet\n * with a mouse) the last input decides. `touch` or `fine` force it for the whole page (`data-pointer` on `<html>`).\n */\n pointer?: 'auto' | JuicePointer;\n}\n\nexport const JUICE_RESPONSIVE_OPTIONS = new InjectionToken<JuiceResponsiveOptions>('JUICE_RESPONSIVE_OPTIONS');\n\n/** Options for {@link JuiceResponsive}: `provideJuiceResponsive({ pointer: 'touch' })` for a kiosk. */\nexport function provideJuiceResponsive(options: JuiceResponsiveOptions): EnvironmentProviders {\n return makeEnvironmentProviders([{ provide: JUICE_RESPONSIVE_OPTIONS, useValue: options }]);\n}\n\n/**\n * The viewport range and the pointer, as signals, from the generated breakpoints (one source: the design tokens). Correct before\n * the first render, so a phone never paints the desktop shell first. On the server: desktop and fine, and nothing is touched.\n *\n * Hybrid devices (primary pointer fine, some pointer coarse): a touch sets `data-pointer=\"touch\"` on `<html>`, a mouse press sets\n * it back to `fine`; a pen counts as a mouse. It changes only on an input of the other kind, so it never flickers.\n */\n@Injectable({ providedIn: 'root' })\nexport class JuiceResponsive {\n private readonly doc = inject(DOCUMENT);\n private readonly options = inject(JUICE_RESPONSIVE_OPTIONS, { optional: true }) ?? {};\n private readonly browser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly destroyRef = inject(DestroyRef);\n\n private readonly media = {\n mobile: this.watch(JUICE_MEDIA.mobile, false),\n tablet: this.watch(JUICE_MEDIA.tablet, false),\n wide: this.watch(JUICE_MEDIA.wide, false),\n coarse: this.watch(JUICE_MEDIA.coarse, false),\n anyCoarse: this.watch(JUICE_MEDIA.anyCoarse, false),\n };\n private readonly lastInput = signal<JuicePointer | null>(null);\n\n /** Below 768px. */\n readonly mobile: Signal<boolean> = this.media.mobile;\n /** 768–1023px. */\n readonly tablet: Signal<boolean> = this.media.tablet;\n /** 1024px and up. */\n readonly desktop: Signal<boolean> = computed(() => !this.media.mobile() && !this.media.tablet());\n /** 1440px and up. */\n readonly wide: Signal<boolean> = this.media.wide;\n readonly size: Signal<JuiceViewportSize> = computed(() => (this.media.mobile() ? 'mobile' : this.media.tablet() ? 'tablet' : 'desktop'));\n /** A mouse-first device that also has a touch screen. */\n readonly hybrid: Signal<boolean> = computed(() => !this.media.coarse() && this.media.anyCoarse());\n /** Touch or mouse sizing, as the page shows it now. */\n readonly pointer: Signal<JuicePointer> = computed(() => {\n const forced = this.options.pointer;\n if (forced === 'touch' || forced === 'fine') return forced;\n if (this.media.coarse()) return 'touch';\n return this.hybrid() ? (this.lastInput() ?? 'fine') : 'fine';\n });\n\n constructor() {\n if (!this.browser) return;\n const forced = this.options.pointer;\n if (forced === 'touch' || forced === 'fine') {\n this.doc.documentElement.setAttribute('data-pointer', forced);\n return;\n }\n const onPointer = (e: PointerEvent) => {\n if (!this.hybrid()) return;\n const kind: JuicePointer = e.pointerType === 'touch' ? 'touch' : 'fine';\n if (kind === (this.lastInput() ?? 'fine') && this.doc.documentElement.hasAttribute('data-pointer')) return;\n this.lastInput.set(kind);\n this.doc.documentElement.setAttribute('data-pointer', kind);\n };\n // Capture: a control that stops propagation still counts, and the attribute is set before the press is handled.\n this.doc.addEventListener('pointerdown', onPointer, { capture: true, passive: true });\n this.destroyRef.onDestroy(() => this.doc.removeEventListener('pointerdown', onPointer, { capture: true }));\n }\n\n private watch(query: string, fallback: boolean): Signal<boolean> {\n const value = signal(fallback);\n if (!this.browser) return value.asReadonly();\n const mql = this.doc.defaultView?.matchMedia?.(query);\n if (!mql) return value.asReadonly();\n value.set(mql.matches);\n const onChange = (e: MediaQueryListEvent) => value.set(e.matches);\n mql.addEventListener('change', onChange);\n this.destroyRef.onDestroy(() => mql.removeEventListener('change', onChange));\n return value.asReadonly();\n }\n}\n","import { ActiveDescendantKeyManager, Highlightable } from '@angular/cdk/a11y';\nimport { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedPosition, Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport {\n AfterContentChecked,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n InjectionToken,\n Injector,\n Signal,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n forwardRef,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { JuiceField } from '../field/field';\nimport { nextId } from '../core/style-loader';\nimport { JuiceResponsive } from '../responsive/responsive';\n\n/** What an option needs from its select. */\ninterface JuiceSelectHost {\n readonly value: Signal<unknown>;\n choose(option: JuiceOption): void;\n activate(option: JuiceOption): void;\n}\nconst JUICE_SELECT_HOST = new InjectionToken<JuiceSelectHost>('JUICE_SELECT_HOST');\n\n// The trigger follows the text-field rulebook exactly (it reads the --juice-field-* tokens); the list reads --juice-listbox-*.\nconst SELECT_STYLES = `\n juice-select { display: block; position: relative; font-family: var(--juice-font-sans); }\n .juice-select__trigger {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--juice-space-2);\n width: 100%;\n min-height: var(--juice-field-height);\n margin: 0;\n padding: 0 var(--juice-field-padding-x);\n border: 1px solid var(--juice-field-border);\n border-radius: var(--juice-field-radius);\n background: var(--juice-field-bg);\n color: var(--juice-field-fg);\n font-family: inherit;\n font-size: var(--juice-field-font-size);\n line-height: var(--juice-field-line-height);\n text-align: start;\n cursor: pointer;\n transition:\n border-color var(--juice-field-duration) var(--juice-field-ease),\n box-shadow var(--juice-field-duration) var(--juice-field-ease);\n }\n .juice-select__trigger:enabled:hover { border-color: var(--juice-field-border-hover); }\n .juice-select__trigger:focus-visible,\n .juice-select__trigger[aria-expanded='true'] {\n outline: none;\n border-color: var(--juice-field-border-focus);\n box-shadow: 0 0 0 3px var(--juice-field-focus-halo);\n }\n .juice-select__trigger[data-status='error'] { border-color: var(--juice-field-error); }\n .juice-select__trigger[data-status='error']:is(:focus-visible, [aria-expanded='true']) { box-shadow: 0 0 0 3px var(--juice-field-error-halo); }\n .juice-select__trigger[data-status='warning'] { border-color: var(--juice-field-warning); }\n .juice-select__trigger[data-status='warning']:is(:focus-visible, [aria-expanded='true']) { box-shadow: 0 0 0 3px var(--juice-field-warning-halo); }\n .juice-select__trigger[data-status='success'] { border-color: var(--juice-field-success); }\n .juice-select__trigger[data-status='success']:is(:focus-visible, [aria-expanded='true']) { box-shadow: 0 0 0 3px var(--juice-field-success-halo); }\n .juice-select__trigger:disabled {\n background: var(--juice-field-disabled-bg);\n border-color: var(--juice-field-disabled-border);\n color: var(--juice-field-disabled-fg);\n cursor: not-allowed;\n }\n .juice-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .juice-select__placeholder { color: var(--juice-field-placeholder); }\n .juice-select__trigger:disabled .juice-select__placeholder { color: inherit; }\n .juice-select__chevron {\n flex: none;\n width: 1rem;\n height: 1rem;\n color: var(--juice-listbox-chevron);\n transition: transform var(--juice-field-duration) var(--juice-field-ease);\n }\n .juice-select__trigger[aria-expanded='true'] .juice-select__chevron { transform: rotate(180deg); }\n /* The CDK pane is a flex box: the panel must grow to fill it, or it shrinks to its content under a wide trigger. */\n .juice-select-panel {\n box-sizing: border-box;\n flex: 1 1 auto;\n width: 100%;\n max-height: var(--juice-listbox-max-height);\n margin: 0;\n padding: var(--juice-listbox-padding);\n overflow-y: auto;\n border: 1px solid var(--juice-listbox-border);\n border-radius: var(--juice-listbox-radius);\n background: var(--juice-listbox-bg);\n color: var(--juice-listbox-fg);\n box-shadow: var(--juice-listbox-shadow);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-field-font-size);\n line-height: var(--juice-field-line-height);\n animation: juice-select-in var(--juice-field-duration) var(--juice-field-ease);\n }\n @keyframes juice-select-in { from { opacity: 0; transform: translateY(-2px); } }\n juice-option {\n display: flex;\n align-items: center;\n gap: var(--juice-listbox-option-gap);\n min-height: var(--juice-listbox-option-height);\n padding: 0 var(--juice-listbox-option-padding-x);\n border-radius: var(--juice-listbox-option-radius);\n cursor: pointer;\n }\n /* Options wrap instead of truncating: on a narrow screen the rest of a long option is otherwise unreadable. */\n .juice-option__label { flex: 1 1 auto; min-width: 0; padding-block: var(--juice-space-1); overflow-wrap: anywhere; }\n .juice-option__check { flex: none; width: 1rem; height: 1rem; color: var(--juice-listbox-option-check); }\n juice-option.juice-option--active { background: var(--juice-listbox-option-active-bg); }\n juice-option[aria-selected='true'] { background: var(--juice-listbox-option-selected-bg); color: var(--juice-listbox-option-selected-fg); }\n juice-option[aria-selected='true'].juice-option--active { background: var(--juice-listbox-option-active-bg); }\n juice-option[aria-disabled='true'] { color: var(--juice-listbox-option-disabled-fg); cursor: not-allowed; }\n @media (prefers-reduced-motion: reduce) {\n .juice-select__trigger, .juice-select__chevron { transition: none; }\n .juice-select-panel { animation: none; }\n }\n @media (forced-colors: active) {\n .juice-select__trigger:is(:focus-visible, [aria-expanded='true']) { outline: 2px solid CanvasText; outline-offset: 1px; }\n juice-option.juice-option--active { outline: 1px solid Highlight; }\n }\n`;\n\n/** One choice in a `<juice-select>`. Its text is the label shown in the trigger and matched by typeahead. */\n@Component({\n selector: 'juice-option',\n template: `<span class=\"juice-option__label\"><ng-content /></span>\n @if (selected()) {\n <svg class=\"juice-option__check\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M20 6 9 17l-5-5\" /></svg>\n }`,\n styles: SELECT_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n role: 'option',\n '[id]': 'id',\n '[attr.aria-selected]': 'selected() ? \"true\" : \"false\"',\n '[attr.aria-disabled]': 'isDisabled() ? \"true\" : null',\n '[class.juice-option--active]': 'active()',\n '(click)': 'select.choose(this)',\n '(mouseenter)': 'select.activate(this)',\n },\n})\nexport class JuiceOption implements Highlightable {\n readonly value = input<unknown>();\n readonly isDisabled = input(false, { alias: 'disabled', transform: booleanAttribute });\n\n readonly id = nextId('juice-option');\n protected readonly select = inject(JUICE_SELECT_HOST);\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n protected readonly active = signal(false);\n protected readonly selected = computed(() => this.select.value() === this.value());\n\n /** Read by `ListKeyManager` through `skipPredicate`. */\n get disabled(): boolean {\n return this.isDisabled();\n }\n\n getLabel(): string {\n return (this.el.textContent ?? '').trim();\n }\n setActiveStyles(): void {\n this.active.set(true);\n this.el.scrollIntoView?.({ block: 'nearest' });\n }\n setInactiveStyles(): void {\n this.active.set(false);\n }\n}\n\nconst POSITIONS: ConnectedPosition[] = [\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n];\n\n/**\n * Single-select dropdown. Focus stays on the trigger (combobox pattern); the options are exposed through\n * `aria-activedescendant`. The list is an inline popover: it renders in the top layer (never clipped by `overflow` ancestors\n * or covered by drawers and dialogs) while it sits next to the trigger in the DOM, so it follows the region's theme, accent\n * and colour scheme live. It re-places itself when any ancestor scrolls.\n */\n@Component({\n selector: 'juice-select',\n imports: [CdkConnectedOverlay, CdkOverlayOrigin],\n template: `\n <button\n #trigger\n type=\"button\"\n class=\"juice-select__trigger\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"field?.controlId ?? triggerId\"\n [attr.aria-expanded]=\"open() ? 'true' : 'false'\"\n [attr.aria-controls]=\"open() ? listboxId : null\"\n [attr.aria-activedescendant]=\"open() ? activeId() : null\"\n [attr.aria-label]=\"field ? null : label() || null\"\n [attr.aria-describedby]=\"field?.describedBy() ?? null\"\n [attr.aria-invalid]=\"field && field.invalid() ? 'true' : null\"\n [attr.data-status]=\"field?.status() ?? null\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onTouched()\"\n >\n <span class=\"juice-select__value\" [class.juice-select__placeholder]=\"!hasValue()\" [attr.title]=\"hasValue() ? displayLabel() : null\">{{ displayLabel() }}</span>\n <svg class=\"juice-select__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayWidth]=\"responsive.mobile() ? triggerWidth() : ''\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n cdkConnectedOverlayUsePopover=\"inline\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"close()\"\n >\n <div\n class=\"juice-select-panel\"\n role=\"listbox\"\n [id]=\"listboxId\"\n [attr.aria-label]=\"field ? null : label() || placeholder() || 'Options'\"\n [attr.aria-labelledby]=\"field ? field.labelId : null\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <ng-content />\n </div>\n </ng-template>\n `,\n styles: SELECT_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => JuiceSelect), multi: true },\n { provide: JUICE_SELECT_HOST, useExisting: forwardRef(() => JuiceSelect) },\n ],\n})\nexport class JuiceSelect implements ControlValueAccessor, AfterContentChecked, JuiceSelectHost {\n readonly placeholder = input('');\n /** Accessible name when the select is not inside a `<juice-field>`. */\n readonly label = input('');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly value = model<unknown>(undefined);\n\n protected readonly field = inject(JuiceField, { optional: true });\n protected readonly triggerId = nextId('juice-select');\n protected readonly listboxId = nextId('juice-listbox');\n protected readonly positions = POSITIONS;\n protected readonly scrollStrategy: ScrollStrategy = inject(Overlay).scrollStrategies.reposition();\n\n protected readonly open = signal(false);\n protected readonly triggerWidth = signal(0);\n /** On a phone the list is exactly as wide as the trigger (long options wrap); wider screens let it grow to its content. */\n protected readonly responsive = inject(JuiceResponsive);\n protected readonly activeId = signal<string | null>(null);\n protected readonly displayLabel = signal('');\n protected readonly hasValue = signal(false);\n private readonly cvaDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.cvaDisabled());\n\n private readonly options = contentChildren(JuiceOption, { descendants: true });\n private readonly trigger = viewChild.required<ElementRef<HTMLButtonElement>>('trigger');\n private readonly connected = viewChild(CdkConnectedOverlay);\n private readonly doc = inject(DOCUMENT);\n private stopScroll?: () => void;\n private readonly keys = new ActiveDescendantKeyManager<JuiceOption>(this.options, inject(Injector))\n .withTypeAhead(200)\n .withHomeAndEnd()\n .withPageUpDown()\n .skipPredicate((o) => o.disabled);\n\n private onChange: (v: unknown) => void = () => undefined;\n protected onTouched: () => void = () => undefined;\n\n constructor() {\n this.keys.change.subscribe((i) => this.activeId.set(this.options()[i]?.id ?? null));\n inject(DestroyRef).onDestroy(() => this.stopScroll?.());\n }\n\n ngAfterContentChecked(): void {\n const match = this.options().find((o) => o.value() === this.value());\n const text = match ? match.getLabel() : this.placeholder();\n if (this.displayLabel() !== text) this.displayLabel.set(text);\n if (this.hasValue() !== !!match) this.hasValue.set(!!match);\n }\n\n writeValue(v: unknown): void {\n this.value.set(v);\n }\n registerOnChange(fn: (v: unknown) => void): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n setDisabledState(d: boolean): void {\n this.cvaDisabled.set(d);\n if (d) this.close();\n }\n\n choose(option: JuiceOption): void {\n if (option.disabled) return;\n this.value.set(option.value());\n this.onChange(option.value());\n this.close();\n }\n activate(option: JuiceOption): void {\n if (!option.disabled) this.keys.setActiveItem(option);\n }\n\n protected toggle(): void {\n if (this.open()) this.close();\n else this.show();\n }\n\n private show(): void {\n if (this.isDisabled() || this.open()) return;\n const trigger = this.trigger().nativeElement;\n this.triggerWidth.set(trigger.offsetWidth);\n // Re-place the list when any ancestor scrolls (a dialog body, a drawer, a scrolled panel), not only the window.\n const onScroll = () => this.connected()?.overlayRef?.updatePosition();\n this.doc.addEventListener('scroll', onScroll, { capture: true, passive: true });\n this.stopScroll = () => this.doc.removeEventListener('scroll', onScroll, { capture: true });\n this.open.set(true);\n const items = this.options();\n const selected = items.findIndex((o) => o.value() === this.value() && !o.disabled);\n if (selected >= 0) this.keys.setActiveItem(selected);\n else this.keys.setFirstItemActive();\n }\n\n protected close(): void {\n if (!this.open()) return;\n this.stopScroll?.();\n this.stopScroll = undefined;\n this.open.set(false);\n this.keys.setActiveItem(-1);\n }\n\n protected onOutsideClick(e: MouseEvent): void {\n if (!this.trigger().nativeElement.contains(e.target as Node)) this.close();\n }\n\n protected onKeydown(e: KeyboardEvent): void {\n if (this.isDisabled() || e.altKey || e.ctrlKey || e.metaKey) return;\n const key = e.key;\n if (!this.open()) {\n if (key === 'ArrowDown' || key === 'ArrowUp' || key === 'Enter' || key === ' ') {\n e.preventDefault();\n this.show();\n } else if (key.length === 1) {\n this.show();\n this.keys.onKeydown(e);\n }\n return;\n }\n if (key === 'Escape') {\n e.preventDefault();\n e.stopPropagation();\n this.close();\n } else if (key === 'Tab') {\n this.close(); // closes without selecting; focus moves on naturally\n } else if (key === 'Enter' || key === ' ') {\n e.preventDefault();\n const active = this.keys.activeItem;\n if (active) this.choose(active);\n } else {\n this.keys.onKeydown(e);\n }\n }\n}\n","import { Component, Directive, ViewEncapsulation, booleanAttribute, effect, ElementRef, inject, input } from '@angular/core';\nimport { loadStyles } from '../core/style-loader';\n\nconst CHECKBOX_STYLES = `\n /* The marks are drawn on the box's own 16-unit grid (viewBox 0 0 16 16 = the border box), so they scale with\n --juice-checkbox-size and stay optically centred: the tick's bounding box is centred on (8, 8) and its 1.75 stroke\n matches the minus. */\n input[type='checkbox'][juiceCheckbox] {\n --_mark-check: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.75 8.25 6.9 10.4 11.25 5.6'/%3E%3C/svg%3E\");\n --_mark-minus: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 8h6'/%3E%3C/svg%3E\");\n appearance: none;\n box-sizing: border-box;\n position: relative;\n flex: none;\n width: var(--juice-checkbox-size);\n height: var(--juice-checkbox-size);\n margin: 0;\n border: 1px solid var(--juice-checkbox-border);\n border-radius: var(--juice-checkbox-radius);\n background: var(--juice-checkbox-bg);\n vertical-align: middle;\n cursor: pointer;\n transition:\n background-color var(--juice-checkbox-duration) var(--juice-checkbox-ease),\n border-color var(--juice-checkbox-duration) var(--juice-checkbox-ease),\n transform var(--juice-checkbox-duration) var(--juice-checkbox-ease);\n }\n input[type='checkbox'][juiceCheckbox]::after {\n content: '';\n position: absolute;\n inset: -1px;\n background: var(--juice-checkbox-checked-fg);\n -webkit-mask: var(--_mark-check) center / 100% 100% no-repeat;\n mask: var(--_mark-check) center / 100% 100% no-repeat;\n opacity: 0;\n transform: scale(0.6);\n transition:\n opacity var(--juice-checkbox-duration) var(--juice-checkbox-ease),\n transform var(--juice-checkbox-duration) var(--juice-checkbox-ease);\n }\n input[type='checkbox'][juiceCheckbox]:indeterminate::after {\n -webkit-mask-image: var(--_mark-minus);\n mask-image: var(--_mark-minus);\n }\n input[type='checkbox'][juiceCheckbox]:is(:checked, :indeterminate)::after { opacity: 1; transform: none; }\n\n /* Filled: checked and indeterminate. */\n input[type='checkbox'][juiceCheckbox]:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-checked-bg);\n background: var(--juice-checkbox-checked-bg);\n }\n\n /* Hover: the edge darkens on an empty box, the fill deepens on a filled one; the whole label is the target. */\n input[type='checkbox'][juiceCheckbox]:enabled:hover,\n label:hover > input[type='checkbox'][juiceCheckbox]:enabled {\n border-color: var(--juice-checkbox-hover-border);\n }\n input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate):hover,\n label:hover > input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-checked-hover-bg);\n background: var(--juice-checkbox-checked-hover-bg);\n }\n\n /* Pressed: a small settle, not a bounce. */\n input[type='checkbox'][juiceCheckbox]:enabled:active,\n label:active > input[type='checkbox'][juiceCheckbox]:enabled {\n background: var(--juice-checkbox-active-bg);\n transform: scale(0.92);\n }\n input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate):active,\n label:active > input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-checked-active-bg);\n background: var(--juice-checkbox-checked-active-bg);\n }\n\n input[type='checkbox'][juiceCheckbox]:focus-visible {\n outline: 2px solid var(--juice-checkbox-focus-ring);\n outline-offset: 2px;\n }\n\n /* Disabled: an empty box keeps its edge; a value keeps a neutral fill and its mark, so checked and unchecked stay apart. */\n input[type='checkbox'][juiceCheckbox]:disabled {\n border-color: var(--juice-checkbox-disabled-border);\n background: var(--juice-checkbox-disabled-bg);\n cursor: not-allowed;\n }\n input[type='checkbox'][juiceCheckbox]:disabled:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-disabled-checked-bg);\n background: var(--juice-checkbox-disabled-checked-bg);\n }\n input[type='checkbox'][juiceCheckbox]:disabled::after { background: var(--juice-checkbox-disabled-checked-fg); }\n\n /* A <label> that wraps the box: 14px Inter, 8px gap, the box centred on the first line (1lh) so long labels wrap under\n the text, not under the box. :where() keeps it at zero specificity, so apps can restyle their labels. */\n :where(label:has(> input[type='checkbox'][juiceCheckbox])) {\n display: inline-flex;\n align-items: flex-start;\n /* The whole row is the target: at least --juice-target-size tall (24px mouse, 44px touch), one line centred in it. */\n box-sizing: border-box;\n min-height: var(--juice-target-size);\n padding-block: max(0px, (var(--juice-target-size) - 1lh) / 2);\n gap: var(--juice-checkbox-label-gap);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-checkbox-label-font-size);\n font-weight: var(--juice-checkbox-label-font-weight);\n line-height: var(--juice-checkbox-label-line-height);\n color: var(--juice-checkbox-label-fg);\n cursor: pointer;\n }\n /* A box without a wrapping label still gets a target of --juice-target-size around it. */\n input[type='checkbox'][juiceCheckbox]:not(label > *)::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: var(--juice-target-size);\n height: var(--juice-target-size);\n transform: translate(-50%, -50%);\n }\n :where(label:has(> input[type='checkbox'][juiceCheckbox])) > input[type='checkbox'][juiceCheckbox] {\n margin-block-start: calc((1lh - var(--juice-checkbox-size)) / 2);\n }\n :where(label:has(> input[type='checkbox'][juiceCheckbox]:disabled)) {\n color: var(--juice-checkbox-label-disabled-fg);\n cursor: not-allowed;\n }\n\n @media (prefers-reduced-motion: reduce) {\n input[type='checkbox'][juiceCheckbox],\n input[type='checkbox'][juiceCheckbox]::after { transition: none; }\n input[type='checkbox'][juiceCheckbox]:enabled:active,\n label:active > input[type='checkbox'][juiceCheckbox]:enabled { transform: none; }\n }\n /* Forced colours (Windows contrast themes) drop backgrounds and masks: hand the box back to the native checkbox. */\n @media (forced-colors: active) {\n input[type='checkbox'][juiceCheckbox] { appearance: auto; border: 0; background: none; transform: none; }\n input[type='checkbox'][juiceCheckbox]::after { display: none; }\n }\n`;\n\n@Component({ selector: 'juice-checkbox-styles', template: '', styles: CHECKBOX_STYLES, encapsulation: ViewEncapsulation.None })\nclass JuiceCheckboxStyles {}\n\n/**\n * Styled native checkbox: keyboard, form and screen-reader behaviour stay the platform's. `indeterminate` sets the DOM\n * property (it has no attribute). Wrap it in a `<label>` with its text after it (the label then gets the 14px type and 8px\n * gap), or give it `aria-label`.\n */\n@Directive({ selector: 'input[type=checkbox][juiceCheckbox]' })\nexport class JuiceCheckbox {\n readonly indeterminate = input(false, { transform: booleanAttribute });\n\n constructor() {\n loadStyles(JuiceCheckboxStyles);\n const el = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;\n effect(() => {\n el.indeterminate = this.indeterminate();\n });\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n numberAttribute,\n output,\n} from '@angular/core';\nimport { JuiceIcon } from '@juice-js/icons';\nimport { JuiceButton } from '../button/button';\n\nexport type JuiceBadgeTone = 'neutral' | 'accent' | 'ok' | 'warn' | 'bad' | 'info';\nexport type JuiceSpinnerSize = 'sm' | 'md' | 'lg';\n\nconst STYLES = `\n juice-badge {\n display: inline-flex;\n align-items: center;\n padding: 0 var(--juice-space-2);\n border-radius: var(--juice-radius-full);\n background: var(--juice-badge-neutral-bg);\n color: var(--juice-badge-neutral-fg);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-text-xs);\n font-weight: var(--juice-weight-medium);\n line-height: 1.5rem;\n white-space: nowrap;\n }\n /* Each tone is a semantic foreground/background pair (the badge component tokens), readable at 4.5:1 in both themes. */\n juice-badge[data-tone='accent'] { background: var(--juice-badge-accent-bg); color: var(--juice-badge-accent-fg); }\n juice-badge[data-tone='ok'] { background: var(--juice-badge-ok-bg); color: var(--juice-badge-ok-fg); }\n juice-badge[data-tone='warn'] { background: var(--juice-badge-warn-bg); color: var(--juice-badge-warn-fg); }\n juice-badge[data-tone='bad'] { background: var(--juice-badge-bad-bg); color: var(--juice-badge-bad-fg); }\n juice-badge[data-tone='info'] { background: var(--juice-badge-info-bg); color: var(--juice-badge-info-fg); }\n\n juice-progress { display: block; height: 0.5rem; overflow: hidden; border-radius: var(--juice-radius-full); background: var(--juice-color-surface-sunken); }\n .juice-progress__bar { height: 100%; border-radius: inherit; background: var(--juice-color-accent); transition: width var(--juice-duration-normal) var(--juice-ease-standard); }\n juice-progress[data-indeterminate] .juice-progress__bar { width: 40%; animation: juice-progress-slide 1.2s var(--juice-ease-standard) infinite; }\n @keyframes juice-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }\n\n juice-spinner { display: inline-flex; flex: none; align-items: center; justify-content: center; }\n .juice-spinner__ring {\n box-sizing: border-box;\n width: 1.5rem;\n height: 1.5rem;\n border: 2px solid var(--juice-color-border-strong);\n border-top-color: var(--juice-color-accent);\n border-radius: var(--juice-radius-full);\n animation: juice-spinner-spin 800ms linear infinite;\n }\n juice-spinner[data-size='sm'] .juice-spinner__ring { width: 1rem; height: 1rem; }\n juice-spinner[data-size='lg'] .juice-spinner__ring { width: 2.5rem; height: 2.5rem; border-width: 3px; }\n @media (prefers-reduced-motion: reduce) {\n .juice-spinner__ring { animation-duration: 3s; }\n juice-progress[data-indeterminate] .juice-progress__bar { animation-duration: 4s; }\n }\n @keyframes juice-spinner-spin { to { transform: rotate(360deg); } }\n .juice-visually-hidden {\n position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;\n clip-path: inset(50%); white-space: nowrap; border: 0;\n }\n\n .juice-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--juice-space-3);\n padding: var(--juice-space-8);\n color: var(--juice-color-text);\n font-family: var(--juice-font-sans);\n text-align: center;\n }\n .juice-state__icon { color: var(--juice-color-text-muted); }\n .juice-state__title { margin: 0; font-size: var(--juice-text-lg); font-weight: var(--juice-weight-semibold); }\n .juice-state__text { margin: 0; max-width: 40ch; color: var(--juice-color-text-muted); font-size: var(--juice-text-sm); }\n .juice-state--error .juice-state__title { color: var(--juice-color-bad); }\n`;\n\nconst COMMON = { changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: STYLES } as const;\n\n/** Small status pill. The tone is conveyed by the text, so do not rely on colour alone. */\n@Component({\n selector: 'juice-badge',\n template: '<ng-content />',\n ...COMMON,\n host: { '[attr.data-tone]': 'tone()' },\n})\nexport class JuiceBadge {\n readonly tone = input<JuiceBadgeTone>('neutral');\n}\n\n/** Progress bar. With a `value` (0..max) it reports `aria-valuenow`; without one it is indeterminate. */\n@Component({\n selector: 'juice-progress',\n template: `<div class=\"juice-progress__bar\" [style.width.%]=\"percent()\"></div>`,\n ...COMMON,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'max()',\n '[attr.aria-valuenow]': 'clamped()',\n '[attr.aria-label]': 'label()',\n '[attr.data-indeterminate]': 'clamped() === null ? \"\" : null',\n },\n})\nexport class JuiceProgress {\n readonly value = input<number | null | undefined, unknown>(null, {\n transform: (v: unknown) => (v === null || v === undefined || v === '' || Number.isNaN(Number(v)) ? null : Number(v)),\n });\n readonly max = input(100, { transform: numberAttribute });\n readonly label = input('Progress');\n\n protected readonly clamped = computed(() => {\n const v = this.value();\n return v == null ? null : Math.min(Math.max(v, 0), this.max());\n });\n protected readonly percent = computed(() => {\n const v = this.clamped();\n return v == null || this.max() <= 0 ? null : (v / this.max()) * 100;\n });\n}\n\n/** Indeterminate activity indicator. The label is read by assistive tech through `role=status`. */\n@Component({\n selector: 'juice-spinner',\n template: `<span class=\"juice-spinner__ring\" aria-hidden=\"true\"></span><span class=\"juice-visually-hidden\">{{ label() }}</span>`,\n ...COMMON,\n host: { role: 'status', '[attr.data-size]': 'size()' },\n})\nexport class JuiceSpinner {\n readonly size = input<JuiceSpinnerSize>('md');\n readonly label = input('Loading');\n}\n\n/** Nothing-here state with an optional icon, description and a projected action. */\n@Component({\n selector: 'juice-empty-state',\n imports: [JuiceIcon],\n template: `\n @if (icon()) {\n <juice-icon class=\"juice-state__icon\" [name]=\"icon()\" [size]=\"32\" />\n }\n <p class=\"juice-state__title\">{{ title() }}</p>\n @if (description()) {\n <p class=\"juice-state__text\">{{ description() }}</p>\n }\n <ng-content />\n `,\n ...COMMON,\n host: { class: 'juice-state' },\n})\nexport class JuiceEmptyState {\n readonly icon = input('');\n readonly title = input.required<string>();\n readonly description = input('');\n}\n\n/** Loading placeholder for a region: spinner plus visible label. */\n@Component({\n selector: 'juice-loading-state',\n imports: [JuiceSpinner],\n template: `<juice-spinner [label]=\"label()\" /><p class=\"juice-state__text\" aria-hidden=\"true\">{{ label() }}</p>`,\n ...COMMON,\n host: { class: 'juice-state' },\n})\nexport class JuiceLoadingState {\n readonly label = input('Loading');\n}\n\n/** Failure state with a retry action. `error` may be an `Error`, a string or anything else (shown generically). */\n@Component({\n selector: 'juice-error-state',\n imports: [JuiceButton],\n template: `\n <p class=\"juice-state__title\">{{ title() }}</p>\n @if (message()) {\n <p class=\"juice-state__text\">{{ message() }}</p>\n }\n <button juiceButton variant=\"secondary\" (click)=\"retry.emit()\">{{ retryLabel() }}</button>\n `,\n ...COMMON,\n host: { class: 'juice-state juice-state--error', role: 'alert' },\n})\nexport class JuiceErrorState {\n readonly title = input('Something went wrong');\n readonly error = input<unknown>(null);\n readonly retryLabel = input('Try again');\n readonly retry = output<void>();\n\n protected readonly message = computed(() => {\n const e = this.error();\n if (typeof e === 'string') return e;\n if (e instanceof Error) return e.message;\n return '';\n });\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DOCUMENT"],"mappings":";;;;;;;;AAgBA,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+FrB;AAED;;;AAGG;MAcU,WAAW,CAAA;AAKtB,IAAA,WAAA,GAAA;QAJS,IAAA,CAAA,OAAO,GAAG,KAAK,CAAqB,WAA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,EAAE,mBAAmB;oBAC7B,OAAO,EAAE,CAAC,WAAW,CAAC;AACtB,oBAAA,QAAQ,EAAE;;;;;;AAMT,EAAA,CAAA;AACD,oBAAA,GAAG,MAAM;oBACT,IAAI,EAAE,EAAE,KAAK,EAAE,gCAAgC,EAAE,IAAI,EAAE,OAAO,EAAE;AACjE,iBAAA;;;ACvLD;;AAEG;;;;"}
1
+ {"version":3,"file":"juice-js-ui.mjs","sources":["../../../../projects/juice-js/ui/src/lib/button/button.ts","../../../../projects/juice-js/ui/src/lib/core/style-loader.ts","../../../../projects/juice-js/ui/src/lib/field/field.ts","../../../../projects/juice-js/ui/src/lib/responsive/breakpoints.ts","../../../../projects/juice-js/ui/src/lib/responsive/responsive.ts","../../../../projects/juice-js/ui/src/lib/select/select.ts","../../../../projects/juice-js/ui/src/lib/checkbox/checkbox.ts","../../../../projects/juice-js/ui/src/lib/feedback/feedback.ts","../../../../projects/juice-js/ui/src/lib/dialog/dialog.ts","../../../../projects/juice-js/ui/src/juice-js-ui.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n ViewEncapsulation,\n afterNextRender,\n booleanAttribute,\n inject,\n input,\n isDevMode,\n} from '@angular/core';\n\nexport type JuiceButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';\nexport type JuiceButtonSize = 'sm' | 'md' | 'lg';\n\nconst BUTTON_STYLES = `\n [juiceButton], [juiceIconButton] {\n box-sizing: border-box;\n position: relative;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--juice-space-2);\n min-height: var(--juice-control-height-md);\n max-width: 100%;\n padding: var(--juice-space-1) var(--juice-space-4);\n border: 1px solid transparent;\n border-radius: var(--juice-radius-md);\n background: transparent;\n color: var(--juice-color-text);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-text-sm);\n font-weight: var(--juice-weight-medium);\n /* Labels wrap rather than push the button past its container (long Vietnamese labels): 1.25 keeps stacked diacritics\n clear of the next line; break-word only breaks a word that alone is wider than the container (an id, a URL). */\n line-height: 1.25;\n text-align: center;\n text-decoration: none;\n white-space: normal;\n overflow-wrap: break-word;\n cursor: pointer;\n user-select: none;\n transition: background-color var(--juice-duration-fast) var(--juice-ease-standard),\n border-color var(--juice-duration-fast) var(--juice-ease-standard),\n color var(--juice-duration-fast) var(--juice-ease-standard);\n }\n [juiceButton][data-size='sm'] { min-height: var(--juice-control-height-sm); padding: var(--juice-space-1) var(--juice-space-3); font-size: var(--juice-text-xs); }\n [juiceButton][data-size='lg'] { min-height: var(--juice-control-height-lg); padding: var(--juice-space-1) var(--juice-space-6); font-size: var(--juice-text-md); }\n [juiceIconButton] {\n flex: none;\n width: var(--juice-control-height-md);\n height: var(--juice-control-height-md);\n padding: 0;\n white-space: nowrap;\n }\n /* The hit area is never smaller than --juice-target-size (24px with a mouse, 44px with touch) even where the visible\n button is: an invisible box centred on it. The visual size does not change. */\n [juiceButton][data-size='sm']::after, [juiceIconButton]::after {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: max(100%, var(--juice-target-size));\n height: max(100%, var(--juice-target-size));\n transform: translate(-50%, -50%);\n }\n [juiceButton]:focus-visible, [juiceIconButton]:focus-visible {\n outline: 2px solid var(--juice-button-focus-ring);\n outline-offset: 2px;\n }\n /* Interaction (README, Interaction tokens): filled variants lighten slightly on hover and deepen on press in dark, and\n deepen on both in light; outlined and ghost variants step the surface. Hover and press never apply to a disabled\n button: :where() keeps that guard at zero specificity, so the disabled rule below still wins on its own. */\n [juiceButton][data-variant='primary'] { background: var(--juice-button-bg); color: var(--juice-button-fg); }\n [juiceButton][data-variant='primary']:where(:not(:disabled, [aria-disabled='true'])):hover { background: var(--juice-button-hover-bg); }\n [juiceButton][data-variant='primary']:where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-active-bg); }\n [juiceButton][data-variant='secondary'] {\n background: var(--juice-button-secondary-bg);\n border-color: var(--juice-button-secondary-border);\n color: var(--juice-button-secondary-fg);\n }\n [juiceButton][data-variant='secondary']:where(:not(:disabled, [aria-disabled='true'])):hover {\n background: var(--juice-button-secondary-hover-bg);\n border-color: var(--juice-button-secondary-hover-border);\n }\n [juiceButton][data-variant='secondary']:where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-secondary-active-bg); }\n [juiceButton][data-variant='ghost'], [juiceIconButton] { color: var(--juice-button-ghost-fg); }\n :is([juiceButton][data-variant='ghost'], [juiceIconButton]):where(:not(:disabled, [aria-disabled='true'])):hover { background: var(--juice-button-ghost-hover-bg); }\n :is([juiceButton][data-variant='ghost'], [juiceIconButton]):where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-ghost-active-bg); }\n [juiceButton][data-variant='danger'] { background: var(--juice-button-danger-bg); color: var(--juice-button-danger-fg); }\n [juiceButton][data-variant='danger']:where(:not(:disabled, [aria-disabled='true'])):hover { background: var(--juice-button-danger-hover-bg); }\n [juiceButton][data-variant='danger']:where(:not(:disabled, [aria-disabled='true'])):active { background: var(--juice-button-danger-active-bg); }\n [juiceButton]:disabled, [juiceIconButton]:disabled, [juiceButton][aria-disabled='true'] {\n background: var(--juice-button-disabled-bg);\n border-color: transparent;\n color: var(--juice-button-disabled-fg);\n cursor: not-allowed;\n }\n [juiceButton][data-loading] { cursor: progress; }\n .juice-button__spinner {\n box-sizing: border-box;\n width: 1em;\n height: 1em;\n border: 2px solid currentColor;\n border-right-color: transparent;\n border-radius: var(--juice-radius-full);\n animation: juice-button-spin 700ms linear infinite;\n }\n @media (prefers-reduced-motion: reduce) { .juice-button__spinner { animation-duration: 3s; } }\n @keyframes juice-button-spin { to { transform: rotate(360deg); } }\n`;\n\n/**\n * Button or link styled as a button. `loading` sets `aria-busy` and swallows activation (the element stays focusable\n * and does not use `disabled`, so focus is not lost while busy).\n */\n@Component({\n selector: 'button[juiceButton], a[juiceButton]',\n template: `@if (loading()) {<span class=\"juice-button__spinner\" aria-hidden=\"true\"></span>}<span class=\"juice-button__label\"><ng-content /></span>`,\n styles: BUTTON_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-loading]': 'loading() ? \"\" : null',\n '[attr.aria-busy]': 'loading() ? \"true\" : null',\n },\n})\nexport class JuiceButton {\n readonly variant = input<JuiceButtonVariant>('secondary');\n readonly size = input<JuiceButtonSize>('md');\n readonly loading = input(false, { transform: booleanAttribute });\n\n constructor() {\n const el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n if (el.tagName === 'BUTTON' && !el.hasAttribute('type')) el.setAttribute('type', 'button');\n // Capture phase on the target itself runs before the consumer's (click) handler, so loading blocks it.\n const block = (e: Event) => {\n if (this.loading()) {\n e.preventDefault();\n e.stopImmediatePropagation();\n }\n };\n el.addEventListener('click', block, true);\n inject(DestroyRef).onDestroy(() => el.removeEventListener('click', block, true));\n }\n}\n\n/** Square icon-only button. It has no visible text, so an `aria-label` (or `aria-labelledby`) is required. */\n@Component({\n selector: 'button[juiceIconButton]',\n template: `<ng-content />`,\n styles: BUTTON_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class JuiceIconButton {\n constructor() {\n const el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n if (!el.hasAttribute('type')) el.setAttribute('type', 'button');\n if (isDevMode()) {\n afterNextRender(() => {\n if (!el.getAttribute('aria-label')?.trim() && !el.getAttribute('aria-labelledby')?.trim()) {\n console.error('[juiceIconButton] An icon button needs an aria-label (or aria-labelledby).', el);\n }\n });\n }\n }\n}\n","import { ApplicationRef, EnvironmentInjector, Type, createComponent, inject } from '@angular/core';\n\nconst loaded = new WeakMap<ApplicationRef, Set<Type<unknown>>>();\n\nlet counter = 0;\n\n/** Next unique DOM id with the given prefix (unique per page, not per component). */\nexport function nextId(prefix: string): string {\n return `${prefix}-${++counter}`;\n}\n\n/**\n * Directives on native elements (`input[juiceInput]`) cannot own styles. This instantiates a hidden component whose\n * `ViewEncapsulation.None` styles Angular adds to the document once per application. Call it from an injection context.\n */\nexport function loadStyles(styleHost: Type<unknown>): void {\n const appRef = inject(ApplicationRef);\n const env = inject(EnvironmentInjector);\n let set = loaded.get(appRef);\n if (!set) loaded.set(appRef, (set = new Set()));\n if (set.has(styleHost)) return;\n set.add(styleHost);\n createComponent(styleHost, { environmentInjector: env });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n Directive,\n DoCheck,\n ElementRef,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { NgControl } from '@angular/forms';\nimport { loadStyles, nextId } from '../core/style-loader';\n\n// One rulebook for every text control (input, textarea, and the select trigger, which reads the same tokens):\n// content 14/20, label 13/20 medium, assistance 12/16; one edge; focus = accent edge + soft halo, never a second outline.\nconst FIELD_STYLES = `\n juice-field { display: flex; flex-direction: column; font-family: var(--juice-font-sans); }\n .juice-field__label {\n margin-bottom: var(--juice-field-label-gap);\n color: var(--juice-field-label);\n font-size: var(--juice-field-label-font-size);\n font-weight: var(--juice-field-label-font-weight);\n line-height: 1.25rem;\n }\n .juice-field__message {\n display: flex;\n align-items: flex-start;\n gap: 0.375rem;\n margin-top: var(--juice-field-message-gap);\n color: var(--juice-field-hint);\n font-size: var(--juice-field-message-font-size);\n line-height: var(--juice-field-message-line-height);\n }\n .juice-field__message[data-status='error'] { color: var(--juice-field-error); }\n .juice-field__message[data-status='warning'] { color: var(--juice-field-warning); }\n .juice-field__message[data-status='success'] { color: var(--juice-field-success); }\n .juice-field__icon { flex: none; width: 0.875rem; height: 0.875rem; margin-top: 1px; }\n .juice-field__counter { margin-left: auto; padding-left: var(--juice-space-2); color: var(--juice-field-counter-fg); font-variant-numeric: tabular-nums; white-space: nowrap; }\n .juice-field__counter[data-level='near'] { color: var(--juice-field-warning); }\n .juice-field__counter[data-level='limit'] { color: var(--juice-field-error); }\n .juice-field__live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }\n\n :is(input, textarea)[juiceInput] {\n box-sizing: border-box;\n width: 100%;\n min-height: var(--juice-field-height);\n margin: 0;\n padding: 0 var(--juice-field-padding-x);\n border: 1px solid var(--juice-field-border);\n border-radius: var(--juice-field-radius);\n background: var(--juice-field-bg);\n color: var(--juice-field-fg);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-field-font-size);\n line-height: var(--juice-field-line-height);\n transition:\n border-color var(--juice-field-duration) var(--juice-field-ease),\n box-shadow var(--juice-field-duration) var(--juice-field-ease);\n }\n textarea[juiceInput] {\n display: block;\n min-height: var(--juice-field-textarea-min-height);\n padding-block: var(--juice-field-textarea-padding-y);\n resize: vertical;\n }\n :is(input, textarea)[juiceInput]::placeholder { color: var(--juice-field-placeholder); opacity: 1; }\n :is(input, textarea)[juiceInput]:enabled:not([readonly]):hover { border-color: var(--juice-field-border-hover); }\n :is(input, textarea)[juiceInput]:focus {\n outline: none;\n border-color: var(--juice-field-border-focus);\n box-shadow: 0 0 0 3px var(--juice-field-focus-halo);\n }\n :is(input, textarea)[juiceInput][data-status='error'] { border-color: var(--juice-field-error); }\n :is(input, textarea)[juiceInput][data-status='error']:focus { box-shadow: 0 0 0 3px var(--juice-field-error-halo); }\n :is(input, textarea)[juiceInput][data-status='warning'] { border-color: var(--juice-field-warning); }\n :is(input, textarea)[juiceInput][data-status='warning']:focus { box-shadow: 0 0 0 3px var(--juice-field-warning-halo); }\n :is(input, textarea)[juiceInput][data-status='success'] { border-color: var(--juice-field-success); }\n :is(input, textarea)[juiceInput][data-status='success']:focus { box-shadow: 0 0 0 3px var(--juice-field-success-halo); }\n :is(input, textarea)[juiceInput][readonly] { background: var(--juice-field-readonly-bg); border-color: var(--juice-field-readonly-border); }\n :is(input, textarea)[juiceInput]:disabled {\n background: var(--juice-field-disabled-bg);\n border-color: var(--juice-field-disabled-border);\n color: var(--juice-field-disabled-fg);\n cursor: not-allowed;\n }\n :is(input, textarea)[juiceInput]:disabled::placeholder { color: var(--juice-field-disabled-fg); }\n @media (prefers-reduced-motion: reduce) { :is(input, textarea)[juiceInput] { transition: none; } }\n /* Forced colours drop box-shadow, so focus falls back to a system-coloured outline. */\n @media (forced-colors: active) { :is(input, textarea)[juiceInput]:focus { outline: 2px solid CanvasText; outline-offset: 1px; } }\n`;\n\nexport type JuiceFieldStatus = 'error' | 'warning' | 'success';\n\n/** What a control inside `<juice-field>` needs from it. */\nexport interface JuiceFieldControl {\n readonly controlId: string;\n readonly labelId: string;\n readonly describedBy: () => string | null;\n readonly invalid: () => boolean;\n}\n\n/**\n * Label, hint, status message and optional character counter for one form control. The projected `[juiceInput]` (or\n * `<juice-select>`) gets the id the label points at, `aria-describedby` for the message and counter, `aria-invalid` for\n * an error, and `data-status` for its edge. A status message (error over warning over success) replaces the hint while it\n * shows. `counter` shows `length / maxlength` for a control with a `maxlength`; screen readers hear only the 90% and limit\n * thresholds, not every keystroke.\n */\n@Component({\n selector: 'juice-field',\n template: `\n <label class=\"juice-field__label\" [id]=\"labelId\" [attr.for]=\"controlId\">{{ label() }}</label>\n <ng-content />\n @if (message() || showCounter()) {\n <div class=\"juice-field__message\" [attr.data-status]=\"status()\">\n @if (message()) {\n @switch (status()) {\n @case ('error') {\n <svg class=\"juice-field__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"M12 8v4M12 16h.01\" /></svg>\n }\n @case ('warning') {\n <svg class=\"juice-field__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3\" /><path d=\"M12 9v4M12 17h.01\" /></svg>\n }\n @case ('success') {\n <svg class=\"juice-field__icon\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"12\" cy=\"12\" r=\"10\" /><path d=\"m9 12 2 2 4-4\" /></svg>\n }\n }\n <span [id]=\"messageId\">{{ message() }}</span>\n }\n @if (showCounter()) {\n <span class=\"juice-field__counter\" [id]=\"counterId\" [attr.data-level]=\"level()\">{{ length() }} / {{ max() }}</span>\n }\n </div>\n }\n @if (showCounter()) {\n <span class=\"juice-field__live\" aria-live=\"polite\">{{ announcement() }}</span>\n }\n `,\n styles: FIELD_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class JuiceField implements JuiceFieldControl {\n readonly label = input.required<string>();\n readonly hint = input<string>('');\n readonly error = input<string>('');\n readonly warning = input<string>('');\n readonly success = input<string>('');\n readonly counter = input(false, { transform: booleanAttribute });\n\n readonly controlId = nextId('juice-field');\n readonly messageId = `${this.controlId}-message`;\n readonly counterId = `${this.controlId}-counter`;\n readonly labelId = `${this.controlId}-label`;\n /** @deprecated since 3.0: the hint and the status message share one element; use `messageId`. */\n readonly hintId = this.messageId;\n /** @deprecated since 3.0: use `messageId`. */\n readonly errorId = this.messageId;\n\n /** Length and `maxlength` of the projected control, reported by `[juiceInput]`. */\n readonly length = signal(0);\n readonly max = signal<number | null>(null);\n\n readonly status = computed<JuiceFieldStatus | null>(() =>\n this.error() ? 'error' : this.warning() ? 'warning' : this.success() ? 'success' : null,\n );\n readonly message = computed(() => {\n const s = this.status();\n return s === 'error' ? this.error() : s === 'warning' ? this.warning() : s === 'success' ? this.success() : this.hint();\n });\n readonly invalid = () => !!this.error();\n\n protected readonly showCounter = computed(() => this.counter() && this.max() !== null);\n protected readonly level = computed<'near' | 'limit' | null>(() => {\n const max = this.max();\n if (!this.counter() || max === null || max <= 0) return null;\n const n = this.length();\n return n >= max ? 'limit' : n >= max * 0.9 ? 'near' : null;\n });\n protected readonly announcement = computed(() =>\n this.level() === 'limit' ? 'Character limit reached' : this.level() === 'near' ? 'Approaching the character limit' : '',\n );\n\n readonly describedBy = computed(() => {\n const ids = [this.message() ? this.messageId : '', this.showCounter() ? this.counterId : ''].filter(Boolean);\n return ids.length ? ids.join(' ') : null;\n });\n}\n\n/** Styles for the text input and textarea, wired to a surrounding `<juice-field>` when there is one. */\n@Directive({\n selector: 'input[juiceInput], textarea[juiceInput]',\n host: {\n '[attr.id]': 'field?.controlId ?? null',\n '[attr.aria-describedby]': 'field?.describedBy() ?? null',\n '[attr.aria-invalid]': 'invalid() ? \"true\" : null',\n '[attr.data-status]': 'status()',\n '(blur)': 'sync()',\n '(input)': 'sync()',\n },\n})\nexport class JuiceInput implements DoCheck {\n protected readonly field = inject(JuiceField, { optional: true });\n private readonly control = inject(NgControl, { optional: true, self: true });\n private readonly el = inject<ElementRef<HTMLInputElement | HTMLTextAreaElement>>(ElementRef).nativeElement;\n private readonly state = signal(false);\n\n /** Invalid is shown only once the user has touched the control (or the field was given an error without a form control). */\n protected readonly invalid = computed(() => this.state() || (!this.control && !!this.field?.error()));\n /** The field's status edge; an error edge waits for `invalid`, like `aria-invalid`. */\n protected readonly status = computed(() => {\n const s = this.field?.status() ?? null;\n return s === 'error' && !this.invalid() && !!this.control ? null : s;\n });\n\n constructor() {\n loadStyles(JuiceFieldStyles);\n }\n\n ngDoCheck(): void {\n this.sync();\n }\n\n protected sync(): void {\n const c = this.control;\n this.state.set(!!c && !!c.invalid && !!c.touched);\n const f = this.field;\n if (f) {\n f.length.set(this.el.value.length);\n f.max.set(this.el.maxLength > 0 ? this.el.maxLength : null);\n }\n }\n}\n\n@Component({ selector: 'juice-field-styles', template: '', styles: FIELD_STYLES, encapsulation: ViewEncapsulation.None })\nclass JuiceFieldStyles {}\n","// Generated by @juice-js/design-tokens (build.mjs) from tokens.mjs, do not edit. One source: BREAKPOINTS.\n\n/** The minimum width of each viewport range, in px (mobile is everything below tablet). */\nexport const JUICE_BREAKPOINTS = {\n tablet: 768,\n desktop: 1024,\n wide: 1440\n} as const;\n\n/** Container-query steps, in px. */\nexport const JUICE_CONTAINER_BREAKPOINTS = {\n sm: 480,\n md: 768\n} as const;\n\n/** The narrowest designed width, and the one nothing may break at. */\nexport const JUICE_MOBILE_MIN = 360;\nexport const JUICE_MOBILE_FLOOR = 320;\n\n/** Media queries (em: px / 16) for matchMedia and for component styles. */\nexport const JUICE_MEDIA = {\n mobile: '(width < 48em)',\n tablet: '(48em <= width < 64em)',\n desktop: '(width >= 64em)',\n wide: '(width >= 90em)',\n tabletUp: '(width >= 48em)',\n coarse: '(pointer: coarse)',\n anyCoarse: '(any-pointer: coarse)'\n} as const;\n\n/** Container-query widths (em), for `@container (width < ${JUICE_CONTAINER.sm})`. */\nexport const JUICE_CONTAINER = {\n sm: '30em',\n md: '48em'\n} as const;\n\n/** A viewport range. */\nexport type JuiceViewportSize = 'mobile' | 'tablet' | 'desktop';\n","import {\n DOCUMENT, DestroyRef, EnvironmentProviders, Injectable, InjectionToken, PLATFORM_ID, Signal, computed, inject, makeEnvironmentProviders,\n signal,\n} from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { JUICE_MEDIA, JuiceViewportSize } from './breakpoints';\n\n/** The effective pointer: decides touch sizing (44px targets, 16px inputs) or mouse sizing. */\nexport type JuicePointer = 'touch' | 'fine';\n\nexport interface JuiceResponsiveOptions {\n /**\n * `auto` (default): touch on a coarse primary pointer (CSS alone does this); on a hybrid device (a touch laptop, a tablet\n * with a mouse) the last input decides. `touch` or `fine` force it for the whole page (`data-pointer` on `<html>`).\n */\n pointer?: 'auto' | JuicePointer;\n}\n\nexport const JUICE_RESPONSIVE_OPTIONS = new InjectionToken<JuiceResponsiveOptions>('JUICE_RESPONSIVE_OPTIONS');\n\n/** Options for {@link JuiceResponsive}: `provideJuiceResponsive({ pointer: 'touch' })` for a kiosk. */\nexport function provideJuiceResponsive(options: JuiceResponsiveOptions): EnvironmentProviders {\n return makeEnvironmentProviders([{ provide: JUICE_RESPONSIVE_OPTIONS, useValue: options }]);\n}\n\n/**\n * The viewport range and the pointer, as signals, from the generated breakpoints (one source: the design tokens). Correct before\n * the first render, so a phone never paints the desktop shell first. On the server: desktop and fine, and nothing is touched.\n *\n * Hybrid devices (primary pointer fine, some pointer coarse): a touch sets `data-pointer=\"touch\"` on `<html>`, a mouse press sets\n * it back to `fine`; a pen counts as a mouse. It changes only on an input of the other kind, so it never flickers.\n */\n@Injectable({ providedIn: 'root' })\nexport class JuiceResponsive {\n private readonly doc = inject(DOCUMENT);\n private readonly options = inject(JUICE_RESPONSIVE_OPTIONS, { optional: true }) ?? {};\n private readonly browser = isPlatformBrowser(inject(PLATFORM_ID));\n private readonly destroyRef = inject(DestroyRef);\n\n private readonly media = {\n mobile: this.watch(JUICE_MEDIA.mobile, false),\n tablet: this.watch(JUICE_MEDIA.tablet, false),\n wide: this.watch(JUICE_MEDIA.wide, false),\n coarse: this.watch(JUICE_MEDIA.coarse, false),\n anyCoarse: this.watch(JUICE_MEDIA.anyCoarse, false),\n };\n private readonly lastInput = signal<JuicePointer | null>(null);\n\n /** Below 768px. */\n readonly mobile: Signal<boolean> = this.media.mobile;\n /** 768–1023px. */\n readonly tablet: Signal<boolean> = this.media.tablet;\n /** 1024px and up. */\n readonly desktop: Signal<boolean> = computed(() => !this.media.mobile() && !this.media.tablet());\n /** 1440px and up. */\n readonly wide: Signal<boolean> = this.media.wide;\n readonly size: Signal<JuiceViewportSize> = computed(() => (this.media.mobile() ? 'mobile' : this.media.tablet() ? 'tablet' : 'desktop'));\n /** A mouse-first device that also has a touch screen. */\n readonly hybrid: Signal<boolean> = computed(() => !this.media.coarse() && this.media.anyCoarse());\n /** Touch or mouse sizing, as the page shows it now. */\n readonly pointer: Signal<JuicePointer> = computed(() => {\n const forced = this.options.pointer;\n if (forced === 'touch' || forced === 'fine') return forced;\n if (this.media.coarse()) return 'touch';\n return this.hybrid() ? (this.lastInput() ?? 'fine') : 'fine';\n });\n\n constructor() {\n if (!this.browser) return;\n const forced = this.options.pointer;\n if (forced === 'touch' || forced === 'fine') {\n this.doc.documentElement.setAttribute('data-pointer', forced);\n return;\n }\n const onPointer = (e: PointerEvent) => {\n if (!this.hybrid()) return;\n const kind: JuicePointer = e.pointerType === 'touch' ? 'touch' : 'fine';\n if (kind === (this.lastInput() ?? 'fine') && this.doc.documentElement.hasAttribute('data-pointer')) return;\n this.lastInput.set(kind);\n this.doc.documentElement.setAttribute('data-pointer', kind);\n };\n // Capture: a control that stops propagation still counts, and the attribute is set before the press is handled.\n this.doc.addEventListener('pointerdown', onPointer, { capture: true, passive: true });\n this.destroyRef.onDestroy(() => this.doc.removeEventListener('pointerdown', onPointer, { capture: true }));\n }\n\n private watch(query: string, fallback: boolean): Signal<boolean> {\n const value = signal(fallback);\n if (!this.browser) return value.asReadonly();\n const mql = this.doc.defaultView?.matchMedia?.(query);\n if (!mql) return value.asReadonly();\n value.set(mql.matches);\n const onChange = (e: MediaQueryListEvent) => value.set(e.matches);\n mql.addEventListener('change', onChange);\n this.destroyRef.onDestroy(() => mql.removeEventListener('change', onChange));\n return value.asReadonly();\n }\n}\n","import { ActiveDescendantKeyManager, Highlightable } from '@angular/cdk/a11y';\nimport { CdkConnectedOverlay, CdkOverlayOrigin, ConnectedPosition, Overlay, ScrollStrategy } from '@angular/cdk/overlay';\nimport {\n AfterContentChecked,\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n InjectionToken,\n Injector,\n Signal,\n ViewEncapsulation,\n booleanAttribute,\n computed,\n contentChildren,\n forwardRef,\n inject,\n input,\n model,\n signal,\n viewChild,\n} from '@angular/core';\nimport { DOCUMENT } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { JuiceField } from '../field/field';\nimport { nextId } from '../core/style-loader';\nimport { JuiceResponsive } from '../responsive/responsive';\n\n/** What an option needs from its select. */\ninterface JuiceSelectHost {\n readonly value: Signal<unknown>;\n choose(option: JuiceOption): void;\n activate(option: JuiceOption): void;\n}\nconst JUICE_SELECT_HOST = new InjectionToken<JuiceSelectHost>('JUICE_SELECT_HOST');\n\n// The trigger follows the text-field rulebook exactly (it reads the --juice-field-* tokens); the list reads --juice-listbox-*.\nconst SELECT_STYLES = `\n juice-select { display: block; position: relative; font-family: var(--juice-font-sans); }\n .juice-select__trigger {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--juice-space-2);\n width: 100%;\n min-height: var(--juice-field-height);\n margin: 0;\n padding: 0 var(--juice-field-padding-x);\n border: 1px solid var(--juice-field-border);\n border-radius: var(--juice-field-radius);\n background: var(--juice-field-bg);\n color: var(--juice-field-fg);\n font-family: inherit;\n font-size: var(--juice-field-font-size);\n line-height: var(--juice-field-line-height);\n text-align: start;\n cursor: pointer;\n transition:\n border-color var(--juice-field-duration) var(--juice-field-ease),\n box-shadow var(--juice-field-duration) var(--juice-field-ease);\n }\n .juice-select__trigger:enabled:hover { border-color: var(--juice-field-border-hover); }\n .juice-select__trigger:focus-visible,\n .juice-select__trigger[aria-expanded='true'] {\n outline: none;\n border-color: var(--juice-field-border-focus);\n box-shadow: 0 0 0 3px var(--juice-field-focus-halo);\n }\n .juice-select__trigger[data-status='error'] { border-color: var(--juice-field-error); }\n .juice-select__trigger[data-status='error']:is(:focus-visible, [aria-expanded='true']) { box-shadow: 0 0 0 3px var(--juice-field-error-halo); }\n .juice-select__trigger[data-status='warning'] { border-color: var(--juice-field-warning); }\n .juice-select__trigger[data-status='warning']:is(:focus-visible, [aria-expanded='true']) { box-shadow: 0 0 0 3px var(--juice-field-warning-halo); }\n .juice-select__trigger[data-status='success'] { border-color: var(--juice-field-success); }\n .juice-select__trigger[data-status='success']:is(:focus-visible, [aria-expanded='true']) { box-shadow: 0 0 0 3px var(--juice-field-success-halo); }\n .juice-select__trigger:disabled {\n background: var(--juice-field-disabled-bg);\n border-color: var(--juice-field-disabled-border);\n color: var(--juice-field-disabled-fg);\n cursor: not-allowed;\n }\n .juice-select__value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }\n .juice-select__placeholder { color: var(--juice-field-placeholder); }\n .juice-select__trigger:disabled .juice-select__placeholder { color: inherit; }\n .juice-select__chevron {\n flex: none;\n width: 1rem;\n height: 1rem;\n color: var(--juice-listbox-chevron);\n transition: transform var(--juice-field-duration) var(--juice-field-ease);\n }\n .juice-select__trigger[aria-expanded='true'] .juice-select__chevron { transform: rotate(180deg); }\n /* The CDK pane is a flex box: the panel must grow to fill it, or it shrinks to its content under a wide trigger. */\n .juice-select-panel {\n box-sizing: border-box;\n flex: 1 1 auto;\n width: 100%;\n max-height: var(--juice-listbox-max-height);\n margin: 0;\n padding: var(--juice-listbox-padding);\n overflow-y: auto;\n border: 1px solid var(--juice-listbox-border);\n border-radius: var(--juice-listbox-radius);\n background: var(--juice-listbox-bg);\n color: var(--juice-listbox-fg);\n box-shadow: var(--juice-listbox-shadow);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-field-font-size);\n line-height: var(--juice-field-line-height);\n animation: juice-select-in var(--juice-field-duration) var(--juice-field-ease);\n }\n @keyframes juice-select-in { from { opacity: 0; transform: translateY(-2px); } }\n juice-option {\n display: flex;\n align-items: center;\n gap: var(--juice-listbox-option-gap);\n min-height: var(--juice-listbox-option-height);\n padding: 0 var(--juice-listbox-option-padding-x);\n border-radius: var(--juice-listbox-option-radius);\n cursor: pointer;\n }\n /* Options wrap instead of truncating: on a narrow screen the rest of a long option is otherwise unreadable. */\n .juice-option__label { flex: 1 1 auto; min-width: 0; padding-block: var(--juice-space-1); overflow-wrap: anywhere; }\n .juice-option__check { flex: none; width: 1rem; height: 1rem; color: var(--juice-listbox-option-check); }\n juice-option.juice-option--active { background: var(--juice-listbox-option-active-bg); }\n juice-option[aria-selected='true'] { background: var(--juice-listbox-option-selected-bg); color: var(--juice-listbox-option-selected-fg); }\n juice-option[aria-selected='true'].juice-option--active { background: var(--juice-listbox-option-active-bg); }\n juice-option[aria-disabled='true'] { color: var(--juice-listbox-option-disabled-fg); cursor: not-allowed; }\n @media (prefers-reduced-motion: reduce) {\n .juice-select__trigger, .juice-select__chevron { transition: none; }\n .juice-select-panel { animation: none; }\n }\n @media (forced-colors: active) {\n .juice-select__trigger:is(:focus-visible, [aria-expanded='true']) { outline: 2px solid CanvasText; outline-offset: 1px; }\n juice-option.juice-option--active { outline: 1px solid Highlight; }\n }\n`;\n\n/** One choice in a `<juice-select>`. Its text is the label shown in the trigger and matched by typeahead. */\n@Component({\n selector: 'juice-option',\n template: `<span class=\"juice-option__label\"><ng-content /></span>\n @if (selected()) {\n <svg class=\"juice-option__check\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M20 6 9 17l-5-5\" /></svg>\n }`,\n styles: SELECT_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n role: 'option',\n '[id]': 'id',\n '[attr.aria-selected]': 'selected() ? \"true\" : \"false\"',\n '[attr.aria-disabled]': 'isDisabled() ? \"true\" : null',\n '[class.juice-option--active]': 'active()',\n '(click)': 'select.choose(this)',\n '(mouseenter)': 'select.activate(this)',\n },\n})\nexport class JuiceOption implements Highlightable {\n readonly value = input<unknown>();\n readonly isDisabled = input(false, { alias: 'disabled', transform: booleanAttribute });\n\n readonly id = nextId('juice-option');\n protected readonly select = inject(JUICE_SELECT_HOST);\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n protected readonly active = signal(false);\n protected readonly selected = computed(() => this.select.value() === this.value());\n\n /** Read by `ListKeyManager` through `skipPredicate`. */\n get disabled(): boolean {\n return this.isDisabled();\n }\n\n getLabel(): string {\n return (this.el.textContent ?? '').trim();\n }\n setActiveStyles(): void {\n this.active.set(true);\n this.el.scrollIntoView?.({ block: 'nearest' });\n }\n setInactiveStyles(): void {\n this.active.set(false);\n }\n}\n\nconst POSITIONS: ConnectedPosition[] = [\n { originX: 'start', originY: 'bottom', overlayX: 'start', overlayY: 'top', offsetY: 4 },\n { originX: 'start', originY: 'top', overlayX: 'start', overlayY: 'bottom', offsetY: -4 },\n];\n\n/**\n * Single-select dropdown. Focus stays on the trigger (combobox pattern); the options are exposed through\n * `aria-activedescendant`. The list is an inline popover: it renders in the top layer (never clipped by `overflow` ancestors\n * or covered by drawers and dialogs) while it sits next to the trigger in the DOM, so it follows the region's theme, accent\n * and colour scheme live. It re-places itself when any ancestor scrolls.\n */\n@Component({\n selector: 'juice-select',\n imports: [CdkConnectedOverlay, CdkOverlayOrigin],\n template: `\n <button\n #trigger\n type=\"button\"\n class=\"juice-select__trigger\"\n cdkOverlayOrigin\n #origin=\"cdkOverlayOrigin\"\n role=\"combobox\"\n aria-haspopup=\"listbox\"\n [attr.id]=\"field?.controlId ?? triggerId\"\n [attr.aria-expanded]=\"open() ? 'true' : 'false'\"\n [attr.aria-controls]=\"open() ? listboxId : null\"\n [attr.aria-activedescendant]=\"open() ? activeId() : null\"\n [attr.aria-label]=\"field ? null : label() || null\"\n [attr.aria-describedby]=\"field?.describedBy() ?? null\"\n [attr.aria-invalid]=\"field && field.invalid() ? 'true' : null\"\n [attr.data-status]=\"field?.status() ?? null\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n (keydown)=\"onKeydown($event)\"\n (blur)=\"onTouched()\"\n >\n <span class=\"juice-select__value\" [class.juice-select__placeholder]=\"!hasValue()\" [attr.title]=\"hasValue() ? displayLabel() : null\">{{ displayLabel() }}</span>\n <svg class=\"juice-select__chevron\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.75\" stroke-linecap=\"round\" stroke-linejoin=\"round\" aria-hidden=\"true\" focusable=\"false\">\n <path d=\"m6 9 6 6 6-6\" />\n </svg>\n </button>\n <ng-template\n cdkConnectedOverlay\n [cdkConnectedOverlayOrigin]=\"origin\"\n [cdkConnectedOverlayOpen]=\"open()\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayMinWidth]=\"triggerWidth()\"\n [cdkConnectedOverlayWidth]=\"responsive.mobile() ? triggerWidth() : ''\"\n [cdkConnectedOverlayScrollStrategy]=\"scrollStrategy\"\n [cdkConnectedOverlayViewportMargin]=\"8\"\n cdkConnectedOverlayUsePopover=\"inline\"\n (overlayOutsideClick)=\"onOutsideClick($event)\"\n (detach)=\"close()\"\n >\n <div\n class=\"juice-select-panel\"\n role=\"listbox\"\n [id]=\"listboxId\"\n [attr.aria-label]=\"field ? null : label() || placeholder() || 'Options'\"\n [attr.aria-labelledby]=\"field ? field.labelId : null\"\n (mousedown)=\"$event.preventDefault()\"\n >\n <ng-content />\n </div>\n </ng-template>\n `,\n styles: SELECT_STYLES,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => JuiceSelect), multi: true },\n { provide: JUICE_SELECT_HOST, useExisting: forwardRef(() => JuiceSelect) },\n ],\n})\nexport class JuiceSelect implements ControlValueAccessor, AfterContentChecked, JuiceSelectHost {\n readonly placeholder = input('');\n /** Accessible name when the select is not inside a `<juice-field>`. */\n readonly label = input('');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly value = model<unknown>(undefined);\n\n protected readonly field = inject(JuiceField, { optional: true });\n protected readonly triggerId = nextId('juice-select');\n protected readonly listboxId = nextId('juice-listbox');\n protected readonly positions = POSITIONS;\n protected readonly scrollStrategy: ScrollStrategy = inject(Overlay).scrollStrategies.reposition();\n\n protected readonly open = signal(false);\n protected readonly triggerWidth = signal(0);\n /** On a phone the list is exactly as wide as the trigger (long options wrap); wider screens let it grow to its content. */\n protected readonly responsive = inject(JuiceResponsive);\n protected readonly activeId = signal<string | null>(null);\n protected readonly displayLabel = signal('');\n protected readonly hasValue = signal(false);\n private readonly cvaDisabled = signal(false);\n protected readonly isDisabled = computed(() => this.disabled() || this.cvaDisabled());\n\n private readonly options = contentChildren(JuiceOption, { descendants: true });\n private readonly trigger = viewChild.required<ElementRef<HTMLButtonElement>>('trigger');\n private readonly connected = viewChild(CdkConnectedOverlay);\n private readonly doc = inject(DOCUMENT);\n private stopScroll?: () => void;\n private readonly keys = new ActiveDescendantKeyManager<JuiceOption>(this.options, inject(Injector))\n .withTypeAhead(200)\n .withHomeAndEnd()\n .withPageUpDown()\n .skipPredicate((o) => o.disabled);\n\n private onChange: (v: unknown) => void = () => undefined;\n protected onTouched: () => void = () => undefined;\n\n constructor() {\n this.keys.change.subscribe((i) => this.activeId.set(this.options()[i]?.id ?? null));\n inject(DestroyRef).onDestroy(() => this.stopScroll?.());\n }\n\n ngAfterContentChecked(): void {\n const match = this.options().find((o) => o.value() === this.value());\n const text = match ? match.getLabel() : this.placeholder();\n if (this.displayLabel() !== text) this.displayLabel.set(text);\n if (this.hasValue() !== !!match) this.hasValue.set(!!match);\n }\n\n writeValue(v: unknown): void {\n this.value.set(v);\n }\n registerOnChange(fn: (v: unknown) => void): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n setDisabledState(d: boolean): void {\n this.cvaDisabled.set(d);\n if (d) this.close();\n }\n\n choose(option: JuiceOption): void {\n if (option.disabled) return;\n this.value.set(option.value());\n this.onChange(option.value());\n this.close();\n }\n activate(option: JuiceOption): void {\n if (!option.disabled) this.keys.setActiveItem(option);\n }\n\n protected toggle(): void {\n if (this.open()) this.close();\n else this.show();\n }\n\n private show(): void {\n if (this.isDisabled() || this.open()) return;\n const trigger = this.trigger().nativeElement;\n this.triggerWidth.set(trigger.offsetWidth);\n // Re-place the list when any ancestor scrolls (a dialog body, a drawer, a scrolled panel), not only the window.\n const onScroll = () => this.connected()?.overlayRef?.updatePosition();\n this.doc.addEventListener('scroll', onScroll, { capture: true, passive: true });\n this.stopScroll = () => this.doc.removeEventListener('scroll', onScroll, { capture: true });\n this.open.set(true);\n const items = this.options();\n const selected = items.findIndex((o) => o.value() === this.value() && !o.disabled);\n if (selected >= 0) this.keys.setActiveItem(selected);\n else this.keys.setFirstItemActive();\n }\n\n protected close(): void {\n if (!this.open()) return;\n this.stopScroll?.();\n this.stopScroll = undefined;\n this.open.set(false);\n this.keys.setActiveItem(-1);\n }\n\n protected onOutsideClick(e: MouseEvent): void {\n if (!this.trigger().nativeElement.contains(e.target as Node)) this.close();\n }\n\n protected onKeydown(e: KeyboardEvent): void {\n if (this.isDisabled() || e.altKey || e.ctrlKey || e.metaKey) return;\n const key = e.key;\n if (!this.open()) {\n if (key === 'ArrowDown' || key === 'ArrowUp' || key === 'Enter' || key === ' ') {\n e.preventDefault();\n this.show();\n } else if (key.length === 1) {\n this.show();\n this.keys.onKeydown(e);\n }\n return;\n }\n if (key === 'Escape') {\n e.preventDefault();\n e.stopPropagation();\n this.close();\n } else if (key === 'Tab') {\n this.close(); // closes without selecting; focus moves on naturally\n } else if (key === 'Enter' || key === ' ') {\n e.preventDefault();\n const active = this.keys.activeItem;\n if (active) this.choose(active);\n } else {\n this.keys.onKeydown(e);\n }\n }\n}\n","import { Component, Directive, ViewEncapsulation, booleanAttribute, effect, ElementRef, inject, input } from '@angular/core';\nimport { loadStyles } from '../core/style-loader';\n\nconst CHECKBOX_STYLES = `\n /* The marks are drawn on the box's own 16-unit grid (viewBox 0 0 16 16 = the border box), so they scale with\n --juice-checkbox-size and stay optically centred: the tick's bounding box is centred on (8, 8) and its 1.75 stroke\n matches the minus. */\n input[type='checkbox'][juiceCheckbox] {\n --_mark-check: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.75 8.25 6.9 10.4 11.25 5.6'/%3E%3C/svg%3E\");\n --_mark-minus: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.75' stroke-linecap='round'%3E%3Cpath d='M5 8h6'/%3E%3C/svg%3E\");\n appearance: none;\n box-sizing: border-box;\n position: relative;\n flex: none;\n width: var(--juice-checkbox-size);\n height: var(--juice-checkbox-size);\n margin: 0;\n border: 1px solid var(--juice-checkbox-border);\n border-radius: var(--juice-checkbox-radius);\n background: var(--juice-checkbox-bg);\n vertical-align: middle;\n cursor: pointer;\n transition:\n background-color var(--juice-checkbox-duration) var(--juice-checkbox-ease),\n border-color var(--juice-checkbox-duration) var(--juice-checkbox-ease),\n transform var(--juice-checkbox-duration) var(--juice-checkbox-ease);\n }\n input[type='checkbox'][juiceCheckbox]::after {\n content: '';\n position: absolute;\n inset: -1px;\n background: var(--juice-checkbox-checked-fg);\n -webkit-mask: var(--_mark-check) center / 100% 100% no-repeat;\n mask: var(--_mark-check) center / 100% 100% no-repeat;\n opacity: 0;\n transform: scale(0.6);\n transition:\n opacity var(--juice-checkbox-duration) var(--juice-checkbox-ease),\n transform var(--juice-checkbox-duration) var(--juice-checkbox-ease);\n }\n input[type='checkbox'][juiceCheckbox]:indeterminate::after {\n -webkit-mask-image: var(--_mark-minus);\n mask-image: var(--_mark-minus);\n }\n input[type='checkbox'][juiceCheckbox]:is(:checked, :indeterminate)::after { opacity: 1; transform: none; }\n\n /* Filled: checked and indeterminate. */\n input[type='checkbox'][juiceCheckbox]:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-checked-bg);\n background: var(--juice-checkbox-checked-bg);\n }\n\n /* Hover: the edge darkens on an empty box, the fill deepens on a filled one; the whole label is the target. */\n input[type='checkbox'][juiceCheckbox]:enabled:hover,\n label:hover > input[type='checkbox'][juiceCheckbox]:enabled {\n border-color: var(--juice-checkbox-hover-border);\n }\n input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate):hover,\n label:hover > input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-checked-hover-bg);\n background: var(--juice-checkbox-checked-hover-bg);\n }\n\n /* Pressed: a small settle, not a bounce. */\n input[type='checkbox'][juiceCheckbox]:enabled:active,\n label:active > input[type='checkbox'][juiceCheckbox]:enabled {\n background: var(--juice-checkbox-active-bg);\n transform: scale(0.92);\n }\n input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate):active,\n label:active > input[type='checkbox'][juiceCheckbox]:enabled:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-checked-active-bg);\n background: var(--juice-checkbox-checked-active-bg);\n }\n\n input[type='checkbox'][juiceCheckbox]:focus-visible {\n outline: 2px solid var(--juice-checkbox-focus-ring);\n outline-offset: 2px;\n }\n\n /* Disabled: an empty box keeps its edge; a value keeps a neutral fill and its mark, so checked and unchecked stay apart. */\n input[type='checkbox'][juiceCheckbox]:disabled {\n border-color: var(--juice-checkbox-disabled-border);\n background: var(--juice-checkbox-disabled-bg);\n cursor: not-allowed;\n }\n input[type='checkbox'][juiceCheckbox]:disabled:is(:checked, :indeterminate) {\n border-color: var(--juice-checkbox-disabled-checked-bg);\n background: var(--juice-checkbox-disabled-checked-bg);\n }\n input[type='checkbox'][juiceCheckbox]:disabled::after { background: var(--juice-checkbox-disabled-checked-fg); }\n\n /* A <label> that wraps the box: 14px Inter, 8px gap, the box centred on the first line (1lh) so long labels wrap under\n the text, not under the box. :where() keeps it at zero specificity, so apps can restyle their labels. */\n :where(label:has(> input[type='checkbox'][juiceCheckbox])) {\n display: inline-flex;\n align-items: flex-start;\n /* The whole row is the target: at least --juice-target-size tall (24px mouse, 44px touch), one line centred in it. */\n box-sizing: border-box;\n min-height: var(--juice-target-size);\n padding-block: max(0px, (var(--juice-target-size) - 1lh) / 2);\n gap: var(--juice-checkbox-label-gap);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-checkbox-label-font-size);\n font-weight: var(--juice-checkbox-label-font-weight);\n line-height: var(--juice-checkbox-label-line-height);\n color: var(--juice-checkbox-label-fg);\n cursor: pointer;\n }\n /* A box without a wrapping label still gets a target of --juice-target-size around it. */\n input[type='checkbox'][juiceCheckbox]:not(label > *)::before {\n content: '';\n position: absolute;\n top: 50%;\n left: 50%;\n width: var(--juice-target-size);\n height: var(--juice-target-size);\n transform: translate(-50%, -50%);\n }\n :where(label:has(> input[type='checkbox'][juiceCheckbox])) > input[type='checkbox'][juiceCheckbox] {\n margin-block-start: calc((1lh - var(--juice-checkbox-size)) / 2);\n }\n :where(label:has(> input[type='checkbox'][juiceCheckbox]:disabled)) {\n color: var(--juice-checkbox-label-disabled-fg);\n cursor: not-allowed;\n }\n\n @media (prefers-reduced-motion: reduce) {\n input[type='checkbox'][juiceCheckbox],\n input[type='checkbox'][juiceCheckbox]::after { transition: none; }\n input[type='checkbox'][juiceCheckbox]:enabled:active,\n label:active > input[type='checkbox'][juiceCheckbox]:enabled { transform: none; }\n }\n /* Forced colours (Windows contrast themes) drop backgrounds and masks: hand the box back to the native checkbox. */\n @media (forced-colors: active) {\n input[type='checkbox'][juiceCheckbox] { appearance: auto; border: 0; background: none; transform: none; }\n input[type='checkbox'][juiceCheckbox]::after { display: none; }\n }\n`;\n\n@Component({ selector: 'juice-checkbox-styles', template: '', styles: CHECKBOX_STYLES, encapsulation: ViewEncapsulation.None })\nclass JuiceCheckboxStyles {}\n\n/**\n * Styled native checkbox: keyboard, form and screen-reader behaviour stay the platform's. `indeterminate` sets the DOM\n * property (it has no attribute). Wrap it in a `<label>` with its text after it (the label then gets the 14px type and 8px\n * gap), or give it `aria-label`.\n */\n@Directive({ selector: 'input[type=checkbox][juiceCheckbox]' })\nexport class JuiceCheckbox {\n readonly indeterminate = input(false, { transform: booleanAttribute });\n\n constructor() {\n loadStyles(JuiceCheckboxStyles);\n const el = inject<ElementRef<HTMLInputElement>>(ElementRef).nativeElement;\n effect(() => {\n el.indeterminate = this.indeterminate();\n });\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n ViewEncapsulation,\n computed,\n input,\n numberAttribute,\n output,\n} from '@angular/core';\nimport { JuiceIcon } from '@juice-js/icons';\nimport { JuiceButton } from '../button/button';\n\nexport type JuiceBadgeTone = 'neutral' | 'accent' | 'ok' | 'warn' | 'bad' | 'info';\nexport type JuiceSpinnerSize = 'sm' | 'md' | 'lg';\n\nconst STYLES = `\n juice-badge {\n display: inline-flex;\n align-items: center;\n padding: 0 var(--juice-space-2);\n border-radius: var(--juice-radius-full);\n background: var(--juice-badge-neutral-bg);\n color: var(--juice-badge-neutral-fg);\n font-family: var(--juice-font-sans);\n font-size: var(--juice-text-xs);\n font-weight: var(--juice-weight-medium);\n line-height: 1.5rem;\n white-space: nowrap;\n }\n /* Each tone is a semantic foreground/background pair (the badge component tokens), readable at 4.5:1 in both themes. */\n juice-badge[data-tone='accent'] { background: var(--juice-badge-accent-bg); color: var(--juice-badge-accent-fg); }\n juice-badge[data-tone='ok'] { background: var(--juice-badge-ok-bg); color: var(--juice-badge-ok-fg); }\n juice-badge[data-tone='warn'] { background: var(--juice-badge-warn-bg); color: var(--juice-badge-warn-fg); }\n juice-badge[data-tone='bad'] { background: var(--juice-badge-bad-bg); color: var(--juice-badge-bad-fg); }\n juice-badge[data-tone='info'] { background: var(--juice-badge-info-bg); color: var(--juice-badge-info-fg); }\n\n juice-progress { display: block; height: 0.5rem; overflow: hidden; border-radius: var(--juice-radius-full); background: var(--juice-color-surface-sunken); }\n .juice-progress__bar { height: 100%; border-radius: inherit; background: var(--juice-color-accent); transition: width var(--juice-duration-normal) var(--juice-ease-standard); }\n juice-progress[data-indeterminate] .juice-progress__bar { width: 40%; animation: juice-progress-slide 1.2s var(--juice-ease-standard) infinite; }\n @keyframes juice-progress-slide { from { transform: translateX(-100%); } to { transform: translateX(250%); } }\n\n juice-spinner { display: inline-flex; flex: none; align-items: center; justify-content: center; }\n .juice-spinner__ring {\n box-sizing: border-box;\n width: 1.5rem;\n height: 1.5rem;\n border: 2px solid var(--juice-color-border-strong);\n border-top-color: var(--juice-color-accent);\n border-radius: var(--juice-radius-full);\n animation: juice-spinner-spin 800ms linear infinite;\n }\n juice-spinner[data-size='sm'] .juice-spinner__ring { width: 1rem; height: 1rem; }\n juice-spinner[data-size='lg'] .juice-spinner__ring { width: 2.5rem; height: 2.5rem; border-width: 3px; }\n @media (prefers-reduced-motion: reduce) {\n .juice-spinner__ring { animation-duration: 3s; }\n juice-progress[data-indeterminate] .juice-progress__bar { animation-duration: 4s; }\n }\n @keyframes juice-spinner-spin { to { transform: rotate(360deg); } }\n .juice-visually-hidden {\n position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;\n clip-path: inset(50%); white-space: nowrap; border: 0;\n }\n\n .juice-state {\n display: flex;\n flex-direction: column;\n align-items: center;\n gap: var(--juice-space-3);\n padding: var(--juice-space-8);\n color: var(--juice-color-text);\n font-family: var(--juice-font-sans);\n text-align: center;\n }\n .juice-state__icon { color: var(--juice-color-text-muted); }\n .juice-state__title { margin: 0; font-size: var(--juice-text-lg); font-weight: var(--juice-weight-semibold); }\n .juice-state__text { margin: 0; max-width: 40ch; color: var(--juice-color-text-muted); font-size: var(--juice-text-sm); }\n .juice-state--error .juice-state__title { color: var(--juice-color-bad); }\n`;\n\nconst COMMON = { changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, styles: STYLES } as const;\n\n/** Small status pill. The tone is conveyed by the text, so do not rely on colour alone. */\n@Component({\n selector: 'juice-badge',\n template: '<ng-content />',\n ...COMMON,\n host: { '[attr.data-tone]': 'tone()' },\n})\nexport class JuiceBadge {\n readonly tone = input<JuiceBadgeTone>('neutral');\n}\n\n/** Progress bar. With a `value` (0..max) it reports `aria-valuenow`; without one it is indeterminate. */\n@Component({\n selector: 'juice-progress',\n template: `<div class=\"juice-progress__bar\" [style.width.%]=\"percent()\"></div>`,\n ...COMMON,\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[attr.aria-valuemax]': 'max()',\n '[attr.aria-valuenow]': 'clamped()',\n '[attr.aria-label]': 'label()',\n '[attr.data-indeterminate]': 'clamped() === null ? \"\" : null',\n },\n})\nexport class JuiceProgress {\n readonly value = input<number | null | undefined, unknown>(null, {\n transform: (v: unknown) => (v === null || v === undefined || v === '' || Number.isNaN(Number(v)) ? null : Number(v)),\n });\n readonly max = input(100, { transform: numberAttribute });\n readonly label = input('Progress');\n\n protected readonly clamped = computed(() => {\n const v = this.value();\n return v == null ? null : Math.min(Math.max(v, 0), this.max());\n });\n protected readonly percent = computed(() => {\n const v = this.clamped();\n return v == null || this.max() <= 0 ? null : (v / this.max()) * 100;\n });\n}\n\n/** Indeterminate activity indicator. The label is read by assistive tech through `role=status`. */\n@Component({\n selector: 'juice-spinner',\n template: `<span class=\"juice-spinner__ring\" aria-hidden=\"true\"></span><span class=\"juice-visually-hidden\">{{ label() }}</span>`,\n ...COMMON,\n host: { role: 'status', '[attr.data-size]': 'size()' },\n})\nexport class JuiceSpinner {\n readonly size = input<JuiceSpinnerSize>('md');\n readonly label = input('Loading');\n}\n\n/** Nothing-here state with an optional icon, description and a projected action. */\n@Component({\n selector: 'juice-empty-state',\n imports: [JuiceIcon],\n template: `\n @if (icon()) {\n <juice-icon class=\"juice-state__icon\" [name]=\"icon()\" [size]=\"32\" />\n }\n <p class=\"juice-state__title\">{{ title() }}</p>\n @if (description()) {\n <p class=\"juice-state__text\">{{ description() }}</p>\n }\n <ng-content />\n `,\n ...COMMON,\n host: { class: 'juice-state' },\n})\nexport class JuiceEmptyState {\n readonly icon = input('');\n readonly title = input.required<string>();\n readonly description = input('');\n}\n\n/** Loading placeholder for a region: spinner plus visible label. */\n@Component({\n selector: 'juice-loading-state',\n imports: [JuiceSpinner],\n template: `<juice-spinner [label]=\"label()\" /><p class=\"juice-state__text\" aria-hidden=\"true\">{{ label() }}</p>`,\n ...COMMON,\n host: { class: 'juice-state' },\n})\nexport class JuiceLoadingState {\n readonly label = input('Loading');\n}\n\n/** Failure state with a retry action. `error` may be an `Error`, a string or anything else (shown generically). */\n@Component({\n selector: 'juice-error-state',\n imports: [JuiceButton],\n template: `\n <p class=\"juice-state__title\">{{ title() }}</p>\n @if (message()) {\n <p class=\"juice-state__text\">{{ message() }}</p>\n }\n <button juiceButton variant=\"secondary\" (click)=\"retry.emit()\">{{ retryLabel() }}</button>\n `,\n ...COMMON,\n host: { class: 'juice-state juice-state--error', role: 'alert' },\n})\nexport class JuiceErrorState {\n readonly title = input('Something went wrong');\n readonly error = input<unknown>(null);\n readonly retryLabel = input('Try again');\n readonly retry = output<void>();\n\n protected readonly message = computed(() => {\n const e = this.error();\n if (typeof e === 'string') return e;\n if (e instanceof Error) return e.message;\n return '';\n });\n}\n","import { ComponentType } from '@angular/cdk/overlay';\nimport { Dialog, DialogConfig, DialogRef } from '@angular/cdk/dialog';\nimport { Overlay } from '@angular/cdk/overlay';\nimport { ChangeDetectionStrategy, Component, Injectable, TemplateRef, ViewEncapsulation, inject } from '@angular/core';\nimport { loadStyles } from '../core/style-loader';\nimport { JuiceResponsive } from '../responsive/responsive';\n\n/** The dialog's width on a tablet or desktop: sm 400, md 560, lg 720 (px), never wider than the screen minus its margin. */\nexport type JuiceDialogSize = 'sm' | 'md' | 'lg';\n/**\n * Its form on a phone: `fullscreen` (the default: a form or a long read, with its own header bar), `sheet` (a short choice, from\n * the bottom), or `dialog` (stays centred, for a one-line confirmation).\n */\nexport type JuiceDialogMobile = 'fullscreen' | 'sheet' | 'dialog';\n\nexport interface JuiceDialogConfig<D = unknown> extends Omit<DialogConfig<D>, 'positionStrategy' | 'width' | 'height' | 'maxWidth' | 'maxHeight'> {\n size?: JuiceDialogSize;\n mobile?: JuiceDialogMobile;\n}\n\n/** The dialog styles, added to the document once (the CDK pane lives outside every component). */\n@Component({\n selector: 'juice-dialog-styles',\n template: '',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n styles: `\n .juice-dialog { --_margin: 2rem; max-width: calc(100vw - 2 * var(--_margin)); }\n .juice-dialog--sm { width: 25rem; }\n .juice-dialog--md { width: 35rem; }\n .juice-dialog--lg { width: 45rem; }\n .juice-dialog.juice-dialog--tablet { --_margin: 1.5rem; }\n .juice-dialog > .cdk-dialog-container {\n box-sizing: border-box;\n display: flex; flex-direction: column;\n width: 100%;\n max-height: calc(100dvh - 2 * var(--_margin));\n overflow: auto;\n overscroll-behavior: contain;\n border: 1px solid var(--juice-panel-border);\n border-radius: var(--juice-radius-lg);\n background: var(--juice-color-surface-raised);\n color: var(--juice-color-text);\n box-shadow: var(--juice-shadow-overlay);\n font-family: var(--juice-font-sans);\n outline: none;\n }\n /* Phone, full screen: the whole visible viewport, clear of the safe areas. */\n .juice-dialog.juice-dialog--fullscreen { width: 100vw; max-width: 100vw; height: 100dvh; }\n .juice-dialog--fullscreen > .cdk-dialog-container {\n height: 100%; max-height: none; border: 0; border-radius: 0; box-shadow: none;\n padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);\n }\n /* Phone, bottom sheet: full width from the bottom edge, rounded on top, a handle, at most 85% of the screen tall. */\n .juice-dialog.juice-dialog--sheet { width: 100vw; max-width: 100vw; }\n .juice-dialog--sheet > .cdk-dialog-container {\n max-height: 85dvh; border-width: 1px 0 0; border-radius: var(--juice-radius-xl) var(--juice-radius-xl) 0 0;\n padding-bottom: env(safe-area-inset-bottom, 0px);\n }\n .juice-dialog--sheet > .cdk-dialog-container::before {\n content: ''; flex: none; align-self: center; width: 2.25rem; height: 0.25rem; margin: var(--juice-space-2) 0 0;\n border-radius: var(--juice-radius-full); background: var(--juice-color-border-strong);\n }\n @media (prefers-reduced-motion: no-preference) {\n .juice-dialog--sheet > .cdk-dialog-container { animation: juice-sheet-in var(--juice-duration-slow) var(--juice-ease-standard); }\n }\n @keyframes juice-sheet-in { from { transform: translateY(1.5rem); opacity: 0; } }\n .juice-dialog-backdrop { background: color-mix(in srgb, var(--juice-color-overlay, #000) 40%, transparent); }\n `,\n})\nexport class JuiceDialogStyles {}\n\n/**\n * Opens a CDK dialog in the workspace's form (JuiceResponsive, the token breakpoints): centred with a 32px margin on a desktop and\n * 24px on a tablet; on a phone full screen, a bottom sheet, or centred (`mobile`). The CDK dialog brings the focus trap, Escape,\n * the backdrop and the focus return; the form is fixed when it opens.\n *\n * ```ts\n * dialog.open(EditRuleComponent, { size: 'md', ariaLabelledBy: 'edit-title' }); // full screen on a phone\n * dialog.open(pickTeamTpl, { size: 'sm', mobile: 'sheet', ariaLabel: 'Route to a team' });\n * ```\n */\n@Injectable({ providedIn: 'root' })\nexport class JuiceDialog {\n private readonly dialog = inject(Dialog);\n private readonly overlay = inject(Overlay);\n private readonly responsive = inject(JuiceResponsive);\n\n constructor() {\n loadStyles(JuiceDialogStyles);\n }\n\n open<R = unknown, D = unknown, C = unknown>(content: ComponentType<C> | TemplateRef<C>, config: JuiceDialogConfig<D> = {}): DialogRef<R, C> {\n const { size = 'md', mobile = 'fullscreen', panelClass, backdropClass, ...rest } = config;\n const onPhone = this.responsive.mobile();\n const form = onPhone && mobile !== 'dialog' ? mobile : 'dialog';\n const position = this.overlay.position().global();\n if (form === 'fullscreen') position.top('0').left('0');\n else if (form === 'sheet') position.bottom('0').centerHorizontally();\n else position.centerHorizontally().centerVertically();\n const classes = ['juice-dialog', `juice-dialog--${size}`, `juice-dialog--${form}`];\n if (this.responsive.tablet()) classes.push('juice-dialog--tablet');\n return this.dialog.open<R, D, C>(content, {\n ...rest,\n positionStrategy: position,\n panelClass: [...classes, ...(Array.isArray(panelClass) ? panelClass : panelClass ? [panelClass] : [])],\n backdropClass: backdropClass ?? 'juice-dialog-backdrop',\n } as DialogConfig<D, DialogRef<R, C>>);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["DOCUMENT"],"mappings":";;;;;;;;;AAgBA,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;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U,EAAE,CAAC,GAAG,OAAO,EAAE,IAAI,KAAK,CAAC,OAAO,CAAC,UAAU,CAAC,GAAG,UAAU,GAAG,UAAU,GAAG,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAC;YACtG,aAAa,EAAE,aAAa,IAAI,uBAAuB;AACpB,SAAA,CAAC;IACxC;8GAzBW,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAX,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,cADE,MAAM,EAAA,CAAA,CAAA;;2FACnB,WAAW,EAAA,UAAA,EAAA,CAAA;kBADvB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;AClFlC;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@juice-js/ui",
3
- "version": "3.0.0-alpha.6",
3
+ "version": "3.0.0-alpha.8",
4
4
  "description": "Juice UI primitives and theme service, Material-free",
5
5
  "author": {
6
6
  "name": "Pavellis Labs",
@@ -24,8 +24,8 @@
24
24
  "@angular/common": "^22.0.0",
25
25
  "@angular/core": "^22.0.0",
26
26
  "@angular/forms": "^22.0.0",
27
- "@juice-js/design-tokens": "3.0.0-alpha.6",
28
- "@juice-js/icons": "3.0.0-alpha.6"
27
+ "@juice-js/design-tokens": "3.0.0-alpha.8",
28
+ "@juice-js/icons": "3.0.0-alpha.8"
29
29
  },
30
30
  "dependencies": {
31
31
  "tslib": "^2.3.0"
@@ -48,5 +48,5 @@
48
48
  },
49
49
  "type": "module",
50
50
  "readme": "ERROR: No README data found!",
51
- "_id": "@juice-js/ui@3.0.0-alpha.6"
51
+ "_id": "@juice-js/ui@3.0.0-alpha.8"
52
52
  }
@@ -1,8 +1,9 @@
1
1
  import * as _angular_core from '@angular/core';
2
- import { DoCheck, InjectionToken, Signal, EnvironmentProviders, AfterContentChecked } from '@angular/core';
2
+ import { DoCheck, InjectionToken, Signal, EnvironmentProviders, AfterContentChecked, TemplateRef } from '@angular/core';
3
3
  import { Highlightable } from '@angular/cdk/a11y';
4
- import { ConnectedPosition, ScrollStrategy } from '@angular/cdk/overlay';
4
+ import { ConnectedPosition, ScrollStrategy, ComponentType } from '@angular/cdk/overlay';
5
5
  import { ControlValueAccessor } from '@angular/forms';
6
+ import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
6
7
 
7
8
  type JuiceButtonVariant = 'primary' | 'secondary' | 'ghost' | 'danger';
8
9
  type JuiceButtonSize = 'sm' | 'md' | 'lg';
@@ -298,5 +299,36 @@ declare class JuiceErrorState {
298
299
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<JuiceErrorState, "juice-error-state", never, { "title": { "alias": "title"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "retryLabel": { "alias": "retryLabel"; "required": false; "isSignal": true; }; }, { "retry": "retry"; }, never, never, true, never>;
299
300
  }
300
301
 
301
- export { JUICE_BREAKPOINTS, JUICE_CONTAINER, JUICE_CONTAINER_BREAKPOINTS, JUICE_MEDIA, JUICE_MOBILE_FLOOR, JUICE_MOBILE_MIN, JUICE_RESPONSIVE_OPTIONS, JuiceBadge, JuiceButton, JuiceCheckbox, JuiceEmptyState, JuiceErrorState, JuiceField, JuiceIconButton, JuiceInput, JuiceLoadingState, JuiceOption, JuiceProgress, JuiceResponsive, JuiceSelect, JuiceSpinner, provideJuiceResponsive };
302
- export type { JuiceBadgeTone, JuiceButtonSize, JuiceButtonVariant, JuiceFieldControl, JuicePointer, JuiceResponsiveOptions, JuiceSpinnerSize, JuiceViewportSize };
302
+ /** The dialog's width on a tablet or desktop: sm 400, md 560, lg 720 (px), never wider than the screen minus its margin. */
303
+ type JuiceDialogSize = 'sm' | 'md' | 'lg';
304
+ /**
305
+ * Its form on a phone: `fullscreen` (the default: a form or a long read, with its own header bar), `sheet` (a short choice, from
306
+ * the bottom), or `dialog` (stays centred, for a one-line confirmation).
307
+ */
308
+ type JuiceDialogMobile = 'fullscreen' | 'sheet' | 'dialog';
309
+ interface JuiceDialogConfig<D = unknown> extends Omit<DialogConfig<D>, 'positionStrategy' | 'width' | 'height' | 'maxWidth' | 'maxHeight'> {
310
+ size?: JuiceDialogSize;
311
+ mobile?: JuiceDialogMobile;
312
+ }
313
+ /**
314
+ * Opens a CDK dialog in the workspace's form (JuiceResponsive, the token breakpoints): centred with a 32px margin on a desktop and
315
+ * 24px on a tablet; on a phone full screen, a bottom sheet, or centred (`mobile`). The CDK dialog brings the focus trap, Escape,
316
+ * the backdrop and the focus return; the form is fixed when it opens.
317
+ *
318
+ * ```ts
319
+ * dialog.open(EditRuleComponent, { size: 'md', ariaLabelledBy: 'edit-title' }); // full screen on a phone
320
+ * dialog.open(pickTeamTpl, { size: 'sm', mobile: 'sheet', ariaLabel: 'Route to a team' });
321
+ * ```
322
+ */
323
+ declare class JuiceDialog {
324
+ private readonly dialog;
325
+ private readonly overlay;
326
+ private readonly responsive;
327
+ constructor();
328
+ open<R = unknown, D = unknown, C = unknown>(content: ComponentType<C> | TemplateRef<C>, config?: JuiceDialogConfig<D>): DialogRef<R, C>;
329
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<JuiceDialog, never>;
330
+ static ɵprov: _angular_core.ɵɵInjectableDeclaration<JuiceDialog>;
331
+ }
332
+
333
+ export { JUICE_BREAKPOINTS, JUICE_CONTAINER, JUICE_CONTAINER_BREAKPOINTS, JUICE_MEDIA, JUICE_MOBILE_FLOOR, JUICE_MOBILE_MIN, JUICE_RESPONSIVE_OPTIONS, JuiceBadge, JuiceButton, JuiceCheckbox, JuiceDialog, JuiceEmptyState, JuiceErrorState, JuiceField, JuiceIconButton, JuiceInput, JuiceLoadingState, JuiceOption, JuiceProgress, JuiceResponsive, JuiceSelect, JuiceSpinner, provideJuiceResponsive };
334
+ export type { JuiceBadgeTone, JuiceButtonSize, JuiceButtonVariant, JuiceDialogConfig, JuiceDialogMobile, JuiceDialogSize, JuiceFieldControl, JuicePointer, JuiceResponsiveOptions, JuiceSpinnerSize, JuiceViewportSize };