@ironsource/shared-ui 2.1.11-test.7 → 2.1.11-test.9
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/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_ba28c717_lang.css +1 -0
- package/ConditionalDroprown.vue_vue_type_style_index_0_scoped_546e19a9_lang.css +1 -0
- package/DropdownV4.vue_vue_type_style_index_0_scoped_f88a132e_lang.css +1 -0
- package/OptionV4.vue_vue_type_style_index_0_scoped_df830bf5_lang.css +1 -0
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_bdfb0aef_lang.css +1 -0
- package/components/autocomplete/Autocomplete.vue2.js +3 -2
- package/components/chart/SettingsHeader.vue2.js +3 -2
- package/components/datePicker/v4/DatePickerV4.vue2.js +8 -7
- package/components/dateRange/v4/DateRangeV4.vue2.js +21 -20
- package/components/dropdown/common/Dropdown.common.js +127 -127
- package/components/dropdown/v3/Dropdown.vue.d.ts +1 -1
- package/components/dropdown/v3/index.d.ts +12 -12
- package/components/dropdown/v4/ChipDropdownTrigger.vue.js +2 -2
- package/components/dropdown/v4/ChipDropdownTrigger.vue2.js +66 -44
- package/components/dropdown/v4/ConditionalDroprown.vue.d.ts +68 -0
- package/components/dropdown/v4/ConditionalDroprown.vue.js +7 -0
- package/components/dropdown/v4/ConditionalDroprown.vue2.js +157 -0
- package/components/dropdown/v4/DropdownV4.vue.d.ts +6 -5
- package/components/dropdown/v4/DropdownV4.vue.js +3 -3
- package/components/dropdown/v4/DropdownV4.vue2.js +85 -78
- package/components/dropdown/v4/OptionV4.vue.d.ts +5 -0
- package/components/dropdown/v4/OptionV4.vue.js +2 -2
- package/components/dropdown/v4/OptionV4.vue2.js +119 -93
- package/components/dropdown/v4/TreeDropdown.vue.js +2 -2
- package/components/dropdown/v4/TreeDropdown.vue2.js +105 -95
- package/components/dropdown/v4/index.d.ts +160 -27
- package/components/dropdown/v4/index.js +6 -3
- package/components/multibar/MultiBarMenu.vue2.js +3 -2
- package/components/popover/v4/PopoverV4.vue.js +3 -2
- package/components/popover/v4/PopoverV4.vue2.js +1 -1
- package/components/table/common/Table.common.js +26 -28
- package/components/table/v4/DataGridMenu.vue2.js +3 -2
- package/index.d.ts +316 -51
- package/index.js +1 -1
- package/mocks/options.d.ts +19 -4
- package/package.json +2 -1
- package/ChipDropdownTrigger.vue_vue_type_style_index_0_scoped_49bd7193_lang.css +0 -1
- package/DropdownV4.vue_vue_type_style_index_0_scoped_562f0b72_lang.css +0 -1
- package/OptionV4.vue_vue_type_style_index_0_scoped_da829544_lang.css +0 -1
- package/TreeDropdown.vue_vue_type_style_index_0_scoped_985779f7_lang.css +0 -1
|
@@ -7,6 +7,7 @@ import ButtonDropdownTrigger from './ButtonDropdownTrigger.vue';
|
|
|
7
7
|
import ButtonFilterDropdownTrigger from './ButtonFilterDropdownTrigger.vue';
|
|
8
8
|
import TreeDropdown from './TreeDropdown.vue';
|
|
9
9
|
import Option from './OptionV4.vue';
|
|
10
|
+
import ConditionalDroprown from './ConditionalDroprown.vue';
|
|
10
11
|
declare const DropdownTypes: () => (({
|
|
11
12
|
new (...args: any[]): {
|
|
12
13
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -1097,6 +1098,7 @@ declare const DropdownTypes: () => (({
|
|
|
1097
1098
|
treeMainOptionExpanded: boolean;
|
|
1098
1099
|
stopOptionClickEventPropagation: boolean;
|
|
1099
1100
|
treeChildShown: boolean;
|
|
1101
|
+
isMulti: boolean;
|
|
1100
1102
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
1101
1103
|
option: {
|
|
1102
1104
|
type: import("vue").PropType<unknown>;
|
|
@@ -1182,12 +1184,16 @@ declare const DropdownTypes: () => (({
|
|
|
1182
1184
|
type: import("vue").PropType<boolean>;
|
|
1183
1185
|
default: boolean;
|
|
1184
1186
|
};
|
|
1187
|
+
isMulti: {
|
|
1188
|
+
type: import("vue").PropType<boolean>;
|
|
1189
|
+
default: boolean;
|
|
1190
|
+
};
|
|
1185
1191
|
selectedProp: {
|
|
1186
1192
|
type: import("vue").PropType<boolean>;
|
|
1187
1193
|
};
|
|
1188
1194
|
}>> & {
|
|
1189
1195
|
onToggleTreeCollapse?: (option: unknown) => any;
|
|
1190
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "option" | "disabled" | "active" | "endIconType" | "optionFlagKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "isIndeterminate" | "subtitle" | "selectAllOption" | "nameKey" | "imageKey" | "iconKey" | "iconType" | "endIconKey" | "endTextIconKey" | "toolTipPlacement" | "treeMainOption" | "treeMainOptionExpanded" | "stopOptionClickEventPropagation" | "treeChildShown">;
|
|
1196
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "option" | "disabled" | "active" | "endIconType" | "optionFlagKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "isIndeterminate" | "subtitle" | "selectAllOption" | "nameKey" | "imageKey" | "iconKey" | "iconType" | "endIconKey" | "endTextIconKey" | "toolTipPlacement" | "treeMainOption" | "treeMainOptionExpanded" | "stopOptionClickEventPropagation" | "treeChildShown" | "isMulti">;
|
|
1191
1197
|
$attrs: {
|
|
1192
1198
|
[x: string]: unknown;
|
|
1193
1199
|
};
|
|
@@ -1286,6 +1292,10 @@ declare const DropdownTypes: () => (({
|
|
|
1286
1292
|
type: import("vue").PropType<boolean>;
|
|
1287
1293
|
default: boolean;
|
|
1288
1294
|
};
|
|
1295
|
+
isMulti: {
|
|
1296
|
+
type: import("vue").PropType<boolean>;
|
|
1297
|
+
default: boolean;
|
|
1298
|
+
};
|
|
1289
1299
|
selectedProp: {
|
|
1290
1300
|
type: import("vue").PropType<boolean>;
|
|
1291
1301
|
};
|
|
@@ -1315,6 +1325,7 @@ declare const DropdownTypes: () => (({
|
|
|
1315
1325
|
treeMainOptionExpanded: boolean;
|
|
1316
1326
|
stopOptionClickEventPropagation: boolean;
|
|
1317
1327
|
treeChildShown: boolean;
|
|
1328
|
+
isMulti: boolean;
|
|
1318
1329
|
}, {}, string> & {
|
|
1319
1330
|
beforeCreate?: (() => void) | (() => void)[];
|
|
1320
1331
|
created?: (() => void) | (() => void)[];
|
|
@@ -1420,6 +1431,10 @@ declare const DropdownTypes: () => (({
|
|
|
1420
1431
|
type: import("vue").PropType<boolean>;
|
|
1421
1432
|
default: boolean;
|
|
1422
1433
|
};
|
|
1434
|
+
isMulti: {
|
|
1435
|
+
type: import("vue").PropType<boolean>;
|
|
1436
|
+
default: boolean;
|
|
1437
|
+
};
|
|
1423
1438
|
selectedProp: {
|
|
1424
1439
|
type: import("vue").PropType<boolean>;
|
|
1425
1440
|
};
|
|
@@ -1514,6 +1529,10 @@ declare const DropdownTypes: () => (({
|
|
|
1514
1529
|
type: import("vue").PropType<boolean>;
|
|
1515
1530
|
default: boolean;
|
|
1516
1531
|
};
|
|
1532
|
+
isMulti: {
|
|
1533
|
+
type: import("vue").PropType<boolean>;
|
|
1534
|
+
default: boolean;
|
|
1535
|
+
};
|
|
1517
1536
|
selectedProp: {
|
|
1518
1537
|
type: import("vue").PropType<boolean>;
|
|
1519
1538
|
};
|
|
@@ -1543,6 +1562,7 @@ declare const DropdownTypes: () => (({
|
|
|
1543
1562
|
treeMainOptionExpanded: boolean;
|
|
1544
1563
|
stopOptionClickEventPropagation: boolean;
|
|
1545
1564
|
treeChildShown: boolean;
|
|
1565
|
+
isMulti: boolean;
|
|
1546
1566
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
1547
1567
|
$slots: {
|
|
1548
1568
|
image?(_: {}): any;
|
|
@@ -1724,13 +1744,13 @@ declare const DropdownTypes: () => (({
|
|
|
1724
1744
|
optionTwoLinesKey: string;
|
|
1725
1745
|
groupedOptions: boolean;
|
|
1726
1746
|
comparingKey: string;
|
|
1727
|
-
withConditions: boolean;
|
|
1728
1747
|
customNumberOfDisplayedOptions: number;
|
|
1729
1748
|
fullWidth: boolean;
|
|
1730
1749
|
optionsListWidth: string;
|
|
1731
1750
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
1732
1751
|
disableVirtualScroll: boolean;
|
|
1733
1752
|
overrideOptionCountCalculation: (option: unknown) => number;
|
|
1753
|
+
withConditions: boolean;
|
|
1734
1754
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
1735
1755
|
theme: {
|
|
1736
1756
|
type: import("vue").PropType<string>;
|
|
@@ -1938,11 +1958,6 @@ declare const DropdownTypes: () => (({
|
|
|
1938
1958
|
type: import("vue").PropType<string>;
|
|
1939
1959
|
default: any;
|
|
1940
1960
|
};
|
|
1941
|
-
withConditions: {
|
|
1942
|
-
type: import("vue").PropType<boolean>;
|
|
1943
|
-
required: true;
|
|
1944
|
-
default: boolean;
|
|
1945
|
-
};
|
|
1946
1961
|
customNumberOfDisplayedOptions: {
|
|
1947
1962
|
type: import("vue").PropType<number>;
|
|
1948
1963
|
default: any;
|
|
@@ -1967,6 +1982,10 @@ declare const DropdownTypes: () => (({
|
|
|
1967
1982
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
1968
1983
|
default: any;
|
|
1969
1984
|
};
|
|
1985
|
+
withConditions: {
|
|
1986
|
+
type: import("vue").PropType<boolean>;
|
|
1987
|
+
default: boolean;
|
|
1988
|
+
};
|
|
1970
1989
|
}>> & {
|
|
1971
1990
|
onCopyToClipboard?: () => any;
|
|
1972
1991
|
onClear?: () => any;
|
|
@@ -1977,7 +1996,7 @@ declare const DropdownTypes: () => (({
|
|
|
1977
1996
|
onOnsearch?: (value: string) => any;
|
|
1978
1997
|
onOpened?: () => any;
|
|
1979
1998
|
onClosed?: () => any;
|
|
1980
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "onClear" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "
|
|
1999
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "testId" | "placement" | "disabled" | "distance" | "container" | "popperClass" | "size" | "flip" | "mandatory" | "skidding" | "modelValue" | "selected" | "valueToCopy" | "onClear" | "placeholder" | "multi" | "showSelectAll" | "defaultOpen" | "keepOpen" | "autoSize" | "disableKeyboardEvents" | "isOnTop" | "triggerLabel" | "triggerHelperText" | "triggerFeedbackText" | "triggerFeedbackVariant" | "triggerFeedbackShowIcon" | "triggerShowAllSelectedText" | "predefinedTrigger" | "inlineSearch" | "inlineSearchPlaceholder" | "onSearch" | "noResultsText" | "searchAutoFocus" | "optionNameKey" | "optionIconKey" | "optionImageKey" | "optionIconType" | "optionEndIconKey" | "optionEndIconType" | "optionsEndTextIconKey" | "optionFlagKey" | "disabledOptionKey" | "optionTwoLinesVariant" | "optionTwoLinesKey" | "groupedOptions" | "comparingKey" | "customNumberOfDisplayedOptions" | "fullWidth" | "optionsListWidth" | "statusType" | "disableVirtualScroll" | "overrideOptionCountCalculation" | "withConditions">;
|
|
1981
2000
|
$attrs: {
|
|
1982
2001
|
[x: string]: unknown;
|
|
1983
2002
|
};
|
|
@@ -2198,11 +2217,6 @@ declare const DropdownTypes: () => (({
|
|
|
2198
2217
|
type: import("vue").PropType<string>;
|
|
2199
2218
|
default: any;
|
|
2200
2219
|
};
|
|
2201
|
-
withConditions: {
|
|
2202
|
-
type: import("vue").PropType<boolean>;
|
|
2203
|
-
required: true;
|
|
2204
|
-
default: boolean;
|
|
2205
|
-
};
|
|
2206
2220
|
customNumberOfDisplayedOptions: {
|
|
2207
2221
|
type: import("vue").PropType<number>;
|
|
2208
2222
|
default: any;
|
|
@@ -2227,6 +2241,10 @@ declare const DropdownTypes: () => (({
|
|
|
2227
2241
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
2228
2242
|
default: any;
|
|
2229
2243
|
};
|
|
2244
|
+
withConditions: {
|
|
2245
|
+
type: import("vue").PropType<boolean>;
|
|
2246
|
+
default: boolean;
|
|
2247
|
+
};
|
|
2230
2248
|
}>> & {
|
|
2231
2249
|
onCopyToClipboard?: () => any;
|
|
2232
2250
|
onClear?: () => any;
|
|
@@ -2299,13 +2317,13 @@ declare const DropdownTypes: () => (({
|
|
|
2299
2317
|
optionTwoLinesKey: string;
|
|
2300
2318
|
groupedOptions: boolean;
|
|
2301
2319
|
comparingKey: string;
|
|
2302
|
-
withConditions: boolean;
|
|
2303
2320
|
customNumberOfDisplayedOptions: number;
|
|
2304
2321
|
fullWidth: boolean;
|
|
2305
2322
|
optionsListWidth: string;
|
|
2306
2323
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
2307
2324
|
disableVirtualScroll: boolean;
|
|
2308
2325
|
overrideOptionCountCalculation: (option: unknown) => number;
|
|
2326
|
+
withConditions: boolean;
|
|
2309
2327
|
}, {}, string> & {
|
|
2310
2328
|
beforeCreate?: (() => void) | (() => void)[];
|
|
2311
2329
|
created?: (() => void) | (() => void)[];
|
|
@@ -2533,11 +2551,6 @@ declare const DropdownTypes: () => (({
|
|
|
2533
2551
|
type: import("vue").PropType<string>;
|
|
2534
2552
|
default: any;
|
|
2535
2553
|
};
|
|
2536
|
-
withConditions: {
|
|
2537
|
-
type: import("vue").PropType<boolean>;
|
|
2538
|
-
required: true;
|
|
2539
|
-
default: boolean;
|
|
2540
|
-
};
|
|
2541
2554
|
customNumberOfDisplayedOptions: {
|
|
2542
2555
|
type: import("vue").PropType<number>;
|
|
2543
2556
|
default: any;
|
|
@@ -2562,6 +2575,10 @@ declare const DropdownTypes: () => (({
|
|
|
2562
2575
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
2563
2576
|
default: any;
|
|
2564
2577
|
};
|
|
2578
|
+
withConditions: {
|
|
2579
|
+
type: import("vue").PropType<boolean>;
|
|
2580
|
+
default: boolean;
|
|
2581
|
+
};
|
|
2565
2582
|
}>> & {
|
|
2566
2583
|
onCopyToClipboard?: () => any;
|
|
2567
2584
|
onClear?: () => any;
|
|
@@ -2786,11 +2803,6 @@ declare const DropdownTypes: () => (({
|
|
|
2786
2803
|
type: import("vue").PropType<string>;
|
|
2787
2804
|
default: any;
|
|
2788
2805
|
};
|
|
2789
|
-
withConditions: {
|
|
2790
|
-
type: import("vue").PropType<boolean>;
|
|
2791
|
-
required: true;
|
|
2792
|
-
default: boolean;
|
|
2793
|
-
};
|
|
2794
2806
|
customNumberOfDisplayedOptions: {
|
|
2795
2807
|
type: import("vue").PropType<number>;
|
|
2796
2808
|
default: any;
|
|
@@ -2815,6 +2827,10 @@ declare const DropdownTypes: () => (({
|
|
|
2815
2827
|
type: import("vue").PropType<(option: unknown) => number>;
|
|
2816
2828
|
default: any;
|
|
2817
2829
|
};
|
|
2830
|
+
withConditions: {
|
|
2831
|
+
type: import("vue").PropType<boolean>;
|
|
2832
|
+
default: boolean;
|
|
2833
|
+
};
|
|
2818
2834
|
}>> & {
|
|
2819
2835
|
onCopyToClipboard?: () => any;
|
|
2820
2836
|
onClear?: () => any;
|
|
@@ -2887,13 +2903,13 @@ declare const DropdownTypes: () => (({
|
|
|
2887
2903
|
optionTwoLinesKey: string;
|
|
2888
2904
|
groupedOptions: boolean;
|
|
2889
2905
|
comparingKey: string;
|
|
2890
|
-
withConditions: boolean;
|
|
2891
2906
|
customNumberOfDisplayedOptions: number;
|
|
2892
2907
|
fullWidth: boolean;
|
|
2893
2908
|
optionsListWidth: string;
|
|
2894
2909
|
statusType: "default" | "disabled" | "success" | "warning" | "error" | "archive";
|
|
2895
2910
|
disableVirtualScroll: boolean;
|
|
2896
2911
|
overrideOptionCountCalculation: (option: unknown) => number;
|
|
2912
|
+
withConditions: boolean;
|
|
2897
2913
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
2898
2914
|
$slots: {
|
|
2899
2915
|
label?(_: {}): any;
|
|
@@ -2939,6 +2955,7 @@ declare const DropdownTypes: () => (({
|
|
|
2939
2955
|
"input-list"?(_: {
|
|
2940
2956
|
open: true;
|
|
2941
2957
|
}): any;
|
|
2958
|
+
"custom-list-area"?(_: {}): any;
|
|
2942
2959
|
"select-all"?(_: {}): any;
|
|
2943
2960
|
"group-option"?(_: {}): any;
|
|
2944
2961
|
default?(_: {
|
|
@@ -3475,5 +3492,121 @@ declare const DropdownTypes: () => (({
|
|
|
3475
3492
|
$slots: {
|
|
3476
3493
|
"trigger-end-icon"?(_: {}): any;
|
|
3477
3494
|
};
|
|
3478
|
-
})))
|
|
3479
|
-
|
|
3495
|
+
})) | import("vue").DefineComponent<{
|
|
3496
|
+
label: {
|
|
3497
|
+
type: import("vue").PropType<string>;
|
|
3498
|
+
required: true;
|
|
3499
|
+
default: string;
|
|
3500
|
+
};
|
|
3501
|
+
testId: {
|
|
3502
|
+
type: import("vue").PropType<string>;
|
|
3503
|
+
default: string;
|
|
3504
|
+
};
|
|
3505
|
+
optionNameKey: {
|
|
3506
|
+
type: import("vue").PropType<string>;
|
|
3507
|
+
required: true;
|
|
3508
|
+
default: string;
|
|
3509
|
+
};
|
|
3510
|
+
comparingKey: {
|
|
3511
|
+
type: import("vue").PropType<string>;
|
|
3512
|
+
required: true;
|
|
3513
|
+
default: string;
|
|
3514
|
+
};
|
|
3515
|
+
conditionalOptions: {
|
|
3516
|
+
type: import("vue").PropType<{
|
|
3517
|
+
label: string;
|
|
3518
|
+
value: string;
|
|
3519
|
+
multi: boolean;
|
|
3520
|
+
}[]>;
|
|
3521
|
+
required: true;
|
|
3522
|
+
};
|
|
3523
|
+
selectedCondition: {
|
|
3524
|
+
type: import("vue").PropType<{
|
|
3525
|
+
label: string;
|
|
3526
|
+
value: string;
|
|
3527
|
+
multi: boolean;
|
|
3528
|
+
}>;
|
|
3529
|
+
required: true;
|
|
3530
|
+
};
|
|
3531
|
+
appliedSelections: {
|
|
3532
|
+
type: import("vue").PropType<unknown>;
|
|
3533
|
+
required: true;
|
|
3534
|
+
};
|
|
3535
|
+
fetchFnCallback: {
|
|
3536
|
+
type: import("vue").PropType<(q: string) => Promise<unknown[]>>;
|
|
3537
|
+
required: true;
|
|
3538
|
+
};
|
|
3539
|
+
minCharsToStart: {
|
|
3540
|
+
type: import("vue").PropType<number>;
|
|
3541
|
+
default: number;
|
|
3542
|
+
};
|
|
3543
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
3544
|
+
"update:selectedCondition": (value: {
|
|
3545
|
+
label: string;
|
|
3546
|
+
value: string;
|
|
3547
|
+
multi: boolean;
|
|
3548
|
+
}) => void;
|
|
3549
|
+
"update:appliedSelections": (value: unknown) => void;
|
|
3550
|
+
}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
3551
|
+
label: {
|
|
3552
|
+
type: import("vue").PropType<string>;
|
|
3553
|
+
required: true;
|
|
3554
|
+
default: string;
|
|
3555
|
+
};
|
|
3556
|
+
testId: {
|
|
3557
|
+
type: import("vue").PropType<string>;
|
|
3558
|
+
default: string;
|
|
3559
|
+
};
|
|
3560
|
+
optionNameKey: {
|
|
3561
|
+
type: import("vue").PropType<string>;
|
|
3562
|
+
required: true;
|
|
3563
|
+
default: string;
|
|
3564
|
+
};
|
|
3565
|
+
comparingKey: {
|
|
3566
|
+
type: import("vue").PropType<string>;
|
|
3567
|
+
required: true;
|
|
3568
|
+
default: string;
|
|
3569
|
+
};
|
|
3570
|
+
conditionalOptions: {
|
|
3571
|
+
type: import("vue").PropType<{
|
|
3572
|
+
label: string;
|
|
3573
|
+
value: string;
|
|
3574
|
+
multi: boolean;
|
|
3575
|
+
}[]>;
|
|
3576
|
+
required: true;
|
|
3577
|
+
};
|
|
3578
|
+
selectedCondition: {
|
|
3579
|
+
type: import("vue").PropType<{
|
|
3580
|
+
label: string;
|
|
3581
|
+
value: string;
|
|
3582
|
+
multi: boolean;
|
|
3583
|
+
}>;
|
|
3584
|
+
required: true;
|
|
3585
|
+
};
|
|
3586
|
+
appliedSelections: {
|
|
3587
|
+
type: import("vue").PropType<unknown>;
|
|
3588
|
+
required: true;
|
|
3589
|
+
};
|
|
3590
|
+
fetchFnCallback: {
|
|
3591
|
+
type: import("vue").PropType<(q: string) => Promise<unknown[]>>;
|
|
3592
|
+
required: true;
|
|
3593
|
+
};
|
|
3594
|
+
minCharsToStart: {
|
|
3595
|
+
type: import("vue").PropType<number>;
|
|
3596
|
+
default: number;
|
|
3597
|
+
};
|
|
3598
|
+
}>> & {
|
|
3599
|
+
"onUpdate:selectedCondition"?: (value: {
|
|
3600
|
+
label: string;
|
|
3601
|
+
value: string;
|
|
3602
|
+
multi: boolean;
|
|
3603
|
+
}) => any;
|
|
3604
|
+
"onUpdate:appliedSelections"?: (value: unknown) => any;
|
|
3605
|
+
}, {
|
|
3606
|
+
label: string;
|
|
3607
|
+
testId: string;
|
|
3608
|
+
optionNameKey: string;
|
|
3609
|
+
comparingKey: string;
|
|
3610
|
+
minCharsToStart: number;
|
|
3611
|
+
}>)[];
|
|
3612
|
+
export { Dropdown, DefaultDropdownTrigger, IconButtonDropdownTrigger, ChipDropdownTrigger, ButtonDropdownTrigger, ButtonFilterDropdownTrigger, AppDropdownTrigger, DropdownTypes, Option, TreeDropdown, ConditionalDroprown, };
|
|
@@ -7,7 +7,8 @@ import m from "./ButtonDropdownTrigger.vue.js";
|
|
|
7
7
|
import n from "./ButtonFilterDropdownTrigger.vue.js";
|
|
8
8
|
import e from "./TreeDropdown.vue.js";
|
|
9
9
|
import g from "./OptionV4.vue.js";
|
|
10
|
-
|
|
10
|
+
import f from "./ConditionalDroprown.vue.js";
|
|
11
|
+
const C = () => [
|
|
11
12
|
o,
|
|
12
13
|
r,
|
|
13
14
|
p,
|
|
@@ -16,16 +17,18 @@ const s = () => [
|
|
|
16
17
|
n,
|
|
17
18
|
i,
|
|
18
19
|
g,
|
|
19
|
-
e
|
|
20
|
+
e,
|
|
21
|
+
f
|
|
20
22
|
];
|
|
21
23
|
export {
|
|
22
24
|
i as AppDropdownTrigger,
|
|
23
25
|
m as ButtonDropdownTrigger,
|
|
24
26
|
n as ButtonFilterDropdownTrigger,
|
|
25
27
|
t as ChipDropdownTrigger,
|
|
28
|
+
f as ConditionalDroprown,
|
|
26
29
|
r as DefaultDropdownTrigger,
|
|
27
30
|
o as Dropdown,
|
|
28
|
-
|
|
31
|
+
C as DropdownTypes,
|
|
29
32
|
p as IconButtonDropdownTrigger,
|
|
30
33
|
g as Option,
|
|
31
34
|
e as TreeDropdown
|
|
@@ -8,9 +8,10 @@ import "../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import g from "../dropdown/v4/OptionV4.vue.js";
|
|
11
|
+
import "../dropdown/v4/ConditionalDroprown.vue.js";
|
|
11
12
|
import x from "../icon/v4/IconV4.vue.js";
|
|
12
13
|
import "../icon/v4/IconFlag.vue.js";
|
|
13
|
-
const
|
|
14
|
+
const h = /* @__PURE__ */ a({
|
|
14
15
|
__name: "MultiBarMenu",
|
|
15
16
|
props: {
|
|
16
17
|
menuItems: { default: () => [] },
|
|
@@ -56,5 +57,5 @@ const S = /* @__PURE__ */ a({
|
|
|
56
57
|
}
|
|
57
58
|
});
|
|
58
59
|
export {
|
|
59
|
-
|
|
60
|
+
h as default
|
|
60
61
|
};
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import o from "./PopoverV4.vue2.js";
|
|
2
2
|
/* empty css *//* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
3
3
|
// import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css"; //*');
|
|
4
|
-
|
|
4
|
+
// import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; //');
|
|
5
|
+
const r = /* @__PURE__ */ e(o, [["__scopeId", "data-v-43b5cba4"]]);
|
|
5
6
|
export {
|
|
6
|
-
|
|
7
|
+
r as default
|
|
7
8
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css"; import { defineComponent as c, watch as f, openBlock as i, createBlock as g, unref as o, withCtx as n, createElementBlock as k, renderSlot as p, createCommentVNode as v, createElementVNode as h } from "vue";
|
|
1
|
+
import "../../../PopoverV4.vue_vue_type_style_index_0_scoped_43b5cba4_lang.css"; import "../../../PopoverV4.vue_vue_type_style_index_1_lang.css"; import { defineComponent as c, watch as f, openBlock as i, createBlock as g, unref as o, withCtx as n, createElementBlock as k, renderSlot as p, createCommentVNode as v, createElementVNode as h } from "vue";
|
|
2
2
|
import { Dropdown as C } from "floating-vue";
|
|
3
3
|
import { popoverCommon as w } from "../common/Popover.common.js";
|
|
4
4
|
const y = ["data-testid"], E = /* @__PURE__ */ c({
|
|
@@ -4,17 +4,15 @@ import { TableContext as J } from "./TableContext.js";
|
|
|
4
4
|
const Q = 46, U = 46, tt = (e, u) => {
|
|
5
5
|
const S = G(), a = c([]);
|
|
6
6
|
N(J, {
|
|
7
|
-
onClose({ rowIndex: t, cellIndex: o, value:
|
|
8
|
-
|
|
7
|
+
onClose({ rowIndex: t, cellIndex: o, value: l } = {}) {
|
|
8
|
+
a.value = [...a.value, t], u("saveRow", {
|
|
9
9
|
rowIndex: t,
|
|
10
10
|
cellIndex: o,
|
|
11
|
-
value:
|
|
11
|
+
value: l,
|
|
12
12
|
confirm: () => {
|
|
13
|
-
a.value = a.value.filter(
|
|
14
|
-
(i) => i !== t
|
|
15
|
-
);
|
|
13
|
+
a.value = a.value.filter((n) => n !== t);
|
|
16
14
|
}
|
|
17
|
-
})
|
|
15
|
+
});
|
|
18
16
|
},
|
|
19
17
|
setActiveMenuRow(t) {
|
|
20
18
|
x.value = t;
|
|
@@ -22,26 +20,26 @@ const Q = 46, U = 46, tt = (e, u) => {
|
|
|
22
20
|
});
|
|
23
21
|
const y = s(() => !!e.selection), C = s(() => {
|
|
24
22
|
const t = (y.value ? `${U}px ` : "") + (g.value ? `${Q}px ` : "");
|
|
25
|
-
return e.columns.reduce((o,
|
|
26
|
-
const
|
|
27
|
-
return `${o} ${
|
|
23
|
+
return e.columns.reduce((o, l) => {
|
|
24
|
+
const n = l.width ? `${l.width}px` : `${l.colSpan || 1}fr`;
|
|
25
|
+
return `${o} ${n}`;
|
|
28
26
|
}, t);
|
|
29
27
|
}), g = s(() => !!S.expanded), A = c(null), x = c(null), R = s(() => Array(e.loadingRowCount).fill(
|
|
30
28
|
Array(e.columns.length).fill("")
|
|
31
29
|
)), H = s(() => e.rows.length && Array.isArray(e.rows[0]) ? e.isLoading ? [...e.rows, ...R.value] : e.rows : e.isLoading ? [
|
|
32
30
|
...e.rows.map((o) => o[e.rowDataKey]),
|
|
33
31
|
...R.value
|
|
34
|
-
] : e.rows.map((o) => o[e.rowDataKey])), { list: T, containerProps:
|
|
32
|
+
] : e.rows.map((o) => o[e.rowDataKey])), { list: T, containerProps: i, wrapperProps: $, scrollTo: b } = q(
|
|
35
33
|
H,
|
|
36
34
|
{
|
|
37
35
|
itemHeight: g.value ? (t) => w[t] ?? e.rowHeight : e.rowHeight
|
|
38
36
|
}
|
|
39
37
|
), k = c(null), h = c(0), B = s(() => !!S.search), I = (t) => {
|
|
40
|
-
|
|
38
|
+
i.onScroll(), h.value = t.target.scrollLeft + t.target.getBoundingClientRect().width, u("onScroll", t.target.scrollTop);
|
|
41
39
|
};
|
|
42
40
|
V(() => {
|
|
43
|
-
h.value =
|
|
44
|
-
|
|
41
|
+
h.value = i.ref.value?.getBoundingClientRect().width, e.defaultScrollPosition && setTimeout(() => {
|
|
42
|
+
i.ref.value?.scrollTo({
|
|
45
43
|
top: e.defaultScrollPosition,
|
|
46
44
|
behavior: "smooth"
|
|
47
45
|
});
|
|
@@ -50,16 +48,16 @@ const Q = 46, U = 46, tt = (e, u) => {
|
|
|
50
48
|
const O = s(() => {
|
|
51
49
|
const [t] = T.value;
|
|
52
50
|
return t && t.index > 0;
|
|
53
|
-
}), P = s(() =>
|
|
51
|
+
}), P = s(() => i.style), L = s(() => e.columns.reduce((t, o) => (o.isSticky && (t[o.id] = M(o)), t), {}));
|
|
54
52
|
F(
|
|
55
|
-
|
|
53
|
+
i.ref,
|
|
56
54
|
() => {
|
|
57
55
|
e.isInfiniteScroll && u("loadMore");
|
|
58
56
|
},
|
|
59
57
|
{ distance: e.infiniteScrollThreshold }
|
|
60
58
|
);
|
|
61
59
|
function E() {
|
|
62
|
-
|
|
60
|
+
i.ref.value?.scrollTo({
|
|
63
61
|
top: 0,
|
|
64
62
|
behavior: "smooth"
|
|
65
63
|
});
|
|
@@ -70,33 +68,33 @@ const Q = 46, U = 46, tt = (e, u) => {
|
|
|
70
68
|
const o = e.sort.sortBy === t.id;
|
|
71
69
|
if (!(t.isSortable || t.isSortable === void 0))
|
|
72
70
|
return;
|
|
73
|
-
let
|
|
74
|
-
o ?
|
|
71
|
+
let n = e.sort.sortOrder, f = e.sort.sortBy;
|
|
72
|
+
o ? n = e.sort.sortOrder === "asc" ? "desc" : "asc" : f = t.id, u("update:sort", { sortBy: f, sortOrder: n });
|
|
75
73
|
}
|
|
76
74
|
function M(t) {
|
|
77
|
-
const { isSticky: o, width:
|
|
78
|
-
if (!o || !
|
|
75
|
+
const { isSticky: o, width: l } = t;
|
|
76
|
+
if (!o || !l)
|
|
79
77
|
return null;
|
|
80
|
-
const
|
|
78
|
+
const n = e.columns.findIndex((r) => r.id === t.id), f = e.columns.reduce((r, v, m) => m < n ? r + v.width : r, 0), z = e.columns.reduce((r, v, m) => m > n ? r + v.width : r, 0);
|
|
81
79
|
return {
|
|
82
80
|
...t.isStickyRight ? { right: `${z}px` } : { left: `${f}px` },
|
|
83
81
|
zIndex: 1
|
|
84
82
|
};
|
|
85
83
|
}
|
|
86
84
|
const d = c([]), w = {}, _ = (t) => d.value.includes(t), K = async (t, o) => {
|
|
87
|
-
const
|
|
88
|
-
if (
|
|
85
|
+
const l = d.value.indexOf(t);
|
|
86
|
+
if (l === -1) {
|
|
89
87
|
d.value.push(t);
|
|
90
|
-
const
|
|
91
|
-
await j(),
|
|
88
|
+
const n = o.target.closest("tr");
|
|
89
|
+
await j(), n && (w[t] = n.offsetHeight);
|
|
92
90
|
} else
|
|
93
|
-
d.value.splice(
|
|
91
|
+
d.value.splice(l, 1), delete w[t];
|
|
94
92
|
}, W = s(() => `${e.rowHeight}px`), X = s(
|
|
95
93
|
() => `1 / span ${e.columns.length + 1}`
|
|
96
94
|
);
|
|
97
95
|
return {
|
|
98
96
|
list: T,
|
|
99
|
-
containerProps:
|
|
97
|
+
containerProps: i,
|
|
100
98
|
wrapperProps: $,
|
|
101
99
|
activeRow: A,
|
|
102
100
|
gridColumnTemplate: C,
|
|
@@ -8,10 +8,11 @@ import "../../dropdown/v4/ButtonDropdownTrigger.vue.js";
|
|
|
8
8
|
import "../../dropdown/v4/ButtonFilterDropdownTrigger.vue.js";
|
|
9
9
|
import "../../dropdown/v4/TreeDropdown.vue.js";
|
|
10
10
|
import C from "../../dropdown/v4/OptionV4.vue.js";
|
|
11
|
+
import "../../dropdown/v4/ConditionalDroprown.vue.js";
|
|
11
12
|
import k from "../../icon/v4/IconV4.vue.js";
|
|
12
13
|
import "../../icon/v4/IconFlag.vue.js";
|
|
13
14
|
import { useTableContext as y } from "../common/TableContext.js";
|
|
14
|
-
const
|
|
15
|
+
const h = /* @__PURE__ */ u({
|
|
15
16
|
__name: "DataGridMenu",
|
|
16
17
|
props: {
|
|
17
18
|
menuItems: { default: () => [] },
|
|
@@ -61,5 +62,5 @@ const z = /* @__PURE__ */ u({
|
|
|
61
62
|
}
|
|
62
63
|
});
|
|
63
64
|
export {
|
|
64
|
-
|
|
65
|
+
h as default
|
|
65
66
|
};
|