@appsbd/vue3-appsbd-ui 1.0.4 → 1.0.6
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/ai_ref_AbAvatar.md +41 -41
- package/.ai/ai_ref_AbBadge.md +36 -36
- package/.ai/ai_ref_AbButton.md +52 -51
- package/.ai/ai_ref_AbCard.md +51 -51
- package/.ai/ai_ref_AbCarousel.md +36 -36
- package/.ai/ai_ref_AbChart.md +46 -46
- package/.ai/ai_ref_AbColorPicker.md +42 -42
- package/.ai/ai_ref_AbConfirmPopover.md +54 -54
- package/.ai/ai_ref_AbCustomField.md +66 -66
- package/.ai/ai_ref_AbDarkModeToggler.md +33 -33
- package/.ai/ai_ref_AbDateTimePicker.md +74 -74
- package/.ai/ai_ref_AbEasyModal.md +56 -56
- package/.ai/ai_ref_AbField.md +88 -88
- package/.ai/ai_ref_AbFileUploader.md +47 -47
- package/.ai/ai_ref_AbFilterPanel.md +67 -67
- package/.ai/ai_ref_AbFormCheck.md +58 -58
- package/.ai/ai_ref_AbImageRadioInput.md +55 -55
- package/.ai/ai_ref_AbInputField.md +66 -66
- package/.ai/ai_ref_AbInputTag.md +56 -56
- package/.ai/ai_ref_AbKbd.md +23 -23
- package/.ai/ai_ref_AbKbdGroup.md +21 -21
- package/.ai/ai_ref_AbMainLayout.md +106 -0
- package/.ai/ai_ref_AbMultiSelect.md +78 -78
- package/.ai/ai_ref_AbNumberField.md +59 -59
- package/.ai/ai_ref_AbPinInput.md +33 -33
- package/.ai/ai_ref_AbPopover.md +54 -54
- package/.ai/ai_ref_AbPricingCard.md +56 -56
- package/.ai/ai_ref_AbPricingContainer.md +41 -41
- package/.ai/ai_ref_AbPricingTable.md +56 -56
- package/.ai/ai_ref_AbProgressbar.md +34 -34
- package/.ai/ai_ref_AbScrollbar.md +38 -38
- package/.ai/ai_ref_AbSettingsForm.md +46 -46
- package/.ai/ai_ref_AbSideMenuItem.md +47 -47
- package/.ai/ai_ref_AbSidebar.md +62 -62
- package/.ai/ai_ref_AbSkeleton.md +23 -23
- package/.ai/ai_ref_AbSlider.md +52 -52
- package/.ai/ai_ref_AbTab.md +30 -30
- package/.ai/ai_ref_AbTable.md +49 -49
- package/.ai/ai_ref_AbTabs.md +37 -37
- package/.ai/ai_ref_AbToggle.md +46 -46
- package/.ai/ai_ref_AbTooltip.md +39 -39
- package/.ai/ai_ref_AbWizard.md +64 -64
- package/.ai/ai_ref_AbWizardStep.md +36 -36
- package/.ai/ai_ref_abEventBus.md +66 -66
- package/.ai/ai_ref_abRequestParam.md +40 -40
- package/.ai/ai_ref_abVeeRules.md +33 -33
- package/.ai/ai_ref_global_config.md +57 -56
- package/.ai/ai_ref_useAlert.md +50 -45
- package/.ai/ai_ref_useFileValidator.md +31 -31
- package/.ai/ai_ref_useResponsive.md +41 -41
- package/.ai/ai_ref_useTheme.md +28 -28
- package/.ai/ai_ref_useToast.md +30 -30
- package/AI_REFERENCE.md +87 -86
- package/design-system.md +403 -403
- package/dist/skins/black.css +1 -1
- package/dist/skins/black.scss +3 -3
- package/dist/skins/cyan.css +1 -1
- package/dist/skins/cyan.scss +3 -3
- package/dist/skins/default.css +1 -1
- package/dist/skins/default.scss +5 -5
- package/dist/skins/gray.css +1 -1
- package/dist/skins/gray.scss +3 -3
- package/dist/skins/green.css +1 -1
- package/dist/skins/green.scss +5 -5
- package/dist/skins/orange.css +1 -1
- package/dist/skins/orange.scss +3 -3
- package/dist/skins/pink.css +1 -1
- package/dist/skins/pink.scss +3 -3
- package/dist/skins/purple.css +1 -1
- package/dist/skins/purple.scss +3 -3
- package/dist/skins/red.css +1 -1
- package/dist/skins/red.scss +3 -3
- package/dist/skins/themes/_black.scss +18 -6
- package/dist/skins/themes/_blue.scss +18 -43
- package/dist/skins/themes/_common_variable.scss +695 -685
- package/dist/skins/themes/_cyan.scss +18 -6
- package/dist/skins/themes/_gray.scss +18 -7
- package/dist/skins/themes/_green.scss +18 -6
- package/dist/skins/themes/_grid.scss +32 -30
- package/dist/skins/themes/_orange.scss +18 -6
- package/dist/skins/themes/_pink.scss +18 -6
- package/dist/skins/themes/_purple.scss +18 -6
- package/dist/skins/themes/_red.scss +18 -6
- package/dist/skins/themes/_violet.scss +18 -6
- package/dist/skins/violet.css +1 -1
- package/dist/skins/violet.scss +3 -3
- package/dist/style.css +1 -1
- package/dist/vue3-appsbd-ui.cjs.js +130 -142
- package/dist/vue3-appsbd-ui.es.js +21544 -20015
- package/package.json +72 -72
- package/readme.md +194 -194
package/.ai/ai_ref_AbTab.md
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
# AbTab — AI Reference
|
|
2
|
-
|
|
3
|
-
Single tab pane / link. Must be used inside an `AbTabs` parent.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
<ab-tabs>
|
|
9
|
-
<ab-tab title="Profile" selected>
|
|
10
|
-
<template #icon><i class="bi bi-person"></i></template>
|
|
11
|
-
Profile content here.
|
|
12
|
-
</ab-tab>
|
|
13
|
-
<ab-tab title="Settings">Settings content here.</ab-tab>
|
|
14
|
-
</ab-tabs>
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Props
|
|
18
|
-
|
|
19
|
-
| Name | Type | Default | Description |
|
|
20
|
-
| --- | --- | --- | --- |
|
|
21
|
-
| `title` | `String` | **required** | Tab label text. |
|
|
22
|
-
| `selected` | `Boolean` | `false` | Mark this tab as initially selected. |
|
|
23
|
-
| `to` | `String \| Object` | `null` | Router-link target (only used when the parent `AbTabs` has `is-route-mode`). |
|
|
24
|
-
|
|
25
|
-
## Slots
|
|
26
|
-
|
|
27
|
-
| Name | Description |
|
|
28
|
-
| --- | --- |
|
|
29
|
-
| `default` | Tab pane content. |
|
|
30
|
-
| `icon` | Icon shown next to the tab title. |
|
|
1
|
+
# AbTab — AI Reference
|
|
2
|
+
|
|
3
|
+
Single tab pane / link. Must be used inside an `AbTabs` parent.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<ab-tabs>
|
|
9
|
+
<ab-tab title="Profile" selected>
|
|
10
|
+
<template #icon><i class="bi bi-person"></i></template>
|
|
11
|
+
Profile content here.
|
|
12
|
+
</ab-tab>
|
|
13
|
+
<ab-tab title="Settings">Settings content here.</ab-tab>
|
|
14
|
+
</ab-tabs>
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Props
|
|
18
|
+
|
|
19
|
+
| Name | Type | Default | Description |
|
|
20
|
+
| --- | --- | --- | --- |
|
|
21
|
+
| `title` | `String` | **required** | Tab label text. |
|
|
22
|
+
| `selected` | `Boolean` | `false` | Mark this tab as initially selected. |
|
|
23
|
+
| `to` | `String \| Object` | `null` | Router-link target (only used when the parent `AbTabs` has `is-route-mode`). |
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
| Name | Description |
|
|
28
|
+
| --- | --- |
|
|
29
|
+
| `default` | Tab pane content. |
|
|
30
|
+
| `icon` | Icon shown next to the tab title. |
|
package/.ai/ai_ref_AbTable.md
CHANGED
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
# AbTable — AI Reference
|
|
2
|
-
|
|
3
|
-
Data grid with column definitions, per-cell and per-header slot overrides, and an `empty` slot.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
<template>
|
|
9
|
-
<ab-table
|
|
10
|
-
:items="users"
|
|
11
|
-
:fields="[
|
|
12
|
-
{ key: 'name', label: 'Name' },
|
|
13
|
-
{ key: 'email', label: 'Email' },
|
|
14
|
-
{ key: 'role', label: 'Role' },
|
|
15
|
-
{ key: 'actions', label: '' },
|
|
16
|
-
]"
|
|
17
|
-
>
|
|
18
|
-
<template #head(name)>Full Name</template>
|
|
19
|
-
|
|
20
|
-
<template #cell(role)="{ value }">
|
|
21
|
-
<ab-badge class="bg-primary">{{ value }}</ab-badge>
|
|
22
|
-
</template>
|
|
23
|
-
|
|
24
|
-
<template #cell(actions)="{ item }">
|
|
25
|
-
<ab-button class="btn-sm btn-outline-secondary" @click="edit(item)">Edit</ab-button>
|
|
26
|
-
</template>
|
|
27
|
-
|
|
28
|
-
<template #empty>No users yet.</template>
|
|
29
|
-
</ab-table>
|
|
30
|
-
</template>
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## Props
|
|
34
|
-
|
|
35
|
-
| Name | Type | Default | Description |
|
|
36
|
-
| --- | --- | --- | --- |
|
|
37
|
-
| `items` | `Array` | `[]` | Table row objects. |
|
|
38
|
-
| `fields` | `Array` | `[]` | Column definitions — each string key or `{ key, label }`. |
|
|
39
|
-
| `tableClass` | `String \| Array \| Object` | `""` | CSS class(es) applied to the `<table>`. |
|
|
40
|
-
|
|
41
|
-
## Slots
|
|
42
|
-
|
|
43
|
-
| Name | Scope | Description |
|
|
44
|
-
| --- | --- | --- |
|
|
45
|
-
| `thead` | — | Override the entire table head. |
|
|
46
|
-
| `tbody` | — | Override the entire table body. |
|
|
47
|
-
| `head(fieldKey)` | — | Override header content for a given field. |
|
|
48
|
-
| `cell(fieldKey)` | `{ value, item, index }` | Override cell content for a given field. |
|
|
49
|
-
| `empty` | — | Message shown when `items` is empty. |
|
|
1
|
+
# AbTable — AI Reference
|
|
2
|
+
|
|
3
|
+
Data grid with column definitions, per-cell and per-header slot overrides, and an `empty` slot.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<template>
|
|
9
|
+
<ab-table
|
|
10
|
+
:items="users"
|
|
11
|
+
:fields="[
|
|
12
|
+
{ key: 'name', label: 'Name' },
|
|
13
|
+
{ key: 'email', label: 'Email' },
|
|
14
|
+
{ key: 'role', label: 'Role' },
|
|
15
|
+
{ key: 'actions', label: '' },
|
|
16
|
+
]"
|
|
17
|
+
>
|
|
18
|
+
<template #head(name)>Full Name</template>
|
|
19
|
+
|
|
20
|
+
<template #cell(role)="{ value }">
|
|
21
|
+
<ab-badge class="bg-primary">{{ value }}</ab-badge>
|
|
22
|
+
</template>
|
|
23
|
+
|
|
24
|
+
<template #cell(actions)="{ item }">
|
|
25
|
+
<ab-button class="btn-sm btn-outline-secondary" @click="edit(item)">Edit</ab-button>
|
|
26
|
+
</template>
|
|
27
|
+
|
|
28
|
+
<template #empty>No users yet.</template>
|
|
29
|
+
</ab-table>
|
|
30
|
+
</template>
|
|
31
|
+
```
|
|
32
|
+
|
|
33
|
+
## Props
|
|
34
|
+
|
|
35
|
+
| Name | Type | Default | Description |
|
|
36
|
+
| --- | --- | --- | --- |
|
|
37
|
+
| `items` | `Array` | `[]` | Table row objects. |
|
|
38
|
+
| `fields` | `Array` | `[]` | Column definitions — each string key or `{ key, label }`. |
|
|
39
|
+
| `tableClass` | `String \| Array \| Object` | `""` | CSS class(es) applied to the `<table>`. |
|
|
40
|
+
|
|
41
|
+
## Slots
|
|
42
|
+
|
|
43
|
+
| Name | Scope | Description |
|
|
44
|
+
| --- | --- | --- |
|
|
45
|
+
| `thead` | — | Override the entire table head. |
|
|
46
|
+
| `tbody` | — | Override the entire table body. |
|
|
47
|
+
| `head(fieldKey)` | — | Override header content for a given field. |
|
|
48
|
+
| `cell(fieldKey)` | `{ value, item, index }` | Override cell content for a given field. |
|
|
49
|
+
| `empty` | — | Message shown when `items` is empty. |
|
package/.ai/ai_ref_AbTabs.md
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
# AbTabs — AI Reference
|
|
2
|
-
|
|
3
|
-
Parent container for tabbed interfaces. Pair with `AbTab` children. Supports content-switching mode (default) and router-link mode for navigation-driven tabs.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
<template>
|
|
9
|
-
<ab-tabs nav-class="nav-pills">
|
|
10
|
-
<ab-tab title="Overview" selected>Overview content</ab-tab>
|
|
11
|
-
<ab-tab title="Billing">Billing content</ab-tab>
|
|
12
|
-
<ab-tab title="Security">Security content</ab-tab>
|
|
13
|
-
</ab-tabs>
|
|
14
|
-
|
|
15
|
-
<ab-tabs is-route-mode>
|
|
16
|
-
<ab-tab title="Users" :to="{ name: 'users' }" />
|
|
17
|
-
<ab-tab title="Teams" :to="{ name: 'teams' }" />
|
|
18
|
-
</ab-tabs>
|
|
19
|
-
</template>
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
## Props
|
|
23
|
-
|
|
24
|
-
| Name | Type | Default | Description |
|
|
25
|
-
| --- | --- | --- | --- |
|
|
26
|
-
| `tabContainerClass` | `String` | — | Root wrapper class. |
|
|
27
|
-
| `navContainerClass` | `String` | — | Wrapper around the nav list. |
|
|
28
|
-
| `tabDetailsClass` | `String` | — | Wrapper around the tab content. |
|
|
29
|
-
| `navClass` | `String` | `"nav-pills"` | Class on the nav list itself (e.g. `nav-tabs`, `nav-pills`). |
|
|
30
|
-
| `tabClass` | `String` | `""` | Class on each individual tab link. |
|
|
31
|
-
| `isRouteMode` | `Boolean` | `false` | When `true`, tab clicks perform router navigation. |
|
|
32
|
-
|
|
33
|
-
## Slots
|
|
34
|
-
|
|
35
|
-
| Name | Description |
|
|
36
|
-
| --- | --- |
|
|
37
|
-
| `default` | Place `<ab-tab>` children here. |
|
|
1
|
+
# AbTabs — AI Reference
|
|
2
|
+
|
|
3
|
+
Parent container for tabbed interfaces. Pair with `AbTab` children. Supports content-switching mode (default) and router-link mode for navigation-driven tabs.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<template>
|
|
9
|
+
<ab-tabs nav-class="nav-pills">
|
|
10
|
+
<ab-tab title="Overview" selected>Overview content</ab-tab>
|
|
11
|
+
<ab-tab title="Billing">Billing content</ab-tab>
|
|
12
|
+
<ab-tab title="Security">Security content</ab-tab>
|
|
13
|
+
</ab-tabs>
|
|
14
|
+
|
|
15
|
+
<ab-tabs is-route-mode>
|
|
16
|
+
<ab-tab title="Users" :to="{ name: 'users' }" />
|
|
17
|
+
<ab-tab title="Teams" :to="{ name: 'teams' }" />
|
|
18
|
+
</ab-tabs>
|
|
19
|
+
</template>
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## Props
|
|
23
|
+
|
|
24
|
+
| Name | Type | Default | Description |
|
|
25
|
+
| --- | --- | --- | --- |
|
|
26
|
+
| `tabContainerClass` | `String` | — | Root wrapper class. |
|
|
27
|
+
| `navContainerClass` | `String` | — | Wrapper around the nav list. |
|
|
28
|
+
| `tabDetailsClass` | `String` | — | Wrapper around the tab content. |
|
|
29
|
+
| `navClass` | `String` | `"nav-pills"` | Class on the nav list itself (e.g. `nav-tabs`, `nav-pills`). |
|
|
30
|
+
| `tabClass` | `String` | `""` | Class on each individual tab link. |
|
|
31
|
+
| `isRouteMode` | `Boolean` | `false` | When `true`, tab clicks perform router navigation. |
|
|
32
|
+
|
|
33
|
+
## Slots
|
|
34
|
+
|
|
35
|
+
| Name | Description |
|
|
36
|
+
| --- | --- |
|
|
37
|
+
| `default` | Place `<ab-tab>` children here. |
|
package/.ai/ai_ref_AbToggle.md
CHANGED
|
@@ -1,46 +1,46 @@
|
|
|
1
|
-
# AbToggle — AI Reference
|
|
2
|
-
|
|
3
|
-
Accessible switch/toggle control. Supports title + description layout and custom `trueValue` / `falseValue` values (defaults to `"Y"` / `"N"`).
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
<template>
|
|
9
|
-
<ab-toggle v-model="settings.notifications" name="notifications" title="Email notifications" description="Receive weekly digest emails." />
|
|
10
|
-
|
|
11
|
-
<ab-toggle v-model="isActive" name="active" :true-value="true" :false-value="false" label="Active" />
|
|
12
|
-
</template>
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
## Props
|
|
16
|
-
|
|
17
|
-
| Name | Type | Default | Description |
|
|
18
|
-
| --- | --- | --- | --- |
|
|
19
|
-
| `modelValue` | `any` | — | v-model binding. |
|
|
20
|
-
| `label` | `String \| null` | `null` | Field label. |
|
|
21
|
-
| `variant` | `String` | `"inline"` | Layout variant (`"inline"` or `"column"`). |
|
|
22
|
-
| `val` | `any` | `"N"` | Initial value when `modelValue` is empty. |
|
|
23
|
-
| `name` | `String` | **required** | VeeValidate field name. |
|
|
24
|
-
| `containerClass` | `String` | `"mb-3"` | Wrapper class. |
|
|
25
|
-
| `size` | `String` | `"md"` | Toggle size. |
|
|
26
|
-
| `trueValue` | `any` | `"Y"` | Value when checked. |
|
|
27
|
-
| `falseValue` | `any` | `"N"` | Value when unchecked. |
|
|
28
|
-
| `title` | `String \| null` | `null` | Title next to the toggle. |
|
|
29
|
-
| `description` | `String \| null` | `null` | Description under the title. |
|
|
30
|
-
| `hints` | `String \| null` | `null` | Helper text. |
|
|
31
|
-
|
|
32
|
-
## Events
|
|
33
|
-
|
|
34
|
-
| Event | Payload | Description |
|
|
35
|
-
| --- | --- | --- |
|
|
36
|
-
| `update:modelValue` | `value` | v-model sync. |
|
|
37
|
-
|
|
38
|
-
## Slots
|
|
39
|
-
|
|
40
|
-
| Name | Description |
|
|
41
|
-
| --- | --- |
|
|
42
|
-
| `label` | Custom label. |
|
|
43
|
-
| `title` | Custom title. |
|
|
44
|
-
| `description` | Custom description. |
|
|
45
|
-
| `descriptionContainer` | Wraps the entire title + description block. |
|
|
46
|
-
| `hints` | Custom hints. |
|
|
1
|
+
# AbToggle — AI Reference
|
|
2
|
+
|
|
3
|
+
Accessible switch/toggle control. Supports title + description layout and custom `trueValue` / `falseValue` values (defaults to `"Y"` / `"N"`).
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<template>
|
|
9
|
+
<ab-toggle v-model="settings.notifications" name="notifications" title="Email notifications" description="Receive weekly digest emails." />
|
|
10
|
+
|
|
11
|
+
<ab-toggle v-model="isActive" name="active" :true-value="true" :false-value="false" label="Active" />
|
|
12
|
+
</template>
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Props
|
|
16
|
+
|
|
17
|
+
| Name | Type | Default | Description |
|
|
18
|
+
| --- | --- | --- | --- |
|
|
19
|
+
| `modelValue` | `any` | — | v-model binding. |
|
|
20
|
+
| `label` | `String \| null` | `null` | Field label. |
|
|
21
|
+
| `variant` | `String` | `"inline"` | Layout variant (`"inline"`, `"inline-left"`, or `"column"`). |
|
|
22
|
+
| `val` | `any` | `"N"` | Initial value when `modelValue` is empty. |
|
|
23
|
+
| `name` | `String` | **required** | VeeValidate field name. |
|
|
24
|
+
| `containerClass` | `String` | `"mb-3"` | Wrapper class. |
|
|
25
|
+
| `size` | `String` | `"md"` | Toggle size. |
|
|
26
|
+
| `trueValue` | `any` | `"Y"` | Value when checked. |
|
|
27
|
+
| `falseValue` | `any` | `"N"` | Value when unchecked. |
|
|
28
|
+
| `title` | `String \| null` | `null` | Title next to the toggle. |
|
|
29
|
+
| `description` | `String \| null` | `null` | Description under the title. |
|
|
30
|
+
| `hints` | `String \| null` | `null` | Helper text. |
|
|
31
|
+
|
|
32
|
+
## Events
|
|
33
|
+
|
|
34
|
+
| Event | Payload | Description |
|
|
35
|
+
| --- | --- | --- |
|
|
36
|
+
| `update:modelValue` | `value` | v-model sync. |
|
|
37
|
+
|
|
38
|
+
## Slots
|
|
39
|
+
|
|
40
|
+
| Name | Description |
|
|
41
|
+
| --- | --- |
|
|
42
|
+
| `label` | Custom label. |
|
|
43
|
+
| `title` | Custom title. |
|
|
44
|
+
| `description` | Custom description. |
|
|
45
|
+
| `descriptionContainer` | Wraps the entire title + description block. |
|
|
46
|
+
| `hints` | Custom hints. |
|
package/.ai/ai_ref_AbTooltip.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
# AbTooltip — AI Reference
|
|
2
|
-
|
|
3
|
-
Programmatic tooltip component. Use when you need slot-driven rich content or interactive tooltips; use the `v-tooltip` directive for simple string hints.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
<template>
|
|
9
|
-
<ab-tooltip content="Save changes" placement="top">
|
|
10
|
-
<ab-button class="btn-primary"><i class="bi bi-save"></i></ab-button>
|
|
11
|
-
</ab-tooltip>
|
|
12
|
-
|
|
13
|
-
<ab-tooltip placement="bottom" interactive>
|
|
14
|
-
<ab-button class="btn-outline-secondary">Info</ab-button>
|
|
15
|
-
<template #content>
|
|
16
|
-
<strong>Pro tip</strong>
|
|
17
|
-
<p>Press <ab-kbd>⌘</ab-kbd> + <ab-kbd>S</ab-kbd> to save.</p>
|
|
18
|
-
</template>
|
|
19
|
-
</ab-tooltip>
|
|
20
|
-
</template>
|
|
21
|
-
```
|
|
22
|
-
|
|
23
|
-
## Props
|
|
24
|
-
|
|
25
|
-
| Name | Type | Default | Description |
|
|
26
|
-
| --- | --- | --- | --- |
|
|
27
|
-
| `content` | `String` | `""` | Tooltip text (used when `#content` slot is absent). |
|
|
28
|
-
| `placement` | `String` | `"top"` | `top`, `bottom`, `left`, `right`, or `auto-*`. |
|
|
29
|
-
| `offset` | `Number \| String` | `8` | Offset from the reference element. |
|
|
30
|
-
| `disabled` | `Boolean` | `false` | Disable the tooltip. |
|
|
31
|
-
| `arrow` | `Boolean` | `true` | Show the arrow pointer. |
|
|
32
|
-
| `interactive` | `Boolean` | `false` | Allow hovering the tooltip without it hiding. |
|
|
33
|
-
|
|
34
|
-
## Slots
|
|
35
|
-
|
|
36
|
-
| Name | Description |
|
|
37
|
-
| --- | --- |
|
|
38
|
-
| `default` | Trigger element. |
|
|
39
|
-
| `content` | Tooltip body (overrides the `content` prop). |
|
|
1
|
+
# AbTooltip — AI Reference
|
|
2
|
+
|
|
3
|
+
Programmatic tooltip component. Use when you need slot-driven rich content or interactive tooltips; use the `v-tooltip` directive for simple string hints.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<template>
|
|
9
|
+
<ab-tooltip content="Save changes" placement="top">
|
|
10
|
+
<ab-button class="btn-primary"><i class="bi bi-save"></i></ab-button>
|
|
11
|
+
</ab-tooltip>
|
|
12
|
+
|
|
13
|
+
<ab-tooltip placement="bottom" interactive>
|
|
14
|
+
<ab-button class="btn-outline-secondary">Info</ab-button>
|
|
15
|
+
<template #content>
|
|
16
|
+
<strong>Pro tip</strong>
|
|
17
|
+
<p>Press <ab-kbd>⌘</ab-kbd> + <ab-kbd>S</ab-kbd> to save.</p>
|
|
18
|
+
</template>
|
|
19
|
+
</ab-tooltip>
|
|
20
|
+
</template>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Props
|
|
24
|
+
|
|
25
|
+
| Name | Type | Default | Description |
|
|
26
|
+
| --- | --- | --- | --- |
|
|
27
|
+
| `content` | `String` | `""` | Tooltip text (used when `#content` slot is absent). |
|
|
28
|
+
| `placement` | `String` | `"top"` | `top`, `bottom`, `left`, `right`, or `auto-*`. |
|
|
29
|
+
| `offset` | `Number \| String` | `8` | Offset from the reference element. |
|
|
30
|
+
| `disabled` | `Boolean` | `false` | Disable the tooltip. |
|
|
31
|
+
| `arrow` | `Boolean` | `true` | Show the arrow pointer. |
|
|
32
|
+
| `interactive` | `Boolean` | `false` | Allow hovering the tooltip without it hiding. |
|
|
33
|
+
|
|
34
|
+
## Slots
|
|
35
|
+
|
|
36
|
+
| Name | Description |
|
|
37
|
+
| --- | --- |
|
|
38
|
+
| `default` | Trigger element. |
|
|
39
|
+
| `content` | Tooltip body (overrides the `content` prop). |
|
package/.ai/ai_ref_AbWizard.md
CHANGED
|
@@ -1,64 +1,64 @@
|
|
|
1
|
-
# AbWizard — AI Reference
|
|
2
|
-
|
|
3
|
-
Multi-step wizard container. Hosts `AbWizardStep` children, supports horizontal/vertical orientations, and multiple visual variants including modal-rendered wizards.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
<template>
|
|
9
|
-
<ab-wizard
|
|
10
|
-
orientation="horizontal"
|
|
11
|
-
variant="circular"
|
|
12
|
-
:before-next="handleBeforeNext"
|
|
13
|
-
@finished="handleFinished"
|
|
14
|
-
@step-changed="onStepChange"
|
|
15
|
-
>
|
|
16
|
-
<ab-wizard-step title="Account" description="Basic info"><!-- step content --></ab-wizard-step>
|
|
17
|
-
<ab-wizard-step title="Profile"><!-- step content --></ab-wizard-step>
|
|
18
|
-
<ab-wizard-step title="Confirm"><!-- step content --></ab-wizard-step>
|
|
19
|
-
</ab-wizard>
|
|
20
|
-
</template>
|
|
21
|
-
|
|
22
|
-
<script setup>
|
|
23
|
-
async function handleBeforeNext(currentStepIndex) {
|
|
24
|
-
return true; // return false to block navigation
|
|
25
|
-
}
|
|
26
|
-
function handleFinished() {}
|
|
27
|
-
function onStepChange(newIndex) {}
|
|
28
|
-
</script>
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Props
|
|
32
|
-
|
|
33
|
-
| Name | Type | Default | Description |
|
|
34
|
-
| --- | --- | --- | --- |
|
|
35
|
-
| `beforeNext` | `Function` | `async () => true` | Hook before moving forward; return `false` to cancel. |
|
|
36
|
-
| `beforePrev` | `Function` | `async () => true` | Hook before moving back. |
|
|
37
|
-
| `beforeFinish` | `Function` | `async () => true` | Hook before `finished` fires. |
|
|
38
|
-
| `orientation` | `String` | `"horizontal"` | `horizontal` or `vertical`. |
|
|
39
|
-
| `variant` | `String` | `"default"` | `default`, `circular`, `modal`, `circular-modal`, etc. |
|
|
40
|
-
| `stepperSize` | `String` | `"md"` | `sm` or `md`. |
|
|
41
|
-
| `hideControls` | `Boolean` | `false` | Hide the built-in next/prev buttons. |
|
|
42
|
-
| `nextText` | `String` | `"Next"` | Next button label. |
|
|
43
|
-
| `prevText` | `String` | `"Back"` | Previous button label. |
|
|
44
|
-
| `finishText` | `String` | `"Finish"` | Finish button label. |
|
|
45
|
-
| `disableClose` | `Boolean` | `false` | Disable the close button (modal variants). |
|
|
46
|
-
| `modalClass` | `String` | `"modal-lg"` | Modal size class (modal variants only). |
|
|
47
|
-
|
|
48
|
-
## Events
|
|
49
|
-
|
|
50
|
-
| Event | Payload | Description |
|
|
51
|
-
| --- | --- | --- |
|
|
52
|
-
| `finished` | — | User completed the final step. |
|
|
53
|
-
| `step-changed` | `stepIndex` | Active step changed. |
|
|
54
|
-
|
|
55
|
-
## Slots
|
|
56
|
-
|
|
57
|
-
| Name | Description |
|
|
58
|
-
| --- | --- |
|
|
59
|
-
| `default` | `<ab-wizard-step>` children. |
|
|
60
|
-
|
|
61
|
-
## Provides
|
|
62
|
-
|
|
63
|
-
- `AbWizard` injection key for step registration.
|
|
64
|
-
- `registerStepValidator(stepId, fn)` — used by `AbSettingsForm` to register per-step validators.
|
|
1
|
+
# AbWizard — AI Reference
|
|
2
|
+
|
|
3
|
+
Multi-step wizard container. Hosts `AbWizardStep` children, supports horizontal/vertical orientations, and multiple visual variants including modal-rendered wizards.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<template>
|
|
9
|
+
<ab-wizard
|
|
10
|
+
orientation="horizontal"
|
|
11
|
+
variant="circular"
|
|
12
|
+
:before-next="handleBeforeNext"
|
|
13
|
+
@finished="handleFinished"
|
|
14
|
+
@step-changed="onStepChange"
|
|
15
|
+
>
|
|
16
|
+
<ab-wizard-step title="Account" description="Basic info"><!-- step content --></ab-wizard-step>
|
|
17
|
+
<ab-wizard-step title="Profile"><!-- step content --></ab-wizard-step>
|
|
18
|
+
<ab-wizard-step title="Confirm"><!-- step content --></ab-wizard-step>
|
|
19
|
+
</ab-wizard>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script setup>
|
|
23
|
+
async function handleBeforeNext(currentStepIndex) {
|
|
24
|
+
return true; // return false to block navigation
|
|
25
|
+
}
|
|
26
|
+
function handleFinished() {}
|
|
27
|
+
function onStepChange(newIndex) {}
|
|
28
|
+
</script>
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Props
|
|
32
|
+
|
|
33
|
+
| Name | Type | Default | Description |
|
|
34
|
+
| --- | --- | --- | --- |
|
|
35
|
+
| `beforeNext` | `Function` | `async () => true` | Hook before moving forward; return `false` to cancel. |
|
|
36
|
+
| `beforePrev` | `Function` | `async () => true` | Hook before moving back. |
|
|
37
|
+
| `beforeFinish` | `Function` | `async () => true` | Hook before `finished` fires. |
|
|
38
|
+
| `orientation` | `String` | `"horizontal"` | `horizontal` or `vertical`. |
|
|
39
|
+
| `variant` | `String` | `"default"` | `default`, `circular`, `modal`, `circular-modal`, etc. |
|
|
40
|
+
| `stepperSize` | `String` | `"md"` | `sm` or `md`. |
|
|
41
|
+
| `hideControls` | `Boolean` | `false` | Hide the built-in next/prev buttons. |
|
|
42
|
+
| `nextText` | `String` | `"Next"` | Next button label. |
|
|
43
|
+
| `prevText` | `String` | `"Back"` | Previous button label. |
|
|
44
|
+
| `finishText` | `String` | `"Finish"` | Finish button label. |
|
|
45
|
+
| `disableClose` | `Boolean` | `false` | Disable the close button (modal variants). |
|
|
46
|
+
| `modalClass` | `String` | `"modal-lg"` | Modal size class (modal variants only). |
|
|
47
|
+
|
|
48
|
+
## Events
|
|
49
|
+
|
|
50
|
+
| Event | Payload | Description |
|
|
51
|
+
| --- | --- | --- |
|
|
52
|
+
| `finished` | — | User completed the final step. |
|
|
53
|
+
| `step-changed` | `stepIndex` | Active step changed. |
|
|
54
|
+
|
|
55
|
+
## Slots
|
|
56
|
+
|
|
57
|
+
| Name | Description |
|
|
58
|
+
| --- | --- |
|
|
59
|
+
| `default` | `<ab-wizard-step>` children. |
|
|
60
|
+
|
|
61
|
+
## Provides
|
|
62
|
+
|
|
63
|
+
- `AbWizard` injection key for step registration.
|
|
64
|
+
- `registerStepValidator(stepId, fn)` — used by `AbSettingsForm` to register per-step validators.
|
|
@@ -1,36 +1,36 @@
|
|
|
1
|
-
# AbWizardStep — AI Reference
|
|
2
|
-
|
|
3
|
-
Single step inside an `AbWizard`. Declares its title, optional description, and an optional icon shown in the stepper.
|
|
4
|
-
|
|
5
|
-
## Usage
|
|
6
|
-
|
|
7
|
-
```vue
|
|
8
|
-
<ab-wizard>
|
|
9
|
-
<ab-wizard-step title="Account" description="Create your account" :icon="UserIcon">
|
|
10
|
-
<ab-input-field v-model="form.email" name="email" label="Email" rules="required|email" />
|
|
11
|
-
</ab-wizard-step>
|
|
12
|
-
|
|
13
|
-
<ab-wizard-step title="Confirm" disable-close>
|
|
14
|
-
Ready to submit?
|
|
15
|
-
</ab-wizard-step>
|
|
16
|
-
</ab-wizard>
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
## Props
|
|
20
|
-
|
|
21
|
-
| Name | Type | Default | Description |
|
|
22
|
-
| --- | --- | --- | --- |
|
|
23
|
-
| `title` | `String` | **required** | Step title shown in the stepper. |
|
|
24
|
-
| `description` | `String` | `""` | Step description / subtitle. |
|
|
25
|
-
| `icon` | `Object \| String \| Function` | `null` | Icon component, icon class string, or render function. |
|
|
26
|
-
| `disableClose` | `Boolean` | `false` | Disable the close button while this step is active. |
|
|
27
|
-
|
|
28
|
-
## Slots
|
|
29
|
-
|
|
30
|
-
| Name | Description |
|
|
31
|
-
| --- | --- |
|
|
32
|
-
| `default` | Step body content. |
|
|
33
|
-
|
|
34
|
-
## Provides
|
|
35
|
-
|
|
36
|
-
An `AbWizardStep` injection key so children (e.g. `AbSettingsForm`) can register themselves as step validators.
|
|
1
|
+
# AbWizardStep — AI Reference
|
|
2
|
+
|
|
3
|
+
Single step inside an `AbWizard`. Declares its title, optional description, and an optional icon shown in the stepper.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<ab-wizard>
|
|
9
|
+
<ab-wizard-step title="Account" description="Create your account" :icon="UserIcon">
|
|
10
|
+
<ab-input-field v-model="form.email" name="email" label="Email" rules="required|email" />
|
|
11
|
+
</ab-wizard-step>
|
|
12
|
+
|
|
13
|
+
<ab-wizard-step title="Confirm" disable-close>
|
|
14
|
+
Ready to submit?
|
|
15
|
+
</ab-wizard-step>
|
|
16
|
+
</ab-wizard>
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Props
|
|
20
|
+
|
|
21
|
+
| Name | Type | Default | Description |
|
|
22
|
+
| --- | --- | --- | --- |
|
|
23
|
+
| `title` | `String` | **required** | Step title shown in the stepper. |
|
|
24
|
+
| `description` | `String` | `""` | Step description / subtitle. |
|
|
25
|
+
| `icon` | `Object \| String \| Function` | `null` | Icon component, icon class string, or render function. |
|
|
26
|
+
| `disableClose` | `Boolean` | `false` | Disable the close button while this step is active. |
|
|
27
|
+
|
|
28
|
+
## Slots
|
|
29
|
+
|
|
30
|
+
| Name | Description |
|
|
31
|
+
| --- | --- |
|
|
32
|
+
| `default` | Step body content. |
|
|
33
|
+
|
|
34
|
+
## Provides
|
|
35
|
+
|
|
36
|
+
An `AbWizardStep` injection key so children (e.g. `AbSettingsForm`) can register themselves as step validators.
|