@bridge-ui/vue 0.15.0 → 0.17.0
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/ai/AGENTS.md +1 -1
- package/ai/README.md +1 -1
- package/ai/llms.txt +0 -1
- package/ai/skills/bridge-ui-components/SKILL.md +3 -1
- package/ai/skills/bridge-ui-setup/SKILL.md +8 -8
- package/dist/Actions/Snackbar/BridgeSnackbarItem.vue_vue_type_script_setup_true_lang.js +42 -44
- package/dist/Actions/actionHostRegistry.d.ts +2 -1
- package/dist/Actions/actionHostRegistry.js +11 -7
- package/dist/Adapters/index.d.ts +0 -1
- package/dist/Adapters/index.js +1 -2
- package/dist/Components/Accordion/composables/useAccordion.js +1 -1
- package/dist/Components/Autocomplete/composables/useAutocomplete.js +248 -258
- package/dist/Components/Chart/Chart.js +5 -0
- package/dist/Components/Chart/Chart.vue.d.ts +14 -0
- package/dist/Components/Chart/Chart.vue_vue_type_script_setup_true_lang.js +52 -0
- package/dist/Components/Chart/chart.types.d.ts +126 -0
- package/dist/Components/Chart/chartInjectionKey.d.ts +94 -0
- package/dist/Components/Chart/chartInjectionKey.js +10 -0
- package/dist/Components/Chart/composables/useChart.d.ts +40 -0
- package/dist/Components/Chart/composables/useChart.js +344 -0
- package/dist/Components/Chart/echartsChart.d.ts +14 -0
- package/dist/Components/Chart/echartsChart.js +199 -0
- package/dist/Components/Chart/index.d.ts +4 -0
- package/dist/Components/Chart/index.js +4 -0
- package/dist/Components/ChartAxis/ChartAxis.js +5 -0
- package/dist/Components/ChartAxis/ChartAxis.vue.d.ts +7 -0
- package/dist/Components/ChartAxis/ChartAxis.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/ChartAxis/chartAxis.types.d.ts +56 -0
- package/dist/Components/ChartAxis/composables/useChartAxis.d.ts +5 -0
- package/dist/Components/ChartAxis/composables/useChartAxis.js +28 -0
- package/dist/Components/ChartAxis/index.d.ts +3 -0
- package/dist/Components/ChartAxis/index.js +3 -0
- package/dist/Components/ChartLegend/ChartLegend.js +5 -0
- package/dist/Components/ChartLegend/ChartLegend.vue.d.ts +6 -0
- package/dist/Components/ChartLegend/ChartLegend.vue_vue_type_script_setup_true_lang.js +33 -0
- package/dist/Components/ChartLegend/chartLegend.types.d.ts +71 -0
- package/dist/Components/ChartLegend/composables/useChartLegend.d.ts +16 -0
- package/dist/Components/ChartLegend/composables/useChartLegend.js +98 -0
- package/dist/Components/ChartLegend/index.d.ts +3 -0
- package/dist/Components/ChartLegend/index.js +3 -0
- package/dist/Components/ChartSeries/ChartSeries.js +5 -0
- package/dist/Components/ChartSeries/ChartSeries.vue.d.ts +4 -0
- package/dist/Components/ChartSeries/ChartSeries.vue_vue_type_script_setup_true_lang.js +24 -0
- package/dist/Components/ChartSeries/chartSeries.types.d.ts +37 -0
- package/dist/Components/ChartSeries/composables/useChartSeries.d.ts +10 -0
- package/dist/Components/ChartSeries/composables/useChartSeries.js +29 -0
- package/dist/Components/ChartSeries/index.d.ts +3 -0
- package/dist/Components/ChartSeries/index.js +3 -0
- package/dist/Components/ChartTooltip/ChartTooltip.js +5 -0
- package/dist/Components/ChartTooltip/ChartTooltip.vue.d.ts +11 -0
- package/dist/Components/ChartTooltip/ChartTooltip.vue_vue_type_script_setup_true_lang.js +25 -0
- package/dist/Components/ChartTooltip/chartTooltip.types.d.ts +82 -0
- package/dist/Components/ChartTooltip/composables/useChartTooltip.d.ts +15 -0
- package/dist/Components/ChartTooltip/composables/useChartTooltip.js +110 -0
- package/dist/Components/ChartTooltip/index.d.ts +3 -0
- package/dist/Components/ChartTooltip/index.js +3 -0
- package/dist/Components/DataTable/DataTable.vue.d.ts +5 -3
- package/dist/Components/DataTable/DataTable.vue_vue_type_script_setup_true_lang.js +138 -117
- package/dist/Components/DataTable/DataTableCellContent.vue.d.ts +1 -5
- package/dist/Components/DataTable/DataTableCellContent.vue_vue_type_script_setup_true_lang.js +24 -25
- package/dist/Components/DataTable/composables/useDataTable.d.ts +5 -3
- package/dist/Components/DataTable/composables/useDataTable.js +294 -272
- package/dist/Components/DataTable/composables/useDataTablePagination.js +1 -1
- package/dist/Components/DataTable/dataTable.types.d.ts +35 -2
- package/dist/Components/Drawer/composables/useDrawer.js +68 -67
- package/dist/Components/Modal/composables/useModal.js +129 -119
- package/dist/Components/Pagination/Pagination.vue.d.ts +6 -0
- package/dist/Components/Pagination/Pagination.vue_vue_type_script_setup_true_lang.js +23 -11
- package/dist/Components/Pagination/composables/usePagination.d.ts +3 -3
- package/dist/Components/Pagination/composables/usePagination.js +95 -84
- package/dist/Components/Pagination/pagination.types.d.ts +30 -2
- package/dist/Components/Resizable/Resizable.js +5 -0
- package/dist/Components/Resizable/Resizable.vue.d.ts +17 -0
- package/dist/Components/Resizable/Resizable.vue_vue_type_script_setup_true_lang.js +30 -0
- package/dist/Components/Resizable/composables/useResizable.d.ts +18 -0
- package/dist/Components/Resizable/composables/useResizable.js +195 -0
- package/dist/Components/Resizable/index.d.ts +4 -0
- package/dist/Components/Resizable/index.js +4 -0
- package/dist/Components/Resizable/resizable.types.d.ts +53 -0
- package/dist/Components/Resizable/resizableInjectionKey.d.ts +111 -0
- package/dist/Components/Resizable/resizableInjectionKey.js +4 -0
- package/dist/Components/ResizableHandle/ResizableHandle.js +5 -0
- package/dist/Components/ResizableHandle/ResizableHandle.vue.d.ts +14 -0
- package/dist/Components/ResizableHandle/ResizableHandle.vue_vue_type_script_setup_true_lang.js +31 -0
- package/dist/Components/ResizableHandle/composables/useResizableHandle.d.ts +35 -0
- package/dist/Components/ResizableHandle/composables/useResizableHandle.js +85 -0
- package/dist/Components/ResizableHandle/index.d.ts +3 -0
- package/dist/Components/ResizableHandle/index.js +3 -0
- package/dist/Components/ResizableHandle/resizableHandle.types.d.ts +58 -0
- package/dist/Components/ResizablePanel/ResizablePanel.js +5 -0
- package/dist/Components/ResizablePanel/ResizablePanel.vue.d.ts +24 -0
- package/dist/Components/ResizablePanel/ResizablePanel.vue_vue_type_script_setup_true_lang.js +39 -0
- package/dist/Components/ResizablePanel/composables/useResizablePanel.d.ts +21 -0
- package/dist/Components/ResizablePanel/composables/useResizablePanel.js +87 -0
- package/dist/Components/ResizablePanel/index.d.ts +3 -0
- package/dist/Components/ResizablePanel/index.js +3 -0
- package/dist/Components/ResizablePanel/resizablePanel.types.d.ts +71 -0
- package/dist/Components/RichTextEditor/RichTextEditor.vue.d.ts +1 -1
- package/dist/Components/RichTextEditor/RichTextEditor.vue_vue_type_script_setup_true_lang.js +17 -17
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.d.ts +2 -2
- package/dist/Components/RichTextEditor/composables/useRichTextEditor.js +67 -73
- package/dist/Components/RichTextEditor/richTextEditor.types.d.ts +1 -1
- package/dist/Components/RichTextEditor/tiptapEditor.d.ts +111 -0
- package/dist/Components/RichTextEditor/tiptapEditor.js +121 -0
- package/dist/Components/Select/composables/useSelect.js +147 -157
- package/dist/Components/Snackbar/Snackbar.vue.d.ts +1 -1
- package/dist/Components/Snackbar/Snackbar.vue_vue_type_script_setup_true_lang.js +6 -7
- package/dist/Components/Snackbar/composables/useSnackbar.js +140 -146
- package/dist/Components/Stepper/composables/useStepper.js +1 -1
- package/dist/Components/Table/composables/useTableCell.d.ts +1 -1
- package/dist/Components/Tabs/composables/useTabs.js +1 -1
- package/dist/Components/ToggleGroup/composables/useToggleGroup.js +3 -3
- package/dist/augments.d.ts +34 -1
- package/dist/index.d.ts +6 -3
- package/dist/index.js +187 -183
- package/dist/theme.css +1 -1
- package/docs/README.md +4 -3
- package/docs/components/BridgeUIProvider.md +0 -17
- package/docs/components/Chart.md +252 -0
- package/docs/components/DataTable.md +19 -0
- package/docs/components/Pagination.md +17 -5
- package/docs/components/Resizable.md +224 -0
- package/docs/components/RichTextEditor.md +2 -23
- package/package.json +27 -6
- package/dist/Adapters/RichText/index.d.ts +0 -1
- package/dist/Adapters/RichText/index.js +0 -2
- package/dist/Adapters/RichText/mockRichTextAdapter.d.ts +0 -5
- package/dist/Adapters/RichText/useRichTextAdapter.d.ts +0 -12
- package/dist/Adapters/RichText/useRichTextAdapter.js +0 -13
package/ai/AGENTS.md
CHANGED
|
@@ -13,7 +13,7 @@ npx bridge-ui-vue-ai install
|
|
|
13
13
|
|
|
14
14
|
- Guidelines: `.ai/guidelines/core.md`
|
|
15
15
|
- Component docs: `.ai/docs/components/` (index: `.ai/docs/README.md`)
|
|
16
|
-
- Adapter factories: `@bridge-ui/adapters/vue/{date,icon,i18n
|
|
16
|
+
- Adapter factories: `@bridge-ui/adapters/vue/{date,icon,i18n}-*`
|
|
17
17
|
- Skills (on demand) under `.cursor/skills/`:
|
|
18
18
|
- `bridge-ui-setup`
|
|
19
19
|
- `bridge-ui-components`
|
package/ai/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Consumer guidelines and Agent Skills for `@bridge-ui/vue`.
|
|
4
4
|
|
|
5
|
-
Component **examples live in** [`../docs/components/`](../docs/components/). Adapter factories: `@bridge-ui/adapters/vue/{date,icon,i18n
|
|
5
|
+
Component **examples live in** [`../docs/components/`](../docs/components/). Adapter factories: `@bridge-ui/adapters/vue/{date,icon,i18n}-*`. Skills only route agents to those pages.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
8
|
npx bridge-ui-vue-ai install
|
package/ai/llms.txt
CHANGED
|
@@ -37,5 +37,4 @@ After install:
|
|
|
37
37
|
- `@bridge-ui/adapters/vue/{date-date-fns,date-dayjs,date-luxon,date-moment}`
|
|
38
38
|
- `@bridge-ui/adapters/vue/{icon-lucide,icon-heroicons,icon-tabler,icon-phosphor,icon-fontawesome}`
|
|
39
39
|
- `@bridge-ui/adapters/vue/{i18n-dictionary,i18n-vue-i18n}`
|
|
40
|
-
- `@bridge-ui/adapters/vue/rich-text-tiptap`
|
|
41
40
|
- `@bridge-ui/vue/docs/components/{Name}.md`
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: bridge-ui-components
|
|
3
3
|
description: >-
|
|
4
4
|
Use Bridge UI Vue components — Button, ButtonGroup, Avatar, Card, Alert, Accordion, ActionFooter, Badge, Icon,
|
|
5
|
-
Link, List, Table, DataTable, Tabs, Spinner, Skeleton, EmptyState, Sidebar, Progress, Stepper, Carousel, Pagination, TextField, Select,
|
|
5
|
+
Link, List, Table, DataTable, Tabs, Spinner, Skeleton, EmptyState, Sidebar, Progress, Stepper, Carousel, Resizable, Chart, Pagination, TextField, Select,
|
|
6
6
|
Autocomplete, DateField, DatePicker, DateRangeField, DateRangePicker,
|
|
7
7
|
TimeField, TimePicker, DateTimeField, DateTimePicker, ColorField, ColorPicker,
|
|
8
8
|
classes, customProps, slots. Use when building UI with Bridge components.
|
|
@@ -27,6 +27,8 @@ In templates, use kebab-case attrs (`start-icon`, `custom-props`, `error-message
|
|
|
27
27
|
| Action footer | `.ai/docs/components/ActionFooter.md` |
|
|
28
28
|
| Stepper | `.ai/docs/components/Stepper.md` |
|
|
29
29
|
| Carousel | `.ai/docs/components/Carousel.md` |
|
|
30
|
+
| Resizable panels | `.ai/docs/components/Resizable.md` |
|
|
31
|
+
| Chart | `.ai/docs/components/Chart.md` |
|
|
30
32
|
| Icon | `.ai/docs/components/Icon.md` |
|
|
31
33
|
| Lists | `.ai/docs/components/List.md` |
|
|
32
34
|
| Table | `.ai/docs/components/Table.md` |
|
|
@@ -20,20 +20,20 @@ npx bridge-ui-vue-ai install
|
|
|
20
20
|
|
|
21
21
|
## Required reading
|
|
22
22
|
|
|
23
|
-
| Topic | Doc
|
|
24
|
-
| -------------------------------------------------------------------------------- |
|
|
25
|
-
| Provider / plugin, `global`, `components`, icons, i18n, dates, custom components | `.ai/docs/components/BridgeUIProvider.md`
|
|
26
|
-
| Icon adapter usage | `.ai/docs/components/Icon.md`
|
|
27
|
-
| i18n adapter | `.ai/docs/components/I18n.md`
|
|
28
|
-
| Breakpoints | `.ai/docs/components/useBreakpoint.md`
|
|
29
|
-
| Adapter factories | `@bridge-ui/adapters/vue/{date,icon,i18n
|
|
23
|
+
| Topic | Doc |
|
|
24
|
+
| -------------------------------------------------------------------------------- | -------------------------------------------- |
|
|
25
|
+
| Provider / plugin, `global`, `components`, icons, i18n, dates, custom components | `.ai/docs/components/BridgeUIProvider.md` |
|
|
26
|
+
| Icon adapter usage | `.ai/docs/components/Icon.md` |
|
|
27
|
+
| i18n adapter | `.ai/docs/components/I18n.md` |
|
|
28
|
+
| Breakpoints | `.ai/docs/components/useBreakpoint.md` |
|
|
29
|
+
| Adapter factories | `@bridge-ui/adapters/vue/{date,icon,i18n}-*` |
|
|
30
30
|
|
|
31
31
|
## Hard rules
|
|
32
32
|
|
|
33
33
|
1. Tailwind CSS **v4** + `@import "@bridge-ui/vue/theme.css"`.
|
|
34
34
|
2. Use `app.use(createBridgeUI({ ... }))` and/or `<BridgeUIProvider>`.
|
|
35
35
|
3. Mount `BridgeUIHosts` when using action hooks (`useDialogAction`, `useModalAction`, `useDrawerAction`, `useSnackbarAction`).
|
|
36
|
-
4. Semantic icon names, chrome strings, and date libs need `global.icons` / `global.i18n` / `global.dates` — install `@bridge-ui/adapters`, import factories from `@bridge-ui/adapters/vue/{date,icon,i18n
|
|
36
|
+
4. Semantic icon names, chrome strings, and date libs need `global.icons` / `global.i18n` / `global.dates` — install `@bridge-ui/adapters`, import factories from `@bridge-ui/adapters/vue/{date,icon,i18n}-*`, and install the matching optional peer.
|
|
37
37
|
5. Prefer deep imports: `@bridge-ui/vue/Components/{Name}`.
|
|
38
38
|
6. Do not destructure `useBreakpoint()` helpers — keep the reactive object.
|
|
39
39
|
7. App-wide default color (e.g. monochrome `"black"`): set `global.defaultColor` once — do not repeat `color` in every `components.{Name}.defaultProps`. Rebrand `primary` in theme CSS instead.
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import e from "../../Components/Snackbar/Snackbar.js";
|
|
2
2
|
import t from "./BridgeSnackbarAction.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createVNode as c, defineComponent as l, mergeProps as u, normalizeClass as d, openBlock as f, unref as p, withCtx as m } from "vue";
|
|
4
|
-
import { completeLayerHide as h,
|
|
4
|
+
import { completeLayerHide as h, mergeLayerShellProps as g, usesTrailingSnackbarActions as _ } from "@bridge-ui/core/Layer";
|
|
5
5
|
//#region src/Actions/Snackbar/BridgeSnackbarItem.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var
|
|
6
|
+
var v = { class: "flex flex-col border-l border-dark-200 dark:border-dark-700" }, y = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "flex flex-1 h-0"
|
|
9
|
-
},
|
|
9
|
+
}, b = /*@__PURE__*/ l({
|
|
10
10
|
__name: "BridgeSnackbarItem",
|
|
11
11
|
props: {
|
|
12
12
|
api: {},
|
|
@@ -14,44 +14,42 @@ var y = { class: "flex flex-col border-l border-dark-200 dark:border-dark-700" }
|
|
|
14
14
|
hostSnackbar: {}
|
|
15
15
|
},
|
|
16
16
|
setup(l) {
|
|
17
|
-
let
|
|
18
|
-
|
|
17
|
+
let b = l, { actions: x, rightButtons: S, ...C } = b.entry.props, w = n(() => g(b.hostSnackbar, C)), T = n(() => w.value.color ?? "primary"), E = n(() => w.value.rounded ?? "lg"), D = () => {
|
|
18
|
+
b.api.close(b.entry.id);
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
e?.(),
|
|
20
|
+
function O(e) {
|
|
21
|
+
e?.(), b.api.close(b.entry.id);
|
|
22
22
|
}
|
|
23
|
-
let
|
|
24
|
-
return (n, g) => (f(), r(p(e), u({
|
|
25
|
-
"
|
|
26
|
-
"teleport-to": !1
|
|
27
|
-
}, T.value, {
|
|
23
|
+
let k = n(() => !!(S && (x?.accept || x?.reject))), A = n(() => _(w.value.padding)), j = n(() => !S && !A.value && !!(x?.accept || x?.reject)), M = n(() => !!(A.value && x?.accept?.label));
|
|
24
|
+
return (n, g) => (f(), r(p(e), u({ "stack-id": l.entry.id }, w.value, {
|
|
25
|
+
"teleport-to": !1,
|
|
28
26
|
"model-value": l.entry.show,
|
|
29
|
-
onClose:
|
|
27
|
+
onClose: D,
|
|
30
28
|
"onUpdate:modelValue": g[5] ||= (e) => l.api.syncShow(l.entry.id, e),
|
|
31
29
|
onLeaveComplete: g[6] ||= () => p(h)(l.api.entries.value, l.entry.id, !1, l.api.removeEntry)
|
|
32
30
|
}), s({ _: 2 }, [
|
|
33
|
-
|
|
31
|
+
j.value ? {
|
|
34
32
|
name: "actions",
|
|
35
|
-
fn: m(() => [p(
|
|
33
|
+
fn: m(() => [p(x)?.accept?.label ? (f(), r(t, {
|
|
36
34
|
key: 0,
|
|
37
35
|
role: "accept",
|
|
38
36
|
layout: "inline",
|
|
39
|
-
action: p(
|
|
40
|
-
"snackbar-color":
|
|
41
|
-
"snackbar-rounded":
|
|
42
|
-
onRun: g[0] ||= (e) =>
|
|
37
|
+
action: p(x).accept,
|
|
38
|
+
"snackbar-color": T.value,
|
|
39
|
+
"snackbar-rounded": E.value,
|
|
40
|
+
onRun: g[0] ||= (e) => O(p(x)?.accept?.onClick)
|
|
43
41
|
}, null, 8, [
|
|
44
42
|
"action",
|
|
45
43
|
"snackbar-color",
|
|
46
44
|
"snackbar-rounded"
|
|
47
|
-
])) : i("", !0), p(
|
|
45
|
+
])) : i("", !0), p(x)?.reject?.label ? (f(), r(t, {
|
|
48
46
|
key: 1,
|
|
49
47
|
role: "reject",
|
|
50
48
|
layout: "inline",
|
|
51
|
-
action: p(
|
|
52
|
-
"snackbar-color":
|
|
53
|
-
"snackbar-rounded":
|
|
54
|
-
onRun: g[1] ||= (e) =>
|
|
49
|
+
action: p(x).reject,
|
|
50
|
+
"snackbar-color": T.value,
|
|
51
|
+
"snackbar-rounded": E.value,
|
|
52
|
+
onRun: g[1] ||= (e) => O(p(x)?.reject?.onClick)
|
|
55
53
|
}, null, 8, [
|
|
56
54
|
"action",
|
|
57
55
|
"snackbar-color",
|
|
@@ -59,15 +57,15 @@ var y = { class: "flex flex-col border-l border-dark-200 dark:border-dark-700" }
|
|
|
59
57
|
])) : i("", !0)]),
|
|
60
58
|
key: "0"
|
|
61
59
|
} : void 0,
|
|
62
|
-
|
|
60
|
+
M.value ? {
|
|
63
61
|
name: "trailing",
|
|
64
62
|
fn: m(() => [c(t, {
|
|
65
63
|
role: "accept",
|
|
66
64
|
layout: "trailing",
|
|
67
|
-
action: p(
|
|
68
|
-
"snackbar-color":
|
|
69
|
-
"snackbar-rounded":
|
|
70
|
-
onRun: g[2] ||= (e) =>
|
|
65
|
+
action: p(x).accept,
|
|
66
|
+
"snackbar-color": T.value,
|
|
67
|
+
"snackbar-rounded": E.value,
|
|
68
|
+
onRun: g[2] ||= (e) => O(p(x)?.accept?.onClick)
|
|
71
69
|
}, null, 8, [
|
|
72
70
|
"action",
|
|
73
71
|
"snackbar-color",
|
|
@@ -75,32 +73,32 @@ var y = { class: "flex flex-col border-l border-dark-200 dark:border-dark-700" }
|
|
|
75
73
|
])]),
|
|
76
74
|
key: "1"
|
|
77
75
|
} : void 0,
|
|
78
|
-
|
|
76
|
+
k.value ? {
|
|
79
77
|
name: "right",
|
|
80
|
-
fn: m(() => [o("div",
|
|
78
|
+
fn: m(() => [o("div", v, [p(x)?.accept?.label ? (f(), a("div", {
|
|
81
79
|
key: 0,
|
|
82
|
-
class: d(["flex flex-1 h-0", { "border-b border-dark-200 dark:border-dark-700": p(
|
|
80
|
+
class: d(["flex flex-1 h-0", { "border-b border-dark-200 dark:border-dark-700": p(x)?.reject }])
|
|
83
81
|
}, [c(t, {
|
|
84
82
|
role: "accept",
|
|
85
83
|
layout: "right-accept",
|
|
86
|
-
action: p(
|
|
87
|
-
"snackbar-color":
|
|
88
|
-
"snackbar-rounded":
|
|
89
|
-
"has-reject": !!p(
|
|
90
|
-
onRun: g[3] ||= (e) =>
|
|
84
|
+
action: p(x).accept,
|
|
85
|
+
"snackbar-color": T.value,
|
|
86
|
+
"snackbar-rounded": E.value,
|
|
87
|
+
"has-reject": !!p(x)?.reject,
|
|
88
|
+
onRun: g[3] ||= (e) => O(p(x)?.accept?.onClick)
|
|
91
89
|
}, null, 8, [
|
|
92
90
|
"action",
|
|
93
91
|
"snackbar-color",
|
|
94
92
|
"snackbar-rounded",
|
|
95
93
|
"has-reject"
|
|
96
|
-
])], 2)) : i("", !0), p(
|
|
94
|
+
])], 2)) : i("", !0), p(x)?.reject?.label ? (f(), a("div", y, [c(t, {
|
|
97
95
|
role: "reject",
|
|
98
96
|
layout: "right-reject",
|
|
99
|
-
action: p(
|
|
100
|
-
"snackbar-color":
|
|
101
|
-
"snackbar-rounded":
|
|
102
|
-
"has-accept": !!p(
|
|
103
|
-
onRun: g[4] ||= (e) =>
|
|
97
|
+
action: p(x).reject,
|
|
98
|
+
"snackbar-color": T.value,
|
|
99
|
+
"snackbar-rounded": E.value,
|
|
100
|
+
"has-accept": !!p(x)?.accept,
|
|
101
|
+
onRun: g[4] ||= (e) => O(p(x)?.reject?.onClick)
|
|
104
102
|
}, null, 8, [
|
|
105
103
|
"action",
|
|
106
104
|
"snackbar-color",
|
|
@@ -113,4 +111,4 @@ var y = { class: "flex flex-col border-l border-dark-200 dark:border-dark-700" }
|
|
|
113
111
|
}
|
|
114
112
|
});
|
|
115
113
|
//#endregion
|
|
116
|
-
export {
|
|
114
|
+
export { b as default };
|
|
@@ -8,6 +8,7 @@ export declare const drawerActionHosts: ActionHostRegistry<BridgeDrawerControlle
|
|
|
8
8
|
export declare const modalActionHosts: ActionHostRegistry<BridgeModalController>;
|
|
9
9
|
export declare const snackbarActionHosts: ActionHostRegistry<BridgeSnackbarController>;
|
|
10
10
|
/**
|
|
11
|
-
* Registers `api`
|
|
11
|
+
* Registers `api` while the current component is mounted. Lifecycle hooks
|
|
12
|
+
* never run during SSR, so server renders don't leak hosts into the registry.
|
|
12
13
|
*/
|
|
13
14
|
export declare function registerActionHost<T>(registry: ActionHostRegistry<T>, api: T): void;
|
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { createActionHostRegistry as
|
|
1
|
+
import { onBeforeMount as e, onUnmounted as t } from "vue";
|
|
2
|
+
import { createActionHostRegistry as n } from "@bridge-ui/core/Layer";
|
|
3
3
|
//#region src/Actions/actionHostRegistry.ts
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
let
|
|
7
|
-
e(
|
|
4
|
+
var r = n(), i = n(), a = n(), o = n();
|
|
5
|
+
function s(n, r) {
|
|
6
|
+
let i = null;
|
|
7
|
+
e(() => {
|
|
8
|
+
i = n.register(r);
|
|
9
|
+
}), t(() => {
|
|
10
|
+
i?.();
|
|
11
|
+
});
|
|
8
12
|
}
|
|
9
13
|
//#endregion
|
|
10
|
-
export {
|
|
14
|
+
export { r as dialogActionHosts, i as drawerActionHosts, a as modalActionHosts, s as registerActionHost, o as snackbarActionHosts };
|
package/dist/Adapters/index.d.ts
CHANGED
|
@@ -2,4 +2,3 @@ export { setDateAdapterForTests, useDateAdapter } from './Date';
|
|
|
2
2
|
export { setI18nAdapterForTests, useI18nAdapter, useResolveMessage, } from './I18n';
|
|
3
3
|
export { setIconAdapterForTests, useIconAdapter } from './Icon';
|
|
4
4
|
export type { IconElement, IconSource, IconSourceValueOverrides, SemanticIconName, } from './Icon';
|
|
5
|
-
export { setRichTextAdapterForTests, useRichTextAdapter, } from './RichText';
|
package/dist/Adapters/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { setDateAdapterForTests as e, useDateAdapter as t } from "./Date/useDateAdapter.js";
|
|
2
2
|
import { setI18nAdapterForTests as n, useI18nAdapter as r, useResolveMessage as i } from "./I18n/useI18nAdapter.js";
|
|
3
3
|
import { setIconAdapterForTests as a, useIconAdapter as o } from "./Icon/useIconAdapter.js";
|
|
4
|
-
|
|
5
|
-
export { e as setDateAdapterForTests, n as setI18nAdapterForTests, a as setIconAdapterForTests, s as setRichTextAdapterForTests, t as useDateAdapter, r as useI18nAdapter, o as useIconAdapter, i as useResolveMessage, c as useRichTextAdapter };
|
|
4
|
+
export { e as setDateAdapterForTests, n as setI18nAdapterForTests, a as setIconAdapterForTests, t as useDateAdapter, r as useI18nAdapter, o as useIconAdapter, i as useResolveMessage };
|
|
@@ -30,7 +30,7 @@ function b(b, x, S, C) {
|
|
|
30
30
|
function P(e) {
|
|
31
31
|
if (A.value.disabled || O.value.includes(e)) return;
|
|
32
32
|
let t = f(N.value, e, M.value);
|
|
33
|
-
S.value = t, C("
|
|
33
|
+
S.value = t, C("change", t);
|
|
34
34
|
}
|
|
35
35
|
function F(e, t = !1) {
|
|
36
36
|
return D.value.includes(e) || (D.value = [...D.value, e]), t ? O.value.includes(e) || (O.value = [...O.value, e]) : O.value = O.value.filter((t) => t !== e), () => {
|