@ironsource/shared-ui 2.1.11-test.5 → 2.1.11-test.50
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/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_604dfc6f_lang.css +1 -0
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_1aa6df01_lang.css +1 -0
- package/Chart.vue_vue_type_style_index_0_scoped_277fde76_lang.css +1 -0
- package/ChartHeader.vue_vue_type_style_index_0_scoped_b8213498_lang.css +1 -0
- package/ChartLegend.vue_vue_type_style_index_0_scoped_a1c626cd_lang.css +1 -0
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_6744325c_lang.css +1 -0
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_af4ae3c3_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_e43ac1c9_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_27802170_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_26488faf_lang.css +1 -0
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_ddfaf207_lang.css +1 -0
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_309e5351_lang.css +1 -0
- package/DialogV4.vue_vue_type_style_index_0_scoped_37da643b_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_75002075_lang.css +1 -0
- package/EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css +1 -0
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_18728498_lang.css +1 -0
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_383011d3_lang.css +1 -0
- package/FormCard.vue_vue_type_style_index_0_scoped_86feae7b_lang.css +1 -0
- package/IconFlag.vue_vue_type_style_index_0_scoped_be9dc7bb_lang.css +1 -0
- package/InlineCopy.vue_vue_type_style_index_0_scoped_ad48b61e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/PopoverV4.vue_vue_type_style_index_0_scoped_66694b4e_lang.css +1 -0
- package/README.md +4 -15
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_89fe8aa1_lang.css +1 -0
- package/SortableItem.vue_vue_type_style_index_0_scoped_2ca7b24c_lang.css +1 -0
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_f2ced2f4_lang.css +1 -0
- package/SortableList.vue_vue_type_style_index_0_scoped_8f267f88_lang.css +1 -0
- package/TextField.vue_vue_type_style_index_0_scoped_fce3948c_lang.css +1 -0
- package/ThemeWrapper.vue_vue_type_style_index_1_lang.css +1 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_c81a7d3e_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_0_scoped_66eab856_lang.css +1 -0
- package/TooltipV4.vue_vue_type_style_index_1_lang.css +1 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_b883d1fa_lang.css +1 -0
- package/Typography.vue_vue_type_style_index_0_scoped_5714d43e_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/button/v4/ToggleButtonGroupAB.vue.d.ts +3 -1
- package/components/button/v4/ToggleButtonGroupAB.vue.js +2 -2
- package/components/button/v4/ToggleButtonGroupAB.vue2.js +44 -39
- package/components/button/v4/index.d.ts +9 -3
- package/components/chart/Chart.vue.d.ts +16 -3
- package/components/chart/Chart.vue.js +5 -5
- package/components/chart/Chart.vue2.js +127 -110
- package/components/chart/ChartHeader.vue.d.ts +13 -6
- package/components/chart/ChartHeader.vue.js +2 -2
- package/components/chart/ChartHeader.vue2.js +32 -29
- package/components/chart/ChartLegend.vue.d.ts +5 -0
- package/components/chart/ChartLegend.vue.js +3 -3
- package/components/chart/ChartLegend.vue2.js +99 -49
- package/components/chart/ChartTooltip.vue.d.ts +4 -5
- package/components/chart/ChartTooltip.vue.js +2 -2
- package/components/chart/ChartTooltip.vue2.js +64 -43
- package/components/chart/SettingsHeader.vue2.js +3 -2
- package/components/chart/index.d.ts +55 -16
- package/components/chart/mockData.d.ts +15 -2
- package/components/chart/types.d.ts +15 -1
- package/components/chart/utils/utils.js +5 -5
- package/components/checkbox/v4/CheckboxV4.vue.js +3 -3
- package/components/checkbox/v4/CheckboxV4.vue2.js +2 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue.js +2 -2
- package/components/dateRange/v4/DateRangeV4.vue2.js +9 -9
- package/components/dialog/v4/DialogV4.vue.d.ts +15 -0
- package/components/dialog/v4/DialogV4.vue.js +3 -3
- package/components/dialog/v4/DialogV4.vue2.js +80 -73
- package/components/dialog/v4/index.d.ts +58 -1
- package/components/dropdown/common/Dropdown.common.js +200 -189
- package/components/dropdown/v3/Dropdown.vue.d.ts +2 -2
- package/components/dropdown/v3/index.d.ts +39 -39
- package/components/dropdown/v4/AppDropdownTrigger.vue.d.ts +1 -1
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.d.ts +15 -0
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +42 -20
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ButtonFilterDropdownTrigger.vue2.js +7 -7
- package/components/dropdown/v4/ChipDropdownTrigger.vue.d.ts +10 -0
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +88 -47
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +110 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +224 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +32 -11
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +153 -138
- package/components/dropdown/v4/OptionV4.vue.d.ts +10 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +135 -98
- package/components/dropdown/v4/TreeDropdown.vue.d.ts +6 -1
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +165 -120
- package/components/dropdown/v4/index.d.ts +443 -110
- package/components/dropdown/v4/index.js +6 -3
- package/components/emptyState/v4/EmptyStateV4.vue.js +3 -3
- package/components/emptyState/v4/EmptyStateV4.vue2.js +1 -1
- package/components/filtersPanel/v4/FiltersPanelV4.vue.js +2 -2
- package/components/filtersPanel/v4/FiltersPanelV4.vue2.js +8 -9
- package/components/forms/FormCard.vue.js +3 -3
- package/components/forms/FormCard.vue2.js +1 -1
- package/components/icon/v4/IconFlag.vue.js +3 -3
- package/components/icon/v4/IconFlag.vue2.js +1 -1
- package/components/icon/v4/consts.d.ts +1 -1
- package/components/icon/v4/consts.js +1 -1
- package/components/inlineCopy/InlineCopy.vue.d.ts +5 -0
- package/components/inlineCopy/InlineCopy.vue.js +2 -2
- package/components/inlineCopy/InlineCopy.vue2.js +24 -22
- package/components/inlineCopy/index.d.ts +9 -0
- package/components/input/v4/TextField.vue.js +3 -3
- package/components/input/v4/TextField.vue2.js +185 -165
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.d.ts +14 -2
- package/components/popover/v4/PopoverV4.vue.js +4 -3
- package/components/popover/v4/PopoverV4.vue2.js +40 -24
- package/components/popover/v4/index.d.ts +55 -11
- package/components/snackbar/v4/SnackbarV4.vue.d.ts +7 -116
- package/components/snackbar/v4/SnackbarV4.vue.js +5 -5
- package/components/snackbar/v4/SnackbarV4.vue2.js +62 -60
- package/components/sortableList/SortableItem.vue.d.ts +5 -0
- package/components/sortableList/SortableItem.vue.js +2 -2
- package/components/sortableList/SortableItem.vue2.js +86 -70
- package/components/sortableList/SortableItemLabel.vue.js +3 -3
- package/components/sortableList/SortableItemLabel.vue2.js +20 -23
- package/components/sortableList/SortableList.vue.d.ts +17 -1
- package/components/sortableList/SortableList.vue.js +4 -4
- package/components/sortableList/SortableList.vue2.js +113 -94
- package/components/sortableList/index.d.ts +63 -5
- package/components/table/common/Table.common.d.ts +1 -1
- package/components/table/common/Table.common.js +83 -77
- package/components/table/common/Table.types.d.ts +1 -1
- package/components/table/common/consts.d.ts +4 -0
- package/components/table/common/consts.js +7 -0
- package/components/table/v3/Table.vue.d.ts +1 -1
- package/components/table/v3/index.d.ts +5 -5
- package/components/table/v4/DataGrid.vue.d.ts +12 -2
- package/components/table/v4/DataGrid.vue.js +2 -2
- package/components/table/v4/DataGrid.vue2.js +164 -155
- package/components/table/v4/DataGridMenu.vue.js +5 -5
- package/components/table/v4/DataGridMenu.vue2.js +4 -3
- package/components/table/v4/MultipleDataGrid.vue.d.ts +1 -1
- package/components/table/v4/index.d.ts +84 -46
- package/components/table-cells/common/Editable.common.js +29 -23
- package/components/table-cells/common/EditableContext.d.ts +1 -0
- package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
- package/components/table-cells/v4/EditableV4.vue.js +3 -3
- package/components/table-cells/v4/EditableV4.vue2.js +11 -10
- package/components/table-cells/v4/index.d.ts +20 -1
- package/components/tooltip/v4/TooltipV4.vue.d.ts +10 -0
- package/components/tooltip/v4/TooltipV4.vue.js +3 -3
- package/components/tooltip/v4/TooltipV4.vue2.js +24 -21
- package/components/tooltip/v4/index.d.ts +39 -1
- package/components/typography/v4/Typography.vue.js +3 -3
- package/components/typography/v4/Typography.vue2.js +24 -18
- package/design-foundation.stories/icons/iconsData.d.ts +1 -1
- package/index.d.ts +1626 -366
- package/index.js +1 -1
- package/mocks/options.d.ts +48 -6
- package/mocks/words.d.ts +1 -1
- package/package.json +2 -1
- package/style/v4/grid.css +1 -1
- package/style/v4/grid.css.map +1 -1
- package/style/v4/spacings.scss +1 -0
- package/testids/index.d.ts +2 -0
- package/testids/index.js +13 -13
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ButtonFilterDropdownTrigger.vue_vue_type_style_index_0_scoped_7f750550_lang.css +0 -1
- package/Chart.vue_vue_type_style_index_0_scoped_ea1e5c3e_lang.css +0 -1
- package/ChartHeader.vue_vue_type_style_index_0_scoped_4c37736e_lang.css +0 -1
- package/ChartLegend.vue_vue_type_style_index_0_scoped_c0f71a49_lang.css +0 -1
- package/ChartTooltip.vue_vue_type_style_index_0_scoped_ec636f18_lang.css +0 -1
- package/CheckboxV4.vue_vue_type_style_index_0_scoped_8e5b619a_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DataGridMenu.vue_vue_type_style_index_0_scoped_a6e4672f_lang.css +0 -1
- package/DateRangeV4.vue_vue_type_style_index_0_scoped_f81413ec_lang.css +0 -1
- package/DialogV4.vue_vue_type_style_index_0_scoped_09c488cf_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_e899ec7a_lang.css +0 -1
- package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +0 -1
- package/EmptyStateV4.vue_vue_type_style_index_0_scoped_24001caa_lang.css +0 -1
- package/FiltersPanelV4.vue_vue_type_style_index_0_scoped_39061862_lang.css +0 -1
- package/FormCard.vue_vue_type_style_index_0_scoped_c7965a69_lang.css +0 -1
- package/IconFlag.vue_vue_type_style_index_0_scoped_7b09cc85_lang.css +0 -1
- package/InlineCopy.vue_vue_type_style_index_0_scoped_893a203c_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_4070942a_lang.css +0 -1
- package/PopoverV4.vue_vue_type_style_index_0_scoped_74bbce13_lang.css +0 -1
- package/SnackbarV4.vue_vue_type_style_index_0_scoped_49c5ccea_lang.css +0 -1
- package/SortableItem.vue_vue_type_style_index_0_scoped_9dd4d372_lang.css +0 -1
- package/SortableItemLabel.vue_vue_type_style_index_0_scoped_1386ae20_lang.css +0 -1
- package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +0 -1
- package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +0 -1
- package/ToggleButtonGroupAB.vue_vue_type_style_index_0_scoped_9d9e51c0_lang.css +0 -1
- package/TooltipV4.vue_vue_type_style_index_0_scoped_fcdb9d02_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_6ac5f602_lang.css +0 -1
- package/Typography.vue_vue_type_style_index_0_scoped_992962bc_lang.css +0 -1
|
@@ -19,6 +19,7 @@ declare const DataGridTypes: () => (({
|
|
|
19
19
|
loadingRowCount: number;
|
|
20
20
|
emptyStateTitle: string;
|
|
21
21
|
isSticky: boolean;
|
|
22
|
+
zIndexBase: number;
|
|
22
23
|
sections: import("../common/Table.types").Section[];
|
|
23
24
|
isStickyHeader: boolean;
|
|
24
25
|
emptyStateSubtitle: string;
|
|
@@ -30,9 +31,10 @@ declare const DataGridTypes: () => (({
|
|
|
30
31
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
31
32
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
32
33
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
33
|
-
zIndexBase: number;
|
|
34
34
|
rowCustomClassKey: string;
|
|
35
35
|
rowDataKey: string;
|
|
36
|
+
isSelectionSticky: boolean;
|
|
37
|
+
isSelectionBordered: boolean;
|
|
36
38
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
37
39
|
sort: {
|
|
38
40
|
type: import("vue").PropType<import("../common/Table.types").Sort>;
|
|
@@ -86,6 +88,10 @@ declare const DataGridTypes: () => (({
|
|
|
86
88
|
type: import("vue").PropType<boolean>;
|
|
87
89
|
default: boolean;
|
|
88
90
|
};
|
|
91
|
+
zIndexBase: {
|
|
92
|
+
type: import("vue").PropType<number>;
|
|
93
|
+
default: number;
|
|
94
|
+
};
|
|
89
95
|
rows: {
|
|
90
96
|
type: import("vue").PropType<import("../common/Table.types").Row[]>;
|
|
91
97
|
required: true;
|
|
@@ -134,10 +140,6 @@ declare const DataGridTypes: () => (({
|
|
|
134
140
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
135
141
|
default: any;
|
|
136
142
|
};
|
|
137
|
-
zIndexBase: {
|
|
138
|
-
type: import("vue").PropType<number>;
|
|
139
|
-
default: number;
|
|
140
|
-
};
|
|
141
143
|
rowCustomClassKey: {
|
|
142
144
|
type: import("vue").PropType<string>;
|
|
143
145
|
default: string;
|
|
@@ -146,18 +148,26 @@ declare const DataGridTypes: () => (({
|
|
|
146
148
|
type: import("vue").PropType<string>;
|
|
147
149
|
default: string;
|
|
148
150
|
};
|
|
151
|
+
isSelectionSticky: {
|
|
152
|
+
type: import("vue").PropType<boolean>;
|
|
153
|
+
default: boolean;
|
|
154
|
+
};
|
|
155
|
+
isSelectionBordered: {
|
|
156
|
+
type: import("vue").PropType<boolean>;
|
|
157
|
+
default: boolean;
|
|
158
|
+
};
|
|
149
159
|
}>> & {
|
|
150
160
|
onSelectAll?: (value: boolean) => any;
|
|
161
|
+
onLoadMore?: () => any;
|
|
151
162
|
"onUpdate:search"?: (query: string) => any;
|
|
152
163
|
onOnScroll?: (event: Event) => any;
|
|
153
164
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
154
165
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
155
|
-
onLoadMore?: () => any;
|
|
156
166
|
onOnClearSearch?: () => any;
|
|
157
167
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
158
168
|
onSelectRow?: (value: boolean) => any;
|
|
159
169
|
onClickRow?: (rowIndex: number) => any;
|
|
160
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "selectedMatcher" | "emptyStateVariant" | "
|
|
170
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "zIndexBase" | "sections" | "isStickyHeader" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "defaultScrollPosition" | "getRowId" | "getRowKey" | "selectedMatcher" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "isSelectionSticky" | "isSelectionBordered">;
|
|
161
171
|
$attrs: {
|
|
162
172
|
[x: string]: unknown;
|
|
163
173
|
};
|
|
@@ -169,7 +179,7 @@ declare const DataGridTypes: () => (({
|
|
|
169
179
|
}>;
|
|
170
180
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
171
181
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
172
|
-
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "
|
|
182
|
+
$emit: ((event: "onScroll", event: Event) => void) & ((event: "selectAll", value: boolean) => void) & ((event: "loadMore") => void) & ((event: "onClearSearch") => void) & ((event: "update:search", query: string) => void) & ((event: "update:sort", newSort: import("../common/Table.types").Sort) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent) => void) & ((event: "update:selection", selection: unknown[]) => void) & ((event: "selectRow", value: boolean) => void) & ((event: "clickRow", rowIndex: number) => void);
|
|
173
183
|
$el: any;
|
|
174
184
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
175
185
|
sort: {
|
|
@@ -224,6 +234,10 @@ declare const DataGridTypes: () => (({
|
|
|
224
234
|
type: import("vue").PropType<boolean>;
|
|
225
235
|
default: boolean;
|
|
226
236
|
};
|
|
237
|
+
zIndexBase: {
|
|
238
|
+
type: import("vue").PropType<number>;
|
|
239
|
+
default: number;
|
|
240
|
+
};
|
|
227
241
|
rows: {
|
|
228
242
|
type: import("vue").PropType<import("../common/Table.types").Row[]>;
|
|
229
243
|
required: true;
|
|
@@ -272,10 +286,6 @@ declare const DataGridTypes: () => (({
|
|
|
272
286
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
273
287
|
default: any;
|
|
274
288
|
};
|
|
275
|
-
zIndexBase: {
|
|
276
|
-
type: import("vue").PropType<number>;
|
|
277
|
-
default: number;
|
|
278
|
-
};
|
|
279
289
|
rowCustomClassKey: {
|
|
280
290
|
type: import("vue").PropType<string>;
|
|
281
291
|
default: string;
|
|
@@ -284,13 +294,21 @@ declare const DataGridTypes: () => (({
|
|
|
284
294
|
type: import("vue").PropType<string>;
|
|
285
295
|
default: string;
|
|
286
296
|
};
|
|
297
|
+
isSelectionSticky: {
|
|
298
|
+
type: import("vue").PropType<boolean>;
|
|
299
|
+
default: boolean;
|
|
300
|
+
};
|
|
301
|
+
isSelectionBordered: {
|
|
302
|
+
type: import("vue").PropType<boolean>;
|
|
303
|
+
default: boolean;
|
|
304
|
+
};
|
|
287
305
|
}>> & {
|
|
288
306
|
onSelectAll?: (value: boolean) => any;
|
|
307
|
+
onLoadMore?: () => any;
|
|
289
308
|
"onUpdate:search"?: (query: string) => any;
|
|
290
309
|
onOnScroll?: (event: Event) => any;
|
|
291
310
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
292
311
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
293
|
-
onLoadMore?: () => any;
|
|
294
312
|
onOnClearSearch?: () => any;
|
|
295
313
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
296
314
|
onSelectRow?: (value: boolean) => any;
|
|
@@ -321,6 +339,7 @@ declare const DataGridTypes: () => (({
|
|
|
321
339
|
loadingRowCount: number;
|
|
322
340
|
emptyStateTitle: string;
|
|
323
341
|
isSticky: boolean;
|
|
342
|
+
zIndexBase: number;
|
|
324
343
|
sections: import("../common/Table.types").Section[];
|
|
325
344
|
isStickyHeader: boolean;
|
|
326
345
|
emptyStateSubtitle: string;
|
|
@@ -332,9 +351,10 @@ declare const DataGridTypes: () => (({
|
|
|
332
351
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
333
352
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
334
353
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
335
|
-
zIndexBase: number;
|
|
336
354
|
rowCustomClassKey: string;
|
|
337
355
|
rowDataKey: string;
|
|
356
|
+
isSelectionSticky: boolean;
|
|
357
|
+
isSelectionBordered: boolean;
|
|
338
358
|
}, {}, string> & {
|
|
339
359
|
beforeCreate?: (() => void) | (() => void)[];
|
|
340
360
|
created?: (() => void) | (() => void)[];
|
|
@@ -408,6 +428,10 @@ declare const DataGridTypes: () => (({
|
|
|
408
428
|
type: import("vue").PropType<boolean>;
|
|
409
429
|
default: boolean;
|
|
410
430
|
};
|
|
431
|
+
zIndexBase: {
|
|
432
|
+
type: import("vue").PropType<number>;
|
|
433
|
+
default: number;
|
|
434
|
+
};
|
|
411
435
|
rows: {
|
|
412
436
|
type: import("vue").PropType<import("../common/Table.types").Row[]>;
|
|
413
437
|
required: true;
|
|
@@ -456,10 +480,6 @@ declare const DataGridTypes: () => (({
|
|
|
456
480
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
457
481
|
default: any;
|
|
458
482
|
};
|
|
459
|
-
zIndexBase: {
|
|
460
|
-
type: import("vue").PropType<number>;
|
|
461
|
-
default: number;
|
|
462
|
-
};
|
|
463
483
|
rowCustomClassKey: {
|
|
464
484
|
type: import("vue").PropType<string>;
|
|
465
485
|
default: string;
|
|
@@ -468,13 +488,21 @@ declare const DataGridTypes: () => (({
|
|
|
468
488
|
type: import("vue").PropType<string>;
|
|
469
489
|
default: string;
|
|
470
490
|
};
|
|
491
|
+
isSelectionSticky: {
|
|
492
|
+
type: import("vue").PropType<boolean>;
|
|
493
|
+
default: boolean;
|
|
494
|
+
};
|
|
495
|
+
isSelectionBordered: {
|
|
496
|
+
type: import("vue").PropType<boolean>;
|
|
497
|
+
default: boolean;
|
|
498
|
+
};
|
|
471
499
|
}>> & {
|
|
472
500
|
onSelectAll?: (value: boolean) => any;
|
|
501
|
+
onLoadMore?: () => any;
|
|
473
502
|
"onUpdate:search"?: (query: string) => any;
|
|
474
503
|
onOnScroll?: (event: Event) => any;
|
|
475
504
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
476
505
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
477
|
-
onLoadMore?: () => any;
|
|
478
506
|
onOnClearSearch?: () => any;
|
|
479
507
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
480
508
|
onSelectRow?: (value: boolean) => any;
|
|
@@ -538,6 +566,10 @@ declare const DataGridTypes: () => (({
|
|
|
538
566
|
type: import("vue").PropType<boolean>;
|
|
539
567
|
default: boolean;
|
|
540
568
|
};
|
|
569
|
+
zIndexBase: {
|
|
570
|
+
type: import("vue").PropType<number>;
|
|
571
|
+
default: number;
|
|
572
|
+
};
|
|
541
573
|
rows: {
|
|
542
574
|
type: import("vue").PropType<import("../common/Table.types").Row[]>;
|
|
543
575
|
required: true;
|
|
@@ -586,10 +618,6 @@ declare const DataGridTypes: () => (({
|
|
|
586
618
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
587
619
|
default: any;
|
|
588
620
|
};
|
|
589
|
-
zIndexBase: {
|
|
590
|
-
type: import("vue").PropType<number>;
|
|
591
|
-
default: number;
|
|
592
|
-
};
|
|
593
621
|
rowCustomClassKey: {
|
|
594
622
|
type: import("vue").PropType<string>;
|
|
595
623
|
default: string;
|
|
@@ -598,13 +626,21 @@ declare const DataGridTypes: () => (({
|
|
|
598
626
|
type: import("vue").PropType<string>;
|
|
599
627
|
default: string;
|
|
600
628
|
};
|
|
629
|
+
isSelectionSticky: {
|
|
630
|
+
type: import("vue").PropType<boolean>;
|
|
631
|
+
default: boolean;
|
|
632
|
+
};
|
|
633
|
+
isSelectionBordered: {
|
|
634
|
+
type: import("vue").PropType<boolean>;
|
|
635
|
+
default: boolean;
|
|
636
|
+
};
|
|
601
637
|
}>> & {
|
|
602
638
|
onSelectAll?: (value: boolean) => any;
|
|
639
|
+
onLoadMore?: () => any;
|
|
603
640
|
"onUpdate:search"?: (query: string) => any;
|
|
604
641
|
onOnScroll?: (event: Event) => any;
|
|
605
642
|
"onUpdate:sort"?: (newSort: import("../common/Table.types").Sort) => any;
|
|
606
643
|
onSaveRow?: (args_0: import("../common/Table.types").SaveRowEvent) => any;
|
|
607
|
-
onLoadMore?: () => any;
|
|
608
644
|
onOnClearSearch?: () => any;
|
|
609
645
|
"onUpdate:selection"?: (selection: unknown[]) => any;
|
|
610
646
|
onSelectRow?: (value: boolean) => any;
|
|
@@ -635,6 +671,7 @@ declare const DataGridTypes: () => (({
|
|
|
635
671
|
loadingRowCount: number;
|
|
636
672
|
emptyStateTitle: string;
|
|
637
673
|
isSticky: boolean;
|
|
674
|
+
zIndexBase: number;
|
|
638
675
|
sections: import("../common/Table.types").Section[];
|
|
639
676
|
isStickyHeader: boolean;
|
|
640
677
|
emptyStateSubtitle: string;
|
|
@@ -646,9 +683,10 @@ declare const DataGridTypes: () => (({
|
|
|
646
683
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
647
684
|
selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
|
|
648
685
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
649
|
-
zIndexBase: number;
|
|
650
686
|
rowCustomClassKey: string;
|
|
651
687
|
rowDataKey: string;
|
|
688
|
+
isSelectionSticky: boolean;
|
|
689
|
+
isSelectionBordered: boolean;
|
|
652
690
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
653
691
|
$slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
|
|
654
692
|
column: import("../common/Table.types").Column;
|
|
@@ -782,11 +820,11 @@ declare const DataGridTypes: () => (({
|
|
|
782
820
|
loadingRowCount: number;
|
|
783
821
|
emptyStateTitle: string;
|
|
784
822
|
isSticky: boolean;
|
|
823
|
+
zIndexBase: number;
|
|
785
824
|
emptyStateSubtitle: string;
|
|
786
825
|
getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
|
|
787
826
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
788
827
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
789
|
-
zIndexBase: number;
|
|
790
828
|
rowCustomClassKey: string;
|
|
791
829
|
rowDataKey: string;
|
|
792
830
|
totalCount: number;
|
|
@@ -832,6 +870,10 @@ declare const DataGridTypes: () => (({
|
|
|
832
870
|
type: import("vue").PropType<boolean>;
|
|
833
871
|
default: boolean;
|
|
834
872
|
};
|
|
873
|
+
zIndexBase: {
|
|
874
|
+
type: import("vue").PropType<number>;
|
|
875
|
+
default: number;
|
|
876
|
+
};
|
|
835
877
|
emptyStateSubtitle: {
|
|
836
878
|
type: import("vue").PropType<string>;
|
|
837
879
|
default: string;
|
|
@@ -848,10 +890,6 @@ declare const DataGridTypes: () => (({
|
|
|
848
890
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
849
891
|
default: any;
|
|
850
892
|
};
|
|
851
|
-
zIndexBase: {
|
|
852
|
-
type: import("vue").PropType<number>;
|
|
853
|
-
default: number;
|
|
854
|
-
};
|
|
855
893
|
rowCustomClassKey: {
|
|
856
894
|
type: import("vue").PropType<string>;
|
|
857
895
|
default: string;
|
|
@@ -894,7 +932,7 @@ declare const DataGridTypes: () => (({
|
|
|
894
932
|
}) => any;
|
|
895
933
|
onOnClearSearch?: () => any;
|
|
896
934
|
onClickRow?: (rowIndex: number, tableIndex: number) => any;
|
|
897
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "searchPlaceholder" | "count" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "
|
|
935
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "searchPlaceholder" | "count" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "zIndexBase" | "emptyStateSubtitle" | "getRowId" | "getRowKey" | "emptyStateVariant" | "rowCustomClassKey" | "rowDataKey" | "totalCount" | "displayingText" | "outOfText" | "totalText" | "tablesSettings" | "loadingAndEmptyStatesColumns">;
|
|
898
936
|
$attrs: {
|
|
899
937
|
[x: string]: unknown;
|
|
900
938
|
};
|
|
@@ -906,7 +944,7 @@ declare const DataGridTypes: () => (({
|
|
|
906
944
|
}>;
|
|
907
945
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
908
946
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
909
|
-
$emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "
|
|
947
|
+
$emit: ((event: "onScroll", scrollTop: number) => void) & ((event: "onClearSearch") => void) & ((event: "update:search", query: string) => void) & ((event: "saveRow", args_0: import("../common/Table.types").SaveRowEvent & {
|
|
910
948
|
tableIndex: number;
|
|
911
949
|
}) => void) & ((event: "clickRow", rowIndex: number, tableIndex: number) => void);
|
|
912
950
|
$el: any;
|
|
@@ -947,6 +985,10 @@ declare const DataGridTypes: () => (({
|
|
|
947
985
|
type: import("vue").PropType<boolean>;
|
|
948
986
|
default: boolean;
|
|
949
987
|
};
|
|
988
|
+
zIndexBase: {
|
|
989
|
+
type: import("vue").PropType<number>;
|
|
990
|
+
default: number;
|
|
991
|
+
};
|
|
950
992
|
emptyStateSubtitle: {
|
|
951
993
|
type: import("vue").PropType<string>;
|
|
952
994
|
default: string;
|
|
@@ -963,10 +1005,6 @@ declare const DataGridTypes: () => (({
|
|
|
963
1005
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
964
1006
|
default: any;
|
|
965
1007
|
};
|
|
966
|
-
zIndexBase: {
|
|
967
|
-
type: import("vue").PropType<number>;
|
|
968
|
-
default: number;
|
|
969
|
-
};
|
|
970
1008
|
rowCustomClassKey: {
|
|
971
1009
|
type: import("vue").PropType<string>;
|
|
972
1010
|
default: string;
|
|
@@ -1027,11 +1065,11 @@ declare const DataGridTypes: () => (({
|
|
|
1027
1065
|
loadingRowCount: number;
|
|
1028
1066
|
emptyStateTitle: string;
|
|
1029
1067
|
isSticky: boolean;
|
|
1068
|
+
zIndexBase: number;
|
|
1030
1069
|
emptyStateSubtitle: string;
|
|
1031
1070
|
getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
|
|
1032
1071
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
1033
1072
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
1034
|
-
zIndexBase: number;
|
|
1035
1073
|
rowCustomClassKey: string;
|
|
1036
1074
|
rowDataKey: string;
|
|
1037
1075
|
totalCount: number;
|
|
@@ -1097,6 +1135,10 @@ declare const DataGridTypes: () => (({
|
|
|
1097
1135
|
type: import("vue").PropType<boolean>;
|
|
1098
1136
|
default: boolean;
|
|
1099
1137
|
};
|
|
1138
|
+
zIndexBase: {
|
|
1139
|
+
type: import("vue").PropType<number>;
|
|
1140
|
+
default: number;
|
|
1141
|
+
};
|
|
1100
1142
|
emptyStateSubtitle: {
|
|
1101
1143
|
type: import("vue").PropType<string>;
|
|
1102
1144
|
default: string;
|
|
@@ -1113,10 +1155,6 @@ declare const DataGridTypes: () => (({
|
|
|
1113
1155
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
1114
1156
|
default: any;
|
|
1115
1157
|
};
|
|
1116
|
-
zIndexBase: {
|
|
1117
|
-
type: import("vue").PropType<number>;
|
|
1118
|
-
default: number;
|
|
1119
|
-
};
|
|
1120
1158
|
rowCustomClassKey: {
|
|
1121
1159
|
type: import("vue").PropType<string>;
|
|
1122
1160
|
default: string;
|
|
@@ -1200,6 +1238,10 @@ declare const DataGridTypes: () => (({
|
|
|
1200
1238
|
type: import("vue").PropType<boolean>;
|
|
1201
1239
|
default: boolean;
|
|
1202
1240
|
};
|
|
1241
|
+
zIndexBase: {
|
|
1242
|
+
type: import("vue").PropType<number>;
|
|
1243
|
+
default: number;
|
|
1244
|
+
};
|
|
1203
1245
|
emptyStateSubtitle: {
|
|
1204
1246
|
type: import("vue").PropType<string>;
|
|
1205
1247
|
default: string;
|
|
@@ -1216,10 +1258,6 @@ declare const DataGridTypes: () => (({
|
|
|
1216
1258
|
type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
|
|
1217
1259
|
default: any;
|
|
1218
1260
|
};
|
|
1219
|
-
zIndexBase: {
|
|
1220
|
-
type: import("vue").PropType<number>;
|
|
1221
|
-
default: number;
|
|
1222
|
-
};
|
|
1223
1261
|
rowCustomClassKey: {
|
|
1224
1262
|
type: import("vue").PropType<string>;
|
|
1225
1263
|
default: string;
|
|
@@ -1280,11 +1318,11 @@ declare const DataGridTypes: () => (({
|
|
|
1280
1318
|
loadingRowCount: number;
|
|
1281
1319
|
emptyStateTitle: string;
|
|
1282
1320
|
isSticky: boolean;
|
|
1321
|
+
zIndexBase: number;
|
|
1283
1322
|
emptyStateSubtitle: string;
|
|
1284
1323
|
getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
|
|
1285
1324
|
getRowKey: (row: import("../common/Table.types").Row, index: number) => string | number;
|
|
1286
1325
|
emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
|
|
1287
|
-
zIndexBase: number;
|
|
1288
1326
|
rowCustomClassKey: string;
|
|
1289
1327
|
rowDataKey: string;
|
|
1290
1328
|
totalCount: number;
|
|
@@ -1,50 +1,56 @@
|
|
|
1
|
-
import { ref as
|
|
2
|
-
import { useTableContext as
|
|
3
|
-
import { EditableContext as
|
|
4
|
-
import { onClickOutside as
|
|
5
|
-
const
|
|
6
|
-
const l =
|
|
7
|
-
if (e.cell ===
|
|
1
|
+
import { ref as n, provide as f, watch as d } from "vue";
|
|
2
|
+
import { useTableContext as C } from "../../table/common/TableContext.js";
|
|
3
|
+
import { EditableContext as m } from "./EditableContext.js";
|
|
4
|
+
import { onClickOutside as x } from "@vueuse/core";
|
|
5
|
+
const g = (e) => {
|
|
6
|
+
const l = n(!1), t = n(e.cell), i = n(e.saveOnClickOutside), o = n(null), r = C("Editable"), a = n(null), c = () => {
|
|
7
|
+
if (e.cell === t.value) {
|
|
8
8
|
l.value = !1;
|
|
9
9
|
return;
|
|
10
10
|
}
|
|
11
|
-
const u = e.validateFunction?.(
|
|
11
|
+
const u = e.validateFunction?.(t.value);
|
|
12
12
|
a.value = u, !u && (r.onClose({
|
|
13
13
|
rowIndex: e.rowIndex,
|
|
14
14
|
cellIndex: e.cellIndex,
|
|
15
|
-
value:
|
|
15
|
+
value: t.value
|
|
16
16
|
}), l.value = !1);
|
|
17
17
|
};
|
|
18
|
-
|
|
18
|
+
f(m, {
|
|
19
19
|
focusable: !0,
|
|
20
|
-
value:
|
|
20
|
+
value: t,
|
|
21
21
|
error: a,
|
|
22
|
+
withIcons: e.withIcons,
|
|
22
23
|
confirmable: !0,
|
|
23
|
-
saveOnClickOutside:
|
|
24
|
+
saveOnClickOutside: i.value,
|
|
24
25
|
onChange(u) {
|
|
25
|
-
|
|
26
|
+
t.value = u, a.value = e.validateFunction?.(t.value);
|
|
26
27
|
},
|
|
27
|
-
onClose:
|
|
28
|
+
onClose: c
|
|
28
29
|
});
|
|
29
|
-
const
|
|
30
|
+
const v = () => {
|
|
30
31
|
l.value || e.isLoading || (l.value = !l.value);
|
|
31
32
|
}, s = () => {
|
|
32
|
-
|
|
33
|
+
t.value = e.cell, a.value = null;
|
|
33
34
|
};
|
|
34
|
-
return
|
|
35
|
+
return x(o, () => {
|
|
35
36
|
if (l.value) {
|
|
36
|
-
if (
|
|
37
|
-
|
|
37
|
+
if (i.value) {
|
|
38
|
+
c();
|
|
38
39
|
return;
|
|
39
40
|
}
|
|
40
41
|
l.value = !1, s(), r.onClose();
|
|
41
42
|
}
|
|
42
|
-
}),
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
}), d(
|
|
44
|
+
() => e.cell,
|
|
45
|
+
() => {
|
|
46
|
+
l.value || (t.value = e.cell);
|
|
47
|
+
}
|
|
48
|
+
), {
|
|
49
|
+
onEdit: v,
|
|
50
|
+
target: o,
|
|
45
51
|
isEditing: l
|
|
46
52
|
};
|
|
47
53
|
};
|
|
48
54
|
export {
|
|
49
|
-
|
|
55
|
+
g as editableCommon
|
|
50
56
|
};
|
|
@@ -4,6 +4,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
4
4
|
rowIndex: number;
|
|
5
5
|
cellIndex: number;
|
|
6
6
|
type: "input" | "dropdown";
|
|
7
|
+
withIcons?: boolean;
|
|
7
8
|
saveOnClickOutside?: boolean;
|
|
8
9
|
validateFunction?: (value: unknown) => string | boolean;
|
|
9
10
|
displayValue?: (option: unknown) => unknown;
|
|
@@ -12,6 +13,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
12
13
|
isLoading: boolean;
|
|
13
14
|
type: string;
|
|
14
15
|
saveOnClickOutside: boolean;
|
|
16
|
+
withIcons: boolean;
|
|
15
17
|
validateFunction: () => false;
|
|
16
18
|
displayValue: (cell: unknown) => unknown;
|
|
17
19
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
|
|
@@ -20,6 +22,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
22
|
rowIndex: number;
|
|
21
23
|
cellIndex: number;
|
|
22
24
|
type: "input" | "dropdown";
|
|
25
|
+
withIcons?: boolean;
|
|
23
26
|
saveOnClickOutside?: boolean;
|
|
24
27
|
validateFunction?: (value: unknown) => string | boolean;
|
|
25
28
|
displayValue?: (option: unknown) => unknown;
|
|
@@ -28,11 +31,13 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
28
31
|
isLoading: boolean;
|
|
29
32
|
type: string;
|
|
30
33
|
saveOnClickOutside: boolean;
|
|
34
|
+
withIcons: boolean;
|
|
31
35
|
validateFunction: () => false;
|
|
32
36
|
displayValue: (cell: unknown) => unknown;
|
|
33
37
|
}>>>, {
|
|
34
38
|
type: "input" | "dropdown";
|
|
35
39
|
cell: string;
|
|
40
|
+
withIcons: boolean;
|
|
36
41
|
saveOnClickOutside: boolean;
|
|
37
42
|
validateFunction: (value: unknown) => string | boolean;
|
|
38
43
|
isLoading: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "./EditableV4.vue2.js";
|
|
2
2
|
/* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../EditableV4.
|
|
4
|
-
const
|
|
3
|
+
// import "../../../EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css"; //*');
|
|
4
|
+
const a = /* @__PURE__ */ o(e, [["__scopeId", "data-v-1bbe222a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "../../../EditableV4.
|
|
1
|
+
import "../../../EditableV4.vue_vue_type_style_index_0_scoped_1bbe222a_lang.css"; import { defineComponent as f, openBlock as o, createElementBlock as i, unref as t, createElementVNode as m, renderSlot as r, createVNode as d, withCtx as y, createTextVNode as k, toDisplayString as V, createBlock as b, createCommentVNode as g } from "vue";
|
|
2
2
|
import { editableCommon as v } from "../common/Editable.common.js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import w from "../../typography/v4/Typography.vue.js";
|
|
4
|
+
import x from "../../input/v4/TextField.vue.js";
|
|
5
|
+
import B from "../../icon/v4/IconV4.vue.js";
|
|
6
6
|
import "../../icon/v4/IconFlag.vue.js";
|
|
7
|
-
const
|
|
7
|
+
const C = { class: "editable-wrapper" }, E = {
|
|
8
8
|
key: 1,
|
|
9
9
|
class: "editable-content"
|
|
10
|
-
}, S = /* @__PURE__ */
|
|
10
|
+
}, S = /* @__PURE__ */ f({
|
|
11
11
|
__name: "EditableV4",
|
|
12
12
|
props: {
|
|
13
13
|
cell: { default: "" },
|
|
@@ -15,6 +15,7 @@ const B = { class: "editable-wrapper" }, E = {
|
|
|
15
15
|
rowIndex: null,
|
|
16
16
|
cellIndex: null,
|
|
17
17
|
type: { default: "input" },
|
|
18
|
+
withIcons: { type: Boolean, default: !0 },
|
|
18
19
|
saveOnClickOutside: { type: Boolean, default: !0 },
|
|
19
20
|
validateFunction: { type: Function, default: () => !1 },
|
|
20
21
|
displayValue: { type: Function, default: (e) => e }
|
|
@@ -28,18 +29,18 @@ const B = { class: "editable-wrapper" }, E = {
|
|
|
28
29
|
onClick: a[0] || (a[0] = //@ts-ignore
|
|
29
30
|
(...p) => t(n) && t(n)(...p))
|
|
30
31
|
}, [
|
|
31
|
-
|
|
32
|
+
m("div", C, [
|
|
32
33
|
t(u) ? r(l.$slots, "input", { key: 0 }, () => [
|
|
33
|
-
d(t(
|
|
34
|
+
d(t(x))
|
|
34
35
|
], !0) : (o(), i("div", E, [
|
|
35
36
|
r(l.$slots, "content", {}, () => [
|
|
36
|
-
d(t(
|
|
37
|
+
d(t(w), { variant: "body1" }, {
|
|
37
38
|
default: y(() => [
|
|
38
39
|
k(V(e.displayValue(e.cell)), 1)
|
|
39
40
|
]),
|
|
40
41
|
_: 1
|
|
41
42
|
}),
|
|
42
|
-
e.type === "dropdown" ? (o(), b(t(
|
|
43
|
+
e.type === "dropdown" ? (o(), b(t(B), {
|
|
43
44
|
key: 0,
|
|
44
45
|
class: "caret-icon",
|
|
45
46
|
name: "caret-down",
|
|
@@ -6,6 +6,7 @@ declare const EditableTypes: () => ({
|
|
|
6
6
|
$props: Partial<{
|
|
7
7
|
type: "input" | "dropdown";
|
|
8
8
|
cell: string;
|
|
9
|
+
withIcons: boolean;
|
|
9
10
|
saveOnClickOutside: boolean;
|
|
10
11
|
validateFunction: (value: unknown) => string | boolean;
|
|
11
12
|
isLoading: boolean;
|
|
@@ -20,6 +21,10 @@ declare const EditableTypes: () => ({
|
|
|
20
21
|
type: import("vue").PropType<string>;
|
|
21
22
|
default: string;
|
|
22
23
|
};
|
|
24
|
+
withIcons: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
23
28
|
saveOnClickOutside: {
|
|
24
29
|
type: import("vue").PropType<boolean>;
|
|
25
30
|
default: boolean;
|
|
@@ -44,7 +49,7 @@ declare const EditableTypes: () => ({
|
|
|
44
49
|
type: import("vue").PropType<(option: unknown) => unknown>;
|
|
45
50
|
default: (cell: unknown) => unknown;
|
|
46
51
|
};
|
|
47
|
-
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "saveOnClickOutside" | "validateFunction" | "isLoading" | "displayValue">;
|
|
52
|
+
}>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "type" | "cell" | "withIcons" | "saveOnClickOutside" | "validateFunction" | "isLoading" | "displayValue">;
|
|
48
53
|
$attrs: {
|
|
49
54
|
[x: string]: unknown;
|
|
50
55
|
};
|
|
@@ -68,6 +73,10 @@ declare const EditableTypes: () => ({
|
|
|
68
73
|
type: import("vue").PropType<string>;
|
|
69
74
|
default: string;
|
|
70
75
|
};
|
|
76
|
+
withIcons: {
|
|
77
|
+
type: import("vue").PropType<boolean>;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
71
80
|
saveOnClickOutside: {
|
|
72
81
|
type: import("vue").PropType<boolean>;
|
|
73
82
|
default: boolean;
|
|
@@ -95,6 +104,7 @@ declare const EditableTypes: () => ({
|
|
|
95
104
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
96
105
|
type: "input" | "dropdown";
|
|
97
106
|
cell: string;
|
|
107
|
+
withIcons: boolean;
|
|
98
108
|
saveOnClickOutside: boolean;
|
|
99
109
|
validateFunction: (value: unknown) => string | boolean;
|
|
100
110
|
isLoading: boolean;
|
|
@@ -129,6 +139,10 @@ declare const EditableTypes: () => ({
|
|
|
129
139
|
type: import("vue").PropType<string>;
|
|
130
140
|
default: string;
|
|
131
141
|
};
|
|
142
|
+
withIcons: {
|
|
143
|
+
type: import("vue").PropType<boolean>;
|
|
144
|
+
default: boolean;
|
|
145
|
+
};
|
|
132
146
|
saveOnClickOutside: {
|
|
133
147
|
type: import("vue").PropType<boolean>;
|
|
134
148
|
default: boolean;
|
|
@@ -167,6 +181,10 @@ declare const EditableTypes: () => ({
|
|
|
167
181
|
type: import("vue").PropType<string>;
|
|
168
182
|
default: string;
|
|
169
183
|
};
|
|
184
|
+
withIcons: {
|
|
185
|
+
type: import("vue").PropType<boolean>;
|
|
186
|
+
default: boolean;
|
|
187
|
+
};
|
|
170
188
|
saveOnClickOutside: {
|
|
171
189
|
type: import("vue").PropType<boolean>;
|
|
172
190
|
default: boolean;
|
|
@@ -194,6 +212,7 @@ declare const EditableTypes: () => ({
|
|
|
194
212
|
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
195
213
|
type: "input" | "dropdown";
|
|
196
214
|
cell: string;
|
|
215
|
+
withIcons: boolean;
|
|
197
216
|
saveOnClickOutside: boolean;
|
|
198
217
|
validateFunction: (value: unknown) => string | boolean;
|
|
199
218
|
isLoading: boolean;
|