@jvs-milkdown/components 1.1.2 → 1.1.4

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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2020-present Mirone
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -1 +1 @@
1
- {"version":3,"file":"prepare-dnd-context.d.ts","sourceRoot":"","sources":["../../../src/table-block/dnd/prepare-dnd-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEtD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,GAAG,SAAS,CA2CrE"}
1
+ {"version":3,"file":"prepare-dnd-context.d.ts","sourceRoot":"","sources":["../../../src/table-block/dnd/prepare-dnd-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM,eAAe,CAAA;AAEtD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,GAAG,SAAS,CAmCrE"}
@@ -3616,6 +3616,8 @@ const TableBlock = defineComponent({
3616
3616
  const hoverIndex = ref([0, 0]);
3617
3617
  ref([-1, -1]);
3618
3618
  const dragInfo = ref();
3619
+ const yLineHandleRef = ref();
3620
+ const xLineHandleRef = ref();
3619
3621
  const resizingCol = ref(-1);
3620
3622
  const colWidths = ref([]);
3621
3623
  const syncColWidths = () => {
@@ -3642,6 +3644,8 @@ const TableBlock = defineComponent({
3642
3644
  dragPreviewRef,
3643
3645
  tableWrapperRef,
3644
3646
  contentWrapperRef,
3647
+ yLineHandleRef,
3648
+ xLineHandleRef,
3645
3649
  hoverIndex,
3646
3650
  dragInfo
3647
3651
  };
@@ -3909,9 +3913,9 @@ const TableBlock = defineComponent({
3909
3913
  hoverIndex.value = [0, i];
3910
3914
  dragCol(e);
3911
3915
  },
3912
- onClick: (e) => {
3916
+ onClick: () => {
3913
3917
  hoverIndex.value = [0, i];
3914
- selectCol(e);
3918
+ selectCol();
3915
3919
  activeColIndex.value = i;
3916
3920
  activeRowIndex.value = -1;
3917
3921
  },
@@ -4008,9 +4012,9 @@ const TableBlock = defineComponent({
4008
4012
  hoverIndex.value = [i, 0];
4009
4013
  dragRow(e);
4010
4014
  },
4011
- onClick: (e) => {
4015
+ onClick: () => {
4012
4016
  hoverIndex.value = [i, 0];
4013
- selectRow(e);
4017
+ selectRow();
4014
4018
  activeRowIndex.value = i;
4015
4019
  activeColIndex.value = -1;
4016
4020
  },