ablok-components 0.3.64 → 0.3.66

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.
Files changed (24) hide show
  1. package/dist/ablok-components.css +1 -1
  2. package/dist/ablok-components.umd.js +2 -2
  3. package/dist/components/atoms/base-input/base-input.vue.d.ts +1 -1
  4. package/dist/components/atoms/check-group/check-group.vue.d.ts +1 -1
  5. package/dist/components/atoms/input-datetime/input-datetime.vue.d.ts +1 -1
  6. package/dist/components/atoms/input-file/input-file.vue.d.ts +1 -1
  7. package/dist/components/atoms/input-passcode/input-passcode.vue.d.ts +1 -1
  8. package/dist/components/atoms/input-password/input-password.vue.d.ts +1 -1
  9. package/dist/components/atoms/input-textarea/input-textarea.vue.d.ts +1 -1
  10. package/dist/components/atoms/radio-group/radio-group.vue.d.ts +1 -1
  11. package/dist/components/molecules/accordion/accordion-item.vue.js +43 -35
  12. package/dist/components/molecules/auto-suggest/auto-suggest.vue.d.ts +1 -1
  13. package/dist/components/molecules/color-palette/color-palette.vue.d.ts +1 -1
  14. package/dist/components/molecules/file-upload/file-upload.vue.d.ts +1 -1
  15. package/dist/components/molecules/image-upload/image-upload.vue.d.ts +1 -1
  16. package/dist/components/molecules/input-color/input-color.vue.d.ts +1 -1
  17. package/dist/components/molecules/input-datepicker/input-datepicker.vue.d.ts +1 -1
  18. package/dist/components/molecules/input-dropdown/input-dropdown.vue.d.ts +2 -2
  19. package/dist/components/molecules/radio-buttons/radio-buttons.vue.d.ts +1 -1
  20. package/dist/components/molecules/select-media/select-media.vue.d.ts +1 -1
  21. package/dist/components/molecules/upload-group/upload-group.vue.d.ts +1 -1
  22. package/dist/components/organisms/asset-uploader/asset-uploader.vue.d.ts +1 -1
  23. package/dist/components/templates/sortable-list/sortable-list.vue.js +100 -56
  24. package/package.json +19 -19
@@ -193,9 +193,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
193
193
  variant: string;
194
194
  id: string;
195
195
  modelValue: string | number | boolean | Date;
196
- disabled: boolean;
197
196
  name: string;
198
197
  placeholder: string;
198
+ disabled: boolean;
199
199
  readOnly: boolean;
200
200
  trueValue: any;
201
201
  falseValue: any;
@@ -103,8 +103,8 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
103
103
  required: boolean;
104
104
  id: string;
105
105
  modelValue: any;
106
- disabled: boolean;
107
106
  name: string;
107
+ disabled: boolean;
108
108
  readOnly: boolean;
109
109
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
110
110
  export default _default;
@@ -115,9 +115,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
115
115
  variant: string;
116
116
  id: string;
117
117
  modelValue: string | number | boolean | Date;
118
- disabled: boolean;
119
118
  name: string;
120
119
  placeholder: string;
120
+ disabled: boolean;
121
121
  readOnly: boolean;
122
122
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
123
123
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
@@ -165,9 +165,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
165
165
  variant: string;
166
166
  id: string;
167
167
  modelValue: File[];
168
- disabled: boolean;
169
168
  name: string;
170
169
  placeholder: string;
170
+ disabled: boolean;
171
171
  readOnly: boolean;
172
172
  multiple: boolean;
173
173
  maxFileSize: number;
@@ -146,9 +146,9 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
146
146
  variant: string;
147
147
  id: string;
148
148
  modelValue: string | number | boolean | Date;
149
- disabled: boolean;
150
149
  name: string;
151
150
  placeholder: string;
151
+ disabled: boolean;
152
152
  readOnly: boolean;
153
153
  role: string;
154
154
  autocomplete: string;
@@ -152,9 +152,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
152
152
  variant: string;
153
153
  id: string;
154
154
  modelValue: string | number | boolean | Date;
155
- disabled: boolean;
156
155
  name: string;
157
156
  placeholder: string;
157
+ disabled: boolean;
158
158
  readOnly: boolean;
159
159
  role: string;
160
160
  autocomplete: string;
@@ -133,9 +133,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
133
133
  variant: string;
134
134
  id: string;
135
135
  modelValue: string;
136
- disabled: boolean;
137
136
  name: string;
138
137
  placeholder: string;
138
+ disabled: boolean;
139
139
  readOnly: boolean;
140
140
  sanitize: boolean;
141
141
  checked: boolean;
@@ -109,8 +109,8 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
109
109
  required: boolean;
110
110
  variant: string;
111
111
  id: string;
112
- disabled: boolean;
113
112
  name: string;
113
+ disabled: boolean;
114
114
  readOnly: boolean;
115
115
  options: any[];
116
116
  itemClass: string;
@@ -1,12 +1,12 @@
1
- import { defineComponent as r, openBlock as u, createElementBlock as m, createElementVNode as t, normalizeClass as a, renderSlot as d, toDisplayString as g, unref as p } from "vue";
2
- import { uniqueId as b } from "../../../utilities/helpers.js";
3
- import { useSanitize as f } from "../../../composables/useSanitize.js";
4
- const y = { class: "accordion-item" }, h = ["id"], S = ["data-bs-target", "aria-controls"], V = { class: "flex-grow-1" }, $ = ["id", "aria-labelledby", "data-bs-parent"], q = ["innerHTML"], z = /* @__PURE__ */ r({
1
+ import { defineComponent as u, ref as m, watch as p, openBlock as f, createElementBlock as g, createElementVNode as a, normalizeClass as n, renderSlot as l, toDisplayString as h, createVNode as y, Transition as v, withCtx as b, withDirectives as S, unref as V, vShow as $ } from "vue";
2
+ import { uniqueId as q } from "../../../utilities/helpers.js";
3
+ import { useSanitize as w } from "../../../composables/useSanitize.js";
4
+ const x = { class: "accordion-item" }, B = ["id"], _ = ["aria-expanded", "aria-controls"], C = { class: "flex-grow-1" }, T = ["id", "aria-labelledby"], k = ["innerHTML"], N = /* @__PURE__ */ u({
5
5
  __name: "accordion-item",
6
6
  props: {
7
7
  id: {
8
8
  type: String,
9
- default: () => b()
9
+ default: () => q()
10
10
  },
11
11
  modelValue: {
12
12
  type: Boolean,
@@ -30,47 +30,55 @@ const y = { class: "accordion-item" }, h = ["id"], S = ["data-bs-target", "aria-
30
30
  }
31
31
  },
32
32
  emits: ["update:modelValue"],
33
- setup(e, { emit: n }) {
34
- const o = e, l = n, s = f(() => o.body);
35
- function c() {
36
- l("update:modelValue", !o.modelValue);
33
+ setup(e, { emit: d }) {
34
+ const o = e, s = d, t = m(o.modelValue);
35
+ p(() => o.modelValue, (i) => {
36
+ t.value = i;
37
+ });
38
+ const c = w(() => o.body);
39
+ function r() {
40
+ t.value = !t.value, s("update:modelValue", t.value);
37
41
  }
38
- return (i, v) => (u(), m("div", y, [
39
- t("div", {
42
+ return (i, z) => (f(), g("div", x, [
43
+ a("div", {
40
44
  class: "accordion-header",
41
45
  id: `heading-${e.id}`
42
46
  }, [
43
- t("button", {
44
- class: a(["accordion-button", !e.modelValue && "collapsed"]),
47
+ a("button", {
48
+ class: n(["accordion-button", !t.value && "collapsed"]),
45
49
  type: "button",
46
- "data-bs-toggle": "collapse",
47
- "data-bs-target": `#target${e.id}`,
48
- "aria-expanded": "true",
50
+ "aria-expanded": t.value,
49
51
  "aria-controls": `target${e.id}`,
50
- onClick: c
52
+ onClick: r
51
53
  }, [
52
- d(i.$slots, "toggle", {}, () => [
53
- t("span", V, g(e.title), 1)
54
+ l(i.$slots, "toggle", {}, () => [
55
+ a("span", C, h(e.title), 1)
54
56
  ])
55
- ], 10, S)
56
- ], 8, h),
57
- t("div", {
58
- class: a(["accordion-collapse collapse", e.modelValue && "show"]),
59
- id: `target${e.id}`,
60
- "aria-labelledby": `heading${e.id}`,
61
- "data-bs-parent": e.parent
62
- }, [
63
- t("div", {
64
- class: a(["accordion-body", e.noPadding ? "p-0" : ""])
65
- }, [
66
- d(i.$slots, "body", {}, () => [
67
- t("article", { innerHTML: p(s) }, null, 8, q)
57
+ ], 10, _)
58
+ ], 8, B),
59
+ y(v, { name: "accordion" }, {
60
+ default: b(() => [
61
+ S(a("div", {
62
+ class: "accordion-collapse",
63
+ id: `target${e.id}`,
64
+ "aria-labelledby": `heading-${e.id}`
65
+ }, [
66
+ a("div", {
67
+ class: n(["accordion-body", e.noPadding ? "p-0" : ""])
68
+ }, [
69
+ l(i.$slots, "body", {}, () => [
70
+ a("article", { innerHTML: V(c) }, null, 8, k)
71
+ ])
72
+ ], 2)
73
+ ], 8, T), [
74
+ [$, t.value]
68
75
  ])
69
- ], 2)
70
- ], 10, $)
76
+ ]),
77
+ _: 3
78
+ })
71
79
  ]));
72
80
  }
73
81
  });
74
82
  export {
75
- z as default
83
+ N as default
76
84
  };
@@ -113,9 +113,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
113
113
  }>, {
114
114
  color: string;
115
115
  required: boolean;
116
+ placeholder: string;
116
117
  disabled: boolean;
117
118
  outlined: boolean;
118
- placeholder: string;
119
119
  readOnly: boolean;
120
120
  options: any[];
121
121
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {
@@ -92,8 +92,8 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
92
92
  required: boolean;
93
93
  id: string;
94
94
  modelValue: string;
95
- disabled: boolean;
96
95
  name: string;
96
+ disabled: boolean;
97
97
  colors: String[];
98
98
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
99
99
  export default _default;
@@ -257,9 +257,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
257
257
  type?: string;
258
258
  src?: string;
259
259
  }[];
260
- disabled: boolean;
261
260
  name: string;
262
261
  placeholder: string;
262
+ disabled: boolean;
263
263
  readOnly: boolean;
264
264
  multiple: boolean;
265
265
  maxFileSize: number;
@@ -201,9 +201,9 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
201
201
  variant: string;
202
202
  id: string;
203
203
  modelValue: IMediaObject | undefined;
204
- disabled: boolean;
205
204
  name: string;
206
205
  placeholder: string;
206
+ disabled: boolean;
207
207
  readOnly: boolean;
208
208
  accept: string;
209
209
  maxFileSize: number;
@@ -106,9 +106,9 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
106
106
  variant: string;
107
107
  id: string;
108
108
  modelValue: string | number | boolean | Date;
109
- disabled: boolean;
110
109
  name: string;
111
110
  placeholder: string;
111
+ disabled: boolean;
112
112
  readOnly: boolean;
113
113
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
114
114
  export default _default;
@@ -167,8 +167,8 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
167
167
  required: boolean;
168
168
  id: string;
169
169
  modelValue: any;
170
- disabled: boolean;
171
170
  name: string;
171
+ disabled: boolean;
172
172
  readOnly: boolean;
173
173
  range: boolean;
174
174
  textRange: boolean;
@@ -182,10 +182,10 @@ declare const __VLS_component: import('../../../../vue/dist/vue.esm-bundler.js')
182
182
  color: string;
183
183
  required: boolean;
184
184
  variant: string;
185
- disabled: boolean;
186
- outlined: boolean;
187
185
  name: string;
188
186
  placeholder: string;
187
+ disabled: boolean;
188
+ outlined: boolean;
189
189
  readOnly: boolean;
190
190
  multiple: boolean;
191
191
  showSelectionCount: boolean;
@@ -108,8 +108,8 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
108
108
  required: boolean;
109
109
  id: string;
110
110
  modelValue: any;
111
- disabled: boolean;
112
111
  name: string;
112
+ disabled: boolean;
113
113
  options: any[];
114
114
  itemClass: string;
115
115
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -102,8 +102,8 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
102
102
  required: boolean;
103
103
  id: string;
104
104
  modelValue: any;
105
- disabled: boolean;
106
105
  name: string;
106
+ disabled: boolean;
107
107
  assets: any[];
108
108
  emitKey: string;
109
109
  }, {}, {}, {}, string, import('../../../../vue/dist/vue.esm-bundler.js').ComponentProvideOptions, true, {}, HTMLDivElement>;
@@ -162,8 +162,8 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
162
162
  variant: string;
163
163
  id: string;
164
164
  modelValue: String[];
165
- disabled: boolean;
166
165
  name: string;
166
+ disabled: boolean;
167
167
  maxFileSize: number;
168
168
  endpoint: string;
169
169
  authToken: string;
@@ -196,8 +196,8 @@ declare const _default: import('../../../../vue/dist/vue.esm-bundler.js').Define
196
196
  variant: string;
197
197
  id: string;
198
198
  modelValue: any[];
199
- disabled: boolean;
200
199
  name: string;
200
+ disabled: boolean;
201
201
  maxFileSize: number;
202
202
  endpoint: string;
203
203
  authToken: string;
@@ -1,14 +1,14 @@
1
- import { defineComponent as L, ref as v, computed as m, useSlots as O, watch as f, openBlock as i, createBlock as N, TransitionGroup as C, withModifiers as V, normalizeClass as D, withCtx as M, createElementBlock as g, Fragment as _, renderList as x, createCommentVNode as p, createElementVNode as b, createVNode as A, renderSlot as k, createTextVNode as P, toDisplayString as j } from "vue";
2
- import { sanitizeHtml as z } from "../../../composables/useSanitize.js";
3
- import q from "../../atoms/svg-icon/svg-icon.vue.js";
1
+ import { defineComponent as H, ref as c, computed as L, useSlots as I, watch as f, openBlock as i, createBlock as M, TransitionGroup as N, withModifiers as A, normalizeClass as D, withCtx as x, createElementBlock as g, Fragment as O, renderList as C, createCommentVNode as p, createElementVNode as b, createVNode as P, renderSlot as E, createTextVNode as W, toDisplayString as j } from "vue";
2
+ import z from "dompurify";
3
+ import G from "../../atoms/svg-icon/svg-icon.vue.js";
4
4
  /* empty css */
5
- const F = ["onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop", "innerHTML"], G = ["draggable", "onDragstart", "onDrag", "onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop"], J = {
5
+ const R = ["onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop", "innerHTML"], F = ["draggable", "onDragstart", "onDrag", "onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop"], q = {
6
6
  key: 0,
7
7
  class: "sortable-list__drag-handle"
8
- }, K = ["onDragstart", "onDrag"], Q = {
8
+ }, J = ["onDragstart", "onDrag"], K = {
9
9
  key: 0,
10
10
  class: "sortable-list__item"
11
- }, ee = /* @__PURE__ */ L({
11
+ }, te = /* @__PURE__ */ H({
12
12
  __name: "sortable-list",
13
13
  props: {
14
14
  modelValue: {
@@ -42,113 +42,157 @@ const F = ["onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop", "i
42
42
  "update:dragIndex",
43
43
  "update:dragOverIndex"
44
44
  ],
45
- setup(n, { emit: H }) {
46
- const S = n, o = v(!1), l = v(null), s = v(null), d = H, c = m({
45
+ setup(n, { emit: $ }) {
46
+ const V = n, l = c(!1), o = c(null), s = c(null), d = $, v = L({
47
47
  get() {
48
- return S.modelValue;
48
+ return V.modelValue;
49
49
  },
50
50
  set(e) {
51
51
  d("update:modelValue", e);
52
52
  }
53
- }), B = m(() => {
54
- const e = document.querySelector(".is-drag-item")?.outerHTML;
55
- return e ? z(e) : "";
56
- }), E = O(), I = m(() => E["list-append"]);
57
- function w(e, a) {
58
- e.dataTransfer && (e.dataTransfer.dropEffect = "move", e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("index", a.toLocaleString()), o.value = !0, l.value = a);
59
- }
60
- function y(e, a) {
61
- o.value = !1, l.value = null, s.value = null;
62
- }
63
- function R(e, a) {
53
+ }), m = c("");
54
+ function k(e) {
55
+ const a = e.currentTarget.closest(".sortable-list__item") ?? e.currentTarget;
56
+ m.value = z.sanitize(a.outerHTML, {
57
+ ALLOWED_TAGS: [
58
+ "b",
59
+ "i",
60
+ "em",
61
+ "strong",
62
+ "u",
63
+ "span",
64
+ "p",
65
+ "br",
66
+ "a",
67
+ "ul",
68
+ "ol",
69
+ "li",
70
+ "h1",
71
+ "h2",
72
+ "h3",
73
+ "h4",
74
+ "h5",
75
+ "h6",
76
+ "article",
77
+ "div",
78
+ "label",
79
+ "button",
80
+ "svg",
81
+ "use"
82
+ ],
83
+ ALLOWED_ATTR: [
84
+ "class",
85
+ "id",
86
+ "style",
87
+ "href",
88
+ "target",
89
+ "rel",
90
+ "title",
91
+ "type",
92
+ "aria-expanded",
93
+ "aria-controls",
94
+ "aria-labelledby",
95
+ "data-countdown"
96
+ ],
97
+ ALLOW_DATA_ATTR: !0
98
+ });
64
99
  }
100
+ const S = I(), B = L(() => S["list-append"]);
65
101
  function h(e, a) {
66
- s.value = l.value !== a ? a : null;
102
+ e.dataTransfer && (k(e), e.dataTransfer.dropEffect = "move", e.dataTransfer.effectAllowed = "move", e.dataTransfer.setData("index", a.toLocaleString()), l.value = !0, o.value = a);
67
103
  }
68
104
  function T(e, a) {
69
- s.value = l.value !== a ? a : null;
105
+ l.value = !1, o.value = null, s.value = null, m.value = "";
106
+ }
107
+ function Q(e, a) {
108
+ }
109
+ function y(e, a) {
110
+ s.value = o.value !== a ? a : null;
111
+ }
112
+ function w(e, a) {
113
+ s.value = o.value !== a ? a : null;
70
114
  }
71
115
  function U(e, a) {
72
116
  }
73
- function $(e, a) {
117
+ function _(e, a) {
74
118
  if (e.dataTransfer) {
75
119
  e.preventDefault();
76
- const u = Number(e.dataTransfer.getData("index")), r = a, t = [...c.value];
77
- (r || r === 0) && (u || u === 0) && t.splice(r, 0, t.splice(u, 1)[0]), c.value = t;
120
+ const u = Number(e.dataTransfer.getData("index")), r = a, t = [...v.value];
121
+ (r || r === 0) && (u || u === 0) && t.splice(r, 0, t.splice(u, 1)[0]), v.value = t;
78
122
  }
79
123
  }
80
- return f(() => o.value, (e) => {
124
+ return f(() => l.value, (e) => {
81
125
  d("update:isDragging", e);
82
- }, { immediate: !0 }), f(() => l.value, (e) => {
126
+ }, { immediate: !0 }), f(() => o.value, (e) => {
83
127
  d("update:dragIndex", e);
84
128
  }, { immediate: !0 }), f(() => s.value, (e) => {
85
129
  d("update:dragOverIndex", e);
86
- }, { immediate: !0 }), (e, a) => (i(), N(C, {
130
+ }, { immediate: !0 }), (e, a) => (i(), M(N, {
87
131
  name: "list",
88
132
  tag: "ul",
89
133
  class: D(["sortable-list p-0 d-flex gap-2", {
90
134
  "flex-column": n.vertical,
91
135
  "flex-row flex-wrap": !n.vertical
92
136
  }]),
93
- onDragover: a[0] || (a[0] = V(() => {
137
+ onDragover: a[0] || (a[0] = A(() => {
94
138
  }, ["prevent"])),
95
- onDragenter: a[1] || (a[1] = V(() => {
139
+ onDragenter: a[1] || (a[1] = A(() => {
96
140
  }, ["prevent"]))
97
141
  }, {
98
- default: M(() => [
99
- (i(!0), g(_, null, x(c.value, (u, r) => (i(), g(_, { key: r }, [
100
- n.showPreview && o.value && s.value === r ? (i(), g("li", {
142
+ default: x(() => [
143
+ (i(!0), g(O, null, C(v.value, (u, r) => (i(), g(O, { key: r }, [
144
+ n.showPreview && l.value && s.value === r ? (i(), g("li", {
101
145
  key: 0,
102
146
  class: "sortable-list__item is-drop-target",
103
- onDragenter: (t) => h(t, r),
104
- onDragover: (t) => T(t, r),
147
+ onDragenter: (t) => y(t, r),
148
+ onDragover: (t) => w(t, r),
105
149
  onDragleave: (t) => void 0,
106
- onDragend: (t) => y(),
107
- onDrop: (t) => $(t, r),
108
- innerHTML: B.value
109
- }, null, 40, F)) : p("", !0),
150
+ onDragend: (t) => T(),
151
+ onDrop: (t) => _(t, r),
152
+ innerHTML: m.value
153
+ }, null, 40, R)) : p("", !0),
110
154
  b("li", {
111
155
  class: D(["sortable-list__item d-flex", {
112
- "is-drag-item": o.value && l.value === r,
113
- "is-drop-target": o.value && s.value === r && !n.showPreview,
156
+ "is-drag-item": l.value && o.value === r,
157
+ "is-drop-target": l.value && s.value === r && !n.showPreview,
114
158
  "align-items-center gap-2": n.vertical
115
159
  }]),
116
160
  draggable: !n.showDragHandle,
117
- onDragstart: (t) => w(t, r),
161
+ onDragstart: (t) => h(t, r),
118
162
  onDrag: (t) => void 0,
119
- onDragenter: (t) => h(t, r),
120
- onDragover: (t) => T(t, r),
163
+ onDragenter: (t) => y(t, r),
164
+ onDragover: (t) => w(t, r),
121
165
  onDragleave: (t) => void 0,
122
- onDragend: (t) => y(),
123
- onDrop: (t) => $(t, r)
166
+ onDragend: (t) => T(),
167
+ onDrop: (t) => _(t, r)
124
168
  }, [
125
- n.showDragHandle ? (i(), g("div", J, [
169
+ n.showDragHandle ? (i(), g("div", q, [
126
170
  b("button", {
127
171
  type: "button",
128
172
  class: "btn",
129
173
  draggable: "true",
130
- onDragstart: (t) => w(t, r),
174
+ onDragstart: (t) => h(t, r),
131
175
  onDrag: (t) => void 0
132
176
  }, [
133
- A(q, { symbol: "drag" })
134
- ], 40, K)
177
+ P(G, { symbol: "drag" })
178
+ ], 40, J)
135
179
  ])) : p("", !0),
136
180
  b("div", {
137
181
  class: D(["sortable-list__item-content", {
138
182
  "flex-grow-1": n.vertical
139
183
  }])
140
184
  }, [
141
- k(e.$slots, "list-item", {
185
+ E(e.$slots, "list-item", {
142
186
  item: u,
143
187
  index: r
144
188
  }, () => [
145
- P(j(u), 1)
189
+ W(j(u), 1)
146
190
  ])
147
191
  ], 2)
148
- ], 42, G)
192
+ ], 42, F)
149
193
  ], 64))), 128)),
150
- I.value ? (i(), g("li", Q, [
151
- k(e.$slots, "list-append")
194
+ B.value ? (i(), g("li", K, [
195
+ E(e.$slots, "list-append")
152
196
  ])) : p("", !0)
153
197
  ]),
154
198
  _: 3
@@ -156,5 +200,5 @@ const F = ["onDragenter", "onDragover", "onDragleave", "onDragend", "onDrop", "i
156
200
  }
157
201
  });
158
202
  export {
159
- ee as default
203
+ te as default
160
204
  };
package/package.json CHANGED
@@ -1,7 +1,23 @@
1
1
  {
2
2
  "name": "ablok-components",
3
3
  "private": false,
4
- "version": "0.3.64",
4
+ "version": "0.3.66",
5
+ "scripts": {
6
+ "dev": "vite --host",
7
+ "story:dev": "histoire dev",
8
+ "story:build": "histoire build",
9
+ "story:preview": "histoire preview",
10
+ "build": "vue-tsc --noEmit --project tsconfig.build.json && vite build",
11
+ "build:watch": "vue-tsc --noEmit --watch --project tsconfig.build.json & vite build --watch",
12
+ "preview": "vite preview",
13
+ "build-lib-bak": "vite build && vue-tsc --emitDeclarationOnly && mv dist/src dist/types",
14
+ "build-lib": "vite build && vue-tsc --emitDeclarationOnly",
15
+ "release": "bash ./scripts/release.sh",
16
+ "postrelease": "bash ./scripts/publish.sh",
17
+ "test": "vitest run",
18
+ "test:watch": "vitest",
19
+ "test:ui": "vitest --ui"
20
+ },
5
21
  "dependencies": {
6
22
  "date-fns": "^3.0.0",
7
23
  "dompurify": "^3.3.1",
@@ -120,21 +136,5 @@
120
136
  "./package.json": "./package.json"
121
137
  },
122
138
  "types": "./dist/index.d.ts",
123
- "sideEffects": false,
124
- "scripts": {
125
- "dev": "vite --host",
126
- "story:dev": "histoire dev",
127
- "story:build": "histoire build",
128
- "story:preview": "histoire preview",
129
- "build": "vue-tsc --noEmit --project tsconfig.build.json && vite build",
130
- "build:watch": "vue-tsc --noEmit --watch --project tsconfig.build.json & vite build --watch",
131
- "preview": "vite preview",
132
- "build-lib-bak": "vite build && vue-tsc --emitDeclarationOnly && mv dist/src dist/types",
133
- "build-lib": "vite build && vue-tsc --emitDeclarationOnly",
134
- "release": "bash ./scripts/release.sh",
135
- "postrelease": "bash ./scripts/publish.sh",
136
- "test": "vitest run",
137
- "test:watch": "vitest",
138
- "test:ui": "vitest --ui"
139
- }
140
- }
139
+ "sideEffects": false
140
+ }