@fastkit/vui 1.1.1 → 1.2.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "keywords": [
6
6
  "fastkit",
@@ -46,37 +46,37 @@
46
46
  "dependencies": {
47
47
  "@fastkit/color-scheme": "^2.1.0",
48
48
  "@fastkit/helpers": "^0.15.0",
49
- "@fastkit/color-scheme-gen": "^1.1.0",
50
49
  "@fastkit/icon-font": "^2.1.0",
51
- "@fastkit/dom": "^0.3.0",
50
+ "@fastkit/color-scheme-gen": "^1.1.0",
52
51
  "@fastkit/media-match": "^2.1.0",
52
+ "@fastkit/dom": "^0.3.0",
53
+ "@fastkit/vue-app-layout": "^0.18.0",
53
54
  "@fastkit/tiny-logger": "^0.15.0",
55
+ "@fastkit/vue-action": "^0.5.0",
56
+ "@fastkit/vue-disabled-reason": "^0.2.0",
57
+ "@fastkit/vue-body-scroll-lock": "^0.4.0",
58
+ "@fastkit/vue-click-outside": "^0.4.0",
59
+ "@fastkit/vue-color-scheme": "^0.17.0",
60
+ "@fastkit/vue-keyboard": "^0.4.0",
61
+ "@fastkit/vue-location": "^0.6.0",
62
+ "@fastkit/vue-loading": "^0.17.0",
63
+ "@fastkit/vue-resize": "^0.4.0",
64
+ "@fastkit/vue-stack": "^0.19.0",
65
+ "@fastkit/vue-form-control": "^0.23.0",
66
+ "@fastkit/vue-media-match": "^0.16.0",
67
+ "@fastkit/vue-scroller": "^0.17.0",
54
68
  "@fastkit/media-match-gen": "^1.1.0",
55
- "@fastkit/stylebase": "^0.13.1",
56
- "@fastkit/vue-action": "^0.4.0",
57
69
  "@fastkit/rules": "^0.15.0",
58
- "@fastkit/vue-click-outside": "^0.3.0",
59
- "@fastkit/vue-disabled-reason": "^0.1.0",
60
- "@fastkit/vue-form-control": "^0.22.1",
61
- "@fastkit/vue-body-scroll-lock": "^0.3.0",
62
- "@fastkit/vue-keyboard": "^0.3.0",
63
- "@fastkit/vue-loading": "^0.16.0",
64
- "@fastkit/vue-app-layout": "^0.17.0",
65
- "@fastkit/vue-location": "^0.5.0",
66
- "@fastkit/vue-color-scheme": "^0.16.0",
67
- "@fastkit/vue-media-match": "^0.15.0",
68
- "@fastkit/vue-scroller": "^0.16.0",
69
- "@fastkit/vue-resize": "^0.3.0",
70
- "@fastkit/vue-stack": "^0.18.0",
71
- "@fastkit/vue-utils": "^0.16.0",
72
- "@fastkit/vue-transitions": "^0.3.0"
70
+ "@fastkit/stylebase": "^0.13.1",
71
+ "@fastkit/vue-transitions": "^0.4.0",
72
+ "@fastkit/vue-utils": "^0.17.0"
73
73
  },
74
74
  "devDependencies": {
75
- "vue": "^3.5.21",
75
+ "vue": "^3.5.22",
76
76
  "vue-router": "^4.5.1"
77
77
  },
78
78
  "peerDependencies": {
79
- "vue": "^3.4.0",
79
+ "vue": "^3.5.0",
80
80
  "vue-router": "^4.4.0"
81
81
  },
82
82
  "buildOptions": {
@@ -64,7 +64,7 @@ export const VControlField = defineComponent({
64
64
  error: Boolean,
65
65
  },
66
66
  emits: {
67
- click: (ev: MouseEvent) => true,
67
+ click: (ev: PointerEvent) => true,
68
68
  },
69
69
  slots,
70
70
  setup(props, ctx) {
@@ -139,7 +139,7 @@ export const VControlField = defineComponent({
139
139
  );
140
140
  };
141
141
 
142
- const handleClick = (ev: MouseEvent) => ctx.emit('click', ev);
142
+ const handleClick = (ev: PointerEvent) => ctx.emit('click', ev);
143
143
 
144
144
  return () => (
145
145
  <div
@@ -493,7 +493,7 @@ export const VDataTable = defineComponent({
493
493
  }
494
494
  }
495
495
 
496
- function handleClickSortHeader(header: DataTableHeader, ev: MouseEvent) {
496
+ function handleClickSortHeader(header: DataTableHeader, ev: PointerEvent) {
497
497
  const { sortQuery } = header;
498
498
  if (!sortQuery) return;
499
499
  if (sortByRef.value === sortQuery) {
@@ -115,7 +115,8 @@ export const VFormControl = defineComponent({
115
115
  vui,
116
116
  );
117
117
 
118
- const handleClick = (ev: MouseEvent) => ctx.emit('clickLabel', ev, control);
118
+ const handleClick = (ev: PointerEvent) =>
119
+ ctx.emit('clickLabel', ev, control);
119
120
 
120
121
  return () => {
121
122
  const label = control.renderLabel();
@@ -77,7 +77,7 @@ export const VIcon = defineComponent({
77
77
  ...iconProps,
78
78
  },
79
79
  emits: {} as {
80
- click: (ev: MouseEvent) => true;
80
+ click: (ev: PointerEvent) => true;
81
81
  },
82
82
  setup(props, ctx) {
83
83
  const iconName = computed(() => props.name);
@@ -177,7 +177,7 @@ export const VNavigationItem = defineComponent({
177
177
  return opened.value ? close() : open();
178
178
  }
179
179
 
180
- const onClick = (ev: MouseEvent) => {
180
+ const onClick = (ev: PointerEvent) => {
181
181
  if (!to.value) {
182
182
  return toggle();
183
183
  }
@@ -267,7 +267,7 @@ export const VPagination = defineComponent({
267
267
  });
268
268
  })();
269
269
 
270
- const onClick = (ev: MouseEvent) => {
270
+ const onClick = (ev: PointerEvent) => {
271
271
  ev.preventDefault();
272
272
  if (page === undefined || active || disabled) return;
273
273
  setPage(page);
@@ -248,10 +248,10 @@ export const VSelect = defineComponent({
248
248
  );
249
249
 
250
250
  if (currentEl) {
251
- const ev = new MouseEvent('click', {
252
- view: window,
251
+ const ev = new PointerEvent('click', {
253
252
  bubbles: true,
254
253
  cancelable: true,
254
+ view: window,
255
255
  });
256
256
  currentEl.dispatchEvent(ev);
257
257
  ev.preventDefault();
@@ -283,7 +283,7 @@ export const VSelect = defineComponent({
283
283
  closeMenu,
284
284
  });
285
285
 
286
- const handleClickLabel = (ev: MouseEvent) => {
286
+ const handleClickLabel = (ev: PointerEvent) => {
287
287
  focus();
288
288
  };
289
289
 
@@ -28,7 +28,7 @@ export const VTab = defineComponent({
28
28
  icon: [String, Function] as PropType<RawIconProp>,
29
29
  },
30
30
  emits: {
31
- click: (ev: MouseEvent) => true,
31
+ click: (ev: PointerEvent) => true,
32
32
  },
33
33
  setup(props, ctx) {
34
34
  const classesRef = computed(() => ({
@@ -60,7 +60,7 @@ export const VTextField = defineComponent({
60
60
 
61
61
  const classes = computed(() => ['v-text-field', control.classes.value]);
62
62
 
63
- const handleClickLabel = (ev: MouseEvent) => {
63
+ const handleClickLabel = (ev: PointerEvent) => {
64
64
  inputControl.focus();
65
65
  };
66
66
 
package/src/service.tsx CHANGED
@@ -439,7 +439,7 @@ export class VuiService {
439
439
  const action: VStackAction = {
440
440
  key,
441
441
  content: ({ control, key }) => {
442
- const onClick = (ev: MouseEvent) => _onClick(control, ev);
442
+ const onClick = (ev: PointerEvent) => _onClick(control, ev);
443
443
 
444
444
  const _attrs: any = {
445
445
  disabled: control.guardInProgress,