impact-nova 3.0.0-alpha.0 → 3.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/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/index.js +7 -0
- package/dist/_virtual/index2.js +7 -0
- package/dist/_virtual/index3.js +4 -0
- package/dist/_virtual/utilities.js +4 -0
- package/dist/components/data/ag-grid-react/cell-renderers/link-with-batch-cell-renderer.js +2 -0
- package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js +31 -29
- package/dist/components/data/ag-grid-react/headers/components/lazy-tooltip.js +8 -6
- package/dist/components/data/expandable-list-item/expandable-list-item-attributes.js +9 -6
- package/dist/components/data/expandable-list-item/expandable-list-item-metrics.js +3 -2
- package/dist/components/data-display/calendar/fiscal-period-caption-select.js +4 -2
- package/dist/components/feedback/popover/popover.js +1 -1
- package/dist/components/feedback/tooltip/button-icon-tooltip.js +8 -6
- package/dist/components/feedback/tooltip/tab-tooltip-render.js +7 -4
- package/dist/components/flows/command-palette/shortcut-settings.js +10 -10
- package/dist/components/flows/filter-panel/filter-panel.js +4 -4
- package/dist/components/flows/guidance/renderers/guidance-card-shared.js +1 -1
- package/dist/components/flows/iris-chat/iris-chat-artifact.js +6 -6
- package/dist/components/flows/iris-chat/iris-chat-composer.js +9 -9
- package/dist/components/flows/iris-chat/iris-chat-markdown.js +17 -17
- package/dist/components/flows/iris-chat/iris-chat-menu.js +1 -1
- package/dist/components/flows/iris-chat/iris-chat-thread.js +1 -1
- package/dist/components/flows/iris-chat/iris-chat.js +1 -1
- package/dist/components/forms/combobox/combobox.js +1 -1
- package/dist/components/forms/select/components/SelectTriggerValue.js +3 -2
- package/dist/components/forms/select/components/Submenu.js +3 -2
- package/dist/components/layout/breadcrumb/breadcrumb.js +1 -1
- package/dist/llms/rules/installation.js +1 -1
- package/dist/llms/rules/requirements.js +1 -1
- package/dist/node_modules/@ungap/structured-clone/esm/deserialize.js +85 -0
- package/dist/node_modules/@ungap/structured-clone/esm/index.js +11 -0
- package/dist/node_modules/@ungap/structured-clone/esm/serialize.js +110 -0
- package/dist/node_modules/@ungap/structured-clone/esm/types.js +13 -0
- package/dist/node_modules/bail/index.js +7 -0
- package/dist/node_modules/ccount/index.js +12 -0
- package/dist/node_modules/comma-separated-tokens/index.js +9 -0
- package/dist/node_modules/decode-named-character-reference/index.dom.js +10 -0
- package/dist/node_modules/devlop/lib/default.js +8 -0
- package/dist/node_modules/estree-util-is-identifier-name/lib/index.js +7 -0
- package/dist/node_modules/extend/index.js +43 -0
- package/dist/node_modules/hast-util-to-jsx-runtime/lib/index.js +302 -0
- package/dist/node_modules/hast-util-whitespace/lib/index.js +10 -0
- package/dist/node_modules/html-url-attributes/lib/index.js +26 -0
- package/dist/node_modules/inline-style-parser/cjs/index.js +93 -0
- package/dist/node_modules/is-plain-obj/index.js +9 -0
- package/dist/node_modules/longest-streak/index.js +12 -0
- package/dist/node_modules/markdown-table/index.js +75 -0
- package/dist/node_modules/mdast-util-find-and-replace/lib/index.js +78 -0
- package/dist/node_modules/mdast-util-find-and-replace/node_modules/escape-string-regexp/index.js +8 -0
- package/dist/node_modules/mdast-util-from-markdown/lib/index.js +632 -0
- package/dist/node_modules/mdast-util-gfm/lib/index.js +29 -0
- package/dist/node_modules/mdast-util-gfm-autolink-literal/lib/index.js +130 -0
- package/dist/node_modules/mdast-util-gfm-footnote/lib/index.js +95 -0
- package/dist/node_modules/mdast-util-gfm-strikethrough/lib/index.js +54 -0
- package/dist/node_modules/mdast-util-gfm-table/lib/index.js +135 -0
- package/dist/node_modules/mdast-util-gfm-task-list-item/lib/index.js +58 -0
- package/dist/node_modules/mdast-util-phrasing/lib/index.js +30 -0
- package/dist/node_modules/mdast-util-to-hast/lib/footer.js +90 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/blockquote.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/break.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/code.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/delete.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/emphasis.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/footnote-reference.js +28 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/heading.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/html.js +9 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image-reference.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/image.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/index.js +58 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/inline-code.js +14 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link-reference.js +19 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/link.js +15 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list-item.js +42 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/list.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/paragraph.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/root.js +7 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/strong.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-cell.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table-row.js +21 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/table.js +32 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/text.js +8 -0
- package/dist/node_modules/mdast-util-to-hast/lib/handlers/thematic-break.js +12 -0
- package/dist/node_modules/mdast-util-to-hast/lib/index.js +10 -0
- package/dist/node_modules/mdast-util-to-hast/lib/revert.js +13 -0
- package/dist/node_modules/mdast-util-to-hast/lib/state.js +104 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/blockquote.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/break.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/code.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/definition.js +34 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/emphasis.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/heading.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/html.js +10 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/image.js +33 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/index.js +44 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/inline-code.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link-reference.js +29 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/link.js +52 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list-item.js +22 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/list.js +35 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/paragraph.js +7 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/root.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/strong.js +20 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/text.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/handle/thematic-break.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-ordered.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet-other.js +18 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-bullet.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-emphasis.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-fence.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-list-item-indent.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-quote.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule-repetition.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-rule.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/check-strong.js +11 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/encode-character-reference.js +6 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-code-as-indented.js +9 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-heading-as-setext.js +13 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/format-link-as-autolink.js +15 -0
- package/dist/node_modules/mdast-util-to-markdown/lib/util/pattern-in-scope.js +15 -0
- package/dist/node_modules/mdast-util-to-string/lib/index.js +29 -0
- package/dist/node_modules/micromark/lib/constructs.js +85 -0
- package/dist/node_modules/micromark/lib/create-tokenizer.js +225 -0
- package/dist/node_modules/micromark/lib/initialize/content.js +37 -0
- package/dist/node_modules/micromark/lib/initialize/document.js +128 -0
- package/dist/node_modules/micromark/lib/initialize/flow.js +33 -0
- package/dist/node_modules/micromark/lib/initialize/text.js +98 -0
- package/dist/node_modules/micromark/lib/parse.js +32 -0
- package/dist/node_modules/micromark/lib/postprocess.js +9 -0
- package/dist/node_modules/micromark/lib/preprocess.js +44 -0
- package/dist/node_modules/micromark-core-commonmark/lib/attention.js +87 -0
- package/dist/node_modules/micromark-core-commonmark/lib/autolink.js +43 -0
- package/dist/node_modules/micromark-core-commonmark/lib/blank-line.js +18 -0
- package/dist/node_modules/micromark-core-commonmark/lib/block-quote.js +42 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/character-reference.js +30 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-fenced.js +82 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-indented.js +37 -0
- package/dist/node_modules/micromark-core-commonmark/lib/code-text.js +45 -0
- package/dist/node_modules/micromark-core-commonmark/lib/content.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/definition.js +80 -0
- package/dist/node_modules/micromark-core-commonmark/lib/hard-break-escape.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/heading-atx.js +50 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-flow.js +132 -0
- package/dist/node_modules/micromark-core-commonmark/lib/html-text.js +102 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-end.js +154 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-image.js +23 -0
- package/dist/node_modules/micromark-core-commonmark/lib/label-start-link.js +20 -0
- package/dist/node_modules/micromark-core-commonmark/lib/line-ending.js +14 -0
- package/dist/node_modules/micromark-core-commonmark/lib/list.js +90 -0
- package/dist/node_modules/micromark-core-commonmark/lib/partial-non-lazy-continuation.js +17 -0
- package/dist/node_modules/micromark-core-commonmark/lib/setext-underline.js +59 -0
- package/dist/node_modules/micromark-core-commonmark/lib/thematic-break.js +25 -0
- package/dist/node_modules/micromark-extension-gfm/index.js +18 -0
- package/dist/node_modules/micromark-extension-gfm-autolink-literal/lib/syntax.js +193 -0
- package/dist/node_modules/micromark-extension-gfm-footnote/lib/syntax.js +192 -0
- package/dist/node_modules/micromark-extension-gfm-strikethrough/lib/syntax.js +67 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/edit-map.js +75 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/infer.js +23 -0
- package/dist/node_modules/micromark-extension-gfm-table/lib/syntax.js +149 -0
- package/dist/node_modules/micromark-extension-gfm-task-list-item/lib/syntax.js +45 -0
- package/dist/node_modules/micromark-factory-destination/index.js +31 -0
- package/dist/node_modules/micromark-factory-label/index.js +28 -0
- package/dist/node_modules/micromark-factory-space/index.js +29 -0
- package/dist/node_modules/micromark-factory-title/index.js +26 -0
- package/dist/node_modules/micromark-factory-whitespace/index.js +12 -0
- package/dist/node_modules/micromark-util-character/index.js +39 -0
- package/dist/node_modules/micromark-util-chunked/index.js +16 -0
- package/dist/node_modules/micromark-util-classify-character/index.js +10 -0
- package/dist/node_modules/micromark-util-combine-extensions/index.js +36 -0
- package/dist/node_modules/micromark-util-decode-numeric-character-reference/index.js +16 -0
- package/dist/node_modules/micromark-util-decode-string/index.js +18 -0
- package/dist/node_modules/micromark-util-edit-map/index.js +82 -0
- package/dist/node_modules/micromark-util-html-tag-name/index.js +68 -0
- package/dist/node_modules/micromark-util-normalize-identifier/index.js +6 -0
- package/dist/node_modules/micromark-util-resolve-all/index.js +12 -0
- package/dist/node_modules/micromark-util-sanitize-uri/index.js +23 -0
- package/dist/node_modules/micromark-util-subtokenize/index.js +55 -0
- package/dist/node_modules/micromark-util-subtokenize/lib/splice-buffer.js +175 -0
- package/dist/node_modules/property-information/index.js +12 -0
- package/dist/node_modules/property-information/lib/aria.js +61 -0
- package/dist/node_modules/property-information/lib/find.js +33 -0
- package/dist/node_modules/property-information/lib/hast-to-react.js +22 -0
- package/dist/node_modules/property-information/lib/html.js +378 -0
- package/dist/node_modules/property-information/lib/normalize.js +6 -0
- package/dist/node_modules/property-information/lib/svg.js +568 -0
- package/dist/node_modules/property-information/lib/util/case-insensitive-transform.js +7 -0
- package/dist/node_modules/property-information/lib/util/case-sensitive-transform.js +6 -0
- package/dist/node_modules/property-information/lib/util/create.js +19 -0
- package/dist/node_modules/property-information/lib/util/defined-info.js +36 -0
- package/dist/node_modules/property-information/lib/util/info.js +28 -0
- package/dist/node_modules/property-information/lib/util/merge.js +10 -0
- package/dist/node_modules/property-information/lib/util/schema.js +21 -0
- package/dist/node_modules/property-information/lib/util/types.js +14 -0
- package/dist/node_modules/property-information/lib/xlink.js +19 -0
- package/dist/node_modules/property-information/lib/xml.js +11 -0
- package/dist/node_modules/property-information/lib/xmlns.js +11 -0
- package/dist/node_modules/react-markdown/lib/index.js +102 -0
- package/dist/node_modules/remark-gfm/lib/index.js +13 -0
- package/dist/node_modules/remark-parse/lib/index.js +19 -0
- package/dist/node_modules/remark-rehype/lib/index.js +18 -0
- package/dist/node_modules/space-separated-tokens/index.js +6 -0
- package/dist/node_modules/style-to-js/cjs/index.js +20 -0
- package/dist/node_modules/style-to-js/cjs/utilities.js +19 -0
- package/dist/node_modules/style-to-object/cjs/index.js +28 -0
- package/dist/node_modules/trim-lines/index.js +28 -0
- package/dist/node_modules/trough/lib/index.js +60 -0
- package/dist/node_modules/unified/lib/callable-instance.js +25 -0
- package/dist/node_modules/unified/lib/index.js +529 -0
- package/dist/node_modules/unist-util-is/lib/index.js +91 -0
- package/dist/node_modules/unist-util-position/lib/index.js +23 -0
- package/dist/node_modules/unist-util-stringify-position/lib/index.js +15 -0
- package/dist/node_modules/unist-util-visit/lib/index.js +16 -0
- package/dist/node_modules/unist-util-visit-parents/lib/color.js +6 -0
- package/dist/node_modules/unist-util-visit-parents/lib/index.js +56 -0
- package/dist/node_modules/vfile/lib/index.js +406 -0
- package/dist/node_modules/vfile/lib/minpath.browser.js +112 -0
- package/dist/node_modules/vfile/lib/minproc.browser.js +7 -0
- package/dist/node_modules/vfile/lib/minurl.browser.js +41 -0
- package/dist/node_modules/vfile/lib/minurl.shared.js +7 -0
- package/dist/node_modules/vfile-message/lib/index.js +91 -0
- package/dist/providers/app-providers.js +13 -11
- package/package.json +1 -1
|
@@ -4,6 +4,8 @@ import { Badge as V } from "../../../data-display/badge/badge.js";
|
|
|
4
4
|
import { evaluateValidationRules as I, getFieldValue as m, mapBadgeVariant as L, mapBadgeColor as U } from "./cell-renderer-utils.js";
|
|
5
5
|
import { resolveGridIcon as H } from "./gridIconResolver.js";
|
|
6
6
|
import { Tooltip as _, TooltipTrigger as z, TooltipContent as G } from "../../../feedback/tooltip/tooltip.js";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "tailwind-merge";
|
|
7
9
|
const M = (e, n, r, a) => {
|
|
8
10
|
if (!n) return e;
|
|
9
11
|
let t = e;
|
package/dist/components/data/ag-grid-react/headers/advanced-filter/advanced-filter-dialog.js
CHANGED
|
@@ -2,7 +2,9 @@ import { jsx as r, jsxs as g, Fragment as Z } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as w } from "react";
|
|
3
3
|
import { Dialog as I, DialogContent as ee, DialogHeader as te, DialogTitle as le, DialogClose as oe, DialogBody as ne, DialogFooter as re } from "../../../../feedback/dialog/dialog.js";
|
|
4
4
|
import { Button as y } from "../../../../primitives/button/button.js";
|
|
5
|
-
import { Tooltip as ae, TooltipTrigger as
|
|
5
|
+
import { Tooltip as ae, TooltipTrigger as ie, TooltipContent as se } from "../../../../feedback/tooltip/tooltip.js";
|
|
6
|
+
import "clsx";
|
|
7
|
+
import "tailwind-merge";
|
|
6
8
|
import { Cross as ce } from "impact-nova-icons";
|
|
7
9
|
import { useImpactNovaI18n as ue } from "../../../../../i18n/use-impact-nova-i18n.js";
|
|
8
10
|
import { ColumnFilterSection as $ } from "./column-filter-section.js";
|
|
@@ -13,7 +15,7 @@ const M = (k) => {
|
|
|
13
15
|
return k.forEach((p) => {
|
|
14
16
|
p.columnId && (m[p.columnId] || (m[p.columnId] = []), m[p.columnId].push(p));
|
|
15
17
|
}), m;
|
|
16
|
-
},
|
|
18
|
+
}, Re = ({
|
|
17
19
|
isOpen: k,
|
|
18
20
|
onClose: m,
|
|
19
21
|
onApply: p,
|
|
@@ -37,19 +39,19 @@ const M = (k) => {
|
|
|
37
39
|
l && Object.keys(l).forEach((n) => {
|
|
38
40
|
if (!e.some((t) => t.columnId === n)) {
|
|
39
41
|
const t = l[n];
|
|
40
|
-
let
|
|
42
|
+
let i = null;
|
|
41
43
|
if (t.filterType === "date") {
|
|
42
|
-
const
|
|
43
|
-
|
|
44
|
+
const s = t, T = u.getColumn(n)?.getColDef()?.headerComponentParams?.datePickerVariant, f = T === "week" || T === "month", X = s.type === "inRange" && f ? "equals" : s.type || "equals";
|
|
45
|
+
i = {
|
|
44
46
|
id: F(),
|
|
45
47
|
columnId: n,
|
|
46
48
|
columnType: "date",
|
|
47
49
|
operator: X,
|
|
48
|
-
value:
|
|
49
|
-
valueTo:
|
|
50
|
+
value: s.dateFrom || "",
|
|
51
|
+
valueTo: s.dateTo || ""
|
|
50
52
|
};
|
|
51
53
|
} else if (t.filterType === "text")
|
|
52
|
-
|
|
54
|
+
i = {
|
|
53
55
|
id: F(),
|
|
54
56
|
columnId: n,
|
|
55
57
|
columnType: "text",
|
|
@@ -57,7 +59,7 @@ const M = (k) => {
|
|
|
57
59
|
value: t.filter ?? ""
|
|
58
60
|
};
|
|
59
61
|
else if (t.filterType === "number")
|
|
60
|
-
|
|
62
|
+
i = {
|
|
61
63
|
id: F(),
|
|
62
64
|
columnId: n,
|
|
63
65
|
columnType: "number",
|
|
@@ -65,29 +67,29 @@ const M = (k) => {
|
|
|
65
67
|
value: String(t.filter)
|
|
66
68
|
};
|
|
67
69
|
else if (t.filterType === "set")
|
|
68
|
-
|
|
70
|
+
i = {
|
|
69
71
|
id: F(),
|
|
70
72
|
columnId: n,
|
|
71
73
|
columnType: "select",
|
|
72
74
|
operator: "equals",
|
|
73
75
|
value: (t.values ?? []).filter(
|
|
74
|
-
(
|
|
76
|
+
(s) => s != null
|
|
75
77
|
)
|
|
76
78
|
};
|
|
77
79
|
else if (t.filterType === "multi") {
|
|
78
|
-
const
|
|
79
|
-
|
|
80
|
+
const s = t.filterModels?.find((h) => h && h.filterType === "set");
|
|
81
|
+
s && (i = {
|
|
80
82
|
id: F(),
|
|
81
83
|
columnId: n,
|
|
82
84
|
columnType: "multi",
|
|
83
85
|
// or select?
|
|
84
86
|
operator: "equals",
|
|
85
|
-
value: (
|
|
87
|
+
value: (s.values ?? []).filter(
|
|
86
88
|
(h) => h != null
|
|
87
89
|
)
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
|
-
|
|
92
|
+
i && e.push(i);
|
|
91
93
|
}
|
|
92
94
|
});
|
|
93
95
|
}
|
|
@@ -99,12 +101,12 @@ const M = (k) => {
|
|
|
99
101
|
})), U = JSON.stringify({ allRules: v, columnLogic: D }) !== JSON.stringify(R), B = (e) => v.filter((o) => o.columnId === e), N = (e, o) => {
|
|
100
102
|
S((l) => {
|
|
101
103
|
const c = /* @__PURE__ */ new Set(), n = [];
|
|
102
|
-
l.forEach((
|
|
103
|
-
c.has(
|
|
104
|
+
l.forEach((i) => {
|
|
105
|
+
c.has(i.columnId) || (c.add(i.columnId), n.push(i.columnId));
|
|
104
106
|
}), c.has(e) || n.push(e);
|
|
105
107
|
const t = [];
|
|
106
|
-
return n.forEach((
|
|
107
|
-
|
|
108
|
+
return n.forEach((i) => {
|
|
109
|
+
i === e ? t.push(...o) : t.push(...l.filter((s) => s.columnId === i));
|
|
108
110
|
}), t;
|
|
109
111
|
});
|
|
110
112
|
}, _ = (e) => D[e] || "OR", E = (e, o) => {
|
|
@@ -125,11 +127,11 @@ const M = (k) => {
|
|
|
125
127
|
const c = l.getColDef(), n = [];
|
|
126
128
|
let t = l.getParent();
|
|
127
129
|
for (; t; ) {
|
|
128
|
-
const
|
|
129
|
-
|
|
130
|
+
const s = t.getColGroupDef();
|
|
131
|
+
s && s.headerName && n.unshift(s.headerName), t = t.getParent();
|
|
130
132
|
}
|
|
131
|
-
const
|
|
132
|
-
return n.push(
|
|
133
|
+
const i = c?.headerName || e;
|
|
134
|
+
return n.push(i), n.join(" > ");
|
|
133
135
|
};
|
|
134
136
|
return /* @__PURE__ */ r(I, { open: k, onOpenChange: m, children: /* @__PURE__ */ g(ee, { className: "w-[800px] max-w-[95vw] max-h-[90vh] flex flex-col p-0", hideClose: !0, children: [
|
|
135
137
|
/* @__PURE__ */ g(te, { className: "flex flex-row items-center justify-between px-4 py-3 pe-4", children: [
|
|
@@ -151,7 +153,7 @@ const M = (k) => {
|
|
|
151
153
|
}
|
|
152
154
|
),
|
|
153
155
|
/* @__PURE__ */ g(ae, { children: [
|
|
154
|
-
/* @__PURE__ */ r(
|
|
156
|
+
/* @__PURE__ */ r(ie, { asChild: !0, children: /* @__PURE__ */ r(
|
|
155
157
|
"span",
|
|
156
158
|
{
|
|
157
159
|
style: {
|
|
@@ -174,7 +176,7 @@ const M = (k) => {
|
|
|
174
176
|
)
|
|
175
177
|
}
|
|
176
178
|
) }),
|
|
177
|
-
x && /* @__PURE__ */ r(
|
|
179
|
+
x && /* @__PURE__ */ r(se, { variant: "tertiary", children: d("advancedFilter.allFiltersDisabledTooltip") })
|
|
178
180
|
] })
|
|
179
181
|
] }),
|
|
180
182
|
/* @__PURE__ */ r(y, { variant: "ghost", onClick: W, className: "!text-brand", children: d("advancedFilter.clearAll") })
|
|
@@ -204,7 +206,7 @@ const M = (k) => {
|
|
|
204
206
|
const f = u.getColumn(e);
|
|
205
207
|
f && (l = f.getColDef());
|
|
206
208
|
}
|
|
207
|
-
const c = l?.headerComponentParams, n = l?.headerName || e, t = V(e, n),
|
|
209
|
+
const c = l?.headerComponentParams, n = l?.headerName || e, t = V(e, n), i = l?.filter === "agNumberColumnFilter" ? "number" : l?.filter === "agDateColumnFilter" ? "date" : l?.filter === "agMultiColumnFilter" ? "multi" : l?.filter === "agSetColumnFilter" || c?.selectOptions ? "select" : "text", s = c?.selectOptions, h = c?.isMultiSelect, T = c?.dateDisplayFormat || j;
|
|
208
210
|
return /* @__PURE__ */ g("div", { children: [
|
|
209
211
|
o > 0 && /* @__PURE__ */ r("hr", { className: "border-stroke-hairline mb-6" }),
|
|
210
212
|
/* @__PURE__ */ r(
|
|
@@ -212,8 +214,8 @@ const M = (k) => {
|
|
|
212
214
|
{
|
|
213
215
|
columnId: e,
|
|
214
216
|
columnLabel: t,
|
|
215
|
-
columnType:
|
|
216
|
-
selectOptions:
|
|
217
|
+
columnType: i,
|
|
218
|
+
selectOptions: s,
|
|
217
219
|
isMultiSelect: h,
|
|
218
220
|
rules: B(e),
|
|
219
221
|
logic: _(e),
|
|
@@ -242,5 +244,5 @@ const M = (k) => {
|
|
|
242
244
|
] }) });
|
|
243
245
|
};
|
|
244
246
|
export {
|
|
245
|
-
|
|
247
|
+
Re as AdvancedFilterDialog
|
|
246
248
|
};
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { jsxs as s, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import { useState as a } from "react";
|
|
3
|
-
import { Tooltip as p, TooltipTrigger as l, TooltipContent as
|
|
4
|
-
|
|
3
|
+
import { Tooltip as p, TooltipTrigger as l, TooltipContent as m } from "../../../../feedback/tooltip/tooltip.js";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "tailwind-merge";
|
|
6
|
+
const T = ({ content: e, children: r, side: o = "bottom" }) => {
|
|
5
7
|
const [n, i] = a(!1);
|
|
6
8
|
return n ? /* @__PURE__ */ s(p, { children: [
|
|
7
|
-
/* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t("span", { children:
|
|
8
|
-
/* @__PURE__ */ t(
|
|
9
|
-
] }) : /* @__PURE__ */ t("span", { onMouseEnter: () => i(!0), children:
|
|
9
|
+
/* @__PURE__ */ t(l, { asChild: !0, children: /* @__PURE__ */ t("span", { children: r }) }),
|
|
10
|
+
/* @__PURE__ */ t(m, { side: o, variant: "tertiary", children: /* @__PURE__ */ t("p", { children: e }) })
|
|
11
|
+
] }) : /* @__PURE__ */ t("span", { onMouseEnter: () => i(!0), children: r });
|
|
10
12
|
};
|
|
11
13
|
export {
|
|
12
|
-
|
|
14
|
+
T as LazyTooltip
|
|
13
15
|
};
|
|
@@ -3,14 +3,17 @@ import { Badge as s } from "../../data-display/badge/badge.js";
|
|
|
3
3
|
import { FilterPopoverContent as u } from "../../flows/filter-strip/filter-tag-list.js";
|
|
4
4
|
import { Popover as b, PopoverTrigger as f } from "../../feedback/popover/popover.js";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as v, TooltipContent as x } from "../../feedback/tooltip/tooltip.js";
|
|
6
|
-
|
|
6
|
+
import "react";
|
|
7
|
+
import "clsx";
|
|
8
|
+
import "tailwind-merge";
|
|
9
|
+
function j({
|
|
7
10
|
tags: o,
|
|
8
11
|
title: l = "Attributes",
|
|
9
12
|
maxVisibleTags: n = 4,
|
|
10
|
-
formatOverflow:
|
|
11
|
-
externalCopyFunction:
|
|
13
|
+
formatOverflow: m,
|
|
14
|
+
externalCopyFunction: c
|
|
12
15
|
}) {
|
|
13
|
-
const p = o.slice(0, n), t = o.slice(n), i = t.length, d =
|
|
16
|
+
const p = o.slice(0, n), t = o.slice(n), i = t.length, d = m?.(i) ?? (i > 0 ? `+${i}` : null);
|
|
14
17
|
return /* @__PURE__ */ r(
|
|
15
18
|
"div",
|
|
16
19
|
{
|
|
@@ -60,7 +63,7 @@ function w({
|
|
|
60
63
|
},
|
|
61
64
|
isRemovable: !1,
|
|
62
65
|
isCopyable: !0,
|
|
63
|
-
externalCopyFunction:
|
|
66
|
+
externalCopyFunction: c
|
|
64
67
|
}
|
|
65
68
|
)
|
|
66
69
|
] }) : null
|
|
@@ -70,5 +73,5 @@ function w({
|
|
|
70
73
|
);
|
|
71
74
|
}
|
|
72
75
|
export {
|
|
73
|
-
|
|
76
|
+
j as ExpandableListItemAttributes
|
|
74
77
|
};
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
2
|
import { ScrollOverflowAffordance as o } from "../../layout/horizontal-scroller/scroll-overflow-affordance.js";
|
|
3
|
+
import "react";
|
|
3
4
|
import { OverflowTooltip as r } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
4
5
|
const m = 128;
|
|
5
|
-
function
|
|
6
|
+
function f({
|
|
6
7
|
columns: i,
|
|
7
8
|
sectionId: l = "metrics"
|
|
8
9
|
}) {
|
|
@@ -50,5 +51,5 @@ function x({
|
|
|
50
51
|
);
|
|
51
52
|
}
|
|
52
53
|
export {
|
|
53
|
-
|
|
54
|
+
f as ExpandableListItemMetrics
|
|
54
55
|
};
|
|
@@ -2,8 +2,10 @@ import { jsx as t, jsxs as v } from "react/jsx-runtime";
|
|
|
2
2
|
import * as f from "react";
|
|
3
3
|
import { Select as C } from "../../forms/select/select.js";
|
|
4
4
|
import { Tooltip as O, TooltipTrigger as S, TooltipContent as b } from "../../feedback/tooltip/tooltip.js";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "tailwind-merge";
|
|
5
7
|
import { formatPeriodTooltip as g, formatPeriodOption as T, formatPeriodCell as x } from "./calendar-fiscal-labels.js";
|
|
6
|
-
function
|
|
8
|
+
function w({
|
|
7
9
|
periods: i,
|
|
8
10
|
selectedPeriod: o,
|
|
9
11
|
placeholder: m,
|
|
@@ -59,5 +61,5 @@ function N({
|
|
|
59
61
|
) : p;
|
|
60
62
|
}
|
|
61
63
|
export {
|
|
62
|
-
|
|
64
|
+
w as FiscalPeriodCaptionSelect
|
|
63
65
|
};
|
|
@@ -3,8 +3,8 @@ import * as p from "react";
|
|
|
3
3
|
import * as a from "@radix-ui/react-popover";
|
|
4
4
|
import { Cross as N } from "impact-nova-icons";
|
|
5
5
|
import { Tooltip as g, TooltipTrigger as u, TooltipContent as P } from "../tooltip/tooltip.js";
|
|
6
|
-
import { wrapRadixPart as d, createCompoundPart as x } from "../../../lib/primitives/create-compound.js";
|
|
7
6
|
import { cn as n } from "../../../lib/utils.js";
|
|
7
|
+
import { wrapRadixPart as d, createCompoundPart as x } from "../../../lib/primitives/create-compound.js";
|
|
8
8
|
import { useImpactNovaI18n as m } from "../../../i18n/use-impact-nova-i18n.js";
|
|
9
9
|
import { useOverlayNestedLayerDismiss as C, useOverlayPortalContainer as b } from "../../../lib/overlay/overlay-portal-context.js";
|
|
10
10
|
import { OVERLAY_NESTED_FLOATING_INSTANT_HIDE_CLASS as T } from "../../../lib/overlay/overlay-host.constants.js";
|
|
@@ -1,23 +1,25 @@
|
|
|
1
1
|
import { jsxs as n, jsx as t } from "react/jsx-runtime";
|
|
2
2
|
import "react";
|
|
3
|
-
import { Kbd as
|
|
4
|
-
import { Tooltip as
|
|
5
|
-
|
|
3
|
+
import { Kbd as m } from "../../primitives/kbd/kbd.js";
|
|
4
|
+
import { Tooltip as s, TooltipTrigger as a, TooltipContent as l } from "./tooltip.js";
|
|
5
|
+
import "clsx";
|
|
6
|
+
import "tailwind-merge";
|
|
7
|
+
function h({
|
|
6
8
|
children: o,
|
|
7
9
|
label: r,
|
|
8
10
|
side: e = "top",
|
|
9
11
|
keybinding: i,
|
|
10
12
|
disabled: p
|
|
11
13
|
}) {
|
|
12
|
-
return r ? /* @__PURE__ */ n(
|
|
14
|
+
return r ? /* @__PURE__ */ n(s, { children: [
|
|
13
15
|
/* @__PURE__ */ t(a, { asChild: !0, children: p ? /* @__PURE__ */ t("span", { tabIndex: -1, className: "inline-block outline-none", children: o }) : o }),
|
|
14
16
|
/* @__PURE__ */ t(l, { variant: "tertiary", side: e, children: i ? /* @__PURE__ */ n("span", { className: "flex items-center gap-2", children: [
|
|
15
17
|
r,
|
|
16
18
|
" ",
|
|
17
|
-
/* @__PURE__ */ t(
|
|
19
|
+
/* @__PURE__ */ t(m, { keybinding: i, size: "sm" })
|
|
18
20
|
] }) : r })
|
|
19
21
|
] }) : o;
|
|
20
22
|
}
|
|
21
23
|
export {
|
|
22
|
-
|
|
24
|
+
h as ButtonIconTooltip
|
|
23
25
|
};
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { jsxs as t, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l, TooltipTrigger as n, TooltipContent as o } from "./tooltip.js";
|
|
3
|
-
|
|
3
|
+
import "react";
|
|
4
|
+
import "clsx";
|
|
5
|
+
import "tailwind-merge";
|
|
6
|
+
const m = (i, r, a) => /* @__PURE__ */ t(l, { children: [
|
|
4
7
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center justify-center h-full w-full", children: i }) }),
|
|
5
8
|
/* @__PURE__ */ e(o, { variant: "tertiary", className: a, children: r })
|
|
6
|
-
] }),
|
|
9
|
+
] }), f = (i, r) => /* @__PURE__ */ t(l, { children: [
|
|
7
10
|
/* @__PURE__ */ e(n, { asChild: !0, children: /* @__PURE__ */ e("span", { className: "inline-flex items-center", children: i }) }),
|
|
8
11
|
/* @__PURE__ */ e(o, { side: "top", variant: "tertiary", children: r })
|
|
9
12
|
] });
|
|
10
13
|
export {
|
|
11
|
-
|
|
12
|
-
|
|
14
|
+
f as defaultAccordionTooltipRender,
|
|
15
|
+
m as defaultTabTooltipRender
|
|
13
16
|
};
|
|
@@ -2,17 +2,17 @@ import { jsx as r, jsxs as h, Fragment as z } from "react/jsx-runtime";
|
|
|
2
2
|
import * as o from "react";
|
|
3
3
|
import { Person as G, Monitor as U, PriorityAlert as q, Locked as O, Reset as B } from "impact-nova-icons";
|
|
4
4
|
import { cn as p } from "../../../lib/utils.js";
|
|
5
|
+
import { Kbd as $ } from "../../primitives/kbd/kbd.js";
|
|
6
|
+
import { keybindingToString as H } from "../../primitives/kbd/keybinding-display.js";
|
|
5
7
|
import { OverflowTooltip as A } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
6
|
-
import { ModuleRegistry as
|
|
7
|
-
import { AllEnterpriseModule as
|
|
8
|
-
import { DataTable as
|
|
8
|
+
import { ModuleRegistry as V, AllCommunityModule as J } from "ag-grid-community";
|
|
9
|
+
import { AllEnterpriseModule as Q } from "ag-grid-enterprise";
|
|
10
|
+
import { DataTable as X, DataTableContent as Y } from "../../data/data-table/data-table.js";
|
|
9
11
|
import { AG_CELL_NO_PADDING as F } from "../../data/ag-grid-react/cell-renderers/index.js";
|
|
10
|
-
import { Kbd as X } from "../../primitives/kbd/kbd.js";
|
|
11
|
-
import { keybindingToString as Y } from "../../primitives/kbd/keybinding-display.js";
|
|
12
12
|
import { useCommandPalette as Z } from "./use-command-palette.js";
|
|
13
13
|
import { COMMAND_SOURCE_LABELS as m, keybindingFromEvent as W, isReservedShortcut as ee } from "./utils.js";
|
|
14
14
|
import { BadgeCellRenderer as te } from "../../data/ag-grid-react/cell-renderers/badge-cell-renderer.js";
|
|
15
|
-
|
|
15
|
+
V.registerModules([J, Q]);
|
|
16
16
|
function re(a) {
|
|
17
17
|
const t = a.data;
|
|
18
18
|
return t ? /* @__PURE__ */ h("div", { className: "flex items-center gap-2 min-w-0 h-full", children: [
|
|
@@ -69,7 +69,7 @@ function ne(a) {
|
|
|
69
69
|
"flex items-center justify-end h-full w-full text-end",
|
|
70
70
|
t.customisable ? "cursor-pointer" : "cursor-default opacity-70"
|
|
71
71
|
),
|
|
72
|
-
children: /* @__PURE__ */ r(
|
|
72
|
+
children: /* @__PURE__ */ r($, { keybinding: t.keybinding, size: "sm" })
|
|
73
73
|
}
|
|
74
74
|
) : t.customisable ? /* @__PURE__ */ r(
|
|
75
75
|
"button",
|
|
@@ -133,7 +133,7 @@ function le({
|
|
|
133
133
|
description: e.description || "",
|
|
134
134
|
category: e.category || "General",
|
|
135
135
|
keybinding: i,
|
|
136
|
-
keybindingDisplay: i ?
|
|
136
|
+
keybindingDisplay: i ? H(i) : "",
|
|
137
137
|
scope: e.scope,
|
|
138
138
|
source: D,
|
|
139
139
|
sourceColor: T ? "primary" : "neutral",
|
|
@@ -278,10 +278,10 @@ function le({
|
|
|
278
278
|
u?.type === "conflict" ? /* @__PURE__ */ r(q, { className: "h-3.5 w-3.5 shrink-0" }) : u?.type === "reserved" ? /* @__PURE__ */ r(O, { className: "h-3.5 w-3.5 shrink-0" }) : c ? /* @__PURE__ */ r("span", { className: "shrink-0 text-base", children: "⌨️" }) : null,
|
|
279
279
|
/* @__PURE__ */ r("span", { children: u ? u.text : L })
|
|
280
280
|
] }) : null;
|
|
281
|
-
return /* @__PURE__ */ h(
|
|
281
|
+
return /* @__PURE__ */ h(X, { className: p("flex flex-col w-full h-full border-t-0", a), children: [
|
|
282
282
|
s ? s(E) : E,
|
|
283
283
|
/* @__PURE__ */ r(
|
|
284
|
-
|
|
284
|
+
Y,
|
|
285
285
|
{
|
|
286
286
|
rowData: y,
|
|
287
287
|
columnDefs: I,
|
|
@@ -6,8 +6,8 @@ import { cn as o } from "../../../lib/utils.js";
|
|
|
6
6
|
import { MultiColorFilter as F, Cross as P, InfoBadge as u } from "impact-nova-icons";
|
|
7
7
|
import { Button as D } from "../../primitives/button/button.js";
|
|
8
8
|
import { Tooltip as c, TooltipTrigger as f, TooltipContent as h } from "../../feedback/tooltip/tooltip.js";
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
9
|
+
import { Kbd as S } from "../../primitives/kbd/kbd.js";
|
|
10
|
+
import { OverflowTooltip as j } from "../../feedback/tooltip/overflow-tooltip.js";
|
|
11
11
|
import { useImpactNovaI18n as v } from "../../../i18n/use-impact-nova-i18n.js";
|
|
12
12
|
import { useOverlayHostDismissNestedLayersOnNavigation as I } from "../../../lib/overlay/overlay-portal-context.js";
|
|
13
13
|
import { preventDismissOnTooltipOutside as x } from "../../../lib/overlay/prevent-dismiss-on-tooltip-outside.js";
|
|
@@ -145,14 +145,14 @@ const O = ({
|
|
|
145
145
|
),
|
|
146
146
|
/* @__PURE__ */ a("div", { className: "flex items-center gap-1 min-w-0", children: [
|
|
147
147
|
/* @__PURE__ */ e(
|
|
148
|
-
|
|
148
|
+
j,
|
|
149
149
|
{
|
|
150
150
|
triggerClassName: "truncate font-['Manrope'] block min-w-0",
|
|
151
151
|
content: t.tooltipKeybinding ? /* @__PURE__ */ a("span", { className: "flex items-center gap-2", children: [
|
|
152
152
|
t.label,
|
|
153
153
|
" ",
|
|
154
154
|
/* @__PURE__ */ e(
|
|
155
|
-
|
|
155
|
+
S,
|
|
156
156
|
{
|
|
157
157
|
keybinding: t.tooltipKeybinding,
|
|
158
158
|
size: "sm"
|
|
@@ -6,9 +6,9 @@ import { GuidanceActionTapIcon as O } from "./guidance-action-tap-icon.js";
|
|
|
6
6
|
import { GuidanceStepKeybinding as S, GuidanceShortcutReferenceList as M } from "./guidance-shortcut-display.js";
|
|
7
7
|
import { Button as h } from "../../../primitives/button/button.js";
|
|
8
8
|
import { Tooltip as R, TooltipTrigger as U, TooltipContent as $ } from "../../../feedback/tooltip/tooltip.js";
|
|
9
|
+
import { cn as m } from "../../../../lib/utils.js";
|
|
9
10
|
import { Progress as D } from "../../../primitives/progress/progress.js";
|
|
10
11
|
import { useImpactNovaI18n as g } from "../../../../i18n/use-impact-nova-i18n.js";
|
|
11
|
-
import { cn as m } from "../../../../lib/utils.js";
|
|
12
12
|
const J = "Skip", A = "Back";
|
|
13
13
|
function Q({
|
|
14
14
|
activeStepIndex: r,
|
|
@@ -3,10 +3,10 @@ import { Download as y, ThreeDots as v } from "impact-nova-icons";
|
|
|
3
3
|
import { Checkbox as C } from "../../forms/checkbox/checkbox.js";
|
|
4
4
|
import { DropdownMenu as w, DropdownMenuTrigger as j, DropdownMenuContent as k, DropdownMenuItem as p } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
5
5
|
import { ButtonIconTooltip as x } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
6
|
+
import { cn as f } from "../../../lib/utils.js";
|
|
6
7
|
import { Button as b } from "../../primitives/button/button.js";
|
|
7
8
|
import { useImpactNovaI18n as I } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
|
-
import { createComponent as
|
|
9
|
-
import { cn as u } from "../../../lib/utils.js";
|
|
9
|
+
import { createComponent as u } from "../../../lib/primitives/create-component.js";
|
|
10
10
|
function N(o, i) {
|
|
11
11
|
const a = o.map((l) => l.header).join(","), n = i.map(
|
|
12
12
|
(l) => o.map((t) => {
|
|
@@ -21,7 +21,7 @@ function S(o, i, a) {
|
|
|
21
21
|
const n = new Blob([N(i, a)], { type: "text/csv;charset=utf-8" }), l = URL.createObjectURL(n), t = document.createElement("a");
|
|
22
22
|
t.href = l, t.download = `${o.replaceAll(/\s+/g, "-").toLowerCase()}.csv`, t.click(), URL.revokeObjectURL(l);
|
|
23
23
|
}
|
|
24
|
-
const O =
|
|
24
|
+
const O = u(
|
|
25
25
|
"IrisChatArtifact",
|
|
26
26
|
({ className: o, title: i, columns: a, rows: n, onDownload: l, onMore: t }, d) => {
|
|
27
27
|
const { t: c } = I(), m = () => {
|
|
@@ -35,7 +35,7 @@ const O = f(
|
|
|
35
35
|
{
|
|
36
36
|
ref: d,
|
|
37
37
|
"data-component": "iris-chat-artifact",
|
|
38
|
-
className:
|
|
38
|
+
className: f("min-w-0 w-full max-w-full overflow-hidden rounded-xl border border-stroke-subtle", o),
|
|
39
39
|
children: [
|
|
40
40
|
/* @__PURE__ */ r("header", { className: "flex items-center justify-between gap-2 px-3 py-2", children: [
|
|
41
41
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-content", children: i }),
|
|
@@ -90,14 +90,14 @@ const O = f(
|
|
|
90
90
|
}
|
|
91
91
|
);
|
|
92
92
|
}
|
|
93
|
-
), $ =
|
|
93
|
+
), $ = u(
|
|
94
94
|
"IrisChatScenario",
|
|
95
95
|
({ className: o, title: i, rows: a, notes: n }, l) => /* @__PURE__ */ r(
|
|
96
96
|
"section",
|
|
97
97
|
{
|
|
98
98
|
ref: l,
|
|
99
99
|
"data-component": "iris-chat-scenario",
|
|
100
|
-
className:
|
|
100
|
+
className: f("flex flex-col gap-2 rounded-xl bg-secondary p-3", o),
|
|
101
101
|
children: [
|
|
102
102
|
/* @__PURE__ */ e("h3", { className: "text-sm font-semibold text-content", children: i }),
|
|
103
103
|
a.length > 0 ? /* @__PURE__ */ e("dl", { className: "flex flex-col gap-2", children: a.map((t) => /* @__PURE__ */ r(
|
|
@@ -2,12 +2,12 @@ import { jsxs as l, jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { useRef as A, useState as F, useEffect as le } from "react";
|
|
3
3
|
import { ChevronRight as ce } from "impact-nova-icons";
|
|
4
4
|
import { ButtonIconTooltip as h } from "../../feedback/tooltip/button-icon-tooltip.js";
|
|
5
|
+
import { cn as ue } from "../../../lib/utils.js";
|
|
5
6
|
import { Button as p } from "../../primitives/button/button.js";
|
|
6
|
-
import { DropdownMenu as P, DropdownMenuTrigger as _, DropdownMenuContent as W, DropdownMenuItem as V, DropdownMenuRadioGroup as
|
|
7
|
-
import { useImpactNovaI18n as
|
|
7
|
+
import { DropdownMenu as P, DropdownMenuTrigger as _, DropdownMenuContent as W, DropdownMenuItem as V, DropdownMenuRadioGroup as de, DropdownMenuRadioItem as he } from "../../feedback/dropdown-menu/dropdown-menu.js";
|
|
8
|
+
import { useImpactNovaI18n as pe } from "../../../i18n/use-impact-nova-i18n.js";
|
|
8
9
|
import { useControllableState as G } from "@radix-ui/react-use-controllable-state";
|
|
9
|
-
import { createComponent as
|
|
10
|
-
import { cn as me } from "../../../lib/utils.js";
|
|
10
|
+
import { createComponent as me } from "../../../lib/primitives/create-component.js";
|
|
11
11
|
import { useIrisChatOptional as fe } from "./iris-chat-context.js";
|
|
12
12
|
import { IrisChatAddIcon as q, IrisChatAttachIcon as ge, IrisChatMicIcon as Ce, IrisChatStopIcon as be, IrisChatSendIcon as ve } from "./iris-chat-icons.js";
|
|
13
13
|
import { IrisChatAttachment as ye } from "./iris-chat-thread.js";
|
|
@@ -15,7 +15,7 @@ import { irisChatComposerVariants as we } from "./iris-chat.variants.js";
|
|
|
15
15
|
const xe = [
|
|
16
16
|
{ label: "Auto", value: "auto" },
|
|
17
17
|
{ label: "Fast", value: "fast" }
|
|
18
|
-
], $e =
|
|
18
|
+
], $e = me(
|
|
19
19
|
"IrisChatComposer",
|
|
20
20
|
({
|
|
21
21
|
className: a,
|
|
@@ -35,7 +35,7 @@ const xe = [
|
|
|
35
35
|
onAttach: ee,
|
|
36
36
|
onMicClick: K
|
|
37
37
|
}, te) => {
|
|
38
|
-
const { t: n } =
|
|
38
|
+
const { t: n } = pe(), $ = fe(), C = $?.placement === "minimized" || $?.placement === "composer" ? "inline" : "stacked", [ie, x] = G({
|
|
39
39
|
prop: s,
|
|
40
40
|
defaultProp: H,
|
|
41
41
|
onChange: J
|
|
@@ -100,7 +100,7 @@ const xe = [
|
|
|
100
100
|
"data-component": "iris-chat-composer",
|
|
101
101
|
"data-layout": C,
|
|
102
102
|
"data-pending": f ? "" : void 0,
|
|
103
|
-
className:
|
|
103
|
+
className: ue(
|
|
104
104
|
we({ layout: C }),
|
|
105
105
|
R && "iris-edge-wash-shell--menu iris-edge-wash-shell--fluid",
|
|
106
106
|
a
|
|
@@ -231,11 +231,11 @@ const xe = [
|
|
|
231
231
|
}
|
|
232
232
|
) }),
|
|
233
233
|
/* @__PURE__ */ t(W, { align: "end", children: /* @__PURE__ */ t(
|
|
234
|
-
|
|
234
|
+
de,
|
|
235
235
|
{
|
|
236
236
|
value: D,
|
|
237
237
|
onValueChange: ne,
|
|
238
|
-
children: U.map((e) => /* @__PURE__ */ t(
|
|
238
|
+
children: U.map((e) => /* @__PURE__ */ t(he, { value: e.value, children: e.label }, e.value))
|
|
239
239
|
}
|
|
240
240
|
) })
|
|
241
241
|
] }),
|