@appsbd/vue3-appsbd-ui 1.0.8 → 1.0.10
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_AbButton.md +1 -0
- package/.ai/ai_ref_AbField.md +13 -7
- package/.ai/ai_ref_AbInputField.md +7 -3
- package/.ai/ai_ref_AbInputTag.md +4 -4
- package/.ai/ai_ref_AbModal.md +7 -5
- package/.ai/ai_ref_AbMultiSelect.md +4 -4
- package/.ai/ai_ref_AbPopover.md +1 -0
- package/.ai/ai_ref_AbSideMenuItem.md +5 -4
- package/dist/style.css +1 -1
- package/dist/vue3-appsbd-ui.cjs.js +71 -71
- package/dist/vue3-appsbd-ui.es.js +6913 -6819
- package/package.json +1 -1
package/.ai/ai_ref_AbButton.md
CHANGED
|
@@ -28,6 +28,7 @@ const isSaving = ref(false);
|
|
|
28
28
|
|
|
29
29
|
| Name | Type | Default | Description |
|
|
30
30
|
| --- | --- | --- | --- |
|
|
31
|
+
| `mode` | `String` | `"button"` | Sets the root tag (`button`, `link`, `router-link`). |
|
|
31
32
|
| `type` | `String` | `"button"` | Native button type (`button`, `submit`, `reset`). |
|
|
32
33
|
| `color` | `String` | `"primary"` | Color variant (primary, secondary, success, danger, warning, info, light, dark). |
|
|
33
34
|
| `size` | `String` | `"md"` | Button size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
|
package/.ai/ai_ref_AbField.md
CHANGED
|
@@ -34,14 +34,14 @@ Polymorphic field wrapper — renders text, textarea, select, multiselect, tag,
|
|
|
34
34
|
| Name | Type | Default | Description |
|
|
35
35
|
| --- | --- | --- | --- |
|
|
36
36
|
| `val` | `any` | `null` | Initial value (used when `modelValue` is empty). |
|
|
37
|
-
| `label` | `String` |
|
|
38
|
-
| `name` | `String` |
|
|
37
|
+
| `label` | `String` | `undefined` | Field label. |
|
|
38
|
+
| `name` | `String` | `""` | VeeValidate field name. |
|
|
39
39
|
| `type` | `String` | `"text"` | `text`, `email`, `password`, `number`, `url`, `textarea`, `select`, `multiselect`, `tag`, `checkbox`, `radio`, `toggle`, `switch`. |
|
|
40
40
|
| `prefix` | `String` | `""` | Prefix text/icon. |
|
|
41
41
|
| `postfix` | `String` | `""` | Postfix text/icon. |
|
|
42
42
|
| `modelValue` | `String \| Number \| Boolean \| Array \| Object` | `""` | Two-way-bound value. |
|
|
43
43
|
| `isCodeInput` | `Boolean` | `false` | Applies monospace styling. |
|
|
44
|
-
| `containerClass` | `String` | `
|
|
44
|
+
| `containerClass` | `String` | `undefined` | Wrapper class. |
|
|
45
45
|
| `maxlength` | `String \| Number` | `""` | Native maxlength. |
|
|
46
46
|
| `minlength` | `String \| Number` | `""` | Native minlength. |
|
|
47
47
|
| `placeholder` | `String` | `""` | Input placeholder. |
|
|
@@ -51,19 +51,25 @@ Polymorphic field wrapper — renders text, textarea, select, multiselect, tag,
|
|
|
51
51
|
| `labelKey` | `String` | `"title"` | Option label property. |
|
|
52
52
|
| `valueKey` | `String` | `"val"` | Option value property. |
|
|
53
53
|
| `max` | `Number` | `-1` | Max selections (multiselect/tag); `-1` = unlimited. |
|
|
54
|
-
| `size` | `String` | `
|
|
54
|
+
| `size` | `String` | `undefined` | Field size. |
|
|
55
55
|
| `object` | `Boolean` | `false` | Return full objects instead of values (multiselect). |
|
|
56
56
|
| `searchable` | `Boolean` | `false` | Enable search (select). |
|
|
57
57
|
| `description` | `String` | `""` | Secondary description. |
|
|
58
58
|
| `helptext` | `String` | `""` | Help text. |
|
|
59
59
|
| `isInline` | `Boolean` | `false` | Inline layout (checkbox/radio). |
|
|
60
|
-
| `trueValue` | `any` | `
|
|
61
|
-
| `falseValue` | `any` | `
|
|
60
|
+
| `trueValue` | `any` | `undefined` | Toggle/switch on value. |
|
|
61
|
+
| `falseValue` | `any` | `undefined` | Toggle/switch off value. |
|
|
62
62
|
| `title` | `String \| null` | `null` | Toggle/switch title. |
|
|
63
63
|
| `isLeftIconBorder` | `Boolean` | `false` | Border on left icon. |
|
|
64
64
|
| `isRightIconBorder` | `Boolean` | `false` | Border on right icon. |
|
|
65
|
+
| `passIconPosition` | `String` | `"right"` | Position of the show password icon. |
|
|
65
66
|
| `isHideLabel` | `Boolean` | `false` | Hide the label visually. |
|
|
66
|
-
| `iconPosition` | `String` | `
|
|
67
|
+
| `iconPosition` | `String` | `undefined` | Position of the custom `#icon` slot (`"left"`, `"right"`). |
|
|
68
|
+
| `onSearch` | `Function` | `null` | Async handler `(query) => Promise<options>`. |
|
|
69
|
+
| `isAjaxSearch` | `Boolean` | `false` | Enable async search via `onSearch`. |
|
|
70
|
+
| `hideSelected` | `Boolean` | `true` | Hide already-selected items from dropdown. |
|
|
71
|
+
| `loading` | `Boolean` | `false` | Show a loading spinner. |
|
|
72
|
+
| `appendToBody` | `Boolean` | `true` | Teleport the dropdown to `<body>`. |
|
|
67
73
|
|
|
68
74
|
## Events
|
|
69
75
|
|
|
@@ -32,18 +32,22 @@ const form = reactive({ email: '' });
|
|
|
32
32
|
| `label` | `String` | `""` | Field label. |
|
|
33
33
|
| `placeholder` | `String` | `""` | Input placeholder. |
|
|
34
34
|
| `type` | `String` | `"text"` | Native input type (`text`, `email`, `password`, `number`, `tel`, …). |
|
|
35
|
-
| `name` | `String` |
|
|
35
|
+
| `name` | `String` | `""` | VeeValidate field name. |
|
|
36
36
|
| `isCodeInput` | `Boolean` | `false` | Applies monospace / code-input styling. |
|
|
37
|
+
| `size` | `String` | `undefined` | Adjusts component size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
|
|
37
38
|
| `rules` | `String \| Object` | `""` | VeeValidate rules. |
|
|
38
|
-
| `containerClass` | `String` | `
|
|
39
|
+
| `containerClass` | `String` | `undefined` | Class on the wrapper `<div>`. |
|
|
39
40
|
| `hints` | `String` | `""` | Helper text beneath the input. |
|
|
40
41
|
| `prefix` | `String` | `""` | Prefix text/icon (shortcut for `#prefix` slot). |
|
|
41
42
|
| `postfix` | `String` | `""` | Postfix text/icon. |
|
|
42
43
|
| `maxlength` | `any` | `null` | Native `maxlength`. |
|
|
43
44
|
| `isLeftIconBorder` | `Boolean` | `false` | Renders border between the prefix icon and the input. |
|
|
44
45
|
| `isRightIconBorder` | `Boolean` | `false` | Renders border between the postfix icon and the input. |
|
|
46
|
+
| `passIconPosition` | `String` | `"right"` | Position of the show password icon (`"left"`, `"right"`). |
|
|
45
47
|
| `isHideLabel` | `Boolean` | `false` | Hide the label visually. |
|
|
46
|
-
| `iconPosition` | `String` | `
|
|
48
|
+
| `iconPosition` | `String` | `undefined` | Position of the custom `#icon` slot (`"left"`, `"right"`). |
|
|
49
|
+
| `inputClass` | `String \| Object \| Array` | `undefined` | Additional class(es) for the input element. |
|
|
50
|
+
| `inputStyle` | `String \| Object \| Array` | `undefined` | Additional style(s) for the input element. |
|
|
47
51
|
|
|
48
52
|
## Events
|
|
49
53
|
|
package/.ai/ai_ref_AbInputTag.md
CHANGED
|
@@ -25,11 +25,11 @@ const skills = ref([]);
|
|
|
25
25
|
| `modelValue` | `Array` | `[]` | v-model array of selected tags. |
|
|
26
26
|
| `options` | `Array` | `[]` | Each entry: `{ val, title }` or a plain string. |
|
|
27
27
|
| `label` | `String` | `""` | Field label. |
|
|
28
|
-
| `size` | `String` | `
|
|
28
|
+
| `size` | `String` | `undefined` | Adjusts component size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
|
|
29
29
|
| `placeholder` | `String` | `""` | Placeholder text. |
|
|
30
|
-
| `name` | `String` |
|
|
30
|
+
| `name` | `String` | `""` | VeeValidate field name. |
|
|
31
31
|
| `rules` | `String \| Object` | `""` | VeeValidate rules. |
|
|
32
|
-
| `containerClass` | `String` | `
|
|
32
|
+
| `containerClass` | `String` | `undefined` | Wrapper class. |
|
|
33
33
|
| `hints` | `String` | `""` | Helper text. |
|
|
34
34
|
| `prefix` | `String` | `""` | Prefix icon/text. |
|
|
35
35
|
| `postfix` | `String` | `""` | Postfix icon/text. |
|
|
@@ -37,7 +37,7 @@ const skills = ref([]);
|
|
|
37
37
|
| `isLeftIconBorder` | `Boolean` | `false` | Border on prefix icon. |
|
|
38
38
|
| `isRightIconBorder` | `Boolean` | `false` | Border on postfix icon. |
|
|
39
39
|
| `isHideLabel` | `Boolean` | `false` | Hide the label visually. |
|
|
40
|
-
| `iconPosition` | `String` | `
|
|
40
|
+
| `iconPosition` | `String` | `undefined` | Position of the custom `#icon` slot (`"left"`, `"right"`). |
|
|
41
41
|
|
|
42
42
|
## Events
|
|
43
43
|
|
package/.ai/ai_ref_AbModal.md
CHANGED
|
@@ -17,7 +17,9 @@ Full-featured dialog with a built-in VeeValidate `<Form>`, loader overlay, and "
|
|
|
17
17
|
>
|
|
18
18
|
<template #headerTitle>Edit profile</template>
|
|
19
19
|
|
|
20
|
-
<
|
|
20
|
+
<template #body>
|
|
21
|
+
<ab-input-field name="email" label="Email" rules="required|email" v-model="form.email" />
|
|
22
|
+
</template>
|
|
21
23
|
|
|
22
24
|
<template #footer="{ close }">
|
|
23
25
|
<ab-button class="btn-outline-secondary" @click="close">Cancel</ab-button>
|
|
@@ -47,7 +49,7 @@ async function handleSubmit(values, { resetForm }) {
|
|
|
47
49
|
| --- | --- | --- | --- |
|
|
48
50
|
| `isModalVisible` | `Boolean` | — | Visibility state (`v-model:is-modal-visible`). |
|
|
49
51
|
| `modalSize` | `String` | `""` | Bootstrap size class (`modal-sm`, `modal-lg`, `modal-xl`). |
|
|
50
|
-
| `modalMsg` | `String` | `
|
|
52
|
+
| `modalMsg` | `[String, Object]` | `{}` | Default message for message-only mode. |
|
|
51
53
|
| `hideHeader` | `Boolean` | `false` | Hide the header section. |
|
|
52
54
|
| `hideBody` | `Boolean` | `false` | Hide the body section. |
|
|
53
55
|
| `hideFooter` | `Boolean` | `false` | Hide the footer section. |
|
|
@@ -55,7 +57,7 @@ async function handleSubmit(values, { resetForm }) {
|
|
|
55
57
|
| `hideForm` | `Boolean` | `false` | Render root as plain `<div>` instead of VeeValidate `<Form>`. |
|
|
56
58
|
| `bodyClass` | `String` | `""` | Extra class on the body section. |
|
|
57
59
|
| `isModalCenter` | `Boolean` | `true` | Vertically center the modal. |
|
|
58
|
-
| `isBorder` | `Boolean` | `
|
|
60
|
+
| `isBorder` | `Boolean` | `undefined` | Border around modal content. Defaults to global config. |
|
|
59
61
|
| `iconContainerClass` | `String` | `""` | Extra class on the header icon container. |
|
|
60
62
|
| `headerClass` | `String` | `""` | Extra class on the header. |
|
|
61
63
|
| `headerrClass` | `String` | `""` | Legacy alias for `headerClass`. |
|
|
@@ -64,7 +66,8 @@ async function handleSubmit(values, { resetForm }) {
|
|
|
64
66
|
|
|
65
67
|
| Event | Payload | Description |
|
|
66
68
|
| --- | --- | --- |
|
|
67
|
-
| `onSubmit` | `(event, { resetForm })` | Fired when the internal VeeValidate form is submitted. |
|
|
69
|
+
| `onSubmit` | `(event, { resetForm, showMsgOnly, clearForm, showLoader })` | Fired when the internal VeeValidate form is submitted. |
|
|
70
|
+
| `onLoading` | `({ showLoader, clearForm })` | Emitted on mounted to allow setting up initial loader state. |
|
|
68
71
|
| `loading-status` | `Boolean` | Emitted when loader state toggles. |
|
|
69
72
|
| `close` | — | Modal was closed (✕, Escape, or `close()`). |
|
|
70
73
|
|
|
@@ -72,7 +75,6 @@ async function handleSubmit(values, { resetForm }) {
|
|
|
72
75
|
|
|
73
76
|
| Name | Scope | Description |
|
|
74
77
|
| --- | --- | --- |
|
|
75
|
-
| `default` | VeeValidate `Form` slot-props | Form body when `hideForm` is `false`. |
|
|
76
78
|
| `header` | — | Overrides the entire header. |
|
|
77
79
|
| `headerIcon` | — | Icon at the start of the header. |
|
|
78
80
|
| `headerTitleContainer` | — | Overrides the title/subtitle wrapper. |
|
|
@@ -24,14 +24,14 @@ Searchable single/multi/tag select. Custom built-in replacement for `@vueform/mu
|
|
|
24
24
|
| `label` | `String` | `""` | Field label. |
|
|
25
25
|
| `placeholder` | `String` | `""` | Placeholder text. |
|
|
26
26
|
| `type` | `String` | `"text"` | Input type. |
|
|
27
|
-
| `name` | `String` |
|
|
27
|
+
| `name` | `String` | `""` | VeeValidate field name. |
|
|
28
28
|
| `rules` | `String \| Object` | `""` | VeeValidate rules. |
|
|
29
|
-
| `containerClass` | `String` | `
|
|
29
|
+
| `containerClass` | `String` | `undefined` | Wrapper class. |
|
|
30
30
|
| `hints` | `String` | `""` | Helper text. |
|
|
31
31
|
| `multiple` | `Boolean` | `false` | Deprecated — use `mode` instead. |
|
|
32
32
|
| `searchable` | `Boolean` | `false` | Enable option search/filter. |
|
|
33
33
|
| `mode` | `String` | `"single"` | `single`, `multiple`, or `tags`. |
|
|
34
|
-
| `size` | `String` | `
|
|
34
|
+
| `size` | `String` | `undefined` | Adjusts component size (`xs`, `sm`, `md`, `lg`, `xl`, `xxl`). |
|
|
35
35
|
| `options` | `Array` | `[]` | Available options. |
|
|
36
36
|
| `labelKey` | `String` | `"title"` | Property to use for label. |
|
|
37
37
|
| `valueKey` | `String` | `"val"` | Property to use for value. |
|
|
@@ -48,7 +48,7 @@ Searchable single/multi/tag select. Custom built-in replacement for `@vueform/mu
|
|
|
48
48
|
| `isLeftIconBorder` | `Boolean` | `false` | Border on prefix icon. |
|
|
49
49
|
| `isRightIconBorder` | `Boolean` | `false` | Border on postfix icon. |
|
|
50
50
|
| `isHideLabel` | `Boolean` | `false` | Hide the label visually. |
|
|
51
|
-
| `iconPosition` | `String` | `
|
|
51
|
+
| `iconPosition` | `String` | `undefined` | Position of the custom `#icon` slot (`"left"`, `"right"`). |
|
|
52
52
|
|
|
53
53
|
## Events
|
|
54
54
|
|
package/.ai/ai_ref_AbPopover.md
CHANGED
|
@@ -37,6 +37,7 @@ Interactive popover with click, hover, focus, touch, or manual triggers. Content
|
|
|
37
37
|
| `autoHide` | `Boolean` | `true` | Close when clicking outside. |
|
|
38
38
|
| `contentClass` | `String` | `""` | Extra class on the content element. |
|
|
39
39
|
| `referenceSelector` | `String` | `null` | CSS selector inside the trigger to anchor positioning. |
|
|
40
|
+
| `width` | `String \| Number` | `null` | Fixed width for the popover content. |
|
|
40
41
|
|
|
41
42
|
## Events
|
|
42
43
|
|
|
@@ -26,10 +26,11 @@ Single entry in an `AbSidebar`. Renders as a router-link, plain anchor, section
|
|
|
26
26
|
|
|
27
27
|
## Props
|
|
28
28
|
|
|
29
|
-
| Name | Type | Description |
|
|
30
|
-
| --- | --- | --- |
|
|
31
|
-
| `to` | `String \| Object` | Router-link target. When this item has a submenu, `to` makes the label clickable as a link. |
|
|
32
|
-
| `href` | `String` | Plain anchor target. With a submenu, `href` makes the item a submenu toggle instead of a link. |
|
|
29
|
+
| Name | Type | Default | Description |
|
|
30
|
+
| --- | --- | --- | --- |
|
|
31
|
+
| `to` | `String \| Object` | `undefined` | Router-link target. When this item has a submenu, `to` makes the label clickable as a link. |
|
|
32
|
+
| `href` | `String` | `undefined` | Plain anchor target. With a submenu, `href` makes the item a submenu toggle instead of a link. |
|
|
33
|
+
| `popoverTrigger` | `String` | `"hover"` | Trigger type for the popover submenu when collapsed (`"hover"`, `"click"`). |
|
|
33
34
|
|
|
34
35
|
## Slots
|
|
35
36
|
|