@redvars/peacock 4.3.1 → 4.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{BaseField-CHBcjVc2.js → BaseField-DPyW5Zm5.js} +3 -3
- package/dist/{BaseField-CHBcjVc2.js.map → BaseField-DPyW5Zm5.js.map} +1 -1
- package/dist/{BaseInput-DZp2O8Gh.js → BaseInput-FhjvfMjF.js} +2 -2
- package/dist/{BaseInput-DZp2O8Gh.js.map → BaseInput-FhjvfMjF.js.map} +1 -1
- package/dist/ai-badge.js +2 -2
- package/dist/ai-summary.js +2 -2
- package/dist/alert.js +2 -2
- package/dist/anchor-nav.js +2 -2
- package/dist/app-shell.js +2 -2
- package/dist/assistant-panel.js +2 -2
- package/dist/assistant-step.js +2 -2
- package/dist/assistant-steps.js +2 -2
- package/dist/avatar-group.js +2 -2
- package/dist/banner.js +2 -2
- package/dist/{base-progress-CKQ32Ruw.js → base-progress-D8-x6XS4.js} +2 -2
- package/dist/{base-progress-CKQ32Ruw.js.map → base-progress-D8-x6XS4.js.map} +1 -1
- package/dist/bottom-sheet.js +2 -2
- package/dist/breadcrumb.js +2 -2
- package/dist/calendar.js +2 -2
- package/dist/{canvas-base-BoKef3yr.js → canvas-base-CjxNdEsR.js} +2 -2
- package/dist/{canvas-base-BoKef3yr.js.map → canvas-base-CjxNdEsR.js.map} +1 -1
- package/dist/carousel.js +2 -2
- package/dist/{cartesian-chart-DqZxnoG1.js → cartesian-chart-D30aTNVm.js} +2 -2
- package/dist/{cartesian-chart-DqZxnoG1.js.map → cartesian-chart-D30aTNVm.js.map} +1 -1
- package/dist/{cb-group-base-DHwx72Gt.js → cb-group-base-2Ps2CnBz.js} +5 -4
- package/dist/{cb-group-base-DHwx72Gt.js.map → cb-group-base-2Ps2CnBz.js.map} +1 -1
- package/dist/{cb-group-base-DXnAJxEK.js → cb-group-base-Crt0BSzR.js} +20 -69
- package/dist/cb-group-base-Crt0BSzR.js.map +1 -0
- package/dist/cb-group.js +6 -6
- package/dist/cb-group.js.map +1 -1
- package/dist/cb-rule.js +3 -3
- package/dist/chart-area.js +4 -4
- package/dist/chart-bar.js +4 -4
- package/dist/{chart-base-ByCJM_9C.js → chart-base-D2kPte5J.js} +2 -2
- package/dist/{chart-base-ByCJM_9C.js.map → chart-base-D2kPte5J.js.map} +1 -1
- package/dist/chart-doughnut.js +3 -3
- package/dist/chart-line.js +4 -4
- package/dist/chart-pie.js +3 -3
- package/dist/chat-event.js +2 -2
- package/dist/chat-message.js +2 -2
- package/dist/chat-thread.js +2 -2
- package/dist/checkbox-group.js +3 -3
- package/dist/checkbox.js +3 -3
- package/dist/chip-set.js +2 -2
- package/dist/chip.js +2 -2
- package/dist/circular-progress.js +3 -3
- package/dist/citation.js +2 -2
- package/dist/code-editor.js +3 -3
- package/dist/code-highlighter.js +2 -2
- package/dist/color-field.js +4 -4
- package/dist/color-picker.js +2 -2
- package/dist/command-palette.js +2 -2
- package/dist/comment-composer.js +4 -4
- package/dist/condition-builder.js +6 -6
- package/dist/condition-builder.js.map +1 -1
- package/dist/confirm-dialog.js +2 -2
- package/dist/copy-button.js +2 -2
- package/dist/currency-field.js +4 -4
- package/dist/custom-elements-jsdocs.json +5 -5
- package/dist/custom-elements.json +308 -264
- package/dist/date-field.js +5 -5
- package/dist/date-picker.js +2 -2
- package/dist/date-range-field.js +5 -5
- package/dist/datetime-field.js +5 -5
- package/dist/dependency-map.js +3 -3
- package/dist/description-item.js +2 -2
- package/dist/description-list.js +2 -2
- package/dist/{diagram-Cnrj-4y3.js → diagram-BFGq2POp.js} +2 -2
- package/dist/{diagram-Cnrj-4y3.js.map → diagram-BFGq2POp.js.map} +1 -1
- package/dist/diagram-controls.js +2 -2
- package/dist/diagram-minimap.js +2 -2
- package/dist/diagram.js +4 -4
- package/dist/diff-viewer.js +2 -2
- package/dist/discussion-activity.js +2 -2
- package/dist/discussion-comment.js +2 -2
- package/dist/discussion.js +4 -4
- package/dist/{document-editor-C8ThjDQ7.js → document-editor-CC7MTHMO.js} +2 -2
- package/dist/{document-editor-C8ThjDQ7.js.map → document-editor-CC7MTHMO.js.map} +1 -1
- package/dist/document-editor.js +3 -3
- package/dist/draft-card.js +2 -2
- package/dist/erd.js +3 -3
- package/dist/file-upload.js +3 -3
- package/dist/filter-bar.js +2 -2
- package/dist/flow.js +4 -4
- package/dist/form.js +2 -2
- package/dist/{generative-view-CQ8-g1wY.js → generative-view-DoT9YwHL.js} +2 -2
- package/dist/{generative-view-CQ8-g1wY.js.map → generative-view-DoT9YwHL.js.map} +1 -1
- package/dist/generative-view.js +3 -3
- package/dist/html-editor.js +4 -4
- package/dist/{i18n-controller-DLJcJ5gO.js → i18n-controller-Co6pasNo.js} +2 -2
- package/dist/{i18n-controller-DLJcJ5gO.js.map → i18n-controller-Co6pasNo.js.map} +1 -1
- package/dist/image.js +2 -2
- package/dist/index.js +18 -18
- package/dist/inline-edit.js +2 -2
- package/dist/input.js +3 -3
- package/dist/json-viewer.js +2 -2
- package/dist/kanban.js +2 -2
- package/dist/kbd.js +2 -2
- package/dist/linear-progress.js +3 -3
- package/dist/listbox.js +2 -2
- package/dist/loader-full.js +10 -10
- package/dist/loader.js +10 -10
- package/dist/markdown-editor.js +4 -4
- package/dist/mention-input.js +4 -4
- package/dist/modal.js +2 -2
- package/dist/navigation-bar.js +2 -2
- package/dist/navigation-drawer.js +2 -2
- package/dist/navigation-rail.js +2 -2
- package/dist/notification-center.js +2 -2
- package/dist/number-field.js +4 -4
- package/dist/page-header.js +2 -2
- package/dist/pagination.js +2 -2
- package/dist/password-field.js +4 -4
- package/dist/password-rules.js +2 -2
- package/dist/phone-field.js +4 -4
- package/dist/{picker-field-B5xOFc3-.js → picker-field-BliKNENo.js} +3 -3
- package/dist/{picker-field-B5xOFc3-.js.map → picker-field-BliKNENo.js.map} +1 -1
- package/dist/pin-input.js +4 -4
- package/dist/presence-indicator.js +2 -2
- package/dist/prompt-input.js +4 -4
- package/dist/radio.js +3 -3
- package/dist/rating.js +3 -3
- package/dist/redvars-loader.js +2 -2
- package/dist/relative-time.js +2 -2
- package/dist/resizable-panels.js +2 -2
- package/dist/{rich-text-input-C4B9D6oD.js → rich-text-input-YeqK1or-.js} +3 -3
- package/dist/{rich-text-input-C4B9D6oD.js.map → rich-text-input-YeqK1or-.js.map} +1 -1
- package/dist/{schema-CPhNrjrx.js → schema-CuHBNpzo.js} +2 -2
- package/dist/{schema-CPhNrjrx.js.map → schema-CuHBNpzo.js.map} +1 -1
- package/dist/search.js +3 -3
- package/dist/select.js +4 -4
- package/dist/side-sheet.js +2 -2
- package/dist/signature-pad.js +3 -3
- package/dist/site-header.js +2 -2
- package/dist/slider.js +3 -3
- package/dist/snackbar.js +2 -2
- package/dist/sparkline.js +2 -2
- package/dist/split-button.js +2 -2
- package/dist/src/__internal/i18n/strings.d.ts +6 -0
- package/dist/src/condition-builder/cb-group-base.d.ts +2 -14
- package/dist/src/condition-builder/cb-group.d.ts +2 -2
- package/dist/src/condition-builder/condition-builder.d.ts +2 -2
- package/dist/src/transfer-list/transfer-list.d.ts +49 -1
- package/dist/stat.js +2 -2
- package/dist/status-indicator.js +2 -2
- package/dist/step.js +2 -2
- package/dist/stepper.js +2 -2
- package/dist/{strings-MXyrGrNs.js → strings-DYwXSSu_.js} +7 -1
- package/dist/strings-DYwXSSu_.js.map +1 -0
- package/dist/svg.js +2 -2
- package/dist/switch.js +3 -3
- package/dist/table.js +2 -2
- package/dist/textarea.js +4 -4
- package/dist/time-field.js +5 -5
- package/dist/time-picker.js +2 -2
- package/dist/timeline-item.js +2 -2
- package/dist/timeline.js +2 -2
- package/dist/{toggle-base-I1wE_fVe.js → toggle-base-B-HOnUIy.js} +2 -2
- package/dist/{toggle-base-I1wE_fVe.js.map → toggle-base-B-HOnUIy.js.map} +1 -1
- package/dist/tour.js +2 -2
- package/dist/transfer-list.js +427 -6
- package/dist/transfer-list.js.map +1 -1
- package/dist/tree-chart.js +3 -3
- package/dist/tree-item.js +2 -2
- package/dist/tree.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/typing-indicator.js +2 -2
- package/dist/url-field.js +4 -4
- package/dist/user-menu.js +2 -2
- package/dist/{video-IwNmHyft.js → video-u-Vs7M9g.js} +2 -2
- package/dist/{video-IwNmHyft.js.map → video-u-Vs7M9g.js.map} +1 -1
- package/dist/video.js +3 -3
- package/dist/virtual-list.js +2 -2
- package/dist/workflow-timeline.js +2 -2
- package/dist/workflow.js +3 -3
- package/dist/workspace-switcher.js +2 -2
- package/package.json +1 -1
- package/src/__internal/i18n/strings.ts +8 -0
- package/src/condition-builder/cb-group-base.scss +6 -3
- package/src/condition-builder/cb-group-base.ts +22 -73
- package/src/condition-builder/cb-group.ts +2 -2
- package/src/condition-builder/cb-rule.scss +4 -0
- package/src/condition-builder/condition-builder.ts +2 -2
- package/src/transfer-list/transfer-list.scss +95 -1
- package/src/transfer-list/transfer-list.ts +359 -2
- package/dist/cb-group-base-DXnAJxEK.js.map +0 -1
- package/dist/strings-MXyrGrNs.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chart-base-ByCJM_9C.js","sources":["../node_modules/d3-selection/src/select.js","../node_modules/d3-interpolate/src/numberArray.js","../node_modules/d3-interpolate/src/array.js","../node_modules/d3-interpolate/src/date.js","../node_modules/d3-interpolate/src/object.js","../node_modules/d3-interpolate/src/value.js","../node_modules/d3-shape/src/constant.js","../node_modules/d3-shape/src/array.js","../../src/__internal/chart/chart-base.ts"],"sourcesContent":["import {Selection, root} from \"./selection/index.js\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n","import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n","import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n","import {\n html,\n LitElement,\n nothing,\n PropertyValues,\n SVGTemplateResult,\n TemplateResult,\n} from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { BaseType, easeCubicOut, Selection } from 'd3';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport { isRtl } from '@/__internal/i18n/locale.js';\nimport type { PeacockStrings } from '@/__internal/i18n/strings.js';\nimport type {\n ChartLegendMode,\n ChartSelectDetail,\n ChartSeries,\n ChartTooltipModel,\n ChartValueFormatter,\n} from './types.js';\n\n/** Number of `--color-chart-n` tokens series cycle through. */\nexport const CHART_PALETTE_SIZE = 8;\n\n/** Default motion duration for enter and data-change animations. */\nconst DURATION = 450;\n\n/** Tooltip offset from the pointer or anchor. */\nconst TOOLTIP_OFFSET = 12;\n\n/** The palette color for the series or slice at `index`. */\nexport function chartColor(index: number): string {\n return `var(--color-chart-${(index % CHART_PALETTE_SIZE) + 1})`;\n}\n\n/**\n * Shared behaviour for every Peacock chart: container sizing, palette, value formatting,\n * tooltip, legend, keyboard navigation, the accessible data table, and loading and empty states.\n * Subclasses draw the marks with d3 into the SVG returned by `renderSvgContent()`.\n */\nexport abstract class ChartBase extends LitElement {\n // ── Properties\n\n /** Height of the plot in pixels. The width follows the container. */\n @property({ type: Number, reflect: true }) height: number = 300;\n\n /** Accessible name of the chart, read by screen readers. */\n @property({ type: String }) label: string = '';\n\n /** Shows a skeleton while data loads. */\n @property({ type: Boolean, reflect: true }) loading: boolean = false;\n\n /**\n * When the legend shows: `auto` shows it for more than one series (always for pie and\n * doughnut slices), `show` always, `hide` never.\n */\n @property({ type: String, reflect: true }) legend: ChartLegendMode = 'auto';\n\n /** Hides the tooltip. */\n @property({ type: Boolean, attribute: 'hide-tooltip' }) hideTooltip: boolean =\n false;\n\n /** Turns off enter and update animations. They are also off when the user prefers reduced motion. */\n @property({ type: Boolean, attribute: 'disable-animation' })\n disableAnimation: boolean = false;\n\n /** Formats values in tooltips, value labels and axis ticks. Defaults to the locale number format, compact on axes. */\n @property({ attribute: false }) valueFormatter?: ChartValueFormatter;\n\n /** Overrides Peacock's strings for this instance only. */\n @property({ attribute: false }) strings?: Partial<PeacockStrings>;\n\n // ── State\n\n /** Keys of series or slices switched off in the legend. */\n @state() protected hiddenKeys: Set<string> = new Set();\n\n /** Index of the hovered or focused category or slice, -1 for none. */\n @state() protected activeIndex: number = -1;\n\n /** Key of the series highlighted from the legend. */\n @state() protected activeSeries?: string;\n\n /** Pointer position the tooltip follows; undefined places it at the item's anchor. */\n @state() protected pointer?: { x: number; y: number };\n\n /** Width of the plot, measured from the container. */\n @state() protected plotWidth: number = 0;\n\n /** Text for the polite live region, set during keyboard navigation. */\n @state() private announcement: string = '';\n\n // ── Queries\n\n @query('svg.chart-svg') protected svgElement?: SVGSVGElement;\n\n @query('.plot') protected plotElement?: HTMLElement;\n\n // ── Private fields\n\n /** Watches the host width. */\n private resizeObserver?: ResizeObserver;\n\n /** Whether the marks have been drawn once. */\n private hasDrawn = false;\n\n /** Number formats for the locale they were made for, rebuilt when the locale changes. */\n private numberFormats?: {\n locale: string;\n standard: Intl.NumberFormat;\n compact: Intl.NumberFormat;\n };\n\n /** Peacock's strings and the locale values are formatted in. */\n protected readonly i18n = new I18nController(this);\n\n // ── Lifecycle\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(entries => {\n const width = Math.floor(entries[0]?.contentRect.width ?? 0);\n if (width !== this.plotWidth) this.plotWidth = width;\n });\n this.resizeObserver.observe(this);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver?.disconnect();\n this.resizeObserver = undefined;\n }\n\n updated(changed: PropertyValues) {\n super.updated(changed);\n if (!this.svgElement || this.plotWidth <= 0) return;\n\n const drawKeys = this.drawProperties();\n const needsDraw = drawKeys.some(key => changed.has(key));\n if (needsDraw) {\n const resizeOnly = [...changed.keys()].every(\n key => key === 'plotWidth' || !drawKeys.includes(key as string),\n );\n // The first draw animates the marks in; later resizes snap.\n this.draw((!resizeOnly || !this.hasDrawn) && this.motionEnabled());\n this.hasDrawn = true;\n this.drawHighlight();\n } else if (changed.has('activeIndex') || changed.has('activeSeries')) {\n this.drawHighlight();\n }\n }\n\n // ── Protected API for subclasses\n\n /** True when there is something to plot. */\n protected abstract hasData(): boolean;\n\n /** Every series or slice, including hidden ones, in legend order. */\n protected abstract getSeries(): ChartSeries[];\n\n /** Number of categories or slices keyboard navigation moves through. */\n protected abstract getItemCount(): number;\n\n /** Draws the marks; `animate` is false for resizes and when motion is off. */\n protected abstract draw(animate: boolean): void;\n\n /** Applies hover and focus state (dimming, cursor, active dots) without redrawing. */\n protected abstract drawHighlight(): void;\n\n /** The item under a point in plot coordinates. */\n protected abstract itemAtPoint(x: number, y: number): number;\n\n /** Tooltip content and default anchor for an item. */\n protected abstract getTooltip(index: number): ChartTooltipModel | undefined;\n\n /** Detail of `select` for an item. */\n protected abstract getSelectDetail(index: number): ChartSelectDetail;\n\n /** The static SVG layers d3 draws into. */\n protected abstract renderSvgContent(): SVGTemplateResult;\n\n /** Rows of the visually hidden data table. */\n protected abstract renderTable(): TemplateResult;\n\n /** Property names that trigger a redraw when they change. */\n protected drawProperties(): string[] {\n return ['height', 'plotWidth', 'hiddenKeys', 'loading', 'valueFormatter'];\n }\n\n /** The legend mode in effect: unknown values count as `auto`. */\n protected legendMode(): ChartLegendMode {\n return this.legend === 'show' || this.legend === 'hide'\n ? this.legend\n : 'auto';\n }\n\n /** Whether the legend shows when `legend` is `auto`. */\n protected legendAuto(): boolean {\n return this.getSeries().length > 1;\n }\n\n /** Whether the legend shows. */\n protected legendVisible(): boolean {\n const mode = this.legendMode();\n if (mode === 'auto') return this.legendAuto();\n return mode === 'show';\n }\n\n /** Width and height of the SVG. */\n protected svgSize(): { width: number; height: number } {\n return { width: this.plotWidth, height: this.height };\n }\n\n /** Motion duration in ms, 0 when animation is off. */\n protected motionEnabled(): boolean {\n if (this.disableAnimation) return false;\n return !window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n }\n\n /**\n * Returns a transition of `selection` when `animate` is true, else the selection itself, so\n * callers set end values once. Transitions share the attr/style API used here.\n */\n protected motion<E extends BaseType, D>(\n selection: Selection<E, D, BaseType, unknown>,\n animate: boolean,\n ): Selection<E, D, BaseType, unknown> {\n if (!animate) {\n selection.interrupt();\n return selection;\n }\n return selection\n .transition()\n .duration(DURATION)\n .ease(easeCubicOut) as unknown as Selection<E, D, BaseType, unknown>;\n }\n\n /** Formats a value for tooltips and value labels. */\n protected formatValue(value: number): string {\n return this.valueFormatter\n ? this.valueFormatter(value)\n : this.getNumberFormats().standard.format(value);\n }\n\n /** Formats an axis tick. */\n protected formatTick(value: number): string {\n return this.valueFormatter\n ? this.valueFormatter(value)\n : this.getNumberFormats().compact.format(value);\n }\n\n /** Whether a series or slice is switched off in the legend. */\n protected isHidden(key: string): boolean {\n return this.hiddenKeys.has(key);\n }\n\n /** Extra content layered over the plot, such as the doughnut centre. */\n protected renderOverlay(): TemplateResult | typeof nothing {\n return nothing;\n }\n\n /** Skeleton shown while `loading`. */\n protected renderSkeleton(): TemplateResult {\n const bars = [55, 80, 40, 95, 65, 75, 50];\n return html`<div\n class=\"skeleton skeleton-bars\"\n style=${styleMap({ height: `${this.height}px` })}\n aria-hidden=\"true\"\n >\n ${bars.map(\n h => html`<span style=${styleMap({ height: `${h}%` })}></span>`,\n )}\n </div>`;\n }\n\n // ── Private methods\n\n /** The number formats for the resolved locale, cached per instance. */\n private getNumberFormats() {\n const { locale } = this.i18n;\n if (this.numberFormats?.locale !== locale) {\n this.numberFormats = {\n locale,\n standard: new Intl.NumberFormat(locale),\n compact: new Intl.NumberFormat(locale, {\n notation: 'compact',\n maximumFractionDigits: 1,\n }),\n };\n }\n return this.numberFormats;\n }\n\n private pointFromEvent(event: PointerEvent | MouseEvent) {\n const rect = this.plotElement?.getBoundingClientRect();\n if (!rect) return undefined;\n return { x: event.clientX - rect.left, y: event.clientY - rect.top };\n }\n\n private handlePointerMove = (event: PointerEvent) => {\n const point = this.pointFromEvent(event);\n if (!point) return;\n const index = this.itemAtPoint(point.x, point.y);\n this.activeIndex = index;\n this.pointer = index >= 0 ? point : undefined;\n };\n\n private handlePointerLeave = () => {\n this.activeIndex = -1;\n this.pointer = undefined;\n };\n\n private handleClick = (event: MouseEvent) => {\n const point = this.pointFromEvent(event);\n if (!point) return;\n const index = this.itemAtPoint(point.x, point.y);\n if (index >= 0) this.selectItem(index);\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const count = this.getItemCount();\n if (!count) return;\n let next = this.activeIndex;\n // Left and Right follow the reading direction: in RTL, Left moves forward.\n let { key } = event;\n if (isRtl(this) && (key === 'ArrowLeft' || key === 'ArrowRight')) {\n key = key === 'ArrowLeft' ? 'ArrowRight' : 'ArrowLeft';\n }\n switch (key) {\n case 'ArrowRight':\n case 'ArrowDown':\n next = next < 0 ? 0 : Math.min(next + 1, count - 1);\n break;\n case 'ArrowLeft':\n case 'ArrowUp':\n next = next < 0 ? count - 1 : Math.max(next - 1, 0);\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n case 'Escape':\n next = -1;\n break;\n case 'Enter':\n case ' ':\n if (this.activeIndex >= 0) {\n event.preventDefault();\n this.selectItem(this.activeIndex);\n }\n return;\n default:\n return;\n }\n event.preventDefault();\n this.pointer = undefined;\n this.activeIndex = next;\n this.announce(next);\n };\n\n private handleBlur = () => {\n this.activeIndex = -1;\n this.pointer = undefined;\n };\n\n private announce(index: number) {\n const model = index >= 0 ? this.getTooltip(index) : undefined;\n this.announcement = model\n ? `${model.title}. ${model.rows.map(row => `${row.label} ${row.value}`).join(', ')}`\n : '';\n }\n\n /** Fires `select` for the item at `index`. */\n private selectItem(index: number) {\n this.dispatchEvent(\n new CustomEvent<ChartSelectDetail>('select', {\n bubbles: true,\n composed: true,\n detail: this.getSelectDetail(index),\n }),\n );\n }\n\n private toggleSeries(key: string) {\n const next = new Set(this.hiddenKeys);\n if (next.has(key)) next.delete(key);\n else next.add(key);\n this.hiddenKeys = next;\n }\n\n // ── Render helpers\n\n private renderTooltip() {\n if (this.hideTooltip || this.activeIndex < 0) return nothing;\n const model = this.getTooltip(this.activeIndex);\n if (!model || !model.rows.length) return nothing;\n const x = this.pointer?.x ?? model.x;\n const y = this.pointer?.y ?? model.y;\n const flip = x > this.plotWidth * 0.6;\n return html`<div\n class=${classMap({ tooltip: true, flip })}\n part=\"tooltip\"\n aria-hidden=\"true\"\n style=${styleMap({\n left: `${flip ? x - TOOLTIP_OFFSET : x + TOOLTIP_OFFSET}px`,\n top: `${y}px`,\n })}\n >\n ${model.title\n ? html`<div class=\"tooltip-title\">${model.title}</div>`\n : nothing}\n ${model.rows.map(\n row =>\n html`<div class=\"tooltip-row\">\n <span\n class=\"swatch\"\n style=${styleMap({ background: row.color })}\n ></span>\n <span class=\"tooltip-label\">${row.label}</span>\n <span class=\"tooltip-value\">${row.value}</span>\n </div>`,\n )}\n </div>`;\n }\n\n private renderLegend() {\n if (!this.legendVisible()) return nothing;\n return html`<div class=\"legend\" part=\"legend\">\n ${this.getSeries().map(\n series =>\n html`<button\n type=\"button\"\n class=${classMap({\n 'legend-item': true,\n 'is-hidden': this.isHidden(series.key),\n })}\n aria-pressed=${this.isHidden(series.key) ? 'false' : 'true'}\n @click=${() => this.toggleSeries(series.key)}\n @pointerenter=${() => {\n this.activeSeries = series.key;\n }}\n @pointerleave=${() => {\n this.activeSeries = undefined;\n }}\n >\n <span\n class=\"swatch\"\n style=${styleMap({ background: series.color })}\n ></span>\n <span>${series.label}</span>\n </button>`,\n )}\n </div>`;\n }\n\n private renderPlot() {\n const { width, height } = this.svgSize();\n const name = this.label || this.i18n.t('chart');\n return html`<div\n class=\"plot\"\n part=\"plot\"\n style=${styleMap({ height: `${this.height}px` })}\n tabindex=\"0\"\n role=\"group\"\n aria-roledescription=${this.i18n.t('chartRole')}\n aria-label=${this.i18n.t('chartInstructions')(name)}\n @pointermove=${this.handlePointerMove}\n @pointerleave=${this.handlePointerLeave}\n @click=${this.handleClick}\n @keydown=${this.handleKeyDown}\n @blur=${this.handleBlur}\n >\n <svg class=\"chart-svg\" aria-hidden=\"true\" width=${width} height=${height}>\n ${this.renderSvgContent()}\n </svg>\n ${this.renderOverlay()} ${this.renderTooltip()}\n </div>`;\n }\n\n // ── Render\n\n render() {\n let body: TemplateResult;\n if (this.loading) {\n body = this.renderSkeleton();\n } else if (!this.hasData()) {\n body = html`<div\n class=\"empty\"\n style=${styleMap({ height: `${this.height}px` })}\n >\n <slot name=\"empty\">${this.i18n.t('noData')}</slot>\n </div>`;\n } else {\n body = this.renderPlot();\n }\n\n const hasContent = !this.loading && this.hasData();\n return html`<div\n class=\"chart\"\n part=\"container\"\n aria-busy=${this.loading ? 'true' : 'false'}\n >\n ${body} ${hasContent ? this.renderLegend() : nothing}\n <slot name=\"insight\" class=\"insight\"></slot>\n ${hasContent\n ? html`<table class=\"sr-only\">\n <caption>\n ${this.label || this.i18n.t('chartData')}\n </caption>\n ${this.renderTable()}\n </table>`\n : nothing}\n <div class=\"sr-only\" aria-live=\"polite\">${this.announcement}</div>\n </div>`;\n }\n}\n"],"names":["value","constant","number","rgb","string","LitElement","easeCubicOut","nothing","html","styleMap","classMap","property","state","query"],"mappings":";;;;;;;;;;AAEe,eAAQ,CAAC,QAAQ,EAAE;AAClC,EAAE,OAAO,OAAO,QAAQ,KAAK;AAC7B,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;AACtF,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC;AACzC;;ACNe,oBAAQ,CAAC,CAAC,EAAE,CAAC,E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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
|
|
1
|
+
{"version":3,"file":"chart-base-D2kPte5J.js","sources":["../node_modules/d3-selection/src/select.js","../node_modules/d3-interpolate/src/numberArray.js","../node_modules/d3-interpolate/src/array.js","../node_modules/d3-interpolate/src/date.js","../node_modules/d3-interpolate/src/object.js","../node_modules/d3-interpolate/src/value.js","../node_modules/d3-shape/src/constant.js","../node_modules/d3-shape/src/array.js","../../src/__internal/chart/chart-base.ts"],"sourcesContent":["import {Selection, root} from \"./selection/index.js\";\n\nexport default function(selector) {\n return typeof selector === \"string\"\n ? new Selection([[document.querySelector(selector)]], [document.documentElement])\n : new Selection([[selector]], root);\n}\n","export default function(a, b) {\n if (!b) b = [];\n var n = a ? Math.min(b.length, a.length) : 0,\n c = b.slice(),\n i;\n return function(t) {\n for (i = 0; i < n; ++i) c[i] = a[i] * (1 - t) + b[i] * t;\n return c;\n };\n}\n\nexport function isNumberArray(x) {\n return ArrayBuffer.isView(x) && !(x instanceof DataView);\n}\n","import value from \"./value.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n return (isNumberArray(b) ? numberArray : genericArray)(a, b);\n}\n\nexport function genericArray(a, b) {\n var nb = b ? b.length : 0,\n na = a ? Math.min(nb, a.length) : 0,\n x = new Array(na),\n c = new Array(nb),\n i;\n\n for (i = 0; i < na; ++i) x[i] = value(a[i], b[i]);\n for (; i < nb; ++i) c[i] = b[i];\n\n return function(t) {\n for (i = 0; i < na; ++i) c[i] = x[i](t);\n return c;\n };\n}\n","export default function(a, b) {\n var d = new Date;\n return a = +a, b = +b, function(t) {\n return d.setTime(a * (1 - t) + b * t), d;\n };\n}\n","import value from \"./value.js\";\n\nexport default function(a, b) {\n var i = {},\n c = {},\n k;\n\n if (a === null || typeof a !== \"object\") a = {};\n if (b === null || typeof b !== \"object\") b = {};\n\n for (k in b) {\n if (k in a) {\n i[k] = value(a[k], b[k]);\n } else {\n c[k] = b[k];\n }\n }\n\n return function(t) {\n for (k in i) c[k] = i[k](t);\n return c;\n };\n}\n","import {color} from \"d3-color\";\nimport rgb from \"./rgb.js\";\nimport {genericArray} from \"./array.js\";\nimport date from \"./date.js\";\nimport number from \"./number.js\";\nimport object from \"./object.js\";\nimport string from \"./string.js\";\nimport constant from \"./constant.js\";\nimport numberArray, {isNumberArray} from \"./numberArray.js\";\n\nexport default function(a, b) {\n var t = typeof b, c;\n return b == null || t === \"boolean\" ? constant(b)\n : (t === \"number\" ? number\n : t === \"string\" ? ((c = color(b)) ? (b = c, rgb) : string)\n : b instanceof color ? rgb\n : b instanceof Date ? date\n : isNumberArray(b) ? numberArray\n : Array.isArray(b) ? genericArray\n : typeof b.valueOf !== \"function\" && typeof b.toString !== \"function\" || isNaN(b) ? object\n : number)(a, b);\n}\n","export default function(x) {\n return function constant() {\n return x;\n };\n}\n","export var slice = Array.prototype.slice;\n\nexport default function(x) {\n return typeof x === \"object\" && \"length\" in x\n ? x // Array, TypedArray, NodeList, array-like\n : Array.from(x); // Map, Set, iterable, string, or anything else\n}\n","import {\n html,\n LitElement,\n nothing,\n PropertyValues,\n SVGTemplateResult,\n TemplateResult,\n} from 'lit';\nimport { property, query, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styleMap } from 'lit/directives/style-map.js';\nimport { BaseType, easeCubicOut, Selection } from 'd3';\nimport { I18nController } from '@/__internal/i18n/i18n-controller.js';\nimport { isRtl } from '@/__internal/i18n/locale.js';\nimport type { PeacockStrings } from '@/__internal/i18n/strings.js';\nimport type {\n ChartLegendMode,\n ChartSelectDetail,\n ChartSeries,\n ChartTooltipModel,\n ChartValueFormatter,\n} from './types.js';\n\n/** Number of `--color-chart-n` tokens series cycle through. */\nexport const CHART_PALETTE_SIZE = 8;\n\n/** Default motion duration for enter and data-change animations. */\nconst DURATION = 450;\n\n/** Tooltip offset from the pointer or anchor. */\nconst TOOLTIP_OFFSET = 12;\n\n/** The palette color for the series or slice at `index`. */\nexport function chartColor(index: number): string {\n return `var(--color-chart-${(index % CHART_PALETTE_SIZE) + 1})`;\n}\n\n/**\n * Shared behaviour for every Peacock chart: container sizing, palette, value formatting,\n * tooltip, legend, keyboard navigation, the accessible data table, and loading and empty states.\n * Subclasses draw the marks with d3 into the SVG returned by `renderSvgContent()`.\n */\nexport abstract class ChartBase extends LitElement {\n // ── Properties\n\n /** Height of the plot in pixels. The width follows the container. */\n @property({ type: Number, reflect: true }) height: number = 300;\n\n /** Accessible name of the chart, read by screen readers. */\n @property({ type: String }) label: string = '';\n\n /** Shows a skeleton while data loads. */\n @property({ type: Boolean, reflect: true }) loading: boolean = false;\n\n /**\n * When the legend shows: `auto` shows it for more than one series (always for pie and\n * doughnut slices), `show` always, `hide` never.\n */\n @property({ type: String, reflect: true }) legend: ChartLegendMode = 'auto';\n\n /** Hides the tooltip. */\n @property({ type: Boolean, attribute: 'hide-tooltip' }) hideTooltip: boolean =\n false;\n\n /** Turns off enter and update animations. They are also off when the user prefers reduced motion. */\n @property({ type: Boolean, attribute: 'disable-animation' })\n disableAnimation: boolean = false;\n\n /** Formats values in tooltips, value labels and axis ticks. Defaults to the locale number format, compact on axes. */\n @property({ attribute: false }) valueFormatter?: ChartValueFormatter;\n\n /** Overrides Peacock's strings for this instance only. */\n @property({ attribute: false }) strings?: Partial<PeacockStrings>;\n\n // ── State\n\n /** Keys of series or slices switched off in the legend. */\n @state() protected hiddenKeys: Set<string> = new Set();\n\n /** Index of the hovered or focused category or slice, -1 for none. */\n @state() protected activeIndex: number = -1;\n\n /** Key of the series highlighted from the legend. */\n @state() protected activeSeries?: string;\n\n /** Pointer position the tooltip follows; undefined places it at the item's anchor. */\n @state() protected pointer?: { x: number; y: number };\n\n /** Width of the plot, measured from the container. */\n @state() protected plotWidth: number = 0;\n\n /** Text for the polite live region, set during keyboard navigation. */\n @state() private announcement: string = '';\n\n // ── Queries\n\n @query('svg.chart-svg') protected svgElement?: SVGSVGElement;\n\n @query('.plot') protected plotElement?: HTMLElement;\n\n // ── Private fields\n\n /** Watches the host width. */\n private resizeObserver?: ResizeObserver;\n\n /** Whether the marks have been drawn once. */\n private hasDrawn = false;\n\n /** Number formats for the locale they were made for, rebuilt when the locale changes. */\n private numberFormats?: {\n locale: string;\n standard: Intl.NumberFormat;\n compact: Intl.NumberFormat;\n };\n\n /** Peacock's strings and the locale values are formatted in. */\n protected readonly i18n = new I18nController(this);\n\n // ── Lifecycle\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(entries => {\n const width = Math.floor(entries[0]?.contentRect.width ?? 0);\n if (width !== this.plotWidth) this.plotWidth = width;\n });\n this.resizeObserver.observe(this);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver?.disconnect();\n this.resizeObserver = undefined;\n }\n\n updated(changed: PropertyValues) {\n super.updated(changed);\n if (!this.svgElement || this.plotWidth <= 0) return;\n\n const drawKeys = this.drawProperties();\n const needsDraw = drawKeys.some(key => changed.has(key));\n if (needsDraw) {\n const resizeOnly = [...changed.keys()].every(\n key => key === 'plotWidth' || !drawKeys.includes(key as string),\n );\n // The first draw animates the marks in; later resizes snap.\n this.draw((!resizeOnly || !this.hasDrawn) && this.motionEnabled());\n this.hasDrawn = true;\n this.drawHighlight();\n } else if (changed.has('activeIndex') || changed.has('activeSeries')) {\n this.drawHighlight();\n }\n }\n\n // ── Protected API for subclasses\n\n /** True when there is something to plot. */\n protected abstract hasData(): boolean;\n\n /** Every series or slice, including hidden ones, in legend order. */\n protected abstract getSeries(): ChartSeries[];\n\n /** Number of categories or slices keyboard navigation moves through. */\n protected abstract getItemCount(): number;\n\n /** Draws the marks; `animate` is false for resizes and when motion is off. */\n protected abstract draw(animate: boolean): void;\n\n /** Applies hover and focus state (dimming, cursor, active dots) without redrawing. */\n protected abstract drawHighlight(): void;\n\n /** The item under a point in plot coordinates. */\n protected abstract itemAtPoint(x: number, y: number): number;\n\n /** Tooltip content and default anchor for an item. */\n protected abstract getTooltip(index: number): ChartTooltipModel | undefined;\n\n /** Detail of `select` for an item. */\n protected abstract getSelectDetail(index: number): ChartSelectDetail;\n\n /** The static SVG layers d3 draws into. */\n protected abstract renderSvgContent(): SVGTemplateResult;\n\n /** Rows of the visually hidden data table. */\n protected abstract renderTable(): TemplateResult;\n\n /** Property names that trigger a redraw when they change. */\n protected drawProperties(): string[] {\n return ['height', 'plotWidth', 'hiddenKeys', 'loading', 'valueFormatter'];\n }\n\n /** The legend mode in effect: unknown values count as `auto`. */\n protected legendMode(): ChartLegendMode {\n return this.legend === 'show' || this.legend === 'hide'\n ? this.legend\n : 'auto';\n }\n\n /** Whether the legend shows when `legend` is `auto`. */\n protected legendAuto(): boolean {\n return this.getSeries().length > 1;\n }\n\n /** Whether the legend shows. */\n protected legendVisible(): boolean {\n const mode = this.legendMode();\n if (mode === 'auto') return this.legendAuto();\n return mode === 'show';\n }\n\n /** Width and height of the SVG. */\n protected svgSize(): { width: number; height: number } {\n return { width: this.plotWidth, height: this.height };\n }\n\n /** Motion duration in ms, 0 when animation is off. */\n protected motionEnabled(): boolean {\n if (this.disableAnimation) return false;\n return !window.matchMedia?.('(prefers-reduced-motion: reduce)').matches;\n }\n\n /**\n * Returns a transition of `selection` when `animate` is true, else the selection itself, so\n * callers set end values once. Transitions share the attr/style API used here.\n */\n protected motion<E extends BaseType, D>(\n selection: Selection<E, D, BaseType, unknown>,\n animate: boolean,\n ): Selection<E, D, BaseType, unknown> {\n if (!animate) {\n selection.interrupt();\n return selection;\n }\n return selection\n .transition()\n .duration(DURATION)\n .ease(easeCubicOut) as unknown as Selection<E, D, BaseType, unknown>;\n }\n\n /** Formats a value for tooltips and value labels. */\n protected formatValue(value: number): string {\n return this.valueFormatter\n ? this.valueFormatter(value)\n : this.getNumberFormats().standard.format(value);\n }\n\n /** Formats an axis tick. */\n protected formatTick(value: number): string {\n return this.valueFormatter\n ? this.valueFormatter(value)\n : this.getNumberFormats().compact.format(value);\n }\n\n /** Whether a series or slice is switched off in the legend. */\n protected isHidden(key: string): boolean {\n return this.hiddenKeys.has(key);\n }\n\n /** Extra content layered over the plot, such as the doughnut centre. */\n protected renderOverlay(): TemplateResult | typeof nothing {\n return nothing;\n }\n\n /** Skeleton shown while `loading`. */\n protected renderSkeleton(): TemplateResult {\n const bars = [55, 80, 40, 95, 65, 75, 50];\n return html`<div\n class=\"skeleton skeleton-bars\"\n style=${styleMap({ height: `${this.height}px` })}\n aria-hidden=\"true\"\n >\n ${bars.map(\n h => html`<span style=${styleMap({ height: `${h}%` })}></span>`,\n )}\n </div>`;\n }\n\n // ── Private methods\n\n /** The number formats for the resolved locale, cached per instance. */\n private getNumberFormats() {\n const { locale } = this.i18n;\n if (this.numberFormats?.locale !== locale) {\n this.numberFormats = {\n locale,\n standard: new Intl.NumberFormat(locale),\n compact: new Intl.NumberFormat(locale, {\n notation: 'compact',\n maximumFractionDigits: 1,\n }),\n };\n }\n return this.numberFormats;\n }\n\n private pointFromEvent(event: PointerEvent | MouseEvent) {\n const rect = this.plotElement?.getBoundingClientRect();\n if (!rect) return undefined;\n return { x: event.clientX - rect.left, y: event.clientY - rect.top };\n }\n\n private handlePointerMove = (event: PointerEvent) => {\n const point = this.pointFromEvent(event);\n if (!point) return;\n const index = this.itemAtPoint(point.x, point.y);\n this.activeIndex = index;\n this.pointer = index >= 0 ? point : undefined;\n };\n\n private handlePointerLeave = () => {\n this.activeIndex = -1;\n this.pointer = undefined;\n };\n\n private handleClick = (event: MouseEvent) => {\n const point = this.pointFromEvent(event);\n if (!point) return;\n const index = this.itemAtPoint(point.x, point.y);\n if (index >= 0) this.selectItem(index);\n };\n\n private handleKeyDown = (event: KeyboardEvent) => {\n const count = this.getItemCount();\n if (!count) return;\n let next = this.activeIndex;\n // Left and Right follow the reading direction: in RTL, Left moves forward.\n let { key } = event;\n if (isRtl(this) && (key === 'ArrowLeft' || key === 'ArrowRight')) {\n key = key === 'ArrowLeft' ? 'ArrowRight' : 'ArrowLeft';\n }\n switch (key) {\n case 'ArrowRight':\n case 'ArrowDown':\n next = next < 0 ? 0 : Math.min(next + 1, count - 1);\n break;\n case 'ArrowLeft':\n case 'ArrowUp':\n next = next < 0 ? count - 1 : Math.max(next - 1, 0);\n break;\n case 'Home':\n next = 0;\n break;\n case 'End':\n next = count - 1;\n break;\n case 'Escape':\n next = -1;\n break;\n case 'Enter':\n case ' ':\n if (this.activeIndex >= 0) {\n event.preventDefault();\n this.selectItem(this.activeIndex);\n }\n return;\n default:\n return;\n }\n event.preventDefault();\n this.pointer = undefined;\n this.activeIndex = next;\n this.announce(next);\n };\n\n private handleBlur = () => {\n this.activeIndex = -1;\n this.pointer = undefined;\n };\n\n private announce(index: number) {\n const model = index >= 0 ? this.getTooltip(index) : undefined;\n this.announcement = model\n ? `${model.title}. ${model.rows.map(row => `${row.label} ${row.value}`).join(', ')}`\n : '';\n }\n\n /** Fires `select` for the item at `index`. */\n private selectItem(index: number) {\n this.dispatchEvent(\n new CustomEvent<ChartSelectDetail>('select', {\n bubbles: true,\n composed: true,\n detail: this.getSelectDetail(index),\n }),\n );\n }\n\n private toggleSeries(key: string) {\n const next = new Set(this.hiddenKeys);\n if (next.has(key)) next.delete(key);\n else next.add(key);\n this.hiddenKeys = next;\n }\n\n // ── Render helpers\n\n private renderTooltip() {\n if (this.hideTooltip || this.activeIndex < 0) return nothing;\n const model = this.getTooltip(this.activeIndex);\n if (!model || !model.rows.length) return nothing;\n const x = this.pointer?.x ?? model.x;\n const y = this.pointer?.y ?? model.y;\n const flip = x > this.plotWidth * 0.6;\n return html`<div\n class=${classMap({ tooltip: true, flip })}\n part=\"tooltip\"\n aria-hidden=\"true\"\n style=${styleMap({\n left: `${flip ? x - TOOLTIP_OFFSET : x + TOOLTIP_OFFSET}px`,\n top: `${y}px`,\n })}\n >\n ${model.title\n ? html`<div class=\"tooltip-title\">${model.title}</div>`\n : nothing}\n ${model.rows.map(\n row =>\n html`<div class=\"tooltip-row\">\n <span\n class=\"swatch\"\n style=${styleMap({ background: row.color })}\n ></span>\n <span class=\"tooltip-label\">${row.label}</span>\n <span class=\"tooltip-value\">${row.value}</span>\n </div>`,\n )}\n </div>`;\n }\n\n private renderLegend() {\n if (!this.legendVisible()) return nothing;\n return html`<div class=\"legend\" part=\"legend\">\n ${this.getSeries().map(\n series =>\n html`<button\n type=\"button\"\n class=${classMap({\n 'legend-item': true,\n 'is-hidden': this.isHidden(series.key),\n })}\n aria-pressed=${this.isHidden(series.key) ? 'false' : 'true'}\n @click=${() => this.toggleSeries(series.key)}\n @pointerenter=${() => {\n this.activeSeries = series.key;\n }}\n @pointerleave=${() => {\n this.activeSeries = undefined;\n }}\n >\n <span\n class=\"swatch\"\n style=${styleMap({ background: series.color })}\n ></span>\n <span>${series.label}</span>\n </button>`,\n )}\n </div>`;\n }\n\n private renderPlot() {\n const { width, height } = this.svgSize();\n const name = this.label || this.i18n.t('chart');\n return html`<div\n class=\"plot\"\n part=\"plot\"\n style=${styleMap({ height: `${this.height}px` })}\n tabindex=\"0\"\n role=\"group\"\n aria-roledescription=${this.i18n.t('chartRole')}\n aria-label=${this.i18n.t('chartInstructions')(name)}\n @pointermove=${this.handlePointerMove}\n @pointerleave=${this.handlePointerLeave}\n @click=${this.handleClick}\n @keydown=${this.handleKeyDown}\n @blur=${this.handleBlur}\n >\n <svg class=\"chart-svg\" aria-hidden=\"true\" width=${width} height=${height}>\n ${this.renderSvgContent()}\n </svg>\n ${this.renderOverlay()} ${this.renderTooltip()}\n </div>`;\n }\n\n // ── Render\n\n render() {\n let body: TemplateResult;\n if (this.loading) {\n body = this.renderSkeleton();\n } else if (!this.hasData()) {\n body = html`<div\n class=\"empty\"\n style=${styleMap({ height: `${this.height}px` })}\n >\n <slot name=\"empty\">${this.i18n.t('noData')}</slot>\n </div>`;\n } else {\n body = this.renderPlot();\n }\n\n const hasContent = !this.loading && this.hasData();\n return html`<div\n class=\"chart\"\n part=\"container\"\n aria-busy=${this.loading ? 'true' : 'false'}\n >\n ${body} ${hasContent ? this.renderLegend() : nothing}\n <slot name=\"insight\" class=\"insight\"></slot>\n ${hasContent\n ? html`<table class=\"sr-only\">\n <caption>\n ${this.label || this.i18n.t('chartData')}\n </caption>\n ${this.renderTable()}\n </table>`\n : nothing}\n <div class=\"sr-only\" aria-live=\"polite\">${this.announcement}</div>\n </div>`;\n }\n}\n"],"names":["value","constant","number","rgb","string","LitElement","easeCubicOut","nothing","html","styleMap","classMap","property","state","query"],"mappings":";;;;;;;;;;AAEe,eAAQ,CAAC,QAAQ,EAAE;AAClC,EAAE,OAAO,OAAO,QAAQ,KAAK;AAC7B,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,eAAe,CAAC;AACtF,QAAQ,IAAI,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,IAAI,CAAC;AACzC;;ACNe,oBAAQ,CAAC,CAAC,EAAE,CAAC,EAAE;AAC9B,EAAE,IAAI,CAAC,CAAC,EAAE,CAAC,GAAG,EAAE;AAChB,EAAE,IAAI,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC;AAC9C,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE;AACnB,MAAM,CAAC;AACP,EAAE,OAAO,SAAS,CAAC,EAAE;AACrB,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;AAC5D,IAAI,OAAO,CAAC;AACZ,EAAE,CAAC;AACH;;AAEO,SAAS,aAAa,CAAC,CAAC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,WAAA,EAAA,MAAA,CAAA;AAGxB,UAAA,CAAA;AAAhB,IAAAA,CAAK;AAAqC,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,cAAA,EAAA,MAAA,CAAA;AAIT,UAAA,CAAA;IAAjCC,CAAK,CAAC,eAAe;AAAuC,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,YAAA,EAAA,MAAA,CAAA;AAEnC,UAAA,CAAA;IAAzBA,CAAK,CAAC,OAAO;AAAsC,CAAA,EAAA,SAAA,CAAA,SAAA,EAAA,aAAA,EAAA,MAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7]}
|
package/dist/chart-doughnut.js
CHANGED
|
@@ -4,13 +4,13 @@ import { o } from './style-map-CHOg6N_R.js';
|
|
|
4
4
|
import { ChartPie } from './chart-pie.js';
|
|
5
5
|
import './directive-ZPhl09Yt.js';
|
|
6
6
|
import './transform-CxeQFXXB.js';
|
|
7
|
-
import './chart-base-
|
|
7
|
+
import './chart-base-D2kPte5J.js';
|
|
8
8
|
import './state-BCeDVCI9.js';
|
|
9
9
|
import './query-CHb9Ft_d.js';
|
|
10
10
|
import './base-Cl6v8-BZ.js';
|
|
11
11
|
import './class-map-NDIkZErE.js';
|
|
12
|
-
import './i18n-controller-
|
|
13
|
-
import './strings-
|
|
12
|
+
import './i18n-controller-Co6pasNo.js';
|
|
13
|
+
import './strings-DYwXSSu_.js';
|
|
14
14
|
import './locale-DEsJZCQG.js';
|
|
15
15
|
import './path-CJ0Arqcy.js';
|
|
16
16
|
|
package/dist/chart-line.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i, _ as __decorate, I as IndividualComponent } from './IndividualComponent-BK7XZjE2.js';
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import './transform-CxeQFXXB.js';
|
|
4
|
-
import { C as CartesianChart, l as linear, p as point$1, s as stack, c as stackOffsetNone, m as min, a as max } from './cartesian-chart-
|
|
5
|
-
import { b as array, a as constant, c as css_248z$1, s as select } from './chart-base-
|
|
4
|
+
import { C as CartesianChart, l as linear, p as point$1, s as stack, c as stackOffsetNone, m as min, a as max } from './cartesian-chart-D30aTNVm.js';
|
|
5
|
+
import { b as array, a as constant, c as css_248z$1, s as select } from './chart-base-D2kPte5J.js';
|
|
6
6
|
import { w as withPath } from './path-CJ0Arqcy.js';
|
|
7
7
|
import './state-BCeDVCI9.js';
|
|
8
8
|
import './query-CHb9Ft_d.js';
|
|
@@ -10,8 +10,8 @@ import './base-Cl6v8-BZ.js';
|
|
|
10
10
|
import './class-map-NDIkZErE.js';
|
|
11
11
|
import './directive-ZPhl09Yt.js';
|
|
12
12
|
import './style-map-CHOg6N_R.js';
|
|
13
|
-
import './i18n-controller-
|
|
14
|
-
import './strings-
|
|
13
|
+
import './i18n-controller-Co6pasNo.js';
|
|
14
|
+
import './strings-DYwXSSu_.js';
|
|
15
15
|
import './locale-DEsJZCQG.js';
|
|
16
16
|
|
|
17
17
|
function Linear(context) {
|
package/dist/chart-pie.js
CHANGED
|
@@ -2,15 +2,15 @@ import { i, _ as __decorate, I as IndividualComponent, b, w } from './Individual
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { o } from './style-map-CHOg6N_R.js';
|
|
4
4
|
import { c as cubicOut } from './transform-CxeQFXXB.js';
|
|
5
|
-
import { a as constant, b as array, c as css_248z$1, C as ChartBase, d as chartColor, s as select, i as interpolate } from './chart-base-
|
|
5
|
+
import { a as constant, b as array, c as css_248z$1, C as ChartBase, d as chartColor, s as select, i as interpolate } from './chart-base-D2kPte5J.js';
|
|
6
6
|
import { w as withPath } from './path-CJ0Arqcy.js';
|
|
7
7
|
import './directive-ZPhl09Yt.js';
|
|
8
8
|
import './state-BCeDVCI9.js';
|
|
9
9
|
import './query-CHb9Ft_d.js';
|
|
10
10
|
import './base-Cl6v8-BZ.js';
|
|
11
11
|
import './class-map-NDIkZErE.js';
|
|
12
|
-
import './i18n-controller-
|
|
13
|
-
import './strings-
|
|
12
|
+
import './i18n-controller-Co6pasNo.js';
|
|
13
|
+
import './strings-DYwXSSu_.js';
|
|
14
14
|
import './locale-DEsJZCQG.js';
|
|
15
15
|
|
|
16
16
|
const abs = Math.abs;
|
package/dist/chat-event.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { i, _ as __decorate, I as IndividualComponent, a as i$1, A, b } from './IndividualComponent-BK7XZjE2.js';
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
|
-
import { I as I18nController } from './i18n-controller-
|
|
3
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
4
4
|
import { p as parseDatetime, f as formatAbsoluteTime, c as formatClockTime } from './relative-time-BNxqvEbg.js';
|
|
5
|
-
import './strings-
|
|
5
|
+
import './strings-DYwXSSu_.js';
|
|
6
6
|
import './locale-DEsJZCQG.js';
|
|
7
7
|
|
|
8
8
|
var css_248z = i`@charset "UTF-8";
|
package/dist/chat-message.js
CHANGED
|
@@ -2,10 +2,10 @@ import { i, _ as __decorate, I as IndividualComponent, a as i$1, b, A } from './
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './class-map-NDIkZErE.js';
|
|
5
|
-
import { I as I18nController } from './i18n-controller-
|
|
5
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
6
6
|
import { p as parseDatetime, f as formatAbsoluteTime, c as formatClockTime } from './relative-time-BNxqvEbg.js';
|
|
7
7
|
import './directive-ZPhl09Yt.js';
|
|
8
|
-
import './strings-
|
|
8
|
+
import './strings-DYwXSSu_.js';
|
|
9
9
|
import './locale-DEsJZCQG.js';
|
|
10
10
|
|
|
11
11
|
var css_248z = i`@charset "UTF-8";
|
package/dist/chat-thread.js
CHANGED
|
@@ -2,9 +2,9 @@ import { i, _ as __decorate, I as IndividualComponent, a as i$1, A, b } from './
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
|
-
import { I as I18nController } from './i18n-controller-
|
|
5
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
6
6
|
import './base-Cl6v8-BZ.js';
|
|
7
|
-
import './strings-
|
|
7
|
+
import './strings-DYwXSSu_.js';
|
|
8
8
|
import './locale-DEsJZCQG.js';
|
|
9
9
|
|
|
10
10
|
var css_248z = i`* {
|
package/dist/checkbox-group.js
CHANGED
|
@@ -3,13 +3,13 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { e } from './query-CHb9Ft_d.js';
|
|
4
4
|
import { e as e$1 } from './class-map-NDIkZErE.js';
|
|
5
5
|
import { l } from './live-D_5OfuGD.js';
|
|
6
|
-
import { I as I18nController } from './i18n-controller-
|
|
6
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
7
7
|
import { g as getFormValue, a as getFormState } from './form-associated-BHbg72PG.js';
|
|
8
|
-
import { B as BaseInput } from './BaseInput-
|
|
8
|
+
import { B as BaseInput } from './BaseInput-FhjvfMjF.js';
|
|
9
9
|
import './base-Cl6v8-BZ.js';
|
|
10
10
|
import './directive-ZPhl09Yt.js';
|
|
11
11
|
import './directive-helpers-Bx3mu42O.js';
|
|
12
|
-
import './strings-
|
|
12
|
+
import './strings-DYwXSSu_.js';
|
|
13
13
|
import './locale-DEsJZCQG.js';
|
|
14
14
|
import './element-internals-QME0yEz4.js';
|
|
15
15
|
import './state-BCeDVCI9.js';
|
package/dist/checkbox.js
CHANGED
|
@@ -2,15 +2,15 @@ import { i, _ as __decorate, I as IndividualComponent, w, b } from './Individual
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { e } from './class-map-NDIkZErE.js';
|
|
4
4
|
import { s as spread } from './spread-B5cgadZl.js';
|
|
5
|
-
import { p as peacockString } from './strings-
|
|
6
|
-
import { T as ToggleBase } from './toggle-base-
|
|
5
|
+
import { p as peacockString } from './strings-DYwXSSu_.js';
|
|
6
|
+
import { T as ToggleBase } from './toggle-base-B-HOnUIy.js';
|
|
7
7
|
import './directive-ZPhl09Yt.js';
|
|
8
8
|
import './state-BCeDVCI9.js';
|
|
9
9
|
import './query-CHb9Ft_d.js';
|
|
10
10
|
import './base-Cl6v8-BZ.js';
|
|
11
11
|
import './form-associated-BHbg72PG.js';
|
|
12
12
|
import './element-internals-QME0yEz4.js';
|
|
13
|
-
import './BaseInput-
|
|
13
|
+
import './BaseInput-FhjvfMjF.js';
|
|
14
14
|
import './suggestion-controller-7YRQqkaI.js';
|
|
15
15
|
import './ai-controller-DR_Tg0sN.js';
|
|
16
16
|
import './locale-DEsJZCQG.js';
|
package/dist/chip-set.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i, _ as __decorate, I as IndividualComponent, b } from './IndividualComponent-BK7XZjE2.js';
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
|
-
import { B as BaseInput } from './BaseInput-
|
|
3
|
+
import { B as BaseInput } from './BaseInput-FhjvfMjF.js';
|
|
4
4
|
import { R as RovingFocusController } from './roving-focus-controller-fm95JkZJ.js';
|
|
5
5
|
import { g as getFormValue } from './form-associated-BHbg72PG.js';
|
|
6
|
-
import { p as peacockString } from './strings-
|
|
6
|
+
import { p as peacockString } from './strings-DYwXSSu_.js';
|
|
7
7
|
import './state-BCeDVCI9.js';
|
|
8
8
|
import './element-internals-QME0yEz4.js';
|
|
9
9
|
import './suggestion-controller-7YRQqkaI.js';
|
package/dist/chip.js
CHANGED
|
@@ -13,11 +13,11 @@ import { a as mixinBaseButton } from './base-button-BJMGMcMv.js';
|
|
|
13
13
|
import { m as mixinHyperlink } from './hyperlink-DycWPKwU.js';
|
|
14
14
|
import { m as mixinDelegatesAria } from './delegate-Bw2wdPFP.js';
|
|
15
15
|
import { m as mixinElementInternals } from './element-internals-QME0yEz4.js';
|
|
16
|
-
import { I as I18nController } from './i18n-controller-
|
|
16
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
17
17
|
import './base-Cl6v8-BZ.js';
|
|
18
18
|
import './directive-ZPhl09Yt.js';
|
|
19
19
|
import './warn-once-BNxX1Y98.js';
|
|
20
|
-
import './strings-
|
|
20
|
+
import './strings-DYwXSSu_.js';
|
|
21
21
|
import './locale-DEsJZCQG.js';
|
|
22
22
|
|
|
23
23
|
var css_248z$1 = i`* {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { i, _ as __decorate, I as IndividualComponent, A, b } from './IndividualComponent-BK7XZjE2.js';
|
|
2
2
|
import { e } from './class-map-NDIkZErE.js';
|
|
3
3
|
import { o } from './style-map-CHOg6N_R.js';
|
|
4
|
-
import { B as BaseProgress } from './base-progress-
|
|
4
|
+
import { B as BaseProgress } from './base-progress-D8-x6XS4.js';
|
|
5
5
|
import './directive-ZPhl09Yt.js';
|
|
6
6
|
import './property-B2TG3KEE.js';
|
|
7
|
-
import './i18n-controller-
|
|
8
|
-
import './strings-
|
|
7
|
+
import './i18n-controller-Co6pasNo.js';
|
|
8
|
+
import './strings-DYwXSSu_.js';
|
|
9
9
|
import './locale-DEsJZCQG.js';
|
|
10
10
|
import './delegate-Bw2wdPFP.js';
|
|
11
11
|
|
package/dist/citation.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { i, _ as __decorate, I as IndividualComponent, a as i$1, b, A } from './IndividualComponent-BK7XZjE2.js';
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
|
-
import { I as I18nController } from './i18n-controller-
|
|
4
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
5
5
|
import { s as safeUrl } from './url-BFUh__RO.js';
|
|
6
|
-
import './strings-
|
|
6
|
+
import './strings-DYwXSSu_.js';
|
|
7
7
|
import './locale-DEsJZCQG.js';
|
|
8
8
|
|
|
9
9
|
var css_248z = i`* {
|
package/dist/code-editor.js
CHANGED
|
@@ -3,14 +3,14 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { e as e$1 } from './class-map-NDIkZErE.js';
|
|
6
|
-
import { I as I18nController } from './i18n-controller-
|
|
6
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
7
7
|
import { A as AiController } from './ai-controller-DR_Tg0sN.js';
|
|
8
|
-
import { B as BaseInput } from './BaseInput-
|
|
8
|
+
import { B as BaseInput } from './BaseInput-FhjvfMjF.js';
|
|
9
9
|
import { o as observeThemeChange } from './observe-theme-change-CkSENG98.js';
|
|
10
10
|
import { t as tokenColor } from './token-colors-DEO6rvEu.js';
|
|
11
11
|
import './base-Cl6v8-BZ.js';
|
|
12
12
|
import './directive-ZPhl09Yt.js';
|
|
13
|
-
import './strings-
|
|
13
|
+
import './strings-DYwXSSu_.js';
|
|
14
14
|
import './locale-DEsJZCQG.js';
|
|
15
15
|
import './element-internals-QME0yEz4.js';
|
|
16
16
|
import './form-associated-BHbg72PG.js';
|
package/dist/code-highlighter.js
CHANGED
|
@@ -4,11 +4,11 @@ import { r } from './state-BCeDVCI9.js';
|
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { e as e$1 } from './class-map-NDIkZErE.js';
|
|
6
6
|
import { o } from './style-map-CHOg6N_R.js';
|
|
7
|
-
import { I as I18nController } from './i18n-controller-
|
|
7
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
8
8
|
import { T as TOKEN_DEFAULTS } from './token-colors-DEO6rvEu.js';
|
|
9
9
|
import './base-Cl6v8-BZ.js';
|
|
10
10
|
import './directive-ZPhl09Yt.js';
|
|
11
|
-
import './strings-
|
|
11
|
+
import './strings-DYwXSSu_.js';
|
|
12
12
|
import './locale-DEsJZCQG.js';
|
|
13
13
|
|
|
14
14
|
/**
|
package/dist/color-field.js
CHANGED
|
@@ -4,13 +4,13 @@ import { r } from './state-BCeDVCI9.js';
|
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { o } from './style-map-CHOg6N_R.js';
|
|
6
6
|
import { s as spread } from './spread-B5cgadZl.js';
|
|
7
|
-
import { I as I18nController } from './i18n-controller-
|
|
8
|
-
import { B as BaseField } from './BaseField-
|
|
7
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
8
|
+
import { B as BaseField } from './BaseField-DPyW5Zm5.js';
|
|
9
9
|
import './base-Cl6v8-BZ.js';
|
|
10
10
|
import './directive-ZPhl09Yt.js';
|
|
11
|
-
import './strings-
|
|
11
|
+
import './strings-DYwXSSu_.js';
|
|
12
12
|
import './locale-DEsJZCQG.js';
|
|
13
|
-
import './BaseInput-
|
|
13
|
+
import './BaseInput-FhjvfMjF.js';
|
|
14
14
|
import './element-internals-QME0yEz4.js';
|
|
15
15
|
import './form-associated-BHbg72PG.js';
|
|
16
16
|
import './suggestion-controller-7YRQqkaI.js';
|
package/dist/color-picker.js
CHANGED
|
@@ -3,10 +3,10 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { o } from './style-map-CHOg6N_R.js';
|
|
6
|
-
import { I as I18nController } from './i18n-controller-
|
|
6
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
7
7
|
import './base-Cl6v8-BZ.js';
|
|
8
8
|
import './directive-ZPhl09Yt.js';
|
|
9
|
-
import './strings-
|
|
9
|
+
import './strings-DYwXSSu_.js';
|
|
10
10
|
import './locale-DEsJZCQG.js';
|
|
11
11
|
|
|
12
12
|
var css_248z = i`:host {
|
package/dist/command-palette.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './query-CHb9Ft_d.js';
|
|
5
5
|
import { e as e$1 } from './class-map-NDIkZErE.js';
|
|
6
|
-
import { I as I18nController } from './i18n-controller-
|
|
6
|
+
import { I as I18nController } from './i18n-controller-Co6pasNo.js';
|
|
7
7
|
import { A as AiController } from './ai-controller-DR_Tg0sN.js';
|
|
8
8
|
import { s as sparkle } from './sparkle-BmtM0vbq.js';
|
|
9
9
|
import { i as isApplePlatform } from './platform-BUuoTAmr.js';
|
|
@@ -11,7 +11,7 @@ import { O as OverlayController } from './overlay-controller-BOk-kfil.js';
|
|
|
11
11
|
import { c as css_248z$1 } from './modal-B78gUfEO.js';
|
|
12
12
|
import './base-Cl6v8-BZ.js';
|
|
13
13
|
import './directive-ZPhl09Yt.js';
|
|
14
|
-
import './strings-
|
|
14
|
+
import './strings-DYwXSSu_.js';
|
|
15
15
|
import './locale-DEsJZCQG.js';
|
|
16
16
|
|
|
17
17
|
var css_248z = i`/*
|
package/dist/comment-composer.js
CHANGED
|
@@ -3,7 +3,7 @@ import { n } from './property-B2TG3KEE.js';
|
|
|
3
3
|
import { r } from './state-BCeDVCI9.js';
|
|
4
4
|
import { e } from './class-map-NDIkZErE.js';
|
|
5
5
|
import { i as Extension } from './slash-controller-DAsDquPA.js';
|
|
6
|
-
import { R as RichTextInput } from './rich-text-input-
|
|
6
|
+
import { R as RichTextInput } from './rich-text-input-YeqK1or-.js';
|
|
7
7
|
import { e as extractMentions } from './markdown-lexer-Bx4Vkpu6.js';
|
|
8
8
|
import './directive-ZPhl09Yt.js';
|
|
9
9
|
import './diff-CT416thw.js';
|
|
@@ -18,12 +18,12 @@ import './url-BFUh__RO.js';
|
|
|
18
18
|
import './query-CHb9Ft_d.js';
|
|
19
19
|
import './base-Cl6v8-BZ.js';
|
|
20
20
|
import './style-map-CHOg6N_R.js';
|
|
21
|
-
import './BaseInput-
|
|
21
|
+
import './BaseInput-FhjvfMjF.js';
|
|
22
22
|
import './element-internals-QME0yEz4.js';
|
|
23
23
|
import './form-associated-BHbg72PG.js';
|
|
24
|
-
import './strings-
|
|
24
|
+
import './strings-DYwXSSu_.js';
|
|
25
25
|
import './suggestion-controller-7YRQqkaI.js';
|
|
26
|
-
import './i18n-controller-
|
|
26
|
+
import './i18n-controller-Co6pasNo.js';
|
|
27
27
|
|
|
28
28
|
var css_248z = i`* {
|
|
29
29
|
box-sizing: border-box;
|
|
@@ -2,8 +2,8 @@ import { i, _ as __decorate, I as IndividualComponent, A, b } from './Individual
|
|
|
2
2
|
import { n } from './property-B2TG3KEE.js';
|
|
3
3
|
import { A as AiController } from './ai-controller-DR_Tg0sN.js';
|
|
4
4
|
import { s as sparkle } from './sparkle-BmtM0vbq.js';
|
|
5
|
-
import { a as CbGroupBase } from './cb-group-base-
|
|
6
|
-
import { c as css_248z$1 } from './cb-group-base-
|
|
5
|
+
import { a as CbGroupBase } from './cb-group-base-Crt0BSzR.js';
|
|
6
|
+
import { c as css_248z$1 } from './cb-group-base-2Ps2CnBz.js';
|
|
7
7
|
import './locale-DEsJZCQG.js';
|
|
8
8
|
import './state-BCeDVCI9.js';
|
|
9
9
|
import './query-CHb9Ft_d.js';
|
|
@@ -11,8 +11,8 @@ import './base-Cl6v8-BZ.js';
|
|
|
11
11
|
import './class-map-NDIkZErE.js';
|
|
12
12
|
import './directive-ZPhl09Yt.js';
|
|
13
13
|
import './style-map-CHOg6N_R.js';
|
|
14
|
-
import './i18n-controller-
|
|
15
|
-
import './strings-
|
|
14
|
+
import './i18n-controller-Co6pasNo.js';
|
|
15
|
+
import './strings-DYwXSSu_.js';
|
|
16
16
|
|
|
17
17
|
var css_248z = i`.describe {
|
|
18
18
|
display: flex;
|
|
@@ -71,7 +71,7 @@ var css_248z = i`.describe {
|
|
|
71
71
|
* @overview
|
|
72
72
|
* <p>The condition builder is the root group of a query. It holds rules (<code>wc-cb-rule</code>) and bordered nested groups (<code>wc-cb-group</code>), each joined by a bracket with an And/Or pill.</p>
|
|
73
73
|
* <ul>
|
|
74
|
-
* <li>Click the pill to
|
|
74
|
+
* <li>Click the pill to swap a group between And and Or; its tooltip says which it switches to.</li>
|
|
75
75
|
* <li>Drag a rule by its handle to reorder it or move it between groups.</li>
|
|
76
76
|
* <li>Without a mouse, focus a rule's handle: ArrowUp and ArrowDown move it within its group, ArrowRight moves it into the group beside it and ArrowLeft out of its group. Each move is announced.</li>
|
|
77
77
|
* <li>Removing, moving and switching are built in; adding rules and groups is up to you, since only you know what a new rule contains. Listen for <code>add-rule</code> and <code>add-group</code>, which nested groups fire too; <code>detail.group</code> is the group to add to.</li>
|
|
@@ -95,7 +95,7 @@ var css_248z = i`.describe {
|
|
|
95
95
|
* one discards it. <code>no-ai</code> turns the box off.</p>
|
|
96
96
|
* @tags condition-builder
|
|
97
97
|
*
|
|
98
|
-
* @fires {CustomEvent<{operator: 'and' | 'or'}>} operator-change - Dispatched when the user
|
|
98
|
+
* @fires {CustomEvent<{operator: 'and' | 'or'}>} operator-change - Dispatched when the user swaps the operator with the pill, on this or a nested group.
|
|
99
99
|
* @fires {CustomEvent<{rule: CbRule, from: HTMLElement | null, to: HTMLElement, index: number}>} rule-move - Dispatched before a rule is moved. Cancelable: unless prevented, the target group moves the rule.
|
|
100
100
|
* @fires {CustomEvent<{rule: CbRule, group: HTMLElement | null}>} rule-remove - Dispatched when a rule's remove button is clicked. Cancelable: unless prevented, the rule removes itself.
|
|
101
101
|
* @fires {CustomEvent<{group: HTMLElement}>} add-rule - Dispatched when "Add rule" (or a nested group's "Add condition") is clicked.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"condition-builder.js","sources":["../../src/condition-builder/condition-builder.ts"],"sourcesContent":["import { html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport type { PeacockStrings } from '@/__internal/i18n/strings.js';\nimport { AiController } from '@/__internal/ai/ai-controller.js';\nimport { sparkle } from '@/__internal/ai/sparkle.js';\nimport { CbGroupBase } from './cb-group-base.js';\nimport baseStyles from './cb-group-base.scss';\nimport styles from './condition-builder.scss';\n\n/** `detail` of `describe`: the person's sentence and the provider's answer for it. */\nexport interface ConditionBuilderDescribeDetail {\n text: string;\n value: unknown;\n}\n\n/**\n * @label Condition Builder\n * @tag wc-condition-builder\n * @rawTag condition-builder\n * @summary A query builder for composing filter conditions from rules and nested groups joined by And/Or.\n * @overview\n * <p>The condition builder is the root group of a query. It holds rules (<code>wc-cb-rule</code>) and bordered nested groups (<code>wc-cb-group</code>), each joined by a bracket with an And/Or pill.</p>\n * <ul>\n * <li>Click the pill to switch a group between And and Or.</li>\n * <li>Drag a rule by its handle to reorder it or move it between groups.</li>\n * <li>Without a mouse, focus a rule's handle: ArrowUp and ArrowDown move it within its group, ArrowRight moves it into the group beside it and ArrowLeft out of its group. Each move is announced.</li>\n * <li>Removing, moving and switching are built in; adding rules and groups is up to you, since only you know what a new rule contains. Listen for <code>add-rule</code> and <code>add-group</code>, which nested groups fire too; <code>detail.group</code> is the group to add to.</li>\n * <li><code>disabled</code> and <code>readonly</code> apply to every group and rule inside: the add, remove and drag controls are hidden and the operator is locked. Disable or lock the slotted controls yourself.</li>\n * </ul>\n * <p><code>value</code> (read-only) returns the query as a tree, ready for <code>JSON.stringify()</code>:</p>\n * <pre><code>{\n * type: 'group', id, operator: 'and' | 'or', data,\n * children: [\n * { type: 'rule', id, value, data },\n * { type: 'group', id, operator, data, children: [...] }\n * ]\n * }</code></pre>\n * <p><code>id</code> is the element's id, <code>data</code> its <code>data-*</code> attributes. A rule's <code>value</code> is the rule's own <code>value</code> property when set, else the values of the controls slotted into it: an object keyed by <code>name</code> when every control has a name, else an array. Each node also has a non-enumerable <code>element</code>, the element it came from, which <code>JSON.stringify()</code> leaves out.</p>\n * <p><b>Describe the condition.</b> With a provider that offers <code>parse</code> (ADR-030002), a\n * box above the footer takes a sentence, such as \"P1 incidents with no assignment group for over 30\n * minutes\". The provider gets it with <code>target: 'condition-builder'</code> and the fields in\n * <code>ai-schema</code> (never record values), and its answer arrives as <code>describe</code>.\n * Build the rules from it as you build any rule, with <code>suggested</code> on each\n * <code>wc-cb-rule</code>: they show a Suggested badge until the person changes them, and removing\n * one discards it. <code>no-ai</code> turns the box off.</p>\n * @tags condition-builder\n *\n * @fires {CustomEvent<{operator: 'and' | 'or'}>} operator-change - Dispatched when the user picks a different operator, on this or a nested group.\n * @fires {CustomEvent<{rule: CbRule, from: HTMLElement | null, to: HTMLElement, index: number}>} rule-move - Dispatched before a rule is moved. Cancelable: unless prevented, the target group moves the rule.\n * @fires {CustomEvent<{rule: CbRule, group: HTMLElement | null}>} rule-remove - Dispatched when a rule's remove button is clicked. Cancelable: unless prevented, the rule removes itself.\n * @fires {CustomEvent<{group: HTMLElement}>} add-rule - Dispatched when \"Add rule\" (or a nested group's \"Add condition\") is clicked.\n * @fires {CustomEvent<{group: HTMLElement}>} add-group - Dispatched when \"Add inner group\" is clicked, on this or a nested group.\n * @fires {CustomEvent<ConditionBuilderDescribeDetail>} describe - The provider turned the person's sentence into conditions; build the rules from `detail.value`, marked `suggested`.\n *\n * @slot - Rules (`wc-cb-rule`) and groups (`wc-cb-group`).\n * @slot actions - Replaces the default \"Add rule\" and \"Add inner group\" buttons. Hidden while disabled or read-only.\n * @slot actions-end - Actions aligned to the end of the footer, such as a \"Run query\" button.\n *\n * @example\n * ```html\n * <wc-condition-builder operator=\"and\">\n * <wc-cb-rule>\n * <wc-input placeholder=\"Value\"></wc-input>\n * </wc-cb-rule>\n * <wc-cb-group operator=\"or\">\n * <wc-cb-rule>\n * <wc-input placeholder=\"Value\"></wc-input>\n * </wc-cb-rule>\n * <wc-cb-rule>\n * <wc-input placeholder=\"Value\"></wc-input>\n * </wc-cb-rule>\n * </wc-cb-group>\n * <wc-button slot=\"actions-end\">Run query</wc-button>\n * </wc-condition-builder>\n * ```\n */\n@IndividualComponent\nexport class ConditionBuilder extends CbGroupBase {\n // ── Static ────────────────────────────────────────────────────────────────\n\n static styles = [baseStyles, styles];\n\n // ── Properties ────────────────────────────────────────────────────────────\n\n /** Overrides Peacock's strings for this instance only. */\n @property({ attribute: false }) strings?: Partial<PeacockStrings>;\n\n /**\n * The fields a rule can use, sent to the provider with a described condition, such as\n * `[{ key: 'priority', label: 'Priority', options: [...] }]`. Never record values.\n */\n @property({ attribute: false }) aiSchema: unknown = [];\n\n /** Turns off Describe the condition, even when the page's AI offers it. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ai' }) noAi = false;\n\n // ── Private fields ────────────────────────────────────────────────────────\n\n private readonly ai = new AiController(this, 'parse');\n\n // ── Private methods ───────────────────────────────────────────────────────\n\n private async describe() {\n const input =\n this.renderRoot.querySelector<HTMLInputElement>('.describe-input');\n const { provider } = this.ai;\n const text = input?.value.trim() ?? '';\n if (!provider?.parse || !text) return;\n const value = await this.ai.run(signal =>\n provider.parse!({\n signal,\n context: this.ai.context(),\n target: 'condition-builder',\n text,\n schema: this.aiSchema,\n }),\n );\n if (value === undefined || value === null) {\n if (this.ai.error || value === null) {\n this.announce(this.i18n.t('conditionDescribeFailed'));\n }\n return;\n }\n if (input) input.value = '';\n this.dispatchEvent(\n new CustomEvent<ConditionBuilderDescribeDetail>('describe', {\n detail: { text, value },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n private onDescribeKey = (event: KeyboardEvent) => {\n if (event.key !== 'Enter') return;\n event.preventDefault();\n this.describe();\n };\n\n // ── Render helpers ────────────────────────────────────────────────────────\n\n private renderDescribe() {\n if (this.locked || !this.ai.available) return nothing;\n const label = this.i18n.t('conditionDescribe');\n return html`<div\n class=\"describe\"\n @input=${(event: Event) => event.stopPropagation()}\n @change=${(event: Event) => event.stopPropagation()}\n >\n <span class=\"describe-sparkle\" aria-hidden=\"true\">${sparkle}</span>\n <input\n class=\"describe-input\"\n type=\"text\"\n aria-label=${label}\n placeholder=${label}\n @keydown=${this.onDescribeKey}\n />\n <wc-button\n size=\"sm\"\n variant=\"tonal\"\n ?loading=${this.ai.busy}\n @click=${() => this.describe()}\n >${this.i18n.t('conditionDescribeGo')}</wc-button\n >\n </div>`;\n }\n\n protected override renderFooter() {\n return html`\n ${this.renderDescribe()}\n <div class=\"footer\">\n <div class=\"actions\">\n ${this.locked\n ? nothing\n : html`<slot name=\"actions\">\n <wc-button\n variant=\"outlined\"\n size=\"sm\"\n @click=${() => this.dispatchAdd('add-rule')}\n >\n <wc-icon slot=\"icon\" name=\"add_circle\"></wc-icon>\n ${this.i18n.t('addRule')}\n </wc-button>\n <wc-button\n variant=\"text\"\n size=\"sm\"\n @click=${() => this.dispatchAdd('add-group')}\n >\n <wc-icon slot=\"icon\" name=\"create_new_folder\"></wc-icon>\n ${this.i18n.t('addInnerGroup')}\n </wc-button>\n </slot>`}\n </div>\n <div class=\"actions-end\">\n <slot name=\"actions-end\"></slot>\n </div>\n </div>\n `;\n }\n}\n"],"names":["nothing","html","baseStyles","styles","property"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,WAAW,CAAA;AAA1C,IAAA,WAAA,GAAA;;;AAUL;;;AAGG;QAC6B,IAAA,CAAA,QAAQ,GAAY,EAAE;;QAGU,IAA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E1B,qBAAA,CAAA;;;;;;KAMjB;IACH;;AAtHO,gBAAA,CAAA,MAAM,GAAG,CAACC,UAAU,EAAEC,QAAM,CAAC;AAKJ,UAAA,CAAA;AAA/B,IAAAC,CAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AAAoC,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,SAAA,EAAA,MAAA,CAAA;AAMlC,UAAA,CAAA;AAA/B,IAAAA,CAAQ,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;AAAyB,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,UAAA,EAAA,MAAA,CAAA;AAGS,UAAA,CAAA;AAA/D,IAAAA,CAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE;AAAe,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,CAAA;AAjBlE,gBAAgB,GAAA,UAAA,CAAA;IAD5B;AACY,CAAA,EAAA,gBAAgB,CA0H5B;;;;"}
|
|
1
|
+
{"version":3,"file":"condition-builder.js","sources":["../../src/condition-builder/condition-builder.ts"],"sourcesContent":["import { html, nothing } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport IndividualComponent from '@/IndividualComponent.js';\nimport type { PeacockStrings } from '@/__internal/i18n/strings.js';\nimport { AiController } from '@/__internal/ai/ai-controller.js';\nimport { sparkle } from '@/__internal/ai/sparkle.js';\nimport { CbGroupBase } from './cb-group-base.js';\nimport baseStyles from './cb-group-base.scss';\nimport styles from './condition-builder.scss';\n\n/** `detail` of `describe`: the person's sentence and the provider's answer for it. */\nexport interface ConditionBuilderDescribeDetail {\n text: string;\n value: unknown;\n}\n\n/**\n * @label Condition Builder\n * @tag wc-condition-builder\n * @rawTag condition-builder\n * @summary A query builder for composing filter conditions from rules and nested groups joined by And/Or.\n * @overview\n * <p>The condition builder is the root group of a query. It holds rules (<code>wc-cb-rule</code>) and bordered nested groups (<code>wc-cb-group</code>), each joined by a bracket with an And/Or pill.</p>\n * <ul>\n * <li>Click the pill to swap a group between And and Or; its tooltip says which it switches to.</li>\n * <li>Drag a rule by its handle to reorder it or move it between groups.</li>\n * <li>Without a mouse, focus a rule's handle: ArrowUp and ArrowDown move it within its group, ArrowRight moves it into the group beside it and ArrowLeft out of its group. Each move is announced.</li>\n * <li>Removing, moving and switching are built in; adding rules and groups is up to you, since only you know what a new rule contains. Listen for <code>add-rule</code> and <code>add-group</code>, which nested groups fire too; <code>detail.group</code> is the group to add to.</li>\n * <li><code>disabled</code> and <code>readonly</code> apply to every group and rule inside: the add, remove and drag controls are hidden and the operator is locked. Disable or lock the slotted controls yourself.</li>\n * </ul>\n * <p><code>value</code> (read-only) returns the query as a tree, ready for <code>JSON.stringify()</code>:</p>\n * <pre><code>{\n * type: 'group', id, operator: 'and' | 'or', data,\n * children: [\n * { type: 'rule', id, value, data },\n * { type: 'group', id, operator, data, children: [...] }\n * ]\n * }</code></pre>\n * <p><code>id</code> is the element's id, <code>data</code> its <code>data-*</code> attributes. A rule's <code>value</code> is the rule's own <code>value</code> property when set, else the values of the controls slotted into it: an object keyed by <code>name</code> when every control has a name, else an array. Each node also has a non-enumerable <code>element</code>, the element it came from, which <code>JSON.stringify()</code> leaves out.</p>\n * <p><b>Describe the condition.</b> With a provider that offers <code>parse</code> (ADR-030002), a\n * box above the footer takes a sentence, such as \"P1 incidents with no assignment group for over 30\n * minutes\". The provider gets it with <code>target: 'condition-builder'</code> and the fields in\n * <code>ai-schema</code> (never record values), and its answer arrives as <code>describe</code>.\n * Build the rules from it as you build any rule, with <code>suggested</code> on each\n * <code>wc-cb-rule</code>: they show a Suggested badge until the person changes them, and removing\n * one discards it. <code>no-ai</code> turns the box off.</p>\n * @tags condition-builder\n *\n * @fires {CustomEvent<{operator: 'and' | 'or'}>} operator-change - Dispatched when the user swaps the operator with the pill, on this or a nested group.\n * @fires {CustomEvent<{rule: CbRule, from: HTMLElement | null, to: HTMLElement, index: number}>} rule-move - Dispatched before a rule is moved. Cancelable: unless prevented, the target group moves the rule.\n * @fires {CustomEvent<{rule: CbRule, group: HTMLElement | null}>} rule-remove - Dispatched when a rule's remove button is clicked. Cancelable: unless prevented, the rule removes itself.\n * @fires {CustomEvent<{group: HTMLElement}>} add-rule - Dispatched when \"Add rule\" (or a nested group's \"Add condition\") is clicked.\n * @fires {CustomEvent<{group: HTMLElement}>} add-group - Dispatched when \"Add inner group\" is clicked, on this or a nested group.\n * @fires {CustomEvent<ConditionBuilderDescribeDetail>} describe - The provider turned the person's sentence into conditions; build the rules from `detail.value`, marked `suggested`.\n *\n * @slot - Rules (`wc-cb-rule`) and groups (`wc-cb-group`).\n * @slot actions - Replaces the default \"Add rule\" and \"Add inner group\" buttons. Hidden while disabled or read-only.\n * @slot actions-end - Actions aligned to the end of the footer, such as a \"Run query\" button.\n *\n * @example\n * ```html\n * <wc-condition-builder operator=\"and\">\n * <wc-cb-rule>\n * <wc-input placeholder=\"Value\"></wc-input>\n * </wc-cb-rule>\n * <wc-cb-group operator=\"or\">\n * <wc-cb-rule>\n * <wc-input placeholder=\"Value\"></wc-input>\n * </wc-cb-rule>\n * <wc-cb-rule>\n * <wc-input placeholder=\"Value\"></wc-input>\n * </wc-cb-rule>\n * </wc-cb-group>\n * <wc-button slot=\"actions-end\">Run query</wc-button>\n * </wc-condition-builder>\n * ```\n */\n@IndividualComponent\nexport class ConditionBuilder extends CbGroupBase {\n // ── Static ────────────────────────────────────────────────────────────────\n\n static styles = [baseStyles, styles];\n\n // ── Properties ────────────────────────────────────────────────────────────\n\n /** Overrides Peacock's strings for this instance only. */\n @property({ attribute: false }) strings?: Partial<PeacockStrings>;\n\n /**\n * The fields a rule can use, sent to the provider with a described condition, such as\n * `[{ key: 'priority', label: 'Priority', options: [...] }]`. Never record values.\n */\n @property({ attribute: false }) aiSchema: unknown = [];\n\n /** Turns off Describe the condition, even when the page's AI offers it. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ai' }) noAi = false;\n\n // ── Private fields ────────────────────────────────────────────────────────\n\n private readonly ai = new AiController(this, 'parse');\n\n // ── Private methods ───────────────────────────────────────────────────────\n\n private async describe() {\n const input =\n this.renderRoot.querySelector<HTMLInputElement>('.describe-input');\n const { provider } = this.ai;\n const text = input?.value.trim() ?? '';\n if (!provider?.parse || !text) return;\n const value = await this.ai.run(signal =>\n provider.parse!({\n signal,\n context: this.ai.context(),\n target: 'condition-builder',\n text,\n schema: this.aiSchema,\n }),\n );\n if (value === undefined || value === null) {\n if (this.ai.error || value === null) {\n this.announce(this.i18n.t('conditionDescribeFailed'));\n }\n return;\n }\n if (input) input.value = '';\n this.dispatchEvent(\n new CustomEvent<ConditionBuilderDescribeDetail>('describe', {\n detail: { text, value },\n bubbles: true,\n composed: true,\n }),\n );\n }\n\n private onDescribeKey = (event: KeyboardEvent) => {\n if (event.key !== 'Enter') return;\n event.preventDefault();\n this.describe();\n };\n\n // ── Render helpers ────────────────────────────────────────────────────────\n\n private renderDescribe() {\n if (this.locked || !this.ai.available) return nothing;\n const label = this.i18n.t('conditionDescribe');\n return html`<div\n class=\"describe\"\n @input=${(event: Event) => event.stopPropagation()}\n @change=${(event: Event) => event.stopPropagation()}\n >\n <span class=\"describe-sparkle\" aria-hidden=\"true\">${sparkle}</span>\n <input\n class=\"describe-input\"\n type=\"text\"\n aria-label=${label}\n placeholder=${label}\n @keydown=${this.onDescribeKey}\n />\n <wc-button\n size=\"sm\"\n variant=\"tonal\"\n ?loading=${this.ai.busy}\n @click=${() => this.describe()}\n >${this.i18n.t('conditionDescribeGo')}</wc-button\n >\n </div>`;\n }\n\n protected override renderFooter() {\n return html`\n ${this.renderDescribe()}\n <div class=\"footer\">\n <div class=\"actions\">\n ${this.locked\n ? nothing\n : html`<slot name=\"actions\">\n <wc-button\n variant=\"outlined\"\n size=\"sm\"\n @click=${() => this.dispatchAdd('add-rule')}\n >\n <wc-icon slot=\"icon\" name=\"add_circle\"></wc-icon>\n ${this.i18n.t('addRule')}\n </wc-button>\n <wc-button\n variant=\"text\"\n size=\"sm\"\n @click=${() => this.dispatchAdd('add-group')}\n >\n <wc-icon slot=\"icon\" name=\"create_new_folder\"></wc-icon>\n ${this.i18n.t('addInnerGroup')}\n </wc-button>\n </slot>`}\n </div>\n <div class=\"actions-end\">\n <slot name=\"actions-end\"></slot>\n </div>\n </div>\n `;\n }\n}\n"],"names":["nothing","html","baseStyles","styles","property"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DG;AAEI,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,WAAW,CAAA;AAA1C,IAAA,WAAA,GAAA;;;AAUL;;;AAGG;QAC6B,IAAA,CAAA,QAAQ,GAAY,EAAE;;QAGU,IAAA,CAAA,IAAI,GAAG,KAAK;;QAI3D,IAAA,CAAA,EAAE,GAAG,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC;AAmC7C,QAAA,IAAA,CAAA,aAAa,GAAG,CAAC,KAAoB,KAAI;AAC/C,YAAA,IAAI,KAAK,CAAC,GAAG,KAAK,OAAO;gBAAE;YAC3B,KAAK,CAAC,cAAc,EAAE;YACtB,IAAI,CAAC,QAAQ,EAAE;AACjB,QAAA,CAAC;IA8DH;;AAjGU,IAAA,MAAM,QAAQ,GAAA;QACpB,MAAM,KAAK,GACT,IAAI,CAAC,UAAU,CAAC,aAAa,CAAmB,iBAAiB,CAAC;AACpE,QAAA,MAAM,EAAE,QAAQ,EAAE,GAAG,IAAI,CAAC,EAAE;QAC5B,MAAM,IAAI,GAAG,KAAK,EAAE,KAAK,CAAC,IAAI,EAAE,IAAI,EAAE;AACtC,QAAA,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,IAAI;YAAE;AAC/B,QAAA,MAAM,KAAK,GAA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