@stonecrop/atable 0.2.67 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  import { type CSSProperties } from 'vue';
2
- import type { CellContext, TableColumn, TableConfig, TableDisplay, TableModal, TableRow } from '@/types';
2
+ import type { CellContext, TableColumn, TableConfig, TableDisplay, TableModal, TableRow } from '../types';
3
3
  /**
4
4
  * Create a table store
5
5
  * @param initData - Initial data for the table store
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/stores/table.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAiB,MAAM,KAAK,CAAA;AAEvD,OAAO,KAAK,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,YAAY,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAExG;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAc;IAC1C,OAAO,EAAE,WAAW,EAAE,CAAA;IACtB,IAAI,EAAE,QAAQ,EAAE,CAAA;IAChB,EAAE,CAAC,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,WAAW,CAAA;IACpB,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,CAAA;IAC9B,OAAO,CAAC,EAAE,YAAY,EAAE,CAAA;IACxB,KAAK,CAAC,EAAE,UAAU,CAAA;CAClB;;;;;;;;;;;2CAXiB,CAAC;;+CAMlB,CAAD;;;;;;;;;;;;2CANkB,CAAC;;+CAMlB,CAAD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAwJ6B,UAAU;kBA7EhB,CAAC,kBAAkB,MAAM,YAAY,MAAM,KAAG,CAAC;oCAmD7B,MAAM,YAAY,MAAM;kCAK1B,MAAM,YAAY,MAAM,SAAS,GA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4BAlBP,MAAM,YAAY,MAAM,SAAS,GAAG;gCAkChC,MAAM;;;;;;;;;;;;2CApHzB,CAAA;;+CAKF,CAAC;;;;;;;;;;;;2CALC,CAAA;;+CAKF,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyJY,UAAU;kBA7EhB,CAAC,kBAAkB,MAAM,YAAY,MAAM,KAAG,CAAC;oCAmD7B,MAAM,YAAY,MAAM;kCAK1B,MAAM,YAAY,MAAM,SAAS,GAAG;iCA3CrC,WAAW,KAAG,aAAa;0BA0ElC,MAAM,gBAAgB,MAAM;mCAhEnB,MAAM;6BAJZ,MAAM;4BAlBP,MAAM,YAAY,MAAM,SAAS,GAAG;gCAkChC,MAAM;gMAyF1C,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stonecrop/atable",
3
- "version": "0.2.67",
3
+ "version": "0.3.0",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "author": {
@@ -38,8 +38,8 @@
38
38
  "@vueuse/core": "^11.1.0",
39
39
  "pinia": "^2.3.0",
40
40
  "vue": "^3.5.11",
41
- "@stonecrop/utilities": "0.2.67",
42
- "@stonecrop/themes": "0.2.67"
41
+ "@stonecrop/themes": "0.3.0",
42
+ "@stonecrop/utilities": "0.3.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@microsoft/api-documenter": "^7.26.2",
@@ -32,8 +32,8 @@ import { vOnClickOutside } from '@vueuse/components'
32
32
  import { useElementBounding } from '@vueuse/core'
33
33
  import { computed, CSSProperties, ref, useTemplateRef } from 'vue'
34
34
 
35
- import { createTableStore } from '@/stores/table'
36
- import { isHtmlString } from '@/utils'
35
+ import { createTableStore } from '../stores/table'
36
+ import { isHtmlString } from '../utils'
37
37
 
38
38
  const {
39
39
  colIndex,
@@ -16,7 +16,7 @@
16
16
  import { type KeypressHandlers, useKeyboardNav } from '@stonecrop/utilities'
17
17
  import { computed, useTemplateRef } from 'vue'
18
18
 
19
- import { createTableStore } from '@/stores/table'
19
+ import { createTableStore } from '../stores/table'
20
20
 
21
21
  const {
22
22
  rowIndex,
@@ -28,7 +28,7 @@
28
28
  import { type KeypressHandlers, useKeyboardNav, defaultKeypressHandlers } from '@stonecrop/utilities'
29
29
  import { useTemplateRef } from 'vue'
30
30
 
31
- import { createTableStore } from '@/stores/table'
31
+ import { createTableStore } from '../stores/table'
32
32
 
33
33
  const {
34
34
  rowIndex,
@@ -56,12 +56,12 @@
56
56
  import { useMutationObserver } from '@vueuse/core'
57
57
  import { nextTick, watch, onMounted, useTemplateRef } from 'vue'
58
58
 
59
- import ACell from '@/components/ACell.vue'
60
- import ARow from '@/components/ARow.vue'
61
- import ATableHeader from '@/components/ATableHeader.vue'
62
- import ATableModal from '@/components/ATableModal.vue'
63
- import { createTableStore } from '@/stores/table'
64
- import type { TableColumn, TableConfig, TableRow } from '@/types'
59
+ import ACell from './ACell.vue'
60
+ import ARow from './ARow.vue'
61
+ import ATableHeader from './ATableHeader.vue'
62
+ import ATableModal from './ATableModal.vue'
63
+ import { createTableStore } from '../stores/table'
64
+ import type { TableColumn, TableConfig, TableRow } from '../types'
65
65
 
66
66
  const {
67
67
  id,
@@ -23,8 +23,8 @@
23
23
  </template>
24
24
 
25
25
  <script setup lang="ts">
26
- import { createTableStore } from '@/stores/table'
27
- import type { TableColumn } from '@/types'
26
+ import { createTableStore } from '../stores/table'
27
+ import type { TableColumn } from '../types'
28
28
 
29
29
  const { columns, store } = defineProps<{
30
30
  columns: TableColumn[]
@@ -5,7 +5,7 @@
5
5
  </template>
6
6
 
7
7
  <script setup lang="ts">
8
- import { createTableStore } from '@/stores/table'
8
+ import { createTableStore } from '../stores/table'
9
9
 
10
10
  /* const { colIndex, rowIndex, store } = */ defineProps<{
11
11
  colIndex?: number
@@ -1,7 +1,7 @@
1
1
  import { defineStore } from 'pinia'
2
2
  import { type CSSProperties, computed, ref } from 'vue'
3
3
 
4
- import type { CellContext, TableColumn, TableConfig, TableDisplay, TableModal, TableRow } from '@/types'
4
+ import type { CellContext, TableColumn, TableConfig, TableDisplay, TableModal, TableRow } from '../types'
5
5
 
6
6
  /**
7
7
  * Create a table store