@bitrix24/b24ui-nuxt 0.2.7 → 0.2.8
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/.nuxt/b24ui/badge.ts +1 -1
- package/dist/meta.cjs +1308 -1308
- package/dist/meta.d.cts +1308 -1308
- package/dist/meta.d.mts +1308 -1308
- package/dist/meta.d.ts +1308 -1308
- package/dist/meta.mjs +1308 -1308
- package/dist/module.cjs +4 -4
- package/dist/module.json +1 -1
- package/dist/module.mjs +4 -4
- package/dist/runtime/components/Avatar.vue +1 -1
- package/dist/runtime/components/Badge.vue +7 -5
- package/dist/runtime/composables/useComponentIcons.d.ts +2 -2
- package/dist/shared/{b24ui-nuxt.BhidWnCI.mjs → b24ui-nuxt.BJy-SIWG.mjs} +1 -2
- package/dist/shared/{b24ui-nuxt.DWZW38ni.cjs → b24ui-nuxt.DBz6Z5xw.cjs} +1 -2
- package/dist/unplugin.cjs +2 -2
- package/dist/unplugin.mjs +2 -2
- package/dist/vite.cjs +1 -1
- package/dist/vite.mjs +1 -1
- package/package.json +7 -6
package/dist/module.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
const defu = require('defu');
|
|
4
4
|
const kit = require('@nuxt/kit');
|
|
5
|
-
const templates = require('./shared/b24ui-nuxt.
|
|
5
|
+
const templates = require('./shared/b24ui-nuxt.DBz6Z5xw.cjs');
|
|
6
6
|
require('node:url');
|
|
7
7
|
require('scule');
|
|
8
8
|
|
|
@@ -30,15 +30,15 @@ const module$1 = kit.defineNuxtModule({
|
|
|
30
30
|
} else {
|
|
31
31
|
nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
|
|
32
32
|
}
|
|
33
|
-
async function registerModule(name, options2) {
|
|
33
|
+
async function registerModule(name, key, options2) {
|
|
34
34
|
if (!kit.hasNuxtModule(name)) {
|
|
35
35
|
await kit.installModule(name, options2);
|
|
36
36
|
} else {
|
|
37
|
-
nuxt.options[
|
|
37
|
+
nuxt.options[key] = defu.defu(nuxt.options[key], options2);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
if (options.colorMode) {
|
|
41
|
-
await registerModule("@nuxtjs/color-mode", { classSuffix: "", disableTransition: true });
|
|
41
|
+
await registerModule("@nuxtjs/color-mode", "colorMode", { classSuffix: "", disableTransition: true });
|
|
42
42
|
}
|
|
43
43
|
kit.addPlugin({ src: resolve("./runtime/plugins/colors") });
|
|
44
44
|
kit.addPlugin({ src: resolve("./runtime/plugins/modal") });
|
package/dist/module.json
CHANGED
package/dist/module.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defu } from 'defu';
|
|
2
2
|
import { defineNuxtModule, createResolver, addVitePlugin, addPlugin, addComponentsDir, addImportsDir, hasNuxtModule, installModule } from '@nuxt/kit';
|
|
3
|
-
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.
|
|
3
|
+
import { d as defaultOptions, a as getDefaultUiConfig, b as addTemplates } from './shared/b24ui-nuxt.BJy-SIWG.mjs';
|
|
4
4
|
import 'node:url';
|
|
5
5
|
import 'scule';
|
|
6
6
|
|
|
@@ -27,15 +27,15 @@ const module = defineNuxtModule({
|
|
|
27
27
|
} else {
|
|
28
28
|
nuxt.options.postcss.plugins["@tailwindcss/postcss"] = {};
|
|
29
29
|
}
|
|
30
|
-
async function registerModule(name, options2) {
|
|
30
|
+
async function registerModule(name, key, options2) {
|
|
31
31
|
if (!hasNuxtModule(name)) {
|
|
32
32
|
await installModule(name, options2);
|
|
33
33
|
} else {
|
|
34
|
-
nuxt.options[
|
|
34
|
+
nuxt.options[key] = defu(nuxt.options[key], options2);
|
|
35
35
|
}
|
|
36
36
|
}
|
|
37
37
|
if (options.colorMode) {
|
|
38
|
-
await registerModule("@nuxtjs/color-mode", { classSuffix: "", disableTransition: true });
|
|
38
|
+
await registerModule("@nuxtjs/color-mode", "colorMode", { classSuffix: "", disableTransition: true });
|
|
39
39
|
}
|
|
40
40
|
addPlugin({ src: resolve("./runtime/plugins/colors") });
|
|
41
41
|
addPlugin({ src: resolve("./runtime/plugins/modal") });
|
|
@@ -43,7 +43,7 @@ import { useAvatarGroup } from '../composables/useAvatarGroup'
|
|
|
43
43
|
defineOptions({ inheritAttrs: false })
|
|
44
44
|
|
|
45
45
|
const props = withDefaults(defineProps<AvatarProps>(), { as: 'span' })
|
|
46
|
-
const attrs = useAttrs()
|
|
46
|
+
const attrs = useAttrs() as any
|
|
47
47
|
|
|
48
48
|
const fallbackProps = useForwardProps(reactivePick(props, 'delayMs'))
|
|
49
49
|
|
|
@@ -100,11 +100,13 @@ const b24ui = computed(() => badge({
|
|
|
100
100
|
/>
|
|
101
101
|
</slot>
|
|
102
102
|
|
|
103
|
-
<
|
|
104
|
-
<
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
103
|
+
<span :class="b24ui.label({ class: props.b24ui?.label })">
|
|
104
|
+
<slot>
|
|
105
|
+
<span v-if="label">
|
|
106
|
+
{{ label }}
|
|
107
|
+
</span>
|
|
108
|
+
</slot>
|
|
109
|
+
</span>
|
|
108
110
|
</Primitive>
|
|
109
111
|
<slot name="trailing">
|
|
110
112
|
<Cross20Icon
|
|
@@ -15,6 +15,6 @@ export interface UseComponentIconsProps {
|
|
|
15
15
|
export declare function useComponentIcons(componentProps: MaybeRefOrGetter<UseComponentIconsProps>): {
|
|
16
16
|
isLeading: import("vue").ComputedRef<any>;
|
|
17
17
|
isTrailing: import("vue").ComputedRef<boolean>;
|
|
18
|
-
leadingIconName: import("vue").ComputedRef<
|
|
19
|
-
trailingIconName: import("vue").ComputedRef<
|
|
18
|
+
leadingIconName: import("vue").ComputedRef<IconComponent | undefined>;
|
|
19
|
+
trailingIconName: import("vue").ComputedRef<IconComponent | undefined>;
|
|
20
20
|
};
|
|
@@ -341,8 +341,7 @@ const badge = {
|
|
|
341
341
|
"px-2 leading-normal rounded-md"
|
|
342
342
|
].join(" "),
|
|
343
343
|
wrapper: "inline-flex items-center",
|
|
344
|
-
label: "max-w-full whitespace-nowrap text-ellipsis",
|
|
345
|
-
// truncate ////
|
|
344
|
+
label: "max-w-full whitespace-nowrap text-ellipsis decoration-from-font",
|
|
346
345
|
leadingIcon: "shrink-0",
|
|
347
346
|
leadingAvatar: "shrink-0",
|
|
348
347
|
leadingAvatarSize: "",
|
|
@@ -343,8 +343,7 @@ const badge = {
|
|
|
343
343
|
"px-2 leading-normal rounded-md"
|
|
344
344
|
].join(" "),
|
|
345
345
|
wrapper: "inline-flex items-center",
|
|
346
|
-
label: "max-w-full whitespace-nowrap text-ellipsis",
|
|
347
|
-
// truncate ////
|
|
346
|
+
label: "max-w-full whitespace-nowrap text-ellipsis decoration-from-font",
|
|
348
347
|
leadingIcon: "shrink-0",
|
|
349
348
|
leadingAvatar: "shrink-0",
|
|
350
349
|
leadingAvatarSize: "",
|
package/dist/unplugin.cjs
CHANGED
|
@@ -5,7 +5,7 @@ const pathe = require('pathe');
|
|
|
5
5
|
const unplugin = require('unplugin');
|
|
6
6
|
const defu = require('defu');
|
|
7
7
|
const tailwind = require('@tailwindcss/vite');
|
|
8
|
-
const templates = require('./shared/b24ui-nuxt.
|
|
8
|
+
const templates = require('./shared/b24ui-nuxt.DBz6Z5xw.cjs');
|
|
9
9
|
const tinyglobby = require('tinyglobby');
|
|
10
10
|
const knitwork = require('knitwork');
|
|
11
11
|
const MagicString = require('magic-string');
|
|
@@ -189,7 +189,7 @@ function AutoImportPlugin(options, meta) {
|
|
|
189
189
|
|
|
190
190
|
const runtimeDir = pathe.normalize(node_url.fileURLToPath(new URL("./runtime", (typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('unplugin.cjs', document.baseURI).href)))));
|
|
191
191
|
const Bitrix24UIPlugin = unplugin.createUnplugin((_options = {}, meta) => {
|
|
192
|
-
const options = defu.defu(_options, {
|
|
192
|
+
const options = defu.defu(_options, { devtools: { enabled: false } }, templates.defaultOptions);
|
|
193
193
|
const appConfig = defu.defu({ b24ui: options.b24ui }, { b24ui: templates.getDefaultUiConfig() });
|
|
194
194
|
return [
|
|
195
195
|
Bitrix24EnvironmentPlugin(),
|
package/dist/unplugin.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { join, normalize } from 'pathe';
|
|
|
3
3
|
import { createUnplugin } from 'unplugin';
|
|
4
4
|
import { defu } from 'defu';
|
|
5
5
|
import tailwind from '@tailwindcss/vite';
|
|
6
|
-
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.
|
|
6
|
+
import { g as getTemplates, d as defaultOptions, a as getDefaultUiConfig } from './shared/b24ui-nuxt.BJy-SIWG.mjs';
|
|
7
7
|
import { globSync } from 'tinyglobby';
|
|
8
8
|
import { genSafeVariableName } from 'knitwork';
|
|
9
9
|
import MagicString from 'magic-string';
|
|
@@ -179,7 +179,7 @@ function AutoImportPlugin(options, meta) {
|
|
|
179
179
|
|
|
180
180
|
const runtimeDir = normalize(fileURLToPath(new URL("./runtime", import.meta.url)));
|
|
181
181
|
const Bitrix24UIPlugin = createUnplugin((_options = {}, meta) => {
|
|
182
|
-
const options = defu(_options, {
|
|
182
|
+
const options = defu(_options, { devtools: { enabled: false } }, defaultOptions);
|
|
183
183
|
const appConfig = defu({ b24ui: options.b24ui }, { b24ui: getDefaultUiConfig() });
|
|
184
184
|
return [
|
|
185
185
|
Bitrix24EnvironmentPlugin(),
|
package/dist/vite.cjs
CHANGED
package/dist/vite.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bitrix24/b24ui-nuxt",
|
|
3
3
|
"description": "Bitrix24 UI-Kit for developing web applications REST API for NUXT & VUE",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.8",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
7
7
|
"url": "git+https://github.com/bitrix24/b24ui.git"
|
|
@@ -75,8 +75,8 @@
|
|
|
75
75
|
"@tailwindcss/vite": "^4.0.6",
|
|
76
76
|
"@tanstack/vue-table": "^8.21.2",
|
|
77
77
|
"@unhead/vue": "^1.11.19",
|
|
78
|
-
"@vueuse/core": "^12.
|
|
79
|
-
"@vueuse/integrations": "^12.
|
|
78
|
+
"@vueuse/core": "^12.7.0",
|
|
79
|
+
"@vueuse/integrations": "^12.7.0",
|
|
80
80
|
"colortranslator": "^4.1.0",
|
|
81
81
|
"consola": "^3.4.0",
|
|
82
82
|
"defu": "^6.1.4",
|
|
@@ -99,8 +99,8 @@
|
|
|
99
99
|
"tailwindcss": "^4.0.6",
|
|
100
100
|
"tinyglobby": "^0.2.10",
|
|
101
101
|
"unplugin": "^2.2.0",
|
|
102
|
-
"unplugin-auto-import": "^19.
|
|
103
|
-
"unplugin-vue-components": "^28.
|
|
102
|
+
"unplugin-auto-import": "^19.1.0",
|
|
103
|
+
"unplugin-vue-components": "^28.1.0",
|
|
104
104
|
"vaul-vue": "^0.2.1"
|
|
105
105
|
},
|
|
106
106
|
"devDependencies": {
|
|
@@ -132,11 +132,12 @@
|
|
|
132
132
|
"@bitrix24/b24ui-nuxt": "workspace:*",
|
|
133
133
|
"chokidar": "3.6.0",
|
|
134
134
|
"debug": "4.3.7",
|
|
135
|
-
"rollup": "
|
|
135
|
+
"rollup": "4.32.1",
|
|
136
136
|
"typescript": "5.6.3",
|
|
137
137
|
"unimport": "3.14.5",
|
|
138
138
|
"unplugin": "^2.2.0",
|
|
139
139
|
"vite": "^6.0.11",
|
|
140
|
+
"vue": "3.5.13",
|
|
140
141
|
"vue-tsc": "2.2.0"
|
|
141
142
|
},
|
|
142
143
|
"keywords": [
|