@v1nt1248/3nclient-lib 0.1.11 → 0.1.12
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/README.md +11 -12
- package/dist/demo/constants.d.ts +1 -0
- package/dist/plugins/index.d.ts +1 -2
- package/dist/style.css +1 -1
- package/dist/ui3n-components.js +106 -104
- package/dist/ui3n-plugins.d.ts +1 -2
- package/dist/ui3n-plugins.js +3616 -3855
- package/package.json +2 -1
- package/src/components/ui3n-icon/ui3n-icon.vue +9 -6
- package/src/components/ui3n-input/ui3n-input.vue +1 -1
- package/src/components/ui3n-notification/ui3n-notification.vue +4 -4
- package/src/components/ui3n-table/ui3n-table-sort-icon.vue +2 -2
- package/dist/plugins/icons/icons.d.ts +0 -2
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@v1nt1248/3nclient-lib",
|
|
3
3
|
"license": "AGPL-3.0-or-later",
|
|
4
4
|
"author": "v1nt1248",
|
|
5
|
-
"version": "0.1.
|
|
5
|
+
"version": "0.1.12",
|
|
6
6
|
"description": "Library for 3NWeb clients",
|
|
7
7
|
"type": "module",
|
|
8
8
|
"files": [
|
|
@@ -37,6 +37,7 @@
|
|
|
37
37
|
"build:plugins": "LIB_NAME=plugins vite build",
|
|
38
38
|
"build:utils": "LIB_NAME=utils vite build",
|
|
39
39
|
"build": "pnpm run clean:dist && pnpm run build:components && pnpm run build:plugins && pnpm run build:utils && pnpm run copy:css",
|
|
40
|
+
"pack": "pnpm run build && npm pack && cp *.tgz ./dist && rm *.tgz",
|
|
40
41
|
"preview": "vite preview",
|
|
41
42
|
"stylelint": "stylelint --config .stylelint.config.cjs 'src/**/*.{vue,scss}'",
|
|
42
43
|
"stylelint:fix": "stylelint --config .stylelint.config.cjs --fix 'src/**/*.{vue,scss}'",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script lang="ts" setup>
|
|
2
|
-
|
|
2
|
+
import { computed } from 'vue';
|
|
3
3
|
import { Icon } from '@iconify/vue';
|
|
4
4
|
import type { Ui3nIconEmits, Ui3nIconProps } from './types';
|
|
5
5
|
|
|
@@ -15,20 +15,23 @@ const props = withDefaults(
|
|
|
15
15
|
);
|
|
16
16
|
const emits = defineEmits<Ui3nIconEmits>();
|
|
17
17
|
|
|
18
|
-
const
|
|
18
|
+
const iconName = computed(() => `ic:${props.icon}`);
|
|
19
|
+
|
|
20
|
+
function onLoad(value: unknown) {
|
|
19
21
|
if (props.onLoad) {
|
|
20
22
|
props.onLoad(value);
|
|
21
23
|
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function onClick(ev: Event) {
|
|
24
27
|
emits('click', ev);
|
|
25
|
-
}
|
|
28
|
+
}
|
|
26
29
|
</script>
|
|
27
30
|
|
|
28
31
|
<template>
|
|
29
32
|
<icon
|
|
30
33
|
:class="$style.icon"
|
|
31
|
-
:icon="
|
|
34
|
+
:icon="iconName"
|
|
32
35
|
:title="title"
|
|
33
36
|
:inline="inline"
|
|
34
37
|
:width="width"
|
|
@@ -149,7 +149,7 @@ const validate = (text: string) => {
|
|
|
149
149
|
|
|
150
150
|
<ui3n-icon
|
|
151
151
|
v-if="displayStateMode === 'success' && displayStateWithIcon && !isFocused"
|
|
152
|
-
icon="check-circle-outline"
|
|
152
|
+
icon="sharp-check-circle-outline"
|
|
153
153
|
:width="16"
|
|
154
154
|
:height="16"
|
|
155
155
|
color="var(--success-content-default)"
|
|
@@ -19,25 +19,25 @@ const props = withDefaults(
|
|
|
19
19
|
const stylesByTypes = {
|
|
20
20
|
success: {
|
|
21
21
|
color: 'var(--success-content-default)',
|
|
22
|
-
icon: 'warning',
|
|
22
|
+
icon: 'round-warning',
|
|
23
23
|
iconColor: 'var(--success-fill-default)',
|
|
24
24
|
iconRotate: 0,
|
|
25
25
|
},
|
|
26
26
|
warning: {
|
|
27
27
|
color: 'var(--warning-content-default)',
|
|
28
|
-
icon: 'warning',
|
|
28
|
+
icon: 'round-warning',
|
|
29
29
|
iconColor: 'var(--warning-fill-default)',
|
|
30
30
|
iconRotate: 0,
|
|
31
31
|
},
|
|
32
32
|
info: {
|
|
33
33
|
color: 'var(--info-content-default)',
|
|
34
|
-
icon: 'info',
|
|
34
|
+
icon: 'round-info',
|
|
35
35
|
iconColor: 'var(--info-fill-default)',
|
|
36
36
|
iconRotate: 90,
|
|
37
37
|
},
|
|
38
38
|
error: {
|
|
39
39
|
color: 'var(--error-content-default)',
|
|
40
|
-
icon: 'info',
|
|
40
|
+
icon: 'round-info',
|
|
41
41
|
iconColor: 'var(--error-fill-default)',
|
|
42
42
|
iconRotate: 90,
|
|
43
43
|
},
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
<template>
|
|
13
13
|
<transition mode="out-in" name="fade">
|
|
14
14
|
<ui3n-icon
|
|
15
|
-
:key="value === 'asc' ? 'arrow-downward' : 'arrow-upward'"
|
|
16
|
-
:icon="value === 'asc' ? 'arrow-downward' : 'arrow-upward'"
|
|
15
|
+
:key="value === 'asc' ? 'baseline-arrow-downward' : 'baseline-arrow-upward'"
|
|
16
|
+
:icon="value === 'asc' ? 'baseline-arrow-downward' : 'baseline-arrow-upward'"
|
|
17
17
|
:width="iconSize"
|
|
18
18
|
:height="iconSize"
|
|
19
19
|
:color="iconColor"
|