@bagelink/vue 1.15.631 → 1.15.635

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 (46) hide show
  1. package/dist/components/AddressSearch.vue.d.ts +0 -3
  2. package/dist/components/AddressSearch.vue.d.ts.map +1 -1
  3. package/dist/components/DataPreview.vue.d.ts +2 -2
  4. package/dist/components/DataPreview.vue.d.ts.map +1 -1
  5. package/dist/components/Dropdown.vue.d.ts +0 -2
  6. package/dist/components/Dropdown.vue.d.ts.map +1 -1
  7. package/dist/components/dataTable/DataTable.vue.d.ts +2 -2
  8. package/dist/components/dataTable/DataTable.vue.d.ts.map +1 -1
  9. package/dist/components/dataTable/useSorting.d.ts +1 -1
  10. package/dist/components/dataTable/useSorting.d.ts.map +1 -1
  11. package/dist/components/dataTable/useTableData.d.ts +1 -1
  12. package/dist/components/dataTable/useTableData.d.ts.map +1 -1
  13. package/dist/components/dataTable/useTableSelection.d.ts +1 -1
  14. package/dist/components/dataTable/useTableSelection.d.ts.map +1 -1
  15. package/dist/components/dataTable/useTableVirtualization.d.ts +1 -1
  16. package/dist/components/dataTable/useTableVirtualization.d.ts.map +1 -1
  17. package/dist/components/form/inputs/IconPickerInput.vue.d.ts +0 -3
  18. package/dist/components/form/inputs/IconPickerInput.vue.d.ts.map +1 -1
  19. package/dist/components/form/inputs/SelectInput.vue.d.ts +0 -6
  20. package/dist/components/form/inputs/SelectInput.vue.d.ts.map +1 -1
  21. package/dist/components/index.d.ts +0 -4
  22. package/dist/components/index.d.ts.map +1 -1
  23. package/dist/components/layout/TabsNav.vue.d.ts.map +1 -1
  24. package/dist/core.css +1 -1
  25. package/dist/index.cjs +35 -35
  26. package/dist/index.css +1 -1
  27. package/dist/index.mjs +8 -16
  28. package/dist/style.css +1 -1
  29. package/dist/types/{TableSchema.d.ts → dataTable.d.ts} +2 -2
  30. package/dist/types/dataTable.d.ts.map +1 -0
  31. package/package.json +1 -1
  32. package/src/components/DataPreview.vue +2 -2
  33. package/src/components/Dropdown.vue +0 -2
  34. package/src/components/dataTable/DataTable.vue +2 -2
  35. package/src/components/dataTable/useSorting.ts +1 -1
  36. package/src/components/dataTable/useTableData.ts +1 -1
  37. package/src/components/dataTable/useTableSelection.ts +1 -1
  38. package/src/components/dataTable/useTableVirtualization.ts +1 -1
  39. package/src/components/index.ts +0 -4
  40. package/src/components/layout/TabsNav.vue +3 -0
  41. package/src/composables/useSchemaField.ts +1 -1
  42. package/src/types/{TableSchema.ts → dataTable.ts} +1 -1
  43. package/dist/components/dataTable/tableTypes.d.ts +0 -39
  44. package/dist/components/dataTable/tableTypes.d.ts.map +0 -1
  45. package/dist/types/TableSchema.d.ts.map +0 -1
  46. package/src/components/dataTable/tableTypes.ts +0 -38
@@ -2,7 +2,7 @@ import { BglFormSchemaT, IconType } from '../index';
2
2
  import { MaybeRefOrGetter, ComputedRef } from 'vue';
3
3
  export type SortDirectionsT = 'ASC' | 'DESC';
4
4
  export type EmitOrderT = `${string} ${SortDirectionsT}`;
5
- export interface TableSchemaProps<T extends {
5
+ export interface DataTableProps<T extends {
6
6
  [key: string]: any;
7
7
  } = {
8
8
  [key: string]: any;
@@ -46,4 +46,4 @@ export interface TableDataOptions<T> {
46
46
  sortDirection: SortDirectionsT;
47
47
  useServerSort?: boolean;
48
48
  }
49
- //# sourceMappingURL=TableSchema.d.ts.map
49
+ //# sourceMappingURL=dataTable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dataTable.d.ts","sourceRoot":"","sources":["../../src/types/dataTable.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAA;AACxD,OAAO,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,KAAK,CAAA;AAExD,MAAM,MAAM,eAAe,GAAG,KAAK,GAAG,MAAM,CAAA;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,MAAM,IAAI,eAAe,EAAE,CAA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B,CAAC,CAAC;IAClC,IAAI,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAA;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,eAAe,CAAA;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAA;CACvB"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "1.15.631",
4
+ "version": "1.15.635",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Bagel Studio",
@@ -1,12 +1,12 @@
1
1
  <script setup lang="ts" generic="T extends { [key: string]: any }, P extends Path<T>">
2
2
  import type { Path, BaseBagelField } from '../index'
3
3
  import type { Slots } from 'vue'
4
- import type { TableSchemaProps } from '../types/TableSchema'
4
+ import type { DataTableProps } from '../types/dataTable'
5
5
  import { computed, useSlots } from 'vue'
6
6
  import { useSchemaField } from '../composables/useSchemaField'
7
7
  import { useTableData } from './dataTable/useTableData'
8
8
 
9
- export interface DataPreviewProps<PT extends { [key: string]: any }> extends Omit<TableSchemaProps<PT>, 'data'> {
9
+ export interface DataPreviewProps<PT extends { [key: string]: any }> extends Omit<DataTableProps<PT>, 'data'> {
10
10
  modelValue: PT
11
11
  includeUnset?: boolean
12
12
  }
@@ -25,9 +25,7 @@ const props = withDefaults(defineProps<{
25
25
  * (e.g. `popup-class="bgl-dark-mode"` for an always-dark recreation). */
26
26
  popupClass?: string
27
27
  iconEnd?: IconType
28
- border?: boolean
29
28
  outline?: boolean
30
- /** Solid fill + a hairline border on the trigger (keeps the background, unlike `outline`). */
31
29
  frame?: boolean
32
30
  round?: boolean
33
31
  placement?: AlignedPlacement
@@ -1,7 +1,7 @@
1
1
  <script setup lang="ts" generic="T extends { [key: string]: any }, P extends Path<T>">
2
2
  import type { BaseBagelField, Field, Path } from '../../index'
3
3
  import type { SetupContext } from 'vue'
4
- import type { TableSchemaProps } from '../../types/TableSchema'
4
+ import type { DataTableProps } from '../../types/dataTable'
5
5
  import type { DraggableEvent } from '../draggable/useDraggable'
6
6
  import {
7
7
  EmptyState,
@@ -19,7 +19,7 @@ import { useTableVirtualization } from './useTableVirtualization'
19
19
  export type SortDirectionsT = 'ASC' | 'DESC'
20
20
  export type EmitOrderT = `${string} ${SortDirectionsT}`
21
21
 
22
- const props = defineProps<TableSchemaProps<T>>()
22
+ const props = defineProps<DataTableProps<T>>()
23
23
 
24
24
  const emit = defineEmits<{
25
25
  orderBy: [EmitOrderT]
@@ -1,4 +1,4 @@
1
- import type { SortDirectionsT, SortingOptions } from '../../types/TableSchema'
1
+ import type { SortDirectionsT, SortingOptions } from '../../types/dataTable'
2
2
  import { ref, computed } from 'vue'
3
3
 
4
4
  export function useSorting(options: SortingOptions) {
@@ -1,7 +1,7 @@
1
1
  import type { BglFormSchemaT, Field, SchemaField } from '../../index'
2
2
  import type { DefaultPathsOptions } from 'type-fest/source/paths'
3
3
  import type { MaybeRefOrGetter } from 'vue'
4
- import type { SortDirectionsT } from '../../types/TableSchema'
4
+ import type { SortDirectionsT } from '../../types/dataTable'
5
5
  import { useBglSchema, isDate, keyToLabel, formatDate } from '../../index'
6
6
  import { computed, ref, watch, toValue } from 'vue'
7
7
 
@@ -1,5 +1,5 @@
1
1
  import type { ComputedRef, Ref } from 'vue'
2
- import type { TableSelectionOptions } from '../../types/TableSchema'
2
+ import type { TableSelectionOptions } from '../../types/dataTable'
3
3
  import { computed, ref } from 'vue'
4
4
 
5
5
  export interface UseTableSelectionOptions<T> extends TableSelectionOptions<T> {
@@ -1,4 +1,4 @@
1
- import type { TableVirtualizationOptions } from '../../types/TableSchema'
1
+ import type { TableVirtualizationOptions } from '../../types/dataTable'
2
2
  import { useVirtualList, useIntersectionObserver, until } from '@vueuse/core'
3
3
  import { ref, toValue, computed } from 'vue'
4
4
 
@@ -7,16 +7,12 @@ export { BarChart, Donut, Funnel, Gauge, LineChart, MapChart, RadialBars, RankBa
7
7
  export type { MapDatum, NormalizeOptions, RawPoint, RawSeries, ValueFormat } from './charts'
8
8
  export { default as Avatar } from './Avatar.vue'
9
9
  export { default as Badge } from './Badge.vue'
10
- /** @deprecated Renamed to Badge. Pill is an alias that will be removed in a future version. */
11
- export { default as Pill } from './Badge.vue'
12
10
  export { default as BglVideo } from './BglVideo.vue'
13
11
  export { default as Btn } from './Btn.vue'
14
12
  export { default as Calendar } from './calendar/Index.vue'
15
13
  export { default as Card } from './Card.vue'
16
14
  export { default as DataPreview } from './DataPreview.vue'
17
15
  export { default as DataTable } from './dataTable/DataTable.vue'
18
- /** @deprecated Use DataTable instead. TableSchema is an alias that will be removed in a future version. */
19
- export { default as TableSchema } from './dataTable/DataTable.vue'
20
16
  export { Draggable, useDraggable, vDraggable, reorderItems, insertionIndexToFinalIndex } from './draggable'
21
17
  export type { DraggableEvent, DraggableOptions } from './draggable'
22
18
  export { default as DragOver } from './DragOver.vue'
@@ -117,6 +117,9 @@ onMounted(() => {
117
117
  updateIndicator()
118
118
  })
119
119
  resizeObserver.observe(tabsWrap.value)
120
+ // The active tab can finish sizing after the wrapper (webfonts, a direct
121
+ // deep link). Wrapper observation misses that, so the indicator stays at 0.
122
+ tabsWrap.value.querySelectorAll('.bgl_tab').forEach(tab => resizeObserver?.observe(tab))
120
123
  }
121
124
 
122
125
  if (typeof window !== 'undefined' && window.visualViewport) {
@@ -29,7 +29,7 @@ const SLOT_VALUE_COMPONENTS = new Set(['div', 'span', 'p'])
29
29
  const SRC_VALUE_COMPONENTS = new Set(['img', 'iframe'])
30
30
 
31
31
  /** Display components that take content via `value` (not `modelValue`). */
32
- const VALUE_PROP_NAMES = new Set(['BglBadge', 'Badge', 'BglPill', 'Pill'])
32
+ const VALUE_PROP_NAMES = new Set(['BglBadge', 'Badge'])
33
33
 
34
34
  function usesValueProp(Component: unknown): boolean {
35
35
  if (!Component || typeof Component === 'string') return false
@@ -4,7 +4,7 @@ import type { MaybeRefOrGetter, ComputedRef } from 'vue'
4
4
  export type SortDirectionsT = 'ASC' | 'DESC'
5
5
  export type EmitOrderT = `${string} ${SortDirectionsT}`
6
6
 
7
- export interface TableSchemaProps<T extends { [key: string]: any } = { [key: string]: any }> {
7
+ export interface DataTableProps<T extends { [key: string]: any } = { [key: string]: any }> {
8
8
  data: T[]
9
9
  schema?: MaybeRefOrGetter<BglFormSchemaT<T>>
10
10
  columns?: MaybeRefOrGetter<string[]>
@@ -1,39 +0,0 @@
1
- import { BglFormSchemaT } from '../../index';
2
- export type SortDirectionsT = 'ASC' | 'DESC';
3
- export type EmitOrderT = `${string} ${SortDirectionsT}`;
4
- export interface TableSchemaProps<T extends {
5
- [key: string]: any;
6
- } = {
7
- [key: string]: any;
8
- }> {
9
- data: T[];
10
- schema?: BglFormSchemaT<T> | (() => BglFormSchemaT<T>);
11
- columns?: string[];
12
- useServerSort?: boolean;
13
- selectable?: boolean;
14
- onLastItemVisible?: () => void;
15
- }
16
- export interface TableDataOptions<T> {
17
- data: T[];
18
- schema?: BglFormSchemaT<T> | (() => BglFormSchemaT<T>);
19
- columns?: string[];
20
- sortField: string;
21
- sortDirection: SortDirectionsT;
22
- useServerSort?: boolean;
23
- }
24
- export interface SortingOptions<T> {
25
- onSort: (field: string, direction: SortDirectionsT) => void;
26
- }
27
- export interface TableSelectionOptions<T> {
28
- selectable: boolean | undefined;
29
- selectedItems: {
30
- value: string[];
31
- };
32
- onSelect: (item: T) => void;
33
- }
34
- export interface TableVirtualizationOptions<T> {
35
- data: T[];
36
- itemHeight: number;
37
- onLastItemVisible?: () => void;
38
- }
39
- //# sourceMappingURL=tableTypes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"tableTypes.d.ts","sourceRoot":"","sources":["../../../src/components/dataTable/tableTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EA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,gBAAgB,CAAC,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,cAAc;IAC9B,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,KAAK,IAAI,CAAA;CAC3D;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC;IACvC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE;QAAE,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAAA;IAClC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,IAAI,CAAA;CAC3B;AAED,MAAM,WAAW,0BAA0B,CAAC,CAAC;IAC5C,IAAI,EAAE,WAAW,CAAC,CAAC,EAAE,CAAC,CAAA;IACtB,UAAU,EAAE,MAAM,CAAA;IAClB,iBAAiB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC;IAClC,IAAI,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAA;IAC3B,MAAM,CAAC,EAAE,gBAAgB,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC,CAAA;IAC5C,OAAO,CAAC,EAAE,gBAAgB,CAAC,MAAM,EAAE,CAAC,CAAA;IACpC,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,eAAe,CAAA;IAC9B,aAAa,CAAC,EAAE,OAAO,CAAA;CACvB"}
@@ -1,38 +0,0 @@
1
- import type { BglFormSchemaT } from '../../index'
2
-
3
- export type SortDirectionsT = 'ASC' | 'DESC'
4
- export type EmitOrderT = `${string} ${SortDirectionsT}`
5
-
6
- export interface TableSchemaProps<T extends { [key: string]: any } = { [key: string]: any }> {
7
- data: T[]
8
- schema?: BglFormSchemaT<T> | (() => BglFormSchemaT<T>)
9
- columns?: string[]
10
- useServerSort?: boolean
11
- selectable?: boolean
12
- onLastItemVisible?: () => void
13
- }
14
-
15
- export interface TableDataOptions<T> {
16
- data: T[]
17
- schema?: BglFormSchemaT<T> | (() => BglFormSchemaT<T>)
18
- columns?: string[]
19
- sortField: string
20
- sortDirection: SortDirectionsT
21
- useServerSort?: boolean
22
- }
23
-
24
- export interface SortingOptions<T> {
25
- onSort: (field: string, direction: SortDirectionsT) => void
26
- }
27
-
28
- export interface TableSelectionOptions<T> {
29
- selectable: boolean | undefined
30
- selectedItems: { value: string[] }
31
- onSelect: (item: T) => void
32
- }
33
-
34
- export interface TableVirtualizationOptions<T> {
35
- data: T[]
36
- itemHeight: number
37
- onLastItemVisible?: () => void
38
- }