@ironsource/shared-ui 2.1.11-rc.24 → 2.1.11-rc.26
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_f9a13e27_lang.css +1 -0
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_039dd922_lang.css +1 -0
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_2aee12ad_lang.css +1 -0
- package/DataGrid.vue_vue_type_style_index_0_scoped_e7591db4_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css +1 -0
- package/components/dropdown/common/Dropdown.common.js +141 -135
- package/components/dropdown/v4/ButtonDropdownTrigger.vue.js +3 -3
- package/components/dropdown/v4/ButtonDropdownTrigger.vue2.js +6 -6
- 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 +36 -32
- package/components/dropdown/v4/ConditionalDropdown.vue.d.ts +10 -0
- package/components/dropdown/v4/ConditionalDropdown.vue.js +3 -3
- package/components/dropdown/v4/ConditionalDropdown.vue2.js +100 -77
- package/components/dropdown/v4/DropdownV4.vue.d.ts +11 -0
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +27 -25
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +2 -2
- package/components/dropdown/v4/index.d.ts +81 -2
- package/components/table/common/Table.common.js +61 -61
- package/components/table/common/Table.types.d.ts +1 -1
- 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 +6 -1
- package/components/table/v4/DataGrid.vue.js +4 -4
- package/components/table/v4/DataGrid.vue2.js +124 -117
- package/components/table/v4/index.d.ts +25 -6
- package/index.d.ts +222 -26
- package/index.js +1 -1
- package/mocks/words.d.ts +1 -1
- package/package.json +1 -1
- package/ButtonDropdownTrigger.vue_vue_type_style_index_0_scoped_76c74f58_lang.css +0 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +0 -1
- package/ConditionalDropdown.vue_vue_type_style_index_0_scoped_3d7ef976_lang.css +0 -1
- package/DataGrid.vue_vue_type_style_index_0_scoped_0cd8af73_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_b1bde483_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../DropdownV4.
|
|
1
|
+
import "../../../DropdownV4.vue_vue_type_style_index_0_scoped_6466948d_lang.css"; import "../../../DropdownV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as fe, computed as G, openBlock as n, createElementBlock as r, mergeProps as y, unref as t, renderSlot as f, createElementVNode as m, createVNode as i, withCtx as u, Transition as me, normalizeClass as O, normalizeStyle as pe, createTextVNode as T, createCommentVNode as a, isRef as ge, toDisplayString as U, withModifiers as W, Fragment as Te, renderList as ke, toRaw as C, createBlock as X, resolveDynamicComponent as he } from "vue";
|
|
2
2
|
import L from "../../button/v4/ButtonV4.vue.js";
|
|
3
3
|
import "../../button/v4/IconButtonV4.vue.js";
|
|
4
4
|
import "../../button/v4/ButtonGroup.vue.js";
|
|
@@ -30,13 +30,13 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
30
30
|
}, Pe = { class: "dropdown-conditions" }, Re = {
|
|
31
31
|
key: 0,
|
|
32
32
|
class: "no-result-container"
|
|
33
|
-
}, ze = {
|
|
34
|
-
key:
|
|
33
|
+
}, ze = ["aria-selected", "aria-disabled", "onClick"], $e = {
|
|
34
|
+
key: 3,
|
|
35
35
|
class: "loader"
|
|
36
|
-
},
|
|
36
|
+
}, Me = {
|
|
37
37
|
key: 1,
|
|
38
38
|
class: "actions-wrapper"
|
|
39
|
-
},
|
|
39
|
+
}, He = { class: "actions-clear-all" }, Ge = { class: "actions-apply-cancel" }, Tt = /* @__PURE__ */ fe({
|
|
40
40
|
__name: "DropdownV4",
|
|
41
41
|
props: {
|
|
42
42
|
modelValue: { default: null },
|
|
@@ -46,6 +46,8 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
46
46
|
disabled: { type: Boolean, default: !1 },
|
|
47
47
|
popperClass: { default: "" },
|
|
48
48
|
loading: { type: Boolean },
|
|
49
|
+
loadMoreLoading: { type: Boolean },
|
|
50
|
+
infiniteLoading: { type: Boolean, default: !1 },
|
|
49
51
|
testId: { default: "" },
|
|
50
52
|
isOpen: { type: Boolean },
|
|
51
53
|
options: null,
|
|
@@ -99,7 +101,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
99
101
|
overrideOptionCountCalculation: { type: Function, default: null },
|
|
100
102
|
withConditions: { type: Boolean, default: !1 }
|
|
101
103
|
},
|
|
102
|
-
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch"],
|
|
104
|
+
emits: ["update:selected", "update:isOpen", "closed", "opened", "apply", "selectAll", "clear", "copyToClipboard", "onsearch", "loadMore", "allSelectedChanged"],
|
|
103
105
|
setup(e, { expose: j, emit: B }) {
|
|
104
106
|
const d = e, F = {
|
|
105
107
|
MULTILINE_LIST_HEIGHT: 48,
|
|
@@ -140,7 +142,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
140
142
|
onClearAllSelections: z,
|
|
141
143
|
clearAll: ue,
|
|
142
144
|
isGroup: ce
|
|
143
|
-
} = Ke(d, B, F), g = Ae(d.testId, p), $ =
|
|
145
|
+
} = Ke(d, B, F), g = Ae(d.testId, p), $ = G(() => !d.predefinedTrigger || d.predefinedTrigger === k.DEFAULT ? be : d.predefinedTrigger === k.APP ? ve : null), { width: M } = Ee(R), ye = G(() => d.optionsListWidth ? d.optionsListWidth : !d.predefinedTrigger || d.predefinedTrigger === k.DEFAULT || d.predefinedTrigger === k.APP ? M.value - 2 > 240 ? `${M.value - 2}px` : `${F.DROPLIST_MIN_WIDTH}px` : "auto"), H = () => {
|
|
144
146
|
I();
|
|
145
147
|
};
|
|
146
148
|
return j({
|
|
@@ -240,18 +242,12 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
240
242
|
!t(_).length && !e.loading && !e.withConditions ? (n(), r("li", Re, [
|
|
241
243
|
i(t(Y), y({ variant: "body2" }, t(g)[t(p).NO_RESULT]), {
|
|
242
244
|
default: u(() => [
|
|
243
|
-
T(
|
|
245
|
+
T(U(e.noResultsText), 1)
|
|
244
246
|
]),
|
|
245
247
|
_: 1
|
|
246
248
|
}, 16)
|
|
247
249
|
])) : a("", !0),
|
|
248
|
-
e.loading ? (
|
|
249
|
-
i(t(S), { round: "" }),
|
|
250
|
-
i(t(S), { round: "" }),
|
|
251
|
-
i(t(S), { round: "" }),
|
|
252
|
-
i(t(S), { round: "" })
|
|
253
|
-
])) : a("", !0),
|
|
254
|
-
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? f(c.$slots, "select-all", { key: 2 }, () => [
|
|
250
|
+
e.showSelectAll !== !1 && e.multi && !t(v) && !e.loading && e.options.length ? f(c.$slots, "select-all", { key: 1 }, () => [
|
|
255
251
|
m("li", null, [
|
|
256
252
|
i(t(q), y(
|
|
257
253
|
{
|
|
@@ -264,7 +260,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
264
260
|
},
|
|
265
261
|
t(g)[t(p).SELECT_ALL],
|
|
266
262
|
{
|
|
267
|
-
onClick: l[5] || (l[5] =
|
|
263
|
+
onClick: l[5] || (l[5] = W((o) => t(te)(), ["stop"]))
|
|
268
264
|
}
|
|
269
265
|
), {
|
|
270
266
|
default: u(() => [
|
|
@@ -274,16 +270,16 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
274
270
|
}, 16, ["aria-selected", "aria-disabled", "selected-prop", "is-indeterminate", "is-multi"])
|
|
275
271
|
])
|
|
276
272
|
], !0) : a("", !0),
|
|
277
|
-
t(x).length && !e.loading ? (n(!0), r(Te, { key:
|
|
273
|
+
t(x).length && !e.loading ? (n(!0), r(Te, { key: 2 }, ke(t(x), ({ data: o, index: w }) => (n(), r("li", {
|
|
278
274
|
key: w,
|
|
279
275
|
"aria-selected": t(A)(C(t(h)), o),
|
|
280
276
|
"aria-disabled": !!e.disabled,
|
|
281
|
-
onClick:
|
|
277
|
+
onClick: W(() => t(D)(o, w), ["stop"])
|
|
282
278
|
}, [
|
|
283
279
|
e.groupedOptions && t(ce)(o) ? f(c.$slots, "group-option", { key: 0 }, () => [
|
|
284
280
|
i(Le, null, {
|
|
285
281
|
default: u(() => [
|
|
286
|
-
T(
|
|
282
|
+
T(U(e.displayValue(o) || o[e.optionNameKey]), 1)
|
|
287
283
|
]),
|
|
288
284
|
_: 2
|
|
289
285
|
}, 1024)
|
|
@@ -313,11 +309,17 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
313
309
|
"is-multi": e.multi
|
|
314
310
|
}, null, 8, ["option", "selected-prop", "active", "disabled", "name-key", "image-key", "icon-key", "icon-type", "end-icon-key", "end-icon-type", "end-text-icon-key", "option-flag-key", "option-two-lines-variant", "option-two-lines-key", "is-multi"])
|
|
315
311
|
], !0)
|
|
316
|
-
], 8,
|
|
312
|
+
], 8, ze))), 128)) : a("", !0),
|
|
313
|
+
e.loading || e.loadMoreLoading ? (n(), r("li", $e, [
|
|
314
|
+
i(t(S), { round: "" }),
|
|
315
|
+
i(t(S), { round: "" }),
|
|
316
|
+
i(t(S), { round: "" }),
|
|
317
|
+
i(t(S), { round: "" })
|
|
318
|
+
])) : a("", !0)
|
|
317
319
|
], 16)
|
|
318
320
|
], 16),
|
|
319
|
-
e.multi ? (n(), r("div",
|
|
320
|
-
m("div",
|
|
321
|
+
e.multi ? (n(), r("div", Me, [
|
|
322
|
+
m("div", He, [
|
|
321
323
|
i(t(L), y(
|
|
322
324
|
{
|
|
323
325
|
ref_key: "clearAll",
|
|
@@ -337,7 +339,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
337
339
|
_: 1
|
|
338
340
|
}, 16)
|
|
339
341
|
]),
|
|
340
|
-
m("div",
|
|
342
|
+
m("div", Ge, [
|
|
341
343
|
i(t(L), y(
|
|
342
344
|
{
|
|
343
345
|
ref_key: "cancel",
|
|
@@ -420,7 +422,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
420
422
|
showAllSelectedText: e.triggerShowAllSelectedText,
|
|
421
423
|
allSelected: t(K),
|
|
422
424
|
onKeydown: t(N),
|
|
423
|
-
onClick:
|
|
425
|
+
onClick: H
|
|
424
426
|
}
|
|
425
427
|
}, () => [
|
|
426
428
|
t($) ? (n(), r("div", Ne, [
|
|
@@ -451,7 +453,7 @@ const Be = ["tabindex"], Fe = { style: { width: "100%" } }, Ne = { key: 0 }, Ve
|
|
|
451
453
|
"show-all-selected-text": e.triggerShowAllSelectedText,
|
|
452
454
|
"all-selected": t(K),
|
|
453
455
|
onKeydown: t(N),
|
|
454
|
-
onClick:
|
|
456
|
+
onClick: H,
|
|
455
457
|
onCopyToClipboard: l[0] || (l[0] = (o) => B("copyToClipboard"))
|
|
456
458
|
}, null, 40, ["placeholder", "open", "label", "show-feedback-icon", "mandatory", "test-id", "multi", "disabled", "selected-option", "display-value", "options", "option-name-key", "option-image-key", "option-icon-key", "option-icon-type", "option-end-icon-key", "option-end-icon-type", "options-end-text-icon-key", "option-flag-key", "feedback-variant", "value-to-copy", "status-dot-type", "size", "show-all-selected-text", "all-selected", "onKeydown"]))
|
|
457
459
|
])) : a("", !0),
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./OptionV4.vue2.js";
|
|
2
2
|
/* empty css */import _ from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
// import "../../../OptionV4.
|
|
4
|
-
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-
|
|
3
|
+
// import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css"; //*');
|
|
4
|
+
const s = /* @__PURE__ */ _(o, [["__scopeId", "data-v-2c2947b3"]]);
|
|
5
5
|
export {
|
|
6
6
|
s as default
|
|
7
7
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../OptionV4.
|
|
1
|
+
import "../../../OptionV4.vue_vue_type_style_index_0_scoped_2c2947b3_lang.css"; import { defineComponent as N, ref as I, watch as L, computed as w, openBlock as o, createBlock as v, unref as n, createSlots as P, withCtx as d, createElementVNode as c, normalizeClass as k, createCommentVNode as l, createElementBlock as i, renderSlot as m, createVNode as s, toDisplayString as r, createTextVNode as y, withModifiers as $, Fragment as V, renderList as F } from "vue";
|
|
2
2
|
import "../../typography/Heading.vue.js";
|
|
3
3
|
import D from "../../typography/Text.vue.js";
|
|
4
4
|
import R from "../../checkbox/v4/CheckboxV4.vue.js";
|
|
@@ -158,7 +158,7 @@ const Q = { class: "multiline-tooltip" }, W = {
|
|
|
158
158
|
class: "conditional-option-value"
|
|
159
159
|
}, {
|
|
160
160
|
default: d(() => [
|
|
161
|
-
y("'
|
|
161
|
+
y('"' + r(e.option[e.nameKey]) + '"', 1)
|
|
162
162
|
]),
|
|
163
163
|
_: 1
|
|
164
164
|
})
|
|
@@ -1631,6 +1631,14 @@ declare const DropdownTypes: () => (({
|
|
|
1631
1631
|
required: true;
|
|
1632
1632
|
default: string;
|
|
1633
1633
|
};
|
|
1634
|
+
cancelAllSelectedDisplay: {
|
|
1635
|
+
type: import("vue").PropType<boolean>;
|
|
1636
|
+
default: boolean;
|
|
1637
|
+
};
|
|
1638
|
+
displayValueInQuotes: {
|
|
1639
|
+
type: import("vue").PropType<boolean>;
|
|
1640
|
+
default: boolean;
|
|
1641
|
+
};
|
|
1634
1642
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
1635
1643
|
clear: () => void;
|
|
1636
1644
|
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -1681,6 +1689,14 @@ declare const DropdownTypes: () => (({
|
|
|
1681
1689
|
required: true;
|
|
1682
1690
|
default: string;
|
|
1683
1691
|
};
|
|
1692
|
+
cancelAllSelectedDisplay: {
|
|
1693
|
+
type: import("vue").PropType<boolean>;
|
|
1694
|
+
default: boolean;
|
|
1695
|
+
};
|
|
1696
|
+
displayValueInQuotes: {
|
|
1697
|
+
type: import("vue").PropType<boolean>;
|
|
1698
|
+
default: boolean;
|
|
1699
|
+
};
|
|
1684
1700
|
}>> & {
|
|
1685
1701
|
onClear?: () => any;
|
|
1686
1702
|
}, {
|
|
@@ -1691,6 +1707,8 @@ declare const DropdownTypes: () => (({
|
|
|
1691
1707
|
feedbackVariant: string;
|
|
1692
1708
|
allSelected: boolean;
|
|
1693
1709
|
displayedValue: any;
|
|
1710
|
+
cancelAllSelectedDisplay: boolean;
|
|
1711
|
+
displayValueInQuotes: boolean;
|
|
1694
1712
|
}> | ({
|
|
1695
1713
|
new (...args: any[]): {
|
|
1696
1714
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1712,6 +1730,7 @@ declare const DropdownTypes: () => (({
|
|
|
1712
1730
|
valueToCopy: string;
|
|
1713
1731
|
placeholder: string;
|
|
1714
1732
|
multi: boolean;
|
|
1733
|
+
infiniteLoading: boolean;
|
|
1715
1734
|
showSelectAll: boolean;
|
|
1716
1735
|
defaultOpen: boolean;
|
|
1717
1736
|
keepOpen: boolean;
|
|
@@ -1826,6 +1845,13 @@ declare const DropdownTypes: () => (({
|
|
|
1826
1845
|
type: import("vue").PropType<boolean>;
|
|
1827
1846
|
default: boolean;
|
|
1828
1847
|
};
|
|
1848
|
+
loadMoreLoading: {
|
|
1849
|
+
type: import("vue").PropType<boolean>;
|
|
1850
|
+
};
|
|
1851
|
+
infiniteLoading: {
|
|
1852
|
+
type: import("vue").PropType<boolean>;
|
|
1853
|
+
default: boolean;
|
|
1854
|
+
};
|
|
1829
1855
|
showSelectAll: {
|
|
1830
1856
|
type: import("vue").PropType<boolean>;
|
|
1831
1857
|
default: boolean;
|
|
@@ -1992,11 +2018,13 @@ declare const DropdownTypes: () => (({
|
|
|
1992
2018
|
onApply?: (value: unknown) => any;
|
|
1993
2019
|
onSelectAll?: () => any;
|
|
1994
2020
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
2021
|
+
onAllSelectedChanged?: (value: boolean) => any;
|
|
1995
2022
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
1996
2023
|
onOnsearch?: (value: string) => any;
|
|
2024
|
+
onLoadMore?: () => any;
|
|
1997
2025
|
onOpened?: () => any;
|
|
1998
2026
|
onClosed?: () => any;
|
|
1999
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2027
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "placeholder" | "multi" | "infiniteLoading" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "onClearSearch" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
2000
2028
|
$attrs: {
|
|
2001
2029
|
[x: string]: unknown;
|
|
2002
2030
|
};
|
|
@@ -2008,7 +2036,7 @@ declare const DropdownTypes: () => (({
|
|
|
2008
2036
|
}>;
|
|
2009
2037
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
2010
2038
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}>;
|
|
2011
|
-
$emit: ((event: "clear") => void) & ((event: "copyToClipboard") => void) & ((event: "apply", value: unknown) => void) & ((event: "update:selected", value: unknown) => void) & ((event: "update:isOpen", value: unknown) => void) & ((event: "onsearch", value: string) => void) & ((event: "selectAll") => void) & ((event: "opened") => void) & ((event: "closed") => void);
|
|
2039
|
+
$emit: ((event: "clear") => void) & ((event: "copyToClipboard") => void) & ((event: "apply", value: unknown) => void) & ((event: "update:selected", value: unknown) => void) & ((event: "allSelectedChanged", value: boolean) => void) & ((event: "update:isOpen", value: unknown) => void) & ((event: "onsearch", value: string) => void) & ((event: "selectAll") => void) & ((event: "loadMore") => void) & ((event: "opened") => void) & ((event: "closed") => void);
|
|
2012
2040
|
$el: any;
|
|
2013
2041
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
2014
2042
|
theme: {
|
|
@@ -2085,6 +2113,13 @@ declare const DropdownTypes: () => (({
|
|
|
2085
2113
|
type: import("vue").PropType<boolean>;
|
|
2086
2114
|
default: boolean;
|
|
2087
2115
|
};
|
|
2116
|
+
loadMoreLoading: {
|
|
2117
|
+
type: import("vue").PropType<boolean>;
|
|
2118
|
+
};
|
|
2119
|
+
infiniteLoading: {
|
|
2120
|
+
type: import("vue").PropType<boolean>;
|
|
2121
|
+
default: boolean;
|
|
2122
|
+
};
|
|
2088
2123
|
showSelectAll: {
|
|
2089
2124
|
type: import("vue").PropType<boolean>;
|
|
2090
2125
|
default: boolean;
|
|
@@ -2251,8 +2286,10 @@ declare const DropdownTypes: () => (({
|
|
|
2251
2286
|
onApply?: (value: unknown) => any;
|
|
2252
2287
|
onSelectAll?: () => any;
|
|
2253
2288
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
2289
|
+
onAllSelectedChanged?: (value: boolean) => any;
|
|
2254
2290
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
2255
2291
|
onOnsearch?: (value: string) => any;
|
|
2292
|
+
onLoadMore?: () => any;
|
|
2256
2293
|
onOpened?: () => any;
|
|
2257
2294
|
onClosed?: () => any;
|
|
2258
2295
|
}, {
|
|
@@ -2268,6 +2305,8 @@ declare const DropdownTypes: () => (({
|
|
|
2268
2305
|
clear: () => void;
|
|
2269
2306
|
copyToClipboard: () => void;
|
|
2270
2307
|
onsearch: (value: string) => void;
|
|
2308
|
+
loadMore: () => void;
|
|
2309
|
+
allSelectedChanged: (value: boolean) => void;
|
|
2271
2310
|
}, string, {
|
|
2272
2311
|
theme: string;
|
|
2273
2312
|
testId: string;
|
|
@@ -2285,6 +2324,7 @@ declare const DropdownTypes: () => (({
|
|
|
2285
2324
|
valueToCopy: string;
|
|
2286
2325
|
placeholder: string;
|
|
2287
2326
|
multi: boolean;
|
|
2327
|
+
infiniteLoading: boolean;
|
|
2288
2328
|
showSelectAll: boolean;
|
|
2289
2329
|
defaultOpen: boolean;
|
|
2290
2330
|
keepOpen: boolean;
|
|
@@ -2419,6 +2459,13 @@ declare const DropdownTypes: () => (({
|
|
|
2419
2459
|
type: import("vue").PropType<boolean>;
|
|
2420
2460
|
default: boolean;
|
|
2421
2461
|
};
|
|
2462
|
+
loadMoreLoading: {
|
|
2463
|
+
type: import("vue").PropType<boolean>;
|
|
2464
|
+
};
|
|
2465
|
+
infiniteLoading: {
|
|
2466
|
+
type: import("vue").PropType<boolean>;
|
|
2467
|
+
default: boolean;
|
|
2468
|
+
};
|
|
2422
2469
|
showSelectAll: {
|
|
2423
2470
|
type: import("vue").PropType<boolean>;
|
|
2424
2471
|
default: boolean;
|
|
@@ -2585,8 +2632,10 @@ declare const DropdownTypes: () => (({
|
|
|
2585
2632
|
onApply?: (value: unknown) => any;
|
|
2586
2633
|
onSelectAll?: () => any;
|
|
2587
2634
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
2635
|
+
onAllSelectedChanged?: (value: boolean) => any;
|
|
2588
2636
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
2589
2637
|
onOnsearch?: (value: string) => any;
|
|
2638
|
+
onLoadMore?: () => any;
|
|
2590
2639
|
onOpened?: () => any;
|
|
2591
2640
|
onClosed?: () => any;
|
|
2592
2641
|
} & import("vue").ShallowUnwrapRef<{
|
|
@@ -2671,6 +2720,13 @@ declare const DropdownTypes: () => (({
|
|
|
2671
2720
|
type: import("vue").PropType<boolean>;
|
|
2672
2721
|
default: boolean;
|
|
2673
2722
|
};
|
|
2723
|
+
loadMoreLoading: {
|
|
2724
|
+
type: import("vue").PropType<boolean>;
|
|
2725
|
+
};
|
|
2726
|
+
infiniteLoading: {
|
|
2727
|
+
type: import("vue").PropType<boolean>;
|
|
2728
|
+
default: boolean;
|
|
2729
|
+
};
|
|
2674
2730
|
showSelectAll: {
|
|
2675
2731
|
type: import("vue").PropType<boolean>;
|
|
2676
2732
|
default: boolean;
|
|
@@ -2837,8 +2893,10 @@ declare const DropdownTypes: () => (({
|
|
|
2837
2893
|
onApply?: (value: unknown) => any;
|
|
2838
2894
|
onSelectAll?: () => any;
|
|
2839
2895
|
"onUpdate:selected"?: (value: unknown) => any;
|
|
2896
|
+
onAllSelectedChanged?: (value: boolean) => any;
|
|
2840
2897
|
"onUpdate:isOpen"?: (value: unknown) => any;
|
|
2841
2898
|
onOnsearch?: (value: string) => any;
|
|
2899
|
+
onLoadMore?: () => any;
|
|
2842
2900
|
onOpened?: () => any;
|
|
2843
2901
|
onClosed?: () => any;
|
|
2844
2902
|
}, {
|
|
@@ -2854,6 +2912,8 @@ declare const DropdownTypes: () => (({
|
|
|
2854
2912
|
clear: () => void;
|
|
2855
2913
|
copyToClipboard: () => void;
|
|
2856
2914
|
onsearch: (value: string) => void;
|
|
2915
|
+
loadMore: () => void;
|
|
2916
|
+
allSelectedChanged: (value: boolean) => void;
|
|
2857
2917
|
}, string, {
|
|
2858
2918
|
theme: string;
|
|
2859
2919
|
testId: string;
|
|
@@ -2871,6 +2931,7 @@ declare const DropdownTypes: () => (({
|
|
|
2871
2931
|
valueToCopy: string;
|
|
2872
2932
|
placeholder: string;
|
|
2873
2933
|
multi: boolean;
|
|
2934
|
+
infiniteLoading: boolean;
|
|
2874
2935
|
showSelectAll: boolean;
|
|
2875
2936
|
defaultOpen: boolean;
|
|
2876
2937
|
keepOpen: boolean;
|
|
@@ -3506,6 +3567,10 @@ declare const DropdownTypes: () => (({
|
|
|
3506
3567
|
type: import("vue").PropType<boolean>;
|
|
3507
3568
|
default: boolean;
|
|
3508
3569
|
};
|
|
3570
|
+
infiniteLoading: {
|
|
3571
|
+
type: import("vue").PropType<boolean>;
|
|
3572
|
+
default: boolean;
|
|
3573
|
+
};
|
|
3509
3574
|
optionNameKey: {
|
|
3510
3575
|
type: import("vue").PropType<string>;
|
|
3511
3576
|
required: true;
|
|
@@ -3548,6 +3613,10 @@ declare const DropdownTypes: () => (({
|
|
|
3548
3613
|
type: import("vue").PropType<string>;
|
|
3549
3614
|
default: string;
|
|
3550
3615
|
};
|
|
3616
|
+
loadMoreFn: {
|
|
3617
|
+
type: import("vue").PropType<() => Promise<void>>;
|
|
3618
|
+
default: any;
|
|
3619
|
+
};
|
|
3551
3620
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3552
3621
|
"update:selectedCondition": (value: {
|
|
3553
3622
|
label: string;
|
|
@@ -3570,6 +3639,10 @@ declare const DropdownTypes: () => (({
|
|
|
3570
3639
|
type: import("vue").PropType<boolean>;
|
|
3571
3640
|
default: boolean;
|
|
3572
3641
|
};
|
|
3642
|
+
infiniteLoading: {
|
|
3643
|
+
type: import("vue").PropType<boolean>;
|
|
3644
|
+
default: boolean;
|
|
3645
|
+
};
|
|
3573
3646
|
optionNameKey: {
|
|
3574
3647
|
type: import("vue").PropType<string>;
|
|
3575
3648
|
required: true;
|
|
@@ -3612,6 +3685,10 @@ declare const DropdownTypes: () => (({
|
|
|
3612
3685
|
type: import("vue").PropType<string>;
|
|
3613
3686
|
default: string;
|
|
3614
3687
|
};
|
|
3688
|
+
loadMoreFn: {
|
|
3689
|
+
type: import("vue").PropType<() => Promise<void>>;
|
|
3690
|
+
default: any;
|
|
3691
|
+
};
|
|
3615
3692
|
}>> & {
|
|
3616
3693
|
onClear?: () => any;
|
|
3617
3694
|
"onUpdate:selectedCondition"?: (value: {
|
|
@@ -3624,9 +3701,11 @@ declare const DropdownTypes: () => (({
|
|
|
3624
3701
|
label: string;
|
|
3625
3702
|
testId: string;
|
|
3626
3703
|
isOpen: boolean;
|
|
3704
|
+
infiniteLoading: boolean;
|
|
3627
3705
|
optionNameKey: string;
|
|
3628
3706
|
comparingKey: string;
|
|
3629
3707
|
minCharsToStart: number;
|
|
3630
3708
|
searchQuery: string;
|
|
3709
|
+
loadMoreFn: () => Promise<void>;
|
|
3631
3710
|
}>)[];
|
|
3632
3711
|
export { Dropdown, DefaultDropdownTrigger, IconButtonDropdownTrigger, ChipDropdownTrigger, ButtonDropdownTrigger, ButtonFilterDropdownTrigger, AppDropdownTrigger, DropdownTypes, Option, TreeDropdown, ConditionalDropdown, };
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import { useSlots as
|
|
1
|
+
import { useSlots as N, ref as a, provide as V, computed as l, onMounted as Y, nextTick as j } from "vue";
|
|
2
2
|
import { useVirtualList as q, useInfiniteScroll as F } from "@vueuse/core";
|
|
3
3
|
import { TableContext as J } from "./TableContext.js";
|
|
4
|
-
const Q = 46, U = 46,
|
|
5
|
-
const
|
|
6
|
-
|
|
7
|
-
onClose({ rowIndex: t, cellIndex: o, value:
|
|
8
|
-
|
|
4
|
+
const Q = 46, U = 46, Z = 60, ot = (e, d) => {
|
|
5
|
+
const y = N(), u = a([]);
|
|
6
|
+
V(J, {
|
|
7
|
+
onClose({ rowIndex: t, cellIndex: o, value: s } = {}) {
|
|
8
|
+
u.value = [...u.value, t], d("saveRow", {
|
|
9
9
|
rowIndex: t,
|
|
10
10
|
cellIndex: o,
|
|
11
|
-
value:
|
|
11
|
+
value: s,
|
|
12
12
|
confirm: () => {
|
|
13
|
-
|
|
13
|
+
u.value = u.value.filter((n) => n !== t);
|
|
14
14
|
}
|
|
15
15
|
});
|
|
16
16
|
},
|
|
17
17
|
setActiveMenuRow(t) {
|
|
18
|
-
|
|
18
|
+
T.value = t;
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
|
-
const
|
|
22
|
-
const t = (
|
|
23
|
-
return e.columns.reduce((o,
|
|
24
|
-
const
|
|
25
|
-
return `${o} ${
|
|
21
|
+
const C = l(() => !!e.selection), H = () => e.isSelectionSticky ? Z : U, b = l(() => {
|
|
22
|
+
const t = (C.value ? `${H()}px ` : "") + (g.value ? `${Q}px ` : "");
|
|
23
|
+
return e.columns.reduce((o, { width: s, colSpan: n }) => {
|
|
24
|
+
const r = typeof s == "number" ? `${s}px` : s, m = r || `${n || 1}fr`;
|
|
25
|
+
return `${o} ${m}`;
|
|
26
26
|
}, t);
|
|
27
|
-
}), g =
|
|
27
|
+
}), g = l(() => !!y.expanded), k = a(null), T = a(null), x = l(() => Array(e.loadingRowCount).fill(
|
|
28
28
|
Array(e.columns.length).fill("")
|
|
29
|
-
)),
|
|
29
|
+
)), A = l(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...x.value] : e.rows : e.isLoading ? [
|
|
30
30
|
...e.rows.map((o) => o[e.rowDataKey]),
|
|
31
|
-
...
|
|
32
|
-
] : e.rows.map((o) => o[e.rowDataKey])), { list:
|
|
33
|
-
|
|
31
|
+
...x.value
|
|
32
|
+
] : e.rows.map((o) => o[e.rowDataKey])), { list: R, containerProps: i, wrapperProps: I, scrollTo: O } = q(
|
|
33
|
+
A,
|
|
34
34
|
{
|
|
35
35
|
itemHeight: g.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
|
|
36
36
|
}
|
|
37
|
-
),
|
|
38
|
-
i.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width,
|
|
37
|
+
), $ = a(null), h = a(0), B = l(() => !!y.search), L = (t) => {
|
|
38
|
+
i.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, d("onScroll", t.target.scrollTop);
|
|
39
39
|
};
|
|
40
|
-
|
|
40
|
+
Y(() => {
|
|
41
41
|
h.value = i.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
|
|
42
42
|
i.ref.value?.scrollTo({
|
|
43
43
|
top: e.defaultScrollPosition,
|
|
@@ -45,79 +45,79 @@ const Q = 46, U = 46, tt = (e, u) => {
|
|
|
45
45
|
});
|
|
46
46
|
}, 300);
|
|
47
47
|
});
|
|
48
|
-
const
|
|
49
|
-
const [t] =
|
|
48
|
+
const P = l(() => {
|
|
49
|
+
const [t] = R.value;
|
|
50
50
|
return t && t.index > 0;
|
|
51
|
-
}),
|
|
51
|
+
}), E = l(() => i.style), _ = l(() => e.columns.reduce((t, o) => (o.isSticky && (t[o.id] = W(o)), t), {}));
|
|
52
52
|
F(
|
|
53
53
|
i.ref,
|
|
54
54
|
() => {
|
|
55
|
-
e.isInfiniteScroll &&
|
|
55
|
+
e.isInfiniteScroll && d("loadMore");
|
|
56
56
|
},
|
|
57
57
|
{ distance: e.infiniteScrollThreshold }
|
|
58
58
|
);
|
|
59
|
-
function
|
|
59
|
+
function D() {
|
|
60
60
|
i.ref.value?.scrollTo({
|
|
61
61
|
top: 0,
|
|
62
62
|
behavior: "smooth"
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
|
-
function
|
|
65
|
+
function K(t) {
|
|
66
66
|
if (!e.sort)
|
|
67
67
|
return;
|
|
68
68
|
const o = e.sort.sortBy === t.id;
|
|
69
69
|
if (!(t.isSortable || t.isSortable === void 0))
|
|
70
70
|
return;
|
|
71
|
-
let n = e.sort.sortOrder,
|
|
72
|
-
o ? n = e.sort.sortOrder === "asc" ? "desc" : "asc" :
|
|
71
|
+
let n = e.sort.sortOrder, r = e.sort.sortBy;
|
|
72
|
+
o ? n = e.sort.sortOrder === "asc" ? "desc" : "asc" : r = t.id, d("update:sort", { sortBy: r, sortOrder: n });
|
|
73
73
|
}
|
|
74
|
-
function
|
|
75
|
-
const { isSticky: o, width:
|
|
76
|
-
if (!o || !
|
|
74
|
+
function W(t) {
|
|
75
|
+
const { isSticky: o, width: s } = t;
|
|
76
|
+
if (!o || !s)
|
|
77
77
|
return null;
|
|
78
|
-
const n = e.columns.findIndex((
|
|
78
|
+
const n = e.columns.findIndex((c) => c.id === t.id), r = e.columns.reduce((c, v, S) => S < n ? c + v.width : c, 0), m = e.columns.reduce((c, v, S) => S > n ? c + v.width : c, 0);
|
|
79
79
|
return {
|
|
80
|
-
...t.isStickyRight ? { right: `${
|
|
80
|
+
...t.isStickyRight ? { right: `${m}px` } : { left: `${r}px` },
|
|
81
81
|
zIndex: 1
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
|
-
const
|
|
85
|
-
const
|
|
86
|
-
if (
|
|
87
|
-
|
|
84
|
+
const f = a([]), w = {}, M = (t) => f.value.includes(t), X = async (t, o) => {
|
|
85
|
+
const s = f.value.indexOf(t);
|
|
86
|
+
if (s === -1) {
|
|
87
|
+
f.value.push(t);
|
|
88
88
|
const n = o.target.closest("tr");
|
|
89
89
|
await j(), n && (w[t] = n.offsetHeight);
|
|
90
90
|
} else
|
|
91
|
-
|
|
92
|
-
},
|
|
91
|
+
f.value.splice(s, 1), delete w[t];
|
|
92
|
+
}, z = l(() => `${e.rowHeight}px`), G = l(
|
|
93
93
|
() => `1 / span ${e.columns.length + 1}`
|
|
94
94
|
);
|
|
95
95
|
return {
|
|
96
|
-
list:
|
|
96
|
+
list: R,
|
|
97
97
|
containerProps: i,
|
|
98
|
-
wrapperProps:
|
|
99
|
-
activeRow:
|
|
100
|
-
gridColumnTemplate:
|
|
101
|
-
floatingActionRef:
|
|
102
|
-
scrollToTop:
|
|
103
|
-
toggleSortOrder:
|
|
104
|
-
columnsStickyPositions:
|
|
98
|
+
wrapperProps: I,
|
|
99
|
+
activeRow: k,
|
|
100
|
+
gridColumnTemplate: b,
|
|
101
|
+
floatingActionRef: $,
|
|
102
|
+
scrollToTop: D,
|
|
103
|
+
toggleSortOrder: K,
|
|
104
|
+
columnsStickyPositions: _,
|
|
105
105
|
hasSearchSlot: B,
|
|
106
|
-
showBackToTopButton:
|
|
107
|
-
containerStyle:
|
|
108
|
-
onScroll:
|
|
109
|
-
scrollTo:
|
|
110
|
-
savingRows:
|
|
106
|
+
showBackToTopButton: P,
|
|
107
|
+
containerStyle: E,
|
|
108
|
+
onScroll: L,
|
|
109
|
+
scrollTo: O,
|
|
110
|
+
savingRows: u,
|
|
111
111
|
floatingActionPosition: h,
|
|
112
112
|
hasExpandSlot: g,
|
|
113
|
-
hasCheckboxes:
|
|
114
|
-
toggleExpandRow:
|
|
115
|
-
isRowExpanded:
|
|
116
|
-
cssRowHeight:
|
|
117
|
-
cssExpandGridCol:
|
|
118
|
-
activeMenuRow:
|
|
113
|
+
hasCheckboxes: C,
|
|
114
|
+
toggleExpandRow: X,
|
|
115
|
+
isRowExpanded: M,
|
|
116
|
+
cssRowHeight: z,
|
|
117
|
+
cssExpandGridCol: G,
|
|
118
|
+
activeMenuRow: T
|
|
119
119
|
};
|
|
120
120
|
};
|
|
121
121
|
export {
|
|
122
|
-
|
|
122
|
+
ot as tableCommon
|
|
123
123
|
};
|
|
@@ -67,10 +67,10 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
67
67
|
defaultScrollPosition: any;
|
|
68
68
|
testId: string;
|
|
69
69
|
}>>> & {
|
|
70
|
+
onLoadMore?: () => any;
|
|
70
71
|
onOnScroll?: (event: Event) => any;
|
|
71
72
|
"onUpdate:sort"?: (newSort: Sort) => any;
|
|
72
73
|
onSaveRow?: (args_0: SaveRowEvent) => any;
|
|
73
|
-
onLoadMore?: () => any;
|
|
74
74
|
}, {
|
|
75
75
|
testId: string;
|
|
76
76
|
isLoading: boolean;
|