@m3e/core 1.2.2 → 1.3.1

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.
@@ -17,6 +17,105 @@
17
17
  }
18
18
  ]
19
19
  },
20
+ {
21
+ "kind": "javascript-module",
22
+ "path": "src/anchoring/AnchorOptions.ts",
23
+ "declarations": [],
24
+ "exports": []
25
+ },
26
+ {
27
+ "kind": "javascript-module",
28
+ "path": "src/anchoring/AnchorPosition.ts",
29
+ "declarations": [],
30
+ "exports": []
31
+ },
32
+ {
33
+ "kind": "javascript-module",
34
+ "path": "src/anchoring/index.ts",
35
+ "declarations": [],
36
+ "exports": [
37
+ {
38
+ "kind": "js",
39
+ "name": "*",
40
+ "declaration": {
41
+ "name": "*",
42
+ "package": "\"./AnchorOptions\""
43
+ }
44
+ },
45
+ {
46
+ "kind": "js",
47
+ "name": "*",
48
+ "declaration": {
49
+ "name": "*",
50
+ "package": "\"./AnchorPosition\""
51
+ }
52
+ },
53
+ {
54
+ "kind": "js",
55
+ "name": "*",
56
+ "declaration": {
57
+ "name": "*",
58
+ "package": "\"./positionAnchor\""
59
+ }
60
+ }
61
+ ]
62
+ },
63
+ {
64
+ "kind": "javascript-module",
65
+ "path": "src/anchoring/positionAnchor.ts",
66
+ "declarations": [
67
+ {
68
+ "kind": "function",
69
+ "name": "positionAnchor",
70
+ "return": {
71
+ "type": {
72
+ "text": "Promise<() => void>"
73
+ }
74
+ },
75
+ "parameters": [
76
+ {
77
+ "name": "target",
78
+ "type": {
79
+ "text": "HTMLElement"
80
+ },
81
+ "description": "The element to position."
82
+ },
83
+ {
84
+ "name": "anchor",
85
+ "type": {
86
+ "text": "HTMLElement"
87
+ },
88
+ "description": "The element in which to anchor `target`."
89
+ },
90
+ {
91
+ "name": "options",
92
+ "type": {
93
+ "text": "AnchorOptions"
94
+ },
95
+ "description": "Options that control positioning relative to the anchor."
96
+ },
97
+ {
98
+ "name": "update",
99
+ "type": {
100
+ "text": "((x: number, y: number, position: AnchorPosition) => void)"
101
+ },
102
+ "description": "Callback used to position `target`."
103
+ }
104
+ ],
105
+ "description": "Positions an element relative to an anchor element."
106
+ }
107
+ ],
108
+ "exports": [
109
+ {
110
+ "kind": "js",
111
+ "name": "positionAnchor",
112
+ "declaration": {
113
+ "name": "positionAnchor",
114
+ "module": "src/anchoring/positionAnchor.ts"
115
+ }
116
+ }
117
+ ]
118
+ },
20
119
  {
21
120
  "kind": "javascript-module",
22
121
  "path": "src/a11y/aria-reference.ts",
@@ -1002,105 +1101,6 @@
1002
1101
  }
1003
1102
  ]
1004
1103
  },
1005
- {
1006
- "kind": "javascript-module",
1007
- "path": "src/anchoring/AnchorOptions.ts",
1008
- "declarations": [],
1009
- "exports": []
1010
- },
1011
- {
1012
- "kind": "javascript-module",
1013
- "path": "src/anchoring/AnchorPosition.ts",
1014
- "declarations": [],
1015
- "exports": []
1016
- },
1017
- {
1018
- "kind": "javascript-module",
1019
- "path": "src/anchoring/index.ts",
1020
- "declarations": [],
1021
- "exports": [
1022
- {
1023
- "kind": "js",
1024
- "name": "*",
1025
- "declaration": {
1026
- "name": "*",
1027
- "package": "\"./AnchorOptions\""
1028
- }
1029
- },
1030
- {
1031
- "kind": "js",
1032
- "name": "*",
1033
- "declaration": {
1034
- "name": "*",
1035
- "package": "\"./AnchorPosition\""
1036
- }
1037
- },
1038
- {
1039
- "kind": "js",
1040
- "name": "*",
1041
- "declaration": {
1042
- "name": "*",
1043
- "package": "\"./positionAnchor\""
1044
- }
1045
- }
1046
- ]
1047
- },
1048
- {
1049
- "kind": "javascript-module",
1050
- "path": "src/anchoring/positionAnchor.ts",
1051
- "declarations": [
1052
- {
1053
- "kind": "function",
1054
- "name": "positionAnchor",
1055
- "return": {
1056
- "type": {
1057
- "text": "Promise<() => void>"
1058
- }
1059
- },
1060
- "parameters": [
1061
- {
1062
- "name": "target",
1063
- "type": {
1064
- "text": "HTMLElement"
1065
- },
1066
- "description": "The element to position."
1067
- },
1068
- {
1069
- "name": "anchor",
1070
- "type": {
1071
- "text": "HTMLElement"
1072
- },
1073
- "description": "The element in which to anchor `target`."
1074
- },
1075
- {
1076
- "name": "options",
1077
- "type": {
1078
- "text": "AnchorOptions"
1079
- },
1080
- "description": "Options that control positioning relative to the anchor."
1081
- },
1082
- {
1083
- "name": "update",
1084
- "type": {
1085
- "text": "((x: number, y: number, position: AnchorPosition) => void)"
1086
- },
1087
- "description": "Callback used to position `target`."
1088
- }
1089
- ],
1090
- "description": "Positions an element relative to an anchor element."
1091
- }
1092
- ],
1093
- "exports": [
1094
- {
1095
- "kind": "js",
1096
- "name": "positionAnchor",
1097
- "declaration": {
1098
- "name": "positionAnchor",
1099
- "module": "src/anchoring/positionAnchor.ts"
1100
- }
1101
- }
1102
- ]
1103
- },
1104
1104
  {
1105
1105
  "kind": "javascript-module",
1106
1106
  "path": "src/layout/Breakpoint.ts",
@@ -1294,6 +1294,14 @@
1294
1294
  "package": "\"./controllers\""
1295
1295
  }
1296
1296
  },
1297
+ {
1298
+ "kind": "js",
1299
+ "name": "*",
1300
+ "declaration": {
1301
+ "name": "*",
1302
+ "package": "\"./converters\""
1303
+ }
1304
+ },
1297
1305
  {
1298
1306
  "kind": "js",
1299
1307
  "name": "*",
@@ -6431,6 +6439,14 @@
6431
6439
  "name": "*",
6432
6440
  "package": "\"./ScrollController\""
6433
6441
  }
6442
+ },
6443
+ {
6444
+ "kind": "js",
6445
+ "name": "*",
6446
+ "declaration": {
6447
+ "name": "*",
6448
+ "package": "\"./ScrollLockController\""
6449
+ }
6434
6450
  }
6435
6451
  ]
6436
6452
  },
@@ -8575,6 +8591,134 @@
8575
8591
  }
8576
8592
  ]
8577
8593
  },
8594
+ {
8595
+ "kind": "javascript-module",
8596
+ "path": "src/shared/controllers/ScrollLockController.ts",
8597
+ "declarations": [
8598
+ {
8599
+ "kind": "class",
8600
+ "description": "A `ReactiveController` that provides safe, predictable scroll locking for modal UI\r\nsurfaces (dialogs, bottom sheets, overlays).",
8601
+ "name": "ScrollLockController",
8602
+ "members": [
8603
+ {
8604
+ "kind": "field",
8605
+ "name": "#locked",
8606
+ "privacy": "private",
8607
+ "type": {
8608
+ "text": "boolean"
8609
+ },
8610
+ "default": "false"
8611
+ },
8612
+ {
8613
+ "kind": "field",
8614
+ "name": "#scrollTop",
8615
+ "privacy": "private",
8616
+ "type": {
8617
+ "text": "number"
8618
+ },
8619
+ "default": "0"
8620
+ },
8621
+ {
8622
+ "kind": "field",
8623
+ "name": "#scrollLeft",
8624
+ "privacy": "private",
8625
+ "type": {
8626
+ "text": "number"
8627
+ },
8628
+ "default": "0"
8629
+ },
8630
+ {
8631
+ "kind": "field",
8632
+ "name": "#previousOverflow",
8633
+ "privacy": "private",
8634
+ "type": {
8635
+ "text": "string"
8636
+ },
8637
+ "default": "\"\""
8638
+ },
8639
+ {
8640
+ "kind": "field",
8641
+ "name": "#previousScrollbarGutter",
8642
+ "privacy": "private",
8643
+ "type": {
8644
+ "text": "string"
8645
+ },
8646
+ "default": "\"\""
8647
+ },
8648
+ {
8649
+ "kind": "method",
8650
+ "name": "#isVerticallyScrollable",
8651
+ "privacy": "private",
8652
+ "description": "Returns true if the document is vertically scrollable."
8653
+ },
8654
+ {
8655
+ "kind": "method",
8656
+ "name": "lock",
8657
+ "description": "Locks document scrolling only if scroll actually exists."
8658
+ },
8659
+ {
8660
+ "kind": "method",
8661
+ "name": "unlock",
8662
+ "description": "Unlocks document scrolling and restores the previous state."
8663
+ },
8664
+ {
8665
+ "kind": "method",
8666
+ "name": "hostDisconnected"
8667
+ }
8668
+ ]
8669
+ }
8670
+ ],
8671
+ "exports": [
8672
+ {
8673
+ "kind": "js",
8674
+ "name": "ScrollLockController",
8675
+ "declaration": {
8676
+ "name": "ScrollLockController",
8677
+ "module": "src/shared/controllers/ScrollLockController.ts"
8678
+ }
8679
+ }
8680
+ ]
8681
+ },
8682
+ {
8683
+ "kind": "javascript-module",
8684
+ "path": "src/shared/converters/index.ts",
8685
+ "declarations": [],
8686
+ "exports": [
8687
+ {
8688
+ "kind": "js",
8689
+ "name": "*",
8690
+ "declaration": {
8691
+ "name": "*",
8692
+ "package": "\"./spaceSeparatedStringConverter\""
8693
+ }
8694
+ }
8695
+ ]
8696
+ },
8697
+ {
8698
+ "kind": "javascript-module",
8699
+ "path": "src/shared/converters/spaceSeparatedStringConverter.ts",
8700
+ "declarations": [
8701
+ {
8702
+ "kind": "variable",
8703
+ "name": "spaceSeparatedStringConverter",
8704
+ "type": {
8705
+ "text": "ComplexAttributeConverter<string[], string | null>"
8706
+ },
8707
+ "default": "{ fromAttribute(value: string | null): string[] { if (!value) return []; return value .split(/\\s+/) .map((d) => d.trim()) .filter(Boolean); }, toAttribute(value: string[]): string { return value.join(\" \"); }, }",
8708
+ "description": "Converts a space-separated attribute in to an array of strings."
8709
+ }
8710
+ ],
8711
+ "exports": [
8712
+ {
8713
+ "kind": "js",
8714
+ "name": "spaceSeparatedStringConverter",
8715
+ "declaration": {
8716
+ "name": "spaceSeparatedStringConverter",
8717
+ "module": "src/shared/converters/spaceSeparatedStringConverter.ts"
8718
+ }
8719
+ }
8720
+ ]
8721
+ },
8578
8722
  {
8579
8723
  "kind": "javascript-module",
8580
8724
  "path": "src/shared/decorators/debounce.ts",
@@ -13956,6 +14100,48 @@
13956
14100
  }
13957
14101
  ]
13958
14102
  },
14103
+ {
14104
+ "kind": "javascript-module",
14105
+ "path": "src/shared/utils/computeCssSize.ts",
14106
+ "declarations": [
14107
+ {
14108
+ "kind": "function",
14109
+ "name": "computeCssSize",
14110
+ "return": {
14111
+ "type": {
14112
+ "text": "number"
14113
+ }
14114
+ },
14115
+ "parameters": [
14116
+ {
14117
+ "name": "host",
14118
+ "type": {
14119
+ "text": "HTMLElement"
14120
+ },
14121
+ "description": "The element whose coordinate system and CSS variables should be used to resolve the expression."
14122
+ },
14123
+ {
14124
+ "name": "expression",
14125
+ "type": {
14126
+ "text": "string"
14127
+ },
14128
+ "description": "The CSS expression to evaluate."
14129
+ }
14130
+ ],
14131
+ "description": "Computes a CSS size expression (var(), %, rem, calc(), etc.) relative to the given host element."
14132
+ }
14133
+ ],
14134
+ "exports": [
14135
+ {
14136
+ "kind": "js",
14137
+ "name": "computeCssSize",
14138
+ "declaration": {
14139
+ "name": "computeCssSize",
14140
+ "module": "src/shared/utils/computeCssSize.ts"
14141
+ }
14142
+ }
14143
+ ]
14144
+ },
13959
14145
  {
13960
14146
  "kind": "javascript-module",
13961
14147
  "path": "src/shared/utils/computeLineCount.ts",
@@ -14213,6 +14399,14 @@
14213
14399
  "path": "src/shared/utils/index.ts",
14214
14400
  "declarations": [],
14215
14401
  "exports": [
14402
+ {
14403
+ "kind": "js",
14404
+ "name": "*",
14405
+ "declaration": {
14406
+ "name": "*",
14407
+ "package": "\"./computeCssSize\""
14408
+ }
14409
+ },
14216
14410
  {
14217
14411
  "kind": "js",
14218
14412
  "name": "*",
@@ -14308,6 +14502,14 @@
14308
14502
  "name": "*",
14309
14503
  "package": "\"./scrollIntoViewIfNeeded\""
14310
14504
  }
14505
+ },
14506
+ {
14507
+ "kind": "js",
14508
+ "name": "*",
14509
+ "declaration": {
14510
+ "name": "*",
14511
+ "package": "\"./VelocityTracker\""
14512
+ }
14311
14513
  }
14312
14514
  ]
14313
14515
  },
@@ -14513,6 +14715,97 @@
14513
14715
  }
14514
14716
  }
14515
14717
  ]
14718
+ },
14719
+ {
14720
+ "kind": "javascript-module",
14721
+ "path": "src/shared/utils/VelocityTracker.ts",
14722
+ "declarations": [
14723
+ {
14724
+ "kind": "class",
14725
+ "description": "Utility for computing gesture velocity over a rolling time window.",
14726
+ "name": "VelocityTracker",
14727
+ "members": [
14728
+ {
14729
+ "kind": "field",
14730
+ "name": "#samples",
14731
+ "privacy": "private",
14732
+ "type": {
14733
+ "text": "Array<{ y: number; t: number }>"
14734
+ },
14735
+ "readonly": true,
14736
+ "default": "[]"
14737
+ },
14738
+ {
14739
+ "kind": "field",
14740
+ "name": "#windowMs",
14741
+ "privacy": "private",
14742
+ "type": {
14743
+ "text": "number"
14744
+ },
14745
+ "readonly": true,
14746
+ "default": "windowMs"
14747
+ },
14748
+ {
14749
+ "kind": "method",
14750
+ "name": "add",
14751
+ "return": {
14752
+ "type": {
14753
+ "text": "void"
14754
+ }
14755
+ },
14756
+ "parameters": [
14757
+ {
14758
+ "name": "value",
14759
+ "type": {
14760
+ "text": "number"
14761
+ },
14762
+ "description": "The value in pixels."
14763
+ },
14764
+ {
14765
+ "name": "timestamp",
14766
+ "default": "performance.now()",
14767
+ "type": {
14768
+ "text": "number"
14769
+ },
14770
+ "description": "The timestamp when `value` changed.",
14771
+ "optional": true
14772
+ }
14773
+ ],
14774
+ "description": "Adds a new sample to the tracker."
14775
+ },
14776
+ {
14777
+ "kind": "method",
14778
+ "name": "getVelocity",
14779
+ "return": {
14780
+ "type": {
14781
+ "text": ""
14782
+ }
14783
+ },
14784
+ "description": "Computes the current velocity in px/s."
14785
+ },
14786
+ {
14787
+ "kind": "method",
14788
+ "name": "reset",
14789
+ "return": {
14790
+ "type": {
14791
+ "text": "void"
14792
+ }
14793
+ },
14794
+ "description": "Clears all stored samples."
14795
+ }
14796
+ ]
14797
+ }
14798
+ ],
14799
+ "exports": [
14800
+ {
14801
+ "kind": "js",
14802
+ "name": "VelocityTracker",
14803
+ "declaration": {
14804
+ "name": "VelocityTracker",
14805
+ "module": "src/shared/utils/VelocityTracker.ts"
14806
+ }
14807
+ }
14808
+ ]
14516
14809
  }
14517
14810
  ]
14518
14811
  }