@central-design-system/components 3.0.0-beta.16 → 3.0.0-beta.17

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 (27) hide show
  1. package/dist/cds.css +1 -1
  2. package/dist/cds.d.ts +1 -2
  3. package/dist/cds.es.js +5765 -5664
  4. package/dist/cds.umd.js +5 -5
  5. package/dist/components/CdsAutocomplete/CdsAutocomplete.vue.d.ts +2 -6
  6. package/dist/components/CdsCombobox/CdsCombobox.vue.d.ts +58 -33
  7. package/dist/components/CdsDropdown/CdsDropdown.vue.d.ts +7 -7
  8. package/dist/components/CdsMenu/CdsMenu.vue.d.ts +7 -7
  9. package/dist/components/CdsModal/CdsModal.vue.d.ts +3 -3
  10. package/dist/components/CdsNotification/CdsNotificationAlert.vue.d.ts +3 -3
  11. package/dist/components/CdsOverlay/CdsOverlay.vue.d.ts +3 -3
  12. package/dist/components/CdsOverlay/composable/locationStrategies.d.ts +4 -4
  13. package/dist/components/CdsOverlay/constants.d.ts +2 -0
  14. package/dist/components/CdsTable/CdsTable.vue.d.ts +12 -12
  15. package/dist/components/CdsTable/components/Table/InternalTable.d.ts +12 -12
  16. package/dist/components/CdsTable/components/TableProvider.d.ts +12 -12
  17. package/dist/components/CdsTable/composable/scroll.d.ts +4607 -0
  18. package/dist/components/CdsTable/composable/table.d.ts +5 -9
  19. package/dist/components/CdsTable/constants.d.ts +1 -0
  20. package/dist/components/CdsTooltip/CdsTooltip.vue.d.ts +7 -7
  21. package/dist/composable/domObserver.d.ts +5 -0
  22. package/dist/composable/index.d.ts +2 -0
  23. package/dist/{components/CdsDropdown/composable → composable}/scrolling.d.ts +2 -2
  24. package/package.json +1 -1
  25. package/src/scss/themes/index.ts +1 -1
  26. package/dist/components/CdsDropdown/composable/index.d.ts +0 -1
  27. package/dist/plugins/index.d.ts +0 -2
@@ -167,9 +167,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
167
167
  };
168
168
  active: {
169
169
  type: PropType<boolean>;
170
- default: boolean; /**
171
- * При поиске будет сразу выбирать первый найденный вариант
172
- */
170
+ default: boolean;
173
171
  };
174
172
  autofocus: {
175
173
  type: PropType<boolean>;
@@ -601,9 +599,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
601
599
  };
602
600
  active: {
603
601
  type: PropType<boolean>;
604
- default: boolean; /**
605
- * При поиске будет сразу выбирать первый найденный вариант
606
- */
602
+ default: boolean;
607
603
  };
608
604
  autofocus: {
609
605
  type: PropType<boolean>;
@@ -128,6 +128,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
128
128
  };
129
129
  validateOn: {
130
130
  type: PropType<"input" | "blur" | "submit">;
131
+ /**
132
+ * Событие открытия меню
133
+ * @type { boolean }
134
+ */
131
135
  default: string;
132
136
  available: readonly ["blur", "input", "submit"];
133
137
  validator: (value: "input" | "blur" | "submit") => boolean;
@@ -252,10 +256,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
252
256
  default: string;
253
257
  };
254
258
  noFilter: {
255
- /**
256
- * Событие выбора всех элементов
257
- * @type { boolean }
258
- */
259
259
  type: PropType<boolean>;
260
260
  default: boolean;
261
261
  };
@@ -405,12 +405,20 @@ declare const _sfc_main: import("vue").DefineComponent<{
405
405
  type: PropType<string[]>;
406
406
  default: () => never[];
407
407
  };
408
+ /**
409
+ * При поиске будет сразу выбирать первый найденный вариант
410
+ */
411
+ autoSelectFirst: {
412
+ type: PropType<boolean | "exact">;
413
+ default: undefined;
414
+ };
408
415
  }, {
409
416
  model: import("vue").Ref<readonly IInternalItem<any>[]> & {
410
417
  readonly externalValue: any;
411
418
  };
412
419
  search: import("vue").WritableComputedRef<string>;
413
420
  internalMenu: import("vue").WritableComputedRef<boolean | undefined>;
421
+ menuDisabled: import("vue").ComputedRef<boolean | undefined>;
414
422
  displayItems: import("vue").ComputedRef<IInternalItem<any>[]>;
415
423
  selected: import("vue").ComputedRef<any[]>;
416
424
  selectedAll: import("vue").ComputedRef<boolean>;
@@ -420,7 +428,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
420
428
  selectedIndeterminate: import("vue").ComputedRef<boolean>;
421
429
  isFocused: import("vue").Ref<boolean>;
422
430
  isDirty: import("vue").ComputedRef<boolean>;
423
- isPure: import("vue").Ref<boolean>;
431
+ isPure: import("vue").ShallowRef<boolean>;
424
432
  inputRef: import("vue").Ref<import("vue").DefineComponent<{
425
433
  theme: {
426
434
  type: PropType<string>;
@@ -493,6 +501,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
493
501
  };
494
502
  validateOn: {
495
503
  type: PropType<"input" | "blur" | "submit">;
504
+ /**
505
+ * Событие открытия меню
506
+ * @type { boolean }
507
+ */
496
508
  default: string;
497
509
  available: readonly ["blur", "input", "submit"];
498
510
  validator: (value: "input" | "blur" | "submit") => boolean;
@@ -651,6 +663,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
651
663
  };
652
664
  validateOn: {
653
665
  type: PropType<"input" | "blur" | "submit">;
666
+ /**
667
+ * Событие открытия меню
668
+ * @type { boolean }
669
+ */
654
670
  default: string;
655
671
  available: readonly ["blur", "input", "submit"];
656
672
  validator: (value: "input" | "blur" | "submit") => boolean;
@@ -751,6 +767,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
751
767
  };
752
768
  validateOn: {
753
769
  type: PropType<"input" | "blur" | "submit">;
770
+ /**
771
+ * Событие открытия меню
772
+ * @type { boolean }
773
+ */
754
774
  default: string;
755
775
  available: readonly ["blur", "input", "submit"];
756
776
  validator: (value: "input" | "blur" | "submit") => boolean;
@@ -996,6 +1016,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
996
1016
  };
997
1017
  validateOn: {
998
1018
  type: PropType<"input" | "blur" | "submit">;
1019
+ /**
1020
+ * Событие открытия меню
1021
+ * @type { boolean }
1022
+ */
999
1023
  default: string;
1000
1024
  available: readonly ["blur", "input", "submit"];
1001
1025
  validator: (value: "input" | "blur" | "submit") => boolean;
@@ -1198,16 +1222,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
1198
1222
  };
1199
1223
  locationStrategy: Omit<{
1200
1224
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1201
- updateLocation: (event: Event) => void;
1225
+ updateLocation: (event: Event | HTMLElement[]) => void;
1202
1226
  } | undefined)>;
1203
1227
  default: string;
1204
1228
  validator: (value: any) => boolean;
1205
1229
  }, "default" | "type"> & {
1206
1230
  type: PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1207
- updateLocation: (event: Event) => void;
1231
+ updateLocation: (event: Event | HTMLElement[]) => void;
1208
1232
  } | undefined)>>;
1209
1233
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1210
- updateLocation: (event: Event) => void;
1234
+ updateLocation: (event: Event | HTMLElement[]) => void;
1211
1235
  } | undefined)>;
1212
1236
  };
1213
1237
  location: {
@@ -1215,10 +1239,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1215
1239
  default: string;
1216
1240
  };
1217
1241
  origin: {
1218
- type: PropType<import('../../utils').TAnchor | "auto" | "overlap">; /**
1219
- * Событие при изменении значения (v-model)
1220
- * @type { any }
1221
- */
1242
+ type: PropType<import('../../utils').TAnchor | "auto" | "overlap">;
1222
1243
  default: string;
1223
1244
  };
1224
1245
  offset: {
@@ -1310,10 +1331,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1310
1331
  default: () => {};
1311
1332
  };
1312
1333
  noClickAnimation: {
1313
- type: PropType<boolean>; /**
1314
- * Событие выбора всех элементов
1315
- * @type { boolean }
1316
- */
1334
+ type: PropType<boolean>;
1317
1335
  default: boolean;
1318
1336
  };
1319
1337
  id: {
@@ -1321,7 +1339,9 @@ declare const _sfc_main: import("vue").DefineComponent<{
1321
1339
  default: undefined;
1322
1340
  };
1323
1341
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
1324
- 'update:modelValue': (value: boolean) => true;
1342
+ 'update:modelValue': (value: boolean) => true; /**
1343
+ * При поиске будет сразу выбирать первый найденный вариант
1344
+ */
1325
1345
  }, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1326
1346
  theme: {
1327
1347
  type: PropType<string>;
@@ -1373,16 +1393,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
1373
1393
  };
1374
1394
  locationStrategy: Omit<{
1375
1395
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1376
- updateLocation: (event: Event) => void;
1396
+ updateLocation: (event: Event | HTMLElement[]) => void;
1377
1397
  } | undefined)>;
1378
1398
  default: string;
1379
1399
  validator: (value: any) => boolean;
1380
1400
  }, "default" | "type"> & {
1381
1401
  type: PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1382
- updateLocation: (event: Event) => void;
1402
+ updateLocation: (event: Event | HTMLElement[]) => void;
1383
1403
  } | undefined)>>;
1384
1404
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1385
- updateLocation: (event: Event) => void;
1405
+ updateLocation: (event: Event | HTMLElement[]) => void;
1386
1406
  } | undefined)>;
1387
1407
  };
1388
1408
  location: {
@@ -1390,10 +1410,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1390
1410
  default: string;
1391
1411
  };
1392
1412
  origin: {
1393
- type: PropType<import('../../utils').TAnchor | "auto" | "overlap">; /**
1394
- * Событие при изменении значения (v-model)
1395
- * @type { any }
1396
- */
1413
+ type: PropType<import('../../utils').TAnchor | "auto" | "overlap">;
1397
1414
  default: string;
1398
1415
  };
1399
1416
  offset: {
@@ -1485,10 +1502,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1485
1502
  default: () => {};
1486
1503
  };
1487
1504
  noClickAnimation: {
1488
- type: PropType<boolean>; /**
1489
- * Событие выбора всех элементов
1490
- * @type { boolean }
1491
- */
1505
+ type: PropType<boolean>;
1492
1506
  default: boolean;
1493
1507
  };
1494
1508
  id: {
@@ -1525,7 +1539,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1525
1539
  closeDelay: NonNullable<string | number>;
1526
1540
  openDelay: NonNullable<string | number>;
1527
1541
  locationStrategy: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1528
- updateLocation: (event: Event) => void;
1542
+ updateLocation: (event: Event | HTMLElement[]) => void;
1529
1543
  } | undefined)>;
1530
1544
  origin: import('../../utils').TAnchor | "auto" | "overlap";
1531
1545
  offset: string | number | number[];
@@ -2036,6 +2050,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
2036
2050
  readonly appendIcon?: "search" | "link" | "list" | "filters" | "add" | "administrator" | "alert-fill" | "alert" | "analog" | "arrow-down" | "arrow-left-bottom" | "arrow-left-top" | "arrow-left" | "arrow-right-bottom" | "arrow-right-top" | "arrow-right" | "arrow-up" | "arrows-vertical" | "calendar" | "card-bank" | "category" | "check-fill" | "check" | "checkbox-fill" | "checkbox" | "chevron-down" | "chevron-left" | "chevron-right" | "chevron-up" | "chocholate-menu" | "chocolate-menu" | "clock" | "collapse" | "comment" | "company" | "compare" | "copy" | "data-cards" | "delete" | "directory" | "doc-download" | "doc" | "download" | "draggable" | "edit" | "enter" | "error-fill" | "error" | "expand" | "external" | "facebook-fill" | "facebook" | "flag" | "funnel" | "globe" | "infinity" | "info-fill" | "info" | "insert" | "list-search" | "loader" | "location" | "locked" | "login" | "logout" | "menu" | "minus" | "notification" | "overflow-menu-horizontal" | "overflow-menu-vertical" | "password" | "pin" | "plus" | "printer" | "question-fill" | "question" | "refresh" | "remove" | "sandglass" | "save" | "settings" | "shopping-cart" | "sort-date" | "source" | "star-fill" | "star" | "telegram" | "timer" | "tool" | "truck" | "unlocked" | "upload" | "user-avatar" | "user-group" | "visibility-off" | "visibility-on" | "vk" | "winner" | "workspace" | "youtube" | undefined;
2037
2051
  readonly 'onClick:prepend'?: ((...args: any[]) => any) | undefined;
2038
2052
  readonly 'onClick:append'?: ((...args: any[]) => any) | undefined;
2053
+ readonly autoSelectFirst?: boolean | "exact" | undefined;
2039
2054
  readonly "onUpdate:focused"?: ((value: boolean) => any) | undefined;
2040
2055
  readonly "onUpdate:modelValue"?: ((value: any) => any) | undefined;
2041
2056
  readonly "onUpdate:menu"?: ((value: boolean) => any) | undefined;
@@ -2075,6 +2090,8 @@ declare const _sfc_main: import("vue").DefineComponent<{
2075
2090
  onMousedownControl: () => void;
2076
2091
  onMousedownMenuIcon: (event: MouseEvent) => void;
2077
2092
  onInputModelValue: (value: string) => void;
2093
+ onListKeydown: (event: KeyboardEvent) => Promise<void>;
2094
+ onListScroll: (event: Event) => void;
2078
2095
  getMatches: (item: IInternalItem<any>) => Record<string, import("../../composable").TFilterMath> | undefined;
2079
2096
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
2080
2097
  /**
@@ -2228,6 +2245,10 @@ declare const _sfc_main: import("vue").DefineComponent<{
2228
2245
  };
2229
2246
  validateOn: {
2230
2247
  type: PropType<"input" | "blur" | "submit">;
2248
+ /**
2249
+ * Событие открытия меню
2250
+ * @type { boolean }
2251
+ */
2231
2252
  default: string;
2232
2253
  available: readonly ["blur", "input", "submit"];
2233
2254
  validator: (value: "input" | "blur" | "submit") => boolean;
@@ -2352,10 +2373,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2352
2373
  default: string;
2353
2374
  };
2354
2375
  noFilter: {
2355
- /**
2356
- * Событие выбора всех элементов
2357
- * @type { boolean }
2358
- */
2359
2376
  type: PropType<boolean>;
2360
2377
  default: boolean;
2361
2378
  };
@@ -2505,6 +2522,13 @@ declare const _sfc_main: import("vue").DefineComponent<{
2505
2522
  type: PropType<string[]>;
2506
2523
  default: () => never[];
2507
2524
  };
2525
+ /**
2526
+ * При поиске будет сразу выбирать первый найденный вариант
2527
+ */
2528
+ autoSelectFirst: {
2529
+ type: PropType<boolean | "exact">;
2530
+ default: undefined;
2531
+ };
2508
2532
  }>> & {
2509
2533
  "onUpdate:focused"?: ((value: boolean) => any) | undefined;
2510
2534
  "onUpdate:modelValue"?: ((value: any) => any) | undefined;
@@ -2685,5 +2709,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
2685
2709
  transition: string | boolean | (import("vue").TransitionProps & {
2686
2710
  component?: import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions> | undefined;
2687
2711
  });
2712
+ autoSelectFirst: boolean | "exact";
2688
2713
  }>;
2689
2714
  export default _sfc_main;
@@ -1171,16 +1171,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
1171
1171
  };
1172
1172
  locationStrategy: Omit<{
1173
1173
  type: import("vue").PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1174
- updateLocation: (event: Event) => void;
1174
+ updateLocation: (event: Event | HTMLElement[]) => void;
1175
1175
  } | undefined)>;
1176
1176
  default: string;
1177
1177
  validator: (value: any) => boolean;
1178
1178
  }, "default" | "type"> & {
1179
1179
  type: import("vue").PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1180
- updateLocation: (event: Event) => void;
1180
+ updateLocation: (event: Event | HTMLElement[]) => void;
1181
1181
  } | undefined)>>;
1182
1182
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1183
- updateLocation: (event: Event) => void;
1183
+ updateLocation: (event: Event | HTMLElement[]) => void;
1184
1184
  } | undefined)>;
1185
1185
  };
1186
1186
  location: {
@@ -1340,16 +1340,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
1340
1340
  };
1341
1341
  locationStrategy: Omit<{
1342
1342
  type: import("vue").PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1343
- updateLocation: (event: Event) => void;
1343
+ updateLocation: (event: Event | HTMLElement[]) => void;
1344
1344
  } | undefined)>;
1345
1345
  default: string;
1346
1346
  validator: (value: any) => boolean;
1347
1347
  }, "default" | "type"> & {
1348
1348
  type: import("vue").PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1349
- updateLocation: (event: Event) => void;
1349
+ updateLocation: (event: Event | HTMLElement[]) => void;
1350
1350
  } | undefined)>>;
1351
1351
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1352
- updateLocation: (event: Event) => void;
1352
+ updateLocation: (event: Event | HTMLElement[]) => void;
1353
1353
  } | undefined)>;
1354
1354
  };
1355
1355
  location: {
@@ -1486,7 +1486,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
1486
1486
  closeDelay: NonNullable<string | number>;
1487
1487
  openDelay: NonNullable<string | number>;
1488
1488
  locationStrategy: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1489
- updateLocation: (event: Event) => void;
1489
+ updateLocation: (event: Event | HTMLElement[]) => void;
1490
1490
  } | undefined)>;
1491
1491
  origin: import('../../utils').TAnchor | "auto" | "overlap";
1492
1492
  offset: string | number | number[];
@@ -51,16 +51,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
51
51
  };
52
52
  locationStrategy: Omit<{
53
53
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
54
- updateLocation: (event: Event) => void;
54
+ updateLocation: (event: Event | HTMLElement[]) => void;
55
55
  } | undefined)>;
56
56
  default: string;
57
57
  validator: (value: any) => boolean;
58
58
  }, "default" | "type"> & {
59
59
  type: PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
60
- updateLocation: (event: Event) => void;
60
+ updateLocation: (event: Event | HTMLElement[]) => void;
61
61
  } | undefined)>>;
62
62
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
63
- updateLocation: (event: Event) => void;
63
+ updateLocation: (event: Event | HTMLElement[]) => void;
64
64
  } | undefined)>;
65
65
  };
66
66
  location: {
@@ -227,16 +227,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
227
227
  };
228
228
  locationStrategy: Omit<{
229
229
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
230
- updateLocation: (event: Event) => void;
230
+ updateLocation: (event: Event | HTMLElement[]) => void;
231
231
  } | undefined)>;
232
232
  default: string;
233
233
  validator: (value: any) => boolean;
234
234
  }, "default" | "type"> & {
235
235
  type: PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
236
- updateLocation: (event: Event) => void;
236
+ updateLocation: (event: Event | HTMLElement[]) => void;
237
237
  } | undefined)>>;
238
238
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
239
- updateLocation: (event: Event) => void;
239
+ updateLocation: (event: Event | HTMLElement[]) => void;
240
240
  } | undefined)>;
241
241
  };
242
242
  location: {
@@ -376,7 +376,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
376
376
  closeDelay: NonNullable<string | number>;
377
377
  openDelay: NonNullable<string | number>;
378
378
  locationStrategy: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
379
- updateLocation: (event: Event) => void;
379
+ updateLocation: (event: Event | HTMLElement[]) => void;
380
380
  } | undefined)>;
381
381
  origin: import('../../utils').TAnchor | "auto" | "overlap";
382
382
  offset: string | number | number[];
@@ -29,7 +29,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
29
29
  };
30
30
  locationStrategy: {
31
31
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
32
- updateLocation: (event: Event) => void;
32
+ updateLocation: (event: Event | HTMLElement[]) => void;
33
33
  } | undefined)>;
34
34
  default: string;
35
35
  validator: (value: any) => boolean;
@@ -235,7 +235,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
235
235
  };
236
236
  locationStrategy: {
237
237
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
238
- updateLocation: (event: Event) => void;
238
+ updateLocation: (event: Event | HTMLElement[]) => void;
239
239
  } | undefined)>;
240
240
  default: string;
241
241
  validator: (value: any) => boolean;
@@ -439,7 +439,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
439
439
  closeDelay: string | number;
440
440
  openDelay: string | number;
441
441
  locationStrategy: "static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
442
- updateLocation: (event: Event) => void;
442
+ updateLocation: (event: Event | HTMLElement[]) => void;
443
443
  } | undefined);
444
444
  origin: NonNullable<import('../../utils').TAnchor | "auto" | "overlap">;
445
445
  offset: string | number | number[];
@@ -17,7 +17,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
17
17
  };
18
18
  locationStrategy: {
19
19
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
20
- updateLocation: (event: Event) => void;
20
+ updateLocation: (event: Event | HTMLElement[]) => void;
21
21
  } | undefined)>;
22
22
  default: string;
23
23
  validator: (value: any) => boolean;
@@ -223,7 +223,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
223
223
  };
224
224
  locationStrategy: {
225
225
  type: PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
226
- updateLocation: (event: Event) => void;
226
+ updateLocation: (event: Event | HTMLElement[]) => void;
227
227
  } | undefined)>;
228
228
  default: string;
229
229
  validator: (value: any) => boolean;
@@ -445,7 +445,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
445
445
  closeDelay: string | number;
446
446
  openDelay: string | number;
447
447
  locationStrategy: "static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
448
- updateLocation: (event: Event) => void;
448
+ updateLocation: (event: Event | HTMLElement[]) => void;
449
449
  } | undefined);
450
450
  origin: import('../../utils').TAnchor | "auto" | "overlap";
451
451
  offset: string | number | number[];
@@ -19,7 +19,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
19
19
  };
20
20
  locationStrategy: {
21
21
  type: PropType<"static" | "connected" | ((data: import("./composable").ILocationStrategyData, props: import("./composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
22
- updateLocation: (event: Event) => void;
22
+ updateLocation: (event: Event | HTMLElement[]) => void;
23
23
  } | undefined)>;
24
24
  default: string;
25
25
  validator: (value: any) => boolean;
@@ -179,7 +179,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
179
179
  };
180
180
  locationStrategy: {
181
181
  type: PropType<"static" | "connected" | ((data: import("./composable").ILocationStrategyData, props: import("./composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
182
- updateLocation: (event: Event) => void;
182
+ updateLocation: (event: Event | HTMLElement[]) => void;
183
183
  } | undefined)>;
184
184
  default: string;
185
185
  validator: (value: any) => boolean;
@@ -336,7 +336,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
336
336
  closeDelay: string | number;
337
337
  openDelay: string | number;
338
338
  locationStrategy: "static" | "connected" | ((data: import("./composable").ILocationStrategyData, props: import("./composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
339
- updateLocation: (event: Event) => void;
339
+ updateLocation: (event: Event | HTMLElement[]) => void;
340
340
  } | undefined);
341
341
  origin: import('../../utils').TAnchor | "auto" | "overlap";
342
342
  offset: string | number | number[];
@@ -7,7 +7,7 @@ export interface ILocationStrategyData {
7
7
  isActive: Ref<boolean>;
8
8
  }
9
9
  declare type TLocationStrategyFn = (data: ILocationStrategyData, props: ILocationStrategyProps, contentStyles: Ref<Record<string, string>>) => undefined | {
10
- updateLocation: (event: Event) => void;
10
+ updateLocation: (event: Event | HTMLElement[]) => void;
11
11
  };
12
12
  declare const locationStrategies: {
13
13
  static: typeof staticLocationStrategy;
@@ -28,7 +28,7 @@ export interface ILocationProps {
28
28
  }
29
29
  export interface IUseLocationStrategies {
30
30
  contentStyles: Ref<Record<string, string>>;
31
- updateLocation: Ref<((event: Event) => void) | undefined>;
31
+ updateLocation: Ref<((event: Event | HTMLElement[]) => void) | undefined>;
32
32
  }
33
33
  export declare const makeLocationStrategyProps: <Defaults extends {
34
34
  locationStrategy?: unknown;
@@ -78,11 +78,11 @@ export declare const makeLocationProps: <Defaults extends {
78
78
  };
79
79
  }, Defaults>;
80
80
  export declare function useLocationStrategies(props: ILocationStrategyProps, data: ILocationStrategyData): IUseLocationStrategies;
81
- export declare function useLocation(props: ILocationProps, opposite?: boolean, offset?: (side: string) => number): {
81
+ export declare function useLocation(props: ILocationProps, opposite?: boolean, offset?: (side: string) => number, observedElement?: string): {
82
82
  locationStyles: import("vue").ComputedRef<CSSProperties>;
83
83
  };
84
84
  declare function staticLocationStrategy(): {
85
- updateLocation: () => void;
85
+ updateLocation: (elements: HTMLElement[] | Event) => void;
86
86
  };
87
87
  declare function connectedLocationStrategy(data: ILocationStrategyData, props: ILocationStrategyProps, contentStyles: Ref<Record<string, string>>): {
88
88
  updateLocation: () => {
@@ -0,0 +1,2 @@
1
+ export declare const NOTIFICATION_MARGIN = 24;
2
+ export declare const VIEWPORT_MARGIN = 12;
@@ -136,7 +136,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
136
136
  closeDelay: string | number;
137
137
  openDelay: string | number;
138
138
  locationStrategy: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
139
- updateLocation: (event: Event) => void;
139
+ updateLocation: (event: Event | HTMLElement[]) => void;
140
140
  } | undefined)>;
141
141
  origin: NonNullable<import("../../utils").TAnchor | "auto" | "overlap">;
142
142
  offset: NonNullable<string | number | number[]>;
@@ -219,16 +219,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
219
219
  };
220
220
  locationStrategy: Omit<{
221
221
  type: import("vue").PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
222
- updateLocation: (event: Event) => void;
222
+ updateLocation: (event: Event | HTMLElement[]) => void;
223
223
  } | undefined)>;
224
224
  default: string;
225
225
  validator: (value: any) => boolean;
226
226
  }, "default" | "type"> & {
227
227
  type: import("vue").PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
228
- updateLocation: (event: Event) => void;
228
+ updateLocation: (event: Event | HTMLElement[]) => void;
229
229
  } | undefined)>>;
230
230
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
231
- updateLocation: (event: Event) => void;
231
+ updateLocation: (event: Event | HTMLElement[]) => void;
232
232
  } | undefined)>;
233
233
  };
234
234
  location: Omit<{
@@ -604,7 +604,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
604
604
  closeDelay: string | number;
605
605
  openDelay: string | number;
606
606
  locationStrategy: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
607
- updateLocation: (event: Event) => void;
607
+ updateLocation: (event: Event | HTMLElement[]) => void;
608
608
  } | undefined)>;
609
609
  origin: NonNullable<import("../../utils").TAnchor | "auto" | "overlap">;
610
610
  offset: NonNullable<string | number | number[]>;
@@ -687,16 +687,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
687
687
  };
688
688
  locationStrategy: Omit<{
689
689
  type: import("vue").PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
690
- updateLocation: (event: Event) => void;
690
+ updateLocation: (event: Event | HTMLElement[]) => void;
691
691
  } | undefined)>;
692
692
  default: string;
693
693
  validator: (value: any) => boolean;
694
694
  }, "default" | "type"> & {
695
695
  type: import("vue").PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
696
- updateLocation: (event: Event) => void;
696
+ updateLocation: (event: Event | HTMLElement[]) => void;
697
697
  } | undefined)>>;
698
698
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
699
- updateLocation: (event: Event) => void;
699
+ updateLocation: (event: Event | HTMLElement[]) => void;
700
700
  } | undefined)>;
701
701
  };
702
702
  location: Omit<{
@@ -978,7 +978,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
978
978
  closeDelay: string | number;
979
979
  openDelay: string | number;
980
980
  locationStrategy: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
981
- updateLocation: (event: Event) => void;
981
+ updateLocation: (event: Event | HTMLElement[]) => void;
982
982
  } | undefined)>;
983
983
  origin: NonNullable<import("../../utils").TAnchor | "auto" | "overlap">;
984
984
  offset: NonNullable<string | number | number[]>;
@@ -1061,16 +1061,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
1061
1061
  };
1062
1062
  locationStrategy: Omit<{
1063
1063
  type: import("vue").PropType<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1064
- updateLocation: (event: Event) => void;
1064
+ updateLocation: (event: Event | HTMLElement[]) => void;
1065
1065
  } | undefined)>;
1066
1066
  default: string;
1067
1067
  validator: (value: any) => boolean;
1068
1068
  }, "default" | "type"> & {
1069
1069
  type: import("vue").PropType<NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1070
- updateLocation: (event: Event) => void;
1070
+ updateLocation: (event: Event | HTMLElement[]) => void;
1071
1071
  } | undefined)>>;
1072
1072
  default: NonNullable<"static" | "connected" | ((data: import("../CdsOverlay/composable").ILocationStrategyData, props: import("../CdsOverlay/composable").ILocationStrategyProps, contentStyles: import("vue").Ref<Record<string, string>>) => {
1073
- updateLocation: (event: Event) => void;
1073
+ updateLocation: (event: Event | HTMLElement[]) => void;
1074
1074
  } | undefined)>;
1075
1075
  };
1076
1076
  location: Omit<{