@ironsource/shared-ui 1.4.3-rc.4 → 1.4.3
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/AddFilterButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/AutocompleteInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Banner.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Button.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/ButtonBase.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/CalendarMonth.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Chip.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/DateRange.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dialog.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Dropdown.vue_vue_type_style_index_1_lang.css +1 -1
- package/Editable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/EmptyState.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FilterSearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/FloatingToolbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IconButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExclude.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeAppTrigger.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeChipFilter.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/IncludeExcludeDragDrop.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/IncludeExcludeOptionDraggable.vue_vue_type_style_index_0_scoped_true_lang.css +1 -0
- package/Input.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Menu.vue_vue_type_style_index_1_lang.css +1 -1
- package/MenuItem.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Popover.vue_vue_type_style_index_0_lang.css +1 -1
- package/README.md +36 -21
- package/ScrollButton.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Search.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/SearchInput.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Snackbar.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Switch.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Table.vue_vue_type_style_index_1_lang.css +1 -1
- package/Tabs.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/TextArea.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/Toggle.vue_vue_type_style_index_0_scoped_true_lang.css +1 -1
- package/components/appTrigger/AppTrigger.vue.js +3 -3
- package/components/autocompleteDropdown/AutocompleteDropdown.vue.js +1 -2
- package/components/button/{common/ButtonSuper.vue.js → Button.vue.js} +7 -7
- package/components/button/{common/ButtonBase.vue.d.ts → ButtonBase.vue.d.ts} +9 -9
- package/components/button/{common/ButtonBase.vue.js → ButtonBase.vue.js} +8 -8
- package/components/button/{v3/IconButton.vue.js → IconButton.vue.js} +7 -7
- package/components/button/{v3/ScrollButton.vue.js → ScrollButton.vue.js} +6 -6
- package/components/button/index.d.ts +126 -0
- package/components/checkbox/Checkbox.vue.d.ts +1 -1
- package/components/checkbox/index.d.ts +9 -9
- package/components/chip/{v3/Chip.vue.js → Chip.vue.js} +5 -5
- package/components/dateRange/CalendarMonth.vue.js +3 -3
- package/components/dateRange/DateRange.vue.js +4 -4
- package/components/dateRange/consts.d.ts +5 -0
- package/components/dateRange/consts.vue.js +8 -0
- package/components/dateRange/index.d.ts +3 -3
- package/components/dialog/Dialog.vue.d.ts +1 -1
- package/components/dialog/Dialog.vue.js +6 -7
- package/components/dialog/index.d.ts +11 -11
- package/components/dropdown/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/Dropdown.vue.js +5 -5
- package/components/dropdown/SearchInput.vue.js +5 -6
- package/components/dropdown/index.d.ts +16 -16
- package/components/emptyState/EmptyState.vue.d.ts +1 -1
- package/components/emptyState/EmptyState.vue.js +4 -4
- package/components/emptyState/index.d.ts +14 -14
- package/components/filterDropdown/AddFilterButton.vue.js +2 -2
- package/components/filterDropdown/FilterDropdown.vue.js +1 -2
- package/components/filtersPanel/FilterSearchInput.vue.js +2 -2
- package/components/floatingToolbar/FloatingToolbar.vue.js +5 -6
- package/components/icon/Icon.vue.js +2 -0
- package/components/icon/icons/Hammer.vue.d.ts +2 -0
- package/components/icon/icons/Hammer.vue.js +26 -0
- package/components/icon/icons/TableEdit.vue.d.ts +2 -0
- package/components/icon/icons/TableEdit.vue.js +24 -0
- package/components/icon/icons/index.d.ts +6 -0
- package/components/icon/icons/index.vue.js +6 -0
- package/components/icon/index.d.ts +6 -0
- package/components/includeExclude/IncludeExclude.vue.js +5 -5
- package/components/includeExclude/IncludeExcludeAppHeader.vue.js +7 -4
- package/components/includeExclude/IncludeExcludeAppTrigger.vue.js +3 -3
- package/components/includeExclude/IncludeExcludeChipFilter.vue.js +8 -6
- package/components/includeExclude/IncludeExcludeDragDrop.vue.d.ts +125 -0
- package/components/includeExclude/IncludeExcludeDragDrop.vue.js +610 -0
- package/components/{chip/v4/ChipV4.vue.d.ts → includeExclude/IncludeExcludeOptionDraggable.vue.d.ts} +18 -23
- package/components/includeExclude/IncludeExcludeOptionDraggable.vue.js +126 -0
- package/components/includeExclude/includeExcludeMocks.d.ts +12 -0
- package/components/includeExclude/index.d.ts +228 -7
- package/components/includeExclude/index.vue.js +6 -0
- package/components/input/Input.vue.d.ts +2 -2
- package/components/input/Input.vue.js +3 -3
- package/components/input/index.d.ts +16 -16
- package/components/menu/Menu.vue.d.ts +1 -1
- package/components/menu/index.d.ts +5 -5
- package/components/snackbar/Snackbar.vue.d.ts +1 -1
- package/components/snackbar/Snackbar.vue.js +5 -6
- package/components/switch/{v3/Switch.vue.js → Switch.vue.js} +5 -5
- package/components/table/Table.types.d.ts +1 -0
- package/components/table/Table.vue.d.ts +13 -0
- package/components/table/Table.vue.js +34 -12
- package/components/table/index.d.ts +25 -0
- package/components/table-cells/Editable.vue.js +1 -1
- package/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/components/tooltip/index.d.ts +5 -5
- package/components/typography/index.d.ts +9 -9
- package/index.d.ts +3 -429
- package/index.vue.js +11 -18
- package/package.json +13 -21
- package/styleguide.scss +78 -77
- package/ButtonBase.vue_vue_type_style_index_1_scoped_true_lang.css +0 -1
- package/ButtonSuper.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
- package/ButtonV4.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
- package/ChipV4.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
- package/SwitchV4.vue_vue_type_style_index_0_scoped_true_lang.css +0 -1
- package/components/ThemeWrapper/ThemeStrore.d.ts +0 -4
- package/components/ThemeWrapper/ThemeWrapper.vue.d.ts +0 -15
- package/components/button/common/ButtonSuper.vue.d.ts +0 -42
- package/components/button/v3/Button.vue.js +0 -40
- package/components/button/v3/index.d.ts +0 -126
- package/components/button/v4/ButtonV4.vue.d.ts +0 -52
- package/components/button/v4/ButtonV4.vue.js +0 -44
- package/components/button/v4/index.d.ts +0 -72
- package/components/button/v4/index.vue.js +0 -6
- package/components/chip/v4/ChipV4.vue.js +0 -76
- package/components/chip/v4/index.d.ts +0 -63
- package/components/chip/v4/index.vue.js +0 -6
- package/components/switch/v4/SwitchV4.vue.d.ts +0 -37
- package/components/switch/v4/SwitchV4.vue.js +0 -87
- package/components/switch/v4/index.d.ts +0 -46
- package/components/switch/v4/index.vue.js +0 -6
- /package/components/button/{v3/Button.vue.d.ts → Button.vue.d.ts} +0 -0
- /package/components/button/{v3/IconButton.vue.d.ts → IconButton.vue.d.ts} +0 -0
- /package/components/button/{v3/ScrollButton.vue.d.ts → ScrollButton.vue.d.ts} +0 -0
- /package/components/button/{v3/index.vue.js → index.vue.js} +0 -0
- /package/components/chip/{v3/Chip.vue.d.ts → Chip.vue.d.ts} +0 -0
- /package/components/chip/{v3/index.d.ts → index.d.ts} +0 -0
- /package/components/chip/{v3/index.vue.js → index.vue.js} +0 -0
- /package/components/switch/{v3/Switch.vue.d.ts → Switch.vue.d.ts} +0 -0
- /package/components/switch/{v3/index.d.ts → index.d.ts} +0 -0
- /package/components/switch/{v3/index.vue.js → index.vue.js} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { defineComponent, ref, computed, onMounted, openBlock, createElementBlock, normalizeClass, unref, createElementVNode, normalizeStyle, Fragment, renderList, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import { useVModel } from '@vueuse/core';
|
|
3
|
-
import Text from '
|
|
4
|
-
import { SwitchTestIdModifiers } from '
|
|
5
|
-
/* empty css */import _export_sfc from '
|
|
3
|
+
import Text from '../typography/Text.vue.js';
|
|
4
|
+
import { SwitchTestIdModifiers } from '../../testids/index.vue.js';
|
|
5
|
+
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
6
6
|
|
|
7
|
-
import "
|
|
7
|
+
import "../../Switch.vue_vue_type_style_index_0_scoped_true_lang.css";
|
|
8
8
|
const _hoisted_1 = ["data-testid"];
|
|
9
9
|
const _hoisted_2 = ["aria-label", "data-testid", "onClick"];
|
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -82,6 +82,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
});
|
|
85
|
-
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
85
|
+
var Switch = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5a16f3a6"]]);
|
|
86
86
|
|
|
87
87
|
export { Switch as default };
|
|
@@ -6,6 +6,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
6
6
|
sections?: Section[];
|
|
7
7
|
sort: Sort;
|
|
8
8
|
isSticky?: boolean;
|
|
9
|
+
isStickyHeader?: boolean;
|
|
9
10
|
isLoading?: boolean;
|
|
10
11
|
emptyStateTitle?: string;
|
|
11
12
|
emptyStateSubtitle?: string;
|
|
@@ -13,9 +14,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
13
14
|
infiniteScrollThreshold?: number;
|
|
14
15
|
rowHeight?: number | ((index: number) => number);
|
|
15
16
|
loadingRowCount?: number;
|
|
17
|
+
defaultScrollPosition?: number;
|
|
16
18
|
testId?: string;
|
|
17
19
|
}>, {
|
|
18
20
|
isSticky: boolean;
|
|
21
|
+
isStickyHeader: boolean;
|
|
19
22
|
sections: any;
|
|
20
23
|
isLoading: boolean;
|
|
21
24
|
sortOrder: string;
|
|
@@ -25,9 +28,12 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
25
28
|
infiniteScrollThreshold: number;
|
|
26
29
|
rowHeight: number;
|
|
27
30
|
loadingRowCount: number;
|
|
31
|
+
defaultScrollPosition: any;
|
|
28
32
|
testId: string;
|
|
29
33
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
30
34
|
"update:sort": (newSort: Sort) => void;
|
|
35
|
+
} & {
|
|
36
|
+
onScroll: (event: Event) => void;
|
|
31
37
|
} & {
|
|
32
38
|
saveRow: (payload_0: {
|
|
33
39
|
value: unknown;
|
|
@@ -44,6 +50,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
44
50
|
sections?: Section[];
|
|
45
51
|
sort: Sort;
|
|
46
52
|
isSticky?: boolean;
|
|
53
|
+
isStickyHeader?: boolean;
|
|
47
54
|
isLoading?: boolean;
|
|
48
55
|
emptyStateTitle?: string;
|
|
49
56
|
emptyStateSubtitle?: string;
|
|
@@ -51,9 +58,11 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
51
58
|
infiniteScrollThreshold?: number;
|
|
52
59
|
rowHeight?: number | ((index: number) => number);
|
|
53
60
|
loadingRowCount?: number;
|
|
61
|
+
defaultScrollPosition?: number;
|
|
54
62
|
testId?: string;
|
|
55
63
|
}>, {
|
|
56
64
|
isSticky: boolean;
|
|
65
|
+
isStickyHeader: boolean;
|
|
57
66
|
sections: any;
|
|
58
67
|
isLoading: boolean;
|
|
59
68
|
sortOrder: string;
|
|
@@ -63,8 +72,10 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
63
72
|
infiniteScrollThreshold: number;
|
|
64
73
|
rowHeight: number;
|
|
65
74
|
loadingRowCount: number;
|
|
75
|
+
defaultScrollPosition: any;
|
|
66
76
|
testId: string;
|
|
67
77
|
}>>> & {
|
|
78
|
+
onOnScroll?: (event: Event) => any;
|
|
68
79
|
"onUpdate:sort"?: (newSort: Sort) => any;
|
|
69
80
|
onSaveRow?: (args_0: {
|
|
70
81
|
value: unknown;
|
|
@@ -77,6 +88,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
77
88
|
testId: string;
|
|
78
89
|
isLoading: boolean;
|
|
79
90
|
isSticky: boolean;
|
|
91
|
+
isStickyHeader: boolean;
|
|
80
92
|
sections: Section[];
|
|
81
93
|
emptyStateTitle: string;
|
|
82
94
|
emptyStateSubtitle: string;
|
|
@@ -84,6 +96,7 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
84
96
|
infiniteScrollThreshold: number;
|
|
85
97
|
rowHeight: number | ((index: number) => number);
|
|
86
98
|
loadingRowCount: number;
|
|
99
|
+
defaultScrollPosition: number;
|
|
87
100
|
}>;
|
|
88
101
|
export default _default;
|
|
89
102
|
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { defineComponent, useCssVars, unref, ref, provide, computed, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode,
|
|
1
|
+
import { defineComponent, useCssVars, unref, ref, provide, computed, useSlots, onMounted, openBlock, createElementBlock, createElementVNode, normalizeStyle, normalizeClass, renderSlot, createVNode, withCtx, createTextVNode, toDisplayString, createCommentVNode, Fragment, renderList, createBlock, mergeProps, withDirectives, vShow } from 'vue';
|
|
2
2
|
import { TableTestIdModifiers } from '../../testids/index.vue.js';
|
|
3
3
|
/* empty css */import _export_sfc from '../../_virtual/plugin-vue_export-helper.vue.js';
|
|
4
4
|
import Text from '../typography/Text.vue.js';
|
|
5
|
-
/* empty css *//* empty css
|
|
5
|
+
/* empty css *//* empty css *//* empty css *//* empty css */import ScrollButton from '../button/ScrollButton.vue.js';
|
|
6
6
|
import Skeleton from '../skeleton/Skeleton.vue.js';
|
|
7
7
|
import EmptyState from '../emptyState/EmptyState.vue.js';
|
|
8
8
|
import TableHeaderSorter from './TableHeaderSorter.vue.js';
|
|
@@ -32,6 +32,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
sections: { default: null },
|
|
33
33
|
sort: null,
|
|
34
34
|
isSticky: { type: Boolean, default: true },
|
|
35
|
+
isStickyHeader: { type: Boolean, default: false },
|
|
35
36
|
isLoading: { type: Boolean, default: false },
|
|
36
37
|
emptyStateTitle: { default: "No results found" },
|
|
37
38
|
emptyStateSubtitle: { default: "Try again with different filters" },
|
|
@@ -39,13 +40,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
39
40
|
infiniteScrollThreshold: { default: 100 },
|
|
40
41
|
rowHeight: { type: [Number, Function], default: 48 },
|
|
41
42
|
loadingRowCount: { default: 3 },
|
|
43
|
+
defaultScrollPosition: { default: null },
|
|
42
44
|
testId: { default: "" }
|
|
43
45
|
},
|
|
44
|
-
emits: ["update:sort", "saveRow", "loadMore"],
|
|
46
|
+
emits: ["update:sort", "onScroll", "saveRow", "loadMore"],
|
|
45
47
|
setup(__props, { emit }) {
|
|
46
48
|
const props = __props;
|
|
47
49
|
useCssVars((_ctx) => ({
|
|
48
|
-
"
|
|
50
|
+
"7bbb8810": unref(gridColumnTemplate)
|
|
49
51
|
}));
|
|
50
52
|
const savingRows = ref([]);
|
|
51
53
|
provide(TableContext, {
|
|
@@ -65,6 +67,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
67
|
});
|
|
66
68
|
const gridColumnTemplate = computed(() => {
|
|
67
69
|
return props.columns.reduce((acc, column) => {
|
|
70
|
+
if (column === props.columns[props.columns.length - 1] && column.width) {
|
|
71
|
+
return `${acc} minmax(${column.width}px, 1fr)`;
|
|
72
|
+
}
|
|
68
73
|
const columnTemplate = column.width ? `${column.width}px` : `${column.colSpan || 1}fr`;
|
|
69
74
|
return `${acc} ${columnTemplate}`;
|
|
70
75
|
}, "");
|
|
@@ -83,12 +88,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
83
88
|
});
|
|
84
89
|
const floatingActionRef = ref(null);
|
|
85
90
|
const floatingActionPosition = ref(0);
|
|
91
|
+
const slots = useSlots();
|
|
92
|
+
const hasSearchSlot = computed(() => !!slots.search);
|
|
86
93
|
const onScroll = (event) => {
|
|
87
94
|
containerProps.onScroll();
|
|
88
95
|
floatingActionPosition.value = event.target.scrollLeft + event.target.getBoundingClientRect().width;
|
|
96
|
+
emit("onScroll", event.target.scrollTop);
|
|
89
97
|
};
|
|
90
98
|
onMounted(() => {
|
|
91
99
|
floatingActionPosition.value = containerProps.ref.value?.getBoundingClientRect().width;
|
|
100
|
+
if (props.defaultScrollPosition) {
|
|
101
|
+
setTimeout(() => {
|
|
102
|
+
containerProps.ref.value.scrollTo({
|
|
103
|
+
top: props.defaultScrollPosition,
|
|
104
|
+
behavior: "smooth"
|
|
105
|
+
});
|
|
106
|
+
}, 300);
|
|
107
|
+
}
|
|
92
108
|
});
|
|
93
109
|
const showBackToTopButton = computed(() => {
|
|
94
110
|
const [firstListItem] = list.value;
|
|
@@ -161,11 +177,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
161
177
|
}, [
|
|
162
178
|
__props.title || _ctx.$slots["search"] ? (openBlock(), createElementBlock("div", {
|
|
163
179
|
key: 0,
|
|
164
|
-
class: "table-header",
|
|
180
|
+
class: normalizeClass(["table-header", { isStickyHeader: __props.isStickyHeader }]),
|
|
165
181
|
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).HEADER}`
|
|
166
182
|
}, [
|
|
167
183
|
createElementVNode("div", {
|
|
168
|
-
class: "table-title",
|
|
184
|
+
class: normalizeClass(["table-title", unref(hasSearchSlot) ? "border-search" : ""]),
|
|
169
185
|
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).TITLE}`
|
|
170
186
|
}, [
|
|
171
187
|
renderSlot(_ctx.$slots, "title", {}, () => [
|
|
@@ -179,7 +195,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
179
195
|
_: 1
|
|
180
196
|
})
|
|
181
197
|
], true)
|
|
182
|
-
],
|
|
198
|
+
], 10, _hoisted_4),
|
|
183
199
|
createElementVNode("div", {
|
|
184
200
|
class: "table-header-right",
|
|
185
201
|
"data-testid": `${__props.testId}-${unref(TableTestIdModifiers).HEADER_RIGHT}`
|
|
@@ -192,9 +208,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
192
208
|
}, [
|
|
193
209
|
renderSlot(_ctx.$slots, "table-header-actions", {}, void 0, true)
|
|
194
210
|
], 8, _hoisted_6)
|
|
195
|
-
],
|
|
211
|
+
], 10, _hoisted_3)) : createCommentVNode("", true),
|
|
196
212
|
createElementVNode("thead", {
|
|
197
|
-
class: normalizeClass({ sticky: __props.isSticky })
|
|
213
|
+
class: normalizeClass({ sticky: __props.isSticky, isStickyHeader: __props.isStickyHeader })
|
|
198
214
|
}, [
|
|
199
215
|
createElementVNode("div", {
|
|
200
216
|
class: "sections",
|
|
@@ -225,7 +241,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
241
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
226
242
|
return openBlock(), createElementBlock("th", {
|
|
227
243
|
key: column.id,
|
|
228
|
-
class: normalizeClass({
|
|
244
|
+
class: normalizeClass({
|
|
245
|
+
sticky: column.isSticky,
|
|
246
|
+
bordered: column.isBordered,
|
|
247
|
+
isTextRight: column.isTextRight,
|
|
248
|
+
isSortable: column.isSortable
|
|
249
|
+
}),
|
|
229
250
|
style: normalizeStyle(column.isSticky ? unref(columnsStickyPositions)[column.id] : null),
|
|
230
251
|
onClick: ($event) => toggleSortOrder(column)
|
|
231
252
|
}, [
|
|
@@ -286,7 +307,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
286
307
|
key: cellIndex,
|
|
287
308
|
class: normalizeClass({
|
|
288
309
|
sticky: __props.columns[cellIndex].isSticky,
|
|
289
|
-
bordered: __props.columns[cellIndex].isBordered
|
|
310
|
+
bordered: __props.columns[cellIndex].isBordered,
|
|
311
|
+
isTextRight: __props.columns[cellIndex].isTextRight
|
|
290
312
|
}),
|
|
291
313
|
style: normalizeStyle(
|
|
292
314
|
__props.columns[cellIndex].isSticky ? unref(columnsStickyPositions)[__props.columns[cellIndex].id] : null
|
|
@@ -341,6 +363,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
341
363
|
};
|
|
342
364
|
}
|
|
343
365
|
});
|
|
344
|
-
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
366
|
+
var Table = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-91b0dc76"]]);
|
|
345
367
|
|
|
346
368
|
export { Table as default };
|
|
@@ -26,6 +26,11 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
26
26
|
} & {
|
|
27
27
|
default: boolean;
|
|
28
28
|
};
|
|
29
|
+
isStickyHeader: {
|
|
30
|
+
type: import("vue").PropType<boolean>;
|
|
31
|
+
} & {
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
29
34
|
sections: {
|
|
30
35
|
type: import("vue").PropType<import("./Table.types").Section[]>;
|
|
31
36
|
} & {
|
|
@@ -61,12 +66,19 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
61
66
|
} & {
|
|
62
67
|
default: number;
|
|
63
68
|
};
|
|
69
|
+
defaultScrollPosition: {
|
|
70
|
+
type: import("vue").PropType<number>;
|
|
71
|
+
} & {
|
|
72
|
+
default: any;
|
|
73
|
+
};
|
|
64
74
|
rows: {
|
|
65
75
|
type: import("vue").PropType<unknown[][]>;
|
|
66
76
|
required: true;
|
|
67
77
|
};
|
|
68
78
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
69
79
|
"update:sort": (newSort: import("./Table.types").Sort) => void;
|
|
80
|
+
} & {
|
|
81
|
+
onScroll: (event: Event) => void;
|
|
70
82
|
} & {
|
|
71
83
|
saveRow: (payload_0: {
|
|
72
84
|
value: unknown;
|
|
@@ -104,6 +116,11 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
104
116
|
} & {
|
|
105
117
|
default: boolean;
|
|
106
118
|
};
|
|
119
|
+
isStickyHeader: {
|
|
120
|
+
type: import("vue").PropType<boolean>;
|
|
121
|
+
} & {
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
107
124
|
sections: {
|
|
108
125
|
type: import("vue").PropType<import("./Table.types").Section[]>;
|
|
109
126
|
} & {
|
|
@@ -139,11 +156,17 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
139
156
|
} & {
|
|
140
157
|
default: number;
|
|
141
158
|
};
|
|
159
|
+
defaultScrollPosition: {
|
|
160
|
+
type: import("vue").PropType<number>;
|
|
161
|
+
} & {
|
|
162
|
+
default: any;
|
|
163
|
+
};
|
|
142
164
|
rows: {
|
|
143
165
|
type: import("vue").PropType<unknown[][]>;
|
|
144
166
|
required: true;
|
|
145
167
|
};
|
|
146
168
|
}>> & {
|
|
169
|
+
onOnScroll?: (event: Event) => any;
|
|
147
170
|
"onUpdate:sort"?: (newSort: import("./Table.types").Sort) => any;
|
|
148
171
|
onSaveRow?: (args_0: {
|
|
149
172
|
value: unknown;
|
|
@@ -156,6 +179,7 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
156
179
|
testId: string;
|
|
157
180
|
isLoading: boolean;
|
|
158
181
|
isSticky: boolean;
|
|
182
|
+
isStickyHeader: boolean;
|
|
159
183
|
sections: import("./Table.types").Section[];
|
|
160
184
|
emptyStateTitle: string;
|
|
161
185
|
emptyStateSubtitle: string;
|
|
@@ -163,6 +187,7 @@ declare const TableTypes: () => (import("vue").InjectionKey<import("./TableConte
|
|
|
163
187
|
infiniteScrollThreshold: number;
|
|
164
188
|
rowHeight: number | ((index: number) => number);
|
|
165
189
|
loadingRowCount: number;
|
|
190
|
+
defaultScrollPosition: number;
|
|
166
191
|
}>)[];
|
|
167
192
|
export { default as Table } from './Table.vue';
|
|
168
193
|
export { TableContext } from './TableContext';
|
|
@@ -84,6 +84,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
84
|
};
|
|
85
85
|
}
|
|
86
86
|
});
|
|
87
|
-
var Editable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
87
|
+
var Editable = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5bc75a92"]]);
|
|
88
88
|
|
|
89
89
|
export { Editable as default };
|
|
@@ -41,8 +41,8 @@ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_T
|
|
|
41
41
|
}>>>, {
|
|
42
42
|
header: string;
|
|
43
43
|
text: string;
|
|
44
|
-
theme: string;
|
|
45
44
|
testId: string;
|
|
45
|
+
theme: string;
|
|
46
46
|
delay: number;
|
|
47
47
|
triggers: ("hover" | "click" | "focus" | "touch")[];
|
|
48
48
|
forceShowWithTruncate: boolean;
|
|
@@ -9,12 +9,12 @@ declare const TooltipTypes: () => import("vue").DefineComponent<{
|
|
|
9
9
|
} & {
|
|
10
10
|
default: any;
|
|
11
11
|
};
|
|
12
|
-
|
|
12
|
+
testId: {
|
|
13
13
|
type: import("vue").PropType<string>;
|
|
14
14
|
} & {
|
|
15
15
|
default: string;
|
|
16
16
|
};
|
|
17
|
-
|
|
17
|
+
theme: {
|
|
18
18
|
type: import("vue").PropType<string>;
|
|
19
19
|
} & {
|
|
20
20
|
default: string;
|
|
@@ -55,12 +55,12 @@ declare const TooltipTypes: () => import("vue").DefineComponent<{
|
|
|
55
55
|
} & {
|
|
56
56
|
default: any;
|
|
57
57
|
};
|
|
58
|
-
|
|
58
|
+
testId: {
|
|
59
59
|
type: import("vue").PropType<string>;
|
|
60
60
|
} & {
|
|
61
61
|
default: string;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
theme: {
|
|
64
64
|
type: import("vue").PropType<string>;
|
|
65
65
|
} & {
|
|
66
66
|
default: string;
|
|
@@ -93,8 +93,8 @@ declare const TooltipTypes: () => import("vue").DefineComponent<{
|
|
|
93
93
|
}>>, {
|
|
94
94
|
header: string;
|
|
95
95
|
text: string;
|
|
96
|
-
theme: string;
|
|
97
96
|
testId: string;
|
|
97
|
+
theme: string;
|
|
98
98
|
delay: number;
|
|
99
99
|
triggers: ("hover" | "click" | "focus" | "touch")[];
|
|
100
100
|
forceShowWithTruncate: boolean;
|
|
@@ -30,14 +30,14 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
30
30
|
level: "label" | "1" | "2" | "3" | "4" | "5" | "6";
|
|
31
31
|
testId: string;
|
|
32
32
|
}> | import("vue").DefineComponent<{
|
|
33
|
-
strong: {
|
|
34
|
-
type: import("vue").PropType<boolean>;
|
|
35
|
-
};
|
|
36
33
|
size: {
|
|
37
|
-
type: import("vue").PropType<"
|
|
34
|
+
type: import("vue").PropType<"md" | "sm" | "lg" | "caption" | "xs">;
|
|
38
35
|
} & {
|
|
39
36
|
default: string;
|
|
40
37
|
};
|
|
38
|
+
strong: {
|
|
39
|
+
type: import("vue").PropType<boolean>;
|
|
40
|
+
};
|
|
41
41
|
testId: {
|
|
42
42
|
type: import("vue").PropType<string>;
|
|
43
43
|
} & {
|
|
@@ -47,14 +47,14 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
47
47
|
type: import("vue").PropType<boolean>;
|
|
48
48
|
};
|
|
49
49
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
|
-
strong: {
|
|
51
|
-
type: import("vue").PropType<boolean>;
|
|
52
|
-
};
|
|
53
50
|
size: {
|
|
54
|
-
type: import("vue").PropType<"
|
|
51
|
+
type: import("vue").PropType<"md" | "sm" | "lg" | "caption" | "xs">;
|
|
55
52
|
} & {
|
|
56
53
|
default: string;
|
|
57
54
|
};
|
|
55
|
+
strong: {
|
|
56
|
+
type: import("vue").PropType<boolean>;
|
|
57
|
+
};
|
|
58
58
|
testId: {
|
|
59
59
|
type: import("vue").PropType<string>;
|
|
60
60
|
} & {
|
|
@@ -64,7 +64,7 @@ declare const TypographyTypes: () => (import("vue").DefineComponent<{
|
|
|
64
64
|
type: import("vue").PropType<boolean>;
|
|
65
65
|
};
|
|
66
66
|
}>>, {
|
|
67
|
-
size: "
|
|
67
|
+
size: "md" | "sm" | "lg" | "caption" | "xs";
|
|
68
68
|
testId: string;
|
|
69
69
|
}>)[];
|
|
70
70
|
export { default as Heading } from './Heading.vue';
|