@genesislcap/foundation-utils 14.204.0 → 14.204.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. package/dist/custom-elements.json +205 -205
  2. package/package.json +10 -10
@@ -167,6 +167,59 @@
167
167
  }
168
168
  ]
169
169
  },
170
+ {
171
+ "kind": "javascript-module",
172
+ "path": "src/decorators/index.ts",
173
+ "declarations": [],
174
+ "exports": [
175
+ {
176
+ "kind": "js",
177
+ "name": "*",
178
+ "declaration": {
179
+ "name": "*",
180
+ "package": "./renderOnChange"
181
+ }
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "kind": "javascript-module",
187
+ "path": "src/decorators/renderOnChange.ts",
188
+ "declarations": [
189
+ {
190
+ "kind": "function",
191
+ "name": "renderOnChange",
192
+ "parameters": [
193
+ {
194
+ "name": "target",
195
+ "type": {
196
+ "text": "FASTElement & { render(): void }"
197
+ },
198
+ "description": "The target to define the property change handler on."
199
+ },
200
+ {
201
+ "name": "name",
202
+ "type": {
203
+ "text": "string"
204
+ },
205
+ "description": "The property name."
206
+ }
207
+ ],
208
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
209
+ "privacy": "public"
210
+ }
211
+ ],
212
+ "exports": [
213
+ {
214
+ "kind": "js",
215
+ "name": "renderOnChange",
216
+ "declaration": {
217
+ "name": "renderOnChange",
218
+ "module": "src/decorators/renderOnChange.ts"
219
+ }
220
+ }
221
+ ]
222
+ },
170
223
  {
171
224
  "kind": "javascript-module",
172
225
  "path": "src/data/inMemoryDatabase.ts",
@@ -367,42 +420,7 @@
367
420
  },
368
421
  {
369
422
  "kind": "javascript-module",
370
- "path": "src/design-system/design-system.ts",
371
- "declarations": [
372
- {
373
- "kind": "function",
374
- "name": "assureDesignSystem",
375
- "return": {
376
- "type": {
377
- "text": "DesignSystemModule"
378
- }
379
- },
380
- "parameters": [
381
- {
382
- "name": "module",
383
- "type": {
384
- "text": "DesignSystemModule"
385
- }
386
- }
387
- ],
388
- "description": "assureDesignSystem.",
389
- "privacy": "public"
390
- }
391
- ],
392
- "exports": [
393
- {
394
- "kind": "js",
395
- "name": "assureDesignSystem",
396
- "declaration": {
397
- "name": "assureDesignSystem",
398
- "module": "src/design-system/design-system.ts"
399
- }
400
- }
401
- ]
402
- },
403
- {
404
- "kind": "javascript-module",
405
- "path": "src/design-system/index.ts",
423
+ "path": "src/directives/index.ts",
406
424
  "declarations": [],
407
425
  "exports": [
408
426
  {
@@ -410,67 +428,57 @@
410
428
  "name": "*",
411
429
  "declaration": {
412
430
  "name": "*",
413
- "package": "./design-system"
431
+ "package": "./sync"
414
432
  }
415
- }
416
- ]
417
- },
418
- {
419
- "kind": "javascript-module",
420
- "path": "src/decorators/index.ts",
421
- "declarations": [],
422
- "exports": [
433
+ },
423
434
  {
424
435
  "kind": "js",
425
436
  "name": "*",
426
437
  "declaration": {
427
438
  "name": "*",
428
- "package": "./renderOnChange"
439
+ "package": "./when-else"
429
440
  }
430
441
  }
431
442
  ]
432
443
  },
433
444
  {
434
445
  "kind": "javascript-module",
435
- "path": "src/decorators/renderOnChange.ts",
446
+ "path": "src/design-system/design-system.ts",
436
447
  "declarations": [
437
448
  {
438
449
  "kind": "function",
439
- "name": "renderOnChange",
450
+ "name": "assureDesignSystem",
451
+ "return": {
452
+ "type": {
453
+ "text": "DesignSystemModule"
454
+ }
455
+ },
440
456
  "parameters": [
441
457
  {
442
- "name": "target",
443
- "type": {
444
- "text": "FASTElement & { render(): void }"
445
- },
446
- "description": "The target to define the property change handler on."
447
- },
448
- {
449
- "name": "name",
458
+ "name": "module",
450
459
  "type": {
451
- "text": "string"
452
- },
453
- "description": "The property name."
460
+ "text": "DesignSystemModule"
461
+ }
454
462
  }
455
463
  ],
456
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
464
+ "description": "assureDesignSystem.",
457
465
  "privacy": "public"
458
466
  }
459
467
  ],
460
468
  "exports": [
461
469
  {
462
470
  "kind": "js",
463
- "name": "renderOnChange",
471
+ "name": "assureDesignSystem",
464
472
  "declaration": {
465
- "name": "renderOnChange",
466
- "module": "src/decorators/renderOnChange.ts"
473
+ "name": "assureDesignSystem",
474
+ "module": "src/design-system/design-system.ts"
467
475
  }
468
476
  }
469
477
  ]
470
478
  },
471
479
  {
472
480
  "kind": "javascript-module",
473
- "path": "src/directives/index.ts",
481
+ "path": "src/design-system/index.ts",
474
482
  "declarations": [],
475
483
  "exports": [
476
484
  {
@@ -478,15 +486,7 @@
478
486
  "name": "*",
479
487
  "declaration": {
480
488
  "name": "*",
481
- "package": "./sync"
482
- }
483
- },
484
- {
485
- "kind": "js",
486
- "name": "*",
487
- "declaration": {
488
- "name": "*",
489
- "package": "./when-else"
489
+ "package": "./design-system"
490
490
  }
491
491
  }
492
492
  ]
@@ -1337,6 +1337,78 @@
1337
1337
  }
1338
1338
  ]
1339
1339
  },
1340
+ {
1341
+ "kind": "javascript-module",
1342
+ "path": "src/observer/index.ts",
1343
+ "declarations": [],
1344
+ "exports": [
1345
+ {
1346
+ "kind": "js",
1347
+ "name": "*",
1348
+ "declaration": {
1349
+ "name": "*",
1350
+ "package": "./observer"
1351
+ }
1352
+ }
1353
+ ]
1354
+ },
1355
+ {
1356
+ "kind": "javascript-module",
1357
+ "path": "src/observer/observer.ts",
1358
+ "declarations": [
1359
+ {
1360
+ "kind": "function",
1361
+ "name": "createObserver",
1362
+ "return": {
1363
+ "type": {
1364
+ "text": "Observer<EventType>"
1365
+ }
1366
+ },
1367
+ "description": "Creates a new event observer instance.",
1368
+ "privacy": "public"
1369
+ },
1370
+ {
1371
+ "kind": "function",
1372
+ "name": "respondToVisibility",
1373
+ "parameters": [
1374
+ {
1375
+ "name": "element",
1376
+ "type": {
1377
+ "text": "HTMLElement"
1378
+ },
1379
+ "description": "HTMLElement to observe"
1380
+ },
1381
+ {
1382
+ "name": "callback",
1383
+ "type": {
1384
+ "text": "(arg0: boolean) => any"
1385
+ },
1386
+ "description": "any function called when the visibility changes"
1387
+ }
1388
+ ],
1389
+ "description": "Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen",
1390
+ "privacy": "public"
1391
+ }
1392
+ ],
1393
+ "exports": [
1394
+ {
1395
+ "kind": "js",
1396
+ "name": "createObserver",
1397
+ "declaration": {
1398
+ "name": "createObserver",
1399
+ "module": "src/observer/observer.ts"
1400
+ }
1401
+ },
1402
+ {
1403
+ "kind": "js",
1404
+ "name": "respondToVisibility",
1405
+ "declaration": {
1406
+ "name": "respondToVisibility",
1407
+ "module": "src/observer/observer.ts"
1408
+ }
1409
+ }
1410
+ ]
1411
+ },
1340
1412
  {
1341
1413
  "kind": "javascript-module",
1342
1414
  "path": "src/promise/index.ts",
@@ -1575,78 +1647,6 @@
1575
1647
  }
1576
1648
  ]
1577
1649
  },
1578
- {
1579
- "kind": "javascript-module",
1580
- "path": "src/observer/index.ts",
1581
- "declarations": [],
1582
- "exports": [
1583
- {
1584
- "kind": "js",
1585
- "name": "*",
1586
- "declaration": {
1587
- "name": "*",
1588
- "package": "./observer"
1589
- }
1590
- }
1591
- ]
1592
- },
1593
- {
1594
- "kind": "javascript-module",
1595
- "path": "src/observer/observer.ts",
1596
- "declarations": [
1597
- {
1598
- "kind": "function",
1599
- "name": "createObserver",
1600
- "return": {
1601
- "type": {
1602
- "text": "Observer<EventType>"
1603
- }
1604
- },
1605
- "description": "Creates a new event observer instance.",
1606
- "privacy": "public"
1607
- },
1608
- {
1609
- "kind": "function",
1610
- "name": "respondToVisibility",
1611
- "parameters": [
1612
- {
1613
- "name": "element",
1614
- "type": {
1615
- "text": "HTMLElement"
1616
- },
1617
- "description": "HTMLElement to observe"
1618
- },
1619
- {
1620
- "name": "callback",
1621
- "type": {
1622
- "text": "(arg0: boolean) => any"
1623
- },
1624
- "description": "any function called when the visibility changes"
1625
- }
1626
- ],
1627
- "description": "Setup an `IntersectionObserver` which will activate a callback function when an element becomes visible on screen",
1628
- "privacy": "public"
1629
- }
1630
- ],
1631
- "exports": [
1632
- {
1633
- "kind": "js",
1634
- "name": "createObserver",
1635
- "declaration": {
1636
- "name": "createObserver",
1637
- "module": "src/observer/observer.ts"
1638
- }
1639
- },
1640
- {
1641
- "kind": "js",
1642
- "name": "respondToVisibility",
1643
- "declaration": {
1644
- "name": "respondToVisibility",
1645
- "module": "src/observer/observer.ts"
1646
- }
1647
- }
1648
- ]
1649
- },
1650
1650
  {
1651
1651
  "kind": "javascript-module",
1652
1652
  "path": "src/styles/color.ts",
@@ -2218,7 +2218,7 @@
2218
2218
  },
2219
2219
  {
2220
2220
  "kind": "javascript-module",
2221
- "path": "src/directives/when-else/index.ts",
2221
+ "path": "src/directives/sync/index.ts",
2222
2222
  "declarations": [],
2223
2223
  "exports": [
2224
2224
  {
@@ -2226,18 +2226,28 @@
2226
2226
  "name": "*",
2227
2227
  "declaration": {
2228
2228
  "name": "*",
2229
- "package": "./when-else"
2229
+ "package": "./sync"
2230
2230
  }
2231
2231
  }
2232
2232
  ]
2233
2233
  },
2234
2234
  {
2235
2235
  "kind": "javascript-module",
2236
- "path": "src/directives/when-else/when-else.ts",
2236
+ "path": "src/directives/sync/sync.ts",
2237
2237
  "declarations": [
2238
+ {
2239
+ "kind": "variable",
2240
+ "name": "defaultEventMap",
2241
+ "type": {
2242
+ "text": "Map<string, EventName>"
2243
+ },
2244
+ "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
2245
+ "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2246
+ "privacy": "public"
2247
+ },
2238
2248
  {
2239
2249
  "kind": "function",
2240
- "name": "whenElse",
2250
+ "name": "sync",
2241
2251
  "return": {
2242
2252
  "type": {
2243
2253
  "text": "CaptureType<TSource>"
@@ -2248,42 +2258,56 @@
2248
2258
  "name": "binding",
2249
2259
  "type": {
2250
2260
  "text": "Binding<TSource, TReturn>"
2251
- },
2252
- "description": "The condition to test for rendering."
2261
+ }
2253
2262
  },
2254
2263
  {
2255
- "name": "trueTemplateOrTemplateBinding",
2264
+ "name": "conversionType",
2265
+ "default": "'string'",
2256
2266
  "type": {
2257
- "text": "WhenTemplate<TSource>"
2258
- },
2259
- "description": "The template or a binding that gets the template to render when the condition is true."
2267
+ "text": "ConversionType"
2268
+ }
2260
2269
  },
2261
2270
  {
2262
- "name": "falseTemplateOrTemplateBinding",
2271
+ "name": "eventName",
2272
+ "default": "'default'",
2263
2273
  "type": {
2264
- "text": "WhenTemplate<TSource>"
2265
- },
2266
- "description": "The template or a binding that gets the template to render when the condition is false."
2274
+ "text": "EventName"
2275
+ }
2276
+ },
2277
+ {
2278
+ "name": "keyAttr",
2279
+ "optional": true,
2280
+ "type": {
2281
+ "text": "string"
2282
+ }
2267
2283
  }
2268
2284
  ],
2269
- "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
2285
+ "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2270
2286
  "privacy": "public"
2271
2287
  }
2272
2288
  ],
2273
2289
  "exports": [
2274
2290
  {
2275
2291
  "kind": "js",
2276
- "name": "whenElse",
2292
+ "name": "defaultEventMap",
2277
2293
  "declaration": {
2278
- "name": "whenElse",
2279
- "module": "src/directives/when-else/when-else.ts"
2294
+ "name": "defaultEventMap",
2295
+ "module": "src/directives/sync/sync.ts"
2296
+ }
2297
+ },
2298
+ {
2299
+ "kind": "js",
2300
+ "name": "sync",
2301
+ "declaration": {
2302
+ "name": "sync",
2303
+ "module": "src/directives/sync/sync.ts"
2280
2304
  }
2281
2305
  }
2282
2306
  ]
2283
2307
  },
2284
2308
  {
2285
2309
  "kind": "javascript-module",
2286
- "path": "src/directives/sync/index.ts",
2310
+ "path": "src/directives/when-else/index.ts",
2287
2311
  "declarations": [],
2288
2312
  "exports": [
2289
2313
  {
@@ -2291,28 +2315,18 @@
2291
2315
  "name": "*",
2292
2316
  "declaration": {
2293
2317
  "name": "*",
2294
- "package": "./sync"
2318
+ "package": "./when-else"
2295
2319
  }
2296
2320
  }
2297
2321
  ]
2298
2322
  },
2299
2323
  {
2300
2324
  "kind": "javascript-module",
2301
- "path": "src/directives/sync/sync.ts",
2325
+ "path": "src/directives/when-else/when-else.ts",
2302
2326
  "declarations": [
2303
- {
2304
- "kind": "variable",
2305
- "name": "defaultEventMap",
2306
- "type": {
2307
- "text": "Map<string, EventName>"
2308
- },
2309
- "default": "new Map([\n ['FAST-TEXT-AREA', 'input'],\n ['FAST-TEXT-FIELD', 'input'],\n ['FOUNDATION-TEXT-AREA', 'input'],\n ['FOUNDATION-TEXT-FIELD', 'input'],\n ['INPUT', 'input'],\n ['ZERO-TEXT-FIELD', 'input'],\n])",
2310
- "description": "A map that associates specific HTML element tags with their corresponding default event names.",
2311
- "privacy": "public"
2312
- },
2313
2327
  {
2314
2328
  "kind": "function",
2315
- "name": "sync",
2329
+ "name": "whenElse",
2316
2330
  "return": {
2317
2331
  "type": {
2318
2332
  "text": "CaptureType<TSource>"
@@ -2323,49 +2337,35 @@
2323
2337
  "name": "binding",
2324
2338
  "type": {
2325
2339
  "text": "Binding<TSource, TReturn>"
2326
- }
2327
- },
2328
- {
2329
- "name": "conversionType",
2330
- "default": "'string'",
2331
- "type": {
2332
- "text": "ConversionType"
2333
- }
2340
+ },
2341
+ "description": "The condition to test for rendering."
2334
2342
  },
2335
2343
  {
2336
- "name": "eventName",
2337
- "default": "'default'",
2344
+ "name": "trueTemplateOrTemplateBinding",
2338
2345
  "type": {
2339
- "text": "EventName"
2340
- }
2346
+ "text": "WhenTemplate<TSource>"
2347
+ },
2348
+ "description": "The template or a binding that gets the template to render when the condition is true."
2341
2349
  },
2342
2350
  {
2343
- "name": "keyAttr",
2344
- "optional": true,
2351
+ "name": "falseTemplateOrTemplateBinding",
2345
2352
  "type": {
2346
- "text": "string"
2347
- }
2353
+ "text": "WhenTemplate<TSource>"
2354
+ },
2355
+ "description": "The template or a binding that gets the template to render when the condition is false."
2348
2356
  }
2349
2357
  ],
2350
- "description": "Creates a synchronization directive that binds a data source to an HTML element,",
2358
+ "description": "Directive that allows supplying an \"else\" template to the traditional https://www.fast.design/docs/api/fast-element.when/#when-function directive",
2351
2359
  "privacy": "public"
2352
2360
  }
2353
2361
  ],
2354
2362
  "exports": [
2355
2363
  {
2356
2364
  "kind": "js",
2357
- "name": "defaultEventMap",
2358
- "declaration": {
2359
- "name": "defaultEventMap",
2360
- "module": "src/directives/sync/sync.ts"
2361
- }
2362
- },
2363
- {
2364
- "kind": "js",
2365
- "name": "sync",
2365
+ "name": "whenElse",
2366
2366
  "declaration": {
2367
- "name": "sync",
2368
- "module": "src/directives/sync/sync.ts"
2367
+ "name": "whenElse",
2368
+ "module": "src/directives/when-else/when-else.ts"
2369
2369
  }
2370
2370
  }
2371
2371
  ]
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@genesislcap/foundation-utils",
3
3
  "description": "Genesis Foundation Utils",
4
- "version": "14.204.0",
4
+ "version": "14.204.1",
5
5
  "sideEffects": false,
6
6
  "license": "SEE LICENSE IN license.txt",
7
7
  "main": "dist/esm/index.js",
@@ -27,17 +27,17 @@
27
27
  }
28
28
  },
29
29
  "devDependencies": {
30
- "@genesislcap/foundation-testing": "14.204.0",
31
- "@genesislcap/genx": "14.204.0",
32
- "@genesislcap/rollup-builder": "14.204.0",
33
- "@genesislcap/ts-builder": "14.204.0",
34
- "@genesislcap/uvu-playwright-builder": "14.204.0",
35
- "@genesislcap/vite-builder": "14.204.0",
36
- "@genesislcap/webpack-builder": "14.204.0",
30
+ "@genesislcap/foundation-testing": "14.204.1",
31
+ "@genesislcap/genx": "14.204.1",
32
+ "@genesislcap/rollup-builder": "14.204.1",
33
+ "@genesislcap/ts-builder": "14.204.1",
34
+ "@genesislcap/uvu-playwright-builder": "14.204.1",
35
+ "@genesislcap/vite-builder": "14.204.1",
36
+ "@genesislcap/webpack-builder": "14.204.1",
37
37
  "rimraf": "^5.0.0"
38
38
  },
39
39
  "dependencies": {
40
- "@genesislcap/foundation-logger": "14.204.0",
40
+ "@genesislcap/foundation-logger": "14.204.1",
41
41
  "@microsoft/fast-components": "^2.30.6",
42
42
  "@microsoft/fast-element": "^1.12.0",
43
43
  "@microsoft/fast-foundation": "^2.49.4",
@@ -55,5 +55,5 @@
55
55
  "access": "public"
56
56
  },
57
57
  "customElements": "dist/custom-elements.json",
58
- "gitHead": "8394ff8dd41ae065ab90d2afb7ca789c3aad0f9e"
58
+ "gitHead": "1f3614a366ea8d325af73488ce8ce713402538e4"
59
59
  }