@ironsource/shared-ui 2.1.7-test.4 → 2.1.7-test.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/DataGrid.vue_vue_type_style_index_0_scoped_5273976b_lang.css +1 -0
  2. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_ef699ec5_lang.css +1 -0
  3. package/EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css +1 -0
  4. package/IconV4.vue_vue_type_style_index_0_scoped_1eea7671_lang.css +1 -0
  5. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_82ba0e12_lang.css +1 -0
  6. package/SortableList.vue_vue_type_style_index_0_scoped_e9cd63b8_lang.css +1 -0
  7. package/TabsV4.vue_vue_type_style_index_0_scoped_f9433b11_lang.css +1 -0
  8. package/TextField.vue_vue_type_style_index_0_scoped_4d9bf5b2_lang.css +1 -0
  9. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_66bd448a_lang.css +1 -0
  10. package/components/ThemeWrapper/ThemeWrapper.vue.js +2 -2
  11. package/components/ThemeWrapper/ThemeWrapper.vue2.js +5 -5
  12. package/components/appHeader/AppHeader.vue.d.ts +1 -1
  13. package/components/appHeader/index.d.ts +9 -9
  14. package/components/icon/v4/IconV4.vue.d.ts +0 -5
  15. package/components/icon/v4/IconV4.vue.js +4 -4
  16. package/components/icon/v4/IconV4.vue2.js +26 -29
  17. package/components/icon/v4/index.d.ts +1 -20
  18. package/components/input/v4/TextField.vue.js +3 -3
  19. package/components/input/v4/TextField.vue2.js +1 -1
  20. package/components/sortableList/SortableList.vue.d.ts +25 -0
  21. package/components/sortableList/SortableList.vue.js +4 -4
  22. package/components/sortableList/SortableList.vue2.js +129 -89
  23. package/components/sortableList/index.d.ts +88 -2
  24. package/components/table/common/Table.common.js +71 -68
  25. package/components/table/v3/Table.vue.d.ts +2 -2
  26. package/components/table/v3/index.d.ts +39 -39
  27. package/components/table/v4/DataGrid.vue.d.ts +12 -2
  28. package/components/table/v4/DataGrid.vue.js +4 -4
  29. package/components/table/v4/DataGrid.vue2.js +103 -100
  30. package/components/table/v4/DataGridRowsCounter.vue.js +2 -2
  31. package/components/table/v4/DataGridRowsCounter.vue2.js +14 -13
  32. package/components/table/v4/MultipleDataGrid.vue.d.ts +16 -3
  33. package/components/table/v4/MultipleDataGrid.vue.js +5 -5
  34. package/components/table/v4/MultipleDataGrid.vue2.js +112 -69
  35. package/components/table/v4/index.d.ts +126 -75
  36. package/components/table/v4/storyUtils.d.ts +4 -0
  37. package/components/table-cells/common/Editable.common.js +37 -26
  38. package/components/table-cells/common/EditableContext.d.ts +1 -0
  39. package/components/table-cells/v4/EditableV4.vue.d.ts +5 -0
  40. package/components/table-cells/v4/EditableV4.vue.js +5 -5
  41. package/components/table-cells/v4/EditableV4.vue2.js +18 -17
  42. package/components/table-cells/v4/index.d.ts +20 -1
  43. package/components/tabs/v4/TabsV4.vue.js +4 -4
  44. package/components/tabs/v4/TabsV4.vue2.js +37 -40
  45. package/design-foundation.stories/icons/iconsData.d.ts +2 -6
  46. package/index.d.ts +566 -292
  47. package/package.json +1 -1
  48. package/utils/formatNumbers.d.ts +4 -0
  49. package/utils/formatNumbers.js +11 -0
  50. package/DataGrid.vue_vue_type_style_index_0_scoped_63aaf3be_lang.css +0 -1
  51. package/DataGridRowsCounter.vue_vue_type_style_index_0_scoped_0ce71f73_lang.css +0 -1
  52. package/EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css +0 -1
  53. package/IconV4.vue_vue_type_style_index_0_scoped_dc433d48_lang.css +0 -1
  54. package/MultipleDataGrid.vue_vue_type_style_index_0_scoped_1bdca43d_lang.css +0 -1
  55. package/SortableList.vue_vue_type_style_index_0_scoped_21842d59_lang.css +0 -1
  56. package/TabsV4.vue_vue_type_style_index_0_scoped_bab40cfe_lang.css +0 -1
  57. package/TextField.vue_vue_type_style_index_0_scoped_eb472aa3_lang.css +0 -1
  58. package/ThemeWrapper.vue_vue_type_style_index_0_scoped_b62ee695_lang.css +0 -1
@@ -16,20 +16,22 @@ declare const DataGridTypes: () => (({
16
16
  searchPlaceholder: string;
17
17
  selection: unknown[];
18
18
  showSearch: boolean;
19
+ loadingRowCount: number;
20
+ emptyStateTitle: string;
19
21
  isSticky: boolean;
20
22
  sections: import("../common/Table.types").Section[];
21
23
  isStickyHeader: boolean;
22
- emptyStateTitle: string;
23
24
  emptyStateSubtitle: string;
24
25
  isInfiniteScroll: boolean;
25
26
  infiniteScrollThreshold: number;
26
27
  rowHeight: number | ((index: number) => number);
27
- loadingRowCount: number;
28
28
  defaultScrollPosition: number;
29
29
  getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
30
30
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
31
31
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
32
32
  zIndexBase: number;
33
+ rowCustomClassKey: string;
34
+ rowDataKey: string;
33
35
  }> & Omit<Readonly<import("vue").ExtractPropTypes<{
34
36
  sort: {
35
37
  type: import("vue").PropType<import("../common/Table.types").Sort>;
@@ -71,6 +73,14 @@ declare const DataGridTypes: () => (({
71
73
  type: import("vue").PropType<boolean>;
72
74
  default: boolean;
73
75
  };
76
+ loadingRowCount: {
77
+ type: import("vue").PropType<number>;
78
+ default: number;
79
+ };
80
+ emptyStateTitle: {
81
+ type: import("vue").PropType<string>;
82
+ default: string;
83
+ };
74
84
  isSticky: {
75
85
  type: import("vue").PropType<boolean>;
76
86
  default: boolean;
@@ -87,10 +97,6 @@ declare const DataGridTypes: () => (({
87
97
  type: import("vue").PropType<boolean>;
88
98
  default: boolean;
89
99
  };
90
- emptyStateTitle: {
91
- type: import("vue").PropType<string>;
92
- default: string;
93
- };
94
100
  emptyStateSubtitle: {
95
101
  type: import("vue").PropType<string>;
96
102
  default: string;
@@ -107,10 +113,6 @@ declare const DataGridTypes: () => (({
107
113
  type: import("vue").PropType<number | ((index: number) => number)>;
108
114
  default: number;
109
115
  };
110
- loadingRowCount: {
111
- type: import("vue").PropType<number>;
112
- default: number;
113
- };
114
116
  defaultScrollPosition: {
115
117
  type: import("vue").PropType<number>;
116
118
  default: any;
@@ -131,6 +133,14 @@ declare const DataGridTypes: () => (({
131
133
  type: import("vue").PropType<number>;
132
134
  default: number;
133
135
  };
136
+ rowCustomClassKey: {
137
+ type: import("vue").PropType<string>;
138
+ default: string;
139
+ };
140
+ rowDataKey: {
141
+ type: import("vue").PropType<string>;
142
+ default: string;
143
+ };
134
144
  }>> & {
135
145
  onSelectAll?: (value: boolean) => any;
136
146
  "onUpdate:search"?: (query: string) => any;
@@ -147,7 +157,7 @@ declare const DataGridTypes: () => (({
147
157
  "onUpdate:selection"?: (selection: unknown[]) => any;
148
158
  onSelectRow?: (value: boolean) => any;
149
159
  onClickRow?: (rowIndex: number) => any;
150
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "sort" | "title" | "search" | "testId" | "isLoading" | "searchAutoFocus" | "searchPlaceholder" | "selection" | "showSearch" | "isSticky" | "sections" | "isStickyHeader" | "emptyStateTitle" | "emptyStateSubtitle" | "isInfiniteScroll" | "infiniteScrollThreshold" | "rowHeight" | "loadingRowCount" | "defaultScrollPosition" | "getRowId" | "selectedMatcher" | "emptyStateVariant" | "zIndexBase">;
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" | "selectedMatcher" | "emptyStateVariant" | "zIndexBase" | "rowCustomClassKey" | "rowDataKey">;
151
161
  $attrs: {
152
162
  [x: string]: unknown;
153
163
  };
@@ -207,6 +217,14 @@ declare const DataGridTypes: () => (({
207
217
  type: import("vue").PropType<boolean>;
208
218
  default: boolean;
209
219
  };
220
+ loadingRowCount: {
221
+ type: import("vue").PropType<number>;
222
+ default: number;
223
+ };
224
+ emptyStateTitle: {
225
+ type: import("vue").PropType<string>;
226
+ default: string;
227
+ };
210
228
  isSticky: {
211
229
  type: import("vue").PropType<boolean>;
212
230
  default: boolean;
@@ -223,10 +241,6 @@ declare const DataGridTypes: () => (({
223
241
  type: import("vue").PropType<boolean>;
224
242
  default: boolean;
225
243
  };
226
- emptyStateTitle: {
227
- type: import("vue").PropType<string>;
228
- default: string;
229
- };
230
244
  emptyStateSubtitle: {
231
245
  type: import("vue").PropType<string>;
232
246
  default: string;
@@ -243,10 +257,6 @@ declare const DataGridTypes: () => (({
243
257
  type: import("vue").PropType<number | ((index: number) => number)>;
244
258
  default: number;
245
259
  };
246
- loadingRowCount: {
247
- type: import("vue").PropType<number>;
248
- default: number;
249
- };
250
260
  defaultScrollPosition: {
251
261
  type: import("vue").PropType<number>;
252
262
  default: any;
@@ -267,6 +277,14 @@ declare const DataGridTypes: () => (({
267
277
  type: import("vue").PropType<number>;
268
278
  default: number;
269
279
  };
280
+ rowCustomClassKey: {
281
+ type: import("vue").PropType<string>;
282
+ default: string;
283
+ };
284
+ rowDataKey: {
285
+ type: import("vue").PropType<string>;
286
+ default: string;
287
+ };
270
288
  }>> & {
271
289
  onSelectAll?: (value: boolean) => any;
272
290
  "onUpdate:search"?: (query: string) => any;
@@ -311,20 +329,22 @@ declare const DataGridTypes: () => (({
311
329
  searchPlaceholder: string;
312
330
  selection: unknown[];
313
331
  showSearch: boolean;
332
+ loadingRowCount: number;
333
+ emptyStateTitle: string;
314
334
  isSticky: boolean;
315
335
  sections: import("../common/Table.types").Section[];
316
336
  isStickyHeader: boolean;
317
- emptyStateTitle: string;
318
337
  emptyStateSubtitle: string;
319
338
  isInfiniteScroll: boolean;
320
339
  infiniteScrollThreshold: number;
321
340
  rowHeight: number | ((index: number) => number);
322
- loadingRowCount: number;
323
341
  defaultScrollPosition: number;
324
342
  getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
325
343
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
326
344
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
327
345
  zIndexBase: number;
346
+ rowCustomClassKey: string;
347
+ rowDataKey: string;
328
348
  }, {}, string> & {
329
349
  beforeCreate?: (() => void) | (() => void)[];
330
350
  created?: (() => void) | (() => void)[];
@@ -386,6 +406,14 @@ declare const DataGridTypes: () => (({
386
406
  type: import("vue").PropType<boolean>;
387
407
  default: boolean;
388
408
  };
409
+ loadingRowCount: {
410
+ type: import("vue").PropType<number>;
411
+ default: number;
412
+ };
413
+ emptyStateTitle: {
414
+ type: import("vue").PropType<string>;
415
+ default: string;
416
+ };
389
417
  isSticky: {
390
418
  type: import("vue").PropType<boolean>;
391
419
  default: boolean;
@@ -402,10 +430,6 @@ declare const DataGridTypes: () => (({
402
430
  type: import("vue").PropType<boolean>;
403
431
  default: boolean;
404
432
  };
405
- emptyStateTitle: {
406
- type: import("vue").PropType<string>;
407
- default: string;
408
- };
409
433
  emptyStateSubtitle: {
410
434
  type: import("vue").PropType<string>;
411
435
  default: string;
@@ -422,10 +446,6 @@ declare const DataGridTypes: () => (({
422
446
  type: import("vue").PropType<number | ((index: number) => number)>;
423
447
  default: number;
424
448
  };
425
- loadingRowCount: {
426
- type: import("vue").PropType<number>;
427
- default: number;
428
- };
429
449
  defaultScrollPosition: {
430
450
  type: import("vue").PropType<number>;
431
451
  default: any;
@@ -446,6 +466,14 @@ declare const DataGridTypes: () => (({
446
466
  type: import("vue").PropType<number>;
447
467
  default: number;
448
468
  };
469
+ rowCustomClassKey: {
470
+ type: import("vue").PropType<string>;
471
+ default: string;
472
+ };
473
+ rowDataKey: {
474
+ type: import("vue").PropType<string>;
475
+ default: string;
476
+ };
449
477
  }>> & {
450
478
  onSelectAll?: (value: boolean) => any;
451
479
  "onUpdate:search"?: (query: string) => any;
@@ -509,6 +537,14 @@ declare const DataGridTypes: () => (({
509
537
  type: import("vue").PropType<boolean>;
510
538
  default: boolean;
511
539
  };
540
+ loadingRowCount: {
541
+ type: import("vue").PropType<number>;
542
+ default: number;
543
+ };
544
+ emptyStateTitle: {
545
+ type: import("vue").PropType<string>;
546
+ default: string;
547
+ };
512
548
  isSticky: {
513
549
  type: import("vue").PropType<boolean>;
514
550
  default: boolean;
@@ -525,10 +561,6 @@ declare const DataGridTypes: () => (({
525
561
  type: import("vue").PropType<boolean>;
526
562
  default: boolean;
527
563
  };
528
- emptyStateTitle: {
529
- type: import("vue").PropType<string>;
530
- default: string;
531
- };
532
564
  emptyStateSubtitle: {
533
565
  type: import("vue").PropType<string>;
534
566
  default: string;
@@ -545,10 +577,6 @@ declare const DataGridTypes: () => (({
545
577
  type: import("vue").PropType<number | ((index: number) => number)>;
546
578
  default: number;
547
579
  };
548
- loadingRowCount: {
549
- type: import("vue").PropType<number>;
550
- default: number;
551
- };
552
580
  defaultScrollPosition: {
553
581
  type: import("vue").PropType<number>;
554
582
  default: any;
@@ -569,6 +597,14 @@ declare const DataGridTypes: () => (({
569
597
  type: import("vue").PropType<number>;
570
598
  default: number;
571
599
  };
600
+ rowCustomClassKey: {
601
+ type: import("vue").PropType<string>;
602
+ default: string;
603
+ };
604
+ rowDataKey: {
605
+ type: import("vue").PropType<string>;
606
+ default: string;
607
+ };
572
608
  }>> & {
573
609
  onSelectAll?: (value: boolean) => any;
574
610
  "onUpdate:search"?: (query: string) => any;
@@ -613,20 +649,22 @@ declare const DataGridTypes: () => (({
613
649
  searchPlaceholder: string;
614
650
  selection: unknown[];
615
651
  showSearch: boolean;
652
+ loadingRowCount: number;
653
+ emptyStateTitle: string;
616
654
  isSticky: boolean;
617
655
  sections: import("../common/Table.types").Section[];
618
656
  isStickyHeader: boolean;
619
- emptyStateTitle: string;
620
657
  emptyStateSubtitle: string;
621
658
  isInfiniteScroll: boolean;
622
659
  infiniteScrollThreshold: number;
623
660
  rowHeight: number | ((index: number) => number);
624
- loadingRowCount: number;
625
661
  defaultScrollPosition: number;
626
662
  getRowId: (row: import("../common/Table.types").Row, index: number) => unknown;
627
663
  selectedMatcher: (rowId: unknown, selected: unknown) => boolean;
628
664
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
629
665
  zIndexBase: number;
666
+ rowCustomClassKey: string;
667
+ rowDataKey: string;
630
668
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
631
669
  $slots: Partial<Record<`section-${string}`, (_: {}) => any>> & Partial<Record<`header-${string}`, (_: {
632
670
  column: import("../common/Table.types").Column;
@@ -753,10 +791,10 @@ declare const DataGridTypes: () => (({
753
791
  searchPlaceholder: string;
754
792
  count: number;
755
793
  showSearch: boolean;
756
- isSticky: boolean;
794
+ loadingRowCount: number;
757
795
  emptyStateTitle: string;
796
+ isSticky: boolean;
758
797
  emptyStateSubtitle: string;
759
- loadingRowCount: number;
760
798
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
761
799
  zIndexBase: number;
762
800
  totalCount: number;
@@ -790,22 +828,22 @@ declare const DataGridTypes: () => (({
790
828
  type: import("vue").PropType<boolean>;
791
829
  default: boolean;
792
830
  };
793
- isSticky: {
794
- type: import("vue").PropType<boolean>;
795
- default: boolean;
831
+ loadingRowCount: {
832
+ type: import("vue").PropType<number>;
833
+ default: number;
796
834
  };
797
835
  emptyStateTitle: {
798
836
  type: import("vue").PropType<string>;
799
837
  default: string;
800
838
  };
839
+ isSticky: {
840
+ type: import("vue").PropType<boolean>;
841
+ default: boolean;
842
+ };
801
843
  emptyStateSubtitle: {
802
844
  type: import("vue").PropType<string>;
803
845
  default: string;
804
846
  };
805
- loadingRowCount: {
806
- type: import("vue").PropType<number>;
807
- default: number;
808
- };
809
847
  emptyStateVariant: {
810
848
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
811
849
  default: any;
@@ -845,7 +883,7 @@ declare const DataGridTypes: () => (({
845
883
  onOnScroll?: (scrollTop: number) => any;
846
884
  onOnClearSearch?: () => any;
847
885
  onClickRow?: (rowIndex: number, tableIndex: number) => any;
848
- } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "searchPlaceholder" | "count" | "showSearch" | "isSticky" | "emptyStateTitle" | "emptyStateSubtitle" | "loadingRowCount" | "emptyStateVariant" | "zIndexBase" | "totalCount" | "displayingText" | "outOfText" | "totalText" | "tablesSettings" | "loadingAndEmptyStatesColumns">;
886
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "search" | "testId" | "isLoading" | "searchPlaceholder" | "count" | "showSearch" | "loadingRowCount" | "emptyStateTitle" | "isSticky" | "emptyStateSubtitle" | "emptyStateVariant" | "zIndexBase" | "totalCount" | "displayingText" | "outOfText" | "totalText" | "tablesSettings" | "loadingAndEmptyStatesColumns">;
849
887
  $attrs: {
850
888
  [x: string]: unknown;
851
889
  };
@@ -884,22 +922,22 @@ declare const DataGridTypes: () => (({
884
922
  type: import("vue").PropType<boolean>;
885
923
  default: boolean;
886
924
  };
887
- isSticky: {
888
- type: import("vue").PropType<boolean>;
889
- default: boolean;
925
+ loadingRowCount: {
926
+ type: import("vue").PropType<number>;
927
+ default: number;
890
928
  };
891
929
  emptyStateTitle: {
892
930
  type: import("vue").PropType<string>;
893
931
  default: string;
894
932
  };
933
+ isSticky: {
934
+ type: import("vue").PropType<boolean>;
935
+ default: boolean;
936
+ };
895
937
  emptyStateSubtitle: {
896
938
  type: import("vue").PropType<string>;
897
939
  default: string;
898
940
  };
899
- loadingRowCount: {
900
- type: import("vue").PropType<number>;
901
- default: number;
902
- };
903
941
  emptyStateVariant: {
904
942
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
905
943
  default: any;
@@ -951,10 +989,10 @@ declare const DataGridTypes: () => (({
951
989
  searchPlaceholder: string;
952
990
  count: number;
953
991
  showSearch: boolean;
954
- isSticky: boolean;
992
+ loadingRowCount: number;
955
993
  emptyStateTitle: string;
994
+ isSticky: boolean;
956
995
  emptyStateSubtitle: string;
957
- loadingRowCount: number;
958
996
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
959
997
  zIndexBase: number;
960
998
  totalCount: number;
@@ -1008,22 +1046,22 @@ declare const DataGridTypes: () => (({
1008
1046
  type: import("vue").PropType<boolean>;
1009
1047
  default: boolean;
1010
1048
  };
1011
- isSticky: {
1012
- type: import("vue").PropType<boolean>;
1013
- default: boolean;
1049
+ loadingRowCount: {
1050
+ type: import("vue").PropType<number>;
1051
+ default: number;
1014
1052
  };
1015
1053
  emptyStateTitle: {
1016
1054
  type: import("vue").PropType<string>;
1017
1055
  default: string;
1018
1056
  };
1057
+ isSticky: {
1058
+ type: import("vue").PropType<boolean>;
1059
+ default: boolean;
1060
+ };
1019
1061
  emptyStateSubtitle: {
1020
1062
  type: import("vue").PropType<string>;
1021
1063
  default: string;
1022
1064
  };
1023
- loadingRowCount: {
1024
- type: import("vue").PropType<number>;
1025
- default: number;
1026
- };
1027
1065
  emptyStateVariant: {
1028
1066
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
1029
1067
  default: any;
@@ -1092,22 +1130,22 @@ declare const DataGridTypes: () => (({
1092
1130
  type: import("vue").PropType<boolean>;
1093
1131
  default: boolean;
1094
1132
  };
1095
- isSticky: {
1096
- type: import("vue").PropType<boolean>;
1097
- default: boolean;
1133
+ loadingRowCount: {
1134
+ type: import("vue").PropType<number>;
1135
+ default: number;
1098
1136
  };
1099
1137
  emptyStateTitle: {
1100
1138
  type: import("vue").PropType<string>;
1101
1139
  default: string;
1102
1140
  };
1141
+ isSticky: {
1142
+ type: import("vue").PropType<boolean>;
1143
+ default: boolean;
1144
+ };
1103
1145
  emptyStateSubtitle: {
1104
1146
  type: import("vue").PropType<string>;
1105
1147
  default: string;
1106
1148
  };
1107
- loadingRowCount: {
1108
- type: import("vue").PropType<number>;
1109
- default: number;
1110
- };
1111
1149
  emptyStateVariant: {
1112
1150
  type: import("vue").PropType<"error" | "no-access" | "no-results" | "no-data" | "files" | "settings">;
1113
1151
  default: any;
@@ -1159,10 +1197,10 @@ declare const DataGridTypes: () => (({
1159
1197
  searchPlaceholder: string;
1160
1198
  count: number;
1161
1199
  showSearch: boolean;
1162
- isSticky: boolean;
1200
+ loadingRowCount: number;
1163
1201
  emptyStateTitle: string;
1202
+ isSticky: boolean;
1164
1203
  emptyStateSubtitle: string;
1165
- loadingRowCount: number;
1166
1204
  emptyStateVariant: "error" | "no-access" | "no-results" | "no-data" | "files" | "settings";
1167
1205
  zIndexBase: number;
1168
1206
  totalCount: number;
@@ -1173,12 +1211,25 @@ declare const DataGridTypes: () => (({
1173
1211
  loadingAndEmptyStatesColumns: import("../common/Table.types").Column[];
1174
1212
  }, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
1175
1213
  $slots: Partial<Record<string, (_: {
1214
+ column: import("../common/Table.types").Column;
1215
+ }) => any>> & Partial<Record<string, (_: {
1176
1216
  cell: any;
1177
1217
  isLoading: any;
1178
1218
  cellIndex: any;
1179
1219
  row: any;
1180
1220
  rowIndex: any;
1181
- }) => any>>;
1221
+ }) => any>> & Partial<Record<string, (_: {
1222
+ column: import("../common/Table.types").Column;
1223
+ }) => any>> & {
1224
+ title?(_: {}): any;
1225
+ search?(_: {}): any;
1226
+ "table-header-actions"?(_: {}): any;
1227
+ "floating-row"?(_: {
1228
+ row: any;
1229
+ rowIndex: any;
1230
+ }): any;
1231
+ "empty-state"?(_: {}): any;
1232
+ };
1182
1233
  })))[];
1183
1234
  export type { Column, Sort, MenuItem, TableSettings, } from '../common/Table.types';
1184
1235
  export { DataGrid, DataGridMenu, DataGridRowsCounter, DataGridTypes, MultipleDataGrid, };
@@ -3,3 +3,7 @@ export declare const searchRows: (array: string[][], query: string) => string[][
3
3
  export declare const exampleRows: string[][];
4
4
  export declare const moreExampleRows: string[][];
5
5
  export declare const exampleRowsWithExtraColumns: string[][];
6
+ export declare const exampleObjectRows: {
7
+ rowData: string[];
8
+ customClass: string;
9
+ }[];
@@ -1,39 +1,50 @@
1
- import { ref as a, provide as v } from "vue";
2
- import { useTableContext as s } from "../../table/common/TableContext.js";
3
- import { EditableContext as d } from "./EditableContext.js";
4
- import { onClickOutside as f } from "@vueuse/core";
5
- const g = (e) => {
6
- const l = a(!1), n = a(e.cell), u = a(null), r = s("Editable"), o = a(null);
7
- v(d, {
1
+ import { ref as t, provide as d } from "vue";
2
+ import { useTableContext as f } from "../../table/common/TableContext.js";
3
+ import { EditableContext as C } from "./EditableContext.js";
4
+ import { onClickOutside as m } from "@vueuse/core";
5
+ const k = (e) => {
6
+ const l = t(!1), n = t(e.cell), o = t(e.saveOnClickOutside), i = t(null), r = f("Editable"), a = t(null), v = () => {
7
+ if (e.cell === n.value) {
8
+ l.value = !1;
9
+ return;
10
+ }
11
+ const u = e.validateFunction?.(n.value);
12
+ a.value = u, !u && (r.onClose({
13
+ rowIndex: e.rowIndex,
14
+ cellIndex: e.cellIndex,
15
+ value: n.value
16
+ }), l.value = !1);
17
+ };
18
+ d(C, {
8
19
  focusable: !0,
9
20
  value: n,
10
- error: o,
21
+ error: a,
11
22
  confirmable: !0,
12
- onChange(t) {
13
- n.value = t, o.value = e.validateFunction?.(n.value);
23
+ saveOnClickOutside: o.value,
24
+ onChange(u) {
25
+ n.value = u, a.value = e.validateFunction?.(n.value);
14
26
  },
15
- onClose: () => {
16
- const t = e.validateFunction?.(n.value);
17
- o.value = t, !t && (r.onClose({
18
- rowIndex: e.rowIndex,
19
- cellIndex: e.cellIndex,
20
- value: n.value
21
- }), l.value = !1);
22
- }
27
+ onClose: v
23
28
  });
24
- const i = () => {
29
+ const c = () => {
25
30
  l.value || e.isLoading || (l.value = !l.value);
26
- }, c = () => {
27
- n.value = e.cell, o.value = null;
31
+ }, s = () => {
32
+ n.value = e.cell, a.value = null;
28
33
  };
29
- return f(u, () => {
30
- l.value = !1, c(), r.onClose();
34
+ return m(i, () => {
35
+ if (l.value) {
36
+ if (o.value) {
37
+ v();
38
+ return;
39
+ }
40
+ l.value = !1, s(), r.onClose();
41
+ }
31
42
  }), {
32
- onEdit: i,
33
- target: u,
43
+ onEdit: c,
44
+ target: i,
34
45
  isEditing: l
35
46
  };
36
47
  };
37
48
  export {
38
- g as editableCommon
49
+ k as editableCommon
39
50
  };
@@ -6,6 +6,7 @@ export interface EditableContextProps {
6
6
  error?: Ref<string>;
7
7
  value?: Ref<unknown>;
8
8
  confirmable?: boolean;
9
+ saveOnClickOutside?: boolean;
9
10
  }
10
11
  export declare const EditableContext: InjectionKey<EditableContextProps>;
11
12
  export declare function useEditableContext(): EditableContextProps;
@@ -4,12 +4,14 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
4
4
  rowIndex: number;
5
5
  cellIndex: number;
6
6
  type: "input" | "dropdown";
7
+ saveOnClickOutside?: boolean;
7
8
  validateFunction?: (value: unknown) => string | boolean;
8
9
  displayValue?: (option: unknown) => unknown;
9
10
  }>, {
10
11
  cell: string;
11
12
  isLoading: boolean;
12
13
  type: string;
14
+ saveOnClickOutside: boolean;
13
15
  validateFunction: () => false;
14
16
  displayValue: (cell: unknown) => unknown;
15
17
  }>, {}, 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<{
@@ -18,17 +20,20 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
18
20
  rowIndex: number;
19
21
  cellIndex: number;
20
22
  type: "input" | "dropdown";
23
+ saveOnClickOutside?: boolean;
21
24
  validateFunction?: (value: unknown) => string | boolean;
22
25
  displayValue?: (option: unknown) => unknown;
23
26
  }>, {
24
27
  cell: string;
25
28
  isLoading: boolean;
26
29
  type: string;
30
+ saveOnClickOutside: boolean;
27
31
  validateFunction: () => false;
28
32
  displayValue: (cell: unknown) => unknown;
29
33
  }>>>, {
30
34
  type: "input" | "dropdown";
31
35
  cell: string;
36
+ saveOnClickOutside: boolean;
32
37
  validateFunction: (value: unknown) => string | boolean;
33
38
  isLoading: boolean;
34
39
  displayValue: (option: unknown) => unknown;
@@ -1,7 +1,7 @@
1
- import o from "./EditableV4.vue2.js";
2
- /* empty css */import e from "../../../_virtual/_plugin-vue_export-helper.js";
3
- // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_31bfb722_lang.css"; //*');
4
- const p = /* @__PURE__ */ e(o, [["__scopeId", "data-v-31bfb722"]]);
1
+ import e from "./EditableV4.vue2.js";
2
+ /* empty css */import o from "../../../_virtual/_plugin-vue_export-helper.js";
3
+ // import "../../../EditableV4.vue_vue_type_style_index_0_scoped_e0c047b4_lang.css"; //*');
4
+ const c = /* @__PURE__ */ o(e, [["__scopeId", "data-v-e0c047b4"]]);
5
5
  export {
6
- p as default
6
+ c as default
7
7
  };