@volverjs/ui-vue 0.0.10-beta.17 → 0.0.10-beta.18
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/auto-imports.d.ts +3 -2
- package/bin/icons.js +1 -1
- package/dist/Volver.d.ts +1 -1
- package/dist/components/VvAccordion/VvAccordion.es.js +2 -1
- package/dist/components/VvAccordion/VvAccordion.umd.js +1 -1
- package/dist/components/VvAccordion/VvAccordion.vue.d.ts +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.es.js +4 -2
- package/dist/components/VvAccordionGroup/VvAccordionGroup.umd.js +1 -1
- package/dist/components/VvAccordionGroup/VvAccordionGroup.vue.d.ts +2 -2
- package/dist/components/VvAction/VvAction.es.js +2 -1
- package/dist/components/VvAction/VvAction.umd.js +1 -1
- package/dist/components/VvAction/VvAction.vue.d.ts +1 -1
- package/dist/components/VvAlert/VvAlert.es.js +3 -2
- package/dist/components/VvAlert/VvAlert.umd.js +1 -1
- package/dist/components/VvAlert/VvAlert.vue.d.ts +1 -1
- package/dist/components/VvAlert/index.d.ts +2 -2
- package/dist/components/VvAlertGroup/VvAlertGroup.es.js +5 -3
- package/dist/components/VvAlertGroup/VvAlertGroup.umd.js +1 -1
- package/dist/components/VvAlertGroup/VvAlertGroup.vue.d.ts +1 -1
- package/dist/components/VvAvatar/VvAvatar.vue.d.ts +1 -1
- package/dist/components/VvAvatarGroup/VvAvatarGroup.vue.d.ts +1 -1
- package/dist/components/VvBadge/VvBadge.vue.d.ts +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.es.js +2 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.umd.js +1 -1
- package/dist/components/VvBreadcrumb/VvBreadcrumb.vue.d.ts +1 -1
- package/dist/components/VvButton/VvButton.es.js +5 -3
- package/dist/components/VvButton/VvButton.umd.js +1 -1
- package/dist/components/VvButton/VvButton.vue.d.ts +7 -7
- package/dist/components/VvButton/index.d.ts +3 -3
- package/dist/components/VvButtonGroup/VvButtonGroup.es.js +2 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.umd.js +1 -1
- package/dist/components/VvButtonGroup/VvButtonGroup.vue.d.ts +1 -1
- package/dist/components/VvCard/VvCard.vue.d.ts +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.es.js +2 -1
- package/dist/components/VvCheckbox/VvCheckbox.umd.js +1 -1
- package/dist/components/VvCheckbox/VvCheckbox.vue.d.ts +7 -7
- package/dist/components/VvCheckbox/index.d.ts +3 -3
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.es.js +4 -2
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.umd.js +1 -1
- package/dist/components/VvCheckboxGroup/VvCheckboxGroup.vue.d.ts +3 -3
- package/dist/components/VvCheckboxGroup/index.d.ts +1 -1
- package/dist/components/VvCombobox/VvCombobox.es.js +11 -6
- package/dist/components/VvCombobox/VvCombobox.umd.js +1 -1
- package/dist/components/VvCombobox/VvCombobox.vue.d.ts +3 -3
- package/dist/components/VvCombobox/index.d.ts +1 -1
- package/dist/components/VvDialog/VvDialog.es.js +60 -54
- package/dist/components/VvDialog/VvDialog.umd.js +1 -1
- package/dist/components/VvDialog/VvDialog.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdown.es.js +2 -1
- package/dist/components/VvDropdown/VvDropdown.umd.js +1 -1
- package/dist/components/VvDropdown/VvDropdown.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownAction.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownItem.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOptgroup.vue.d.ts +1 -1
- package/dist/components/VvDropdown/VvDropdownOption.vue.d.ts +1 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.es.js +2 -1
- package/dist/components/VvDropdownAction/VvDropdownAction.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.es.js +1 -1
- package/dist/components/VvIcon/VvIcon.umd.js +1 -1
- package/dist/components/VvIcon/VvIcon.vue.d.ts +23 -103
- package/dist/components/VvInputFile/VvInputFile.es.js +59 -51
- package/dist/components/VvInputFile/VvInputFile.umd.js +1 -1
- package/dist/components/VvInputFile/VvInputFile.vue.d.ts +1 -1
- package/dist/components/VvInputText/VvInputClearAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputPasswordAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputStepAction.d.ts +1 -1
- package/dist/components/VvInputText/VvInputText.es.js +48 -42
- package/dist/components/VvInputText/VvInputText.umd.js +1 -1
- package/dist/components/VvInputText/VvInputText.vue.d.ts +3 -3
- package/dist/components/VvInputText/index.d.ts +1 -1
- package/dist/components/VvNav/VvNav.es.js +7 -6
- package/dist/components/VvNav/VvNav.umd.js +1 -1
- package/dist/components/VvNav/VvNav.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavItem.vue.d.ts +1 -1
- package/dist/components/VvNav/VvNavSeparator.vue.d.ts +1 -1
- package/dist/components/VvNavItem/VvNavItem.es.js +2 -1
- package/dist/components/VvNavItem/VvNavItem.umd.js +1 -1
- package/dist/components/VvProgress/VvProgress.vue.d.ts +1 -1
- package/dist/components/VvRadio/VvRadio.es.js +2 -1
- package/dist/components/VvRadio/VvRadio.umd.js +1 -1
- package/dist/components/VvRadio/VvRadio.vue.d.ts +5 -5
- package/dist/components/VvRadio/index.d.ts +2 -2
- package/dist/components/VvRadioGroup/VvRadioGroup.es.js +4 -2
- package/dist/components/VvRadioGroup/VvRadioGroup.umd.js +1 -1
- package/dist/components/VvRadioGroup/VvRadioGroup.vue.d.ts +3 -3
- package/dist/components/VvRadioGroup/index.d.ts +1 -1
- package/dist/components/VvSelect/VvSelect.es.js +3 -2
- package/dist/components/VvSelect/VvSelect.umd.js +1 -1
- package/dist/components/VvSelect/VvSelect.vue.d.ts +3 -3
- package/dist/components/VvSelect/index.d.ts +1 -1
- package/dist/components/VvTab/VvTab.es.js +9 -7
- package/dist/components/VvTab/VvTab.umd.js +1 -1
- package/dist/components/VvTab/VvTab.vue.d.ts +2 -2
- package/dist/components/VvTextarea/VvTextarea.es.js +3 -2
- package/dist/components/VvTextarea/VvTextarea.umd.js +1 -1
- package/dist/components/VvTextarea/VvTextarea.vue.d.ts +5 -5
- package/dist/components/VvTextarea/index.d.ts +2 -2
- package/dist/components/VvTooltip/VvTooltip.vue.d.ts +1 -1
- package/dist/components/index.es.js +238 -204
- package/dist/components/index.umd.js +1 -1
- package/dist/composables/alert/useAlert.d.ts +37 -4
- package/dist/composables/dropdown/useProvideDropdown.d.ts +1 -1
- package/dist/composables/index.es.js +14 -3
- package/dist/composables/index.umd.js +1 -1
- package/dist/directives/index.d.ts +3 -3
- package/dist/directives/index.es.js +3 -3
- package/dist/directives/index.umd.js +1 -1
- package/dist/directives/v-tooltip.es.js +1 -1
- package/dist/directives/v-tooltip.umd.js +1 -1
- package/dist/icons.es.js +6 -6
- package/dist/icons.umd.js +1 -1
- package/dist/index.es.js +62 -0
- package/dist/index.umd.js +1 -1
- package/dist/props/index.d.ts +5 -5
- package/dist/resolvers/unplugin.es.js +59 -6
- package/dist/resolvers/unplugin.umd.js +1 -1
- package/dist/stories/AccordionGroup/AccordionGroup.stories.d.ts +59 -117
- package/dist/stories/AccordionGroup/AccordionGroupSlots.stories.d.ts +519 -661
- package/dist/utils/ObjectUtilities.d.ts +0 -1
- package/package.json +53 -53
- package/src/Volver.ts +9 -4
- package/src/assets/icons/detailed.json +1 -1
- package/src/assets/icons/normal.json +1 -1
- package/src/assets/icons/simple.json +1 -1
- package/src/directives/index.ts +3 -3
- package/src/resolvers/unplugin.ts +3 -13
- package/src/utils/ObjectUtilities.ts +0 -11
package/dist/index.es.js
CHANGED
|
@@ -6,6 +6,64 @@ var __publicField = (obj, key, value) => {
|
|
|
6
6
|
};
|
|
7
7
|
import { addCollection, addIcon, addAPIProvider } from "@iconify/vue";
|
|
8
8
|
import { ref } from "vue";
|
|
9
|
+
const SPLIT_LOWER_UPPER_RE = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu");
|
|
10
|
+
const SPLIT_UPPER_UPPER_RE = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu");
|
|
11
|
+
const SPLIT_NUMBER_LOWER_RE = new RegExp("(\\d)(\\p{Ll})", "gu");
|
|
12
|
+
const SPLIT_LETTER_NUMBER_RE = new RegExp("(\\p{L})(\\d)", "gu");
|
|
13
|
+
const DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
|
|
14
|
+
const SPLIT_REPLACE_VALUE = "$1\0$2";
|
|
15
|
+
const DEFAULT_PREFIX_SUFFIX_CHARACTERS = "";
|
|
16
|
+
function split(value, options) {
|
|
17
|
+
let result = value.trim();
|
|
18
|
+
result = result.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
|
|
19
|
+
if (options == null ? void 0 : options.separateNumbers) {
|
|
20
|
+
result = result.replace(SPLIT_NUMBER_LOWER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_LETTER_NUMBER_RE, SPLIT_REPLACE_VALUE);
|
|
21
|
+
}
|
|
22
|
+
result = result.replace(DEFAULT_STRIP_REGEXP, "\0");
|
|
23
|
+
let start = 0;
|
|
24
|
+
let end = result.length;
|
|
25
|
+
while (result.charAt(start) === "\0")
|
|
26
|
+
start++;
|
|
27
|
+
if (start === end)
|
|
28
|
+
return [];
|
|
29
|
+
while (result.charAt(end - 1) === "\0")
|
|
30
|
+
end--;
|
|
31
|
+
return result.slice(start, end).split(/\0/g);
|
|
32
|
+
}
|
|
33
|
+
function noCase(input, options) {
|
|
34
|
+
const [prefix, value, suffix] = splitPrefixSuffix(input, options);
|
|
35
|
+
return prefix + split(value, options).map(lowerFactory(options == null ? void 0 : options.locale)).join((options == null ? void 0 : options.delimiter) ?? " ") + suffix;
|
|
36
|
+
}
|
|
37
|
+
function kebabCase(input, options) {
|
|
38
|
+
return noCase(input, { delimiter: "-", ...options });
|
|
39
|
+
}
|
|
40
|
+
function lowerFactory(locale) {
|
|
41
|
+
return locale === false ? (input) => input.toLowerCase() : (input) => input.toLocaleLowerCase(locale);
|
|
42
|
+
}
|
|
43
|
+
function splitPrefixSuffix(input, options) {
|
|
44
|
+
const prefixCharacters = (options == null ? void 0 : options.prefixCharacters) ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
45
|
+
const suffixCharacters = (options == null ? void 0 : options.suffixCharacters) ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
46
|
+
let prefixIndex = 0;
|
|
47
|
+
let suffixIndex = input.length;
|
|
48
|
+
while (prefixIndex < input.length) {
|
|
49
|
+
const char = input.charAt(prefixIndex);
|
|
50
|
+
if (!prefixCharacters.includes(char))
|
|
51
|
+
break;
|
|
52
|
+
prefixIndex++;
|
|
53
|
+
}
|
|
54
|
+
while (suffixIndex > prefixIndex) {
|
|
55
|
+
const index = suffixIndex - 1;
|
|
56
|
+
const char = input.charAt(index);
|
|
57
|
+
if (!suffixCharacters.includes(char))
|
|
58
|
+
break;
|
|
59
|
+
suffixIndex = index;
|
|
60
|
+
}
|
|
61
|
+
return [
|
|
62
|
+
input.slice(0, prefixIndex),
|
|
63
|
+
input.slice(prefixIndex, suffixIndex),
|
|
64
|
+
input.slice(suffixIndex)
|
|
65
|
+
];
|
|
66
|
+
}
|
|
9
67
|
const DEFAULT_ICONIFY_PROVIDER = "vv";
|
|
10
68
|
const INJECTION_KEY_VOLVER = Symbol.for("volver");
|
|
11
69
|
function useDefaultProps(component, defaults, name) {
|
|
@@ -135,6 +193,10 @@ const VolverPlugin = {
|
|
|
135
193
|
}
|
|
136
194
|
if (options.directives) {
|
|
137
195
|
Object.entries(options.directives).forEach(([name, directive]) => {
|
|
196
|
+
const kebabName = kebabCase(name);
|
|
197
|
+
if (kebabName.startsWith("v-")) {
|
|
198
|
+
name = kebabName.substring(2).toLocaleLowerCase();
|
|
199
|
+
}
|
|
138
200
|
app.directive(name, directive);
|
|
139
201
|
});
|
|
140
202
|
}
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@iconify/vue"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@iconify/vue","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).volver={},e.vue$1,e.vue)}(this,(function(e,t,
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("@iconify/vue"),require("vue")):"function"==typeof define&&define.amd?define(["exports","@iconify/vue","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).volver={},e.vue$1,e.vue)}(this,(function(e,t,n){"use strict";var i=Object.defineProperty,o=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const r=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),s=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),c=new RegExp("(\\d)(\\p{Ll})","gu"),l=new RegExp("(\\p{L})(\\d)","gu"),u=/[^\p{L}\d]+/giu,a="$1\0$2",d="";function f(e,t){const[n,i,o]=function(e,t){const n=(null==t?void 0:t.prefixCharacters)??d,i=(null==t?void 0:t.suffixCharacters)??d;let o=0,r=e.length;for(;o<e.length;){const t=e.charAt(o);if(!n.includes(t))break;o++}for(;r>o;){const t=r-1,n=e.charAt(t);if(!i.includes(n))break;r=t}return[e.slice(0,o),e.slice(o,r),e.slice(r)]}(e,t);return n+function(e,t){let n=e.trim();n=n.replace(r,a).replace(s,a),(null==t?void 0:t.separateNumbers)&&(n=n.replace(c,a).replace(l,a)),n=n.replace(u,"\0");let i=0,o=n.length;for(;"\0"===n.charAt(i);)i++;if(i===o)return[];for(;"\0"===n.charAt(o-1);)o--;return n.slice(i,o).split(/\0/g)}(i,t).map((f=null==t?void 0:t.locale,!1===f?e=>e.toLowerCase():e=>e.toLocaleLowerCase(f))).join((null==t?void 0:t.delimiter)??" ")+o;var f}const h=Symbol.for("volver");function p(e,t,n){const i=n||e.name;if(!i)return e;const o=null==t?void 0:t[i],r=e.props;return o&&r?{...e,name:i,props:Object.keys(r).reduce(((e,t)=>{if(!(t in o))return e[t]=r[t],e;const n=o[t];return"function"==typeof r[t]||Array.isArray(r[t])?(e[t]={type:r[t],default:n},e):(e[t]={...r[t],default:n},e)}),{})}:{...e,name:i}}class v{constructor({fetchWithCredentials:e,fetchOptions:t,iconsProvider:i,nuxt:r,iconsCollections:s,defaults:c}={}){o(this,"_fetchOptions",{}),o(this,"_iconsCollections",[]),o(this,"_iconsProvider","vv"),o(this,"_nuxt",!1),o(this,"defaults",n.ref({})),t&&(this._fetchOptions=t),e&&(this._fetchOptions={...this._fetchOptions,credentials:"include"}),i&&(this._iconsProvider=i),r&&(this._nuxt=r),s&&Array.isArray(s)&&s.forEach((e=>{this.addCollection(e,this._iconsProvider)})),c&&(this.defaults.value=c)}get nuxt(){return this._nuxt}get iconsProvider(){return this._iconsProvider}get iconsCollections(){return this._iconsCollections}addCollection(e,n=this._iconsProvider){return this._iconsCollections.push(e),t.addCollection(e,n)}addIcon(e,n){return t.addIcon(e,n)}addIconsAPIProvider(e,n){return t.addAPIProvider(e,n)}fetchIcon(e,t={cache:"force-cache"}){return new Promise(((n,i)=>{fetch(e,{...this._fetchOptions,...t}).catch((e=>i(e))).then((e=>null==e?void 0:e.text())).then((e=>n(e)))}))}}const g={install(e,t={}){const n=new v(t);e.config.globalProperties.$vv=n,t.components&&Object.entries(t.components).forEach((([n,i])=>{e.component(n,p(i,t.defaults))})),t.aliases&&Object.entries(t.aliases).forEach((([n,i])=>{e.component(n,p(i,t.defaults,n))})),t.directives&&Object.entries(t.directives).forEach((([t,n])=>{const i=function(e,t){return f(e,{delimiter:"-",...t})}(t);i.startsWith("v-")&&(t=i.substring(2).toLocaleLowerCase()),e.directive(t,n)})),e.provide(h,n)}};e.VolverPlugin=g,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
package/dist/props/index.d.ts
CHANGED
|
@@ -192,7 +192,7 @@ export declare const CountProps: {
|
|
|
192
192
|
* Show character limit
|
|
193
193
|
*/
|
|
194
194
|
count: {
|
|
195
|
-
type: (
|
|
195
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
196
196
|
default: boolean;
|
|
197
197
|
validator: (value: string) => boolean;
|
|
198
198
|
};
|
|
@@ -587,7 +587,7 @@ export declare const InputTextareaProps: {
|
|
|
587
587
|
* Show character limit
|
|
588
588
|
*/
|
|
589
589
|
count: {
|
|
590
|
-
type: (
|
|
590
|
+
type: (BooleanConstructor | StringConstructor)[];
|
|
591
591
|
default: boolean;
|
|
592
592
|
validator: (value: string) => boolean;
|
|
593
593
|
};
|
|
@@ -703,14 +703,14 @@ export declare const CheckboxRadioProps: {
|
|
|
703
703
|
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#value
|
|
704
704
|
*/
|
|
705
705
|
value: {
|
|
706
|
-
type: (
|
|
706
|
+
type: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
707
707
|
default: undefined;
|
|
708
708
|
};
|
|
709
709
|
/**
|
|
710
710
|
* Input value
|
|
711
711
|
*/
|
|
712
712
|
modelValue: {
|
|
713
|
-
type: (ObjectConstructor |
|
|
713
|
+
type: (ObjectConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
714
714
|
default: undefined;
|
|
715
715
|
};
|
|
716
716
|
/**
|
|
@@ -815,7 +815,7 @@ export declare const CheckboxRadioGroupProps: {
|
|
|
815
815
|
* Input value
|
|
816
816
|
*/
|
|
817
817
|
modelValue: {
|
|
818
|
-
type: (SymbolConstructor | ArrayConstructor |
|
|
818
|
+
type: (SymbolConstructor | ArrayConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
819
819
|
default: undefined;
|
|
820
820
|
};
|
|
821
821
|
/**
|
|
@@ -1,11 +1,64 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
const SPLIT_LOWER_UPPER_RE = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu");
|
|
2
|
+
const SPLIT_UPPER_UPPER_RE = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu");
|
|
3
|
+
const SPLIT_NUMBER_LOWER_RE = new RegExp("(\\d)(\\p{Ll})", "gu");
|
|
4
|
+
const SPLIT_LETTER_NUMBER_RE = new RegExp("(\\p{L})(\\d)", "gu");
|
|
5
|
+
const DEFAULT_STRIP_REGEXP = /[^\p{L}\d]+/giu;
|
|
6
|
+
const SPLIT_REPLACE_VALUE = "$1\0$2";
|
|
7
|
+
const DEFAULT_PREFIX_SUFFIX_CHARACTERS = "";
|
|
8
|
+
function split(value, options) {
|
|
9
|
+
let result = value.trim();
|
|
10
|
+
result = result.replace(SPLIT_LOWER_UPPER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_UPPER_UPPER_RE, SPLIT_REPLACE_VALUE);
|
|
11
|
+
if (options == null ? void 0 : options.separateNumbers) {
|
|
12
|
+
result = result.replace(SPLIT_NUMBER_LOWER_RE, SPLIT_REPLACE_VALUE).replace(SPLIT_LETTER_NUMBER_RE, SPLIT_REPLACE_VALUE);
|
|
13
|
+
}
|
|
14
|
+
result = result.replace(DEFAULT_STRIP_REGEXP, "\0");
|
|
15
|
+
let start = 0;
|
|
16
|
+
let end = result.length;
|
|
17
|
+
while (result.charAt(start) === "\0")
|
|
18
|
+
start++;
|
|
19
|
+
if (start === end)
|
|
20
|
+
return [];
|
|
21
|
+
while (result.charAt(end - 1) === "\0")
|
|
22
|
+
end--;
|
|
23
|
+
return result.slice(start, end).split(/\0/g);
|
|
24
|
+
}
|
|
25
|
+
function noCase(input, options) {
|
|
26
|
+
const [prefix, value, suffix] = splitPrefixSuffix(input, options);
|
|
27
|
+
return prefix + split(value, options).map(lowerFactory(options == null ? void 0 : options.locale)).join((options == null ? void 0 : options.delimiter) ?? " ") + suffix;
|
|
28
|
+
}
|
|
29
|
+
function kebabCase(input, options) {
|
|
30
|
+
return noCase(input, { delimiter: "-", ...options });
|
|
31
|
+
}
|
|
32
|
+
function lowerFactory(locale) {
|
|
33
|
+
return locale === false ? (input) => input.toLowerCase() : (input) => input.toLocaleLowerCase(locale);
|
|
34
|
+
}
|
|
35
|
+
function splitPrefixSuffix(input, options) {
|
|
36
|
+
const prefixCharacters = (options == null ? void 0 : options.prefixCharacters) ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
37
|
+
const suffixCharacters = (options == null ? void 0 : options.suffixCharacters) ?? DEFAULT_PREFIX_SUFFIX_CHARACTERS;
|
|
38
|
+
let prefixIndex = 0;
|
|
39
|
+
let suffixIndex = input.length;
|
|
40
|
+
while (prefixIndex < input.length) {
|
|
41
|
+
const char = input.charAt(prefixIndex);
|
|
42
|
+
if (!prefixCharacters.includes(char))
|
|
43
|
+
break;
|
|
44
|
+
prefixIndex++;
|
|
45
|
+
}
|
|
46
|
+
while (suffixIndex > prefixIndex) {
|
|
47
|
+
const index = suffixIndex - 1;
|
|
48
|
+
const char = input.charAt(index);
|
|
49
|
+
if (!suffixCharacters.includes(char))
|
|
50
|
+
break;
|
|
51
|
+
suffixIndex = index;
|
|
52
|
+
}
|
|
53
|
+
return [
|
|
54
|
+
input.slice(0, prefixIndex),
|
|
55
|
+
input.slice(prefixIndex, suffixIndex),
|
|
56
|
+
input.slice(suffixIndex)
|
|
57
|
+
];
|
|
5
58
|
}
|
|
6
59
|
const STYLE_EXCLUDE = ["vv-icon", "vv-action"];
|
|
7
60
|
const VOLVER_PREFIX = "vv";
|
|
8
|
-
const DIRECTIVES = ["v-tooltip"];
|
|
61
|
+
const DIRECTIVES = ["v-tooltip", "v-contextmenu"];
|
|
9
62
|
const getStyleNames = function(kebabName) {
|
|
10
63
|
if (STYLE_EXCLUDE.includes(kebabName)) {
|
|
11
64
|
return void 0;
|
|
@@ -113,7 +166,7 @@ function VolverResolver({
|
|
|
113
166
|
return {
|
|
114
167
|
from: "@volverjs/ui-vue/directives",
|
|
115
168
|
sideEffects: getSideEffects(kebabName, importStyle),
|
|
116
|
-
name
|
|
169
|
+
name: `v${name}`
|
|
117
170
|
};
|
|
118
171
|
}
|
|
119
172
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(o
|
|
1
|
+
!function(e,o){"object"==typeof exports&&"undefined"!=typeof module?o(exports):"function"==typeof define&&define.amd?define(["exports"],o):o((e="undefined"!=typeof globalThis?globalThis:e||self).components={})}(this,(function(e){"use strict";const o=new RegExp("([\\p{Ll}\\d])(\\p{Lu})","gu"),r=new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])","gu"),t=new RegExp("(\\d)(\\p{Ll})","gu"),n=new RegExp("(\\p{L})(\\d)","gu"),v=/[^\p{L}\d]+/giu,i="$1\0$2",c="";function u(e,u){const[s,l,p]=function(e,o){const r=(null==o?void 0:o.prefixCharacters)??c,t=(null==o?void 0:o.suffixCharacters)??c;let n=0,v=e.length;for(;n<e.length;){const o=e.charAt(n);if(!r.includes(o))break;n++}for(;v>n;){const o=v-1,r=e.charAt(o);if(!t.includes(r))break;v=o}return[e.slice(0,n),e.slice(n,v),e.slice(v)]}(e,u);return s+function(e,c){let u=e.trim();u=u.replace(o,i).replace(r,i),(null==c?void 0:c.separateNumbers)&&(u=u.replace(t,i).replace(n,i)),u=u.replace(v,"\0");let s=0,l=u.length;for(;"\0"===u.charAt(s);)s++;if(s===l)return[];for(;"\0"===u.charAt(l-1);)l--;return u.slice(s,l).split(/\0/g)}(l,u).map((d=null==u?void 0:u.locale,!1===d?e=>e.toLowerCase():e=>e.toLocaleLowerCase(d))).join((null==u?void 0:u.delimiter)??" ")+p;var d}function s(e,o){return u(e,{delimiter:"-",...o})}const l=["vv-icon","vv-action"],p=["v-tooltip","v-contextmenu"],d=function(e){if(!l.includes(e))return"vv-dropdown"===e?["vv-dropdown","vv-dropdown-option","vv-dropdown-action"]:"vv-combobox"===e?["vv-select","vv-dropdown-option","vv-dropdown-optgroup","vv-dropdown","vv-dropdown-action"]:"vv-button-group"===e?["vv-button","vv-button-group"]:"vv-accordion-group"===e?["vv-accordion","vv-accordion-group"]:"vv-checkbox-group"===e?["vv-checkbox","vv-checkbox-group"]:"vv-radio-group"===e?["vv-radio","vv-radio-group"]:"vv-alert-group"===e?["vv-alert","vv-alert-group"]:"v-tooltip"===e?["vv-tooltip"]:[e]},f=function(e,o){const r=[];if(!o)return r;const t=d(e);return t&&t.forEach((e=>{r.push(`@volverjs/style/${"scss"===o?"scss/":""}components/${e}`)})),r};e.VolverResolver=function({prefix:e="vv",importStyle:o,directives:r,ignore:t,cherryPick:n}={}){return[{type:"component",resolve:r=>{if(!e||!r.toLowerCase().startsWith(e.toLowerCase()))return;const v=s(r).replace(`${e}-`,"vv-");return t&&t.includes(v)?void 0:n?{from:`@volverjs/ui-vue/${v}`,sideEffects:f(v,o)}:{from:"@volverjs/ui-vue/components",sideEffects:f(v,o),name:r}}},{type:"directive",resolve:e=>{if(!r)return;const v=`v-${s(e)}`;return!p.includes(v)||t&&t.includes(v)?void 0:n?{from:`@volverjs/ui-vue/${v}`,sideEffects:f(v,o)}:{from:"@volverjs/ui-vue/directives",sideEffects:f(v,o),name:`v${e}`}}}]},e.getStyleNames=d,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})}));
|
|
@@ -1,124 +1,59 @@
|
|
|
1
1
|
import type { Meta, StoryObj } from '@storybook/vue3';
|
|
2
2
|
import VvAccordionGroup from '@/components/VvAccordionGroup/VvAccordionGroup.vue';
|
|
3
3
|
declare const _default: Meta<{
|
|
4
|
-
new (...args: any[]): {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
onVnodeBeforeMount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
-
[key: string]: any;
|
|
23
|
-
}>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
|
-
[key: string]: any;
|
|
25
|
-
}>) => void)[] | undefined;
|
|
26
|
-
onVnodeMounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
-
[key: string]: any;
|
|
28
|
-
}>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
-
[key: string]: any;
|
|
30
|
-
}>) => void)[] | undefined;
|
|
31
|
-
onVnodeBeforeUpdate?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
32
|
-
[key: string]: any;
|
|
33
|
-
}>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
34
|
-
[key: string]: any;
|
|
35
|
-
}>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
36
|
-
[key: string]: any;
|
|
37
|
-
}>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
|
-
[key: string]: any;
|
|
39
|
-
}>) => void)[] | undefined;
|
|
40
|
-
onVnodeUpdated?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
41
|
-
[key: string]: any;
|
|
42
|
-
}>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
-
[key: string]: any;
|
|
44
|
-
}>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
-
[key: string]: any;
|
|
46
|
-
}>, oldVNode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
-
[key: string]: any;
|
|
48
|
-
}>) => void)[] | undefined;
|
|
49
|
-
onVnodeBeforeUnmount?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
50
|
-
[key: string]: any;
|
|
51
|
-
}>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
52
|
-
[key: string]: any;
|
|
53
|
-
}>) => void)[] | undefined;
|
|
54
|
-
onVnodeUnmounted?: ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
55
|
-
[key: string]: any;
|
|
56
|
-
}>) => void) | ((vnode: globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
57
|
-
[key: string]: any;
|
|
58
|
-
}>) => void)[] | undefined;
|
|
59
|
-
readonly storeKey?: string | undefined;
|
|
4
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<globalThis.ExtractPropTypes<{
|
|
5
|
+
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
6
|
+
items: {
|
|
7
|
+
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
collapse: BooleanConstructor;
|
|
11
|
+
itemModifiers: {
|
|
12
|
+
type: globalThis.PropType<string | string[]>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
disabled: BooleanConstructor;
|
|
16
|
+
not: BooleanConstructor;
|
|
17
|
+
storeKey: StringConstructor;
|
|
18
|
+
modifiers: {
|
|
19
|
+
type: globalThis.PropType<string | string[]>;
|
|
20
|
+
default: undefined;
|
|
60
21
|
};
|
|
61
|
-
|
|
62
|
-
|
|
22
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
+
[x: string]: (...args: any[]) => void;
|
|
24
|
+
}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<globalThis.ExtractPropTypes<{
|
|
25
|
+
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
26
|
+
items: {
|
|
27
|
+
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
28
|
+
default: () => never[];
|
|
63
29
|
};
|
|
64
|
-
|
|
65
|
-
|
|
30
|
+
collapse: BooleanConstructor;
|
|
31
|
+
itemModifiers: {
|
|
32
|
+
type: globalThis.PropType<string | string[]>;
|
|
33
|
+
default: string;
|
|
66
34
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
$el: any;
|
|
74
|
-
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
75
|
-
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
76
|
-
items: {
|
|
77
|
-
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
78
|
-
default: () => never[];
|
|
79
|
-
};
|
|
80
|
-
collapse: BooleanConstructor;
|
|
81
|
-
itemModifiers: {
|
|
82
|
-
type: globalThis.PropType<string | string[]>;
|
|
83
|
-
default: string;
|
|
84
|
-
};
|
|
85
|
-
disabled: BooleanConstructor;
|
|
86
|
-
not: BooleanConstructor;
|
|
87
|
-
storeKey: StringConstructor;
|
|
88
|
-
modifiers: {
|
|
89
|
-
type: globalThis.PropType<string | string[]>;
|
|
90
|
-
default: undefined;
|
|
91
|
-
};
|
|
92
|
-
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
93
|
-
[x: string]: (...args: any[]) => void;
|
|
94
|
-
}, string, {
|
|
95
|
-
disabled: boolean;
|
|
96
|
-
modifiers: string | string[];
|
|
97
|
-
collapse: boolean;
|
|
98
|
-
not: boolean;
|
|
99
|
-
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
100
|
-
itemModifiers: string | string[];
|
|
101
|
-
}, {}, string, {}> & {
|
|
102
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
103
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
104
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
105
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
106
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
107
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
108
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
109
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
110
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
111
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
112
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
113
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
114
|
-
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
115
|
-
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
116
|
-
errorCaptured?: (((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: globalThis.ComponentPublicInstance | null, info: string) => boolean | void)[]) | undefined;
|
|
35
|
+
disabled: BooleanConstructor;
|
|
36
|
+
not: BooleanConstructor;
|
|
37
|
+
storeKey: StringConstructor;
|
|
38
|
+
modifiers: {
|
|
39
|
+
type: globalThis.PropType<string | string[]>;
|
|
40
|
+
default: undefined;
|
|
117
41
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
42
|
+
}>>, {
|
|
43
|
+
disabled: boolean;
|
|
44
|
+
modifiers: string | string[];
|
|
45
|
+
collapse: boolean;
|
|
46
|
+
not: boolean;
|
|
47
|
+
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
48
|
+
itemModifiers: string | string[];
|
|
49
|
+
}, true, {}, {}, {
|
|
50
|
+
P: {};
|
|
51
|
+
B: {};
|
|
52
|
+
D: {};
|
|
53
|
+
C: {};
|
|
54
|
+
M: {};
|
|
55
|
+
Defaults: {};
|
|
56
|
+
}, Readonly<globalThis.ExtractPropTypes<{
|
|
122
57
|
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
123
58
|
items: {
|
|
124
59
|
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
@@ -136,11 +71,18 @@ declare const _default: Meta<{
|
|
|
136
71
|
type: globalThis.PropType<string | string[]>;
|
|
137
72
|
default: undefined;
|
|
138
73
|
};
|
|
139
|
-
}
|
|
74
|
+
}>>, {}, {}, {}, {}, {
|
|
75
|
+
disabled: boolean;
|
|
76
|
+
modifiers: string | string[];
|
|
77
|
+
collapse: boolean;
|
|
78
|
+
not: boolean;
|
|
79
|
+
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
80
|
+
itemModifiers: string | string[];
|
|
81
|
+
}>;
|
|
140
82
|
__isFragment?: undefined;
|
|
141
83
|
__isTeleport?: undefined;
|
|
142
84
|
__isSuspense?: undefined;
|
|
143
|
-
} & import("vue").ComponentOptionsBase<Readonly<
|
|
85
|
+
} & import("vue").ComponentOptionsBase<Readonly<globalThis.ExtractPropTypes<{
|
|
144
86
|
modelValue: (ArrayConstructor | StringConstructor)[];
|
|
145
87
|
items: {
|
|
146
88
|
type: globalThis.PropType<import("../../components/VvAccordionGroup").VvAccordionGroupItem[]>;
|
|
@@ -168,7 +110,7 @@ declare const _default: Meta<{
|
|
|
168
110
|
items: import("../../components/VvAccordionGroup").VvAccordionGroupItem[];
|
|
169
111
|
itemModifiers: string | string[];
|
|
170
112
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
171
|
-
$slots: Partial<Record
|
|
113
|
+
$slots: Partial<Record<`header::${string}`, (_: any) => any>> & Partial<Record<`details::${string}`, (_: any) => any>> & {
|
|
172
114
|
default?(_: {}): any;
|
|
173
115
|
};
|
|
174
116
|
})>;
|