@sebgroup/green-core 2.37.1 → 2.37.3
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/bin/context-cli/index.js +5 -0
- package/bin/context-cli/migrate/engine.d.ts +48 -0
- package/bin/context-cli/migrate/engine.js +111 -0
- package/bin/context-cli/migrate/index.d.ts +15 -0
- package/bin/context-cli/migrate/index.js +232 -0
- package/bin/context-cli/migrate/registry.d.ts +43 -0
- package/bin/context-cli/migrate/registry.js +75 -0
- package/bin/context-cli/migrate/types.d.ts +135 -0
- package/bin/context-cli/migrate/types.js +0 -0
- package/bin/context-cli/migrate/units/0/example.d.ts +52 -0
- package/bin/context-cli/migrate/units/0/example.js +146 -0
- package/components/pagination/pagination.component.js +14 -3
- package/custom-elements.json +969 -707
- package/gds-element.js +1 -1
- package/generated/mcp/components.json +1 -1
- package/generated/mcp/guides/migration.md +5 -0
- package/generated/mcp/icons.json +1 -1
- package/generated/mcp/index.json +1 -1
- package/package.json +1 -1
- package/utils/helpers/custom-element-scoping.js +1 -1
package/custom-elements.json
CHANGED
|
@@ -29408,7 +29408,7 @@
|
|
|
29408
29408
|
"type": {
|
|
29409
29409
|
"text": "Story"
|
|
29410
29410
|
},
|
|
29411
|
-
"default": "{ args: { page: 1, rows: 10, total: 8, options: [5, 10, 20, 50, 100], hideOptions: false, label: '1-8 of 8', }, parameters: { docs: { description: { story: ` When all items fit on a single page (total ≤ rows),
|
|
29411
|
+
"default": "{ args: { page: 1, rows: 10, total: 8, options: [5, 10, 20, 50, 100], hideOptions: false, label: '1-8 of 8', }, parameters: { docs: { description: { story: ` When all items fit on a single page (total ≤ rows), page navigation is hidden. If there are multiple page-size options, the rows-per-page selector remains visible so users can still switch to a smaller page size. `, }, }, }, render: (args) => { const handlePageChange = (e: CustomEvent) => { args.page = e.detail.page document.querySelector('[data-page-one]')!.innerHTML = String(args.page) document .querySelector('[data-pagination-one]')! .setAttribute('page', String(args.page)) } const handleRowsChange = (e: CustomEvent) => { args.rows = e.detail.rows args.page = 1 document.querySelector('[data-rows-one]')!.innerHTML = String(args.rows) document.querySelector('[data-page-one]')!.innerHTML = '1' document.querySelector('[data-pagination-one]')!.setAttribute('page', '1') document .querySelector('[data-pagination-one]')! .setAttribute('rows', String(args.rows)) } return html` <gds-flex flex-direction=\"column\" gap=\"2xl\"> <gds-card variant=\"secondary\" flex-direction=\"row\" gap=\"4xl\"> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Page:</gds-text> <gds-text data-page-one>${args.page}</gds-text> </gds-flex> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Rows:</gds-text> <gds-text data-rows-one>${args.rows}</gds-text> </gds-flex> <gds-flex gap=\"s\"> <gds-text tag=\"strong\">Total:</gds-text> <gds-text>${args.total}</gds-text> </gds-flex> </gds-card> <gds-pagination data-pagination-one page=\"${args.page}\" rows=\"${args.rows}\" .total=${args.total} .options=${args.options} ?hide-options=\"${args.hideOptions}\" label=\"${args.label}\" @gds-page-change=${handlePageChange} @gds-rows-change=${handleRowsChange} ></gds-pagination> </gds-flex> ` }, }"
|
|
29412
29412
|
}
|
|
29413
29413
|
],
|
|
29414
29414
|
"exports": [
|
|
@@ -30379,7 +30379,7 @@
|
|
|
30379
30379
|
},
|
|
30380
30380
|
{
|
|
30381
30381
|
"kind": "javascript-module",
|
|
30382
|
-
"path": "src/components/
|
|
30382
|
+
"path": "src/components/rich-text/index.ts",
|
|
30383
30383
|
"declarations": [],
|
|
30384
30384
|
"exports": [
|
|
30385
30385
|
{
|
|
@@ -30387,98 +30387,216 @@
|
|
|
30387
30387
|
"name": "*",
|
|
30388
30388
|
"declaration": {
|
|
30389
30389
|
"name": "*",
|
|
30390
|
-
"module": "src/components/
|
|
30391
|
-
}
|
|
30392
|
-
},
|
|
30393
|
-
{
|
|
30394
|
-
"kind": "js",
|
|
30395
|
-
"name": "*",
|
|
30396
|
-
"declaration": {
|
|
30397
|
-
"name": "*",
|
|
30398
|
-
"module": "src/components/radio/radio-group/radio-group"
|
|
30390
|
+
"module": "src/components/rich-text/rich-text"
|
|
30399
30391
|
}
|
|
30400
30392
|
}
|
|
30401
30393
|
]
|
|
30402
30394
|
},
|
|
30403
30395
|
{
|
|
30404
30396
|
"kind": "javascript-module",
|
|
30405
|
-
"path": "src/components/
|
|
30397
|
+
"path": "src/components/rich-text/rich-text.component.ts",
|
|
30406
30398
|
"declarations": [
|
|
30407
30399
|
{
|
|
30408
30400
|
"kind": "class",
|
|
30409
|
-
"description": "",
|
|
30410
|
-
"name": "
|
|
30401
|
+
"description": "`gds-rich-text` can be used to wrap generic HTML content and apply typography styles.\n\nThe wrapped content will render inside the shadowRoot of the `gds-rich-text` element, thereby applying the\ndefault typography styles and standard element styles defined in the Green Design System.",
|
|
30402
|
+
"name": "GdsRichText",
|
|
30411
30403
|
"members": [
|
|
30412
30404
|
{
|
|
30413
30405
|
"kind": "field",
|
|
30414
|
-
"name": "
|
|
30406
|
+
"name": "captureMode",
|
|
30415
30407
|
"type": {
|
|
30416
|
-
"text": "
|
|
30408
|
+
"text": "'clone' | 'move'"
|
|
30417
30409
|
},
|
|
30418
|
-
"default": "''",
|
|
30419
|
-
"description": "
|
|
30420
|
-
"attribute": "
|
|
30410
|
+
"default": "'clone'",
|
|
30411
|
+
"description": "Capture mode for the content.\n\n- `clone` (default): Clones the content to the shadowRoot.\\\n This is the default and most compatible behaviour, since it leaves the original DOM untouched.\n the downside is that events added through `addEventListener` will not be retained in the cloned DOM.\n\n- `move`: Moves the content to the inner shadowRoot.\\\n This mode moves the full original sub-tree into the shadowRoot, leaving everything, including event\n listeners, intact.\n This mode is less compatible with some libraries that rely on the original DOM structure, for example React",
|
|
30412
|
+
"attribute": "captureMode"
|
|
30413
|
+
},
|
|
30414
|
+
{
|
|
30415
|
+
"kind": "method",
|
|
30416
|
+
"name": "querySelectorAll",
|
|
30417
|
+
"return": {
|
|
30418
|
+
"type": {
|
|
30419
|
+
"text": "NodeList"
|
|
30420
|
+
}
|
|
30421
|
+
},
|
|
30422
|
+
"parameters": [
|
|
30423
|
+
{
|
|
30424
|
+
"name": "selector",
|
|
30425
|
+
"type": {
|
|
30426
|
+
"text": "string"
|
|
30427
|
+
}
|
|
30428
|
+
}
|
|
30429
|
+
],
|
|
30430
|
+
"description": "Forwards the selector to the corresponding function on the inner shadowRoot."
|
|
30431
|
+
},
|
|
30432
|
+
{
|
|
30433
|
+
"kind": "method",
|
|
30434
|
+
"name": "querySelector",
|
|
30435
|
+
"return": {
|
|
30436
|
+
"type": {
|
|
30437
|
+
"text": "Element | null"
|
|
30438
|
+
}
|
|
30439
|
+
},
|
|
30440
|
+
"parameters": [
|
|
30441
|
+
{
|
|
30442
|
+
"name": "selector",
|
|
30443
|
+
"type": {
|
|
30444
|
+
"text": "string"
|
|
30445
|
+
}
|
|
30446
|
+
}
|
|
30447
|
+
],
|
|
30448
|
+
"description": "Forwards the selector to the corresponding function on the inner shadowRoot."
|
|
30421
30449
|
},
|
|
30422
30450
|
{
|
|
30423
30451
|
"kind": "field",
|
|
30424
|
-
"name": "
|
|
30452
|
+
"name": "innerHTML",
|
|
30425
30453
|
"type": {
|
|
30426
30454
|
"text": "string"
|
|
30427
30455
|
},
|
|
30428
|
-
"
|
|
30429
|
-
"description": "The supporting text displayed below the label.\nThis text provides additional context or information to the user.",
|
|
30430
|
-
"attribute": "supporting-text"
|
|
30456
|
+
"description": "Forwards innerHTML from the inner shadowRoot."
|
|
30431
30457
|
},
|
|
30432
30458
|
{
|
|
30433
30459
|
"kind": "field",
|
|
30434
|
-
"name": "
|
|
30460
|
+
"name": "'align-self'",
|
|
30435
30461
|
"type": {
|
|
30436
|
-
"text": "string |
|
|
30462
|
+
"text": "string | undefined"
|
|
30437
30463
|
},
|
|
30438
|
-
"
|
|
30439
|
-
"
|
|
30440
|
-
"
|
|
30464
|
+
"description": "Style Expression Property that controls the `align-self` property.\nSupports all valid CSS `align-self` values.",
|
|
30465
|
+
"category": "Declarative layout / Style expression properties",
|
|
30466
|
+
"inheritedFrom": {
|
|
30467
|
+
"name": "withLayoutChildProps",
|
|
30468
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30469
|
+
}
|
|
30441
30470
|
},
|
|
30442
30471
|
{
|
|
30443
30472
|
"kind": "field",
|
|
30444
|
-
"name": "
|
|
30473
|
+
"name": "'justify-self'",
|
|
30445
30474
|
"type": {
|
|
30446
|
-
"text": "
|
|
30475
|
+
"text": "string | undefined"
|
|
30447
30476
|
},
|
|
30448
|
-
"
|
|
30449
|
-
"
|
|
30450
|
-
"
|
|
30451
|
-
|
|
30477
|
+
"description": "Style Expression Property that controls the `justify-self` property.\nSupports all valid CSS `justify-self` values.",
|
|
30478
|
+
"category": "Declarative layout / Style expression properties",
|
|
30479
|
+
"inheritedFrom": {
|
|
30480
|
+
"name": "withLayoutChildProps",
|
|
30481
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30482
|
+
}
|
|
30452
30483
|
},
|
|
30453
30484
|
{
|
|
30454
30485
|
"kind": "field",
|
|
30455
|
-
"name": "
|
|
30486
|
+
"name": "'place-self'",
|
|
30456
30487
|
"type": {
|
|
30457
|
-
"text": "
|
|
30488
|
+
"text": "string | undefined"
|
|
30458
30489
|
},
|
|
30459
|
-
"
|
|
30460
|
-
"
|
|
30461
|
-
"
|
|
30462
|
-
|
|
30490
|
+
"description": "Style Expression Property that controls the `place-self` property.\nSupports all valid CSS `place-self` values.",
|
|
30491
|
+
"category": "Declarative layout / Style expression properties",
|
|
30492
|
+
"inheritedFrom": {
|
|
30493
|
+
"name": "withLayoutChildProps",
|
|
30494
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30495
|
+
}
|
|
30463
30496
|
},
|
|
30464
30497
|
{
|
|
30465
30498
|
"kind": "field",
|
|
30466
|
-
"name": "
|
|
30499
|
+
"name": "'grid-column'",
|
|
30467
30500
|
"type": {
|
|
30468
|
-
"text": "
|
|
30501
|
+
"text": "string | undefined"
|
|
30469
30502
|
},
|
|
30470
|
-
"
|
|
30471
|
-
"
|
|
30472
|
-
"
|
|
30503
|
+
"description": "Style Expression Property that controls the `grid-column` property.\nSupports all valid CSS grid-column values.\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column",
|
|
30504
|
+
"category": "Declarative layout / Style expression properties",
|
|
30505
|
+
"inheritedFrom": {
|
|
30506
|
+
"name": "withLayoutChildProps",
|
|
30507
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30508
|
+
}
|
|
30473
30509
|
},
|
|
30474
30510
|
{
|
|
30475
30511
|
"kind": "field",
|
|
30476
|
-
"name": "
|
|
30512
|
+
"name": "'grid-row'",
|
|
30477
30513
|
"type": {
|
|
30478
30514
|
"text": "string | undefined"
|
|
30479
30515
|
},
|
|
30480
|
-
"description": "
|
|
30481
|
-
"
|
|
30516
|
+
"description": "Style Expression Property that controls the `grid-row` property.\nSupports all valid CSS `grid-row` values.",
|
|
30517
|
+
"category": "Declarative layout / Style expression properties",
|
|
30518
|
+
"inheritedFrom": {
|
|
30519
|
+
"name": "withLayoutChildProps",
|
|
30520
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30521
|
+
}
|
|
30522
|
+
},
|
|
30523
|
+
{
|
|
30524
|
+
"kind": "field",
|
|
30525
|
+
"name": "'grid-area'",
|
|
30526
|
+
"type": {
|
|
30527
|
+
"text": "string | undefined"
|
|
30528
|
+
},
|
|
30529
|
+
"description": "Style Expression Property that controls the `grid-area` property.\nSupports all valid CSS `grid-area` values.",
|
|
30530
|
+
"category": "Declarative layout / Style expression properties",
|
|
30531
|
+
"inheritedFrom": {
|
|
30532
|
+
"name": "withLayoutChildProps",
|
|
30533
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30534
|
+
}
|
|
30535
|
+
},
|
|
30536
|
+
{
|
|
30537
|
+
"kind": "field",
|
|
30538
|
+
"name": "flex",
|
|
30539
|
+
"type": {
|
|
30540
|
+
"text": "string | undefined"
|
|
30541
|
+
},
|
|
30542
|
+
"description": "Style Expression Property that controls the `flex` property.\nSupports all valid CSS `flex` values.",
|
|
30543
|
+
"category": "Declarative layout / Style expression properties",
|
|
30544
|
+
"inheritedFrom": {
|
|
30545
|
+
"name": "withLayoutChildProps",
|
|
30546
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30547
|
+
}
|
|
30548
|
+
},
|
|
30549
|
+
{
|
|
30550
|
+
"kind": "field",
|
|
30551
|
+
"name": "order",
|
|
30552
|
+
"type": {
|
|
30553
|
+
"text": "string | undefined"
|
|
30554
|
+
},
|
|
30555
|
+
"description": "Style Expression Property that controls the `order` property.\nSupports all valid CSS `order` values.",
|
|
30556
|
+
"category": "Declarative layout / Style expression properties",
|
|
30557
|
+
"inheritedFrom": {
|
|
30558
|
+
"name": "withLayoutChildProps",
|
|
30559
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30560
|
+
}
|
|
30561
|
+
},
|
|
30562
|
+
{
|
|
30563
|
+
"kind": "field",
|
|
30564
|
+
"name": "margin",
|
|
30565
|
+
"type": {
|
|
30566
|
+
"text": "string | undefined"
|
|
30567
|
+
},
|
|
30568
|
+
"description": "Style Expression Property that controls the `margin` property.\nOnly accepts space tokens.",
|
|
30569
|
+
"category": "Declarative layout / Style expression properties",
|
|
30570
|
+
"inheritedFrom": {
|
|
30571
|
+
"name": "withMarginProps",
|
|
30572
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30573
|
+
}
|
|
30574
|
+
},
|
|
30575
|
+
{
|
|
30576
|
+
"kind": "field",
|
|
30577
|
+
"name": "'margin-inline'",
|
|
30578
|
+
"type": {
|
|
30579
|
+
"text": "string | undefined"
|
|
30580
|
+
},
|
|
30581
|
+
"description": "Style Expression Property that controls the `margin-inline` property.\nOnly accepts space tokens.",
|
|
30582
|
+
"category": "Declarative layout / Style expression properties",
|
|
30583
|
+
"inheritedFrom": {
|
|
30584
|
+
"name": "withMarginProps",
|
|
30585
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30586
|
+
}
|
|
30587
|
+
},
|
|
30588
|
+
{
|
|
30589
|
+
"kind": "field",
|
|
30590
|
+
"name": "'margin-block'",
|
|
30591
|
+
"type": {
|
|
30592
|
+
"text": "string | undefined"
|
|
30593
|
+
},
|
|
30594
|
+
"description": "Style Expression Property that controls the `margin-block` property.\nOnly accepts space tokens.",
|
|
30595
|
+
"category": "Declarative layout / Style expression properties",
|
|
30596
|
+
"inheritedFrom": {
|
|
30597
|
+
"name": "withMarginProps",
|
|
30598
|
+
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
30599
|
+
}
|
|
30482
30600
|
},
|
|
30483
30601
|
{
|
|
30484
30602
|
"kind": "method",
|
|
@@ -30610,33 +30728,60 @@
|
|
|
30610
30728
|
}
|
|
30611
30729
|
}
|
|
30612
30730
|
],
|
|
30613
|
-
"
|
|
30731
|
+
"attributes": [
|
|
30614
30732
|
{
|
|
30615
|
-
"
|
|
30616
|
-
"
|
|
30733
|
+
"name": "captureMode",
|
|
30734
|
+
"type": {
|
|
30735
|
+
"text": "'clone' | 'move'"
|
|
30736
|
+
},
|
|
30737
|
+
"default": "'clone'",
|
|
30738
|
+
"description": "Capture mode for the content.\n\n- `clone` (default): Clones the content to the shadowRoot.\\\n This is the default and most compatible behaviour, since it leaves the original DOM untouched.\n the downside is that events added through `addEventListener` will not be retained in the cloned DOM.\n\n- `move`: Moves the content to the inner shadowRoot.\\\n This mode moves the full original sub-tree into the shadowRoot, leaving everything, including event\n listeners, intact.\n This mode is less compatible with some libraries that rely on the original DOM structure, for example React",
|
|
30739
|
+
"fieldName": "captureMode"
|
|
30617
30740
|
},
|
|
30618
30741
|
{
|
|
30619
|
-
"name": "gds-element
|
|
30742
|
+
"name": "gds-element",
|
|
30620
30743
|
"type": {
|
|
30621
|
-
"text": "
|
|
30744
|
+
"text": "string | undefined"
|
|
30622
30745
|
},
|
|
30623
|
-
"description": "
|
|
30746
|
+
"description": "The unscoped name of this element. This attribute is set automatically by the element and is inteded to be read-only.",
|
|
30747
|
+
"readonly": true,
|
|
30748
|
+
"fieldName": "gdsElementName",
|
|
30624
30749
|
"inheritedFrom": {
|
|
30625
30750
|
"name": "GdsElement",
|
|
30626
30751
|
"module": "src/gds-element.ts"
|
|
30627
30752
|
}
|
|
30753
|
+
}
|
|
30754
|
+
],
|
|
30755
|
+
"mixins": [
|
|
30756
|
+
{
|
|
30757
|
+
"name": "withLayoutChildProps",
|
|
30758
|
+
"module": "/src/utils/mixins/declarative-layout-mixins"
|
|
30628
30759
|
},
|
|
30629
30760
|
{
|
|
30630
|
-
"name": "
|
|
30761
|
+
"name": "withMarginProps",
|
|
30762
|
+
"module": "/src/utils/mixins/declarative-layout-mixins"
|
|
30763
|
+
}
|
|
30764
|
+
],
|
|
30765
|
+
"superclass": {
|
|
30766
|
+
"name": "GdsElement",
|
|
30767
|
+
"module": "/src/gds-element"
|
|
30768
|
+
},
|
|
30769
|
+
"tagName": "gds-rich-text",
|
|
30770
|
+
"customElement": true,
|
|
30771
|
+
"events": [
|
|
30772
|
+
{
|
|
30773
|
+
"name": "gds-element-disconnected",
|
|
30631
30774
|
"type": {
|
|
30632
|
-
"text": "
|
|
30775
|
+
"text": "CustomEvent"
|
|
30633
30776
|
},
|
|
30777
|
+
"description": "When the element is disconnected from the DOM",
|
|
30634
30778
|
"inheritedFrom": {
|
|
30635
30779
|
"name": "GdsElement",
|
|
30636
30780
|
"module": "src/gds-element.ts"
|
|
30637
30781
|
}
|
|
30638
30782
|
},
|
|
30639
30783
|
{
|
|
30784
|
+
"name": "name",
|
|
30640
30785
|
"type": {
|
|
30641
30786
|
"text": "Event"
|
|
30642
30787
|
},
|
|
@@ -30644,107 +30789,33 @@
|
|
|
30644
30789
|
"name": "GdsElement",
|
|
30645
30790
|
"module": "src/gds-element.ts"
|
|
30646
30791
|
}
|
|
30647
|
-
}
|
|
30648
|
-
],
|
|
30649
|
-
"attributes": [
|
|
30650
|
-
{
|
|
30651
|
-
"name": "label",
|
|
30652
|
-
"type": {
|
|
30653
|
-
"text": "string"
|
|
30654
|
-
},
|
|
30655
|
-
"default": "''",
|
|
30656
|
-
"description": "The label displayed next to the radio button.",
|
|
30657
|
-
"fieldName": "label"
|
|
30658
|
-
},
|
|
30659
|
-
{
|
|
30660
|
-
"name": "supporting-text",
|
|
30661
|
-
"type": {
|
|
30662
|
-
"text": "string"
|
|
30663
|
-
},
|
|
30664
|
-
"default": "''",
|
|
30665
|
-
"description": "The supporting text displayed below the label.\nThis text provides additional context or information to the user.",
|
|
30666
|
-
"fieldName": "supportingText"
|
|
30667
|
-
},
|
|
30668
|
-
{
|
|
30669
|
-
"name": "value",
|
|
30670
|
-
"type": {
|
|
30671
|
-
"text": "string | boolean"
|
|
30672
|
-
},
|
|
30673
|
-
"default": "''",
|
|
30674
|
-
"description": "The value of the radio button.",
|
|
30675
|
-
"fieldName": "value"
|
|
30676
|
-
},
|
|
30677
|
-
{
|
|
30678
|
-
"name": "checked",
|
|
30679
|
-
"type": {
|
|
30680
|
-
"text": "boolean"
|
|
30681
|
-
},
|
|
30682
|
-
"default": "false",
|
|
30683
|
-
"description": "Whether the radio button is checked or not.",
|
|
30684
|
-
"fieldName": "checked"
|
|
30685
|
-
},
|
|
30686
|
-
{
|
|
30687
|
-
"name": "disabled",
|
|
30688
|
-
"type": {
|
|
30689
|
-
"text": "boolean"
|
|
30690
|
-
},
|
|
30691
|
-
"default": "false",
|
|
30692
|
-
"description": "Whether the radio button is disabled or not.",
|
|
30693
|
-
"fieldName": "disabled"
|
|
30694
|
-
},
|
|
30695
|
-
{
|
|
30696
|
-
"name": "invalid",
|
|
30697
|
-
"type": {
|
|
30698
|
-
"text": "boolean"
|
|
30699
|
-
},
|
|
30700
|
-
"default": "false",
|
|
30701
|
-
"description": "Whether the radio button is invalid or not.",
|
|
30702
|
-
"fieldName": "invalid"
|
|
30703
|
-
},
|
|
30704
|
-
{
|
|
30705
|
-
"name": "errorMessage",
|
|
30706
|
-
"type": {
|
|
30707
|
-
"text": "string | undefined"
|
|
30708
|
-
},
|
|
30709
|
-
"description": "The accessible error message text for the radio button.\n\nThis text is not visually rendered, but will be announced by\nscreen readers when the radio button is in an invalid state.",
|
|
30710
|
-
"fieldName": "errorMessage"
|
|
30711
30792
|
},
|
|
30712
30793
|
{
|
|
30713
|
-
"name": "gds-element",
|
|
30714
30794
|
"type": {
|
|
30715
|
-
"text": "
|
|
30795
|
+
"text": "Event"
|
|
30716
30796
|
},
|
|
30717
|
-
"description": "The unscoped name of this element. This attribute is set automatically by the element and is inteded to be read-only.",
|
|
30718
|
-
"readonly": true,
|
|
30719
|
-
"fieldName": "gdsElementName",
|
|
30720
30797
|
"inheritedFrom": {
|
|
30721
30798
|
"name": "GdsElement",
|
|
30722
30799
|
"module": "src/gds-element.ts"
|
|
30723
30800
|
}
|
|
30724
30801
|
}
|
|
30725
|
-
]
|
|
30726
|
-
"superclass": {
|
|
30727
|
-
"name": "GdsElement",
|
|
30728
|
-
"module": "/src/gds-element"
|
|
30729
|
-
},
|
|
30730
|
-
"tagName": "gds-radio",
|
|
30731
|
-
"customElement": true
|
|
30802
|
+
]
|
|
30732
30803
|
}
|
|
30733
30804
|
],
|
|
30734
30805
|
"exports": [
|
|
30735
30806
|
{
|
|
30736
30807
|
"kind": "js",
|
|
30737
|
-
"name": "
|
|
30808
|
+
"name": "GdsRichText",
|
|
30738
30809
|
"declaration": {
|
|
30739
|
-
"name": "
|
|
30740
|
-
"module": "src/components/
|
|
30810
|
+
"name": "GdsRichText",
|
|
30811
|
+
"module": "src/components/rich-text/rich-text.component.ts"
|
|
30741
30812
|
}
|
|
30742
30813
|
}
|
|
30743
30814
|
]
|
|
30744
30815
|
},
|
|
30745
30816
|
{
|
|
30746
30817
|
"kind": "javascript-module",
|
|
30747
|
-
"path": "src/components/
|
|
30818
|
+
"path": "src/components/rich-text/rich-text.stories.ts",
|
|
30748
30819
|
"declarations": [
|
|
30749
30820
|
{
|
|
30750
30821
|
"kind": "variable",
|
|
@@ -30752,70 +30823,79 @@
|
|
|
30752
30823
|
"type": {
|
|
30753
30824
|
"text": "Meta"
|
|
30754
30825
|
},
|
|
30755
|
-
"default": "{ title: 'Components/
|
|
30756
|
-
"description": "
|
|
30826
|
+
"default": "{ title: 'Components/Rich Text', component: 'gds-rich-text', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-rich-text'), }, }",
|
|
30827
|
+
"description": "`gds-rich-text` can be used to wrap generic HTML content and apply typography styles.\n\nThe wrapped content will get captured and transferred to the inner shadowRoot of the `gds-rich-text` element.\n\nA typical use case for this component is to wrap a block of HTML content output from a CMS or other source\nthat you want to apply the design system typography to.\n\nIt supports out of the box all heading styles, paragraphs, lists, blockquotes, figures, tables, and more."
|
|
30757
30828
|
},
|
|
30758
30829
|
{
|
|
30759
30830
|
"kind": "variable",
|
|
30760
|
-
"name": "
|
|
30831
|
+
"name": "Card",
|
|
30761
30832
|
"type": {
|
|
30762
30833
|
"text": "Story"
|
|
30763
30834
|
},
|
|
30764
|
-
"default": "{ ...DefaultParams, name: '
|
|
30765
|
-
"description": "Radio buttons allow users to select a single option from a list of two or more mutually exclusive options.<br />\nEach radio button must have both a label and a value.\n\nUsage:\n\n```html\n<gds-radio-group label=\"Select an option\">\n <gds-radio label=\"Option 1\" value=\"1\"></gds-radio>\n <gds-radio label=\"Option 2\" value=\"2\"></gds-radio>\n</gds-radio-group>\n```\n\nInteractive example with supporting texts:"
|
|
30835
|
+
"default": "{ ...DefaultParams, name: 'Card', render: (args) => html` <gds-card> <gds-rich-text> <h1> The Starship <small>SS Endeavor</small> <mark>Exploration Class</mark> </h1> <h2>Heading one</h2> <h3>Heading test</h3> <p> The <strong>SS Endeavor</strong> is a state-of-the-art exploration class starship designed for deep space missions. Equipped with advanced technology and robust systems, it aims to expand our understanding of the universe. With a focus on <em>interstellar travel</em>, the SS Endeavor features a unique propulsion system that allows for faster-than-light travel. Its mission is to explore uncharted territories and gather data on distant celestial bodies. <a href=\"#\">Link</a> </p> <figure> <img src=\"https://placehold.co/600x400\" alt=\"SS Endeavor Starship\" /> <figcaption> Artist's rendition of the SS Endeavor in flight. </figcaption> </figure> <blockquote> <p> \"The SS Endeavor represents the pinnacle of human engineering and ambition. It is not just a vessel; it is our gateway to the stars.\" <cite>— Dr. Amelia Carter, Chief Engineer</cite> </p> </blockquote> <p> For detailed specifications, please refer to the <a href=\"javascript:;\" onclick=\"console.log('Accessing starship specifications')\" >technical documentation</a >. The SS Endeavor is equipped with cutting-edge systems that ensure the safety and efficiency of its crew during long-duration missions. </p> <p> Furthermore, <mark>SS Endeavor</mark> is designed with a modular approach, allowing for easy <code>upgrades</code> and <code>maintenance</code>. </p> <h2>Specifications</h2> <ul> <li> Length: 150 meters Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </li> <li>Width: 50 meters</li> <li>Height: 30 meters</li> <li>Crew Capacity: 100 personnel</li> <li>Propulsion: Quantum Slipstream Drive</li> <li>Maximum Speed: 10 light-years per hour</li> </ul> <hr /> <h2>One digit list</h2> <ol> <li> Conduct scientific research on exoplanets, focusing on atmospheric composition <a href=\"#\">Inline link</a> and potential habitability. </li> <li> Establish contact with potential extraterrestrial civilizations through advanced signal detection and transmission protocols. </li> <li> Collect comprehensive data on diverse cosmic phenomena, including black hole dynamics, supernova remnants, and dark matter distribution. </li> <li> Test new technologies in real-world scenarios, specifically advanced propulsion systems for interstellar travel. </li> <li> Test new technologies in real-world scenarios, implementing closed-loop life support systems for long-duration space missions. </li> </ol> <h2>Two digit list</h2> <ol> <li> Conduct scientific research on exoplanets, focusing on atmospheric composition <a href=\"#\">Inline link</a> and potential habitability. </li> <li> Establish contact with potential extraterrestrial civilizations through advanced signal detection and transmission protocols. </li> <li> Collect comprehensive data on diverse cosmic phenomena, including black hole dynamics, supernova remnants, and dark matter distribution. </li> <li> Test new technologies in real-world scenarios, specifically advanced propulsion systems for interstellar travel. </li> <li> Test new technologies in real-world scenarios, implementing closed-loop life support systems for long-duration space missions. </li> <li> Test new technologies in real-world scenarios, evaluating the effectiveness of advanced radiation shielding materials. </li> <li> Test new technologies in real-world scenarios, deploying autonomous robotic systems for deep-space exploration and resource extraction. </li> <li> Test new technologies in real-world scenarios, analyzing the performance of quantum communication networks in space. </li> <li> Test new technologies in real-world scenarios, using advanced AI for real time data analysis and decision making. </li> <li> Investigate the origins and evolution of the universe through high-resolution astronomical observations. </li> <li> Develop and deploy advanced sensor arrays for detecting gravitational waves and other subtle cosmic signals. </li> <li> Analyze asteroid compositions to understand the early solar system and potential resources. </li> <li> Map the galactic structure with unprecedented accuracy, revealing hidden star systems and nebula. </li> <li> Study the effects of prolonged space travel on human physiology and psychology, preparing for future interstellar journeys. </li> <li> Create detailed models of planetary formation and evolution, improving our understanding of planet diversity. </li> <li> Explore the possibility of utilizing advanced energy sources, like fusion reactors, for deep space exploration. </li> </ol> <h3>Research Areas</h3> <details name=\"named-details\"> <summary>Focus Areas</summary> <p>The SS Endeavor will focus on the following research areas:</p> <ul> <li>Astrobiology</li> <li>Exoplanetary geology</li> <li>Astrophysics and cosmology</li> <li>Space weather and its effects on technology</li> </ul> </details> <details name=\"named-details\"> <summary>Exploration Objectives</summary> <p> The SS Endeavor aims to achieve significant breakthroughs in the following exploration objectives: </p> <ul> <li> Mapping the surface of Mars for potential human colonization </li> <li>Studying the atmospheres of gas giants</li> <li>Investigating the potential for life on Europa</li> <li>Understanding the dynamics of asteroid belts</li> </ul> </details> <details name=\"named-details\"> <summary>Technological Innovations</summary> <p> The SS Endeavor will develop and implement cutting-edge technologies in these areas: </p> <ul> <li>Advanced propulsion systems for deep space travel</li> <li>Autonomous robotic systems for planetary exploration</li> <li> Next-generation communication systems for interstellar data transmission </li> <li>Innovative life support systems for long-duration missions</li> </ul> </details> <p> In summary, the <strong>SS Endeavor</strong> is poised to lead humanity's next great leap into the cosmos. <s>With the right investments and support,</s> its missions will pave the way for future exploration and discovery. <mark>Join us</mark> as we embark on this exciting journey into the unknown. </p> <table> <thead> <tr> <th>Component</th> <th>Details</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td>Life Support System</td> <td>Advanced recycling and oxygen generation</td> <td>Ensures crew survival during long missions</td> </tr> <tr> <td>Navigation System</td> <td>AI-assisted star mapping</td> <td>Guides the ship through uncharted space</td> </tr> <tr> <td>Defensive Systems</td> <td>Energy shields and hull plating</td> <td>Protects against cosmic threats</td> </tr> <tr> <td>Scientific Labs</td> <td>Equipped for various research disciplines</td> <td>Facilitates on-board experiments</td> </tr> <tr> <td>Propulsion System</td> <td>Quantum Slipstream Drive</td> <td>Enables faster-than-light travel</td> </tr> </tbody> </table> <h2>Iframe</h2> <iframe src=\"https://example.com/\" height=\"400\"></iframe> </gds-rich-text> </gds-card> `, }"
|
|
30766
30836
|
},
|
|
30767
30837
|
{
|
|
30768
30838
|
"kind": "variable",
|
|
30769
|
-
"name": "
|
|
30839
|
+
"name": "Headings",
|
|
30770
30840
|
"type": {
|
|
30771
30841
|
"text": "Story"
|
|
30772
30842
|
},
|
|
30773
|
-
"default": "{ ...DefaultParams, name: '
|
|
30774
|
-
"description": "
|
|
30843
|
+
"default": "{ ...DefaultParams, name: 'Headings', render: (args) => html` <gds-rich-text> <!-- <h1>The Starship SS Endeavor Exploration Class</h1> <h2>Mission Alpha Centauri Deep Space Exploration</h2> <h3>Rocket Falcon Heavy Launch Vehicle</h3> <h4>Engine Raptor Next-Gen Propulsion</h4> <h5>Module Dragon Crew Transport</h5> <h6>Satellite Starlink Global Internet</h6> --> <h1>Heading 1</h1> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <h2>Heading 2</h2> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <h3>Heading 3</h3> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <h4>Heading 4</h4> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <h5>Heading 5</h5> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <h6>Heading 6</h6> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> <p> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </p> </gds-rich-text> `, }",
|
|
30844
|
+
"description": "`gds-rich-text` can be used to wrap generic HTML content and apply typography styles.\nIt supports out of the box all heading styles from h1 to h6 based on the green design system typography styles."
|
|
30775
30845
|
},
|
|
30776
30846
|
{
|
|
30777
30847
|
"kind": "variable",
|
|
30778
|
-
"name": "
|
|
30848
|
+
"name": "Lists",
|
|
30779
30849
|
"type": {
|
|
30780
30850
|
"text": "Story"
|
|
30781
30851
|
},
|
|
30782
|
-
"default": "{ ...DefaultParams, name:
|
|
30852
|
+
"default": "{ ...DefaultParams, name: 'Lists', render: (args) => html` <gds-rich-text> <h2>Key Technologies in Space Exploration</h2> <ul> <li>Rocket propulsion systems</li> <li>Life support systems</li> <li>Communication satellites</li> <li>Space habitats and modules</li> <li>Robotic exploration rovers</li> <li>Advanced materials for spacecraft</li> </ul> <h2>Major Milestones in Space Exploration</h2> <ol> <li>Launch of Sputnik 1 (1957) - The first artificial satellite.</li> <li> First human in space (Yuri Gagarin, 1961) - Historic manned spaceflight. </li> <li> Apollo 11 Moon landing (1969) - First humans to walk on the Moon. </li> <li> Launch of the Space Shuttle (1981) - Introduction of reusable spacecraft. </li> <li> Mars Rover Curiosity landing (2012) - Advanced exploration of the Martian surface. </li> <li> Launch of the James Webb Space Telescope (2021) - Next-generation space observatory. </li> </ol> </gds-rich-text> `, }",
|
|
30853
|
+
"description": "`gds-rich-text` has built-in support for ordered and unordered lists.\nIt applies consistent spacing and typography styles to list items."
|
|
30783
30854
|
},
|
|
30784
30855
|
{
|
|
30785
30856
|
"kind": "variable",
|
|
30786
|
-
"name": "
|
|
30857
|
+
"name": "Details",
|
|
30787
30858
|
"type": {
|
|
30788
30859
|
"text": "Story"
|
|
30789
30860
|
},
|
|
30790
|
-
"default": "{ ...DefaultParams, name: '
|
|
30791
|
-
"description": "
|
|
30861
|
+
"default": "{ ...DefaultParams, name: 'Details', render: (args) => html` <gds-rich-text> <h3>Research Areas</h3> <details name=\"named-details\"> <summary>Focus Areas</summary> <p>The SS Endeavor will focus on the following research areas:</p> <ul> <li>Astrobiology</li> <li>Exoplanetary geology</li> <li>Astrophysics and cosmology</li> <li>Space weather and its effects on technology</li> </ul> </details> <details name=\"named-details\"> <summary>Exploration Objectives</summary> <p> The SS Endeavor aims to achieve significant breakthroughs in the following exploration objectives: </p> <ul> <li>Mapping the surface of Mars for potential human colonization</li> <li>Studying the atmospheres of gas giants</li> <li>Investigating the potential for life on Europa</li> <li>Understanding the dynamics of asteroid belts</li> </ul> </details> <details name=\"named-details\"> <summary>Technological Innovations</summary> <p> The SS Endeavor will develop and implement cutting-edge technologies in these areas: </p> <ul> <li>Advanced propulsion systems for deep space travel</li> <li>Autonomous robotic systems for planetary exploration</li> <li> Next-generation communication systems for interstellar data transmission </li> <li>Innovative life support systems for long-duration missions</li> </ul> </details> </gds-rich-text> `, }",
|
|
30862
|
+
"description": "`gds-rich-text` has built-in support for details html element.\n\nThe details element is a disclosure widget from HTML5 that can be used to hide or show additional content."
|
|
30792
30863
|
},
|
|
30793
30864
|
{
|
|
30794
30865
|
"kind": "variable",
|
|
30795
|
-
"name": "
|
|
30866
|
+
"name": "Blockquote",
|
|
30796
30867
|
"type": {
|
|
30797
30868
|
"text": "Story"
|
|
30798
30869
|
},
|
|
30799
|
-
"default": "{ ...DefaultParams, name: '
|
|
30800
|
-
"description": "
|
|
30870
|
+
"default": "{ ...DefaultParams, name: 'Blockquote', render: (args) => html` <gds-rich-text> <h2>Inspirational Quotes from Space Exploration Pioneers</h2> <blockquote> <p> \"That's one small step for [a] man, one giant leap for mankind.\" <cite>— Neil Armstrong, Apollo 11 Astronaut</cite> </p> </blockquote> <blockquote> <p> \"The important achievement of Apollo was demonstrating that humanity is not forever chained to this planet and our visions go rather further than that and our opportunities are unlimited.\" <cite>— Neil Armstrong</cite> </p> </blockquote> <blockquote> <p> \"To confine our attention to terrestrial matters would be to limit the human spirit.\" <cite>— Stephen Hawking, Theoretical Physicist</cite> </p> </blockquote> <blockquote> <p> \"The Earth is the cradle of humanity, but mankind cannot stay in the cradle forever.\" <cite>— Konstantin Tsiolkovsky, Rocket Scientist</cite> </p> </blockquote> <blockquote> <p> \"I don't want to be an astronaut. I want to be a space explorer.\" <cite>— Chris Hadfield, Astronaut</cite> </p> </blockquote> </gds-rich-text> `, }",
|
|
30871
|
+
"description": "`gds-rich-text` has built-in support blockquote element."
|
|
30801
30872
|
},
|
|
30802
30873
|
{
|
|
30803
30874
|
"kind": "variable",
|
|
30804
|
-
"name": "
|
|
30875
|
+
"name": "Formatting",
|
|
30805
30876
|
"type": {
|
|
30806
30877
|
"text": "Story"
|
|
30807
30878
|
},
|
|
30808
|
-
"default": "{ ...DefaultParams, name: '
|
|
30809
|
-
"description": "
|
|
30879
|
+
"default": "{ ...DefaultParams, name: 'Formatting', render: (args) => html` <gds-rich-text> <h3>Key Concepts in Space Exploration</h3> <p> The field of space exploration is constantly evolving. It is essential to understand the <strong>fundamental principles</strong> that guide our missions. For example, <mark>propulsion technology</mark> is crucial for <em>successful space travel</em>. Moreover, the study of <s>black holes</s> has revealed significant insights into the <small>nature of the universe</small>. </p> <p> As we continue to explore the cosmos, <strong>collaboration</strong> among international space agencies is vital. Together, we can achieve <mark>greater advancements</mark> in our understanding of the universe. </p> </gds-rich-text> `, }",
|
|
30880
|
+
"description": "`gds-rich-text` has built-in support for inline formatting tags such as `s`, `mark`, `strong`,`small` and `em`."
|
|
30810
30881
|
},
|
|
30811
30882
|
{
|
|
30812
30883
|
"kind": "variable",
|
|
30813
|
-
"name": "
|
|
30884
|
+
"name": "Table",
|
|
30814
30885
|
"type": {
|
|
30815
30886
|
"text": "Story"
|
|
30816
30887
|
},
|
|
30817
|
-
"default": "{ ...DefaultParams, name: '
|
|
30818
|
-
"description": "
|
|
30888
|
+
"default": "{ ...DefaultParams, name: 'Table', render: (args) => html` <gds-rich-text> <h2>Significant Space Missions</h2> <table> <thead> <tr> <th>Mission Name</th> <th>Launch</th> <th>Objectives</th> <th>Outcomes</th> </tr> </thead> <tbody> <tr> <td>Apollo 11</td> <td>1969</td> <td>First manned Moon landing</td> <td> Successful lunar landing; Neil Armstrong and Buzz Aldrin walked on the Moon. </td> </tr> <tr> <td>Voyager 1</td> <td>1977</td> <td>Explore outer planets and interstellar space</td> <td> Provided detailed images of Jupiter and Saturn; currently in interstellar space. </td> </tr> <tr> <td>Hubble Space Telescope</td> <td>1990</td> <td>Observe distant galaxies and cosmic phenomena</td> <td> Revolutionized astronomy; provided stunning images and data. </td> </tr> <tr> <td>Curiosity Rover</td> <td>2011</td> <td>Explore Mars' surface and assess habitability</td> <td> Confirmed the presence of water; conducted extensive geological analysis. </td> </tr> <tr> <td>James Webb Space Telescope</td> <td>2021</td> <td>Observe the early universe and exoplanets</td> <td>Expected to provide unprecedented insights into the cosmos.</td> </tr> </tbody> </table> </gds-rich-text> `, }",
|
|
30889
|
+
"description": "`gds-rich-text` has built-in support for tables."
|
|
30890
|
+
},
|
|
30891
|
+
{
|
|
30892
|
+
"kind": "variable",
|
|
30893
|
+
"name": "Basic",
|
|
30894
|
+
"type": {
|
|
30895
|
+
"text": "Story"
|
|
30896
|
+
},
|
|
30897
|
+
"default": "{ ...DefaultParams, name: 'Theme', render: (args) => html` <gds-card variant=\"tertiary\"> <gds-rich-text> <h1> The Starship <small>SS Endeavor</small> <mark>Exploration Class</mark> </h1> <h2>Heading one</h2> <h3>Heading test</h3> <p> The <strong>SS Endeavor</strong> is a state-of-the-art exploration class starship designed for deep space missions. Equipped with advanced technology and robust systems, it aims to expand our understanding of the universe. With a focus on <em>interstellar travel</em>, the SS Endeavor features a unique propulsion system that allows for faster-than-light travel. Its mission is to explore uncharted territories and gather data on distant celestial bodies. <a href=\"#\">Link</a> </p> <figure> <img src=\"https://placehold.co/600x400\" alt=\"SS Endeavor Starship\" /> <figcaption> Artist's rendition of the SS Endeavor in flight. </figcaption> </figure> <blockquote> <p> \"The SS Endeavor represents the pinnacle of human engineering and ambition. It is not just a vessel; it is our gateway to the stars.\" <cite>— Dr. Amelia Carter, Chief Engineer</cite> </p> </blockquote> <p> For detailed specifications, please refer to the <a href=\"javascript:;\" onclick=\"console.log('Accessing starship specifications')\" >technical documentation</a >. The SS Endeavor is equipped with cutting-edge systems that ensure the safety and efficiency of its crew during long-duration missions. </p> <p> Furthermore, <mark>SS Endeavor</mark> is designed with a modular approach, allowing for easy upgrades and maintenance. </p> <h2>Specifications</h2> <ul> <li> Length: 150 meters Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </li> <li>Width: 50 meters</li> <li>Height: 30 meters</li> <li>Crew Capacity: 100 personnel</li> <li>Propulsion: Quantum Slipstream Drive</li> <li>Maximum Speed: 10 light-years per hour</li> </ul> <hr /> <h2>Mission Objectives</h2> <ol> <li>Conduct scientific research on exoplanets.</li> <li> Establish contact with potential extraterrestrial civilizations. </li> <li>Collect data on cosmic phenomena.</li> <li>Test new technologies in real-world scenarios.</li> </ol> <h3>Research Areas</h3> <details name=\"named-details\"> <summary>Focus Areas</summary> <p>The SS Endeavor will focus on the following research areas:</p> <ul> <li>Astrobiology</li> <li>Exoplanetary geology</li> <li>Astrophysics and cosmology</li> <li>Space weather and its effects on technology</li> </ul> </details> <details name=\"named-details\"> <summary>Exploration Objectives</summary> <p> The SS Endeavor aims to achieve significant breakthroughs in the following exploration objectives: </p> <ul> <li> Mapping the surface of Mars for potential human colonization </li> <li>Studying the atmospheres of gas giants</li> <li>Investigating the potential for life on Europa</li> <li>Understanding the dynamics of asteroid belts</li> </ul> </details> <details name=\"named-details\"> <summary>Technological Innovations</summary> <p> The SS Endeavor will develop and implement cutting-edge technologies in these areas: </p> <ul> <li>Advanced propulsion systems for deep space travel</li> <li>Autonomous robotic systems for planetary exploration</li> <li> Next-generation communication systems for interstellar data transmission </li> <li>Innovative life support systems for long-duration missions</li> </ul> </details> <p> In summary, the <strong>SS Endeavor</strong> is poised to lead humanity's next great leap into the cosmos. <s>With the right investments and support,</s> its missions will pave the way for future exploration and discovery. <mark>Join us</mark> as we embark on this exciting journey into the unknown. </p> <table> <thead> <tr> <th>Component</th> <th>Details</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td>Life Support System</td> <td>Advanced recycling and oxygen generation</td> <td>Ensures crew survival during long missions</td> </tr> <tr> <td>Navigation System</td> <td>AI-assisted star mapping</td> <td>Guides the ship through uncharted space</td> </tr> <tr> <td>Defensive Systems</td> <td>Energy shields and hull plating</td> <td>Protects against cosmic threats</td> </tr> <tr> <td>Scientific Labs</td> <td>Equipped for various research disciplines</td> <td>Facilitates on-board experiments</td> </tr> <tr> <td>Propulsion System</td> <td>Quantum Slipstream Drive</td> <td>Enables faster-than-light travel</td> </tr> </tbody> </table> <h2>Iframe</h2> <iframe src=\"https://example.com/\" height=\"400\"></iframe> </gds-rich-text> </gds-card> `, }",
|
|
30898
|
+
"description": "Rich text can be used with other components to create engaging content.\nIn this example, we combine rich text with a card component to showcase how colors will be applied.\n\nExample:\n\n```html\n<gds-card variant=\"tertiary\">\n <gds-rich-text>\n ...\n </gds-rich-text>\n</gds-card>\n```"
|
|
30819
30899
|
}
|
|
30820
30900
|
],
|
|
30821
30901
|
"exports": [
|
|
@@ -30824,75 +30904,83 @@
|
|
|
30824
30904
|
"name": "default",
|
|
30825
30905
|
"declaration": {
|
|
30826
30906
|
"name": "meta",
|
|
30827
|
-
"module": "src/components/
|
|
30907
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30828
30908
|
}
|
|
30829
30909
|
},
|
|
30830
30910
|
{
|
|
30831
30911
|
"kind": "js",
|
|
30832
|
-
"name": "
|
|
30912
|
+
"name": "Card",
|
|
30833
30913
|
"declaration": {
|
|
30834
|
-
"name": "
|
|
30835
|
-
"module": "src/components/
|
|
30914
|
+
"name": "Card",
|
|
30915
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30836
30916
|
}
|
|
30837
30917
|
},
|
|
30838
30918
|
{
|
|
30839
30919
|
"kind": "js",
|
|
30840
|
-
"name": "
|
|
30920
|
+
"name": "Headings",
|
|
30841
30921
|
"declaration": {
|
|
30842
|
-
"name": "
|
|
30843
|
-
"module": "src/components/
|
|
30922
|
+
"name": "Headings",
|
|
30923
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30844
30924
|
}
|
|
30845
30925
|
},
|
|
30846
30926
|
{
|
|
30847
30927
|
"kind": "js",
|
|
30848
|
-
"name": "
|
|
30928
|
+
"name": "Lists",
|
|
30849
30929
|
"declaration": {
|
|
30850
|
-
"name": "
|
|
30851
|
-
"module": "src/components/
|
|
30930
|
+
"name": "Lists",
|
|
30931
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30852
30932
|
}
|
|
30853
30933
|
},
|
|
30854
30934
|
{
|
|
30855
30935
|
"kind": "js",
|
|
30856
|
-
"name": "
|
|
30936
|
+
"name": "Details",
|
|
30857
30937
|
"declaration": {
|
|
30858
|
-
"name": "
|
|
30859
|
-
"module": "src/components/
|
|
30938
|
+
"name": "Details",
|
|
30939
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30860
30940
|
}
|
|
30861
30941
|
},
|
|
30862
30942
|
{
|
|
30863
30943
|
"kind": "js",
|
|
30864
|
-
"name": "
|
|
30944
|
+
"name": "Blockquote",
|
|
30865
30945
|
"declaration": {
|
|
30866
|
-
"name": "
|
|
30867
|
-
"module": "src/components/
|
|
30946
|
+
"name": "Blockquote",
|
|
30947
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30868
30948
|
}
|
|
30869
30949
|
},
|
|
30870
30950
|
{
|
|
30871
30951
|
"kind": "js",
|
|
30872
|
-
"name": "
|
|
30952
|
+
"name": "Formatting",
|
|
30873
30953
|
"declaration": {
|
|
30874
|
-
"name": "
|
|
30875
|
-
"module": "src/components/
|
|
30954
|
+
"name": "Formatting",
|
|
30955
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30876
30956
|
}
|
|
30877
30957
|
},
|
|
30878
30958
|
{
|
|
30879
30959
|
"kind": "js",
|
|
30880
|
-
"name": "
|
|
30960
|
+
"name": "Table",
|
|
30881
30961
|
"declaration": {
|
|
30882
|
-
"name": "
|
|
30883
|
-
"module": "src/components/
|
|
30962
|
+
"name": "Table",
|
|
30963
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30964
|
+
}
|
|
30965
|
+
},
|
|
30966
|
+
{
|
|
30967
|
+
"kind": "js",
|
|
30968
|
+
"name": "Basic",
|
|
30969
|
+
"declaration": {
|
|
30970
|
+
"name": "Basic",
|
|
30971
|
+
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
30884
30972
|
}
|
|
30885
30973
|
}
|
|
30886
30974
|
]
|
|
30887
30975
|
},
|
|
30888
30976
|
{
|
|
30889
30977
|
"kind": "javascript-module",
|
|
30890
|
-
"path": "src/components/
|
|
30978
|
+
"path": "src/components/rich-text/rich-text.styles.ts",
|
|
30891
30979
|
"declarations": [
|
|
30892
30980
|
{
|
|
30893
30981
|
"kind": "variable",
|
|
30894
30982
|
"name": "style",
|
|
30895
|
-
"default": "css` :host {
|
|
30983
|
+
"default": "css` :host { font: var(--gds-sys-text-body-regular-m); --default-border: 1px solid color-mix(in srgb, currentColor, transparent 80%); letter-spacing: 0.0125rem; display: block; } h1, h2, h3, h4, h5, h6 { margin-top: var(--gds-sys-space-2xl); margin-bottom: var(--gds-sys-space-xs); } :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: unset; } h1 + h2 { margin-top: 0; } h2 + h3 { margin-top: 0; } h3 + h4 { margin-top: 0; } h4 + h5 { margin-top: 0; } h4 + h5 { margin-top: 0; } h5 + h6 { margin-top: 0; } p { margin: 0; margin-bottom: var(--gds-sys-space-m); max-width: 80ch; } blockquote { margin: unset; margin-block: 2lh; border-left: 0.2rem solid currentColor; padding-left: 2ch; max-width: 40ch; } code { background: var(--gds-sys-color-l3-neutral-02); color: var(--gds-sys-color-content-neutral-01); border-radius: var(--gds-sys-radius-xs); padding: var(--gds-sys-space-3xs); font: var(--gds-sys-text-body-book-s); } hr { border: none; border-top: var(--default-border); margin: var(--gds-sys-space-xl) 0; } s { text-decoration: underline; text-decoration-skip-ink: none; text-underline-offset: -0.22lh; } mark { color: currentColor; background-color: color-mix(in srgb, currentColor, transparent 80%); } /* * lists * ----------------------------------------------------------- */ ul, ol { padding-inline-start: 2ch; margin: unset; margin-bottom: 1lh; max-width: 80ch; } ol { list-style-type: none; counter-reset: ordered-list; margin: unset; padding: unset; } ol li { padding-left: 3.6ch; position: relative; } ol li:before { counter-increment: ordered-list; content: counter(ordered-list) '.'; left: 0.2rem; position: absolute; } ol:not(:has(li:nth-child(10))) li { padding-left: 2.4ch; } ol:has(li:nth-child(10)) li:nth-child(-n + 9):before { left: 1.4ch; } li { padding: 0 0 0.3lh 0; } ul li:last-child { padding: 0; } ul li::marker { content: '– '; } /* * figure and image * ----------------------------------------------------------- */ img { display: block; border-radius: var(--gds-sys-radius-xs); } figure { margin: 0; padding: 0; margin-top: var(--gds-sys-space-xl); } figcaption { font-size: smaller; margin-block-start: var(--gds-sys-space-xs); } /* * table * ----------------------------------------------------------- */ table { border-collapse: separate; border-spacing: 0; width: 100%; border: var(--default-border); border-radius: var(--gds-sys-radius-s); margin-top: var(--gds-sys-space-xl); } th { font-weight: var(--gds-sys-text-weight-book); text-align: left; border-bottom: var(--default-border); border-left: transparent; border-right: transparent; color: currentColor; } th:not(:last-child) { border-right: var(--default-border); } th, td { padding: 0.3lh 2ch; } td:not(:last-child) { border-right: var(--default-border); } tr:nth-child(even) td { background: color-mix(in srgb, currentColor, transparent 95%); } /* * Details * ----------------------------------------------------------- */ details { border-top: solid var(--gds-sys-space-5xs) color-mix(in srgb, currentColor, transparent 90%); font: var(--gds-sys-text-body-regular-m); } summary { font-weight: var(--gds-sys-text-weight-regular); list-style: none; padding: 0.4lh 0.2ch; font: var(--gds-sys-text-body-regular-l); color: currentColor; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; outline-offset: var(--gds-sys-space-3xs); outline-color: currentColor; padding-inline: var(--gds-sys-space-m); } details summary::-webkit-details-marker { display: none; } summary:focus-visible { border-radius: var(--gds-sys-radius-2xs); } details:hover summary { background: color-mix(in srgb, currentColor, transparent 95%); } summary::after { content: '+'; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; font: var(--gds-sys-text-body-regular-l); } details[open] summary::after { content: '-'; } details[open] { border-bottom: var(--gds-sys-space-5xs) solid color-mix(in srgb, currentColor, transparent 95%); padding-bottom: 0.4lh; background: color-mix(in srgb, currentColor, transparent 95%); } details[open] > *:not(summary) { margin-left: var(--gds-sys-space-m); } details[open] summary { margin-bottom: 0.4lh; } details[open] + details { border: none; } details:last-of-type { border-bottom: var(--gds-sys-space-5xs) solid color-mix(in srgb, currentColor, transparent 90%); margin-bottom: var(--gds-sys-space-xl); } a, a:visited { color: currentColor; text-decoration-color: currentColor; } /* * Iframe */ iframe { border: var(--gds-sys-space-5xs) solid var(--gds-sys-color-border-subtle-01); border-radius: var(--gds-sys-radius-xs); min-width: 100%; margin-bottom: var(--gds-sys-space-l); } `"
|
|
30896
30984
|
}
|
|
30897
30985
|
],
|
|
30898
30986
|
"exports": [
|
|
@@ -30901,29 +30989,29 @@
|
|
|
30901
30989
|
"name": "default",
|
|
30902
30990
|
"declaration": {
|
|
30903
30991
|
"name": "style",
|
|
30904
|
-
"module": "src/components/
|
|
30992
|
+
"module": "src/components/rich-text/rich-text.styles.ts"
|
|
30905
30993
|
}
|
|
30906
30994
|
}
|
|
30907
30995
|
]
|
|
30908
30996
|
},
|
|
30909
30997
|
{
|
|
30910
30998
|
"kind": "javascript-module",
|
|
30911
|
-
"path": "src/components/
|
|
30999
|
+
"path": "src/components/rich-text/rich-text.ts",
|
|
30912
31000
|
"declarations": [],
|
|
30913
31001
|
"exports": [
|
|
30914
31002
|
{
|
|
30915
31003
|
"kind": "js",
|
|
30916
|
-
"name": "
|
|
31004
|
+
"name": "GdsRichText",
|
|
30917
31005
|
"declaration": {
|
|
30918
|
-
"name": "
|
|
30919
|
-
"module": "src/components/
|
|
31006
|
+
"name": "GdsRichText",
|
|
31007
|
+
"module": "src/components/rich-text/rich-text.ts"
|
|
30920
31008
|
}
|
|
30921
31009
|
}
|
|
30922
31010
|
]
|
|
30923
31011
|
},
|
|
30924
31012
|
{
|
|
30925
31013
|
"kind": "javascript-module",
|
|
30926
|
-
"path": "src/components/
|
|
31014
|
+
"path": "src/components/radio/index.ts",
|
|
30927
31015
|
"declarations": [],
|
|
30928
31016
|
"exports": [
|
|
30929
31017
|
{
|
|
@@ -30931,216 +31019,98 @@
|
|
|
30931
31019
|
"name": "*",
|
|
30932
31020
|
"declaration": {
|
|
30933
31021
|
"name": "*",
|
|
30934
|
-
"module": "src/components/
|
|
31022
|
+
"module": "src/components/radio/radio"
|
|
31023
|
+
}
|
|
31024
|
+
},
|
|
31025
|
+
{
|
|
31026
|
+
"kind": "js",
|
|
31027
|
+
"name": "*",
|
|
31028
|
+
"declaration": {
|
|
31029
|
+
"name": "*",
|
|
31030
|
+
"module": "src/components/radio/radio-group/radio-group"
|
|
30935
31031
|
}
|
|
30936
31032
|
}
|
|
30937
31033
|
]
|
|
30938
31034
|
},
|
|
30939
31035
|
{
|
|
30940
31036
|
"kind": "javascript-module",
|
|
30941
|
-
"path": "src/components/
|
|
31037
|
+
"path": "src/components/radio/radio.component.ts",
|
|
30942
31038
|
"declarations": [
|
|
30943
31039
|
{
|
|
30944
31040
|
"kind": "class",
|
|
30945
|
-
"description": "
|
|
30946
|
-
"name": "
|
|
31041
|
+
"description": "",
|
|
31042
|
+
"name": "GdsRadio",
|
|
30947
31043
|
"members": [
|
|
30948
31044
|
{
|
|
30949
31045
|
"kind": "field",
|
|
30950
|
-
"name": "
|
|
30951
|
-
"type": {
|
|
30952
|
-
"text": "'clone' | 'move'"
|
|
30953
|
-
},
|
|
30954
|
-
"default": "'clone'",
|
|
30955
|
-
"description": "Capture mode for the content.\n\n- `clone` (default): Clones the content to the shadowRoot.\\\n This is the default and most compatible behaviour, since it leaves the original DOM untouched.\n the downside is that events added through `addEventListener` will not be retained in the cloned DOM.\n\n- `move`: Moves the content to the inner shadowRoot.\\\n This mode moves the full original sub-tree into the shadowRoot, leaving everything, including event\n listeners, intact.\n This mode is less compatible with some libraries that rely on the original DOM structure, for example React",
|
|
30956
|
-
"attribute": "captureMode"
|
|
30957
|
-
},
|
|
30958
|
-
{
|
|
30959
|
-
"kind": "method",
|
|
30960
|
-
"name": "querySelectorAll",
|
|
30961
|
-
"return": {
|
|
30962
|
-
"type": {
|
|
30963
|
-
"text": "NodeList"
|
|
30964
|
-
}
|
|
30965
|
-
},
|
|
30966
|
-
"parameters": [
|
|
30967
|
-
{
|
|
30968
|
-
"name": "selector",
|
|
30969
|
-
"type": {
|
|
30970
|
-
"text": "string"
|
|
30971
|
-
}
|
|
30972
|
-
}
|
|
30973
|
-
],
|
|
30974
|
-
"description": "Forwards the selector to the corresponding function on the inner shadowRoot."
|
|
30975
|
-
},
|
|
30976
|
-
{
|
|
30977
|
-
"kind": "method",
|
|
30978
|
-
"name": "querySelector",
|
|
30979
|
-
"return": {
|
|
30980
|
-
"type": {
|
|
30981
|
-
"text": "Element | null"
|
|
30982
|
-
}
|
|
30983
|
-
},
|
|
30984
|
-
"parameters": [
|
|
30985
|
-
{
|
|
30986
|
-
"name": "selector",
|
|
30987
|
-
"type": {
|
|
30988
|
-
"text": "string"
|
|
30989
|
-
}
|
|
30990
|
-
}
|
|
30991
|
-
],
|
|
30992
|
-
"description": "Forwards the selector to the corresponding function on the inner shadowRoot."
|
|
30993
|
-
},
|
|
30994
|
-
{
|
|
30995
|
-
"kind": "field",
|
|
30996
|
-
"name": "innerHTML",
|
|
31046
|
+
"name": "label",
|
|
30997
31047
|
"type": {
|
|
30998
31048
|
"text": "string"
|
|
30999
31049
|
},
|
|
31000
|
-
"
|
|
31001
|
-
|
|
31002
|
-
|
|
31003
|
-
"kind": "field",
|
|
31004
|
-
"name": "'align-self'",
|
|
31005
|
-
"type": {
|
|
31006
|
-
"text": "string | undefined"
|
|
31007
|
-
},
|
|
31008
|
-
"description": "Style Expression Property that controls the `align-self` property.\nSupports all valid CSS `align-self` values.",
|
|
31009
|
-
"category": "Declarative layout / Style expression properties",
|
|
31010
|
-
"inheritedFrom": {
|
|
31011
|
-
"name": "withLayoutChildProps",
|
|
31012
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31013
|
-
}
|
|
31014
|
-
},
|
|
31015
|
-
{
|
|
31016
|
-
"kind": "field",
|
|
31017
|
-
"name": "'justify-self'",
|
|
31018
|
-
"type": {
|
|
31019
|
-
"text": "string | undefined"
|
|
31020
|
-
},
|
|
31021
|
-
"description": "Style Expression Property that controls the `justify-self` property.\nSupports all valid CSS `justify-self` values.",
|
|
31022
|
-
"category": "Declarative layout / Style expression properties",
|
|
31023
|
-
"inheritedFrom": {
|
|
31024
|
-
"name": "withLayoutChildProps",
|
|
31025
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31026
|
-
}
|
|
31027
|
-
},
|
|
31028
|
-
{
|
|
31029
|
-
"kind": "field",
|
|
31030
|
-
"name": "'place-self'",
|
|
31031
|
-
"type": {
|
|
31032
|
-
"text": "string | undefined"
|
|
31033
|
-
},
|
|
31034
|
-
"description": "Style Expression Property that controls the `place-self` property.\nSupports all valid CSS `place-self` values.",
|
|
31035
|
-
"category": "Declarative layout / Style expression properties",
|
|
31036
|
-
"inheritedFrom": {
|
|
31037
|
-
"name": "withLayoutChildProps",
|
|
31038
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31039
|
-
}
|
|
31040
|
-
},
|
|
31041
|
-
{
|
|
31042
|
-
"kind": "field",
|
|
31043
|
-
"name": "'grid-column'",
|
|
31044
|
-
"type": {
|
|
31045
|
-
"text": "string | undefined"
|
|
31046
|
-
},
|
|
31047
|
-
"description": "Style Expression Property that controls the `grid-column` property.\nSupports all valid CSS grid-column values.\nDocumentation: https://developer.mozilla.org/en-US/docs/Web/CSS/grid-column",
|
|
31048
|
-
"category": "Declarative layout / Style expression properties",
|
|
31049
|
-
"inheritedFrom": {
|
|
31050
|
-
"name": "withLayoutChildProps",
|
|
31051
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31052
|
-
}
|
|
31053
|
-
},
|
|
31054
|
-
{
|
|
31055
|
-
"kind": "field",
|
|
31056
|
-
"name": "'grid-row'",
|
|
31057
|
-
"type": {
|
|
31058
|
-
"text": "string | undefined"
|
|
31059
|
-
},
|
|
31060
|
-
"description": "Style Expression Property that controls the `grid-row` property.\nSupports all valid CSS `grid-row` values.",
|
|
31061
|
-
"category": "Declarative layout / Style expression properties",
|
|
31062
|
-
"inheritedFrom": {
|
|
31063
|
-
"name": "withLayoutChildProps",
|
|
31064
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31065
|
-
}
|
|
31050
|
+
"default": "''",
|
|
31051
|
+
"description": "The label displayed next to the radio button.",
|
|
31052
|
+
"attribute": "label"
|
|
31066
31053
|
},
|
|
31067
31054
|
{
|
|
31068
31055
|
"kind": "field",
|
|
31069
|
-
"name": "
|
|
31056
|
+
"name": "supportingText",
|
|
31070
31057
|
"type": {
|
|
31071
|
-
"text": "string
|
|
31058
|
+
"text": "string"
|
|
31072
31059
|
},
|
|
31073
|
-
"
|
|
31074
|
-
"
|
|
31075
|
-
"
|
|
31076
|
-
"name": "withLayoutChildProps",
|
|
31077
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31078
|
-
}
|
|
31060
|
+
"default": "''",
|
|
31061
|
+
"description": "The supporting text displayed below the label.\nThis text provides additional context or information to the user.",
|
|
31062
|
+
"attribute": "supporting-text"
|
|
31079
31063
|
},
|
|
31080
31064
|
{
|
|
31081
31065
|
"kind": "field",
|
|
31082
|
-
"name": "
|
|
31066
|
+
"name": "value",
|
|
31083
31067
|
"type": {
|
|
31084
|
-
"text": "string |
|
|
31068
|
+
"text": "string | boolean"
|
|
31085
31069
|
},
|
|
31086
|
-
"
|
|
31087
|
-
"
|
|
31088
|
-
"
|
|
31089
|
-
"name": "withLayoutChildProps",
|
|
31090
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31091
|
-
}
|
|
31070
|
+
"default": "''",
|
|
31071
|
+
"description": "The value of the radio button.",
|
|
31072
|
+
"attribute": "value"
|
|
31092
31073
|
},
|
|
31093
31074
|
{
|
|
31094
31075
|
"kind": "field",
|
|
31095
|
-
"name": "
|
|
31076
|
+
"name": "checked",
|
|
31096
31077
|
"type": {
|
|
31097
|
-
"text": "
|
|
31078
|
+
"text": "boolean"
|
|
31098
31079
|
},
|
|
31099
|
-
"
|
|
31100
|
-
"
|
|
31101
|
-
"
|
|
31102
|
-
|
|
31103
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31104
|
-
}
|
|
31080
|
+
"default": "false",
|
|
31081
|
+
"description": "Whether the radio button is checked or not.",
|
|
31082
|
+
"attribute": "checked",
|
|
31083
|
+
"reflects": true
|
|
31105
31084
|
},
|
|
31106
31085
|
{
|
|
31107
31086
|
"kind": "field",
|
|
31108
|
-
"name": "
|
|
31087
|
+
"name": "disabled",
|
|
31109
31088
|
"type": {
|
|
31110
|
-
"text": "
|
|
31089
|
+
"text": "boolean"
|
|
31111
31090
|
},
|
|
31112
|
-
"
|
|
31113
|
-
"
|
|
31114
|
-
"
|
|
31115
|
-
|
|
31116
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31117
|
-
}
|
|
31091
|
+
"default": "false",
|
|
31092
|
+
"description": "Whether the radio button is disabled or not.",
|
|
31093
|
+
"attribute": "disabled",
|
|
31094
|
+
"reflects": true
|
|
31118
31095
|
},
|
|
31119
31096
|
{
|
|
31120
31097
|
"kind": "field",
|
|
31121
|
-
"name": "
|
|
31098
|
+
"name": "invalid",
|
|
31122
31099
|
"type": {
|
|
31123
|
-
"text": "
|
|
31100
|
+
"text": "boolean"
|
|
31124
31101
|
},
|
|
31125
|
-
"
|
|
31126
|
-
"
|
|
31127
|
-
"
|
|
31128
|
-
"name": "withMarginProps",
|
|
31129
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31130
|
-
}
|
|
31102
|
+
"default": "false",
|
|
31103
|
+
"description": "Whether the radio button is invalid or not.",
|
|
31104
|
+
"attribute": "invalid"
|
|
31131
31105
|
},
|
|
31132
31106
|
{
|
|
31133
31107
|
"kind": "field",
|
|
31134
|
-
"name": "
|
|
31108
|
+
"name": "errorMessage",
|
|
31135
31109
|
"type": {
|
|
31136
31110
|
"text": "string | undefined"
|
|
31137
31111
|
},
|
|
31138
|
-
"description": "
|
|
31139
|
-
"
|
|
31140
|
-
"inheritedFrom": {
|
|
31141
|
-
"name": "withMarginProps",
|
|
31142
|
-
"module": "src/utils/mixins/declarative-layout-mixins.ts"
|
|
31143
|
-
}
|
|
31112
|
+
"description": "The accessible error message text for the radio button.\n\nThis text is not visually rendered, but will be announced by\nscreen readers when the radio button is in an invalid state.",
|
|
31113
|
+
"attribute": "errorMessage"
|
|
31144
31114
|
},
|
|
31145
31115
|
{
|
|
31146
31116
|
"kind": "method",
|
|
@@ -31272,60 +31242,33 @@
|
|
|
31272
31242
|
}
|
|
31273
31243
|
}
|
|
31274
31244
|
],
|
|
31275
|
-
"
|
|
31245
|
+
"events": [
|
|
31276
31246
|
{
|
|
31277
|
-
"
|
|
31278
|
-
"
|
|
31279
|
-
"text": "'clone' | 'move'"
|
|
31280
|
-
},
|
|
31281
|
-
"default": "'clone'",
|
|
31282
|
-
"description": "Capture mode for the content.\n\n- `clone` (default): Clones the content to the shadowRoot.\\\n This is the default and most compatible behaviour, since it leaves the original DOM untouched.\n the downside is that events added through `addEventListener` will not be retained in the cloned DOM.\n\n- `move`: Moves the content to the inner shadowRoot.\\\n This mode moves the full original sub-tree into the shadowRoot, leaving everything, including event\n listeners, intact.\n This mode is less compatible with some libraries that rely on the original DOM structure, for example React",
|
|
31283
|
-
"fieldName": "captureMode"
|
|
31247
|
+
"description": "Dispatched when the radio button is checked.",
|
|
31248
|
+
"name": "input"
|
|
31284
31249
|
},
|
|
31285
31250
|
{
|
|
31286
|
-
"name": "gds-element",
|
|
31251
|
+
"name": "gds-element-disconnected",
|
|
31287
31252
|
"type": {
|
|
31288
|
-
"text": "
|
|
31253
|
+
"text": "CustomEvent"
|
|
31289
31254
|
},
|
|
31290
|
-
"description": "
|
|
31291
|
-
"readonly": true,
|
|
31292
|
-
"fieldName": "gdsElementName",
|
|
31255
|
+
"description": "When the element is disconnected from the DOM",
|
|
31293
31256
|
"inheritedFrom": {
|
|
31294
31257
|
"name": "GdsElement",
|
|
31295
31258
|
"module": "src/gds-element.ts"
|
|
31296
31259
|
}
|
|
31297
|
-
}
|
|
31298
|
-
],
|
|
31299
|
-
"mixins": [
|
|
31300
|
-
{
|
|
31301
|
-
"name": "withLayoutChildProps",
|
|
31302
|
-
"module": "/src/utils/mixins/declarative-layout-mixins"
|
|
31303
31260
|
},
|
|
31304
31261
|
{
|
|
31305
|
-
"name": "
|
|
31306
|
-
"module": "/src/utils/mixins/declarative-layout-mixins"
|
|
31307
|
-
}
|
|
31308
|
-
],
|
|
31309
|
-
"superclass": {
|
|
31310
|
-
"name": "GdsElement",
|
|
31311
|
-
"module": "/src/gds-element"
|
|
31312
|
-
},
|
|
31313
|
-
"tagName": "gds-rich-text",
|
|
31314
|
-
"customElement": true,
|
|
31315
|
-
"events": [
|
|
31316
|
-
{
|
|
31317
|
-
"name": "gds-element-disconnected",
|
|
31262
|
+
"name": "name",
|
|
31318
31263
|
"type": {
|
|
31319
|
-
"text": "
|
|
31264
|
+
"text": "Event"
|
|
31320
31265
|
},
|
|
31321
|
-
"description": "When the element is disconnected from the DOM",
|
|
31322
31266
|
"inheritedFrom": {
|
|
31323
31267
|
"name": "GdsElement",
|
|
31324
31268
|
"module": "src/gds-element.ts"
|
|
31325
31269
|
}
|
|
31326
31270
|
},
|
|
31327
31271
|
{
|
|
31328
|
-
"name": "name",
|
|
31329
31272
|
"type": {
|
|
31330
31273
|
"text": "Event"
|
|
31331
31274
|
},
|
|
@@ -31333,33 +31276,107 @@
|
|
|
31333
31276
|
"name": "GdsElement",
|
|
31334
31277
|
"module": "src/gds-element.ts"
|
|
31335
31278
|
}
|
|
31279
|
+
}
|
|
31280
|
+
],
|
|
31281
|
+
"attributes": [
|
|
31282
|
+
{
|
|
31283
|
+
"name": "label",
|
|
31284
|
+
"type": {
|
|
31285
|
+
"text": "string"
|
|
31286
|
+
},
|
|
31287
|
+
"default": "''",
|
|
31288
|
+
"description": "The label displayed next to the radio button.",
|
|
31289
|
+
"fieldName": "label"
|
|
31336
31290
|
},
|
|
31337
31291
|
{
|
|
31292
|
+
"name": "supporting-text",
|
|
31338
31293
|
"type": {
|
|
31339
|
-
"text": "
|
|
31294
|
+
"text": "string"
|
|
31295
|
+
},
|
|
31296
|
+
"default": "''",
|
|
31297
|
+
"description": "The supporting text displayed below the label.\nThis text provides additional context or information to the user.",
|
|
31298
|
+
"fieldName": "supportingText"
|
|
31299
|
+
},
|
|
31300
|
+
{
|
|
31301
|
+
"name": "value",
|
|
31302
|
+
"type": {
|
|
31303
|
+
"text": "string | boolean"
|
|
31340
31304
|
},
|
|
31305
|
+
"default": "''",
|
|
31306
|
+
"description": "The value of the radio button.",
|
|
31307
|
+
"fieldName": "value"
|
|
31308
|
+
},
|
|
31309
|
+
{
|
|
31310
|
+
"name": "checked",
|
|
31311
|
+
"type": {
|
|
31312
|
+
"text": "boolean"
|
|
31313
|
+
},
|
|
31314
|
+
"default": "false",
|
|
31315
|
+
"description": "Whether the radio button is checked or not.",
|
|
31316
|
+
"fieldName": "checked"
|
|
31317
|
+
},
|
|
31318
|
+
{
|
|
31319
|
+
"name": "disabled",
|
|
31320
|
+
"type": {
|
|
31321
|
+
"text": "boolean"
|
|
31322
|
+
},
|
|
31323
|
+
"default": "false",
|
|
31324
|
+
"description": "Whether the radio button is disabled or not.",
|
|
31325
|
+
"fieldName": "disabled"
|
|
31326
|
+
},
|
|
31327
|
+
{
|
|
31328
|
+
"name": "invalid",
|
|
31329
|
+
"type": {
|
|
31330
|
+
"text": "boolean"
|
|
31331
|
+
},
|
|
31332
|
+
"default": "false",
|
|
31333
|
+
"description": "Whether the radio button is invalid or not.",
|
|
31334
|
+
"fieldName": "invalid"
|
|
31335
|
+
},
|
|
31336
|
+
{
|
|
31337
|
+
"name": "errorMessage",
|
|
31338
|
+
"type": {
|
|
31339
|
+
"text": "string | undefined"
|
|
31340
|
+
},
|
|
31341
|
+
"description": "The accessible error message text for the radio button.\n\nThis text is not visually rendered, but will be announced by\nscreen readers when the radio button is in an invalid state.",
|
|
31342
|
+
"fieldName": "errorMessage"
|
|
31343
|
+
},
|
|
31344
|
+
{
|
|
31345
|
+
"name": "gds-element",
|
|
31346
|
+
"type": {
|
|
31347
|
+
"text": "string | undefined"
|
|
31348
|
+
},
|
|
31349
|
+
"description": "The unscoped name of this element. This attribute is set automatically by the element and is inteded to be read-only.",
|
|
31350
|
+
"readonly": true,
|
|
31351
|
+
"fieldName": "gdsElementName",
|
|
31341
31352
|
"inheritedFrom": {
|
|
31342
31353
|
"name": "GdsElement",
|
|
31343
31354
|
"module": "src/gds-element.ts"
|
|
31344
31355
|
}
|
|
31345
31356
|
}
|
|
31346
|
-
]
|
|
31357
|
+
],
|
|
31358
|
+
"superclass": {
|
|
31359
|
+
"name": "GdsElement",
|
|
31360
|
+
"module": "/src/gds-element"
|
|
31361
|
+
},
|
|
31362
|
+
"tagName": "gds-radio",
|
|
31363
|
+
"customElement": true
|
|
31347
31364
|
}
|
|
31348
31365
|
],
|
|
31349
31366
|
"exports": [
|
|
31350
31367
|
{
|
|
31351
31368
|
"kind": "js",
|
|
31352
|
-
"name": "
|
|
31369
|
+
"name": "GdsRadio",
|
|
31353
31370
|
"declaration": {
|
|
31354
|
-
"name": "
|
|
31355
|
-
"module": "src/components/
|
|
31371
|
+
"name": "GdsRadio",
|
|
31372
|
+
"module": "src/components/radio/radio.component.ts"
|
|
31356
31373
|
}
|
|
31357
31374
|
}
|
|
31358
31375
|
]
|
|
31359
31376
|
},
|
|
31360
31377
|
{
|
|
31361
31378
|
"kind": "javascript-module",
|
|
31362
|
-
"path": "src/components/
|
|
31379
|
+
"path": "src/components/radio/radio.stories.ts",
|
|
31363
31380
|
"declarations": [
|
|
31364
31381
|
{
|
|
31365
31382
|
"kind": "variable",
|
|
@@ -31367,79 +31384,70 @@
|
|
|
31367
31384
|
"type": {
|
|
31368
31385
|
"text": "Meta"
|
|
31369
31386
|
},
|
|
31370
|
-
"default": "{ title: 'Components/
|
|
31371
|
-
"description": "
|
|
31372
|
-
},
|
|
31373
|
-
{
|
|
31374
|
-
"kind": "variable",
|
|
31375
|
-
"name": "Card",
|
|
31376
|
-
"type": {
|
|
31377
|
-
"text": "Story"
|
|
31378
|
-
},
|
|
31379
|
-
"default": "{ ...DefaultParams, name: 'Card', render: (args) => html` <gds-card> <gds-rich-text> <h1> The Starship <small>SS Endeavor</small> <mark>Exploration Class</mark> </h1> <h2>Heading one</h2> <h3>Heading test</h3> <p> The <strong>SS Endeavor</strong> is a state-of-the-art exploration class starship designed for deep space missions. Equipped with advanced technology and robust systems, it aims to expand our understanding of the universe. With a focus on <em>interstellar travel</em>, the SS Endeavor features a unique propulsion system that allows for faster-than-light travel. Its mission is to explore uncharted territories and gather data on distant celestial bodies. <a href=\"#\">Link</a> </p> <figure> <img src=\"https://placehold.co/600x400\" alt=\"SS Endeavor Starship\" /> <figcaption> Artist's rendition of the SS Endeavor in flight. </figcaption> </figure> <blockquote> <p> \"The SS Endeavor represents the pinnacle of human engineering and ambition. It is not just a vessel; it is our gateway to the stars.\" <cite>— Dr. Amelia Carter, Chief Engineer</cite> </p> </blockquote> <p> For detailed specifications, please refer to the <a href=\"javascript:;\" onclick=\"console.log('Accessing starship specifications')\" >technical documentation</a >. The SS Endeavor is equipped with cutting-edge systems that ensure the safety and efficiency of its crew during long-duration missions. </p> <p> Furthermore, <mark>SS Endeavor</mark> is designed with a modular approach, allowing for easy <code>upgrades</code> and <code>maintenance</code>. </p> <h2>Specifications</h2> <ul> <li> Length: 150 meters Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </li> <li>Width: 50 meters</li> <li>Height: 30 meters</li> <li>Crew Capacity: 100 personnel</li> <li>Propulsion: Quantum Slipstream Drive</li> <li>Maximum Speed: 10 light-years per hour</li> </ul> <hr /> <h2>One digit list</h2> <ol> <li> Conduct scientific research on exoplanets, focusing on atmospheric composition <a href=\"#\">Inline link</a> and potential habitability. </li> <li> Establish contact with potential extraterrestrial civilizations through advanced signal detection and transmission protocols. </li> <li> Collect comprehensive data on diverse cosmic phenomena, including black hole dynamics, supernova remnants, and dark matter distribution. </li> <li> Test new technologies in real-world scenarios, specifically advanced propulsion systems for interstellar travel. </li> <li> Test new technologies in real-world scenarios, implementing closed-loop life support systems for long-duration space missions. </li> </ol> <h2>Two digit list</h2> <ol> <li> Conduct scientific research on exoplanets, focusing on atmospheric composition <a href=\"#\">Inline link</a> and potential habitability. </li> <li> Establish contact with potential extraterrestrial civilizations through advanced signal detection and transmission protocols. </li> <li> Collect comprehensive data on diverse cosmic phenomena, including black hole dynamics, supernova remnants, and dark matter distribution. </li> <li> Test new technologies in real-world scenarios, specifically advanced propulsion systems for interstellar travel. </li> <li> Test new technologies in real-world scenarios, implementing closed-loop life support systems for long-duration space missions. </li> <li> Test new technologies in real-world scenarios, evaluating the effectiveness of advanced radiation shielding materials. </li> <li> Test new technologies in real-world scenarios, deploying autonomous robotic systems for deep-space exploration and resource extraction. </li> <li> Test new technologies in real-world scenarios, analyzing the performance of quantum communication networks in space. </li> <li> Test new technologies in real-world scenarios, using advanced AI for real time data analysis and decision making. </li> <li> Investigate the origins and evolution of the universe through high-resolution astronomical observations. </li> <li> Develop and deploy advanced sensor arrays for detecting gravitational waves and other subtle cosmic signals. </li> <li> Analyze asteroid compositions to understand the early solar system and potential resources. </li> <li> Map the galactic structure with unprecedented accuracy, revealing hidden star systems and nebula. </li> <li> Study the effects of prolonged space travel on human physiology and psychology, preparing for future interstellar journeys. </li> <li> Create detailed models of planetary formation and evolution, improving our understanding of planet diversity. </li> <li> Explore the possibility of utilizing advanced energy sources, like fusion reactors, for deep space exploration. </li> </ol> <h3>Research Areas</h3> <details name=\"named-details\"> <summary>Focus Areas</summary> <p>The SS Endeavor will focus on the following research areas:</p> <ul> <li>Astrobiology</li> <li>Exoplanetary geology</li> <li>Astrophysics and cosmology</li> <li>Space weather and its effects on technology</li> </ul> </details> <details name=\"named-details\"> <summary>Exploration Objectives</summary> <p> The SS Endeavor aims to achieve significant breakthroughs in the following exploration objectives: </p> <ul> <li> Mapping the surface of Mars for potential human colonization </li> <li>Studying the atmospheres of gas giants</li> <li>Investigating the potential for life on Europa</li> <li>Understanding the dynamics of asteroid belts</li> </ul> </details> <details name=\"named-details\"> <summary>Technological Innovations</summary> <p> The SS Endeavor will develop and implement cutting-edge technologies in these areas: </p> <ul> <li>Advanced propulsion systems for deep space travel</li> <li>Autonomous robotic systems for planetary exploration</li> <li> Next-generation communication systems for interstellar data transmission </li> <li>Innovative life support systems for long-duration missions</li> </ul> </details> <p> In summary, the <strong>SS Endeavor</strong> is poised to lead humanity's next great leap into the cosmos. <s>With the right investments and support,</s> its missions will pave the way for future exploration and discovery. <mark>Join us</mark> as we embark on this exciting journey into the unknown. </p> <table> <thead> <tr> <th>Component</th> <th>Details</th> <th>Function</th> </tr> </thead> <tbody> <tr> <td>Life Support System</td> <td>Advanced recycling and oxygen generation</td> <td>Ensures crew survival during long missions</td> </tr> <tr> <td>Navigation System</td> <td>AI-assisted star mapping</td> <td>Guides the ship through uncharted space</td> </tr> <tr> <td>Defensive Systems</td> <td>Energy shields and hull plating</td> <td>Protects against cosmic threats</td> </tr> <tr> <td>Scientific Labs</td> <td>Equipped for various research disciplines</td> <td>Facilitates on-board experiments</td> </tr> <tr> <td>Propulsion System</td> <td>Quantum Slipstream Drive</td> <td>Enables faster-than-light travel</td> </tr> </tbody> </table> <h2>Iframe</h2> <iframe src=\"https://example.com/\" height=\"400\"></iframe> </gds-rich-text> </gds-card> `, }"
|
|
31387
|
+
"default": "{ title: 'Components/Radio', component: 'gds-radio-group', subcomponents: { GdsRadio: 'gds-radio' }, tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-radio-group'), }, }",
|
|
31388
|
+
"description": "A radio button is a form element that allows users to select one of the predefined set of choices.<br/>\nThey are grouped using a radio group component which manages selection, keyboard navigation, and validation.\n\nGroups support vertical and horizontal layouts, and can be sized to fit different space requirements."
|
|
31380
31389
|
},
|
|
31381
31390
|
{
|
|
31382
31391
|
"kind": "variable",
|
|
31383
|
-
"name": "
|
|
31392
|
+
"name": "RadioButton",
|
|
31384
31393
|
"type": {
|
|
31385
31394
|
"text": "Story"
|
|
31386
31395
|
},
|
|
31387
|
-
"default": "{ ...DefaultParams, name: '
|
|
31388
|
-
"description": "
|
|
31396
|
+
"default": "{ ...DefaultParams, name: 'Radio', args: { label: 'Pick an option', supportingText: 'Label support text.', innerHTML: ` <gds-radio label=\"Radio Option 1\" supporting-text=\"Supporting text\" value=\"1\"></gds-radio> <gds-radio label=\"Radio Option 2\" supporting-text=\"Supporting text\" value=\"2\"></gds-radio> <gds-radio label=\"Radio Option 3\" supporting-text=\"Supporting text\" value=\"3\"></gds-radio>`, }, }",
|
|
31397
|
+
"description": "Radio buttons allow users to select a single option from a list of two or more mutually exclusive options.<br />\nEach radio button must have both a label and a value.\n\nUsage:\n\n```html\n<gds-radio-group label=\"Select an option\">\n <gds-radio label=\"Option 1\" value=\"1\"></gds-radio>\n <gds-radio label=\"Option 2\" value=\"2\"></gds-radio>\n</gds-radio-group>\n```\n\nInteractive example with supporting texts:"
|
|
31389
31398
|
},
|
|
31390
31399
|
{
|
|
31391
31400
|
"kind": "variable",
|
|
31392
|
-
"name": "
|
|
31401
|
+
"name": "Validation",
|
|
31393
31402
|
"type": {
|
|
31394
31403
|
"text": "Story"
|
|
31395
31404
|
},
|
|
31396
|
-
"default": "{ ...DefaultParams, name: '
|
|
31397
|
-
"description": "
|
|
31405
|
+
"default": "{ ...DefaultParams, name: 'Validation', render: () => html` <form method=\"dialog\"> <gds-flex flex-direction=\"column\" align-items=\"flex-start\" gap=\"m\"> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text for the group\" show-extended-supporting-text .validator=${{ validate: (el: GdsRadioGroup) => { if (!el.value) return [ { ...el.validity, valid: false, customError: true }, 'This is required', ] }, }} > <span slot=\"extended-supporting-text\"> Extended supporting text for the group </span> <gds-radio label=\"Radio Label\" value=\"1\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\" supporting-text=\"Example support text\" ></gds-radio> </gds-radio-group> <gds-button type=\"submit\">Submit</gds-button> </gds-flex> </form> `, }",
|
|
31406
|
+
"description": "Radio groups support validation using Green Core's [form validation API](/docs/components-form-validation-documentation--docs).\n\nThe error message appears below the radio group, and can be set either trough a validator, or explicctly using the using the `error-message` attribute.\n\nIf you click on 'submit' first on the example below it will validate the radio group and show the error message."
|
|
31398
31407
|
},
|
|
31399
31408
|
{
|
|
31400
31409
|
"kind": "variable",
|
|
31401
|
-
"name": "
|
|
31410
|
+
"name": "DosAndDonts",
|
|
31402
31411
|
"type": {
|
|
31403
31412
|
"text": "Story"
|
|
31404
31413
|
},
|
|
31405
|
-
"default": "{ ...DefaultParams, name: '
|
|
31406
|
-
"description": "`gds-rich-text` has built-in support for details html element.\n\nThe details element is a disclosure widget from HTML5 that can be used to hide or show additional content."
|
|
31414
|
+
"default": "{ ...DefaultParams, name: \"Do's and don'ts\", render: () => html` <gds-flex gap=\"xl\"> <gds-flex gap=\"l\" flex-direction=\"column\" flex=\"1\"> <gds-card align-items=\"center\" flex-direction=\"row\" gap=\"2xs\" padding=\"s\" variant=\"positive\" > <gds-icon-circle-check></gds-icon-circle-check> <gds-text tag=\"small\">Do provide both Label and Value</gds-text> </gds-card> <gds-card align-items=\"flex-start\" gap=\"m\"> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text\"> <span slot=\"extended-supporting-text\"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </span> <gds-radio label=\"Radio Label\" value=\"1\"></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\"></gds-radio> </gds-radio-group> </gds-card> </gds-flex> <gds-flex gap=\"l\" flex-direction=\"column\" flex=\"1\"> <gds-card align-items=\"center\" flex-direction=\"row\" gap=\"2xs\" padding=\"s\" variant=\"negative\" > <gds-icon-cross-small></gds-icon-cross-small> <gds-text tag=\"small\">Never exclude the label</gds-text> </gds-card> <form method=\"dialog\"> <gds-card align-items=\"flex-start\" gap=\"m\"> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text\"> <span slot=\"extended-supporting-text\"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </span> <gds-radio value=\"1\"></gds-radio> <gds-radio value=\"2\"></gds-radio> </gds-radio-group> </gds-card> </form> </gds-flex> <gds-flex gap=\"l\" flex-direction=\"column\" flex=\"1\"> <gds-card align-items=\"center\" flex-direction=\"row\" gap=\"2xs\" padding=\"s\" variant=\"negative\" > <gds-icon-cross-small></gds-icon-cross-small> <gds-text tag=\"small\">Never exclude the value </gds-text> </gds-card> <form method=\"dialog\"> <gds-card align-items=\"flex-start\" gap=\"m\"> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text\"> <span slot=\"extended-supporting-text\"> Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. </span> <gds-radio label=\"Radio Label\"></gds-radio> <gds-radio label=\"Radio Label\"></gds-radio> </gds-radio-group> </gds-card> </form> </gds-flex> </gds-flex> `, }"
|
|
31407
31415
|
},
|
|
31408
31416
|
{
|
|
31409
31417
|
"kind": "variable",
|
|
31410
|
-
"name": "
|
|
31418
|
+
"name": "Disabled",
|
|
31411
31419
|
"type": {
|
|
31412
31420
|
"text": "Story"
|
|
31413
31421
|
},
|
|
31414
|
-
"default": "{ ...DefaultParams, name: '
|
|
31415
|
-
"description": "
|
|
31422
|
+
"default": "{ ...DefaultParams, name: 'Disabled', render: () => html` <div class=\"radio-group\"> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text for the group\" show-extended-supporting-text value=\"4\" > <span slot=\"extended-supporting-text\"> Extended supporting text for the group </span> <gds-radio label=\"Radio Label\" value=\"1\" disabled supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\" disabled supporting-text=\"Example support text\" ></gds-radio> </gds-radio-group> </div> `, }",
|
|
31423
|
+
"description": "Disabled radio buttons cannot be interacted with and appear visually muted.\n\nIn general, this state should never be used. Instead, aim to explain to the user why the choice is wrong in an error message and make sure they understand how to correct it."
|
|
31416
31424
|
},
|
|
31417
31425
|
{
|
|
31418
31426
|
"kind": "variable",
|
|
31419
|
-
"name": "
|
|
31427
|
+
"name": "Size",
|
|
31420
31428
|
"type": {
|
|
31421
31429
|
"text": "Story"
|
|
31422
31430
|
},
|
|
31423
|
-
"default": "{ ...DefaultParams, name: '
|
|
31424
|
-
"description": "
|
|
31431
|
+
"default": "{ ...DefaultParams, name: 'Size', render: () => html` <div class=\"radio-group\"> <gds-flex gap=\"xl\" margin=\"0 auto\"> <gds-flex gap=\"s\" flex-direction=\"column\" flex=\"1\"> <gds-text tag=\"small\">Size: Large(default)</gds-text> <gds-divider opacity=\"0.1\"></gds-divider> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text for the group\" value=\"4\" > <span slot=\"extended-supporting-text\"> Extended supporting text for the group </span> <gds-radio label=\"Radio Label\" value=\"1\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\" supporting-text=\"Example support text\" ></gds-radio> </gds-radio-group> </gds-flex> <gds-flex gap=\"s\" flex-direction=\"column\" flex=\"1\"> <gds-text tag=\"small\">Size: small</gds-text> <gds-divider opacity=\"0.1\"></gds-divider> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text for the group\" value=\"4\" size=\"small\" > <span slot=\"extended-supporting-text\"> Extended supporting text for the group </span> <gds-radio label=\"Radio Label\" value=\"1\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\" supporting-text=\"Example support text\" ></gds-radio> </gds-radio-group> </gds-flex> </gds-flex> </div> `, }",
|
|
31432
|
+
"description": "Radio buttons support two sizes:\n- Large (default): Standard size for most use cases\n- Small: Compact size for space-constrained layouts\n\nThe size can be set on the radio group and applies to all radio buttons within."
|
|
31425
31433
|
},
|
|
31426
31434
|
{
|
|
31427
31435
|
"kind": "variable",
|
|
31428
|
-
"name": "
|
|
31436
|
+
"name": "Direction",
|
|
31429
31437
|
"type": {
|
|
31430
31438
|
"text": "Story"
|
|
31431
31439
|
},
|
|
31432
|
-
"default": "{ ...DefaultParams, name: '
|
|
31433
|
-
"description": "
|
|
31440
|
+
"default": "{ ...DefaultParams, name: 'Direction', render: () => html` <div class=\"radio-group\"> <gds-flex gap=\"xl\" margin=\"0 auto\"> <gds-flex gap=\"s\" flex-direction=\"column\"> <gds-text tag=\"small\">Column (default)</gds-text> <gds-divider opacity=\"0.1\"></gds-divider> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text for the group\" value=\"4\" show-extended-supporting-text > <span slot=\"extended-supporting-text\"> Extended supporting text for the group </span> <gds-radio label=\"Radio Label\" value=\"1\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"3\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"4\" supporting-text=\"Example support text\" ></gds-radio> </gds-radio-group> </gds-flex> <gds-flex gap=\"s\" flex=\"1\" flex-direction=\"column\"> <gds-text tag=\"small\">Row</gds-text> <gds-divider opacity=\"0.1\"></gds-divider> <gds-radio-group label=\"Group Label\" supporting-text=\"Support text for the group\" value=\"4\" size=\"small\" direction=\"row\" show-extended-supporting-text > <span slot=\"extended-supporting-text\"> Extended supporting text for the group </span> <gds-radio label=\"Radio Label\" value=\"1\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"3\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"4\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"5\" supporting-text=\"Example support text\" ></gds-radio> <gds-radio label=\"Radio Label\" value=\"6\" supporting-text=\"Example support text\" ></gds-radio> </gds-radio-group> </gds-flex> </gds-flex> </div> `, }",
|
|
31441
|
+
"description": "Radio buttons can be arranged in two directions:\n- Column (default): Vertical stacking for clear separation\n- Row: Horizontal alignment for compact layouts that will break to new line when not enough space is available\n\nChoose the direction based on available space and number of options."
|
|
31434
31442
|
},
|
|
31435
31443
|
{
|
|
31436
31444
|
"kind": "variable",
|
|
31437
|
-
"name": "
|
|
31445
|
+
"name": "GroupLabel",
|
|
31438
31446
|
"type": {
|
|
31439
31447
|
"text": "Story"
|
|
31440
31448
|
},
|
|
31441
|
-
"default": "{ ...DefaultParams, name: '
|
|
31442
|
-
"description": "
|
|
31449
|
+
"default": "{ ...DefaultParams, name: 'Radio group label', render: () => html` <div class=\"radio-group\"> <gds-radio-group> <gds-radio label=\"Radio Label\" value=\"1\"></gds-radio> <gds-radio label=\"Radio Label\" value=\"2\"></gds-radio> </gds-radio-group> </div> `, }",
|
|
31450
|
+
"description": "While radio groups can be created without a label, it's recommended to always provide one for clarity and accessibility.\nThe label helps users understand what the options are for.\n\nIn certain cases when space is limited, the group label can be omitted."
|
|
31443
31451
|
}
|
|
31444
31452
|
],
|
|
31445
31453
|
"exports": [
|
|
@@ -31448,83 +31456,75 @@
|
|
|
31448
31456
|
"name": "default",
|
|
31449
31457
|
"declaration": {
|
|
31450
31458
|
"name": "meta",
|
|
31451
|
-
"module": "src/components/
|
|
31452
|
-
}
|
|
31453
|
-
},
|
|
31454
|
-
{
|
|
31455
|
-
"kind": "js",
|
|
31456
|
-
"name": "Card",
|
|
31457
|
-
"declaration": {
|
|
31458
|
-
"name": "Card",
|
|
31459
|
-
"module": "src/components/rich-text/rich-text.stories.ts"
|
|
31459
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31460
31460
|
}
|
|
31461
31461
|
},
|
|
31462
31462
|
{
|
|
31463
31463
|
"kind": "js",
|
|
31464
|
-
"name": "
|
|
31464
|
+
"name": "RadioButton",
|
|
31465
31465
|
"declaration": {
|
|
31466
|
-
"name": "
|
|
31467
|
-
"module": "src/components/
|
|
31466
|
+
"name": "RadioButton",
|
|
31467
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31468
31468
|
}
|
|
31469
31469
|
},
|
|
31470
31470
|
{
|
|
31471
31471
|
"kind": "js",
|
|
31472
|
-
"name": "
|
|
31472
|
+
"name": "Validation",
|
|
31473
31473
|
"declaration": {
|
|
31474
|
-
"name": "
|
|
31475
|
-
"module": "src/components/
|
|
31474
|
+
"name": "Validation",
|
|
31475
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31476
31476
|
}
|
|
31477
31477
|
},
|
|
31478
31478
|
{
|
|
31479
31479
|
"kind": "js",
|
|
31480
|
-
"name": "
|
|
31480
|
+
"name": "DosAndDonts",
|
|
31481
31481
|
"declaration": {
|
|
31482
|
-
"name": "
|
|
31483
|
-
"module": "src/components/
|
|
31482
|
+
"name": "DosAndDonts",
|
|
31483
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31484
31484
|
}
|
|
31485
31485
|
},
|
|
31486
31486
|
{
|
|
31487
31487
|
"kind": "js",
|
|
31488
|
-
"name": "
|
|
31488
|
+
"name": "Disabled",
|
|
31489
31489
|
"declaration": {
|
|
31490
|
-
"name": "
|
|
31491
|
-
"module": "src/components/
|
|
31490
|
+
"name": "Disabled",
|
|
31491
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31492
31492
|
}
|
|
31493
31493
|
},
|
|
31494
31494
|
{
|
|
31495
31495
|
"kind": "js",
|
|
31496
|
-
"name": "
|
|
31496
|
+
"name": "Size",
|
|
31497
31497
|
"declaration": {
|
|
31498
|
-
"name": "
|
|
31499
|
-
"module": "src/components/
|
|
31498
|
+
"name": "Size",
|
|
31499
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31500
31500
|
}
|
|
31501
31501
|
},
|
|
31502
31502
|
{
|
|
31503
31503
|
"kind": "js",
|
|
31504
|
-
"name": "
|
|
31504
|
+
"name": "Direction",
|
|
31505
31505
|
"declaration": {
|
|
31506
|
-
"name": "
|
|
31507
|
-
"module": "src/components/
|
|
31506
|
+
"name": "Direction",
|
|
31507
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31508
31508
|
}
|
|
31509
31509
|
},
|
|
31510
31510
|
{
|
|
31511
31511
|
"kind": "js",
|
|
31512
|
-
"name": "
|
|
31512
|
+
"name": "GroupLabel",
|
|
31513
31513
|
"declaration": {
|
|
31514
|
-
"name": "
|
|
31515
|
-
"module": "src/components/
|
|
31514
|
+
"name": "GroupLabel",
|
|
31515
|
+
"module": "src/components/radio/radio.stories.ts"
|
|
31516
31516
|
}
|
|
31517
31517
|
}
|
|
31518
31518
|
]
|
|
31519
31519
|
},
|
|
31520
31520
|
{
|
|
31521
31521
|
"kind": "javascript-module",
|
|
31522
|
-
"path": "src/components/
|
|
31522
|
+
"path": "src/components/radio/radio.styles.ts",
|
|
31523
31523
|
"declarations": [
|
|
31524
31524
|
{
|
|
31525
31525
|
"kind": "variable",
|
|
31526
31526
|
"name": "style",
|
|
31527
|
-
"default": "css` :host {
|
|
31527
|
+
"default": "css` :host { cursor: pointer; } :host([disabled]) { color: var(--gds-sys-color-content-disabled-01); cursor: default; } :host(:focus) { outline: none; } `"
|
|
31528
31528
|
}
|
|
31529
31529
|
],
|
|
31530
31530
|
"exports": [
|
|
@@ -31533,22 +31533,22 @@
|
|
|
31533
31533
|
"name": "default",
|
|
31534
31534
|
"declaration": {
|
|
31535
31535
|
"name": "style",
|
|
31536
|
-
"module": "src/components/
|
|
31536
|
+
"module": "src/components/radio/radio.styles.ts"
|
|
31537
31537
|
}
|
|
31538
31538
|
}
|
|
31539
31539
|
]
|
|
31540
31540
|
},
|
|
31541
31541
|
{
|
|
31542
31542
|
"kind": "javascript-module",
|
|
31543
|
-
"path": "src/components/
|
|
31543
|
+
"path": "src/components/radio/radio.ts",
|
|
31544
31544
|
"declarations": [],
|
|
31545
31545
|
"exports": [
|
|
31546
31546
|
{
|
|
31547
31547
|
"kind": "js",
|
|
31548
|
-
"name": "
|
|
31548
|
+
"name": "GdsRadio",
|
|
31549
31549
|
"declaration": {
|
|
31550
|
-
"name": "
|
|
31551
|
-
"module": "src/components/
|
|
31550
|
+
"name": "GdsRadio",
|
|
31551
|
+
"module": "src/components/radio/radio.ts"
|
|
31552
31552
|
}
|
|
31553
31553
|
}
|
|
31554
31554
|
]
|
|
@@ -35476,6 +35476,14 @@
|
|
|
35476
35476
|
"text": "Story"
|
|
35477
35477
|
},
|
|
35478
35478
|
"default": "{ args: { columns: Users.Columns, data: Users.Data, }, parameters: { docs: { description: { story: ` The table component dispatches events for various user interactions. **Pagination Events** - **gds-page-change**: Fired when the active page changes. Detail: \\`{ page: number }\\` - **gds-rows-change**: Fired when the rows per page value changes. Detail: \\`{ rows: number }\\` **Sorting Events** - **gds-sort-change**: Fired when sorting changes. Detail: \\`{ sortColumn: string, sortDirection: 'asc' | 'desc' }\\` **Data Events** - **gds-table-data-loaded**: Fired when data is successfully loaded - **gds-table-data-error**: Fired when data loading fails - **gds-table-selection**: Fired when row selection changes This example demonstrates listening to pagination and sorting events and displaying the current state. `, }, }, }, render: (args) => { const tableRef = createRef<any>() const state = { currentPage: 1, currentRows: 10, sortColumn: '', sortDirection: 'asc', } const handleDataLoaded = (e: CustomEvent) => { const table = tableRef.value if (table) render(Users.SlotContent(e.detail.rows), table) } const handlePageChange = (e: CustomEvent) => { console.log('🔔 Page change event:', e.detail) state.currentPage = e.detail.page const pageEl = document.querySelector('#page-status') if (pageEl) { pageEl.textContent = `Page: ${state.currentPage}` } } const handleRowsChange = (e: CustomEvent) => { console.log('🔔 Rows change event:', e.detail) state.currentRows = e.detail.rows const rowsEl = document.querySelector('#rows-status') if (rowsEl) { rowsEl.textContent = `Rows: ${state.currentRows}` } } const handleSortChange = (e: CustomEvent) => { console.log('🔔 Sort change event:', e.detail) state.sortColumn = e.detail.sortColumn state.sortDirection = e.detail.sortDirection const sortEl = document.querySelector('#sort-status') if (sortEl) { sortEl.textContent = `${state.sortColumn} (${state.sortDirection})` } } return html` <gds-flex flex-direction=\"column\" gap=\"l\"> <gds-flex flex-direction=\"column\" gap=\"m\"> <gds-card variant=\"secondary\" padding=\"m\" border-radius=\"m\"> <gds-flex flex-direction=\"column\" gap=\"s\"> <gds-text font=\"heading-s\">Event Monitor</gds-text> <gds-text font=\"detail-book-s\" color=\"neutral-01\"> Open your browser console (F12) to see event logs </gds-text> <gds-flex gap=\"m\"> <gds-flex flex-direction=\"column\" gap=\"xs\" flex=\"1\"> <gds-text font=\"detail-book-s\" color=\"neutral-01\"> Current Page </gds-text> <gds-text id=\"page-status\" font=\"body-regular-m\" color=\"primary\" > Page: ${state.currentPage} </gds-text> </gds-flex> <gds-flex flex-direction=\"column\" gap=\"xs\" flex=\"1\"> <gds-text font=\"detail-book-s\" color=\"neutral-01\"> Rows Per Page </gds-text> <gds-text id=\"rows-status\" font=\"body-regular-m\" color=\"primary\" > Rows: ${state.currentRows} </gds-text> </gds-flex> <gds-flex flex-direction=\"column\" gap=\"xs\" flex=\"1\"> <gds-text font=\"detail-book-s\" color=\"neutral-01\"> Sort Column </gds-text> <gds-text id=\"sort-status\" font=\"body-regular-m\" color=\"primary\" > ${state.sortColumn ? `${state.sortColumn} (${state.sortDirection})` : 'None'} </gds-text> </gds-flex> </gds-flex> </gds-flex> </gds-card> </gds-flex> <gds-table ${ref(tableRef)} .columns=\"${args.columns}\" .data=\"${args.data}\" rows=\"5\" selectable searchable settings @gds-table-data-loaded=${handleDataLoaded} @gds-page-change=${(e: CustomEvent) => handlePageChange(e)} @gds-rows-change=${(e: CustomEvent) => handleRowsChange(e)} @gds-sort-change=${(e: CustomEvent) => handleSortChange(e)} > </gds-table> </gds-flex> ` }, }"
|
|
35479
|
+
},
|
|
35480
|
+
{
|
|
35481
|
+
"kind": "variable",
|
|
35482
|
+
"name": "EdgeCase",
|
|
35483
|
+
"type": {
|
|
35484
|
+
"text": "Story"
|
|
35485
|
+
},
|
|
35486
|
+
"default": "{ args: { rows: 8, options: [8, 20], }, parameters: { docs: { description: { story: ` Demonstrates a pagination edge case where the selected page size exceeds the total number of rows. 1. Dataset has 13 rows total 2. Initial page size is 8 3. Change rows per page to 20 In this edge case, page navigation is hidden when only one page remains, while the rows-per-page selector stays visible so users can switch back to a smaller page size. `, }, }, }, render: (args) => { const columns = [ { key: 'id', label: 'ID', sortable: true }, { key: 'name', label: 'Name', sortable: true }, { key: 'status', label: 'Status', sortable: true }, ] const rows = Array.from({ length: 13 }, (_, i) => ({ id: i + 1, name: `User ${i + 1}`, status: i % 2 === 0 ? 'Active' : 'Inactive', })) const dataProvider = async (request: any) => { const start = (request.page - 1) * request.rows const end = start + request.rows return { rows: rows.slice(start, end), total: rows.length, } } return html` <gds-table headline=\"Pagination edge case\" summary=\"13 rows total with page-size switching between 8 and 20.\" .columns=${columns} .data=${dataProvider} .rows=${args.rows} .options=${args.options} > </gds-table> ` }, }"
|
|
35479
35487
|
}
|
|
35480
35488
|
],
|
|
35481
35489
|
"exports": [
|
|
@@ -35638,6 +35646,14 @@
|
|
|
35638
35646
|
"name": "Events",
|
|
35639
35647
|
"module": "src/components/table/table.stories.ts"
|
|
35640
35648
|
}
|
|
35649
|
+
},
|
|
35650
|
+
{
|
|
35651
|
+
"kind": "js",
|
|
35652
|
+
"name": "EdgeCase",
|
|
35653
|
+
"declaration": {
|
|
35654
|
+
"name": "EdgeCase",
|
|
35655
|
+
"module": "src/components/table/table.stories.ts"
|
|
35656
|
+
}
|
|
35641
35657
|
}
|
|
35642
35658
|
]
|
|
35643
35659
|
},
|
|
@@ -49050,6 +49066,228 @@
|
|
|
49050
49066
|
}
|
|
49051
49067
|
]
|
|
49052
49068
|
},
|
|
49069
|
+
{
|
|
49070
|
+
"kind": "javascript-module",
|
|
49071
|
+
"path": "src/bin/context-cli/migrate/engine.ts",
|
|
49072
|
+
"declarations": [
|
|
49073
|
+
{
|
|
49074
|
+
"kind": "variable",
|
|
49075
|
+
"name": "DEFAULT_SKIP_DIRS",
|
|
49076
|
+
"default": "new Set([ 'node_modules', '.git', 'dist', '.nx', '.cache', 'coverage', '.angular', '.next', '__pycache__', ])",
|
|
49077
|
+
"description": "Directories that are always skipped during file discovery."
|
|
49078
|
+
},
|
|
49079
|
+
{
|
|
49080
|
+
"kind": "function",
|
|
49081
|
+
"name": "discoverFiles",
|
|
49082
|
+
"return": {
|
|
49083
|
+
"type": {
|
|
49084
|
+
"text": ""
|
|
49085
|
+
}
|
|
49086
|
+
},
|
|
49087
|
+
"parameters": [
|
|
49088
|
+
{
|
|
49089
|
+
"name": "basePath",
|
|
49090
|
+
"type": {
|
|
49091
|
+
"text": "string"
|
|
49092
|
+
},
|
|
49093
|
+
"description": "Root directory to scan"
|
|
49094
|
+
},
|
|
49095
|
+
{
|
|
49096
|
+
"name": "extensions",
|
|
49097
|
+
"type": {
|
|
49098
|
+
"text": "Set<string>"
|
|
49099
|
+
},
|
|
49100
|
+
"description": "Set of extensions to include (e.g. `new Set(['.ts', '.html'])`)"
|
|
49101
|
+
},
|
|
49102
|
+
{
|
|
49103
|
+
"name": "skipDirs",
|
|
49104
|
+
"optional": true,
|
|
49105
|
+
"type": {
|
|
49106
|
+
"text": "Set<string>"
|
|
49107
|
+
},
|
|
49108
|
+
"description": "Directory names to skip (defaults to {@link DEFAULT_SKIP_DIRS})\n * "
|
|
49109
|
+
}
|
|
49110
|
+
],
|
|
49111
|
+
"description": "Discover all files under `basePath` whose extension is in `extensions`."
|
|
49112
|
+
},
|
|
49113
|
+
{
|
|
49114
|
+
"kind": "function",
|
|
49115
|
+
"name": "runMigrations",
|
|
49116
|
+
"return": {
|
|
49117
|
+
"type": {
|
|
49118
|
+
"text": ""
|
|
49119
|
+
}
|
|
49120
|
+
},
|
|
49121
|
+
"parameters": [
|
|
49122
|
+
{
|
|
49123
|
+
"name": "options",
|
|
49124
|
+
"type": {
|
|
49125
|
+
"text": "RunOptions"
|
|
49126
|
+
},
|
|
49127
|
+
"description": "Configuration for the migration run"
|
|
49128
|
+
}
|
|
49129
|
+
],
|
|
49130
|
+
"description": "Run one or more migration units against a directory tree.\n\nIn detect-only mode (default), files are scanned but never modified.\nIn apply mode (`apply: true`), each unit's `apply()` function is called\nand the result is written back to disk."
|
|
49131
|
+
}
|
|
49132
|
+
],
|
|
49133
|
+
"exports": [
|
|
49134
|
+
{
|
|
49135
|
+
"kind": "js",
|
|
49136
|
+
"name": "DEFAULT_SKIP_DIRS",
|
|
49137
|
+
"declaration": {
|
|
49138
|
+
"name": "DEFAULT_SKIP_DIRS",
|
|
49139
|
+
"module": "src/bin/context-cli/migrate/engine.ts"
|
|
49140
|
+
}
|
|
49141
|
+
},
|
|
49142
|
+
{
|
|
49143
|
+
"kind": "js",
|
|
49144
|
+
"name": "discoverFiles",
|
|
49145
|
+
"declaration": {
|
|
49146
|
+
"name": "discoverFiles",
|
|
49147
|
+
"module": "src/bin/context-cli/migrate/engine.ts"
|
|
49148
|
+
}
|
|
49149
|
+
},
|
|
49150
|
+
{
|
|
49151
|
+
"kind": "js",
|
|
49152
|
+
"name": "runMigrations",
|
|
49153
|
+
"declaration": {
|
|
49154
|
+
"name": "runMigrations",
|
|
49155
|
+
"module": "src/bin/context-cli/migrate/engine.ts"
|
|
49156
|
+
}
|
|
49157
|
+
}
|
|
49158
|
+
]
|
|
49159
|
+
},
|
|
49160
|
+
{
|
|
49161
|
+
"kind": "javascript-module",
|
|
49162
|
+
"path": "src/bin/context-cli/migrate/index.ts",
|
|
49163
|
+
"declarations": [
|
|
49164
|
+
{
|
|
49165
|
+
"kind": "variable",
|
|
49166
|
+
"name": "MIGRATE_HELP"
|
|
49167
|
+
},
|
|
49168
|
+
{
|
|
49169
|
+
"kind": "function",
|
|
49170
|
+
"name": "handleMigrate",
|
|
49171
|
+
"return": {
|
|
49172
|
+
"type": {
|
|
49173
|
+
"text": "Promise<void>"
|
|
49174
|
+
}
|
|
49175
|
+
},
|
|
49176
|
+
"parameters": [
|
|
49177
|
+
{
|
|
49178
|
+
"name": "args",
|
|
49179
|
+
"type": {
|
|
49180
|
+
"text": "ParsedArgs"
|
|
49181
|
+
}
|
|
49182
|
+
}
|
|
49183
|
+
],
|
|
49184
|
+
"description": "Route the `migrate` command to the appropriate subcommand."
|
|
49185
|
+
}
|
|
49186
|
+
],
|
|
49187
|
+
"exports": [
|
|
49188
|
+
{
|
|
49189
|
+
"kind": "js",
|
|
49190
|
+
"name": "MIGRATE_HELP",
|
|
49191
|
+
"declaration": {
|
|
49192
|
+
"name": "MIGRATE_HELP",
|
|
49193
|
+
"module": "src/bin/context-cli/migrate/index.ts"
|
|
49194
|
+
}
|
|
49195
|
+
},
|
|
49196
|
+
{
|
|
49197
|
+
"kind": "js",
|
|
49198
|
+
"name": "handleMigrate",
|
|
49199
|
+
"declaration": {
|
|
49200
|
+
"name": "handleMigrate",
|
|
49201
|
+
"module": "src/bin/context-cli/migrate/index.ts"
|
|
49202
|
+
}
|
|
49203
|
+
}
|
|
49204
|
+
]
|
|
49205
|
+
},
|
|
49206
|
+
{
|
|
49207
|
+
"kind": "javascript-module",
|
|
49208
|
+
"path": "src/bin/context-cli/migrate/registry.ts",
|
|
49209
|
+
"declarations": [
|
|
49210
|
+
{
|
|
49211
|
+
"kind": "function",
|
|
49212
|
+
"name": "discoverMigrationUnits",
|
|
49213
|
+
"return": {
|
|
49214
|
+
"type": {
|
|
49215
|
+
"text": ""
|
|
49216
|
+
}
|
|
49217
|
+
},
|
|
49218
|
+
"parameters": [
|
|
49219
|
+
{
|
|
49220
|
+
"name": "basePath",
|
|
49221
|
+
"optional": true,
|
|
49222
|
+
"type": {
|
|
49223
|
+
"text": "string"
|
|
49224
|
+
},
|
|
49225
|
+
"description": "Root `units/` directory to scan. Defaults to the\n co-located `./units` directory next to this module."
|
|
49226
|
+
}
|
|
49227
|
+
],
|
|
49228
|
+
"description": "Discover migration units from the `units/<major>/` directory structure."
|
|
49229
|
+
},
|
|
49230
|
+
{
|
|
49231
|
+
"kind": "function",
|
|
49232
|
+
"name": "getMigrationUnits",
|
|
49233
|
+
"return": {
|
|
49234
|
+
"type": {
|
|
49235
|
+
"text": ""
|
|
49236
|
+
}
|
|
49237
|
+
},
|
|
49238
|
+
"parameters": [
|
|
49239
|
+
{
|
|
49240
|
+
"name": "options",
|
|
49241
|
+
"optional": true,
|
|
49242
|
+
"type": {
|
|
49243
|
+
"text": "{\n major?: number\n id?: string\n includeDisabled?: boolean\n basePath?: string\n}"
|
|
49244
|
+
}
|
|
49245
|
+
},
|
|
49246
|
+
{
|
|
49247
|
+
"description": "Filter by target major version",
|
|
49248
|
+
"name": "options.major"
|
|
49249
|
+
},
|
|
49250
|
+
{
|
|
49251
|
+
"description": "Filter by exact unit ID",
|
|
49252
|
+
"name": "options.id"
|
|
49253
|
+
},
|
|
49254
|
+
{
|
|
49255
|
+
"description": "Include units with `enabled: false`",
|
|
49256
|
+
"name": "options.includeDisabled"
|
|
49257
|
+
},
|
|
49258
|
+
{
|
|
49259
|
+
"description": "Override the units directory (for tests)",
|
|
49260
|
+
"name": "options.basePath"
|
|
49261
|
+
}
|
|
49262
|
+
],
|
|
49263
|
+
"description": "Get migration units matching optional filter criteria.\n\nBy default only enabled units are returned. Set `includeDisabled: true`\nto include disabled units (useful for tooling / debugging)."
|
|
49264
|
+
}
|
|
49265
|
+
],
|
|
49266
|
+
"exports": [
|
|
49267
|
+
{
|
|
49268
|
+
"kind": "js",
|
|
49269
|
+
"name": "discoverMigrationUnits",
|
|
49270
|
+
"declaration": {
|
|
49271
|
+
"name": "discoverMigrationUnits",
|
|
49272
|
+
"module": "src/bin/context-cli/migrate/registry.ts"
|
|
49273
|
+
}
|
|
49274
|
+
},
|
|
49275
|
+
{
|
|
49276
|
+
"kind": "js",
|
|
49277
|
+
"name": "getMigrationUnits",
|
|
49278
|
+
"declaration": {
|
|
49279
|
+
"name": "getMigrationUnits",
|
|
49280
|
+
"module": "src/bin/context-cli/migrate/registry.ts"
|
|
49281
|
+
}
|
|
49282
|
+
}
|
|
49283
|
+
]
|
|
49284
|
+
},
|
|
49285
|
+
{
|
|
49286
|
+
"kind": "javascript-module",
|
|
49287
|
+
"path": "src/bin/context-cli/migrate/types.ts",
|
|
49288
|
+
"declarations": [],
|
|
49289
|
+
"exports": []
|
|
49290
|
+
},
|
|
49053
49291
|
{
|
|
49054
49292
|
"kind": "javascript-module",
|
|
49055
49293
|
"path": "src/components/breadcrumbs/breadcrumb/breadcrumb.component.ts",
|
|
@@ -233550,7 +233788,7 @@
|
|
|
233550
233788
|
},
|
|
233551
233789
|
{
|
|
233552
233790
|
"kind": "javascript-module",
|
|
233553
|
-
"path": "src/components/sensitive/
|
|
233791
|
+
"path": "src/components/sensitive/date/index.ts",
|
|
233554
233792
|
"declarations": [],
|
|
233555
233793
|
"exports": [
|
|
233556
233794
|
{
|
|
@@ -233558,19 +233796,19 @@
|
|
|
233558
233796
|
"name": "*",
|
|
233559
233797
|
"declaration": {
|
|
233560
233798
|
"name": "*",
|
|
233561
|
-
"module": "src/components/sensitive/
|
|
233799
|
+
"module": "src/components/sensitive/date/sensitive-date"
|
|
233562
233800
|
}
|
|
233563
233801
|
}
|
|
233564
233802
|
]
|
|
233565
233803
|
},
|
|
233566
233804
|
{
|
|
233567
233805
|
"kind": "javascript-module",
|
|
233568
|
-
"path": "src/components/sensitive/
|
|
233806
|
+
"path": "src/components/sensitive/date/sensitive-date.component.ts",
|
|
233569
233807
|
"declarations": [
|
|
233570
233808
|
{
|
|
233571
233809
|
"kind": "class",
|
|
233572
233810
|
"description": "",
|
|
233573
|
-
"name": "
|
|
233811
|
+
"name": "GdsSensitiveDate",
|
|
233574
233812
|
"members": [
|
|
233575
233813
|
{
|
|
233576
233814
|
"kind": "field",
|
|
@@ -233579,31 +233817,33 @@
|
|
|
233579
233817
|
"text": "boolean"
|
|
233580
233818
|
},
|
|
233581
233819
|
"default": "false",
|
|
233582
|
-
"description": "When true, hides the sensitive
|
|
233820
|
+
"description": "When true, hides the sensitive date.",
|
|
233583
233821
|
"attribute": "hide"
|
|
233584
233822
|
},
|
|
233585
233823
|
{
|
|
233586
233824
|
"kind": "field",
|
|
233587
|
-
"name": "
|
|
233825
|
+
"name": "value",
|
|
233588
233826
|
"type": {
|
|
233589
|
-
"text": "string"
|
|
233827
|
+
"text": "Date | string | undefined"
|
|
233590
233828
|
},
|
|
233591
|
-
"
|
|
233829
|
+
"description": "The date value to be formatted, either Date or ISO string.",
|
|
233592
233830
|
"inheritedFrom": {
|
|
233593
|
-
"name": "
|
|
233594
|
-
"module": "src/components/formatted-text/formatted-
|
|
233831
|
+
"name": "GdsFormattedDate",
|
|
233832
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
233595
233833
|
}
|
|
233596
233834
|
},
|
|
233597
233835
|
{
|
|
233598
233836
|
"kind": "field",
|
|
233599
|
-
"name": "
|
|
233837
|
+
"name": "format",
|
|
233600
233838
|
"type": {
|
|
233601
|
-
"text": "
|
|
233839
|
+
"text": "DateTimeFormat"
|
|
233602
233840
|
},
|
|
233603
|
-
"
|
|
233841
|
+
"default": "'dateOnlyNumbers'",
|
|
233842
|
+
"description": "Specifies the date format.",
|
|
233843
|
+
"attribute": "format",
|
|
233604
233844
|
"inheritedFrom": {
|
|
233605
|
-
"name": "
|
|
233606
|
-
"module": "src/components/formatted-text/
|
|
233845
|
+
"name": "GdsFormattedDate",
|
|
233846
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
233607
233847
|
}
|
|
233608
233848
|
},
|
|
233609
233849
|
{
|
|
@@ -233612,37 +233852,23 @@
|
|
|
233612
233852
|
"type": {
|
|
233613
233853
|
"text": "string | undefined"
|
|
233614
233854
|
},
|
|
233615
|
-
"description": "The locale used for
|
|
233855
|
+
"description": "The locale used for date formatting.",
|
|
233616
233856
|
"attribute": "locale",
|
|
233617
233857
|
"inheritedFrom": {
|
|
233618
|
-
"name": "
|
|
233619
|
-
"module": "src/components/formatted-text/
|
|
233620
|
-
}
|
|
233621
|
-
},
|
|
233622
|
-
{
|
|
233623
|
-
"kind": "field",
|
|
233624
|
-
"name": "currency",
|
|
233625
|
-
"type": {
|
|
233626
|
-
"text": "string | undefined"
|
|
233627
|
-
},
|
|
233628
|
-
"description": "The currency used when formatting numbers.",
|
|
233629
|
-
"attribute": "currency",
|
|
233630
|
-
"inheritedFrom": {
|
|
233631
|
-
"name": "GdsFormattedNumber",
|
|
233632
|
-
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
233858
|
+
"name": "GdsFormattedDate",
|
|
233859
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
233633
233860
|
}
|
|
233634
233861
|
},
|
|
233635
233862
|
{
|
|
233636
233863
|
"kind": "field",
|
|
233637
|
-
"name": "
|
|
233864
|
+
"name": "formattedValue",
|
|
233638
233865
|
"type": {
|
|
233639
|
-
"text": "
|
|
233866
|
+
"text": "string"
|
|
233640
233867
|
},
|
|
233641
|
-
"
|
|
233642
|
-
"attribute": "decimals",
|
|
233868
|
+
"readonly": true,
|
|
233643
233869
|
"inheritedFrom": {
|
|
233644
|
-
"name": "
|
|
233645
|
-
"module": "src/components/formatted-text/
|
|
233870
|
+
"name": "GdsFormattedText",
|
|
233871
|
+
"module": "src/components/formatted-text/formatted-text.ts"
|
|
233646
233872
|
}
|
|
233647
233873
|
},
|
|
233648
233874
|
{
|
|
@@ -234620,56 +234846,32 @@
|
|
|
234620
234846
|
"text": "boolean"
|
|
234621
234847
|
},
|
|
234622
234848
|
"default": "false",
|
|
234623
|
-
"description": "When true, hides the sensitive
|
|
234849
|
+
"description": "When true, hides the sensitive date.",
|
|
234624
234850
|
"fieldName": "hide"
|
|
234625
234851
|
},
|
|
234626
234852
|
{
|
|
234627
|
-
"name": "
|
|
234853
|
+
"name": "format",
|
|
234628
234854
|
"type": {
|
|
234629
|
-
"text": "
|
|
234855
|
+
"text": "DateTimeFormat"
|
|
234630
234856
|
},
|
|
234631
|
-
"
|
|
234632
|
-
"
|
|
234857
|
+
"default": "'dateOnlyNumbers'",
|
|
234858
|
+
"description": "Specifies the date format.",
|
|
234859
|
+
"fieldName": "format",
|
|
234633
234860
|
"inheritedFrom": {
|
|
234634
|
-
"name": "
|
|
234635
|
-
"module": "src/components/formatted-text/
|
|
234861
|
+
"name": "GdsFormattedDate",
|
|
234862
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
234636
234863
|
}
|
|
234637
234864
|
},
|
|
234638
234865
|
{
|
|
234639
|
-
"name": "
|
|
234866
|
+
"name": "locale",
|
|
234640
234867
|
"type": {
|
|
234641
234868
|
"text": "string | undefined"
|
|
234642
234869
|
},
|
|
234643
|
-
"description": "The
|
|
234644
|
-
"fieldName": "
|
|
234645
|
-
"inheritedFrom": {
|
|
234646
|
-
"name": "GdsFormattedNumber",
|
|
234647
|
-
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
234648
|
-
}
|
|
234649
|
-
},
|
|
234650
|
-
{
|
|
234651
|
-
"name": "decimals",
|
|
234652
|
-
"type": {
|
|
234653
|
-
"text": "number | undefined"
|
|
234654
|
-
},
|
|
234655
|
-
"description": "The number of decimal places to display.",
|
|
234656
|
-
"fieldName": "decimals",
|
|
234657
|
-
"inheritedFrom": {
|
|
234658
|
-
"name": "GdsFormattedNumber",
|
|
234659
|
-
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
234660
|
-
}
|
|
234661
|
-
},
|
|
234662
|
-
{
|
|
234663
|
-
"name": "format",
|
|
234664
|
-
"type": {
|
|
234665
|
-
"text": "NumberFormats"
|
|
234666
|
-
},
|
|
234667
|
-
"default": "'decimalsAndThousands'",
|
|
234668
|
-
"description": "Specifies the number format.",
|
|
234669
|
-
"fieldName": "format",
|
|
234870
|
+
"description": "The locale used for date formatting.",
|
|
234871
|
+
"fieldName": "locale",
|
|
234670
234872
|
"inheritedFrom": {
|
|
234671
|
-
"name": "
|
|
234672
|
-
"module": "src/components/formatted-text/
|
|
234873
|
+
"name": "GdsFormattedDate",
|
|
234874
|
+
"module": "src/components/formatted-text/date/formatted-date.component.ts"
|
|
234673
234875
|
}
|
|
234674
234876
|
},
|
|
234675
234877
|
{
|
|
@@ -234713,10 +234915,10 @@
|
|
|
234713
234915
|
}
|
|
234714
234916
|
],
|
|
234715
234917
|
"superclass": {
|
|
234716
|
-
"name": "
|
|
234717
|
-
"module": "/src/components/formatted-text/
|
|
234918
|
+
"name": "GdsFormattedDate",
|
|
234919
|
+
"module": "/src/components/formatted-text/date/formatted-date.component"
|
|
234718
234920
|
},
|
|
234719
|
-
"tagName": "gds-sensitive-
|
|
234921
|
+
"tagName": "gds-sensitive-date",
|
|
234720
234922
|
"customElement": true,
|
|
234721
234923
|
"events": [
|
|
234722
234924
|
{
|
|
@@ -234755,17 +234957,17 @@
|
|
|
234755
234957
|
"exports": [
|
|
234756
234958
|
{
|
|
234757
234959
|
"kind": "js",
|
|
234758
|
-
"name": "
|
|
234960
|
+
"name": "GdsSensitiveDate",
|
|
234759
234961
|
"declaration": {
|
|
234760
|
-
"name": "
|
|
234761
|
-
"module": "src/components/sensitive/
|
|
234962
|
+
"name": "GdsSensitiveDate",
|
|
234963
|
+
"module": "src/components/sensitive/date/sensitive-date.component.ts"
|
|
234762
234964
|
}
|
|
234763
234965
|
}
|
|
234764
234966
|
]
|
|
234765
234967
|
},
|
|
234766
234968
|
{
|
|
234767
234969
|
"kind": "javascript-module",
|
|
234768
|
-
"path": "src/components/sensitive/
|
|
234970
|
+
"path": "src/components/sensitive/date/sensitive-date.stories.ts",
|
|
234769
234971
|
"declarations": [
|
|
234770
234972
|
{
|
|
234771
234973
|
"kind": "variable",
|
|
@@ -234773,8 +234975,8 @@
|
|
|
234773
234975
|
"type": {
|
|
234774
234976
|
"text": "Meta"
|
|
234775
234977
|
},
|
|
234776
|
-
"default": "{ title: 'Components/Sensitive/
|
|
234777
|
-
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/
|
|
234978
|
+
"default": "{ title: 'Components/Sensitive/Date', component: 'gds-sensitive-date', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-date'), format: { control: { type: 'select' }, options: Object.keys(dateTimeFormats), }, }, }",
|
|
234979
|
+
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/date)\n\nGdsSensitiveDate displays a formatted date and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
|
|
234778
234980
|
},
|
|
234779
234981
|
{
|
|
234780
234982
|
"kind": "variable",
|
|
@@ -234782,7 +234984,7 @@
|
|
|
234782
234984
|
"type": {
|
|
234783
234985
|
"text": "Story"
|
|
234784
234986
|
},
|
|
234785
|
-
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-
|
|
234987
|
+
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-date .hide=${args.hide} .value=${args.value} .locale=${args.locale} .format=${args.format} ></gds-sensitive-date>`, }"
|
|
234786
234988
|
}
|
|
234787
234989
|
],
|
|
234788
234990
|
"exports": [
|
|
@@ -234791,7 +234993,7 @@
|
|
|
234791
234993
|
"name": "default",
|
|
234792
234994
|
"declaration": {
|
|
234793
234995
|
"name": "meta",
|
|
234794
|
-
"module": "src/components/sensitive/
|
|
234996
|
+
"module": "src/components/sensitive/date/sensitive-date.stories.ts"
|
|
234795
234997
|
}
|
|
234796
234998
|
},
|
|
234797
234999
|
{
|
|
@@ -234799,29 +235001,29 @@
|
|
|
234799
235001
|
"name": "Default",
|
|
234800
235002
|
"declaration": {
|
|
234801
235003
|
"name": "Default",
|
|
234802
|
-
"module": "src/components/sensitive/
|
|
235004
|
+
"module": "src/components/sensitive/date/sensitive-date.stories.ts"
|
|
234803
235005
|
}
|
|
234804
235006
|
}
|
|
234805
235007
|
]
|
|
234806
235008
|
},
|
|
234807
235009
|
{
|
|
234808
235010
|
"kind": "javascript-module",
|
|
234809
|
-
"path": "src/components/sensitive/
|
|
235011
|
+
"path": "src/components/sensitive/date/sensitive-date.ts",
|
|
234810
235012
|
"declarations": [],
|
|
234811
235013
|
"exports": [
|
|
234812
235014
|
{
|
|
234813
235015
|
"kind": "js",
|
|
234814
|
-
"name": "
|
|
235016
|
+
"name": "GdsSensitiveDate",
|
|
234815
235017
|
"declaration": {
|
|
234816
|
-
"name": "
|
|
234817
|
-
"module": "src/components/sensitive/
|
|
235018
|
+
"name": "GdsSensitiveDate",
|
|
235019
|
+
"module": "src/components/sensitive/date/sensitive-date.ts"
|
|
234818
235020
|
}
|
|
234819
235021
|
}
|
|
234820
235022
|
]
|
|
234821
235023
|
},
|
|
234822
235024
|
{
|
|
234823
235025
|
"kind": "javascript-module",
|
|
234824
|
-
"path": "src/components/sensitive/
|
|
235026
|
+
"path": "src/components/sensitive/number/index.ts",
|
|
234825
235027
|
"declarations": [],
|
|
234826
235028
|
"exports": [
|
|
234827
235029
|
{
|
|
@@ -234829,19 +235031,19 @@
|
|
|
234829
235031
|
"name": "*",
|
|
234830
235032
|
"declaration": {
|
|
234831
235033
|
"name": "*",
|
|
234832
|
-
"module": "src/components/sensitive/
|
|
235034
|
+
"module": "src/components/sensitive/number/sensitive-number"
|
|
234833
235035
|
}
|
|
234834
235036
|
}
|
|
234835
235037
|
]
|
|
234836
235038
|
},
|
|
234837
235039
|
{
|
|
234838
235040
|
"kind": "javascript-module",
|
|
234839
|
-
"path": "src/components/sensitive/
|
|
235041
|
+
"path": "src/components/sensitive/number/sensitive-number.component.ts",
|
|
234840
235042
|
"declarations": [
|
|
234841
235043
|
{
|
|
234842
235044
|
"kind": "class",
|
|
234843
235045
|
"description": "",
|
|
234844
|
-
"name": "
|
|
235046
|
+
"name": "GdsSensitiveNumber",
|
|
234845
235047
|
"members": [
|
|
234846
235048
|
{
|
|
234847
235049
|
"kind": "field",
|
|
@@ -234850,33 +235052,31 @@
|
|
|
234850
235052
|
"text": "boolean"
|
|
234851
235053
|
},
|
|
234852
235054
|
"default": "false",
|
|
234853
|
-
"description": "When true, hides the sensitive
|
|
235055
|
+
"description": "When true, hides the sensitive number.",
|
|
234854
235056
|
"attribute": "hide"
|
|
234855
235057
|
},
|
|
234856
235058
|
{
|
|
234857
235059
|
"kind": "field",
|
|
234858
|
-
"name": "
|
|
235060
|
+
"name": "formattedValue",
|
|
234859
235061
|
"type": {
|
|
234860
|
-
"text": "
|
|
235062
|
+
"text": "string"
|
|
234861
235063
|
},
|
|
234862
|
-
"
|
|
235064
|
+
"readonly": true,
|
|
234863
235065
|
"inheritedFrom": {
|
|
234864
|
-
"name": "
|
|
234865
|
-
"module": "src/components/formatted-text/
|
|
235066
|
+
"name": "GdsFormattedText",
|
|
235067
|
+
"module": "src/components/formatted-text/formatted-text.ts"
|
|
234866
235068
|
}
|
|
234867
235069
|
},
|
|
234868
235070
|
{
|
|
234869
235071
|
"kind": "field",
|
|
234870
|
-
"name": "
|
|
235072
|
+
"name": "value",
|
|
234871
235073
|
"type": {
|
|
234872
|
-
"text": "
|
|
235074
|
+
"text": "number | string | undefined"
|
|
234873
235075
|
},
|
|
234874
|
-
"
|
|
234875
|
-
"description": "Specifies the date format.",
|
|
234876
|
-
"attribute": "format",
|
|
235076
|
+
"description": "The numerical value to display.",
|
|
234877
235077
|
"inheritedFrom": {
|
|
234878
|
-
"name": "
|
|
234879
|
-
"module": "src/components/formatted-text/
|
|
235078
|
+
"name": "GdsFormattedNumber",
|
|
235079
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
234880
235080
|
}
|
|
234881
235081
|
},
|
|
234882
235082
|
{
|
|
@@ -234885,23 +235085,37 @@
|
|
|
234885
235085
|
"type": {
|
|
234886
235086
|
"text": "string | undefined"
|
|
234887
235087
|
},
|
|
234888
|
-
"description": "The locale used for
|
|
235088
|
+
"description": "The locale used for number formatting.",
|
|
234889
235089
|
"attribute": "locale",
|
|
234890
235090
|
"inheritedFrom": {
|
|
234891
|
-
"name": "
|
|
234892
|
-
"module": "src/components/formatted-text/
|
|
235091
|
+
"name": "GdsFormattedNumber",
|
|
235092
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
234893
235093
|
}
|
|
234894
235094
|
},
|
|
234895
235095
|
{
|
|
234896
235096
|
"kind": "field",
|
|
234897
|
-
"name": "
|
|
235097
|
+
"name": "currency",
|
|
234898
235098
|
"type": {
|
|
234899
|
-
"text": "string"
|
|
235099
|
+
"text": "string | undefined"
|
|
234900
235100
|
},
|
|
234901
|
-
"
|
|
235101
|
+
"description": "The currency used when formatting numbers.",
|
|
235102
|
+
"attribute": "currency",
|
|
234902
235103
|
"inheritedFrom": {
|
|
234903
|
-
"name": "
|
|
234904
|
-
"module": "src/components/formatted-text/formatted-
|
|
235104
|
+
"name": "GdsFormattedNumber",
|
|
235105
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
235106
|
+
}
|
|
235107
|
+
},
|
|
235108
|
+
{
|
|
235109
|
+
"kind": "field",
|
|
235110
|
+
"name": "decimals",
|
|
235111
|
+
"type": {
|
|
235112
|
+
"text": "number | undefined"
|
|
235113
|
+
},
|
|
235114
|
+
"description": "The number of decimal places to display.",
|
|
235115
|
+
"attribute": "decimals",
|
|
235116
|
+
"inheritedFrom": {
|
|
235117
|
+
"name": "GdsFormattedNumber",
|
|
235118
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
234905
235119
|
}
|
|
234906
235120
|
},
|
|
234907
235121
|
{
|
|
@@ -235879,32 +236093,56 @@
|
|
|
235879
236093
|
"text": "boolean"
|
|
235880
236094
|
},
|
|
235881
236095
|
"default": "false",
|
|
235882
|
-
"description": "When true, hides the sensitive
|
|
236096
|
+
"description": "When true, hides the sensitive number.",
|
|
235883
236097
|
"fieldName": "hide"
|
|
235884
236098
|
},
|
|
235885
236099
|
{
|
|
235886
|
-
"name": "
|
|
236100
|
+
"name": "locale",
|
|
235887
236101
|
"type": {
|
|
235888
|
-
"text": "
|
|
236102
|
+
"text": "string | undefined"
|
|
235889
236103
|
},
|
|
235890
|
-
"
|
|
235891
|
-
"
|
|
235892
|
-
"fieldName": "format",
|
|
236104
|
+
"description": "The locale used for number formatting.",
|
|
236105
|
+
"fieldName": "locale",
|
|
235893
236106
|
"inheritedFrom": {
|
|
235894
|
-
"name": "
|
|
235895
|
-
"module": "src/components/formatted-text/
|
|
236107
|
+
"name": "GdsFormattedNumber",
|
|
236108
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
235896
236109
|
}
|
|
235897
236110
|
},
|
|
235898
236111
|
{
|
|
235899
|
-
"name": "
|
|
236112
|
+
"name": "currency",
|
|
235900
236113
|
"type": {
|
|
235901
236114
|
"text": "string | undefined"
|
|
235902
236115
|
},
|
|
235903
|
-
"description": "The
|
|
235904
|
-
"fieldName": "
|
|
236116
|
+
"description": "The currency used when formatting numbers.",
|
|
236117
|
+
"fieldName": "currency",
|
|
235905
236118
|
"inheritedFrom": {
|
|
235906
|
-
"name": "
|
|
235907
|
-
"module": "src/components/formatted-text/
|
|
236119
|
+
"name": "GdsFormattedNumber",
|
|
236120
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
236121
|
+
}
|
|
236122
|
+
},
|
|
236123
|
+
{
|
|
236124
|
+
"name": "decimals",
|
|
236125
|
+
"type": {
|
|
236126
|
+
"text": "number | undefined"
|
|
236127
|
+
},
|
|
236128
|
+
"description": "The number of decimal places to display.",
|
|
236129
|
+
"fieldName": "decimals",
|
|
236130
|
+
"inheritedFrom": {
|
|
236131
|
+
"name": "GdsFormattedNumber",
|
|
236132
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
236133
|
+
}
|
|
236134
|
+
},
|
|
236135
|
+
{
|
|
236136
|
+
"name": "format",
|
|
236137
|
+
"type": {
|
|
236138
|
+
"text": "NumberFormats"
|
|
236139
|
+
},
|
|
236140
|
+
"default": "'decimalsAndThousands'",
|
|
236141
|
+
"description": "Specifies the number format.",
|
|
236142
|
+
"fieldName": "format",
|
|
236143
|
+
"inheritedFrom": {
|
|
236144
|
+
"name": "GdsFormattedNumber",
|
|
236145
|
+
"module": "src/components/formatted-text/number/formatted-number.component.ts"
|
|
235908
236146
|
}
|
|
235909
236147
|
},
|
|
235910
236148
|
{
|
|
@@ -235948,10 +236186,10 @@
|
|
|
235948
236186
|
}
|
|
235949
236187
|
],
|
|
235950
236188
|
"superclass": {
|
|
235951
|
-
"name": "
|
|
235952
|
-
"module": "/src/components/formatted-text/
|
|
236189
|
+
"name": "GdsFormattedNumber",
|
|
236190
|
+
"module": "/src/components/formatted-text/number/formatted-number.component"
|
|
235953
236191
|
},
|
|
235954
|
-
"tagName": "gds-sensitive-
|
|
236192
|
+
"tagName": "gds-sensitive-number",
|
|
235955
236193
|
"customElement": true,
|
|
235956
236194
|
"events": [
|
|
235957
236195
|
{
|
|
@@ -235990,17 +236228,17 @@
|
|
|
235990
236228
|
"exports": [
|
|
235991
236229
|
{
|
|
235992
236230
|
"kind": "js",
|
|
235993
|
-
"name": "
|
|
236231
|
+
"name": "GdsSensitiveNumber",
|
|
235994
236232
|
"declaration": {
|
|
235995
|
-
"name": "
|
|
235996
|
-
"module": "src/components/sensitive/
|
|
236233
|
+
"name": "GdsSensitiveNumber",
|
|
236234
|
+
"module": "src/components/sensitive/number/sensitive-number.component.ts"
|
|
235997
236235
|
}
|
|
235998
236236
|
}
|
|
235999
236237
|
]
|
|
236000
236238
|
},
|
|
236001
236239
|
{
|
|
236002
236240
|
"kind": "javascript-module",
|
|
236003
|
-
"path": "src/components/sensitive/
|
|
236241
|
+
"path": "src/components/sensitive/number/sensitive-number.stories.ts",
|
|
236004
236242
|
"declarations": [
|
|
236005
236243
|
{
|
|
236006
236244
|
"kind": "variable",
|
|
@@ -236008,8 +236246,8 @@
|
|
|
236008
236246
|
"type": {
|
|
236009
236247
|
"text": "Meta"
|
|
236010
236248
|
},
|
|
236011
|
-
"default": "{ title: 'Components/Sensitive/
|
|
236012
|
-
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/
|
|
236249
|
+
"default": "{ title: 'Components/Sensitive/Number', component: 'gds-sensitive-number', tags: ['autodocs'], argTypes: { ...argTablePropsFor('gds-sensitive-number'), format: { control: { type: 'select' }, options: Object.keys(numberFormats), }, currency: { type: 'string', }, decimals: { type: 'number', }, }, }",
|
|
236250
|
+
"description": "[Source code](https://github.com/seb-oss/green/tree/main/libs/core/src/components/sensitive/number)\n\nGdsSensitiveNumber displays a formatted number and optionally hides it using a blur effect\nwhen the 'hide' property is set to true."
|
|
236013
236251
|
},
|
|
236014
236252
|
{
|
|
236015
236253
|
"kind": "variable",
|
|
@@ -236017,7 +236255,7 @@
|
|
|
236017
236255
|
"type": {
|
|
236018
236256
|
"text": "Story"
|
|
236019
236257
|
},
|
|
236020
|
-
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-
|
|
236258
|
+
"default": "{ ...DefaultParams, render: (args) => html`<gds-sensitive-number .hide=${args.hide} .value=${args.value} .locale=${args.locale} .currency=${args.currency} .decimals=${args.decimals} ></gds-sensitive-number>`, }"
|
|
236021
236259
|
}
|
|
236022
236260
|
],
|
|
236023
236261
|
"exports": [
|
|
@@ -236026,7 +236264,7 @@
|
|
|
236026
236264
|
"name": "default",
|
|
236027
236265
|
"declaration": {
|
|
236028
236266
|
"name": "meta",
|
|
236029
|
-
"module": "src/components/sensitive/
|
|
236267
|
+
"module": "src/components/sensitive/number/sensitive-number.stories.ts"
|
|
236030
236268
|
}
|
|
236031
236269
|
},
|
|
236032
236270
|
{
|
|
@@ -236034,22 +236272,22 @@
|
|
|
236034
236272
|
"name": "Default",
|
|
236035
236273
|
"declaration": {
|
|
236036
236274
|
"name": "Default",
|
|
236037
|
-
"module": "src/components/sensitive/
|
|
236275
|
+
"module": "src/components/sensitive/number/sensitive-number.stories.ts"
|
|
236038
236276
|
}
|
|
236039
236277
|
}
|
|
236040
236278
|
]
|
|
236041
236279
|
},
|
|
236042
236280
|
{
|
|
236043
236281
|
"kind": "javascript-module",
|
|
236044
|
-
"path": "src/components/sensitive/
|
|
236282
|
+
"path": "src/components/sensitive/number/sensitive-number.ts",
|
|
236045
236283
|
"declarations": [],
|
|
236046
236284
|
"exports": [
|
|
236047
236285
|
{
|
|
236048
236286
|
"kind": "js",
|
|
236049
|
-
"name": "
|
|
236287
|
+
"name": "GdsSensitiveNumber",
|
|
236050
236288
|
"declaration": {
|
|
236051
|
-
"name": "
|
|
236052
|
-
"module": "src/components/sensitive/
|
|
236289
|
+
"name": "GdsSensitiveNumber",
|
|
236290
|
+
"module": "src/components/sensitive/number/sensitive-number.ts"
|
|
236053
236291
|
}
|
|
236054
236292
|
}
|
|
236055
236293
|
]
|
|
@@ -236579,16 +236817,16 @@
|
|
|
236579
236817
|
},
|
|
236580
236818
|
{
|
|
236581
236819
|
"kind": "javascript-module",
|
|
236582
|
-
"path": "src/generated/react/
|
|
236820
|
+
"path": "src/generated/react/div/index.ts",
|
|
236583
236821
|
"declarations": [
|
|
236584
236822
|
{
|
|
236585
236823
|
"kind": "function",
|
|
236586
|
-
"name": "
|
|
236824
|
+
"name": "GdsDiv",
|
|
236587
236825
|
"parameters": [
|
|
236588
236826
|
{
|
|
236589
236827
|
"name": "props",
|
|
236590
236828
|
"type": {
|
|
236591
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
236829
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<GdsDivClass>>\n > & { ref?: React.Ref<GdsDivClass> }"
|
|
236592
236830
|
}
|
|
236593
236831
|
}
|
|
236594
236832
|
]
|
|
@@ -236597,26 +236835,26 @@
|
|
|
236597
236835
|
"exports": [
|
|
236598
236836
|
{
|
|
236599
236837
|
"kind": "js",
|
|
236600
|
-
"name": "
|
|
236838
|
+
"name": "GdsDiv",
|
|
236601
236839
|
"declaration": {
|
|
236602
|
-
"name": "
|
|
236603
|
-
"module": "src/generated/react/
|
|
236840
|
+
"name": "GdsDiv",
|
|
236841
|
+
"module": "src/generated/react/div/index.ts"
|
|
236604
236842
|
}
|
|
236605
236843
|
}
|
|
236606
236844
|
]
|
|
236607
236845
|
},
|
|
236608
236846
|
{
|
|
236609
236847
|
"kind": "javascript-module",
|
|
236610
|
-
"path": "src/generated/react/
|
|
236848
|
+
"path": "src/generated/react/divider/index.ts",
|
|
236611
236849
|
"declarations": [
|
|
236612
236850
|
{
|
|
236613
236851
|
"kind": "function",
|
|
236614
|
-
"name": "
|
|
236852
|
+
"name": "GdsDivider",
|
|
236615
236853
|
"parameters": [
|
|
236616
236854
|
{
|
|
236617
236855
|
"name": "props",
|
|
236618
236856
|
"type": {
|
|
236619
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
236857
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<GdsDividerClass>>\n > & { ref?: React.Ref<GdsDividerClass> }"
|
|
236620
236858
|
}
|
|
236621
236859
|
}
|
|
236622
236860
|
]
|
|
@@ -236625,10 +236863,10 @@
|
|
|
236625
236863
|
"exports": [
|
|
236626
236864
|
{
|
|
236627
236865
|
"kind": "js",
|
|
236628
|
-
"name": "
|
|
236866
|
+
"name": "GdsDivider",
|
|
236629
236867
|
"declaration": {
|
|
236630
|
-
"name": "
|
|
236631
|
-
"module": "src/generated/react/
|
|
236868
|
+
"name": "GdsDivider",
|
|
236869
|
+
"module": "src/generated/react/divider/index.ts"
|
|
236632
236870
|
}
|
|
236633
236871
|
}
|
|
236634
236872
|
]
|
|
@@ -238262,16 +238500,16 @@
|
|
|
238262
238500
|
},
|
|
238263
238501
|
{
|
|
238264
238502
|
"kind": "javascript-module",
|
|
238265
|
-
"path": "src/generated/react/icons/icon-arrow-rotate-left
|
|
238503
|
+
"path": "src/generated/react/icons/icon-arrow-rotate-right-left/index.ts",
|
|
238266
238504
|
"declarations": [
|
|
238267
238505
|
{
|
|
238268
238506
|
"kind": "function",
|
|
238269
|
-
"name": "
|
|
238507
|
+
"name": "IconArrowRotateRightLeft",
|
|
238270
238508
|
"parameters": [
|
|
238271
238509
|
{
|
|
238272
238510
|
"name": "props",
|
|
238273
238511
|
"type": {
|
|
238274
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
238512
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconArrowRotateRightLeftClass>>\n > & { ref?: React.Ref<IconArrowRotateRightLeftClass> }"
|
|
238275
238513
|
}
|
|
238276
238514
|
}
|
|
238277
238515
|
]
|
|
@@ -238280,26 +238518,26 @@
|
|
|
238280
238518
|
"exports": [
|
|
238281
238519
|
{
|
|
238282
238520
|
"kind": "js",
|
|
238283
|
-
"name": "
|
|
238521
|
+
"name": "IconArrowRotateRightLeft",
|
|
238284
238522
|
"declaration": {
|
|
238285
|
-
"name": "
|
|
238286
|
-
"module": "src/generated/react/icons/icon-arrow-rotate-left
|
|
238523
|
+
"name": "IconArrowRotateRightLeft",
|
|
238524
|
+
"module": "src/generated/react/icons/icon-arrow-rotate-right-left/index.ts"
|
|
238287
238525
|
}
|
|
238288
238526
|
}
|
|
238289
238527
|
]
|
|
238290
238528
|
},
|
|
238291
238529
|
{
|
|
238292
238530
|
"kind": "javascript-module",
|
|
238293
|
-
"path": "src/generated/react/icons/icon-arrow-rotate-right
|
|
238531
|
+
"path": "src/generated/react/icons/icon-arrow-rotate-left-right/index.ts",
|
|
238294
238532
|
"declarations": [
|
|
238295
238533
|
{
|
|
238296
238534
|
"kind": "function",
|
|
238297
|
-
"name": "
|
|
238535
|
+
"name": "IconArrowRotateLeftRight",
|
|
238298
238536
|
"parameters": [
|
|
238299
238537
|
{
|
|
238300
238538
|
"name": "props",
|
|
238301
238539
|
"type": {
|
|
238302
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
238540
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconArrowRotateLeftRightClass>>\n > & { ref?: React.Ref<IconArrowRotateLeftRightClass> }"
|
|
238303
238541
|
}
|
|
238304
238542
|
}
|
|
238305
238543
|
]
|
|
@@ -238308,10 +238546,10 @@
|
|
|
238308
238546
|
"exports": [
|
|
238309
238547
|
{
|
|
238310
238548
|
"kind": "js",
|
|
238311
|
-
"name": "
|
|
238549
|
+
"name": "IconArrowRotateLeftRight",
|
|
238312
238550
|
"declaration": {
|
|
238313
|
-
"name": "
|
|
238314
|
-
"module": "src/generated/react/icons/icon-arrow-rotate-right
|
|
238551
|
+
"name": "IconArrowRotateLeftRight",
|
|
238552
|
+
"module": "src/generated/react/icons/icon-arrow-rotate-left-right/index.ts"
|
|
238315
238553
|
}
|
|
238316
238554
|
}
|
|
238317
238555
|
]
|
|
@@ -239578,16 +239816,16 @@
|
|
|
239578
239816
|
},
|
|
239579
239817
|
{
|
|
239580
239818
|
"kind": "javascript-module",
|
|
239581
|
-
"path": "src/generated/react/icons/icon-brand-
|
|
239819
|
+
"path": "src/generated/react/icons/icon-brand-spotify/index.ts",
|
|
239582
239820
|
"declarations": [
|
|
239583
239821
|
{
|
|
239584
239822
|
"kind": "function",
|
|
239585
|
-
"name": "
|
|
239823
|
+
"name": "IconBrandSpotify",
|
|
239586
239824
|
"parameters": [
|
|
239587
239825
|
{
|
|
239588
239826
|
"name": "props",
|
|
239589
239827
|
"type": {
|
|
239590
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
239828
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandSpotifyClass>>\n > & { ref?: React.Ref<IconBrandSpotifyClass> }"
|
|
239591
239829
|
}
|
|
239592
239830
|
}
|
|
239593
239831
|
]
|
|
@@ -239596,26 +239834,26 @@
|
|
|
239596
239834
|
"exports": [
|
|
239597
239835
|
{
|
|
239598
239836
|
"kind": "js",
|
|
239599
|
-
"name": "
|
|
239837
|
+
"name": "IconBrandSpotify",
|
|
239600
239838
|
"declaration": {
|
|
239601
|
-
"name": "
|
|
239602
|
-
"module": "src/generated/react/icons/icon-brand-
|
|
239839
|
+
"name": "IconBrandSpotify",
|
|
239840
|
+
"module": "src/generated/react/icons/icon-brand-spotify/index.ts"
|
|
239603
239841
|
}
|
|
239604
239842
|
}
|
|
239605
239843
|
]
|
|
239606
239844
|
},
|
|
239607
239845
|
{
|
|
239608
239846
|
"kind": "javascript-module",
|
|
239609
|
-
"path": "src/generated/react/icons/icon-brand-
|
|
239847
|
+
"path": "src/generated/react/icons/icon-brand-storybook/index.ts",
|
|
239610
239848
|
"declarations": [
|
|
239611
239849
|
{
|
|
239612
239850
|
"kind": "function",
|
|
239613
|
-
"name": "
|
|
239851
|
+
"name": "IconBrandStorybook",
|
|
239614
239852
|
"parameters": [
|
|
239615
239853
|
{
|
|
239616
239854
|
"name": "props",
|
|
239617
239855
|
"type": {
|
|
239618
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
239856
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconBrandStorybookClass>>\n > & { ref?: React.Ref<IconBrandStorybookClass> }"
|
|
239619
239857
|
}
|
|
239620
239858
|
}
|
|
239621
239859
|
]
|
|
@@ -239624,10 +239862,10 @@
|
|
|
239624
239862
|
"exports": [
|
|
239625
239863
|
{
|
|
239626
239864
|
"kind": "js",
|
|
239627
|
-
"name": "
|
|
239865
|
+
"name": "IconBrandStorybook",
|
|
239628
239866
|
"declaration": {
|
|
239629
|
-
"name": "
|
|
239630
|
-
"module": "src/generated/react/icons/icon-brand-
|
|
239867
|
+
"name": "IconBrandStorybook",
|
|
239868
|
+
"module": "src/generated/react/icons/icon-brand-storybook/index.ts"
|
|
239631
239869
|
}
|
|
239632
239870
|
}
|
|
239633
239871
|
]
|
|
@@ -244114,16 +244352,16 @@
|
|
|
244114
244352
|
},
|
|
244115
244353
|
{
|
|
244116
244354
|
"kind": "javascript-module",
|
|
244117
|
-
"path": "src/generated/react/icons/icon-pencil-
|
|
244355
|
+
"path": "src/generated/react/icons/icon-pencil-wave/index.ts",
|
|
244118
244356
|
"declarations": [
|
|
244119
244357
|
{
|
|
244120
244358
|
"kind": "function",
|
|
244121
|
-
"name": "
|
|
244359
|
+
"name": "IconPencilWave",
|
|
244122
244360
|
"parameters": [
|
|
244123
244361
|
{
|
|
244124
244362
|
"name": "props",
|
|
244125
244363
|
"type": {
|
|
244126
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
244364
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconPencilWaveClass>>\n > & { ref?: React.Ref<IconPencilWaveClass> }"
|
|
244127
244365
|
}
|
|
244128
244366
|
}
|
|
244129
244367
|
]
|
|
@@ -244132,26 +244370,26 @@
|
|
|
244132
244370
|
"exports": [
|
|
244133
244371
|
{
|
|
244134
244372
|
"kind": "js",
|
|
244135
|
-
"name": "
|
|
244373
|
+
"name": "IconPencilWave",
|
|
244136
244374
|
"declaration": {
|
|
244137
|
-
"name": "
|
|
244138
|
-
"module": "src/generated/react/icons/icon-pencil-
|
|
244375
|
+
"name": "IconPencilWave",
|
|
244376
|
+
"module": "src/generated/react/icons/icon-pencil-wave/index.ts"
|
|
244139
244377
|
}
|
|
244140
244378
|
}
|
|
244141
244379
|
]
|
|
244142
244380
|
},
|
|
244143
244381
|
{
|
|
244144
244382
|
"kind": "javascript-module",
|
|
244145
|
-
"path": "src/generated/react/icons/icon-pencil-
|
|
244383
|
+
"path": "src/generated/react/icons/icon-pencil-sparkle/index.ts",
|
|
244146
244384
|
"declarations": [
|
|
244147
244385
|
{
|
|
244148
244386
|
"kind": "function",
|
|
244149
|
-
"name": "
|
|
244387
|
+
"name": "IconPencilSparkle",
|
|
244150
244388
|
"parameters": [
|
|
244151
244389
|
{
|
|
244152
244390
|
"name": "props",
|
|
244153
244391
|
"type": {
|
|
244154
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
244392
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconPencilSparkleClass>>\n > & { ref?: React.Ref<IconPencilSparkleClass> }"
|
|
244155
244393
|
}
|
|
244156
244394
|
}
|
|
244157
244395
|
]
|
|
@@ -244160,10 +244398,10 @@
|
|
|
244160
244398
|
"exports": [
|
|
244161
244399
|
{
|
|
244162
244400
|
"kind": "js",
|
|
244163
|
-
"name": "
|
|
244401
|
+
"name": "IconPencilSparkle",
|
|
244164
244402
|
"declaration": {
|
|
244165
|
-
"name": "
|
|
244166
|
-
"module": "src/generated/react/icons/icon-pencil-
|
|
244403
|
+
"name": "IconPencilSparkle",
|
|
244404
|
+
"module": "src/generated/react/icons/icon-pencil-sparkle/index.ts"
|
|
244167
244405
|
}
|
|
244168
244406
|
}
|
|
244169
244407
|
]
|
|
@@ -244506,16 +244744,16 @@
|
|
|
244506
244744
|
},
|
|
244507
244745
|
{
|
|
244508
244746
|
"kind": "javascript-module",
|
|
244509
|
-
"path": "src/generated/react/icons/icon-
|
|
244747
|
+
"path": "src/generated/react/icons/icon-piggy-bank/index.ts",
|
|
244510
244748
|
"declarations": [
|
|
244511
244749
|
{
|
|
244512
244750
|
"kind": "function",
|
|
244513
|
-
"name": "
|
|
244751
|
+
"name": "IconPiggyBank",
|
|
244514
244752
|
"parameters": [
|
|
244515
244753
|
{
|
|
244516
244754
|
"name": "props",
|
|
244517
244755
|
"type": {
|
|
244518
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
244756
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconPiggyBankClass>>\n > & { ref?: React.Ref<IconPiggyBankClass> }"
|
|
244519
244757
|
}
|
|
244520
244758
|
}
|
|
244521
244759
|
]
|
|
@@ -244524,26 +244762,26 @@
|
|
|
244524
244762
|
"exports": [
|
|
244525
244763
|
{
|
|
244526
244764
|
"kind": "js",
|
|
244527
|
-
"name": "
|
|
244765
|
+
"name": "IconPiggyBank",
|
|
244528
244766
|
"declaration": {
|
|
244529
|
-
"name": "
|
|
244530
|
-
"module": "src/generated/react/icons/icon-
|
|
244767
|
+
"name": "IconPiggyBank",
|
|
244768
|
+
"module": "src/generated/react/icons/icon-piggy-bank/index.ts"
|
|
244531
244769
|
}
|
|
244532
244770
|
}
|
|
244533
244771
|
]
|
|
244534
244772
|
},
|
|
244535
244773
|
{
|
|
244536
244774
|
"kind": "javascript-module",
|
|
244537
|
-
"path": "src/generated/react/icons/icon-
|
|
244775
|
+
"path": "src/generated/react/icons/icon-pin/index.ts",
|
|
244538
244776
|
"declarations": [
|
|
244539
244777
|
{
|
|
244540
244778
|
"kind": "function",
|
|
244541
|
-
"name": "
|
|
244779
|
+
"name": "IconPin",
|
|
244542
244780
|
"parameters": [
|
|
244543
244781
|
{
|
|
244544
244782
|
"name": "props",
|
|
244545
244783
|
"type": {
|
|
244546
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
244784
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconPinClass>>\n > & { ref?: React.Ref<IconPinClass> }"
|
|
244547
244785
|
}
|
|
244548
244786
|
}
|
|
244549
244787
|
]
|
|
@@ -244552,26 +244790,26 @@
|
|
|
244552
244790
|
"exports": [
|
|
244553
244791
|
{
|
|
244554
244792
|
"kind": "js",
|
|
244555
|
-
"name": "
|
|
244793
|
+
"name": "IconPin",
|
|
244556
244794
|
"declaration": {
|
|
244557
|
-
"name": "
|
|
244558
|
-
"module": "src/generated/react/icons/icon-
|
|
244795
|
+
"name": "IconPin",
|
|
244796
|
+
"module": "src/generated/react/icons/icon-pin/index.ts"
|
|
244559
244797
|
}
|
|
244560
244798
|
}
|
|
244561
244799
|
]
|
|
244562
244800
|
},
|
|
244563
244801
|
{
|
|
244564
244802
|
"kind": "javascript-module",
|
|
244565
|
-
"path": "src/generated/react/icons/icon-
|
|
244803
|
+
"path": "src/generated/react/icons/icon-pie-chart/index.ts",
|
|
244566
244804
|
"declarations": [
|
|
244567
244805
|
{
|
|
244568
244806
|
"kind": "function",
|
|
244569
|
-
"name": "
|
|
244807
|
+
"name": "IconPieChart",
|
|
244570
244808
|
"parameters": [
|
|
244571
244809
|
{
|
|
244572
244810
|
"name": "props",
|
|
244573
244811
|
"type": {
|
|
244574
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
244812
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconPieChartClass>>\n > & { ref?: React.Ref<IconPieChartClass> }"
|
|
244575
244813
|
}
|
|
244576
244814
|
}
|
|
244577
244815
|
]
|
|
@@ -244580,10 +244818,10 @@
|
|
|
244580
244818
|
"exports": [
|
|
244581
244819
|
{
|
|
244582
244820
|
"kind": "js",
|
|
244583
|
-
"name": "
|
|
244821
|
+
"name": "IconPieChart",
|
|
244584
244822
|
"declaration": {
|
|
244585
|
-
"name": "
|
|
244586
|
-
"module": "src/generated/react/icons/icon-
|
|
244823
|
+
"name": "IconPieChart",
|
|
244824
|
+
"module": "src/generated/react/icons/icon-pie-chart/index.ts"
|
|
244587
244825
|
}
|
|
244588
244826
|
}
|
|
244589
244827
|
]
|
|
@@ -245262,16 +245500,16 @@
|
|
|
245262
245500
|
},
|
|
245263
245501
|
{
|
|
245264
245502
|
"kind": "javascript-module",
|
|
245265
|
-
"path": "src/generated/react/icons/icon-
|
|
245503
|
+
"path": "src/generated/react/icons/icon-safari/index.ts",
|
|
245266
245504
|
"declarations": [
|
|
245267
245505
|
{
|
|
245268
245506
|
"kind": "function",
|
|
245269
|
-
"name": "
|
|
245507
|
+
"name": "IconSafari",
|
|
245270
245508
|
"parameters": [
|
|
245271
245509
|
{
|
|
245272
245510
|
"name": "props",
|
|
245273
245511
|
"type": {
|
|
245274
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
245512
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconSafariClass>>\n > & { ref?: React.Ref<IconSafariClass> }"
|
|
245275
245513
|
}
|
|
245276
245514
|
}
|
|
245277
245515
|
]
|
|
@@ -245280,26 +245518,26 @@
|
|
|
245280
245518
|
"exports": [
|
|
245281
245519
|
{
|
|
245282
245520
|
"kind": "js",
|
|
245283
|
-
"name": "
|
|
245521
|
+
"name": "IconSafari",
|
|
245284
245522
|
"declaration": {
|
|
245285
|
-
"name": "
|
|
245286
|
-
"module": "src/generated/react/icons/icon-
|
|
245523
|
+
"name": "IconSafari",
|
|
245524
|
+
"module": "src/generated/react/icons/icon-safari/index.ts"
|
|
245287
245525
|
}
|
|
245288
245526
|
}
|
|
245289
245527
|
]
|
|
245290
245528
|
},
|
|
245291
245529
|
{
|
|
245292
245530
|
"kind": "javascript-module",
|
|
245293
|
-
"path": "src/generated/react/icons/icon-
|
|
245531
|
+
"path": "src/generated/react/icons/icon-school/index.ts",
|
|
245294
245532
|
"declarations": [
|
|
245295
245533
|
{
|
|
245296
245534
|
"kind": "function",
|
|
245297
|
-
"name": "
|
|
245535
|
+
"name": "IconSchool",
|
|
245298
245536
|
"parameters": [
|
|
245299
245537
|
{
|
|
245300
245538
|
"name": "props",
|
|
245301
245539
|
"type": {
|
|
245302
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
245540
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconSchoolClass>>\n > & { ref?: React.Ref<IconSchoolClass> }"
|
|
245303
245541
|
}
|
|
245304
245542
|
}
|
|
245305
245543
|
]
|
|
@@ -245308,10 +245546,10 @@
|
|
|
245308
245546
|
"exports": [
|
|
245309
245547
|
{
|
|
245310
245548
|
"kind": "js",
|
|
245311
|
-
"name": "
|
|
245549
|
+
"name": "IconSchool",
|
|
245312
245550
|
"declaration": {
|
|
245313
|
-
"name": "
|
|
245314
|
-
"module": "src/generated/react/icons/icon-
|
|
245551
|
+
"name": "IconSchool",
|
|
245552
|
+
"module": "src/generated/react/icons/icon-school/index.ts"
|
|
245315
245553
|
}
|
|
245316
245554
|
}
|
|
245317
245555
|
]
|
|
@@ -245570,16 +245808,16 @@
|
|
|
245570
245808
|
},
|
|
245571
245809
|
{
|
|
245572
245810
|
"kind": "javascript-module",
|
|
245573
|
-
"path": "src/generated/react/icons/icon-shield/index.ts",
|
|
245811
|
+
"path": "src/generated/react/icons/icon-shield-checked/index.ts",
|
|
245574
245812
|
"declarations": [
|
|
245575
245813
|
{
|
|
245576
245814
|
"kind": "function",
|
|
245577
|
-
"name": "
|
|
245815
|
+
"name": "IconShieldChecked",
|
|
245578
245816
|
"parameters": [
|
|
245579
245817
|
{
|
|
245580
245818
|
"name": "props",
|
|
245581
245819
|
"type": {
|
|
245582
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
245820
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconShieldCheckedClass>>\n > & { ref?: React.Ref<IconShieldCheckedClass> }"
|
|
245583
245821
|
}
|
|
245584
245822
|
}
|
|
245585
245823
|
]
|
|
@@ -245588,26 +245826,26 @@
|
|
|
245588
245826
|
"exports": [
|
|
245589
245827
|
{
|
|
245590
245828
|
"kind": "js",
|
|
245591
|
-
"name": "
|
|
245829
|
+
"name": "IconShieldChecked",
|
|
245592
245830
|
"declaration": {
|
|
245593
|
-
"name": "
|
|
245594
|
-
"module": "src/generated/react/icons/icon-shield/index.ts"
|
|
245831
|
+
"name": "IconShieldChecked",
|
|
245832
|
+
"module": "src/generated/react/icons/icon-shield-checked/index.ts"
|
|
245595
245833
|
}
|
|
245596
245834
|
}
|
|
245597
245835
|
]
|
|
245598
245836
|
},
|
|
245599
245837
|
{
|
|
245600
245838
|
"kind": "javascript-module",
|
|
245601
|
-
"path": "src/generated/react/icons/icon-shield
|
|
245839
|
+
"path": "src/generated/react/icons/icon-shield/index.ts",
|
|
245602
245840
|
"declarations": [
|
|
245603
245841
|
{
|
|
245604
245842
|
"kind": "function",
|
|
245605
|
-
"name": "
|
|
245843
|
+
"name": "IconShield",
|
|
245606
245844
|
"parameters": [
|
|
245607
245845
|
{
|
|
245608
245846
|
"name": "props",
|
|
245609
245847
|
"type": {
|
|
245610
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
245848
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconShieldClass>>\n > & { ref?: React.Ref<IconShieldClass> }"
|
|
245611
245849
|
}
|
|
245612
245850
|
}
|
|
245613
245851
|
]
|
|
@@ -245616,26 +245854,26 @@
|
|
|
245616
245854
|
"exports": [
|
|
245617
245855
|
{
|
|
245618
245856
|
"kind": "js",
|
|
245619
|
-
"name": "
|
|
245857
|
+
"name": "IconShield",
|
|
245620
245858
|
"declaration": {
|
|
245621
|
-
"name": "
|
|
245622
|
-
"module": "src/generated/react/icons/icon-shield
|
|
245859
|
+
"name": "IconShield",
|
|
245860
|
+
"module": "src/generated/react/icons/icon-shield/index.ts"
|
|
245623
245861
|
}
|
|
245624
245862
|
}
|
|
245625
245863
|
]
|
|
245626
245864
|
},
|
|
245627
245865
|
{
|
|
245628
245866
|
"kind": "javascript-module",
|
|
245629
|
-
"path": "src/generated/react/icons/icon-
|
|
245867
|
+
"path": "src/generated/react/icons/icon-shopping-bag/index.ts",
|
|
245630
245868
|
"declarations": [
|
|
245631
245869
|
{
|
|
245632
245870
|
"kind": "function",
|
|
245633
|
-
"name": "
|
|
245871
|
+
"name": "IconShoppingBag",
|
|
245634
245872
|
"parameters": [
|
|
245635
245873
|
{
|
|
245636
245874
|
"name": "props",
|
|
245637
245875
|
"type": {
|
|
245638
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
245876
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconShoppingBagClass>>\n > & { ref?: React.Ref<IconShoppingBagClass> }"
|
|
245639
245877
|
}
|
|
245640
245878
|
}
|
|
245641
245879
|
]
|
|
@@ -245644,26 +245882,26 @@
|
|
|
245644
245882
|
"exports": [
|
|
245645
245883
|
{
|
|
245646
245884
|
"kind": "js",
|
|
245647
|
-
"name": "
|
|
245885
|
+
"name": "IconShoppingBag",
|
|
245648
245886
|
"declaration": {
|
|
245649
|
-
"name": "
|
|
245650
|
-
"module": "src/generated/react/icons/icon-
|
|
245887
|
+
"name": "IconShoppingBag",
|
|
245888
|
+
"module": "src/generated/react/icons/icon-shopping-bag/index.ts"
|
|
245651
245889
|
}
|
|
245652
245890
|
}
|
|
245653
245891
|
]
|
|
245654
245892
|
},
|
|
245655
245893
|
{
|
|
245656
245894
|
"kind": "javascript-module",
|
|
245657
|
-
"path": "src/generated/react/icons/icon-
|
|
245895
|
+
"path": "src/generated/react/icons/icon-shield-crossed/index.ts",
|
|
245658
245896
|
"declarations": [
|
|
245659
245897
|
{
|
|
245660
245898
|
"kind": "function",
|
|
245661
|
-
"name": "
|
|
245899
|
+
"name": "IconShieldCrossed",
|
|
245662
245900
|
"parameters": [
|
|
245663
245901
|
{
|
|
245664
245902
|
"name": "props",
|
|
245665
245903
|
"type": {
|
|
245666
|
-
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<
|
|
245904
|
+
"text": "React.ComponentProps<\n ReturnType<typeof getReactComponent<IconShieldCrossedClass>>\n > & { ref?: React.Ref<IconShieldCrossedClass> }"
|
|
245667
245905
|
}
|
|
245668
245906
|
}
|
|
245669
245907
|
]
|
|
@@ -245672,10 +245910,10 @@
|
|
|
245672
245910
|
"exports": [
|
|
245673
245911
|
{
|
|
245674
245912
|
"kind": "js",
|
|
245675
|
-
"name": "
|
|
245913
|
+
"name": "IconShieldCrossed",
|
|
245676
245914
|
"declaration": {
|
|
245677
|
-
"name": "
|
|
245678
|
-
"module": "src/generated/react/icons/icon-
|
|
245915
|
+
"name": "IconShieldCrossed",
|
|
245916
|
+
"module": "src/generated/react/icons/icon-shield-crossed/index.ts"
|
|
245679
245917
|
}
|
|
245680
245918
|
}
|
|
245681
245919
|
]
|
|
@@ -247247,6 +247485,30 @@
|
|
|
247247
247485
|
}
|
|
247248
247486
|
}
|
|
247249
247487
|
]
|
|
247488
|
+
},
|
|
247489
|
+
{
|
|
247490
|
+
"kind": "javascript-module",
|
|
247491
|
+
"path": "src/bin/context-cli/migrate/units/0/example.ts",
|
|
247492
|
+
"declarations": [
|
|
247493
|
+
{
|
|
247494
|
+
"kind": "variable",
|
|
247495
|
+
"name": "unit",
|
|
247496
|
+
"type": {
|
|
247497
|
+
"text": "MigrationUnit"
|
|
247498
|
+
},
|
|
247499
|
+
"default": "{ id: 'theme-to-mode', enabled: false, // Example only — not a real migration summary: '[Example] Replace deprecated gds-theme / gdsTheme with gds-mode / gdsMode', exampleBefore: [ '<!-- HTML attribute -->', '<div gds-theme=\"dark\"><gds-button>Click</gds-button></div>', '', '<!-- Angular property binding -->', '<gds-card [gdsTheme]=\"theme\"></gds-card>', '', '<!-- Angular explicit attr binding -->', '<gds-card [attr.gds-theme]=\"theme\"></gds-card>', '', '<!-- React JSX prop -->', '<GdsCard gdsTheme=\"dark\" />', '<GdsCard gdsTheme={theme} />', '', '// JS property assignment', 'el.gdsTheme = \"dark\"', '', '// JS setAttribute', \"el.setAttribute('gds-theme', 'dark')\", ].join('\\n'), exampleAfter: [ '<!-- HTML attribute -->', '<div gds-mode=\"dark\"><gds-button>Click</gds-button></div>', '', '<!-- Angular property binding -->', '<gds-card [gdsMode]=\"theme\"></gds-card>', '', '<!-- Angular explicit attr binding -->', '<gds-card [attr.gds-mode]=\"theme\"></gds-card>', '', '<!-- React JSX prop -->', '<GdsCard gdsMode=\"dark\" />', '<GdsCard gdsMode={theme} />', '', '// JS property assignment', 'el.gdsMode = \"dark\"', '', '// JS setAttribute', \"el.setAttribute('gds-mode', 'dark')\", ].join('\\n'), fileExtensions: ['.html', '.ts', '.tsx'], safe: true, detect(filePath: string, content: string): MigrationMatch[] { return detectVariants(filePath, content, VARIANTS) }, apply(_filePath: string, content: string): string | null { return applyVariants(content, VARIANTS) }, }"
|
|
247500
|
+
}
|
|
247501
|
+
],
|
|
247502
|
+
"exports": [
|
|
247503
|
+
{
|
|
247504
|
+
"kind": "js",
|
|
247505
|
+
"name": "unit",
|
|
247506
|
+
"declaration": {
|
|
247507
|
+
"name": "unit",
|
|
247508
|
+
"module": "src/bin/context-cli/migrate/units/0/example.ts"
|
|
247509
|
+
}
|
|
247510
|
+
}
|
|
247511
|
+
]
|
|
247250
247512
|
}
|
|
247251
247513
|
]
|
|
247252
247514
|
}
|