@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.
@@ -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="xs" @remove="notifications?.log('remove me')">I'm a tag</x-tag>
16
- <x-tag removable size="lg" @remove="notifications?.log('remove me')">I'm a tag</x-tag>
17
- <x-tag removable size="xl" @remove="notifications?.log('remove me')">I'm a tag</x-tag>
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 C, ref as i, openBlock as I, createElementBlock as P, normalizeStyle as T, unref as l, normalizeClass as R, createVNode as s, withCtx as d, withKeys as u, withModifiers as j, createSlots as F, renderList as A, renderSlot as z, normalizeProps as L, guardReactiveProps as q } from "vue";
2
- import { useMutationObserver as M } 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 V } from "../../composables/useCommon.js";
4
- import { useInputtable as m } from "../../composables/useInputtable.js";
5
- import { useInteractive as G } from "../../composables/useInteractive.js";
6
- import { useTheme as Y } from "../../composables/useTheme.js";
7
- import W from "../input/Input.vue.js";
8
- import E 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";
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 K = {
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
- ...V.props(),
139
- ...G.props(),
140
- ...m.props(),
141
- ...K
142
- }, H = {
137
+ }, E = {
138
+ ...q.props(),
139
+ ...M.props(),
140
+ ...f.props(),
141
+ ...W
142
+ }, K = {
143
143
  name: "XDatepicker"
144
- }, ne = /* @__PURE__ */ C({
145
- ...H,
146
- props: $,
147
- emits: m.emits(),
148
- setup(p, { expose: f, emit: y }) {
149
- const c = p, g = y, t = i(null);
150
- function b(e) {
151
- g("update:modelValue", e), setTimeout(n);
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 h() {
153
+ function v() {
154
154
  var e;
155
155
  (e = t.value) == null || e.blur();
156
156
  }
157
- function k() {
157
+ function w() {
158
158
  var e;
159
159
  (e = t.value) == null || e.focus();
160
160
  }
161
- function n() {
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"), o = i((a == null ? void 0 : a.classList.contains("dark")) ?? !1);
166
- M(a, (e) => {
167
- e[0] && e[0].attributeName === "class" && (o.value = (a == null ? void 0 : a.classList.contains("dark")) ?? !1);
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
- }), f({ focus: k, blur: h, validate: n });
171
- const { styles: v, classes: w, className: S } = Y("Datepicker", {}, c);
172
- return (e, U) => (I(), P("div", {
173
- style: T(l(v)),
174
- class: R([
175
- l(S),
176
- l(w).wrapper
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
- s(l(E), {
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: o.value,
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": b
290
- }, {
291
- "dp-input": d(({ value: B, onEnter: N, onTab: O }) => [
292
- s(W, {
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": B,
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
- u(j(N, ["prevent"]), ["enter"]),
311
- u(O, ["tab"])
310
+ p(R(l, ["prevent"]), ["enter"]),
311
+ p(o, ["tab"])
312
312
  ]
313
- }, F({ _: 2 }, [
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
- _: 3
323
- }, 8, ["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"])
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
- ne as default
328
+ ae as default
329
329
  };