@liquid-js/lyr-extras 0.0.0-stage → 22.0.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE.txt +23 -0
- package/README.md +61 -2
- package/fesm2022/liquid-js-lyr-extras-chart.mjs +871 -0
- package/fesm2022/liquid-js-lyr-extras-chart.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras-color-picker.mjs +821 -0
- package/fesm2022/liquid-js-lyr-extras-color-picker.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras-markdown-editor.mjs +923 -0
- package/fesm2022/liquid-js-lyr-extras-markdown-editor.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras-markdown-viewer.mjs +369 -0
- package/fesm2022/liquid-js-lyr-extras-markdown-viewer.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras-mask.mjs +240 -0
- package/fesm2022/liquid-js-lyr-extras-mask.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras-media.mjs +1142 -0
- package/fesm2022/liquid-js-lyr-extras-media.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras-phone-input.mjs +864 -0
- package/fesm2022/liquid-js-lyr-extras-phone-input.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras-qr-code.mjs +236 -0
- package/fesm2022/liquid-js-lyr-extras-qr-code.mjs.map +1 -0
- package/fesm2022/liquid-js-lyr-extras.mjs +0 -0
- package/package.json +159 -3
- package/types/liquid-js-lyr-extras-chart.d.ts +294 -0
- package/types/liquid-js-lyr-extras-color-picker.d.ts +311 -0
- package/types/liquid-js-lyr-extras-markdown-editor.d.ts +367 -0
- package/types/liquid-js-lyr-extras-markdown-viewer.d.ts +174 -0
- package/types/liquid-js-lyr-extras-mask.d.ts +130 -0
- package/types/liquid-js-lyr-extras-media.d.ts +517 -0
- package/types/liquid-js-lyr-extras-phone-input.d.ts +428 -0
- package/types/liquid-js-lyr-extras-qr-code.d.ts +113 -0
- package/types/liquid-js-lyr-extras.d.ts +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"liquid-js-lyr-extras-color-picker.mjs","names":[],"sources":["../../../packages/extras/color-picker/src/color-picker-dialog.component.ts","../../../packages/extras/color-picker/src/texts.ts","../../../packages/extras/color-picker/src/color-picker.component.ts","../../../packages/extras/color-picker/src/color-picker.component.html"],"sourcesContent":["import { ChangeDetectionStrategy, Component, input, TemplateRef, viewChild } from '@angular/core'\nimport {\n NbOverlayContainerComponent,\n NbOverlayContent,\n NbPositionedContainerComponent,\n NbRenderableContainer,\n NbTemplatePortal\n} from '@liquid-js/lyr-core'\n\n/**\n * The colour picker's overlay: the dialog of `nb-color-picker`, framed as the date picker's is. The dialog is\n * nxt-color-picker's, shown inline in it, so it opens, and is positioned and closed, as Lyra's pickers are.\n *\n * @internal\n */\n@Component({\n selector: 'nb-color-picker-dialog',\n template: '<nb-overlay-container />',\n // Hosted content may not use signals, so it's checked on every change detection.\n changeDetection: ChangeDetectionStrategy.Eager,\n imports: [NbOverlayContainerComponent]\n})\nexport class NbColorPickerDialogComponent extends NbPositionedContainerComponent implements NbRenderableContainer {\n readonly overlayContainer = viewChild.required(NbOverlayContainerComponent)\n\n readonly content = input<NbOverlayContent>()\n readonly context = input<object>()\n\n renderContent() {\n const container = this.overlayContainer()\n container.detach()\n const content = this.content()\n if (content instanceof TemplateRef) {\n container.attachTemplatePortal(new NbTemplatePortal(content, undefined, this.context()))\n }\n }\n}\n","import { injectNbTexts, NbLocalize } from '@liquid-js/lyr-core'\nimport type { ColorPickerTexts } from 'nxt-color-picker'\n\n/** @internal */\ndeclare const $localize: NbLocalize\n\n/**\n * The texts of the colour picker. `provideNbTexts({ colorPicker: { ... } })` changes them, and they're translated with\n * Angular's i18n, as `$localize` messages with ids like `@@nb.colorPicker.invalid`.\n *\n * The dialog's texts, e.g. `ok` or `presetColors`, are `nxt-color-picker`'s, with ids like\n * `@@nxt-color-picker.button.ok`; set them here too to change them.\n */\nexport interface NbColorPickerTexts extends Partial<ColorPickerTexts> {\n /** Names the field when it has no `aria-label` or `aria-labelledby`. */\n color: string\n /** Label of the button that clears the colour. */\n clear: string\n /** The message of the `nbColorPicker` error for text that isn't a colour. */\n invalid: string\n}\n\ndeclare module '@liquid-js/lyr-core' {\n interface NbTexts {\n colorPicker: NbColorPickerTexts\n }\n}\n\n/** The default texts, in the app's language. @internal */\nexport function nbColorPickerTexts(): NbColorPickerTexts {\n return {\n color: $localize`:@@nb.colorPicker.color:Color`,\n clear: $localize`:@@nb.colorPicker.clear:Clear color`,\n invalid: $localize`:@@nb.colorPicker.invalid:Enter a valid color`\n }\n}\n\n/** @internal */\nexport function injectNbColorPickerTexts() {\n return injectNbTexts('colorPicker', nbColorPickerTexts)\n}\n","import {\n afterNextRender,\n AfterViewInit,\n booleanAttribute,\n Component,\n computed,\n DestroyRef,\n effect,\n ElementRef,\n forwardRef,\n inject,\n Injector,\n input,\n linkedSignal,\n OnDestroy,\n signal,\n TemplateRef,\n untracked,\n viewChild,\n ViewEncapsulation\n} from '@angular/core'\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop'\nimport { ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms'\nimport {\n injectNbDefaults,\n injectNbValidationMessage,\n NbAdjustment,\n NbButtonComponent,\n NbComponentOrCustomStatus,\n NbComponentShape,\n NbComponentSize,\n nbCreateDynamicOverlayHandler,\n NbDynamicOverlay,\n NbFormFieldModule,\n NbIconComponent,\n NbInputDirective,\n NbPosition,\n NbTrigger,\n NbValidationDirective\n} from '@liquid-js/lyr-core'\nimport {\n AlphaChannel,\n cmykToRgb,\n ColorPickerDirective,\n formatCmyk,\n formatOutput,\n hsvaToRgba,\n NXT_COLOR_PICKER_TEXTS,\n OutputFormat,\n rgbaToCmyk,\n rgbaToHsva,\n stringToCmyk,\n stringToHsva\n} from 'nxt-color-picker'\nimport { skip } from 'rxjs'\n\nimport { NbColorPickerDialogComponent } from './color-picker-dialog.component'\nimport { injectNbColorPickerTexts } from './texts'\n\nlet nextDialogId = 0\n\n/** What the dialog's buttons, sliders, presets and inputs match, to move focus into it. */\nconst DIALOG_FOCUSABLE = '[tabindex=\"0\"], input, button'\n\n/** The error kind of text that isn't a colour. */\nexport const NB_COLOR_PICKER_ERROR = 'nbColorPicker' as const\n\n/** The `nbColorPicker` error, as Angular gives parse errors: its kind and its message. */\nexport interface NbColorPickerError {\n kind: typeof NB_COLOR_PICKER_ERROR\n message: string\n}\n\n/** The colour of a text as CSS, e.g. for the swatch: from a CSS colour or a `cmyk()` one, if it's one. */\nfunction cssColor(text: string | null): string | undefined {\n if (!text) {\n return undefined\n }\n const cmyk = stringToCmyk(text, true)\n const hsva = stringToHsva(text, true) ?? (cmyk ? rgbaToHsva(cmykToRgb(cmyk)) : undefined)\n return hsva ? formatOutput(hsva, 'rgba', 'enabled') : undefined\n}\n\n/**\n * A field for a colour, with a swatch and a picker dialog:\n *\n * ```html\n * <nb-color-picker [formControl]=\"color\" [presets]=\"['#3366ff', '#00d68f']\" clearable />\n * ```\n *\n * @stacked-example(Showcase, color-picker/color-picker-showcase.component)\n *\n * ### Installation\n *\n * Install [`nxt-color-picker`](https://www.npmjs.com/package/nxt-color-picker), which draws the dialog, and import\n * `NbColorPickerComponent` from `@liquid-js/lyr-extras/color-picker`:\n *\n * ```bash\n * npm install nxt-color-picker\n * ```\n *\n * ### Usage\n *\n * It's a form control whose value is the colour as text, e.g. `#3366ff`, or `null` without one. The user picks it in\n * the dialog or types it, and with `clearable` the field has a button that clears it, as does emptying the text. It\n * has the sizes, statuses, shapes and `ghost` look of `nbInput`, and its `readonly`, without the dialog; its swatch\n * shows the colour over a checkerboard, so transparency shows:\n * @stacked-example(Sizes and statuses, color-picker/color-picker-sizes.component)\n *\n * The dialog opens below the field when it has focus, as the date picker's does, and closes when focus or a click\n * goes elsewhere. Arrow Down moves focus into it, where the sliders move with the arrow keys, Page Up and Down, Home\n * and End; Enter and Escape close it, keeping the colour, and return to the field.\n *\n * `outputFormat` picks the text the value has, `hex`, `rgba`, `hsla` or `auto`, `alphaChannel` whether it can be\n * transparent, and `cmyk` adds a CMYK input and makes the value a `cmyk()` colour. The dialog has the theme's\n * colours, with its own `color-picker-*` variables, which follow the date picker's values.\n *\n * ### Validation\n *\n * While the text isn't a colour, e.g. `#12345`, the value stays the last colour, and the field has the\n * `nbColorPicker` parse error, `{ kind, message }`, as Angular's controls report text they can't parse; so does\n * empty text in a field that isn't `clearable`. It works with `formControl`, `formControlName`, `ngModel` and signal\n * forms' `[formField]`, and with `nbValidation`:\n * @stacked-example(Validation, color-picker/color-picker-validation.component)\n *\n * ### Texts\n *\n * Its texts, and the dialog's, are in the `colorPicker` section of Lyra's texts:\n *\n * ```ts\n * provideNbTexts({ colorPicker: { clear: 'Remove the color', ok: 'Apply' } })\n * ```\n * @styles\n *\n * color-picker-background-color:\n * color-picker-border-color:\n * color-picker-border-style:\n * color-picker-border-width:\n * color-picker-border-radius:\n * color-picker-shadow:\n * color-picker-text-color:\n * color-picker-text-font-family:\n * color-picker-text-font-size:\n * color-picker-divider-color:\n * color-picker-format-arrow-color:\n */\n@Component({\n selector: 'nb-color-picker',\n templateUrl: './color-picker.component.html',\n // The dialog is in the overlay container, outside the component, so its styles are global.\n encapsulation: ViewEncapsulation.None,\n styles: `\n nb-color-picker {\n display: inline-block;\n /* Lines up with fields and buttons of its size by its middle, as they do. */\n vertical-align: middle;\n }\n\n nb-color-picker.full-width {\n display: block;\n }\n\n nb-color-picker .swatch {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 100%;\n height: 100%;\n }\n\n nb-color-picker .swatch > span {\n width: 100%;\n aspect-ratio: 1;\n border-radius: 50%;\n }\n\n /* The colour over a 2×2 checkerboard, as in the dialog, so transparency shows. */\n nb-color-picker .swatch > span[style*='--nb-color-picker-swatch'] {\n background-image:\n linear-gradient(var(--nb-color-picker-swatch), var(--nb-color-picker-swatch)),\n conic-gradient(#fff 0 25%, #ccc 0 50%, #fff 0 75%, #ccc 0);\n }\n\n nb-color-picker-dialog {\n display: block;\n border: var(--color-picker-border-width) var(--color-picker-border-style) var(--color-picker-border-color);\n border-radius: var(--color-picker-border-radius);\n background: var(--color-picker-background-color);\n box-shadow: var(--color-picker-shadow);\n }\n\n nb-color-picker-dialog nxt-color-picker {\n display: block;\n --nxt-color-picker-background: transparent;\n --nxt-color-picker-border: none;\n /* The colours reach the frame, inside its rounded corners; the colour's mark can go past them. */\n --nxt-color-picker-border-radius: max(\n 0px,\n calc(var(--color-picker-border-radius) - var(--color-picker-border-width))\n );\n --nxt-color-picker-shadow: none;\n --nxt-color-picker-text-color: var(--color-picker-text-color);\n --nxt-color-picker-font-family: var(--color-picker-text-font-family);\n --nxt-color-picker-font-size: var(--color-picker-text-font-size);\n --nxt-color-picker-border-color: var(--color-picker-divider-color);\n --nxt-color-picker-focus-outline: var(--outline-width) solid var(--outline-color);\n --nxt-color-picker-focus-outline-width: var(--outline-width);\n --nxt-color-picker-arrow-color: var(--color-picker-format-arrow-color);\n --nxt-color-picker-input-background: var(--input-basic-background-color);\n --nxt-color-picker-input-border-color: var(--input-basic-border-color);\n --nxt-color-picker-input-border-width: var(--input-border-width);\n --nxt-color-picker-input-text-color: var(--input-basic-text-color);\n --nxt-color-picker-input-placeholder-color: var(--input-basic-placeholder-text-color);\n --nxt-color-picker-input-border-radius: var(--input-rectangle-border-radius);\n --nxt-color-picker-input-hover-background: var(--input-basic-hover-background-color);\n --nxt-color-picker-input-hover-border-color: var(--input-basic-hover-border-color);\n --nxt-color-picker-input-focus-background: var(--input-basic-focus-background-color);\n --nxt-color-picker-input-focus-border-color: var(--input-basic-focus-border-color);\n --nxt-color-picker-input-disabled-background: var(--input-basic-disabled-background-color);\n --nxt-color-picker-input-disabled-border-color: var(--input-basic-disabled-border-color);\n --nxt-color-picker-input-disabled-text-color: var(--input-basic-disabled-text-color);\n --nxt-color-picker-button-color: var(--button-filled-basic-text-color);\n --nxt-color-picker-button-background: var(--button-filled-basic-background-color);\n --nxt-color-picker-button-border: var(--button-filled-border-width) var(--button-filled-border-style)\n var(--button-filled-basic-border-color);\n --nxt-color-picker-button-border-radius: var(--button-rectangle-border-radius);\n --nxt-color-picker-button-font-size: var(--button-small-text-font-size);\n --nxt-color-picker-button-font-weight: var(--button-text-font-weight);\n }\n `,\n imports: [ColorPickerDirective, NbButtonComponent, NbFormFieldModule, NbIconComponent, NbInputDirective],\n providers: [\n { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NbColorPickerComponent), multi: true },\n { provide: NG_VALIDATORS, useExisting: forwardRef(() => NbColorPickerComponent), multi: true },\n // The dialog's texts follow Lyra's.\n { provide: NXT_COLOR_PICKER_TEXTS, useFactory: injectNbColorPickerTexts }\n ],\n host: {\n '[class.full-width]': 'fullWidth()'\n }\n})\nexport class NbColorPickerComponent implements ControlValueAccessor, Validator, AfterViewInit, OnDestroy {\n // The app's defaults for fields, which the inputs below start from.\n protected readonly nbDefaults = injectNbDefaults('input')\n\n protected readonly texts = injectNbColorPickerTexts()\n protected readonly message = injectNbValidationMessage()\n protected readonly validation = inject(NbValidationDirective, { self: true, optional: true })\n\n /** Field size: `tiny`, `small`, `medium` (default), `large` or `giant`. */\n readonly sizeInput = input<NbComponentSize | undefined>(undefined, { alias: 'size' })\n /** The size in use: the input's, the app's default, or 'medium'. */\n readonly size = linkedSignal<NbComponentSize>(() => this.sizeInput() ?? this.nbDefaults().size ?? 'medium')\n /** Field status: `basic` (default), `primary`, `info`, `success`, `warning`, `danger` or `control`. */\n readonly status = input<NbComponentOrCustomStatus>('basic')\n /** Field shape: `rectangle` (default), `semi-round` or `round`. */\n readonly shapeInput = input<NbComponentShape | undefined>(undefined, { alias: 'shape' })\n /** The shape in use: the input's, the app's default, or 'rectangle'. */\n readonly shape = linkedSignal<NbComponentShape>(() => this.shapeInput() ?? this.nbDefaults().shape ?? 'rectangle')\n /** Makes the field as wide as its container. */\n readonly fullWidth = input(false, { transform: booleanAttribute })\n /** Shows the field without its background and border, as `nbInput`'s `ghost` does. */\n readonly ghost = input(false, { transform: booleanAttribute })\n readonly placeholder = input('')\n /** Lets the user read and select the colour, but not change it, as a read-only field; its dialog doesn't open. */\n readonly readonly = input(false, { transform: booleanAttribute })\n /** Names the field when there's no `aria-labelledby`; \"Color\" by default. */\n readonly ariaLabel = input<string | undefined>(undefined, { alias: 'aria-label' })\n /** The id of the element that names the field, e.g. a `label`. */\n readonly ariaLabelledBy = input<string | undefined>(undefined, { alias: 'aria-labelledby' })\n\n /** What labels the field: its own `aria-labelledby` and an `nbLabel` of its `nbValidation`. */\n protected readonly fieldLabelledBy = computed(\n () => [this.ariaLabelledBy(), this.validation?.labelledBy()].filter(Boolean).join(' ') || null\n )\n\n /** The text of the value: `hex`, `rgba`, `hsla` or `auto`, which keeps the format a colour is typed in. */\n readonly outputFormat = input<OutputFormat>('auto')\n /** Whether the colour can be transparent. */\n readonly alphaChannel = input<AlphaChannel>('enabled')\n /** Adds a CMYK input to the dialog and makes the value a `cmyk()` colour. */\n readonly cmyk = input(false, { transform: booleanAttribute })\n /** Colours to pick from in the dialog. */\n readonly presets = input<string[]>()\n /** The dialog's distance from the field, in pixels. */\n readonly overlayOffset = input(8)\n /** Shows a button that clears the colour, and lets emptying the text clear it. */\n readonly clearable = input(false, { transform: booleanAttribute })\n readonly disabled = input(false, { transform: booleanAttribute })\n\n /** The colour, as text: the form value, `null` without one. */\n protected readonly value = signal<string | null>(null)\n /** The text the field shows; typing doesn't change it, so it doesn't replace what's typed. */\n protected readonly text = signal('')\n protected readonly swatch = computed(() => cssColor(this.value()))\n protected readonly isDisabled = linkedSignal(() => this.disabled())\n protected readonly resolvedStatus = computed(() => this.validation?.status() ?? this.status())\n /** The field's buttons are white on colour, with the `control` status, and grey otherwise. */\n protected readonly buttonStatus = computed(() => (this.resolvedStatus() === 'control' ? 'control' : 'basic'))\n /** Whether the text isn't a colour. */\n protected readonly parseError = signal(false)\n protected readonly open = signal(false)\n\n protected readonly field = viewChild<ElementRef<HTMLInputElement>>('field')\n protected readonly dialog = viewChild.required<TemplateRef<unknown>>('dialog')\n\n // The dialog opens in an overlay by the field, on focus, and closes when focus and clicks go elsewhere, as the date\n // picker's does.\n private readonly overlayHandler = nbCreateDynamicOverlayHandler()\n private overlay?: NbDynamicOverlay\n private readonly injector = inject(Injector)\n private readonly destroyRef = inject(DestroyRef)\n /** The id of the dialog, which the field controls while it's open. */\n protected readonly dialogId = `nb-color-picker-dialog-${nextDialogId++}`\n /** Whether Enter went down in the dialog, so it closes the dialog when it comes up there. */\n private enterInDialog = false\n\n protected onChange: (value: string | null) => void = () => {}\n protected onTouched: () => void = () => {}\n protected onValidatorChange: () => void = () => {}\n\n constructor() {\n // The field is the control: it gets the validation's ARIA, not the host.\n this.validation?.delegateAria()\n\n // Before the overlay is built, rebuilding it does nothing.\n effect(() => {\n this.overlayHandler.offset(this.overlayOffset()).disabled(this.isDisabled() || this.readonly())\n untracked(() => this.overlayHandler.rebuild())\n })\n }\n\n ngAfterViewInit() {\n const field = this.field()\n if (!field) {\n return\n }\n const overlay = this.overlayHandler\n .host(field)\n .componentType(NbColorPickerDialogComponent)\n .trigger(NbTrigger.FOCUS)\n // Below the field, or where there's room, as the pickers' overlays are.\n .position(NbPosition.BOTTOM)\n .adjustment(NbAdjustment.COUNTERCLOCKWISE)\n .offset(this.overlayOffset())\n .content(this.dialog())\n .disabled(this.isDisabled() || this.readonly())\n .build()\n this.overlay = overlay\n overlay.isShown.pipe(skip(1), takeUntilDestroyed(this.destroyRef)).subscribe((shown) => {\n if (shown) {\n this.open.set(true)\n } else {\n this.onClose()\n }\n })\n }\n\n ngOnDestroy() {\n this.overlayHandler.destroy()\n }\n\n // Untracked, as forms write values from wherever the app sets them, e.g. an effect that mustn't come to depend\n // on the control.\n writeValue(value?: string | null) {\n untracked(() => {\n this.value.set(value || null)\n this.setParseError(false)\n this.show(value || '')\n })\n }\n\n registerOnChange(fn: (value: string | null) => void) {\n this.onChange = fn\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn\n }\n\n registerOnValidatorChange(fn: () => void) {\n this.onValidatorChange = fn\n }\n\n setDisabledState(disabled: boolean) {\n this.isDisabled.set(disabled)\n }\n\n /** The parse error of text that isn't a colour. */\n validate(): ValidationErrors | null {\n if (!this.parseError()) {\n return null\n }\n // The app's message for the kind, or the colour picker's text.\n const error: NbColorPickerError = { kind: NB_COLOR_PICKER_ERROR, message: this.texts().invalid }\n const message = this.message({ kind: NB_COLOR_PICKER_ERROR, params: error })\n return { [NB_COLOR_PICKER_ERROR]: { ...error, message } }\n }\n\n /**\n * Clears the colour. The button goes away with it, so focus goes from the button to the field when it was there by\n * keyboard.\n */\n clear(event?: Event) {\n this.setParseError(false)\n this.update(null)\n this.show('')\n this.onTouched()\n if ((event?.currentTarget as HTMLElement | undefined)?.matches(':focus-visible')) {\n this.field()?.nativeElement.focus()\n }\n }\n\n /** @internal */\n onColorChange(color: string) {\n if (!this.cmyk()) {\n this.changed(color)\n }\n }\n\n /** @internal */\n onCmykChange(color: string) {\n if (this.cmyk()) {\n this.changed(color)\n }\n }\n\n /** @internal */\n onInput(event: Event) {\n const text = (event.target as HTMLInputElement).value.trim()\n if (!text && this.clearable()) {\n this.setParseError(false)\n this.update(null)\n } else {\n // Text that is a colour is the value, in the value's format; the field keeps the text while it's typed in.\n const color = this.typedColor(text)\n this.setParseError(!color)\n if (color) {\n this.update(color)\n }\n }\n // Signal forms only check a value accessor's validators again when they're told to.\n this.onValidatorChange()\n }\n\n /**\n * Arrow Down moves into the dialog, opening it if needed, and Escape closes it.\n *\n * @internal\n */\n onFieldKeydown(event: KeyboardEvent) {\n if (event.ctrlKey || event.metaKey || event.altKey || event.shiftKey) {\n return\n }\n if (event.key === 'ArrowDown' && !this.isDisabled() && !this.readonly()) {\n event.preventDefault()\n this.focusDialog()\n } else if (event.key === 'Escape' && this.open()) {\n // Only the colour picker closes, not a dialog or window the field is in.\n event.preventDefault()\n event.stopPropagation()\n this.overlay?.hide()\n }\n }\n\n /**\n * Enter and Escape close the dialog, keeping the colour, and return to the field.\n *\n * @internal\n */\n onDialogKeydown(event: KeyboardEvent) {\n if (event.key === 'Escape') {\n // Only the colour picker closes, not a dialog or window the field is in.\n event.preventDefault()\n event.stopPropagation()\n this.closeDialog()\n } else if (event.key === 'Enter') {\n this.enterInDialog = true\n }\n }\n\n /**\n * Enter closes the dialog when it comes up, once the dialog's inputs have taken what was typed in them.\n *\n * @internal\n */\n onDialogKeyup(event: KeyboardEvent) {\n if (event.key === 'Enter' && this.enterInDialog) {\n this.enterInDialog = false\n event.preventDefault()\n this.closeDialog()\n }\n }\n\n /** @internal */\n onBlur() {\n if (!this.open()) {\n this.leave()\n }\n }\n\n /** The dialog closed: the field is touched once focus is elsewhere. */\n protected onClose() {\n this.open.set(false)\n this.enterInDialog = false\n if (!this.focused()) {\n this.leave()\n }\n }\n\n /** Opens the dialog if needed, and moves focus to its first control. */\n protected focusDialog() {\n if (!this.open()) {\n this.overlay?.show()\n }\n afterNextRender(() => this.overlay?.containerElement?.querySelector<HTMLElement>(DIALOG_FOCUSABLE)?.focus(), {\n injector: this.injector\n })\n }\n\n /** Closes the dialog, with focus back in the field. */\n protected closeDialog() {\n // Focus first: the field opens the dialog on focus, unless it's open.\n this.field()?.nativeElement.focus()\n this.overlay?.hide()\n }\n\n /**\n * The value for typed text that is a colour, in the value's format, as the dialog gives it for a colour picked in\n * it: without transparency where the format has none, and as `cmyk()` with `cmyk`.\n */\n protected typedColor(text: string): string | undefined {\n const hsva = stringToHsva(text, true)\n const cmyk = stringToCmyk(text, true)\n const format = this.outputFormat()\n const alpha = this.alphaChannel()\n const alphaChannel = format === 'hex' && alpha !== 'always' && alpha !== 'forced' ? 'disabled' : alpha\n if (alphaChannel === 'disabled') {\n if (hsva) {\n hsva.a = 1\n }\n if (cmyk) {\n cmyk.a = 1\n }\n }\n if (this.cmyk()) {\n const value = cmyk ?? (hsva && rgbaToCmyk(hsvaToRgba(hsva)))\n return value ? formatCmyk(value, alphaChannel) : undefined\n }\n const color = hsva ?? (cmyk && rgbaToHsva(cmykToRgb(cmyk)))\n return color ? formatOutput(color, format, alphaChannel) : undefined\n }\n\n /** The field shows the colour, as the value has it, unless the text isn't one, and the field is touched. */\n protected leave() {\n if (!this.parseError()) {\n this.show(this.value() ?? '')\n }\n this.onTouched()\n }\n\n /** A colour picked in the dialog, which the field shows, also while it has focus, e.g. as the colours are dragged. */\n protected changed(color: string) {\n this.setParseError(false)\n this.update(color)\n this.show(color)\n }\n\n protected update(color: string | null) {\n const value = color || null\n if (value !== this.value()) {\n this.value.set(value)\n this.onChange(value)\n }\n }\n\n /** Whether the field has focus, e.g. while the user types. */\n protected focused() {\n const field = this.field()?.nativeElement\n return !!field && field.ownerDocument.activeElement === field\n }\n\n /** Shows a text in the field. */\n protected show(text: string) {\n this.text.set(text)\n const field = this.field()?.nativeElement\n if (field && field.value !== text) {\n field.value = text\n }\n }\n\n protected setParseError(parseError: boolean) {\n if (parseError !== this.parseError()) {\n this.parseError.set(parseError)\n this.onValidatorChange()\n }\n }\n}\n","<nb-form-field>\n <span nbPrefix\n class=\"swatch\"\n aria-hidden=\"true\">\n <span [style.--nb-color-picker-swatch]=\"swatch()\"></span>\n </span>\n <input #field\n nbInput\n autocomplete=\"off\"\n aria-haspopup=\"dialog\"\n [attr.aria-expanded]=\"open()\"\n [attr.aria-controls]=\"open() ? dialogId : null\"\n [fieldSize]=\"size()\"\n [status]=\"resolvedStatus()\"\n [shape]=\"shape()\"\n [fullWidth]=\"fullWidth()\"\n [ghost]=\"ghost()\"\n [placeholder]=\"placeholder()\"\n [attr.aria-label]=\"fieldLabelledBy() ? null : (ariaLabel() ?? texts().color)\"\n [attr.aria-labelledby]=\"fieldLabelledBy()\"\n [attr.aria-required]=\"validation?.ariaRequired()\"\n [attr.aria-invalid]=\"validation?.ariaInvalid()\"\n [attr.aria-describedby]=\"validation?.describedBy()\"\n [attr.disabled]=\"isDisabled() || null\"\n [readOnly]=\"readonly()\"\n [value]=\"text()\"\n (input)=\"onInput($event)\"\n (keydown)=\"onFieldKeydown($event)\"\n (blur)=\"onBlur()\" />\n @if (clearable() && value() && !isDisabled() && !readonly()) {\n <button nbSuffix\n nbButton\n ghost\n type=\"button\"\n [size]=\"size()\"\n [status]=\"buttonStatus()\"\n [attr.aria-label]=\"texts().clear\"\n (click)=\"clear($event)\">\n <nb-icon icon=\"close-outline\"\n pack=\"essentials\" />\n </button>\n }\n</nb-form-field>\n\n<!-- The dialog, shown in the overlay while it's open. -->\n<ng-template #dialog>\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- Keys bubble up from the controls inside. -->\n <div [id]=\"dialogId\"\n (keydown)=\"onDialogKeydown($event)\"\n (keyup)=\"onDialogKeyup($event)\">\n <ng-container nxtColor\n dialogDisplay=\"inline\"\n [nxtColor]=\"value() ?? ''\"\n [outputFormat]=\"outputFormat()\"\n [alphaChannel]=\"alphaChannel()\"\n [cmykEnabled]=\"cmyk()\"\n [presetColors]=\"presets()\"\n [presetLabel]=\"!!presets()?.length\"\n (nxtColorChange)=\"onColorChange($event)\"\n (cmykColorChange)=\"onCmykChange($event)\" />\n </div>\n</ng-template>\n"],"mappings":";;;;;;;;AAsBA,IAAa,+BAAb,MAAa,qCAAqC,+BAA8B;CAPhF,cAAA;;EAQa,KAAA,mBAAmB,UAAU,SAAS,6BAA4B,GAAA,YAAA,CAAA,EAAA,WAAA,mBAAA,CAAA,+BAAA,CAAA,CAAA;EAElE,KAAA,UAAU,MAAyB,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;EACnC,KAAA,UAAU,MAAe,GAAA,YAAA,CAAA,QAAA,EAAA,WAAA,UAAA,CAAA,+BAAA,CAAA,CAAA;CAUrC;CARG,gBAAa;EACT,MAAM,YAAY,KAAK,iBAAgB;EACvC,UAAU,OAAM;EAChB,MAAM,UAAU,KAAK,QAAO;EAC5B,IAAI,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