@indielayer/ui 1.8.1 → 1.8.3
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/docs/pages/component/select/usage.vue +2 -2
- package/docs/pages/component/tag/usage.vue +5 -4
- package/lib/components/datepicker/Datepicker.vue.js +56 -56
- package/lib/components/select/Select.vue.js +187 -200
- package/lib/components/tag/Tag.vue.d.ts +4 -0
- package/lib/components/tag/Tag.vue.js +32 -31
- package/lib/components/tag/theme/Tag.base.theme.js +2 -2
- package/lib/components/tag/theme/Tag.carbon.theme.js +1 -1
- package/lib/index.js +1 -1
- package/lib/index.umd.js +4 -4
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/src/components/datepicker/Datepicker.vue +5 -5
- package/src/components/select/Select.vue +10 -20
- package/src/components/tag/Tag.vue +9 -5
- package/src/components/tag/theme/Tag.base.theme.ts +6 -6
- package/src/components/tag/theme/Tag.carbon.theme.ts +1 -1
- package/src/version.ts +1 -1
|
@@ -4,7 +4,7 @@ import { ref } from 'vue'
|
|
|
4
4
|
const selected = ref<undefined | string>()
|
|
5
5
|
const selectedMultiple = ref<string[]>(['A', 'B'])
|
|
6
6
|
const options = ref([
|
|
7
|
-
{ value: 'A', label: 'Option A' },
|
|
7
|
+
{ value: 'A', label: 'Option A', disabled: true },
|
|
8
8
|
{ value: 'B', label: 'Option B' },
|
|
9
9
|
])
|
|
10
10
|
|
|
@@ -35,8 +35,8 @@ for (let i = 0; i < 20; i++) {
|
|
|
35
35
|
v-model="selectedMultiple"
|
|
36
36
|
label="Multi select"
|
|
37
37
|
placeholder="Multiple"
|
|
38
|
-
filterable
|
|
39
38
|
:options="options"
|
|
39
|
+
filterable
|
|
40
40
|
multiple
|
|
41
41
|
/>
|
|
42
42
|
</div>
|
|
@@ -11,9 +11,10 @@ const notifications = useNotifications()
|
|
|
11
11
|
<x-tag outlined>I'm a tag</x-tag>
|
|
12
12
|
<x-tag rounded outlined color="pink">I'm a tag</x-tag>
|
|
13
13
|
<x-tag color="pink">I'm a tag</x-tag>
|
|
14
|
-
<x-tag removable @remove="notifications?.log('remove me')">I'm a tag</x-tag>
|
|
15
|
-
<x-tag removable size="
|
|
16
|
-
<x-tag removable
|
|
17
|
-
<x-tag removable size="
|
|
14
|
+
<x-tag removable size="xs" @remove="notifications?.log('remove me')">I'm a xs tag</x-tag>
|
|
15
|
+
<x-tag removable size="sm" @remove="notifications?.log('remove me')">I'm a sm tag</x-tag>
|
|
16
|
+
<x-tag removable disabled @remove="notifications?.log('remove me')">I'm a md tag</x-tag>
|
|
17
|
+
<x-tag removable size="lg" @remove="notifications?.log('remove me')">I'm a lg tag</x-tag>
|
|
18
|
+
<x-tag removable size="xl" @remove="notifications?.log('remove me')">I'm a xl tag</x-tag>
|
|
18
19
|
</div>
|
|
19
20
|
</template>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { useMutationObserver as
|
|
3
|
-
import { useCommon as
|
|
4
|
-
import { useInputtable as
|
|
5
|
-
import { useInteractive as
|
|
6
|
-
import { useTheme as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
1
|
+
import { defineComponent as O, ref as d, openBlock as D, createElementBlock as C, normalizeStyle as I, unref as n, normalizeClass as P, createVNode as u, createSlots as T, withCtx as m, withKeys as p, withModifiers as R, renderList as j, renderSlot as F, normalizeProps as A, guardReactiveProps as z } from "vue";
|
|
2
|
+
import { useMutationObserver as L } from "../../node_modules/.pnpm/@vueuse_core@10.2.0_vue@3.3.9_typescript@5.2.2_/node_modules/@vueuse/core/index.js";
|
|
3
|
+
import { useCommon as q } from "../../composables/useCommon.js";
|
|
4
|
+
import { useInputtable as f } from "../../composables/useInputtable.js";
|
|
5
|
+
import { useInteractive as M } from "../../composables/useInteractive.js";
|
|
6
|
+
import { useTheme as V } from "../../composables/useTheme.js";
|
|
7
|
+
import G from "../input/Input.vue.js";
|
|
8
|
+
import Y from "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/vue-datepicker.js";
|
|
9
9
|
import "../../node_modules/.pnpm/@vuepic_vue-datepicker@8.3.2_vue@3.3.9_typescript@5.2.2_/node_modules/@vuepic/vue-datepicker/dist/main.css.js";
|
|
10
|
-
const
|
|
10
|
+
const W = {
|
|
11
11
|
multiCalendars: { type: [Boolean, Number, String, Object], default: void 0 },
|
|
12
12
|
modelValue: { type: [String, Date, Array, Object, Number], default: null },
|
|
13
13
|
modelType: { type: String, default: null },
|
|
@@ -134,54 +134,54 @@ const K = {
|
|
|
134
134
|
config: { type: Object, default: void 0 },
|
|
135
135
|
quarterPicker: { type: Boolean, default: !1 },
|
|
136
136
|
yearFirst: { type: Boolean, default: !1 }
|
|
137
|
-
},
|
|
138
|
-
...
|
|
139
|
-
...
|
|
140
|
-
...
|
|
141
|
-
...
|
|
142
|
-
},
|
|
137
|
+
}, E = {
|
|
138
|
+
...q.props(),
|
|
139
|
+
...M.props(),
|
|
140
|
+
...f.props(),
|
|
141
|
+
...W
|
|
142
|
+
}, K = {
|
|
143
143
|
name: "XDatepicker"
|
|
144
|
-
},
|
|
145
|
-
...
|
|
146
|
-
props:
|
|
147
|
-
emits:
|
|
148
|
-
setup(
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
|
|
144
|
+
}, ae = /* @__PURE__ */ O({
|
|
145
|
+
...K,
|
|
146
|
+
props: E,
|
|
147
|
+
emits: f.emits(),
|
|
148
|
+
setup(y, { expose: c, emit: g }) {
|
|
149
|
+
const b = y, h = g, t = d(null);
|
|
150
|
+
function k(e) {
|
|
151
|
+
h("update:modelValue", e), setTimeout(r);
|
|
152
152
|
}
|
|
153
|
-
function
|
|
153
|
+
function v() {
|
|
154
154
|
var e;
|
|
155
155
|
(e = t.value) == null || e.blur();
|
|
156
156
|
}
|
|
157
|
-
function
|
|
157
|
+
function w() {
|
|
158
158
|
var e;
|
|
159
159
|
(e = t.value) == null || e.focus();
|
|
160
160
|
}
|
|
161
|
-
function
|
|
161
|
+
function r() {
|
|
162
162
|
var e;
|
|
163
163
|
(e = t.value) == null || e.validate();
|
|
164
164
|
}
|
|
165
|
-
const a = document == null ? void 0 : document.querySelector("html"),
|
|
166
|
-
|
|
167
|
-
e[0] && e[0].attributeName === "class" && (
|
|
165
|
+
const a = document == null ? void 0 : document.querySelector("html"), i = d((a == null ? void 0 : a.classList.contains("dark")) ?? !1);
|
|
166
|
+
L(a, (e) => {
|
|
167
|
+
e[0] && e[0].attributeName === "class" && (i.value = (a == null ? void 0 : a.classList.contains("dark")) ?? !1);
|
|
168
168
|
}, {
|
|
169
169
|
attributes: !0
|
|
170
|
-
}),
|
|
171
|
-
const { styles:
|
|
172
|
-
return (e,
|
|
173
|
-
style:
|
|
174
|
-
class:
|
|
175
|
-
|
|
176
|
-
|
|
170
|
+
}), c({ focus: w, blur: v, validate: r });
|
|
171
|
+
const { styles: S, classes: B, className: N } = V("Datepicker", {}, b);
|
|
172
|
+
return (e, $) => (D(), C("div", {
|
|
173
|
+
style: I(n(S)),
|
|
174
|
+
class: P([
|
|
175
|
+
n(N),
|
|
176
|
+
n(B).wrapper
|
|
177
177
|
])
|
|
178
178
|
}, [
|
|
179
|
-
|
|
179
|
+
u(n(Y), {
|
|
180
180
|
"model-value": e.modelValue,
|
|
181
181
|
"multi-calendars": e.multiCalendars,
|
|
182
182
|
"model-type": e.modelType,
|
|
183
183
|
position: e.position,
|
|
184
|
-
dark:
|
|
184
|
+
dark: i.value,
|
|
185
185
|
format: e.format,
|
|
186
186
|
"auto-position": e.autoPosition,
|
|
187
187
|
"alt-position": e.altPosition,
|
|
@@ -286,14 +286,14 @@ const K = {
|
|
|
286
286
|
"quarter-picker": e.quarterPicker,
|
|
287
287
|
"year-first": e.yearFirst,
|
|
288
288
|
"is-24": e.is24,
|
|
289
|
-
"onUpdate:modelValue":
|
|
290
|
-
}, {
|
|
291
|
-
"dp-input":
|
|
292
|
-
|
|
289
|
+
"onUpdate:modelValue": k
|
|
290
|
+
}, T({
|
|
291
|
+
"dp-input": m(({ value: s, onEnter: l, onTab: o }) => [
|
|
292
|
+
u(G, {
|
|
293
293
|
ref_key: "inputRef",
|
|
294
294
|
ref: t,
|
|
295
295
|
readonly: "",
|
|
296
|
-
"model-value":
|
|
296
|
+
"model-value": s,
|
|
297
297
|
label: e.label,
|
|
298
298
|
size: e.size,
|
|
299
299
|
disabled: e.disabled,
|
|
@@ -307,23 +307,23 @@ const K = {
|
|
|
307
307
|
required: e.required,
|
|
308
308
|
"hide-footer": e.hideFooter,
|
|
309
309
|
onKeydown: [
|
|
310
|
-
|
|
311
|
-
|
|
310
|
+
p(R(l, ["prevent"]), ["enter"]),
|
|
311
|
+
p(o, ["tab"])
|
|
312
312
|
]
|
|
313
|
-
},
|
|
314
|
-
A(e.$slots, (X, r) => ({
|
|
315
|
-
name: r,
|
|
316
|
-
fn: d((D = {}) => [
|
|
317
|
-
z(e.$slots, r, L(q(D)))
|
|
318
|
-
])
|
|
319
|
-
}))
|
|
320
|
-
]), 1032, ["model-value", "label", "size", "disabled", "helper", "loading", "name", "rules", "tooltip", "placeholder", "required", "hide-footer", "onKeydown"])
|
|
313
|
+
}, null, 8, ["model-value", "label", "size", "disabled", "helper", "loading", "name", "rules", "tooltip", "placeholder", "required", "hide-footer", "onKeydown"])
|
|
321
314
|
]),
|
|
322
|
-
_:
|
|
323
|
-
},
|
|
315
|
+
_: 2
|
|
316
|
+
}, [
|
|
317
|
+
j(e.$slots, (s, l) => ({
|
|
318
|
+
name: l,
|
|
319
|
+
fn: m((o = {}) => [
|
|
320
|
+
F(e.$slots, l, A(z(o)))
|
|
321
|
+
])
|
|
322
|
+
}))
|
|
323
|
+
]), 1032, ["model-value", "multi-calendars", "model-type", "position", "dark", "format", "auto-position", "alt-position", "transitions", "format-locale", "utc", "aria-labels", "offset", "hide-navigation", "timezone", "emit-timezone", "vertical", "disable-month-year-select", "disable-year-select", "menu-class-name", "day-class", "year-range", "calendar-cell-class-name", "enable-time-picker", "auto-apply", "disabled-dates", "month-name-format", "start-date", "start-time", "hide-offset-dates", "auto-range", "no-today", "disabled-week-days", "allowed-dates", "now-button-label", "markers", "esc-close", "space-confirm", "month-change-on-arrows", "preset-dates", "flow", "partial-flow", "prevent-min-max-navigation", "min-range", "max-range", "multi-dates-limit", "reverse-years", "week-picker", "filters", "arrow-navigation", "disable-time-range-validation", "highlight", "teleport", "teleport-center", "locale", "week-num-name", "week-start", "week-numbers", "calendar-class-name", "month-change-on-scroll", "day-names", "month-picker", "custom-props", "year-picker", "model-auto", "select-text", "cancel-text", "preview-format", "multi-dates", "partial-range", "ignore-time-validation", "min-date", "max-date", "placeholder", "hide-input-icon", "clearable", "state", "required", "autocomplete", "input-class-name", "fixed-start", "fixed-end", "time-picker", "enable-seconds", "no-hours-overlay", "no-minutes-overlay", "no-seconds-overlay", "hours-grid-increment", "minutes-grid-increment", "seconds-grid-increment", "hours-increment", "minutes-increment", "seconds-increment", "range", "uid", "inline", "text-input", "no-disabled-range", "six-weeks", "action-row", "focus-start-date", "disabled-times", "show-last-in-range", "time-picker-inline", "calendar", "config", "quarter-picker", "year-first", "is-24"])
|
|
324
324
|
], 6));
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
327
|
export {
|
|
328
|
-
|
|
328
|
+
ae as default
|
|
329
329
|
};
|