@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.
Files changed (91) hide show
  1. package/.ai/ai_ref_AbAvatar.md +41 -41
  2. package/.ai/ai_ref_AbBadge.md +36 -36
  3. package/.ai/ai_ref_AbButton.md +52 -51
  4. package/.ai/ai_ref_AbCard.md +51 -51
  5. package/.ai/ai_ref_AbCarousel.md +36 -36
  6. package/.ai/ai_ref_AbChart.md +46 -46
  7. package/.ai/ai_ref_AbColorPicker.md +42 -42
  8. package/.ai/ai_ref_AbConfirmPopover.md +54 -54
  9. package/.ai/ai_ref_AbCustomField.md +66 -66
  10. package/.ai/ai_ref_AbDarkModeToggler.md +33 -33
  11. package/.ai/ai_ref_AbDateTimePicker.md +74 -74
  12. package/.ai/ai_ref_AbEasyModal.md +56 -56
  13. package/.ai/ai_ref_AbField.md +88 -88
  14. package/.ai/ai_ref_AbFileUploader.md +47 -47
  15. package/.ai/ai_ref_AbFilterPanel.md +67 -67
  16. package/.ai/ai_ref_AbFormCheck.md +58 -58
  17. package/.ai/ai_ref_AbImageRadioInput.md +55 -55
  18. package/.ai/ai_ref_AbInputField.md +66 -66
  19. package/.ai/ai_ref_AbInputTag.md +56 -56
  20. package/.ai/ai_ref_AbKbd.md +23 -23
  21. package/.ai/ai_ref_AbKbdGroup.md +21 -21
  22. package/.ai/ai_ref_AbMainLayout.md +106 -0
  23. package/.ai/ai_ref_AbMultiSelect.md +78 -78
  24. package/.ai/ai_ref_AbNumberField.md +59 -59
  25. package/.ai/ai_ref_AbPinInput.md +33 -33
  26. package/.ai/ai_ref_AbPopover.md +54 -54
  27. package/.ai/ai_ref_AbPricingCard.md +56 -56
  28. package/.ai/ai_ref_AbPricingContainer.md +41 -41
  29. package/.ai/ai_ref_AbPricingTable.md +56 -56
  30. package/.ai/ai_ref_AbProgressbar.md +34 -34
  31. package/.ai/ai_ref_AbScrollbar.md +38 -38
  32. package/.ai/ai_ref_AbSettingsForm.md +46 -46
  33. package/.ai/ai_ref_AbSideMenuItem.md +47 -47
  34. package/.ai/ai_ref_AbSidebar.md +62 -62
  35. package/.ai/ai_ref_AbSkeleton.md +23 -23
  36. package/.ai/ai_ref_AbSlider.md +52 -52
  37. package/.ai/ai_ref_AbTab.md +30 -30
  38. package/.ai/ai_ref_AbTable.md +49 -49
  39. package/.ai/ai_ref_AbTabs.md +37 -37
  40. package/.ai/ai_ref_AbToggle.md +46 -46
  41. package/.ai/ai_ref_AbTooltip.md +39 -39
  42. package/.ai/ai_ref_AbWizard.md +64 -64
  43. package/.ai/ai_ref_AbWizardStep.md +36 -36
  44. package/.ai/ai_ref_abEventBus.md +66 -66
  45. package/.ai/ai_ref_abRequestParam.md +40 -40
  46. package/.ai/ai_ref_abVeeRules.md +33 -33
  47. package/.ai/ai_ref_global_config.md +57 -56
  48. package/.ai/ai_ref_useAlert.md +50 -45
  49. package/.ai/ai_ref_useFileValidator.md +31 -31
  50. package/.ai/ai_ref_useResponsive.md +41 -41
  51. package/.ai/ai_ref_useTheme.md +28 -28
  52. package/.ai/ai_ref_useToast.md +30 -30
  53. package/AI_REFERENCE.md +87 -86
  54. package/design-system.md +403 -403
  55. package/dist/skins/black.css +1 -1
  56. package/dist/skins/black.scss +3 -3
  57. package/dist/skins/cyan.css +1 -1
  58. package/dist/skins/cyan.scss +3 -3
  59. package/dist/skins/default.css +1 -1
  60. package/dist/skins/default.scss +5 -5
  61. package/dist/skins/gray.css +1 -1
  62. package/dist/skins/gray.scss +3 -3
  63. package/dist/skins/green.css +1 -1
  64. package/dist/skins/green.scss +5 -5
  65. package/dist/skins/orange.css +1 -1
  66. package/dist/skins/orange.scss +3 -3
  67. package/dist/skins/pink.css +1 -1
  68. package/dist/skins/pink.scss +3 -3
  69. package/dist/skins/purple.css +1 -1
  70. package/dist/skins/purple.scss +3 -3
  71. package/dist/skins/red.css +1 -1
  72. package/dist/skins/red.scss +3 -3
  73. package/dist/skins/themes/_black.scss +18 -6
  74. package/dist/skins/themes/_blue.scss +18 -43
  75. package/dist/skins/themes/_common_variable.scss +695 -685
  76. package/dist/skins/themes/_cyan.scss +18 -6
  77. package/dist/skins/themes/_gray.scss +18 -7
  78. package/dist/skins/themes/_green.scss +18 -6
  79. package/dist/skins/themes/_grid.scss +32 -30
  80. package/dist/skins/themes/_orange.scss +18 -6
  81. package/dist/skins/themes/_pink.scss +18 -6
  82. package/dist/skins/themes/_purple.scss +18 -6
  83. package/dist/skins/themes/_red.scss +18 -6
  84. package/dist/skins/themes/_violet.scss +18 -6
  85. package/dist/skins/violet.css +1 -1
  86. package/dist/skins/violet.scss +3 -3
  87. package/dist/style.css +1 -1
  88. package/dist/vue3-appsbd-ui.cjs.js +130 -142
  89. package/dist/vue3-appsbd-ui.es.js +21544 -20015
  90. package/package.json +72 -72
  91. package/readme.md +194 -194
@@ -1,41 +1,41 @@
1
- # AbAvatar — AI Reference
2
-
3
- Profile avatar component with `image` and `add` (upload placeholder) variants.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-avatar :src="user.avatarUrl" alt="Profile photo" />
10
- <ab-avatar variant="add" />
11
- </template>
12
- ```
13
-
14
- ## Props
15
-
16
- | Name | Type | Default | Description |
17
- | --- | --- | --- | --- |
18
- | `src` | `String` | `""` | Image source URL. |
19
- | `alt` | `String` | `""` | Alt text. |
20
- | `variant` | `String` | `"image"` | `"image"` or `"add"` (file-upload placeholder). |
21
- | `size` | `String` | `"md"` | Avatar size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
22
- | `isActive` | `Boolean` | `false` | Shows active status indicator. |
23
- | `isVerified` | `Boolean` | `false` | Shows verified status indicator and badge. |
24
-
25
- ## Events
26
-
27
- | Name | Payload | Description |
28
- | --- | --- | --- |
29
- | `change` | `Event` | Fired when a file is selected in `add` variant. The selected file(s) can be accessed via `event.target.files`. |
30
-
31
- ## Exposed Methods
32
-
33
- | Name | Description |
34
- | --- | --- |
35
- | `triggerFileSelect()` | Programmatically triggers the file selection dialog when in `add` variant. |
36
-
37
- ## Slots
38
-
39
- | Name | Description |
40
- | --- | --- |
41
- | `default` | Additional content (overlays, badges, etc.). |
1
+ # AbAvatar — AI Reference
2
+
3
+ Profile avatar component with `image` and `add` (upload placeholder) variants.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-avatar :src="user.avatarUrl" alt="Profile photo" />
10
+ <ab-avatar variant="add" />
11
+ </template>
12
+ ```
13
+
14
+ ## Props
15
+
16
+ | Name | Type | Default | Description |
17
+ | --- | --- | --- | --- |
18
+ | `src` | `String` | `""` | Image source URL. |
19
+ | `alt` | `String` | `""` | Alt text. |
20
+ | `variant` | `String` | `"image"` | `"image"` or `"add"` (file-upload placeholder). |
21
+ | `size` | `String` | `"md"` | Avatar size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
22
+ | `isActive` | `Boolean` | `false` | Shows active status indicator. |
23
+ | `isVerified` | `Boolean` | `false` | Shows verified status indicator and badge. |
24
+
25
+ ## Events
26
+
27
+ | Name | Payload | Description |
28
+ | --- | --- | --- |
29
+ | `change` | `Event` | Fired when a file is selected in `add` variant. The selected file(s) can be accessed via `event.target.files`. |
30
+
31
+ ## Exposed Methods
32
+
33
+ | Name | Description |
34
+ | --- | --- |
35
+ | `triggerFileSelect()` | Programmatically triggers the file selection dialog when in `add` variant. |
36
+
37
+ ## Slots
38
+
39
+ | Name | Description |
40
+ | --- | --- |
41
+ | `default` | Additional content (overlays, badges, etc.). |
@@ -1,36 +1,36 @@
1
- # AbBadge — AI Reference
2
-
3
- Bootstrap badge wrapper for statuses or counts with size, variant, shape, and icon variations.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-badge color="primary">New</ab-badge>
10
- <ab-badge color="success" is-rounded-pill>12</ab-badge>
11
- <ab-badge color="warning" is-outline>Pending</ab-badge>
12
- </template>
13
- ```
14
-
15
- ## Props
16
-
17
- | Name | Type | Default | Description |
18
- | --- | --- | --- | --- |
19
- | `size` | `String` | `"md"` | Size of the badge (`sm`, `md`, `lg`). |
20
- | `color` | `String` | `"primary"` | Color theme (`primary`, `secondary`, `danger`, `warning`, `success`, `info`). |
21
- | `isOutline` | `Boolean` | `false` | Outlined style with transparent background. |
22
- | `isRoundedPill` | `Boolean` | `false` | Transforms badge to a fully rounded pill shape. |
23
- | `isDot` | `Boolean` | `false` | Prepends a dot indicator layout. |
24
- | `isAdd` | `Boolean` | `false` | Adjusts styling for an add/plus icon badge. |
25
- | `position` | `String` | `"right"` | Position of the `content` slot (`"left"`, `"right"`). |
26
-
27
- ## Slots
28
-
29
- | Name | Description |
30
- | --- | --- |
31
- | `default` | Badge content. |
32
- | `content` | Slot for an icon, image, or avatar. Placed according to the `position` prop. |
33
-
34
- ## Notes
35
-
36
- The component passes `$attrs` seamlessly to the root `<span>`.
1
+ # AbBadge — AI Reference
2
+
3
+ Bootstrap badge wrapper for statuses or counts with size, variant, shape, and icon variations.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-badge color="primary">New</ab-badge>
10
+ <ab-badge color="success" is-rounded-pill>12</ab-badge>
11
+ <ab-badge color="warning" is-outline>Pending</ab-badge>
12
+ </template>
13
+ ```
14
+
15
+ ## Props
16
+
17
+ | Name | Type | Default | Description |
18
+ | --- | --- | --- | --- |
19
+ | `size` | `String` | `"md"` | Size of the badge (`sm`, `md`, `lg`). |
20
+ | `color` | `String` | `"primary"` | Color theme (`primary`, `secondary`, `danger`, `warning`, `success`, `info`). |
21
+ | `isOutline` | `Boolean` | `false` | Outlined style with transparent background. |
22
+ | `isRoundedPill` | `Boolean` | `false` | Transforms badge to a fully rounded pill shape. |
23
+ | `isDot` | `Boolean` | `false` | Prepends a dot indicator layout. |
24
+ | `isAdd` | `Boolean` | `false` | Adjusts styling for an add/plus icon badge. |
25
+ | `position` | `String` | `"right"` | Position of the `content` slot (`"left"`, `"right"`). |
26
+
27
+ ## Slots
28
+
29
+ | Name | Description |
30
+ | --- | --- |
31
+ | `default` | Badge content. |
32
+ | `content` | Slot for an icon, image, or avatar. Placed according to the `position` prop. |
33
+
34
+ ## Notes
35
+
36
+ The component passes `$attrs` seamlessly to the root `<span>`.
@@ -1,51 +1,52 @@
1
- # AbButton — AI Reference
2
-
3
- Customizable button with optional loader animation and leading icon slot.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-button color="primary">Save</ab-button>
10
-
11
- <ab-button color="secondary" is-outline show-icon-divider>
12
- <template #icon><i class="bi bi-plus-lg"></i></template>
13
- New Item
14
- </ab-button>
15
-
16
- <ab-button color="primary" :is-animated="isSaving" is-hide-text-on-animate>
17
- Save
18
- </ab-button>
19
- </template>
20
-
21
- <script setup>
22
- import { ref } from 'vue';
23
- const isSaving = ref(false);
24
- </script>
25
- ```
26
-
27
- ## Props
28
-
29
- | Name | Type | Default | Description |
30
- | --- | --- | --- | --- |
31
- | `type` | `String` | `"button"` | Native button type (`button`, `submit`, `reset`). |
32
- | `color` | `String` | `"primary"` | Color variant (primary, secondary, success, danger, warning, info, light, dark). |
33
- | `size` | `String` | `"md"` | Button size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
34
- | `isOutline` | `Boolean` | `false` | Applies the outline style for the selected color. |
35
- | `isIconBtn` | `Boolean` | `false` | Formats the button styling for a single icon. |
36
- | `isAnimated` | `Boolean` | `false` | When `true`, renders the loader SVG and optionally hides the label. |
37
- | `isHideTextOnAnimate` | `Boolean` | `false` | Hides the default slot content while `isAnimated` is `true`. |
38
- | `showIconDivider` | `Boolean` | `false` | Renders a vertical divider between the `#icon` slot and the label. |
39
- | `iconPosition` | `String` | `"left"` | Placement of the icon and divider (`"left"` or `"right"`). |
40
-
41
- ## Events
42
-
43
- No custom events. All native button events (`click`, `focus`, `blur`, …) bubble up via `$attrs`.
44
-
45
- ## Slots
46
-
47
- | Name | Scope | Description |
48
- | --- | --- | --- |
49
- | `default` | | Button label / content. |
50
- | `icon` | — | Icon element (rendered before or after the label depending on `iconPosition`). |
51
- | `svg` | — | Overrides the built-in loader SVG (only used while `isAnimated`). |
1
+ # AbButton — AI Reference
2
+
3
+ Customizable button with optional loader animation and leading icon slot.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-button color="primary">Save</ab-button>
10
+
11
+ <ab-button color="secondary" is-outline show-icon-divider>
12
+ <template #icon><i class="bi bi-plus-lg"></i></template>
13
+ New Item
14
+ </ab-button>
15
+
16
+ <ab-button color="primary" :is-animated="isSaving" is-hide-text-on-animate>
17
+ Save
18
+ </ab-button>
19
+ </template>
20
+
21
+ <script setup>
22
+ import { ref } from 'vue';
23
+ const isSaving = ref(false);
24
+ </script>
25
+ ```
26
+
27
+ ## Props
28
+
29
+ | Name | Type | Default | Description |
30
+ | --- | --- | --- | --- |
31
+ | `type` | `String` | `"button"` | Native button type (`button`, `submit`, `reset`). |
32
+ | `color` | `String` | `"primary"` | Color variant (primary, secondary, success, danger, warning, info, light, dark). |
33
+ | `size` | `String` | `"md"` | Button size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
34
+ | `isOutline` | `Boolean` | `false` | Applies the outline style for the selected color. |
35
+ | `isIconBtn` | `Boolean` | `false` | Formats the button styling for a single icon. |
36
+ | `isRounded` | `Boolean` | `false` | Applies a fully rounded, pill-like border radius to the button. |
37
+ | `isAnimated` | `Boolean` | `false` | When `true`, renders the loader SVG and optionally hides the label. |
38
+ | `isHideTextOnAnimate` | `Boolean` | `false` | Hides the default slot content while `isAnimated` is `true`. |
39
+ | `showIconDivider` | `Boolean` | `false` | Renders a vertical divider between the `#icon` slot and the label. |
40
+ | `iconPosition` | `String` | `"left"` | Placement of the icon and divider (`"left"` or `"right"`). |
41
+
42
+ ## Events
43
+
44
+ No custom events. All native button events (`click`, `focus`, `blur`, …) bubble up via `$attrs`.
45
+
46
+ ## Slots
47
+
48
+ | Name | Scope | Description |
49
+ | --- | --- | --- |
50
+ | `default` | — | Button label / content. |
51
+ | `icon` | — | Icon element (rendered before or after the label depending on `iconPosition`). |
52
+ | `svg` | — | Overrides the built-in loader SVG (only used while `isAnimated`). |
@@ -1,51 +1,51 @@
1
- # AbCard — AI Reference
2
-
3
- Bootstrap-style card container with `header`, `body`, and `footer` slots. Visual variations (`tile-card`, `item-card`, `insight-card`, …) are applied through CSS classes on `containerClass` rather than separate components.
4
-
5
- ## Props
6
-
7
- | Name | Type | Default | Description |
8
- | --- | --- | --- | --- |
9
- | `containerClass` | `String` | `undefined` | CSS class applied to the card root. |
10
- | `headerClass` | `String` | `""` | CSS class for the header section. |
11
- | `bodyClass` | `String` | `""` | CSS class for the body section. |
12
- | `footerClass` | `String` | `""` | CSS class for the footer section. |
13
- | `isBorderCard` | `Boolean` | `true` | Whether to display the default card border. |
14
- | `bgColorVariant` | `String` | `""` | Bootstrap color variant for background (`primary`, `success`, etc.). |
15
- | `borderBottomVariant` | `String` | `""` | Adds a colored bottom border with the specified variant. |
16
- | `isTileCard` | `Boolean` | `false` | Applies the `.tile-card` layout styles. |
17
- | `showBorder` | `Boolean` | `false` | Whether to display the header and footer borders. |
18
- | `variation` | `String` | `""` | Generic variation class to append to the root. |
19
-
20
- ## Usage
21
-
22
- ```vue
23
- <template>
24
- <ab-card is-tile-card :is-border-card="false">
25
- <template #body>
26
- <span class="tile-title">Total Revenue</span>
27
- <span class="tile-value">$12,480</span>
28
- </template>
29
- </ab-card>
30
-
31
- <ab-card container-class="shadow-sm" border-bottom-variant="primary" header-class="bg-light">
32
- <template #header>Card Title</template>
33
- <template #body>Card Content</template>
34
- <template #footer>
35
- <ab-button size="sm">Action</ab-button>
36
- </template>
37
- </ab-card>
38
- </template>
39
- ```
40
-
41
- ## Slots
42
-
43
- | Name | Description |
44
- | --- | --- |
45
- | `header` | Card header content. Omit to hide the header. |
46
- | `body` | Card body content. |
47
- | `footer` | Card footer content. Omit to hide the footer. |
48
-
49
- ## Notes
50
-
51
- Do **not** create a new `.vue` file for card variations — define the variant as a CSS class in `src/styles/components/_card.scss` and pass it via `containerClass`.
1
+ # AbCard — AI Reference
2
+
3
+ Bootstrap-style card container with `header`, `body`, and `footer` slots. Visual variations (`tile-card`, `item-card`, `insight-card`, …) are applied through CSS classes on `containerClass` rather than separate components.
4
+
5
+ ## Props
6
+
7
+ | Name | Type | Default | Description |
8
+ | --- | --- | --- | --- |
9
+ | `containerClass` | `String` | `undefined` | CSS class applied to the card root. |
10
+ | `headerClass` | `String` | `""` | CSS class for the header section. |
11
+ | `bodyClass` | `String` | `""` | CSS class for the body section. |
12
+ | `footerClass` | `String` | `""` | CSS class for the footer section. |
13
+ | `isBorderCard` | `Boolean` | `true` | Whether to display the default card border. |
14
+ | `bgColorVariant` | `String` | `""` | Bootstrap color variant for background (`primary`, `success`, etc.). |
15
+ | `borderBottomVariant` | `String` | `""` | Adds a colored bottom border with the specified variant. |
16
+ | `isTileCard` | `Boolean` | `false` | Applies the `.tile-card` layout styles. |
17
+ | `showBorder` | `Boolean` | `false` | Whether to display the header and footer borders. |
18
+ | `variation` | `String` | `""` | Generic variation class to append to the root. |
19
+
20
+ ## Usage
21
+
22
+ ```vue
23
+ <template>
24
+ <ab-card is-tile-card :is-border-card="false">
25
+ <template #body>
26
+ <span class="tile-title">Total Revenue</span>
27
+ <span class="tile-value">$12,480</span>
28
+ </template>
29
+ </ab-card>
30
+
31
+ <ab-card container-class="shadow-sm" border-bottom-variant="primary" header-class="bg-light">
32
+ <template #header>Card Title</template>
33
+ <template #body>Card Content</template>
34
+ <template #footer>
35
+ <ab-button size="sm">Action</ab-button>
36
+ </template>
37
+ </ab-card>
38
+ </template>
39
+ ```
40
+
41
+ ## Slots
42
+
43
+ | Name | Description |
44
+ | --- | --- |
45
+ | `header` | Card header content. Omit to hide the header. |
46
+ | `body` | Card body content. |
47
+ | `footer` | Card footer content. Omit to hide the footer. |
48
+
49
+ ## Notes
50
+
51
+ Do **not** create a new `.vue` file for card variations — define the variant as a CSS class in `src/styles/components/_card.scss` and pass it via `containerClass`.
@@ -1,36 +1,36 @@
1
- # AbCarousel — AI Reference
2
-
3
- Rotating slider for images or arbitrary HTML content. Supports horizontal/vertical orientations, autoplay, edge-fade, and outside/hover-only navigation buttons.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-carousel edge-fade autoplay :autoplay-interval="4000">
10
- <img src="/slide1.jpg" alt="" />
11
- <img src="/slide2.jpg" alt="" />
12
- </ab-carousel>
13
-
14
- <ab-carousel orientation="vertical" nav-outside nav-on-hover>
15
- <ab-card v-for="card in cards" :key="card.id">…</ab-card>
16
- </ab-carousel>
17
- </template>
18
- ```
19
-
20
- ## Props
21
-
22
- | Name | Type | Default | Description |
23
- | --- | --- | --- | --- |
24
- | `scrollAmount` | `Number` | `200` | Pixels scrolled per click. When children exist, falls back to item width. |
25
- | `orientation` | `String` | `"horizontal"` | `horizontal` or `vertical`. |
26
- | `edgeFade` | `Boolean` | `false` | Fade the leading/trailing edges. |
27
- | `autoplay` | `Boolean` | `false` | Auto-scroll enabled. |
28
- | `autoplayInterval` | `Number` | `3000` | Autoplay interval in ms. |
29
- | `navOutside` | `Boolean` | `false` | Render nav buttons outside the carousel. |
30
- | `navOnHover` | `Boolean` | `false` | Show nav buttons only on hover. |
31
-
32
- ## Slots
33
-
34
- | Name | Description |
35
- | --- | --- |
36
- | `default` | Carousel items (images, cards, or arbitrary HTML). |
1
+ # AbCarousel — AI Reference
2
+
3
+ Rotating slider for images or arbitrary HTML content. Supports horizontal/vertical orientations, autoplay, edge-fade, and outside/hover-only navigation buttons.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-carousel edge-fade autoplay :autoplay-interval="4000">
10
+ <img src="/slide1.jpg" alt="" />
11
+ <img src="/slide2.jpg" alt="" />
12
+ </ab-carousel>
13
+
14
+ <ab-carousel orientation="vertical" nav-outside nav-on-hover>
15
+ <ab-card v-for="card in cards" :key="card.id">…</ab-card>
16
+ </ab-carousel>
17
+ </template>
18
+ ```
19
+
20
+ ## Props
21
+
22
+ | Name | Type | Default | Description |
23
+ | --- | --- | --- | --- |
24
+ | `scrollAmount` | `Number` | `200` | Pixels scrolled per click. When children exist, falls back to item width. |
25
+ | `orientation` | `String` | `"horizontal"` | `horizontal` or `vertical`. |
26
+ | `edgeFade` | `Boolean` | `false` | Fade the leading/trailing edges. |
27
+ | `autoplay` | `Boolean` | `false` | Auto-scroll enabled. |
28
+ | `autoplayInterval` | `Number` | `3000` | Autoplay interval in ms. |
29
+ | `navOutside` | `Boolean` | `false` | Render nav buttons outside the carousel. |
30
+ | `navOnHover` | `Boolean` | `false` | Show nav buttons only on hover. |
31
+
32
+ ## Slots
33
+
34
+ | Name | Description |
35
+ | --- | --- |
36
+ | `default` | Carousel items (images, cards, or arbitrary HTML). |
@@ -1,46 +1,46 @@
1
- # AbChart — AI Reference
2
-
3
- Chart component powered by Apache ECharts (via vue-echarts). Supports full ECharts option objects and a simplified props-based API for common chart types.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <script setup>
9
- import { AbChart } from "@vue3-appsbd-ui";
10
- const xAxisData = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
11
- const seriesData = [150, 230, 224, 218, 135, 147, 260];
12
- </script>
13
-
14
- <template>
15
- <AbChart chartType="line" :xAxisData="xAxisData" :seriesData="seriesData" height="400px" />
16
- </template>
17
- ```
18
-
19
- Full ECharts option (overrides all other props):
20
-
21
- ```vue
22
- <template>
23
- <AbChart :option="option" height="400px" />
24
- </template>
25
- ```
26
-
27
- ## Props
28
-
29
- | Name | Type | Default | Description |
30
- | :--- | :--- | :--- | :--- |
31
- | `option` | `Object` | `{}` | Full ECharts option object. If provided, overrides all other props. |
32
- | `chartType` | `String` | `""` | Chart type for simplified API (`"line"`, `"bar"`, `"pie"`). |
33
- | `xAxisData` | `Array` | `[]` | Categories for the X-axis. |
34
- | `seriesData` | `Array` | `[]` | Data points. For pie charts use `[{ value: 10, name: 'A' }]`. |
35
- | `xAxisType` | `String` | `"category"` | ECharts X-axis type (`"value"`, `"category"`, `"time"`, `"log"`). |
36
- | `yAxisType` | `String` | `"value"` | ECharts Y-axis type. |
37
- | `legendOrient` | `String` | `""` | Legend orientation (`"vertical"`, `"horizontal"`). |
38
- | `showPointValues` | `Boolean` | `false` | Display value labels on each data point. |
39
- | `height` | `String` | `"400px"` | Chart container height. |
40
-
41
- ## Notes
42
-
43
- - **Tree Shaking**: Internally imports only needed ECharts modules (`CanvasRenderer`, `LineChart`, `PieChart`, `BarChart`, `GridComponent`, `TitleComponent`, `TooltipComponent`, `LegendComponent`).
44
- - **Autoresize**: Enabled by default.
45
- - **Pie Charts**: When `chartType="pie"`, `xAxis`/`yAxis` are automatically omitted.
46
- - Requires peer dependencies: `echarts`, `vue-echarts`.
1
+ # AbChart — AI Reference
2
+
3
+ Chart component powered by Apache ECharts (via vue-echarts). Supports full ECharts option objects and a simplified props-based API for common chart types.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <script setup>
9
+ import { AbChart } from "@vue3-appsbd-ui";
10
+ const xAxisData = ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'];
11
+ const seriesData = [150, 230, 224, 218, 135, 147, 260];
12
+ </script>
13
+
14
+ <template>
15
+ <AbChart chartType="line" :xAxisData="xAxisData" :seriesData="seriesData" height="400px" />
16
+ </template>
17
+ ```
18
+
19
+ Full ECharts option (overrides all other props):
20
+
21
+ ```vue
22
+ <template>
23
+ <AbChart :option="option" height="400px" />
24
+ </template>
25
+ ```
26
+
27
+ ## Props
28
+
29
+ | Name | Type | Default | Description |
30
+ | :--- | :--- | :--- | :--- |
31
+ | `option` | `Object` | `{}` | Full ECharts option object. If provided, overrides all other props. |
32
+ | `chartType` | `String` | `""` | Chart type for simplified API (`"line"`, `"bar"`, `"pie"`). |
33
+ | `xAxisData` | `Array` | `[]` | Categories for the X-axis. |
34
+ | `seriesData` | `Array` | `[]` | Data points. For pie charts use `[{ value: 10, name: 'A' }]`. |
35
+ | `xAxisType` | `String` | `"category"` | ECharts X-axis type (`"value"`, `"category"`, `"time"`, `"log"`). |
36
+ | `yAxisType` | `String` | `"value"` | ECharts Y-axis type. |
37
+ | `legendOrient` | `String` | `""` | Legend orientation (`"vertical"`, `"horizontal"`). |
38
+ | `showPointValues` | `Boolean` | `false` | Display value labels on each data point. |
39
+ | `height` | `String` | `"400px"` | Chart container height. |
40
+
41
+ ## Notes
42
+
43
+ - **Tree Shaking**: Internally imports only needed ECharts modules (`CanvasRenderer`, `LineChart`, `PieChart`, `BarChart`, `GridComponent`, `TitleComponent`, `TooltipComponent`, `LegendComponent`).
44
+ - **Autoresize**: Enabled by default.
45
+ - **Pie Charts**: When `chartType="pie"`, `xAxis`/`yAxis` are automatically omitted.
46
+ - Requires peer dependencies: `echarts`, `vue-echarts`.
@@ -1,42 +1,42 @@
1
- # AbColorPicker — AI Reference
2
-
3
- Radio-style color swatch picker. Takes a list of named colors and lets users pick one.
4
-
5
- ## Usage
6
-
7
- ```vue
8
- <template>
9
- <ab-color-picker
10
- v-model="themeColor"
11
- name="theme"
12
- :colors="[
13
- { name: 'blue', color: '#2563eb', title: 'Blue' },
14
- { name: 'green', color: '#16a34a', title: 'Green' },
15
- ]"
16
- align="left"
17
- border-radius="50%"
18
- />
19
- </template>
20
-
21
- <script setup>
22
- import { ref } from 'vue';
23
- const themeColor = ref('blue');
24
- </script>
25
- ```
26
-
27
- ## Props
28
-
29
- | Name | Type | Default | Description |
30
- | --- | --- | --- | --- |
31
- | `modelValue` | `String` | `""` | Selected color `name` (v-model). |
32
- | `name` | `String` | `"color"` | Radio group name. |
33
- | `colors` | `Array` | `[]` | Each: `{ name, color, title? }`. |
34
- | `align` | `String` | `"left"` | Flex alignment (`left`, `center`, `right`, …). |
35
- | `borderRadius` | `String` | `"50%"` | Swatch border-radius. |
36
- | `size` | `String` | `"md"` | Item size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
37
-
38
- ## Events
39
-
40
- | Event | Payload | Description |
41
- | --- | --- | --- |
42
- | `update:modelValue` | `colorName` | v-model sync — emits the color `name`, not the hex value. |
1
+ # AbColorPicker — AI Reference
2
+
3
+ Radio-style color swatch picker. Takes a list of named colors and lets users pick one.
4
+
5
+ ## Usage
6
+
7
+ ```vue
8
+ <template>
9
+ <ab-color-picker
10
+ v-model="themeColor"
11
+ name="theme"
12
+ :colors="[
13
+ { name: 'blue', color: '#2563eb', title: 'Blue' },
14
+ { name: 'green', color: '#16a34a', title: 'Green' },
15
+ ]"
16
+ align="left"
17
+ border-radius="50%"
18
+ />
19
+ </template>
20
+
21
+ <script setup>
22
+ import { ref } from 'vue';
23
+ const themeColor = ref('blue');
24
+ </script>
25
+ ```
26
+
27
+ ## Props
28
+
29
+ | Name | Type | Default | Description |
30
+ | --- | --- | --- | --- |
31
+ | `modelValue` | `String` | `""` | Selected color `name` (v-model). |
32
+ | `name` | `String` | `"color"` | Radio group name. |
33
+ | `colors` | `Array` | `[]` | Each: `{ name, color, title? }`. |
34
+ | `align` | `String` | `"left"` | Flex alignment (`left`, `center`, `right`, …). |
35
+ | `borderRadius` | `String` | `"50%"` | Swatch border-radius. |
36
+ | `size` | `String` | `"md"` | Item size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
37
+
38
+ ## Events
39
+
40
+ | Event | Payload | Description |
41
+ | --- | --- | --- |
42
+ | `update:modelValue` | `colorName` | v-model sync — emits the color `name`, not the hex value. |