@genesislcap/foundation-utils 15.6.0 → 15.6.2

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 (2) hide show
  1. package/dist/custom-elements.json +638 -638
  2. package/package.json +11 -11
@@ -211,209 +211,48 @@
211
211
  },
212
212
  {
213
213
  "kind": "javascript-module",
214
- "path": "src/design-system/design-system.ts",
215
- "declarations": [
216
- {
217
- "kind": "function",
218
- "name": "assureDesignSystem",
219
- "return": {
220
- "type": {
221
- "text": "DesignSystemModule"
222
- }
223
- },
224
- "parameters": [
225
- {
226
- "name": "module",
227
- "type": {
228
- "text": "DesignSystemModule"
229
- }
230
- }
231
- ],
232
- "description": "assureDesignSystem.",
233
- "privacy": "public"
234
- },
235
- {
236
- "kind": "function",
237
- "name": "getCurrentDesignSystem",
238
- "return": {
239
- "type": {
240
- "text": ""
241
- }
242
- },
243
- "parameters": [
244
- {
245
- "name": "element",
246
- "type": {
247
- "text": "HTMLElement"
248
- },
249
- "description": "The starting HTML element"
250
- },
251
- {
252
- "name": "fallbackPrefix",
253
- "type": {
254
- "text": "string"
255
- },
256
- "description": "The prefix to fallback to if the provider is not available"
257
- }
258
- ],
259
- "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
260
- "privacy": "public"
261
- },
262
- {
263
- "kind": "function",
264
- "name": "getCurrentDesignSystemPrefix",
265
- "return": {
266
- "type": {
267
- "text": ""
268
- }
269
- },
270
- "parameters": [
271
- {
272
- "name": "element",
273
- "type": {
274
- "text": "HTMLElement"
275
- },
276
- "description": "The starting HTML element"
277
- },
278
- {
279
- "name": "fallbackPrefix",
280
- "type": {
281
- "text": "string"
282
- },
283
- "description": "The prefix to fallback to if the provider is not available"
284
- }
285
- ],
286
- "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
287
- "privacy": "public"
288
- }
289
- ],
214
+ "path": "src/converters/index.ts",
215
+ "declarations": [],
290
216
  "exports": [
291
217
  {
292
218
  "kind": "js",
293
- "name": "assureDesignSystem",
294
- "declaration": {
295
- "name": "assureDesignSystem",
296
- "module": "src/design-system/design-system.ts"
297
- }
298
- },
299
- {
300
- "kind": "js",
301
- "name": "getCurrentDesignSystem",
302
- "declaration": {
303
- "name": "getCurrentDesignSystem",
304
- "module": "src/design-system/design-system.ts"
305
- }
306
- },
307
- {
308
- "kind": "js",
309
- "name": "getCurrentDesignSystemPrefix",
219
+ "name": "*",
310
220
  "declaration": {
311
- "name": "getCurrentDesignSystemPrefix",
312
- "module": "src/design-system/design-system.ts"
221
+ "name": "*",
222
+ "package": "./string-array-converter"
313
223
  }
314
224
  }
315
225
  ]
316
226
  },
317
227
  {
318
228
  "kind": "javascript-module",
319
- "path": "src/design-system/editable-elements.ts",
229
+ "path": "src/converters/string-array-converter.ts",
320
230
  "declarations": [
321
231
  {
322
232
  "kind": "variable",
323
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
324
- "type": {
325
- "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
326
- },
327
- "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
328
- "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
329
- },
330
- {
331
- "kind": "variable",
332
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
233
+ "name": "stringArrayConverter",
333
234
  "type": {
334
- "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
335
- },
336
- "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
337
- "description": "Design-system specific editable host selectors."
338
- },
339
- {
340
- "kind": "function",
341
- "name": "buildEditableElementSelector",
342
- "return": {
343
- "type": {
344
- "text": "string"
345
- }
235
+ "text": "ValueConverter"
346
236
  },
347
- "parameters": [
348
- {
349
- "name": "designSystems",
350
- "type": {
351
- "text": "readonly EditableDesignSystemPrefix[]"
352
- }
353
- },
354
- {
355
- "name": "customEditableSelectors",
356
- "default": "[]",
357
- "type": {
358
- "text": "readonly string[]"
359
- }
360
- }
361
- ]
237
+ "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
238
+ "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
239
+ "privacy": "public"
362
240
  }
363
241
  ],
364
242
  "exports": [
365
243
  {
366
244
  "kind": "js",
367
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
368
- "declaration": {
369
- "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
370
- "module": "src/design-system/editable-elements.ts"
371
- }
372
- },
373
- {
374
- "kind": "js",
375
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
376
- "declaration": {
377
- "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
378
- "module": "src/design-system/editable-elements.ts"
379
- }
380
- },
381
- {
382
- "kind": "js",
383
- "name": "buildEditableElementSelector",
384
- "declaration": {
385
- "name": "buildEditableElementSelector",
386
- "module": "src/design-system/editable-elements.ts"
387
- }
388
- }
389
- ]
390
- },
391
- {
392
- "kind": "javascript-module",
393
- "path": "src/design-system/index.ts",
394
- "declarations": [],
395
- "exports": [
396
- {
397
- "kind": "js",
398
- "name": "*",
399
- "declaration": {
400
- "name": "*",
401
- "package": "./design-system"
402
- }
403
- },
404
- {
405
- "kind": "js",
406
- "name": "*",
245
+ "name": "stringArrayConverter",
407
246
  "declaration": {
408
- "name": "*",
409
- "package": "./editable-elements"
247
+ "name": "stringArrayConverter",
248
+ "module": "src/converters/string-array-converter.ts"
410
249
  }
411
250
  }
412
251
  ]
413
252
  },
414
253
  {
415
254
  "kind": "javascript-module",
416
- "path": "src/directives/index.ts",
255
+ "path": "src/decorators/index.ts",
417
256
  "declarations": [],
418
257
  "exports": [
419
258
  {
@@ -421,256 +260,709 @@
421
260
  "name": "*",
422
261
  "declaration": {
423
262
  "name": "*",
424
- "package": "./sync"
425
- }
426
- },
427
- {
428
- "kind": "js",
429
- "name": "*",
430
- "declaration": {
431
- "name": "*",
432
- "package": "./when-else"
263
+ "package": "./renderOnChange"
433
264
  }
434
265
  }
435
266
  ]
436
267
  },
437
268
  {
438
269
  "kind": "javascript-module",
439
- "path": "src/encoding/index.ts",
440
- "declarations": [],
441
- "exports": [
270
+ "path": "src/decorators/renderOnChange.ts",
271
+ "declarations": [
442
272
  {
443
- "kind": "js",
444
- "name": "*",
445
- "declaration": {
446
- "name": "*",
447
- "package": "./base64"
448
- }
273
+ "kind": "function",
274
+ "name": "renderOnChange",
275
+ "parameters": [
276
+ {
277
+ "name": "target",
278
+ "type": {
279
+ "text": "FASTElement & { render(): void }"
280
+ },
281
+ "description": "The target to define the property change handler on."
282
+ },
283
+ {
284
+ "name": "name",
285
+ "type": {
286
+ "text": "string"
287
+ },
288
+ "description": "The property name."
289
+ }
290
+ ],
291
+ "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
292
+ "privacy": "public"
449
293
  }
450
- ]
451
- },
452
- {
453
- "kind": "javascript-module",
454
- "path": "src/env/index.ts",
455
- "declarations": [],
294
+ ],
456
295
  "exports": [
457
296
  {
458
297
  "kind": "js",
459
- "name": "*",
460
- "declaration": {
461
- "name": "*",
462
- "package": "./is-dev"
463
- }
464
- },
465
- {
466
- "kind": "js",
467
- "name": "*",
298
+ "name": "renderOnChange",
468
299
  "declaration": {
469
- "name": "*",
470
- "package": "./variables"
300
+ "name": "renderOnChange",
301
+ "module": "src/decorators/renderOnChange.ts"
471
302
  }
472
303
  }
473
304
  ]
474
305
  },
475
306
  {
476
307
  "kind": "javascript-module",
477
- "path": "src/env/is-dev.ts",
308
+ "path": "src/data/inMemoryDatabase.ts",
478
309
  "declarations": [
479
310
  {
480
- "kind": "function",
481
- "name": "isDev",
482
- "description": "Determines if the current environment is a development environment.",
483
- "privacy": "public"
311
+ "kind": "class",
312
+ "description": "An in memory database of specific DatabaseRecord types.",
313
+ "name": "InMemoryDatabase",
314
+ "members": [
315
+ {
316
+ "kind": "field",
317
+ "name": "isWorking",
318
+ "type": {
319
+ "text": "boolean"
320
+ },
321
+ "privacy": "public",
322
+ "default": "false"
323
+ },
324
+ {
325
+ "kind": "field",
326
+ "name": "records",
327
+ "type": {
328
+ "text": "Record<string, T>"
329
+ },
330
+ "privacy": "private",
331
+ "default": "{}"
332
+ },
333
+ {
334
+ "kind": "field",
335
+ "name": "beforeUpdateListeners",
336
+ "privacy": "private"
337
+ },
338
+ {
339
+ "kind": "field",
340
+ "name": "afterUpdateListeners",
341
+ "privacy": "private"
342
+ },
343
+ {
344
+ "kind": "method",
345
+ "name": "create",
346
+ "privacy": "public",
347
+ "return": {
348
+ "type": {
349
+ "text": "Promise<DatabaseAccessResult.Create<T>>"
350
+ }
351
+ },
352
+ "parameters": [
353
+ {
354
+ "name": "newValue",
355
+ "type": {
356
+ "text": "Omit<T, 'id'>"
357
+ }
358
+ }
359
+ ]
360
+ },
361
+ {
362
+ "kind": "method",
363
+ "name": "read",
364
+ "privacy": "public",
365
+ "return": {
366
+ "type": {
367
+ "text": "Promise<DatabaseAccessResult.Read<T>>"
368
+ }
369
+ },
370
+ "parameters": [
371
+ {
372
+ "name": "id",
373
+ "type": {
374
+ "text": "string"
375
+ }
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "kind": "method",
381
+ "name": "update",
382
+ "privacy": "public",
383
+ "return": {
384
+ "type": {
385
+ "text": "Promise<DatabaseAccessResult.Update<T>>"
386
+ }
387
+ },
388
+ "parameters": [
389
+ {
390
+ "name": "id",
391
+ "type": {
392
+ "text": "string"
393
+ }
394
+ },
395
+ {
396
+ "name": "newValue",
397
+ "type": {
398
+ "text": "Omit<Partial<T>, 'id'>"
399
+ }
400
+ }
401
+ ]
402
+ },
403
+ {
404
+ "kind": "method",
405
+ "name": "delete",
406
+ "privacy": "public",
407
+ "return": {
408
+ "type": {
409
+ "text": "Promise<DatabaseAccessResult.Delete>"
410
+ }
411
+ },
412
+ "parameters": [
413
+ {
414
+ "name": "id",
415
+ "type": {
416
+ "text": "string"
417
+ }
418
+ }
419
+ ]
420
+ },
421
+ {
422
+ "kind": "method",
423
+ "name": "visit",
424
+ "privacy": "public",
425
+ "return": {
426
+ "type": {
427
+ "text": "Promise<void>"
428
+ }
429
+ },
430
+ "parameters": [
431
+ {
432
+ "name": "visitor",
433
+ "type": {
434
+ "text": "(record: T) => void"
435
+ }
436
+ }
437
+ ]
438
+ },
439
+ {
440
+ "kind": "method",
441
+ "name": "onBeforeUpdate",
442
+ "privacy": "public",
443
+ "return": {
444
+ "type": {
445
+ "text": "() => void"
446
+ }
447
+ },
448
+ "parameters": [
449
+ {
450
+ "name": "listener",
451
+ "type": {
452
+ "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
453
+ }
454
+ }
455
+ ]
456
+ },
457
+ {
458
+ "kind": "method",
459
+ "name": "onAfterUpdate",
460
+ "privacy": "public",
461
+ "return": {
462
+ "type": {
463
+ "text": "() => void"
464
+ }
465
+ },
466
+ "parameters": [
467
+ {
468
+ "name": "listener",
469
+ "type": {
470
+ "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
471
+ }
472
+ }
473
+ ]
474
+ }
475
+ ]
484
476
  }
485
477
  ],
486
478
  "exports": [
487
479
  {
488
480
  "kind": "js",
489
- "name": "isDev",
481
+ "name": "InMemoryDatabase",
490
482
  "declaration": {
491
- "name": "isDev",
492
- "module": "src/env/is-dev.ts"
483
+ "name": "InMemoryDatabase",
484
+ "module": "src/data/inMemoryDatabase.ts"
493
485
  }
494
486
  }
495
487
  ]
496
488
  },
497
489
  {
498
490
  "kind": "javascript-module",
499
- "path": "src/env/variables.ts",
500
- "declarations": [
491
+ "path": "src/data/index.ts",
492
+ "declarations": [],
493
+ "exports": [
501
494
  {
502
- "kind": "variable",
503
- "name": "BUILDER",
504
- "type": {
505
- "text": "string"
495
+ "kind": "js",
496
+ "name": "*",
497
+ "declaration": {
498
+ "name": "*",
499
+ "package": "./inMemoryDatabase"
506
500
  }
507
- },
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "kind": "javascript-module",
506
+ "path": "src/design-system/design-system.ts",
507
+ "declarations": [
508
508
  {
509
- "kind": "variable",
510
- "name": "_BUILDER",
511
- "type": {
512
- "text": "string"
509
+ "kind": "function",
510
+ "name": "assureDesignSystem",
511
+ "return": {
512
+ "type": {
513
+ "text": "DesignSystemModule"
514
+ }
513
515
  },
514
- "default": "'webpack'",
515
- "description": "The builder aka file bundler.",
516
+ "parameters": [
517
+ {
518
+ "name": "module",
519
+ "type": {
520
+ "text": "DesignSystemModule"
521
+ }
522
+ }
523
+ ],
524
+ "description": "assureDesignSystem.",
516
525
  "privacy": "public"
517
526
  },
518
527
  {
519
- "kind": "variable",
520
- "name": "PUBLIC_PATH",
521
- "type": {
522
- "text": "string"
523
- }
524
- },
525
- {
526
- "kind": "variable",
527
- "name": "_PUBLIC_PATH",
528
- "type": {
529
- "text": "string"
528
+ "kind": "function",
529
+ "name": "getCurrentDesignSystem",
530
+ "return": {
531
+ "type": {
532
+ "text": ""
533
+ }
530
534
  },
531
- "default": "'/'",
532
- "description": "The public path.",
535
+ "parameters": [
536
+ {
537
+ "name": "element",
538
+ "type": {
539
+ "text": "HTMLElement"
540
+ },
541
+ "description": "The starting HTML element"
542
+ },
543
+ {
544
+ "name": "fallbackPrefix",
545
+ "type": {
546
+ "text": "string"
547
+ },
548
+ "description": "The prefix to fallback to if the provider is not available"
549
+ }
550
+ ],
551
+ "description": "Get the current design system provider element and prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
533
552
  "privacy": "public"
534
553
  },
535
554
  {
536
- "kind": "variable",
537
- "name": "SOCKET_EXT",
538
- "type": {
539
- "text": "string"
540
- }
541
- },
542
- {
543
- "kind": "variable",
544
- "name": "_SOCKET_EXT",
545
- "type": {
546
- "text": "string"
555
+ "kind": "function",
556
+ "name": "getCurrentDesignSystemPrefix",
557
+ "return": {
558
+ "type": {
559
+ "text": ""
560
+ }
547
561
  },
548
- "default": "'gwf'",
549
- "description": "The sub-path used for WebSocket connections when API_HOST is not set",
562
+ "parameters": [
563
+ {
564
+ "name": "element",
565
+ "type": {
566
+ "text": "HTMLElement"
567
+ },
568
+ "description": "The starting HTML element"
569
+ },
570
+ {
571
+ "name": "fallbackPrefix",
572
+ "type": {
573
+ "text": "string"
574
+ },
575
+ "description": "The prefix to fallback to if the provider is not available"
576
+ }
577
+ ],
578
+ "description": "Get the current design system prefix by checking available providers.\nIf no provider is found, falls back to the provided prefix.",
550
579
  "privacy": "public"
551
- },
580
+ }
581
+ ],
582
+ "exports": [
552
583
  {
553
- "kind": "variable",
554
- "name": "FORCE_HTTP",
555
- "type": {
556
- "text": "string"
584
+ "kind": "js",
585
+ "name": "assureDesignSystem",
586
+ "declaration": {
587
+ "name": "assureDesignSystem",
588
+ "module": "src/design-system/design-system.ts"
557
589
  }
558
590
  },
559
591
  {
560
- "kind": "variable",
561
- "name": "_FORCE_HTTP",
562
- "type": {
563
- "text": "string"
564
- },
565
- "description": "The path to a JSON config file for the HTTP mode.",
566
- "privacy": "public"
592
+ "kind": "js",
593
+ "name": "getCurrentDesignSystem",
594
+ "declaration": {
595
+ "name": "getCurrentDesignSystem",
596
+ "module": "src/design-system/design-system.ts"
597
+ }
567
598
  },
568
599
  {
569
- "kind": "variable",
570
- "name": "FORCE_HTTP_REQREP",
571
- "type": {
572
- "text": "string"
600
+ "kind": "js",
601
+ "name": "getCurrentDesignSystemPrefix",
602
+ "declaration": {
603
+ "name": "getCurrentDesignSystemPrefix",
604
+ "module": "src/design-system/design-system.ts"
573
605
  }
574
- },
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ "kind": "javascript-module",
611
+ "path": "src/design-system/editable-elements.ts",
612
+ "declarations": [
575
613
  {
576
614
  "kind": "variable",
577
- "name": "_FORCE_HTTP_REQREP",
615
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
578
616
  "type": {
579
- "text": "string"
617
+ "text": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]"
580
618
  },
581
- "description": "When `'true'`, request/reply and event traffic (`request`, `commitEvent`, metadata, schema and\nresources lookups) is sent over HTTP even while the primary connection is a WebSocket.\nStreaming (`stream`/`snapshot`) stays on the socket.",
582
- "privacy": "public"
583
- },
584
- {
585
- "kind": "variable",
586
- "name": "GENESIS_SOCKET_URL",
587
- "default": "`${location.protocol.replace('http', 'ws')}//${location.host}${_PUBLIC_PATH}/${_SOCKET_EXT}/`",
588
- "description": "Genesis Socket URL",
589
- "privacy": "public"
619
+ "default": "[\n ...NATIVE_EDITABLE_ELEMENT_SELECTORS,\n ...CONTENT_EDITABLE_SELECTORS,\n ...ARIA_EDITABLE_ROLE_SELECTORS,\n]",
620
+ "description": "Base selectors treated as editable context regardless of design system.\nIncludes native controls, contenteditable, and ARIA-editable roles."
590
621
  },
591
622
  {
592
623
  "kind": "variable",
593
- "name": "API_HOST",
624
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
594
625
  "type": {
595
- "text": "string"
596
- }
626
+ "text": "Record<\n EditableDesignSystemPrefix,\n readonly string[]\n>"
627
+ },
628
+ "default": "{\n rapid: buildDesignSystemEditableSelectors('rapid'),\n zero: buildDesignSystemEditableSelectors('zero'),\n}",
629
+ "description": "Design-system specific editable host selectors."
597
630
  },
598
631
  {
599
- "kind": "variable",
600
- "name": "_API_HOST",
601
- "type": {
602
- "text": "string"
632
+ "kind": "function",
633
+ "name": "buildEditableElementSelector",
634
+ "return": {
635
+ "type": {
636
+ "text": "string"
637
+ }
603
638
  },
604
- "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
605
- "description": "The Genesis Server URL (WebSocket or HTTP).",
606
- "privacy": "public"
607
- },
639
+ "parameters": [
640
+ {
641
+ "name": "designSystems",
642
+ "type": {
643
+ "text": "readonly EditableDesignSystemPrefix[]"
644
+ }
645
+ },
646
+ {
647
+ "name": "customEditableSelectors",
648
+ "default": "[]",
649
+ "type": {
650
+ "text": "readonly string[]"
651
+ }
652
+ }
653
+ ]
654
+ }
655
+ ],
656
+ "exports": [
608
657
  {
609
- "kind": "variable",
610
- "name": "HTTP_CONFIG",
611
- "type": {
612
- "text": "string"
658
+ "kind": "js",
659
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
660
+ "declaration": {
661
+ "name": "BASE_EDITABLE_ELEMENT_SELECTORS",
662
+ "module": "src/design-system/editable-elements.ts"
613
663
  }
614
664
  },
615
665
  {
616
- "kind": "variable",
617
- "name": "_HTTP_CONFIG",
618
- "type": {
619
- "text": "string"
620
- },
621
- "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
622
- "privacy": "public"
666
+ "kind": "js",
667
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
668
+ "declaration": {
669
+ "name": "DESIGN_SYSTEM_EDITABLE_ELEMENT_SELECTORS",
670
+ "module": "src/design-system/editable-elements.ts"
671
+ }
623
672
  },
624
673
  {
625
- "kind": "variable",
626
- "name": "DEFAULT_ORGANISATION",
627
- "type": {
628
- "text": "string"
674
+ "kind": "js",
675
+ "name": "buildEditableElementSelector",
676
+ "declaration": {
677
+ "name": "buildEditableElementSelector",
678
+ "module": "src/design-system/editable-elements.ts"
629
679
  }
630
- },
680
+ }
681
+ ]
682
+ },
683
+ {
684
+ "kind": "javascript-module",
685
+ "path": "src/design-system/index.ts",
686
+ "declarations": [],
687
+ "exports": [
631
688
  {
632
- "kind": "variable",
633
- "name": "_DEFAULT_ORGANISATION",
634
- "type": {
635
- "text": "string"
636
- },
637
- "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-auth`](https://link-to-docs).",
638
- "privacy": "public"
689
+ "kind": "js",
690
+ "name": "*",
691
+ "declaration": {
692
+ "name": "*",
693
+ "package": "./design-system"
694
+ }
639
695
  },
640
696
  {
641
- "kind": "variable",
642
- "name": "DEFAULT_PASSWORD",
643
- "type": {
644
- "text": "string"
697
+ "kind": "js",
698
+ "name": "*",
699
+ "declaration": {
700
+ "name": "*",
701
+ "package": "./editable-elements"
645
702
  }
646
- },
703
+ }
704
+ ]
705
+ },
706
+ {
707
+ "kind": "javascript-module",
708
+ "path": "src/directives/index.ts",
709
+ "declarations": [],
710
+ "exports": [
647
711
  {
648
- "kind": "variable",
649
- "name": "_DEFAULT_PASSWORD",
650
- "type": {
651
- "text": "string"
652
- },
653
- "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-auth`](https://link-to-docs).",
654
- "privacy": "public"
712
+ "kind": "js",
713
+ "name": "*",
714
+ "declaration": {
715
+ "name": "*",
716
+ "package": "./sync"
717
+ }
655
718
  },
656
719
  {
657
- "kind": "variable",
658
- "name": "DEFAULT_USER",
659
- "type": {
660
- "text": "string"
720
+ "kind": "js",
721
+ "name": "*",
722
+ "declaration": {
723
+ "name": "*",
724
+ "package": "./when-else"
661
725
  }
662
- },
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "kind": "javascript-module",
731
+ "path": "src/encoding/index.ts",
732
+ "declarations": [],
733
+ "exports": [
663
734
  {
664
- "kind": "variable",
665
- "name": "_DEFAULT_USER",
666
- "type": {
667
- "text": "string"
668
- },
669
- "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-auth`](https://link-to-docs).",
670
- "privacy": "public"
671
- },
735
+ "kind": "js",
736
+ "name": "*",
737
+ "declaration": {
738
+ "name": "*",
739
+ "package": "./base64"
740
+ }
741
+ }
742
+ ]
743
+ },
744
+ {
745
+ "kind": "javascript-module",
746
+ "path": "src/env/index.ts",
747
+ "declarations": [],
748
+ "exports": [
672
749
  {
673
- "kind": "variable",
750
+ "kind": "js",
751
+ "name": "*",
752
+ "declaration": {
753
+ "name": "*",
754
+ "package": "./is-dev"
755
+ }
756
+ },
757
+ {
758
+ "kind": "js",
759
+ "name": "*",
760
+ "declaration": {
761
+ "name": "*",
762
+ "package": "./variables"
763
+ }
764
+ }
765
+ ]
766
+ },
767
+ {
768
+ "kind": "javascript-module",
769
+ "path": "src/env/is-dev.ts",
770
+ "declarations": [
771
+ {
772
+ "kind": "function",
773
+ "name": "isDev",
774
+ "description": "Determines if the current environment is a development environment.",
775
+ "privacy": "public"
776
+ }
777
+ ],
778
+ "exports": [
779
+ {
780
+ "kind": "js",
781
+ "name": "isDev",
782
+ "declaration": {
783
+ "name": "isDev",
784
+ "module": "src/env/is-dev.ts"
785
+ }
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "kind": "javascript-module",
791
+ "path": "src/env/variables.ts",
792
+ "declarations": [
793
+ {
794
+ "kind": "variable",
795
+ "name": "BUILDER",
796
+ "type": {
797
+ "text": "string"
798
+ }
799
+ },
800
+ {
801
+ "kind": "variable",
802
+ "name": "_BUILDER",
803
+ "type": {
804
+ "text": "string"
805
+ },
806
+ "default": "'webpack'",
807
+ "description": "The builder aka file bundler.",
808
+ "privacy": "public"
809
+ },
810
+ {
811
+ "kind": "variable",
812
+ "name": "PUBLIC_PATH",
813
+ "type": {
814
+ "text": "string"
815
+ }
816
+ },
817
+ {
818
+ "kind": "variable",
819
+ "name": "_PUBLIC_PATH",
820
+ "type": {
821
+ "text": "string"
822
+ },
823
+ "default": "'/'",
824
+ "description": "The public path.",
825
+ "privacy": "public"
826
+ },
827
+ {
828
+ "kind": "variable",
829
+ "name": "SOCKET_EXT",
830
+ "type": {
831
+ "text": "string"
832
+ }
833
+ },
834
+ {
835
+ "kind": "variable",
836
+ "name": "_SOCKET_EXT",
837
+ "type": {
838
+ "text": "string"
839
+ },
840
+ "default": "'gwf'",
841
+ "description": "The sub-path used for WebSocket connections when API_HOST is not set",
842
+ "privacy": "public"
843
+ },
844
+ {
845
+ "kind": "variable",
846
+ "name": "FORCE_HTTP",
847
+ "type": {
848
+ "text": "string"
849
+ }
850
+ },
851
+ {
852
+ "kind": "variable",
853
+ "name": "_FORCE_HTTP",
854
+ "type": {
855
+ "text": "string"
856
+ },
857
+ "description": "The path to a JSON config file for the HTTP mode.",
858
+ "privacy": "public"
859
+ },
860
+ {
861
+ "kind": "variable",
862
+ "name": "FORCE_HTTP_REQREP",
863
+ "type": {
864
+ "text": "string"
865
+ }
866
+ },
867
+ {
868
+ "kind": "variable",
869
+ "name": "_FORCE_HTTP_REQREP",
870
+ "type": {
871
+ "text": "string"
872
+ },
873
+ "description": "When `'true'`, request/reply and event traffic (`request`, `commitEvent`, metadata, schema and\nresources lookups) is sent over HTTP even while the primary connection is a WebSocket.\nStreaming (`stream`/`snapshot`) stays on the socket.",
874
+ "privacy": "public"
875
+ },
876
+ {
877
+ "kind": "variable",
878
+ "name": "GENESIS_SOCKET_URL",
879
+ "default": "`${location.protocol.replace('http', 'ws')}//${location.host}${_PUBLIC_PATH}/${_SOCKET_EXT}/`",
880
+ "description": "Genesis Socket URL",
881
+ "privacy": "public"
882
+ },
883
+ {
884
+ "kind": "variable",
885
+ "name": "API_HOST",
886
+ "type": {
887
+ "text": "string"
888
+ }
889
+ },
890
+ {
891
+ "kind": "variable",
892
+ "name": "_API_HOST",
893
+ "type": {
894
+ "text": "string"
895
+ },
896
+ "default": "`${PROTOCOL}//${location.host}/${_SOCKET_EXT}/`",
897
+ "description": "The Genesis Server URL (WebSocket or HTTP).",
898
+ "privacy": "public"
899
+ },
900
+ {
901
+ "kind": "variable",
902
+ "name": "HTTP_CONFIG",
903
+ "type": {
904
+ "text": "string"
905
+ }
906
+ },
907
+ {
908
+ "kind": "variable",
909
+ "name": "_HTTP_CONFIG",
910
+ "type": {
911
+ "text": "string"
912
+ },
913
+ "description": "Configuration settings for HTTP, used in http connect flow [`genesislcap-foundation-comms.HttpConnectConfig`](https://link-to-docs).",
914
+ "privacy": "public"
915
+ },
916
+ {
917
+ "kind": "variable",
918
+ "name": "DEFAULT_ORGANISATION",
919
+ "type": {
920
+ "text": "string"
921
+ }
922
+ },
923
+ {
924
+ "kind": "variable",
925
+ "name": "_DEFAULT_ORGANISATION",
926
+ "type": {
927
+ "text": "string"
928
+ },
929
+ "description": "The default Organisation value, used in auth/login flow [`genesislcap-foundation-auth`](https://link-to-docs).",
930
+ "privacy": "public"
931
+ },
932
+ {
933
+ "kind": "variable",
934
+ "name": "DEFAULT_PASSWORD",
935
+ "type": {
936
+ "text": "string"
937
+ }
938
+ },
939
+ {
940
+ "kind": "variable",
941
+ "name": "_DEFAULT_PASSWORD",
942
+ "type": {
943
+ "text": "string"
944
+ },
945
+ "description": "The default Password value, used in auth/login flow [`genesislcap-foundation-auth`](https://link-to-docs).",
946
+ "privacy": "public"
947
+ },
948
+ {
949
+ "kind": "variable",
950
+ "name": "DEFAULT_USER",
951
+ "type": {
952
+ "text": "string"
953
+ }
954
+ },
955
+ {
956
+ "kind": "variable",
957
+ "name": "_DEFAULT_USER",
958
+ "type": {
959
+ "text": "string"
960
+ },
961
+ "description": "The default Username value, used in auth/login flow [`genesislcap-foundation-auth`](https://link-to-docs).",
962
+ "privacy": "public"
963
+ },
964
+ {
965
+ "kind": "variable",
674
966
  "name": "LOGIN_URL",
675
967
  "type": {
676
968
  "text": "string"
@@ -948,298 +1240,6 @@
948
1240
  }
949
1241
  ]
950
1242
  },
951
- {
952
- "kind": "javascript-module",
953
- "path": "src/converters/index.ts",
954
- "declarations": [],
955
- "exports": [
956
- {
957
- "kind": "js",
958
- "name": "*",
959
- "declaration": {
960
- "name": "*",
961
- "package": "./string-array-converter"
962
- }
963
- }
964
- ]
965
- },
966
- {
967
- "kind": "javascript-module",
968
- "path": "src/converters/string-array-converter.ts",
969
- "declarations": [
970
- {
971
- "kind": "variable",
972
- "name": "stringArrayConverter",
973
- "type": {
974
- "text": "ValueConverter"
975
- },
976
- "default": "{\n fromView(v: string): string | string[] | undefined {\n if (!v?.trim()) return undefined;\n return v.includes(',') ? v.split(',').map((s) => s.trim()) : v.trim();\n },\n toView(v: string | string[] | undefined): string {\n if (typeof v === 'string') return v;\n if (Array.isArray(v)) return v.join(',');\n return '';\n },\n}",
977
- "description": "A @microsoft/fast-element#ValueConverter that converts between comma-separated string attributes\nand `string | string[]` properties.",
978
- "privacy": "public"
979
- }
980
- ],
981
- "exports": [
982
- {
983
- "kind": "js",
984
- "name": "stringArrayConverter",
985
- "declaration": {
986
- "name": "stringArrayConverter",
987
- "module": "src/converters/string-array-converter.ts"
988
- }
989
- }
990
- ]
991
- },
992
- {
993
- "kind": "javascript-module",
994
- "path": "src/data/inMemoryDatabase.ts",
995
- "declarations": [
996
- {
997
- "kind": "class",
998
- "description": "An in memory database of specific DatabaseRecord types.",
999
- "name": "InMemoryDatabase",
1000
- "members": [
1001
- {
1002
- "kind": "field",
1003
- "name": "isWorking",
1004
- "type": {
1005
- "text": "boolean"
1006
- },
1007
- "privacy": "public",
1008
- "default": "false"
1009
- },
1010
- {
1011
- "kind": "field",
1012
- "name": "records",
1013
- "type": {
1014
- "text": "Record<string, T>"
1015
- },
1016
- "privacy": "private",
1017
- "default": "{}"
1018
- },
1019
- {
1020
- "kind": "field",
1021
- "name": "beforeUpdateListeners",
1022
- "privacy": "private"
1023
- },
1024
- {
1025
- "kind": "field",
1026
- "name": "afterUpdateListeners",
1027
- "privacy": "private"
1028
- },
1029
- {
1030
- "kind": "method",
1031
- "name": "create",
1032
- "privacy": "public",
1033
- "return": {
1034
- "type": {
1035
- "text": "Promise<DatabaseAccessResult.Create<T>>"
1036
- }
1037
- },
1038
- "parameters": [
1039
- {
1040
- "name": "newValue",
1041
- "type": {
1042
- "text": "Omit<T, 'id'>"
1043
- }
1044
- }
1045
- ]
1046
- },
1047
- {
1048
- "kind": "method",
1049
- "name": "read",
1050
- "privacy": "public",
1051
- "return": {
1052
- "type": {
1053
- "text": "Promise<DatabaseAccessResult.Read<T>>"
1054
- }
1055
- },
1056
- "parameters": [
1057
- {
1058
- "name": "id",
1059
- "type": {
1060
- "text": "string"
1061
- }
1062
- }
1063
- ]
1064
- },
1065
- {
1066
- "kind": "method",
1067
- "name": "update",
1068
- "privacy": "public",
1069
- "return": {
1070
- "type": {
1071
- "text": "Promise<DatabaseAccessResult.Update<T>>"
1072
- }
1073
- },
1074
- "parameters": [
1075
- {
1076
- "name": "id",
1077
- "type": {
1078
- "text": "string"
1079
- }
1080
- },
1081
- {
1082
- "name": "newValue",
1083
- "type": {
1084
- "text": "Omit<Partial<T>, 'id'>"
1085
- }
1086
- }
1087
- ]
1088
- },
1089
- {
1090
- "kind": "method",
1091
- "name": "delete",
1092
- "privacy": "public",
1093
- "return": {
1094
- "type": {
1095
- "text": "Promise<DatabaseAccessResult.Delete>"
1096
- }
1097
- },
1098
- "parameters": [
1099
- {
1100
- "name": "id",
1101
- "type": {
1102
- "text": "string"
1103
- }
1104
- }
1105
- ]
1106
- },
1107
- {
1108
- "kind": "method",
1109
- "name": "visit",
1110
- "privacy": "public",
1111
- "return": {
1112
- "type": {
1113
- "text": "Promise<void>"
1114
- }
1115
- },
1116
- "parameters": [
1117
- {
1118
- "name": "visitor",
1119
- "type": {
1120
- "text": "(record: T) => void"
1121
- }
1122
- }
1123
- ]
1124
- },
1125
- {
1126
- "kind": "method",
1127
- "name": "onBeforeUpdate",
1128
- "privacy": "public",
1129
- "return": {
1130
- "type": {
1131
- "text": "() => void"
1132
- }
1133
- },
1134
- "parameters": [
1135
- {
1136
- "name": "listener",
1137
- "type": {
1138
- "text": "Listener<DatabaseEvent.BeforeUpdate<T>>"
1139
- }
1140
- }
1141
- ]
1142
- },
1143
- {
1144
- "kind": "method",
1145
- "name": "onAfterUpdate",
1146
- "privacy": "public",
1147
- "return": {
1148
- "type": {
1149
- "text": "() => void"
1150
- }
1151
- },
1152
- "parameters": [
1153
- {
1154
- "name": "listener",
1155
- "type": {
1156
- "text": "Listener<DatabaseEvent.AfterUpdate<T>>"
1157
- }
1158
- }
1159
- ]
1160
- }
1161
- ]
1162
- }
1163
- ],
1164
- "exports": [
1165
- {
1166
- "kind": "js",
1167
- "name": "InMemoryDatabase",
1168
- "declaration": {
1169
- "name": "InMemoryDatabase",
1170
- "module": "src/data/inMemoryDatabase.ts"
1171
- }
1172
- }
1173
- ]
1174
- },
1175
- {
1176
- "kind": "javascript-module",
1177
- "path": "src/data/index.ts",
1178
- "declarations": [],
1179
- "exports": [
1180
- {
1181
- "kind": "js",
1182
- "name": "*",
1183
- "declaration": {
1184
- "name": "*",
1185
- "package": "./inMemoryDatabase"
1186
- }
1187
- }
1188
- ]
1189
- },
1190
- {
1191
- "kind": "javascript-module",
1192
- "path": "src/decorators/index.ts",
1193
- "declarations": [],
1194
- "exports": [
1195
- {
1196
- "kind": "js",
1197
- "name": "*",
1198
- "declaration": {
1199
- "name": "*",
1200
- "package": "./renderOnChange"
1201
- }
1202
- }
1203
- ]
1204
- },
1205
- {
1206
- "kind": "javascript-module",
1207
- "path": "src/decorators/renderOnChange.ts",
1208
- "declarations": [
1209
- {
1210
- "kind": "function",
1211
- "name": "renderOnChange",
1212
- "parameters": [
1213
- {
1214
- "name": "target",
1215
- "type": {
1216
- "text": "FASTElement & { render(): void }"
1217
- },
1218
- "description": "The target to define the property change handler on."
1219
- },
1220
- {
1221
- "name": "name",
1222
- "type": {
1223
- "text": "string"
1224
- },
1225
- "description": "The property name."
1226
- }
1227
- ],
1228
- "description": "Defines a property changed handler that calls a render() method on the target as an internal observation enhancement.",
1229
- "privacy": "public"
1230
- }
1231
- ],
1232
- "exports": [
1233
- {
1234
- "kind": "js",
1235
- "name": "renderOnChange",
1236
- "declaration": {
1237
- "name": "renderOnChange",
1238
- "module": "src/decorators/renderOnChange.ts"
1239
- }
1240
- }
1241
- ]
1242
- },
1243
1243
  {
1244
1244
  "kind": "javascript-module",
1245
1245
  "path": "src/error/errorMap.ts",