@patternfly/pfe-core 2.1.0 → 2.3.0
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/controllers/cascade-controller.js +2 -1
- package/controllers/cascade-controller.js.map +1 -1
- package/controllers/floating-dom-controller.d.ts +6 -4
- package/controllers/floating-dom-controller.js +33 -14
- package/controllers/floating-dom-controller.js.map +1 -1
- package/controllers/internals-controller.d.ts +2 -2
- package/controllers/internals-controller.js +2 -1
- package/controllers/internals-controller.js.map +1 -1
- package/controllers/light-dom-controller.js.map +1 -1
- package/controllers/logger.js +2 -1
- package/controllers/logger.js.map +1 -1
- package/controllers/overflow-controller.js +11 -24
- package/controllers/overflow-controller.js.map +1 -1
- package/controllers/property-observer-controller.js +2 -1
- package/controllers/property-observer-controller.js.map +1 -1
- package/controllers/roving-tabindex-controller.d.ts +12 -12
- package/controllers/roving-tabindex-controller.js +6 -5
- package/controllers/roving-tabindex-controller.js.map +1 -1
- package/controllers/scroll-spy-controller.js +1 -1
- package/controllers/scroll-spy-controller.js.map +1 -1
- package/controllers/slot-controller.js +2 -1
- package/controllers/slot-controller.js.map +1 -1
- package/core.d.ts +6 -1
- package/core.js +21 -13
- package/core.js.map +1 -1
- package/custom-elements.json +105 -81
- package/decorators/observed.js.map +1 -1
- package/functions/debounce.js.map +1 -1
- package/package.json +3 -3
package/custom-elements.json
CHANGED
|
@@ -29,10 +29,18 @@
|
|
|
29
29
|
"kind": "variable",
|
|
30
30
|
"name": "NumberListConverter",
|
|
31
31
|
"type": {
|
|
32
|
-
"text": "ComplexAttributeConverter<
|
|
32
|
+
"text": "ComplexAttributeConverter<number[] | null, unknown>"
|
|
33
33
|
},
|
|
34
34
|
"description": "A LitElement property converter which represents a list of numbers as a comma separated string"
|
|
35
35
|
},
|
|
36
|
+
{
|
|
37
|
+
"kind": "variable",
|
|
38
|
+
"name": "StringListConverter",
|
|
39
|
+
"type": {
|
|
40
|
+
"text": "ComplexAttributeConverter<string[] | null, unknown>"
|
|
41
|
+
},
|
|
42
|
+
"description": "A LitElement property converter which represents a list of strings as a comma separated string"
|
|
43
|
+
},
|
|
36
44
|
{
|
|
37
45
|
"kind": "class",
|
|
38
46
|
"description": "A composed, bubbling event for UI interactions\ne.g. when an accordion panel opens.",
|
|
@@ -60,6 +68,14 @@
|
|
|
60
68
|
"module": "core.d.ts"
|
|
61
69
|
}
|
|
62
70
|
},
|
|
71
|
+
{
|
|
72
|
+
"kind": "js",
|
|
73
|
+
"name": "StringListConverter",
|
|
74
|
+
"declaration": {
|
|
75
|
+
"name": "StringListConverter",
|
|
76
|
+
"module": "core.d.ts"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
63
79
|
{
|
|
64
80
|
"kind": "js",
|
|
65
81
|
"name": "ComposedEvent",
|
|
@@ -88,12 +104,13 @@
|
|
|
88
104
|
{
|
|
89
105
|
"kind": "variable",
|
|
90
106
|
"name": "NumberListConverter",
|
|
91
|
-
"type": {
|
|
92
|
-
"text": "object"
|
|
93
|
-
},
|
|
94
|
-
"default": "{\n fromAttribute(value) {\n if (typeof value !== 'string') {\n return null;\n }\n else {\n return value.split(',').map(x => x.trim()).map(x => parseInt(x, 10));\n }\n },\n toAttribute(value) {\n return value.join(',');\n },\n}",
|
|
95
107
|
"description": "A LitElement property converter which represents a list of numbers as a comma separated string"
|
|
96
108
|
},
|
|
109
|
+
{
|
|
110
|
+
"kind": "variable",
|
|
111
|
+
"name": "StringListConverter",
|
|
112
|
+
"description": "A LitElement property converter which represents a list of strings as a comma separated string"
|
|
113
|
+
},
|
|
97
114
|
{
|
|
98
115
|
"kind": "class",
|
|
99
116
|
"description": "A composed, bubbling event for UI interactions\ne.g. when an accordion panel opens.",
|
|
@@ -121,6 +138,14 @@
|
|
|
121
138
|
"module": "core.js"
|
|
122
139
|
}
|
|
123
140
|
},
|
|
141
|
+
{
|
|
142
|
+
"kind": "js",
|
|
143
|
+
"name": "StringListConverter",
|
|
144
|
+
"declaration": {
|
|
145
|
+
"name": "StringListConverter",
|
|
146
|
+
"module": "core.js"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
124
149
|
{
|
|
125
150
|
"kind": "js",
|
|
126
151
|
"name": "ComposedEvent",
|
|
@@ -152,12 +177,13 @@
|
|
|
152
177
|
{
|
|
153
178
|
"kind": "variable",
|
|
154
179
|
"name": "NumberListConverter",
|
|
155
|
-
"type": {
|
|
156
|
-
"text": "ComplexAttributeConverter<null|number[]>"
|
|
157
|
-
},
|
|
158
|
-
"default": "{\n fromAttribute(value: string) {\n if (typeof value !== 'string') {\n return null;\n } else {\n return value.split(',').map(x => x.trim()).map(x => parseInt(x, 10));\n }\n },\n toAttribute(value: number[]) {\n return value.join(',');\n },\n}",
|
|
159
180
|
"description": "A LitElement property converter which represents a list of numbers as a comma separated string"
|
|
160
181
|
},
|
|
182
|
+
{
|
|
183
|
+
"kind": "variable",
|
|
184
|
+
"name": "StringListConverter",
|
|
185
|
+
"description": "A LitElement property converter which represents a list of strings as a comma separated string"
|
|
186
|
+
},
|
|
161
187
|
{
|
|
162
188
|
"kind": "class",
|
|
163
189
|
"description": "A composed, bubbling event for UI interactions\ne.g. when an accordion panel opens.",
|
|
@@ -185,6 +211,14 @@
|
|
|
185
211
|
"module": "core.ts"
|
|
186
212
|
}
|
|
187
213
|
},
|
|
214
|
+
{
|
|
215
|
+
"kind": "js",
|
|
216
|
+
"name": "StringListConverter",
|
|
217
|
+
"declaration": {
|
|
218
|
+
"name": "StringListConverter",
|
|
219
|
+
"module": "core.ts"
|
|
220
|
+
}
|
|
221
|
+
},
|
|
188
222
|
{
|
|
189
223
|
"kind": "js",
|
|
190
224
|
"name": "ComposedEvent",
|
|
@@ -762,7 +796,7 @@
|
|
|
762
796
|
"name": "nodeList",
|
|
763
797
|
"default": "this.host.children",
|
|
764
798
|
"type": {
|
|
765
|
-
"text": "HTMLCollection|NodeList"
|
|
799
|
+
"text": "HTMLCollection | NodeList"
|
|
766
800
|
}
|
|
767
801
|
}
|
|
768
802
|
],
|
|
@@ -781,7 +815,7 @@
|
|
|
781
815
|
{
|
|
782
816
|
"name": "cascade",
|
|
783
817
|
"type": {
|
|
784
|
-
"text": "string|string[]"
|
|
818
|
+
"text": "string | string[]"
|
|
785
819
|
}
|
|
786
820
|
}
|
|
787
821
|
],
|
|
@@ -1167,7 +1201,7 @@
|
|
|
1167
1201
|
},
|
|
1168
1202
|
"parameters": [
|
|
1169
1203
|
{
|
|
1170
|
-
"name": "{ offset, placement }",
|
|
1204
|
+
"name": "{ offset, placement, flip, fallbackPlacements }",
|
|
1171
1205
|
"optional": true,
|
|
1172
1206
|
"type": {
|
|
1173
1207
|
"text": "ShowOptions"
|
|
@@ -1251,7 +1285,7 @@
|
|
|
1251
1285
|
"name": "show",
|
|
1252
1286
|
"parameters": [
|
|
1253
1287
|
{
|
|
1254
|
-
"name": "{ offset, placement }",
|
|
1288
|
+
"name": "{ offset, placement, flip, fallbackPlacements }",
|
|
1255
1289
|
"default": "{}"
|
|
1256
1290
|
}
|
|
1257
1291
|
],
|
|
@@ -1272,20 +1306,10 @@
|
|
|
1272
1306
|
"name": "invoker",
|
|
1273
1307
|
"default": "(_a.invoker = host)"
|
|
1274
1308
|
},
|
|
1275
|
-
{
|
|
1276
|
-
"kind": "field",
|
|
1277
|
-
"name": "arrow",
|
|
1278
|
-
"default": "(_b.arrow = false)"
|
|
1279
|
-
},
|
|
1280
|
-
{
|
|
1281
|
-
"kind": "field",
|
|
1282
|
-
"name": "flip",
|
|
1283
|
-
"default": "(_c.flip = true)"
|
|
1284
|
-
},
|
|
1285
1309
|
{
|
|
1286
1310
|
"kind": "field",
|
|
1287
1311
|
"name": "shift",
|
|
1288
|
-
"default": "(
|
|
1312
|
+
"default": "(_b.shift = true)"
|
|
1289
1313
|
}
|
|
1290
1314
|
]
|
|
1291
1315
|
}
|
|
@@ -1387,6 +1411,11 @@
|
|
|
1387
1411
|
"name": "#content",
|
|
1388
1412
|
"privacy": "private"
|
|
1389
1413
|
},
|
|
1414
|
+
{
|
|
1415
|
+
"kind": "field",
|
|
1416
|
+
"name": "#arrow",
|
|
1417
|
+
"privacy": "private"
|
|
1418
|
+
},
|
|
1390
1419
|
{
|
|
1391
1420
|
"kind": "field",
|
|
1392
1421
|
"name": "alignment",
|
|
@@ -1439,6 +1468,17 @@
|
|
|
1439
1468
|
"type": {
|
|
1440
1469
|
"text": "Offset"
|
|
1441
1470
|
}
|
|
1471
|
+
},
|
|
1472
|
+
{
|
|
1473
|
+
"name": "flip",
|
|
1474
|
+
"default": "true"
|
|
1475
|
+
},
|
|
1476
|
+
{
|
|
1477
|
+
"name": "fallbackPlacements",
|
|
1478
|
+
"optional": true,
|
|
1479
|
+
"type": {
|
|
1480
|
+
"text": "Placement[]"
|
|
1481
|
+
}
|
|
1442
1482
|
}
|
|
1443
1483
|
]
|
|
1444
1484
|
},
|
|
@@ -1447,7 +1487,7 @@
|
|
|
1447
1487
|
"name": "show",
|
|
1448
1488
|
"parameters": [
|
|
1449
1489
|
{
|
|
1450
|
-
"name": "{ offset, placement }",
|
|
1490
|
+
"name": "{ offset, placement, flip, fallbackPlacements }",
|
|
1451
1491
|
"default": "{}",
|
|
1452
1492
|
"type": {
|
|
1453
1493
|
"text": "ShowOptions"
|
|
@@ -1476,22 +1516,6 @@
|
|
|
1476
1516
|
"name": "invoker",
|
|
1477
1517
|
"default": "host"
|
|
1478
1518
|
},
|
|
1479
|
-
{
|
|
1480
|
-
"kind": "field",
|
|
1481
|
-
"name": "arrow",
|
|
1482
|
-
"type": {
|
|
1483
|
-
"text": "boolean"
|
|
1484
|
-
},
|
|
1485
|
-
"default": "false"
|
|
1486
|
-
},
|
|
1487
|
-
{
|
|
1488
|
-
"kind": "field",
|
|
1489
|
-
"name": "flip",
|
|
1490
|
-
"type": {
|
|
1491
|
-
"text": "boolean"
|
|
1492
|
-
},
|
|
1493
|
-
"default": "true"
|
|
1494
|
-
},
|
|
1495
1519
|
{
|
|
1496
1520
|
"kind": "field",
|
|
1497
1521
|
"name": "shift",
|
|
@@ -1596,7 +1620,7 @@
|
|
|
1596
1620
|
"kind": "field",
|
|
1597
1621
|
"name": "ariaColIndexText",
|
|
1598
1622
|
"type": {
|
|
1599
|
-
"text": "
|
|
1623
|
+
"text": "string | null"
|
|
1600
1624
|
}
|
|
1601
1625
|
},
|
|
1602
1626
|
{
|
|
@@ -1764,7 +1788,7 @@
|
|
|
1764
1788
|
"kind": "field",
|
|
1765
1789
|
"name": "ariaRowIndexText",
|
|
1766
1790
|
"type": {
|
|
1767
|
-
"text": "
|
|
1791
|
+
"text": "string | null"
|
|
1768
1792
|
}
|
|
1769
1793
|
},
|
|
1770
1794
|
{
|
|
@@ -2113,7 +2137,7 @@
|
|
|
2113
2137
|
"kind": "field",
|
|
2114
2138
|
"name": "ariaColIndexText",
|
|
2115
2139
|
"type": {
|
|
2116
|
-
"text": "
|
|
2140
|
+
"text": "string | null"
|
|
2117
2141
|
}
|
|
2118
2142
|
},
|
|
2119
2143
|
{
|
|
@@ -2281,7 +2305,7 @@
|
|
|
2281
2305
|
"kind": "field",
|
|
2282
2306
|
"name": "ariaRowIndexText",
|
|
2283
2307
|
"type": {
|
|
2284
|
-
"text": "
|
|
2308
|
+
"text": "string | null"
|
|
2285
2309
|
}
|
|
2286
2310
|
},
|
|
2287
2311
|
{
|
|
@@ -4057,7 +4081,7 @@
|
|
|
4057
4081
|
"kind": "field",
|
|
4058
4082
|
"name": "activeItem",
|
|
4059
4083
|
"type": {
|
|
4060
|
-
"text": "
|
|
4084
|
+
"text": "ItemType | undefined"
|
|
4061
4085
|
},
|
|
4062
4086
|
"description": "active item of array of items"
|
|
4063
4087
|
},
|
|
@@ -4065,7 +4089,7 @@
|
|
|
4065
4089
|
"kind": "field",
|
|
4066
4090
|
"name": "firstItem",
|
|
4067
4091
|
"type": {
|
|
4068
|
-
"text": "
|
|
4092
|
+
"text": "ItemType | undefined"
|
|
4069
4093
|
},
|
|
4070
4094
|
"description": "first item in array of focusable items"
|
|
4071
4095
|
},
|
|
@@ -4073,7 +4097,7 @@
|
|
|
4073
4097
|
"kind": "field",
|
|
4074
4098
|
"name": "lastItem",
|
|
4075
4099
|
"type": {
|
|
4076
|
-
"text": "
|
|
4100
|
+
"text": "ItemType | undefined"
|
|
4077
4101
|
},
|
|
4078
4102
|
"description": "last item in array of focusable items"
|
|
4079
4103
|
},
|
|
@@ -4081,7 +4105,7 @@
|
|
|
4081
4105
|
"kind": "field",
|
|
4082
4106
|
"name": "nextItem",
|
|
4083
4107
|
"type": {
|
|
4084
|
-
"text": "
|
|
4108
|
+
"text": "ItemType | undefined"
|
|
4085
4109
|
},
|
|
4086
4110
|
"description": "next item after active item in array of focusable items"
|
|
4087
4111
|
},
|
|
@@ -4089,7 +4113,7 @@
|
|
|
4089
4113
|
"kind": "field",
|
|
4090
4114
|
"name": "prevItem",
|
|
4091
4115
|
"type": {
|
|
4092
|
-
"text": "
|
|
4116
|
+
"text": "ItemType | undefined"
|
|
4093
4117
|
},
|
|
4094
4118
|
"description": "previous item after active item in array of focusable items"
|
|
4095
4119
|
},
|
|
@@ -4106,7 +4130,7 @@
|
|
|
4106
4130
|
"name": "item",
|
|
4107
4131
|
"optional": true,
|
|
4108
4132
|
"type": {
|
|
4109
|
-
"text": "
|
|
4133
|
+
"text": "ItemType"
|
|
4110
4134
|
}
|
|
4111
4135
|
}
|
|
4112
4136
|
],
|
|
@@ -4125,7 +4149,7 @@
|
|
|
4125
4149
|
"name": "item",
|
|
4126
4150
|
"optional": true,
|
|
4127
4151
|
"type": {
|
|
4128
|
-
"text": "
|
|
4152
|
+
"text": "ItemType"
|
|
4129
4153
|
}
|
|
4130
4154
|
}
|
|
4131
4155
|
],
|
|
@@ -4143,7 +4167,7 @@
|
|
|
4143
4167
|
{
|
|
4144
4168
|
"name": "items",
|
|
4145
4169
|
"type": {
|
|
4146
|
-
"text": "
|
|
4170
|
+
"text": "ItemType[]"
|
|
4147
4171
|
}
|
|
4148
4172
|
}
|
|
4149
4173
|
],
|
|
@@ -4161,7 +4185,7 @@
|
|
|
4161
4185
|
{
|
|
4162
4186
|
"name": "items",
|
|
4163
4187
|
"type": {
|
|
4164
|
-
"text": "
|
|
4188
|
+
"text": "ItemType[]"
|
|
4165
4189
|
}
|
|
4166
4190
|
},
|
|
4167
4191
|
{
|
|
@@ -4182,7 +4206,7 @@
|
|
|
4182
4206
|
"text": "void"
|
|
4183
4207
|
}
|
|
4184
4208
|
},
|
|
4185
|
-
"description": "adds event
|
|
4209
|
+
"description": "adds event listeners to items container"
|
|
4186
4210
|
},
|
|
4187
4211
|
{
|
|
4188
4212
|
"kind": "method",
|
|
@@ -4192,7 +4216,7 @@
|
|
|
4192
4216
|
"text": "void"
|
|
4193
4217
|
}
|
|
4194
4218
|
},
|
|
4195
|
-
"description": "removes event
|
|
4219
|
+
"description": "removes event listeners from items container"
|
|
4196
4220
|
}
|
|
4197
4221
|
]
|
|
4198
4222
|
}
|
|
@@ -4289,12 +4313,12 @@
|
|
|
4289
4313
|
{
|
|
4290
4314
|
"kind": "method",
|
|
4291
4315
|
"name": "hostConnected",
|
|
4292
|
-
"description": "adds event
|
|
4316
|
+
"description": "adds event listeners to items container"
|
|
4293
4317
|
},
|
|
4294
4318
|
{
|
|
4295
4319
|
"kind": "method",
|
|
4296
4320
|
"name": "hostDisconnected",
|
|
4297
|
-
"description": "removes event
|
|
4321
|
+
"description": "removes event listeners from items container"
|
|
4298
4322
|
},
|
|
4299
4323
|
{
|
|
4300
4324
|
"kind": "field",
|
|
@@ -4329,7 +4353,7 @@
|
|
|
4329
4353
|
"name": "#activeItem",
|
|
4330
4354
|
"privacy": "private",
|
|
4331
4355
|
"type": {
|
|
4332
|
-
"text": "
|
|
4356
|
+
"text": "ItemType | undefined"
|
|
4333
4357
|
},
|
|
4334
4358
|
"description": "active focusable element"
|
|
4335
4359
|
},
|
|
@@ -4347,7 +4371,7 @@
|
|
|
4347
4371
|
"name": "#items",
|
|
4348
4372
|
"privacy": "private",
|
|
4349
4373
|
"type": {
|
|
4350
|
-
"text": "
|
|
4374
|
+
"text": "ItemType[]"
|
|
4351
4375
|
},
|
|
4352
4376
|
"default": "[]",
|
|
4353
4377
|
"description": "array of all focusable elements"
|
|
@@ -4357,7 +4381,7 @@
|
|
|
4357
4381
|
"name": "#focusableItems",
|
|
4358
4382
|
"privacy": "private",
|
|
4359
4383
|
"type": {
|
|
4360
|
-
"text": "
|
|
4384
|
+
"text": "ItemType[]"
|
|
4361
4385
|
},
|
|
4362
4386
|
"description": "finds focusable items from a group of items"
|
|
4363
4387
|
},
|
|
@@ -4383,7 +4407,7 @@
|
|
|
4383
4407
|
"kind": "field",
|
|
4384
4408
|
"name": "activeItem",
|
|
4385
4409
|
"type": {
|
|
4386
|
-
"text": "
|
|
4410
|
+
"text": "ItemType | undefined"
|
|
4387
4411
|
},
|
|
4388
4412
|
"description": "active item of array of items"
|
|
4389
4413
|
},
|
|
@@ -4391,7 +4415,7 @@
|
|
|
4391
4415
|
"kind": "field",
|
|
4392
4416
|
"name": "firstItem",
|
|
4393
4417
|
"type": {
|
|
4394
|
-
"text": "
|
|
4418
|
+
"text": "ItemType | undefined"
|
|
4395
4419
|
},
|
|
4396
4420
|
"description": "first item in array of focusable items"
|
|
4397
4421
|
},
|
|
@@ -4399,7 +4423,7 @@
|
|
|
4399
4423
|
"kind": "field",
|
|
4400
4424
|
"name": "lastItem",
|
|
4401
4425
|
"type": {
|
|
4402
|
-
"text": "
|
|
4426
|
+
"text": "ItemType | undefined"
|
|
4403
4427
|
},
|
|
4404
4428
|
"description": "last item in array of focusable items"
|
|
4405
4429
|
},
|
|
@@ -4407,7 +4431,7 @@
|
|
|
4407
4431
|
"kind": "field",
|
|
4408
4432
|
"name": "nextItem",
|
|
4409
4433
|
"type": {
|
|
4410
|
-
"text": "
|
|
4434
|
+
"text": "ItemType | undefined"
|
|
4411
4435
|
},
|
|
4412
4436
|
"description": "next item after active item in array of focusable items"
|
|
4413
4437
|
},
|
|
@@ -4415,7 +4439,7 @@
|
|
|
4415
4439
|
"kind": "field",
|
|
4416
4440
|
"name": "prevItem",
|
|
4417
4441
|
"type": {
|
|
4418
|
-
"text": "
|
|
4442
|
+
"text": "ItemType | undefined"
|
|
4419
4443
|
},
|
|
4420
4444
|
"description": "previous item after active item in array of focusable items"
|
|
4421
4445
|
},
|
|
@@ -4438,7 +4462,7 @@
|
|
|
4438
4462
|
"name": "item",
|
|
4439
4463
|
"optional": true,
|
|
4440
4464
|
"type": {
|
|
4441
|
-
"text": "
|
|
4465
|
+
"text": "ItemType"
|
|
4442
4466
|
}
|
|
4443
4467
|
}
|
|
4444
4468
|
],
|
|
@@ -4457,7 +4481,7 @@
|
|
|
4457
4481
|
"name": "item",
|
|
4458
4482
|
"optional": true,
|
|
4459
4483
|
"type": {
|
|
4460
|
-
"text": "
|
|
4484
|
+
"text": "ItemType"
|
|
4461
4485
|
}
|
|
4462
4486
|
}
|
|
4463
4487
|
],
|
|
@@ -4470,7 +4494,7 @@
|
|
|
4470
4494
|
{
|
|
4471
4495
|
"name": "items",
|
|
4472
4496
|
"type": {
|
|
4473
|
-
"text": "
|
|
4497
|
+
"text": "ItemType[]"
|
|
4474
4498
|
}
|
|
4475
4499
|
}
|
|
4476
4500
|
],
|
|
@@ -4483,7 +4507,7 @@
|
|
|
4483
4507
|
{
|
|
4484
4508
|
"name": "items",
|
|
4485
4509
|
"type": {
|
|
4486
|
-
"text": "
|
|
4510
|
+
"text": "ItemType[]"
|
|
4487
4511
|
}
|
|
4488
4512
|
},
|
|
4489
4513
|
{
|
|
@@ -4499,12 +4523,12 @@
|
|
|
4499
4523
|
{
|
|
4500
4524
|
"kind": "method",
|
|
4501
4525
|
"name": "hostConnected",
|
|
4502
|
-
"description": "adds event
|
|
4526
|
+
"description": "adds event listeners to items container"
|
|
4503
4527
|
},
|
|
4504
4528
|
{
|
|
4505
4529
|
"kind": "method",
|
|
4506
4530
|
"name": "hostDisconnected",
|
|
4507
|
-
"description": "removes event
|
|
4531
|
+
"description": "removes event listeners from items container"
|
|
4508
4532
|
},
|
|
4509
4533
|
{
|
|
4510
4534
|
"kind": "field",
|
|
@@ -4745,7 +4769,7 @@
|
|
|
4745
4769
|
"name": "#threshold",
|
|
4746
4770
|
"privacy": "private",
|
|
4747
4771
|
"type": {
|
|
4748
|
-
"text": "number|number[]"
|
|
4772
|
+
"text": "number | number[]"
|
|
4749
4773
|
}
|
|
4750
4774
|
},
|
|
4751
4775
|
{
|
|
@@ -4761,7 +4785,7 @@
|
|
|
4761
4785
|
"name": "#getHash",
|
|
4762
4786
|
"privacy": "private",
|
|
4763
4787
|
"type": {
|
|
4764
|
-
"text": "(el: Element) => string|null"
|
|
4788
|
+
"text": "(el: Element) => string | null"
|
|
4765
4789
|
}
|
|
4766
4790
|
},
|
|
4767
4791
|
{
|
|
@@ -4818,7 +4842,7 @@
|
|
|
4818
4842
|
"name": "link",
|
|
4819
4843
|
"optional": true,
|
|
4820
4844
|
"type": {
|
|
4821
|
-
"text": "EventTarget|null"
|
|
4845
|
+
"text": "EventTarget | null"
|
|
4822
4846
|
}
|
|
4823
4847
|
}
|
|
4824
4848
|
]
|
|
@@ -4847,7 +4871,7 @@
|
|
|
4847
4871
|
{
|
|
4848
4872
|
"name": "link",
|
|
4849
4873
|
"type": {
|
|
4850
|
-
"text": "EventTarget|null"
|
|
4874
|
+
"text": "EventTarget | null"
|
|
4851
4875
|
}
|
|
4852
4876
|
}
|
|
4853
4877
|
],
|
|
@@ -5198,7 +5222,7 @@
|
|
|
5198
5222
|
"kind": "field",
|
|
5199
5223
|
"name": "nodes",
|
|
5200
5224
|
"privacy": "private",
|
|
5201
|
-
"default": "new Map<string|typeof SlotController.anonymous, Slot>()"
|
|
5225
|
+
"default": "new Map<string | typeof SlotController.anonymous, Slot>()"
|
|
5202
5226
|
},
|
|
5203
5227
|
{
|
|
5204
5228
|
"kind": "field",
|
|
@@ -5228,7 +5252,7 @@
|
|
|
5228
5252
|
"kind": "field",
|
|
5229
5253
|
"name": "slotNames",
|
|
5230
5254
|
"type": {
|
|
5231
|
-
"text": "(string|null)[]"
|
|
5255
|
+
"text": "(string | null)[]"
|
|
5232
5256
|
},
|
|
5233
5257
|
"privacy": "private"
|
|
5234
5258
|
},
|
|
@@ -5335,7 +5359,7 @@
|
|
|
5335
5359
|
{
|
|
5336
5360
|
"name": "name",
|
|
5337
5361
|
"type": {
|
|
5338
|
-
"text": "string|typeof SlotController.anonymous"
|
|
5362
|
+
"text": "string | typeof SlotController.anonymous"
|
|
5339
5363
|
}
|
|
5340
5364
|
}
|
|
5341
5365
|
]
|
|
@@ -5348,7 +5372,7 @@
|
|
|
5348
5372
|
{
|
|
5349
5373
|
"name": "slotName",
|
|
5350
5374
|
"type": {
|
|
5351
|
-
"text": "string|null"
|
|
5375
|
+
"text": "string | null"
|
|
5352
5376
|
}
|
|
5353
5377
|
}
|
|
5354
5378
|
]
|
|
@@ -6182,7 +6206,7 @@
|
|
|
6182
6206
|
"name": "observed",
|
|
6183
6207
|
"return": {
|
|
6184
6208
|
"type": {
|
|
6185
|
-
"text": "void|TypedFieldDecorator<T>"
|
|
6209
|
+
"text": "void | TypedFieldDecorator<T>"
|
|
6186
6210
|
}
|
|
6187
6211
|
},
|
|
6188
6212
|
"parameters": [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"observed.js","sourceRoot":"","sources":["observed.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gDAAgD,CAAC;AAgCxD,MAAM,UAAU,QAAQ,CAA4B,GAAG,EAAS;IAC9D,2CAA2C;IAC3C,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;QACnB,MAAM,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC;QAClC,OAAO,UAAS,KAAK,EAAE,GAAG;YACvB,KAAK,CAAC,WAAsC;iBAC1C,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1D,eAAe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,CAAC,KAAK,CAAC,GAAa,EAAE,gBAAgB,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;iBACjF;aACF;QACH,CAAC;KACF,CAAC,CAAC;AACL,CAAC","sourcesContent":["import type { ReactiveElement } from 'lit';\nimport type {\n ChangeCallback,\n ChangeCallbackName,\n PropertyObserverHost,\n} from '../controllers/property-observer-controller.js';\n\nimport {\n observedController,\n PropertyObserverController,\n} from '../controllers/property-observer-controller.js';\n\ntype TypedFieldDecorator<T> = (proto: T, key: string | keyof T) => void ;\n\n/**\n * Calls a _fooChanged method on the instance when the value changes.\n * Works on any class field. When using on lit observed properties,\n * Make sure `@observed` is to the left (i.e. called after) the `@property`\n * or `@state` decorator.\n *\n * @example observing a lit property\n * ```ts\n * @observed @property() foo = 'bar';\n *\n * protected _fooChanged(oldValue?: string, newValue?: string) {}\n * ```\n *\n * @example using a custom callback\n * ```ts\n * @observed('_myCallback') size = 'lg';\n *\n * _myCallback(_, size) {...}\n * ```\n *\n * @example using an arrow function\n * ```ts\n * @observed((oldVal, newVal) => console.log(`Size changed from ${oldVal} to ${newVal}`))\n * ```\n */\nexport function observed<T extends ReactiveElement>(methodName: string): TypedFieldDecorator<T>\nexport function observed<T extends ReactiveElement>(cb: ChangeCallback<T>): TypedFieldDecorator<T>\nexport function observed<T extends ReactiveElement>(proto: T, key: string): void\nexport function observed<T extends ReactiveElement>(...as: any[]): void|TypedFieldDecorator<T> {\n /** @observed('_myCustomChangeCallback') */\n if (as.length === 1) {\n const [methodNameOrCallback] = as;\n return function(proto, key) {\n (proto.constructor as typeof ReactiveElement)\n .addInitializer(x => new PropertyObserverController(x));\n observeProperty(proto, key as string & keyof T, methodNameOrCallback);\n };\n } else {\n const [proto, key] = as;\n (proto.constructor as typeof ReactiveElement)\n .addInitializer(x => new PropertyObserverController(x));\n observeProperty(proto, key);\n }\n}\n\nexport function observeProperty<T extends ReactiveElement>(\n proto: T,\n key: string & keyof T,\n callbackOrMethod?: ChangeCallback<T>\n) {\n const descriptor = Object.getOwnPropertyDescriptor(proto, key);\n Object.defineProperty(proto, key, {\n ...descriptor,\n configurable: true,\n set(this: PropertyObserverHost<T>, newVal: T[keyof T]) {\n const oldVal = this[key as keyof T];\n // first, call any pre-existing setters, e.g. `@property`\n descriptor?.set?.call(this, newVal);\n\n // if the user passed a callback, call it\n // e.g. `@observed((_, newVal) => console.log(newVal))`\n // safe to call before connectedCallback, because it's impossible to get a `this` ref.\n if (typeof callbackOrMethod === 'function') {\n callbackOrMethod.call(this, oldVal, newVal);\n } else {\n // if the user passed a string method name, call it on `this`\n // e.g. `@observed('_renderOptions')`\n // otherwise, use a default method name e.g. `_fooChanged`\n const actualMethodName = callbackOrMethod || `_${key}Changed`;\n\n // if the component has already connected to the DOM, run the callback\n // otherwise, If the component has not yet connected to the DOM,\n // cache the old and new values. See PropertyObserverController above\n if (this.hasUpdated) {\n this[actualMethodName as ChangeCallbackName]?.(oldVal, newVal);\n } else {\n this[observedController].cache(key as string, actualMethodName, oldVal, newVal);\n }\n }\n },\n });\n}\n"]}
|
|
1
|
+
{"version":3,"file":"observed.js","sourceRoot":"","sources":["observed.ts"],"names":[],"mappings":"AAOA,OAAO,EACL,kBAAkB,EAClB,0BAA0B,GAC3B,MAAM,gDAAgD,CAAC;AAgCxD,MAAM,UAAU,QAAQ,CAA4B,GAAG,EAAS;IAC9D,2CAA2C;IAC3C,IAAI,EAAE,CAAC,MAAM,KAAK,CAAC,EAAE;QACnB,MAAM,CAAC,oBAAoB,CAAC,GAAG,EAAE,CAAC;QAClC,OAAO,UAAS,KAAK,EAAE,GAAG;YACvB,KAAK,CAAC,WAAsC;iBAC1C,cAAc,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1D,eAAe,CAAC,KAAK,EAAE,GAAuB,EAAE,oBAAoB,CAAC,CAAC;QACxE,CAAC,CAAC;KACH;SAAM;QACL,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,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AC","sourcesContent":["import type { ReactiveElement } from 'lit';\nimport type {\n ChangeCallback,\n ChangeCallbackName,\n PropertyObserverHost,\n} from '../controllers/property-observer-controller.js';\n\nimport {\n observedController,\n PropertyObserverController,\n} from '../controllers/property-observer-controller.js';\n\ntype TypedFieldDecorator<T> = (proto: T, key: string | keyof T) => void ;\n\n/**\n * Calls a _fooChanged method on the instance when the value changes.\n * Works on any class field. When using on lit observed properties,\n * Make sure `@observed` is to the left (i.e. called after) the `@property`\n * or `@state` decorator.\n *\n * @example observing a lit property\n * ```ts\n * @observed @property() foo = 'bar';\n *\n * protected _fooChanged(oldValue?: string, newValue?: string) {}\n * ```\n *\n * @example using a custom callback\n * ```ts\n * @observed('_myCallback') size = 'lg';\n *\n * _myCallback(_, size) {...}\n * ```\n *\n * @example using an arrow function\n * ```ts\n * @observed((oldVal, newVal) => console.log(`Size changed from ${oldVal} to ${newVal}`))\n * ```\n */\nexport function observed<T extends ReactiveElement>(methodName: string): TypedFieldDecorator<T>\nexport function observed<T extends ReactiveElement>(cb: ChangeCallback<T>): TypedFieldDecorator<T>\nexport function observed<T extends ReactiveElement>(proto: T, key: string): void\nexport function observed<T extends ReactiveElement>(...as: any[]): void | TypedFieldDecorator<T> {\n /** @observed('_myCustomChangeCallback') */\n if (as.length === 1) {\n const [methodNameOrCallback] = as;\n return function(proto, key) {\n (proto.constructor as typeof ReactiveElement)\n .addInitializer(x => new PropertyObserverController(x));\n observeProperty(proto, key as string & keyof T, methodNameOrCallback);\n };\n } else {\n const [proto, key] = as;\n (proto.constructor as typeof ReactiveElement)\n .addInitializer(x => new PropertyObserverController(x));\n observeProperty(proto, key);\n }\n}\n\nexport function observeProperty<T extends ReactiveElement>(\n proto: T,\n key: string & keyof T,\n callbackOrMethod?: ChangeCallback<T>\n) {\n const descriptor = Object.getOwnPropertyDescriptor(proto, key);\n Object.defineProperty(proto, key, {\n ...descriptor,\n configurable: true,\n set(this: PropertyObserverHost<T>, newVal: T[keyof T]) {\n const oldVal = this[key as keyof T];\n // first, call any pre-existing setters, e.g. `@property`\n descriptor?.set?.call(this, newVal);\n\n // if the user passed a callback, call it\n // e.g. `@observed((_, newVal) => console.log(newVal))`\n // safe to call before connectedCallback, because it's impossible to get a `this` ref.\n if (typeof callbackOrMethod === 'function') {\n callbackOrMethod.call(this, oldVal, newVal);\n } else {\n // if the user passed a string method name, call it on `this`\n // e.g. `@observed('_renderOptions')`\n // otherwise, use a default method name e.g. `_fooChanged`\n const actualMethodName = callbackOrMethod || `_${key}Changed`;\n\n // if the component has already connected to the DOM, run the callback\n // otherwise, If the component has not yet connected to the DOM,\n // cache the old and new values. See PropertyObserverController above\n if (this.hasUpdated) {\n this[actualMethodName as ChangeCallbackName]?.(oldVal, newVal);\n } else {\n this[observedController].cache(key as string, actualMethodName, oldVal, newVal);\n }\n }\n },\n });\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CACtB,IAAiC,EACjC,KAAa,EACb,SAAS,GAAG,KAAK;IAEjB,IAAI,
|
|
1
|
+
{"version":3,"file":"debounce.js","sourceRoot":"","sources":["debounce.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,MAAM,UAAU,QAAQ,CACtB,IAAiC,EACjC,KAAa,EACb,SAAS,GAAG,KAAK;IAEjB,IAAI,OAAsB,CAAC;IAC3B,OAAO,UAAwB,GAAG,IAAW;QAC3C,4DAA4D;QAC5D,MAAM,OAAO,GAAG,IAAI,CAAC;QACrB,MAAM,KAAK,GAAG;YACZ,OAAO,GAAG,IAAI,CAAC;YACf,IAAI,CAAC,SAAS,EAAE;gBACd,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;aAC3B;QACH,CAAC,CAAC;QACF,MAAM,OAAO,GAAG,SAAS,IAAI,CAAC,OAAO,CAAC;QACtC,YAAY,CAAC,OAAiB,CAAC,CAAC;QAChC,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;QAC1C,IAAI,OAAO,EAAE;YACX,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC;SAC3B;IACH,CAAC,CAAC;AACJ,CAAC","sourcesContent":["/**\n * Debounce helper function\n * @see https://davidwalsh.name/javascript-debounce-function\n *\n * @param func Function to be debounced\n * @param delay How long until it will be run\n * @param immediate Whether it should be run at the start instead of the end of the debounce\n */\nexport function debounce(\n func: (...args: any[]) => unknown,\n delay: number,\n immediate = false\n) {\n let timeout: number | null;\n return function(this: unknown, ...args: any[]) {\n // eslint-disable-next-line @typescript-eslint/no-this-alias\n const context = this;\n const later = function() {\n timeout = null;\n if (!immediate) {\n func.apply(context, args);\n }\n };\n const callNow = immediate && !timeout;\n clearTimeout(timeout as number);\n timeout = window.setTimeout(later, delay);\n if (callNow) {\n func.apply(context, args);\n }\n };\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/pfe-core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "PatternFly Elements Core Library",
|
|
6
6
|
"customElements": "custom-elements.json",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"test": "wtr --files './test/*.spec.ts' --config ../../web-test-runner.config.js"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@floating-ui/dom": "^1.2.
|
|
54
|
-
"lit": "2.
|
|
53
|
+
"@floating-ui/dom": "^1.2.6",
|
|
54
|
+
"lit": "^2.7.2"
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|