vueless 0.0.79 → 0.0.81
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/composable.ui/index.js +1 -45
- package/package.json +1 -1
- package/service.helper/index.js +44 -0
- package/service.ui/index.js +3 -1
- package/ui.button-link/configs/default.config.js +3 -0
- package/ui.button-link/index.vue +43 -13
- package/ui.form-input-file/index.vue +2 -4
- package/ui.form-input-search/index.vue +2 -3
- package/ui.image-icon/configs/default.config.js +3 -5
- package/ui.image-icon/index.vue +6 -4
- package/ui.text-alert/index.vue +2 -3
- package/ui.text-block/index.vue +1 -5
- package/web-types.json +30 -3
- package/assets/icons/add.svg +0 -1
- package/assets/icons/apps.svg +0 -1
- package/assets/icons/arrow_back.svg +0 -1
- package/assets/icons/check.svg +0 -1
- package/assets/icons/check_circle.svg +0 -1
- package/assets/icons/close.svg +0 -1
- package/assets/icons/close_small.svg +0 -1
- package/assets/icons/delete.svg +0 -1
- package/assets/icons/description.svg +0 -1
- package/assets/icons/drag_indicator.svg +0 -1
- package/assets/icons/edit_note.svg +0 -1
- package/assets/icons/emoji_food_beverage.svg +0 -1
- package/assets/icons/error.svg +0 -1
- package/assets/icons/expand_more.svg +0 -1
- package/assets/icons/keyboard_arrow_down.svg +0 -1
- package/assets/icons/keyboard_arrow_left.svg +0 -1
- package/assets/icons/keyboard_arrow_right.svg +0 -1
- package/assets/icons/remove.svg +0 -1
- package/assets/icons/search.svg +0 -1
- package/assets/icons/star-fill.svg +0 -1
- package/assets/icons/star.svg +0 -1
- package/assets/icons/upload_file.svg +0 -1
- package/assets/icons/visibility-fill.svg +0 -1
- package/assets/icons/visibility_off-fill.svg +0 -1
- package/assets/icons/warning.svg +0 -1
package/composable.ui/index.js
CHANGED
|
@@ -9,6 +9,7 @@ import {
|
|
|
9
9
|
Fragment,
|
|
10
10
|
} from "vue";
|
|
11
11
|
import { cx, globalComponentConfig, strategy } from "../service.ui";
|
|
12
|
+
import { cloneDeep } from "../service.helper";
|
|
12
13
|
|
|
13
14
|
const strategyType = {
|
|
14
15
|
merge: "merge",
|
|
@@ -345,51 +346,6 @@ function hasSlotContent(slot, props = {}) {
|
|
|
345
346
|
return !isVNodeEmpty(slot?.(props));
|
|
346
347
|
}
|
|
347
348
|
|
|
348
|
-
/**
|
|
349
|
-
Deeply clone given object (same as lodash.cloneDeep).
|
|
350
|
-
@param {Object} entity
|
|
351
|
-
@param cache
|
|
352
|
-
|
|
353
|
-
@returns {Object}
|
|
354
|
-
*/
|
|
355
|
-
function cloneDeep(entity, cache = new WeakMap()) {
|
|
356
|
-
const referenceTypes = ["Array", "Object", "Map", "Set", "Date"];
|
|
357
|
-
const entityType = Object.prototype.toString.call(entity);
|
|
358
|
-
|
|
359
|
-
if (
|
|
360
|
-
!new RegExp(referenceTypes.join("|")).test(entityType) ||
|
|
361
|
-
entity instanceof WeakMap ||
|
|
362
|
-
entity instanceof WeakSet
|
|
363
|
-
) {
|
|
364
|
-
return entity;
|
|
365
|
-
}
|
|
366
|
-
|
|
367
|
-
if (cache.has(entity)) {
|
|
368
|
-
return cache.get(entity);
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
const c = new entity.constructor();
|
|
372
|
-
|
|
373
|
-
if (entity instanceof Map) {
|
|
374
|
-
entity.forEach((value, key) => c.set(cloneDeep(key), cloneDeep(value)));
|
|
375
|
-
}
|
|
376
|
-
|
|
377
|
-
if (entity instanceof Set) {
|
|
378
|
-
entity.forEach((value) => c.add(cloneDeep(value)));
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
if (entity instanceof Date) {
|
|
382
|
-
return new Date(entity);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
cache.set(entity, c);
|
|
386
|
-
|
|
387
|
-
return Object.assign(
|
|
388
|
-
c,
|
|
389
|
-
...Object.keys(entity).map((prop) => ({ [prop]: cloneDeep(entity[prop], cache) })),
|
|
390
|
-
);
|
|
391
|
-
}
|
|
392
|
-
|
|
393
349
|
function setColor(classes, color) {
|
|
394
350
|
return classes?.replaceAll("{color}", color);
|
|
395
351
|
}
|
package/package.json
CHANGED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
Deeply clone given object (same as lodash.cloneDeep).
|
|
3
|
+
@param {Object} entity
|
|
4
|
+
@param cache
|
|
5
|
+
|
|
6
|
+
@returns {Object}
|
|
7
|
+
*/
|
|
8
|
+
export function cloneDeep(entity, cache = new WeakMap()) {
|
|
9
|
+
const referenceTypes = ["Array", "Object", "Map", "Set", "Date"];
|
|
10
|
+
const entityType = Object.prototype.toString.call(entity);
|
|
11
|
+
|
|
12
|
+
if (
|
|
13
|
+
!new RegExp(referenceTypes.join("|")).test(entityType) ||
|
|
14
|
+
entity instanceof WeakMap ||
|
|
15
|
+
entity instanceof WeakSet
|
|
16
|
+
) {
|
|
17
|
+
return entity;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
if (cache.has(entity)) {
|
|
21
|
+
return cache.get(entity);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const c = new entity.constructor();
|
|
25
|
+
|
|
26
|
+
if (entity instanceof Map) {
|
|
27
|
+
entity.forEach((value, key) => c.set(cloneDeep(key), cloneDeep(value)));
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (entity instanceof Set) {
|
|
31
|
+
entity.forEach((value) => c.add(cloneDeep(value)));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
if (entity instanceof Date) {
|
|
35
|
+
return new Date(entity);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
cache.set(entity, c);
|
|
39
|
+
|
|
40
|
+
return Object.assign(
|
|
41
|
+
c,
|
|
42
|
+
...Object.keys(entity).map((prop) => ({ [prop]: cloneDeep(entity[prop], cache) })),
|
|
43
|
+
);
|
|
44
|
+
}
|
package/service.ui/index.js
CHANGED
|
@@ -2,6 +2,8 @@ import { merge } from "lodash-es";
|
|
|
2
2
|
import { defineConfig } from "cva";
|
|
3
3
|
import { twMerge } from "tailwind-merge";
|
|
4
4
|
import colors from "tailwindcss/colors";
|
|
5
|
+
|
|
6
|
+
import { cloneDeep } from "../service.helper";
|
|
5
7
|
import { BRAND_COLORS, GRAY_COLORS, GRAYSCALE_COLOR, BRAND_COLOR } from "../preset.tailwind";
|
|
6
8
|
import vuelessConfig from "../../../vueless.config.js";
|
|
7
9
|
|
|
@@ -167,7 +169,7 @@ export default class UIServiceDefault {
|
|
|
167
169
|
*/
|
|
168
170
|
static get(defaultConfig, name) {
|
|
169
171
|
const defaultVariants = merge(
|
|
170
|
-
defaultConfig.defaultVariants,
|
|
172
|
+
cloneDeep(defaultConfig.defaultVariants),
|
|
171
173
|
globalComponentConfig[name]?.defaultVariants,
|
|
172
174
|
);
|
|
173
175
|
|
|
@@ -65,6 +65,7 @@ export default /*tw*/ {
|
|
|
65
65
|
color: "brand",
|
|
66
66
|
type: "link",
|
|
67
67
|
size: "md",
|
|
68
|
+
ariaCurrentValue: "page",
|
|
68
69
|
activeClass: "",
|
|
69
70
|
exactActiveClass: "",
|
|
70
71
|
wrapperActiveClass: "",
|
|
@@ -75,6 +76,8 @@ export default /*tw*/ {
|
|
|
75
76
|
dashed: false,
|
|
76
77
|
disabled: false,
|
|
77
78
|
targetBlank: false,
|
|
79
|
+
custom: false,
|
|
80
|
+
replace: false,
|
|
78
81
|
},
|
|
79
82
|
safelist: (colors) => [
|
|
80
83
|
{ pattern: `decoration-(${colors})-500` },
|
package/ui.button-link/index.vue
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-bind="wrapperAttrs" ref="wrapperRef" tabindex="-1">
|
|
3
|
-
<div v-if="hasSlotContent(slots['left'])" v-bind="leftSlotAttrs">
|
|
3
|
+
<div v-if="hasSlotContent($slots['left'])" v-bind="leftSlotAttrs">
|
|
4
4
|
<!-- @slot Use it to add something before text. -->
|
|
5
5
|
<slot name="left" />
|
|
6
6
|
</div>
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
>
|
|
20
20
|
<!-- @slot Use it replace the text. -->
|
|
21
21
|
<slot>
|
|
22
|
-
<span v-if="!hasSlotContent(slots['default'])" v-bind="textAttrs" v-text="label" />
|
|
22
|
+
<span v-if="!hasSlotContent($slots['default'])" v-bind="textAttrs" v-text="label" />
|
|
23
23
|
</slot>
|
|
24
24
|
</router-link>
|
|
25
25
|
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
>
|
|
38
38
|
<!-- @slot Use it replace the text. -->
|
|
39
39
|
<slot>
|
|
40
|
-
<span v-if="!hasSlotContent(slots['default'])" v-bind="textAttrs" v-text="label" />
|
|
40
|
+
<span v-if="!hasSlotContent($slots['default'])" v-bind="textAttrs" v-text="label" />
|
|
41
41
|
</slot>
|
|
42
42
|
</a>
|
|
43
43
|
|
|
44
|
-
<div v-if="hasSlotContent(slots['right'])" v-bind="rightSlotAttrs">
|
|
44
|
+
<div v-if="hasSlotContent($slots['right'])" v-bind="rightSlotAttrs">
|
|
45
45
|
<!-- @slot Use it to add something after text. -->
|
|
46
46
|
<slot name="right" />
|
|
47
47
|
</div>
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
</template>
|
|
50
50
|
|
|
51
51
|
<script setup>
|
|
52
|
-
import { computed,
|
|
52
|
+
import { computed, ref } from "vue";
|
|
53
53
|
import { RouterLink, useLink } from "vue-router";
|
|
54
54
|
import UIService from "../service.ui";
|
|
55
55
|
|
|
@@ -122,6 +122,30 @@ const props = defineProps({
|
|
|
122
122
|
default: UIService.get(defaultConfig, ULink).default.targetBlank,
|
|
123
123
|
},
|
|
124
124
|
|
|
125
|
+
/**
|
|
126
|
+
* Pass value to the attribute aria-current when the link is exact active.
|
|
127
|
+
*/
|
|
128
|
+
ariaCurrentValue: {
|
|
129
|
+
type: String,
|
|
130
|
+
default: UIService.get(defaultConfig, ULink).default.ariaCurrentValue,
|
|
131
|
+
},
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Whether RouterLink should not wrap its content in an a tag.
|
|
135
|
+
*/
|
|
136
|
+
custom: {
|
|
137
|
+
type: Boolean,
|
|
138
|
+
default: UIService.get(defaultConfig, ULink).default.custom,
|
|
139
|
+
},
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* Whether RouterLink should not wrap its content in an a tag.
|
|
143
|
+
*/
|
|
144
|
+
replace: {
|
|
145
|
+
type: Boolean,
|
|
146
|
+
default: UIService.get(defaultConfig, ULink).default.replace,
|
|
147
|
+
},
|
|
148
|
+
|
|
125
149
|
/**
|
|
126
150
|
* Apply classes to the link when its route is active or when it matches any parent route.
|
|
127
151
|
*/
|
|
@@ -211,8 +235,20 @@ const props = defineProps({
|
|
|
211
235
|
},
|
|
212
236
|
});
|
|
213
237
|
|
|
214
|
-
const
|
|
215
|
-
|
|
238
|
+
const isPresentRoute = computed(() => {
|
|
239
|
+
for (let key in props.route) return true;
|
|
240
|
+
|
|
241
|
+
return false;
|
|
242
|
+
});
|
|
243
|
+
|
|
244
|
+
const { route, isActive, isExactActive } = useLink({
|
|
245
|
+
activeClass: props.activeClass,
|
|
246
|
+
ariaCurrentValue: props.ariaCurrentValue,
|
|
247
|
+
exactActiveClass: props.exactActiveClass,
|
|
248
|
+
custom: props.custom,
|
|
249
|
+
replace: props.replace,
|
|
250
|
+
to: isPresentRoute.value ? props.route : "/",
|
|
251
|
+
});
|
|
216
252
|
|
|
217
253
|
const wrapperRef = ref(null);
|
|
218
254
|
|
|
@@ -235,12 +271,6 @@ const href = computed(() => {
|
|
|
235
271
|
return `${types[props.type]}${props.url}`;
|
|
236
272
|
});
|
|
237
273
|
|
|
238
|
-
const isPresentRoute = computed(() => {
|
|
239
|
-
for (let key in props.route) return true;
|
|
240
|
-
|
|
241
|
-
return false;
|
|
242
|
-
});
|
|
243
|
-
|
|
244
274
|
function onClick(event) {
|
|
245
275
|
!props.url || props.disabled ? emit("click", event) : window.open(href.value, props.targetValue);
|
|
246
276
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-bind="wrapperAttrs">
|
|
3
|
-
<div v-if="!hasSlotContent(slots['default'])">
|
|
3
|
+
<div v-if="!hasSlotContent($slots['default'])">
|
|
4
4
|
<ULabel
|
|
5
5
|
:label="props.label"
|
|
6
6
|
:description="props.description"
|
|
@@ -65,7 +65,7 @@ import Uppy from "@uppy/core";
|
|
|
65
65
|
import DragDrop from "@uppy/vue/src/drag-drop";
|
|
66
66
|
import { merge } from "lodash-es";
|
|
67
67
|
|
|
68
|
-
import { computed, onBeforeUnmount, onMounted, ref,
|
|
68
|
+
import { computed, onBeforeUnmount, onMounted, ref, watch } from "vue";
|
|
69
69
|
|
|
70
70
|
import UIcon from "../ui.image-icon";
|
|
71
71
|
import ULabel from "../ui.form-label";
|
|
@@ -191,8 +191,6 @@ const props = defineProps({
|
|
|
191
191
|
},
|
|
192
192
|
});
|
|
193
193
|
|
|
194
|
-
const slots = useSlots();
|
|
195
|
-
|
|
196
194
|
const emit = defineEmits(["changeFiles", "deleteFile"]);
|
|
197
195
|
|
|
198
196
|
const { tm } = useLocale();
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<slot name="right" />
|
|
27
27
|
|
|
28
28
|
<UButton
|
|
29
|
-
v-if="searchButton && !hasSlotContent(slots['right'])"
|
|
29
|
+
v-if="searchButton && !hasSlotContent($slots['right'])"
|
|
30
30
|
:label="text"
|
|
31
31
|
v-bind="buttonAttrs"
|
|
32
32
|
:data-cy="`${dataCy}-right`"
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
</template>
|
|
63
63
|
|
|
64
64
|
<script setup>
|
|
65
|
-
import { computed
|
|
65
|
+
import { computed } from "vue";
|
|
66
66
|
|
|
67
67
|
import UIcon from "../ui.image-icon";
|
|
68
68
|
import UInput from "../ui.form-input";
|
|
@@ -184,7 +184,6 @@ const props = defineProps({
|
|
|
184
184
|
},
|
|
185
185
|
});
|
|
186
186
|
|
|
187
|
-
const slots = useSlots();
|
|
188
187
|
const emit = defineEmits(["update:modelValue", "clear", "search"]);
|
|
189
188
|
|
|
190
189
|
const { config, inputAttrs, searchIconAttrs, closeIconAttrs, buttonAttrs, hasSlotContent } =
|
|
@@ -71,15 +71,13 @@ export default /*tw*/ {
|
|
|
71
71
|
},
|
|
72
72
|
defaultVariants: {
|
|
73
73
|
name: "",
|
|
74
|
-
library: "@material-symbols",
|
|
75
|
-
weight: 500,
|
|
74
|
+
library: "@material-symbols/svg-500",
|
|
76
75
|
style: "outlined",
|
|
77
|
-
|
|
78
|
-
fill: false,
|
|
76
|
+
color: "grayscale",
|
|
79
77
|
size: "md",
|
|
80
|
-
color: "black",
|
|
81
78
|
variant: "default",
|
|
82
79
|
interactive: false,
|
|
80
|
+
fill: false,
|
|
83
81
|
},
|
|
84
82
|
safelist: (colors) => [
|
|
85
83
|
{ pattern: `text-(${colors})-400` },
|
package/ui.image-icon/index.vue
CHANGED
|
@@ -158,8 +158,10 @@ const generatedIcons = computed(() => {
|
|
|
158
158
|
const dynamicComponent = computed(() => {
|
|
159
159
|
const FILL_SUFFIX = "-fill";
|
|
160
160
|
|
|
161
|
-
const
|
|
162
|
-
const
|
|
161
|
+
const defaultLibrary = defaultConfig.defaultVariants.library;
|
|
162
|
+
const userLibrary = defaultConfig.defaultVariants.library;
|
|
163
|
+
|
|
164
|
+
const library = props.internal && defaultLibrary === userLibrary ? "vueless" : userLibrary;
|
|
163
165
|
const style = config.value.defaultVariants.style;
|
|
164
166
|
const isFill = props.name.endsWith(FILL_SUFFIX);
|
|
165
167
|
const name = props.name;
|
|
@@ -191,8 +193,8 @@ const dynamicComponent = computed(() => {
|
|
|
191
193
|
},
|
|
192
194
|
"@material-symbols": async () => {
|
|
193
195
|
return import.meta.env.PROD
|
|
194
|
-
? await getIcon([library,
|
|
195
|
-
: import(/* @vite-ignore */ `/node_modules/${library}
|
|
196
|
+
? await getIcon([library, style, name])
|
|
197
|
+
: import(/* @vite-ignore */ `/node_modules/${library}/${style}/${name}.svg?component`);
|
|
196
198
|
},
|
|
197
199
|
"bootstrap-icons": async () => {
|
|
198
200
|
return import.meta.env.PROD
|
package/ui.text-alert/index.vue
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<!-- @slot Use it to add something inside. -->
|
|
5
5
|
<slot />
|
|
6
6
|
|
|
7
|
-
<div v-if="!hasSlotContent(slots['default'])" v-html="html" />
|
|
7
|
+
<div v-if="!hasSlotContent($slots['default'])" v-html="html" />
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
10
|
<UButton size="sm" variant="thirdary" :color="color" square v-bind="buttonAttrs">
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</template>
|
|
24
24
|
|
|
25
25
|
<script setup>
|
|
26
|
-
import { onMounted, ref
|
|
26
|
+
import { onMounted, ref } from "vue";
|
|
27
27
|
|
|
28
28
|
import UIcon from "../ui.image-icon";
|
|
29
29
|
import UButton from "../ui.button";
|
|
@@ -103,7 +103,6 @@ const props = defineProps({
|
|
|
103
103
|
},
|
|
104
104
|
});
|
|
105
105
|
|
|
106
|
-
const slots = useSlots();
|
|
107
106
|
const emit = defineEmits(["hidden"]);
|
|
108
107
|
|
|
109
108
|
const isShownAlert = ref(true);
|
package/ui.text-block/index.vue
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div v-bind="wrapperAttrs" :data-cy="dataCy">
|
|
3
3
|
<!-- @slot Use it to add something. -->
|
|
4
|
-
<div v-if="!hasSlotContent(slots['default'])" v-html="html" />
|
|
4
|
+
<div v-if="!hasSlotContent($slots['default'])" v-html="html" />
|
|
5
5
|
<slot />
|
|
6
6
|
</div>
|
|
7
7
|
</template>
|
|
8
8
|
|
|
9
9
|
<script setup>
|
|
10
|
-
import { useSlots } from "vue";
|
|
11
|
-
|
|
12
10
|
import UIService from "../service.ui";
|
|
13
11
|
|
|
14
12
|
import { UText } from "./constatns";
|
|
@@ -70,7 +68,5 @@ const props = defineProps({
|
|
|
70
68
|
},
|
|
71
69
|
});
|
|
72
70
|
|
|
73
|
-
const slots = useSlots();
|
|
74
|
-
|
|
75
71
|
const { wrapperAttrs, hasSlotContent } = useAttrs(props);
|
|
76
72
|
</script>
|
package/web-types.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"framework": "vue",
|
|
3
3
|
"name": "vueless",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.81",
|
|
5
5
|
"contributions": {
|
|
6
6
|
"html": {
|
|
7
7
|
"description-markup": "markdown",
|
|
@@ -3120,7 +3120,7 @@
|
|
|
3120
3120
|
"kind": "expression",
|
|
3121
3121
|
"type": "'brand' | 'grayscale' | 'gray' | 'red' | 'orange' | 'amber' | 'yellow' | 'lime' | 'green' | 'emerald' | 'teal' | 'cyan' | 'sky' | 'blue' | 'indigo' | 'violet' | 'purple' | 'fuchsia' | 'pink' | 'rose' | 'white'"
|
|
3122
3122
|
},
|
|
3123
|
-
"default": "
|
|
3123
|
+
"default": "grayscale"
|
|
3124
3124
|
},
|
|
3125
3125
|
{
|
|
3126
3126
|
"name": "size",
|
|
@@ -3138,7 +3138,7 @@
|
|
|
3138
3138
|
"kind": "expression",
|
|
3139
3139
|
"type": "boolean"
|
|
3140
3140
|
},
|
|
3141
|
-
"default": "
|
|
3141
|
+
"default": "UIService.get(defaultConfig, UIcon).default.pill"
|
|
3142
3142
|
},
|
|
3143
3143
|
{
|
|
3144
3144
|
"name": "variant",
|
|
@@ -4302,6 +4302,33 @@
|
|
|
4302
4302
|
},
|
|
4303
4303
|
"default": "false"
|
|
4304
4304
|
},
|
|
4305
|
+
{
|
|
4306
|
+
"name": "ariaCurrentValue",
|
|
4307
|
+
"description": "Pass value to the attribute aria-current when the link is exact active.",
|
|
4308
|
+
"value": {
|
|
4309
|
+
"kind": "expression",
|
|
4310
|
+
"type": "string"
|
|
4311
|
+
},
|
|
4312
|
+
"default": "page"
|
|
4313
|
+
},
|
|
4314
|
+
{
|
|
4315
|
+
"name": "custom",
|
|
4316
|
+
"description": "Whether RouterLink should not wrap its content in an a tag.",
|
|
4317
|
+
"value": {
|
|
4318
|
+
"kind": "expression",
|
|
4319
|
+
"type": "boolean"
|
|
4320
|
+
},
|
|
4321
|
+
"default": "false"
|
|
4322
|
+
},
|
|
4323
|
+
{
|
|
4324
|
+
"name": "replace",
|
|
4325
|
+
"description": "Whether RouterLink should not wrap its content in an a tag.",
|
|
4326
|
+
"value": {
|
|
4327
|
+
"kind": "expression",
|
|
4328
|
+
"type": "boolean"
|
|
4329
|
+
},
|
|
4330
|
+
"default": "false"
|
|
4331
|
+
},
|
|
4305
4332
|
{
|
|
4306
4333
|
"name": "activeClass",
|
|
4307
4334
|
"description": "Apply classes to the link when its route is active or when it matches any parent route.",
|
package/assets/icons/add.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M445.93-445.93H194.02v-68.14h251.91v-252.15h68.14v252.15h252.15v68.14H514.07v251.91h-68.14v-251.91Z"/></svg>
|
package/assets/icons/apps.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M223.29-154.5q-29.12 0-48.95-19.84-19.84-19.83-19.84-48.95 0-29.12 19.84-48.91 19.83-19.8 48.95-19.8 29.12 0 48.91 19.8 19.8 19.79 19.8 48.91 0 29.12-19.8 48.95-19.79 19.84-48.91 19.84Zm256.8 0q-29.05 0-48.88-19.84-19.84-19.83-19.84-48.95 0-29.12 19.75-48.91 19.74-19.8 48.79-19.8t48.88 19.8q19.84 19.79 19.84 48.91 0 29.12-19.75 48.95-19.74 19.84-48.79 19.84Zm256.62 0q-29.12 0-48.91-19.84-19.8-19.83-19.8-48.95 0-29.12 19.8-48.91 19.79-19.8 48.91-19.8 29.12 0 48.95 19.8 19.84 19.79 19.84 48.91 0 29.12-19.84 48.95-19.83 19.84-48.95 19.84ZM223.29-411.37q-29.12 0-48.95-19.75-19.84-19.74-19.84-48.79t19.84-48.88q19.83-19.84 48.95-19.84 29.12 0 48.91 19.75 19.8 19.74 19.8 48.79t-19.8 48.88q-19.79 19.84-48.91 19.84Zm256.8 0q-29.05 0-48.88-19.75-19.84-19.74-19.84-48.79t19.75-48.88q19.74-19.84 48.79-19.84t48.88 19.75q19.84 19.74 19.84 48.79t-19.75 48.88q-19.74 19.84-48.79 19.84Zm256.62 0q-29.12 0-48.91-19.75-19.8-19.74-19.8-48.79t19.8-48.88q19.79-19.84 48.91-19.84 29.12 0 48.95 19.75 19.84 19.74 19.84 48.79t-19.84 48.88q-19.83 19.84-48.95 19.84ZM223.29-668q-29.12 0-48.95-19.8-19.84-19.79-19.84-48.91 0-29.12 19.84-48.95 19.83-19.84 48.95-19.84 29.12 0 48.91 19.84 19.8 19.83 19.8 48.95 0 29.12-19.8 48.91-19.79 19.8-48.91 19.8Zm256.8 0q-29.05 0-48.88-19.8-19.84-19.79-19.84-48.91 0-29.12 19.75-48.95 19.74-19.84 48.79-19.84t48.88 19.84q19.84 19.83 19.84 48.95 0 29.12-19.75 48.91-19.74 19.8-48.79 19.8Zm256.62 0q-29.12 0-48.91-19.8-19.8-19.79-19.8-48.91 0-29.12 19.8-48.95 19.79-19.84 48.91-19.84 29.12 0 48.95 19.84 19.84 19.83 19.84 48.95 0 29.12-19.84 48.91-19.83 19.8-48.95 19.8Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="m283.8-445.93 244.18 244.17L480-154.02 154.02-480 480-806.22l47.98 47.98L283.8-514.07h522.42v68.14H283.8Z"/></svg>
|
package/assets/icons/check.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M378-240.26 148.26-470l48.98-48.98L378-338.22l383.76-383.76L810.74-673 378-240.26Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="m420.52-294.41 285.63-285.63-50.78-50.03-234.85 234.85-117.85-117.85-49.78 50.03 167.63 168.63Zm59.51 220.39q-83.46 0-157.54-31.88-74.07-31.88-129.39-87.2-55.32-55.32-87.2-129.36-31.88-74.04-31.88-157.51 0-84.46 31.88-158.54 31.88-74.07 87.16-128.9 55.28-54.84 129.34-86.82 74.06-31.99 157.55-31.99 84.48 0 158.59 31.97 74.1 31.97 128.91 86.77 54.82 54.8 86.79 128.88 31.98 74.08 31.98 158.6 0 83.5-31.99 157.57-31.98 74.07-86.82 129.36-54.83 55.29-128.87 87.17-74.04 31.88-158.51 31.88Zm-.03-68.13q141.04 0 239.45-98.75 98.4-98.76 98.4-239.1 0-141.04-98.4-239.45-98.41-98.4-239.57-98.4-140.16 0-238.95 98.4-98.78 98.41-98.78 239.57 0 140.16 98.75 238.95 98.76 98.78 239.1 98.78ZM480-480Z"/></svg>
|
package/assets/icons/close.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M249-201.26 201.26-249l231-231-231-231L249-758.74l231 231 231-231L758.74-711l-231 231 231 231L711-201.26l-231-231-231 231Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="m305.02-257.28-47.74-47.74L432.02-480 257.28-653.98l47.74-47.74L480-526.98l173.98-174.74 47.74 47.74L526.98-480l174.74 174.98-47.74 47.74L480-432.02 305.02-257.28Z"/></svg>
|
package/assets/icons/delete.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M259.09-114.02q-28.45 0-48.41-19.89-19.96-19.89-19.96-48.24v-565.94h-45.07v-68.13h198.28v-34.3h271.9v34.3h198.52v68.13h-45.07v565.94q0 27.6-20.33 47.86-20.34 20.27-48.04 20.27H259.09Zm441.82-634.07H259.09v565.94h441.82v-565.94ZM363.89-266.24h64.07v-399h-64.07v399Zm168.15 0h64.31v-399h-64.31v399ZM259.09-748.09v565.94-565.94Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M319-249.52h322v-62.63H319v62.63Zm0-170h322v-62.63H319v62.63Zm-96.85 345.5q-27.6 0-47.86-20.27-20.27-20.26-20.27-47.86v-675.7q0-27.7 20.27-48.03 20.26-20.34 47.86-20.34h361.48l222.59 222.59v521.48q0 27.6-20.34 47.86-20.33 20.27-48.03 20.27h-515.7Zm326.7-557.83v-186h-326.7v675.7h515.7v-489.7h-189Zm-326.7-186v186-186 675.7-675.7Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M347.41-154.5q-30.1 0-51.51-21.43-21.4-21.44-21.4-51.54 0-30.1 21.43-51.31Q317.37-300 347.47-300q30.1 0 51.31 21.25Q420-257.51 420-227.41q0 30.1-21.25 51.51-21.24 21.4-51.34 21.4Zm265.34 0q-30.1 0-51.42-21.43Q540-197.37 540-227.47q0-30.1 21.39-51.31Q582.79-300 612.83-300q30.14 0 51.4 21.25 21.27 21.24 21.27 51.34 0 30.1-21.32 51.51-21.33 21.4-51.43 21.4ZM347.41-407.37q-30.1 0-51.51-21.39-21.4-21.4-21.4-51.44 0-30.23 21.43-51.33 21.44-21.1 51.54-21.1 30.1 0 51.31 21.19Q420-510.26 420-480.14q0 30.12-21.25 51.44-21.24 21.33-51.34 21.33Zm265.34 0q-30.1 0-51.42-21.39Q540-450.16 540-480.2q0-30.23 21.39-51.33 21.4-21.1 51.44-21.1 30.14 0 51.4 21.19 21.27 21.18 21.27 51.3 0 30.12-21.32 51.44-21.33 21.33-51.43 21.33ZM347.41-660q-30.1 0-51.51-21.39-21.4-21.4-21.4-51.44 0-30.14 21.43-51.4 21.44-21.27 51.54-21.27 30.1 0 51.31 21.32Q420-762.85 420-732.75t-21.25 51.42Q377.51-660 347.41-660Zm265.34 0q-30.1 0-51.42-21.39Q540-702.79 540-732.83q0-30.14 21.39-51.4 21.4-21.27 51.44-21.27 30.14 0 51.4 21.32 21.27 21.33 21.27 51.43t-21.32 51.42Q642.85-660 612.75-660Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M154.02-396.85v-68.13h310.76v68.13H154.02Zm0-170.5v-68.13h478.13v68.13H154.02Zm0-170.5v-68.37h478.13v68.37H154.02Zm365.02 583.83v-128.02L741-503q9.51-9.63 21.13-13.91 11.62-4.29 23.5-4.29 12.48 0 24.21 4.86T831.02-502l37 37q9.44 9.48 13.82 21.12 4.38 11.63 4.38 23.27 0 11.96-4.86 24.06-4.86 12.09-14.25 21.57L647.07-154.02H519.04Zm303.59-266.59-37-37 37 37Zm-240 203h38l120.28-121.23-18-19.02-19-18.03-121.28 120.22v38.06Zm140.28-140.28-19-18 37 37-18-19Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M154.02-114.02v-68.13h652.2v68.13h-652.2ZM309.8-258.57q-65.17 0-110.48-44.93-45.3-44.93-45.3-109.85v-432.87h664.07q28.1 0 48.11 20.08 20.02 20.08 20.02 48.05v160q0 28.1-20.02 48.12-20.01 20.01-48.11 20.01h-92.66v136.61q0 64.92-45.47 109.85-45.48 44.93-110.55 44.93H309.8Zm.24-519.28H657.3 222.15h87.89Zm415.39 159.76h92.42v-160h-92.42v160ZM569.15-326.93q34.84 0 61.5-26.52 26.65-26.52 26.65-60.14v-364.26H399.15v37.31l71 58q1 1 9 18v150q0 9.6-7 16.8-7 7.2-18 7.2h-151q-11 0-18-7.2t-7-16.8v-150q0-4 9-18l72-58v-37.31h-137v364.26q0 33.62 26.98 60.14 26.97 26.52 60.91 26.52h259.11ZM355.57-777.85h40-40Z"/></svg>
|
package/assets/icons/error.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M479.93-274.02q16.46 0 27.4-10.74 10.93-10.75 10.93-27.21t-10.86-27.52q-10.86-11.05-27.33-11.05-16.46 0-27.4 11.03-10.93 11.04-10.93 27.5 0 16.47 10.86 27.23 10.86 10.76 27.33 10.76Zm-31-158.74h68.14v-257.07h-68.14v257.07ZM480.3-74.02q-84.2 0-158.04-31.88-73.84-31.88-129.16-87.2-55.32-55.32-87.2-129.2-31.88-73.88-31.88-158.17 0-84.28 31.88-158.2 31.88-73.91 87.16-128.74 55.28-54.84 129.18-86.82 73.9-31.99 158.21-31.99 84.3 0 158.25 31.97 73.94 31.97 128.75 86.77 54.82 54.8 86.79 128.88 31.98 74.08 31.98 158.33 0 84.24-31.99 158.07-31.98 73.84-86.82 128.95-54.83 55.1-128.87 87.17Q564.5-74.02 480.3-74.02Zm.2-68.13q140.54 0 238.95-98.75 98.4-98.76 98.4-239.6 0-140.54-98.22-238.95-98.21-98.4-239.75-98.4-140.16 0-238.95 98.22-98.78 98.21-98.78 239.75 0 140.16 98.75 238.95 98.76 98.78 239.6 98.78ZM480-480Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M480-339.5 234.26-585.24 283-633.98l197 198 197-197 48.74 48.74L480-339.5Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M480-338.26 234.26-584 283-632.74l197 197 197-197L725.74-584 480-338.26Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M561-234.26 314.26-481 561-727.74 609.74-679l-198 198 198 198L561-234.26Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="m524.26-481-198-198L375-727.74 621.74-481 375-234.26 326.26-283l198-198Z"/></svg>
|
package/assets/icons/remove.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M194.02-445.93v-68.14h572.2v68.14h-572.2Z"/></svg>
|
package/assets/icons/search.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M795.76-114.3 531.33-378.5q-29.76 25.26-69.6 39.41-39.84 14.16-85.16 14.16-109.84 0-185.96-76.2Q114.5-477.33 114.5-585t76.2-183.87q76.19-76.2 184.37-76.2 108.17 0 183.86 76.2 75.7 76.2 75.7 184.02 0 43.33-13.64 82.97t-40.92 74.4L845.5-164.04l-49.74 49.74ZM375.65-393.07q79.73 0 135.29-56.24Q566.5-505.55 566.5-585q0-79.45-55.6-135.69-55.59-56.24-135.25-56.24-80.49 0-136.76 56.24-56.26 56.24-56.26 135.69 0 79.45 56.23 135.69 56.23 56.24 136.79 56.24Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="m224.15-107.56 67.39-291.29L65.41-594.78l298.52-25.72L480-895.3l116.07 274.8 298.52 25.72-226.13 195.93 67.63 291.29L480-262.3 224.15-107.56Z"/></svg>
|
package/assets/icons/star.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="m326.37-249.79 153.64-91.89 153.64 92.9-41.28-173.94L727.5-540.33l-178.17-15.52L480-720.02l-69.33 163.41-178.17 15.28 135.22 117.38-41.35 174.16ZM224.15-107.56l67.39-291.29L65.41-594.78l298.43-25.67L480-895.3l116.16 274.85 298.43 25.67-226.13 195.93 67.63 291.29L480-262.3 224.15-107.56ZM480-474.52Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M452-203.43h60v-201.96l82.48 82.48 42-42L480-517.15 325.76-362.91l42 42L452-405.39v201.96ZM222.15-74.02q-27.6 0-47.86-20.27-20.27-20.26-20.27-47.86v-675.7q0-27.7 20.27-48.03 20.26-20.34 47.86-20.34h361.48l222.59 222.59v521.48q0 27.6-20.34 47.86-20.33 20.27-48.03 20.27h-515.7Zm326.7-557.83v-186h-326.7v675.7h515.7v-489.7h-189Zm-326.7-186v186-186 675.7-675.7Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M480.12-330q70.88 0 120.38-49.62t49.5-120.5q0-70.88-49.62-120.38T479.88-670Q409-670 359.5-620.38T310-499.88q0 70.88 49.62 120.38t120.5 49.5Zm-.3-61.83q-45.15 0-76.57-31.6-31.42-31.6-31.42-76.75t31.6-76.57q31.6-31.42 76.75-31.42t76.57 31.6q31.42 31.6 31.42 76.75t-31.6 76.57q-31.6 31.42-76.75 31.42ZM480-194.5q-147.91 0-267.35-84.67Q93.22-363.85 34.5-500q58.72-136.15 178.15-220.83Q332.09-805.5 480-805.5q147.91 0 267.35 84.67Q866.78-636.15 925.5-500q-58.72 136.15-178.15 220.83Q627.91-194.5 480-194.5Z"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M813.85-61.85 649.2-223.74q-35 14-79.24 21.62-44.24 7.62-89.96 7.62-147.2 0-267.75-82.46Q91.7-359.41 34.5-500q19.52-51.76 55.38-101.86t86.38-95.81L50.98-822.48l43.91-45.15 759.87 759.87-40.91 45.91ZM480-330q13.28 0 28.45-2.5 15.16-2.5 25.44-7.26L319.28-553.89q-4.52 11.28-6.9 25.56Q310-514.04 310-500q0 72 50 121t120 49Zm283.74 41.91L629.96-422.11q9.52-15.04 14.78-36.18T650-500q0-71-49.5-120.5T480-670q-20.8 0-41.09 4.76-20.28 4.76-36.8 15.04L287.57-765.5q35-16 90.21-28 55.22-12 107.22-12 143.96 0 264.01 82.34Q869.07-640.83 925.5-500q-25.76 64.48-67.12 118.08-41.36 53.59-94.64 93.83ZM578.07-474l-125.5-125.5q25.17-10.28 52.82-5.1 27.65 5.19 48.5 24.56 20.61 20.61 28.53 46 7.93 25.39-4.35 60.04Z"/></svg>
|
package/assets/icons/warning.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="48" height="48" viewBox="0 -960 960 960"><path d="M34.74-116.89 480-886.22l445.26 769.33H34.74Zm113.8-65.74h662.92L480-754.98 148.54-182.63Zm335.64-54.85q12.96 0 21.87-9.08 8.91-9.09 8.91-22.05t-9.09-21.75q-9.08-8.79-22.05-8.79-12.96 0-21.87 8.96-8.91 8.97-8.91 21.93 0 12.96 9.09 21.87 9.08 8.91 22.05 8.91ZM454-348h60v-222.09h-60V-348Zm26-120.8Z"/></svg>
|