@openproject/primer-view-components 0.14.0-rc.3ed4d950 → 0.14.0-rc.a3f82dbe
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/package.json +1 -1
- package/static/constants.json +12 -0
- package/static/info_arch.json +81 -0
- package/static/previews.json +26 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openproject/primer-view-components",
|
|
3
|
-
"version": "0.14.0-rc.
|
|
3
|
+
"version": "0.14.0-rc.a3f82dbe",
|
|
4
4
|
"description": "ViewComponents of the Primer Design System for OpenProject",
|
|
5
5
|
"main": "app/assets/javascripts/primer_view_components.js",
|
|
6
6
|
"module": "app/components/primer/primer.js",
|
package/static/constants.json
CHANGED
|
@@ -1360,6 +1360,18 @@
|
|
|
1360
1360
|
]
|
|
1361
1361
|
},
|
|
1362
1362
|
"Primer::OpenProject::PageHeader": {
|
|
1363
|
+
"BACK_BUTTON_ICON_OPTIONS": [
|
|
1364
|
+
"arrow-left",
|
|
1365
|
+
"chevron-left",
|
|
1366
|
+
"triangle-left"
|
|
1367
|
+
],
|
|
1368
|
+
"BACK_BUTTON_SIZE_OPTIONS": [
|
|
1369
|
+
"small",
|
|
1370
|
+
"medium",
|
|
1371
|
+
"large"
|
|
1372
|
+
],
|
|
1373
|
+
"DEFAULT_BACK_BUTTON_ICON": "arrow-left",
|
|
1374
|
+
"DEFAULT_BACK_BUTTON_SIZE": "medium",
|
|
1363
1375
|
"DEFAULT_HEADER_VARIANT": "medium",
|
|
1364
1376
|
"HEADER_VARIANT_OPTIONS": [
|
|
1365
1377
|
"large",
|
package/static/info_arch.json
CHANGED
|
@@ -15472,10 +15472,65 @@
|
|
|
15472
15472
|
"description": "{{link_to_system_arguments_docs}}"
|
|
15473
15473
|
}
|
|
15474
15474
|
]
|
|
15475
|
+
},
|
|
15476
|
+
{
|
|
15477
|
+
"name": "back_button",
|
|
15478
|
+
"description": "Optional back button prepend the title",
|
|
15479
|
+
"parameters": [
|
|
15480
|
+
{
|
|
15481
|
+
"name": "size",
|
|
15482
|
+
"type": "Symbol",
|
|
15483
|
+
"default": "N/A",
|
|
15484
|
+
"description": "One of `:large`, `:medium`, or `:small`."
|
|
15485
|
+
},
|
|
15486
|
+
{
|
|
15487
|
+
"name": "icon",
|
|
15488
|
+
"type": "String",
|
|
15489
|
+
"default": "N/A",
|
|
15490
|
+
"description": "One of `arrow-left`, `chevron-left`, or `triangle-left`."
|
|
15491
|
+
},
|
|
15492
|
+
{
|
|
15493
|
+
"name": "system_arguments",
|
|
15494
|
+
"type": "Hash",
|
|
15495
|
+
"default": "N/A",
|
|
15496
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
15497
|
+
}
|
|
15498
|
+
]
|
|
15499
|
+
},
|
|
15500
|
+
{
|
|
15501
|
+
"name": "breadcrumbs",
|
|
15502
|
+
"description": "Optional breadcrumbs above the title row",
|
|
15503
|
+
"parameters": [
|
|
15504
|
+
{
|
|
15505
|
+
"name": "items",
|
|
15506
|
+
"type": "Array<String, Hash>",
|
|
15507
|
+
"default": "N/A",
|
|
15508
|
+
"description": "Items is an array of strings, hash {href, text} or an anchor tag string"
|
|
15509
|
+
},
|
|
15510
|
+
{
|
|
15511
|
+
"name": "system_arguments",
|
|
15512
|
+
"type": "Hash",
|
|
15513
|
+
"default": "N/A",
|
|
15514
|
+
"description": "{{link_to_system_arguments_docs}}"
|
|
15515
|
+
}
|
|
15516
|
+
]
|
|
15475
15517
|
}
|
|
15476
15518
|
],
|
|
15477
15519
|
"methods": [
|
|
15520
|
+
{
|
|
15521
|
+
"name": "anchor_string_to_object",
|
|
15522
|
+
"description": "transform anchor tag strings to {href, text} objects\ne.g \"\\u003ca href=\\\"/admin\\\"\\u003eAdministration\\u003c/a\\u003e\"",
|
|
15523
|
+
"parameters": [
|
|
15524
|
+
|
|
15525
|
+
]
|
|
15526
|
+
},
|
|
15527
|
+
{
|
|
15528
|
+
"name": "anchor_tag_string?",
|
|
15529
|
+
"description": "Check if the item is an anchor tag string e.g \"\\u003ca href=\\\"/admin\\\"\\u003eAdministration\\u003c/a\\u003e\"",
|
|
15530
|
+
"parameters": [
|
|
15478
15531
|
|
|
15532
|
+
]
|
|
15533
|
+
}
|
|
15479
15534
|
],
|
|
15480
15535
|
"previews": [
|
|
15481
15536
|
{
|
|
@@ -15529,6 +15584,32 @@
|
|
|
15529
15584
|
"color-contrast"
|
|
15530
15585
|
]
|
|
15531
15586
|
}
|
|
15587
|
+
},
|
|
15588
|
+
{
|
|
15589
|
+
"preview_path": "primer/open_project/page_header/back_button",
|
|
15590
|
+
"name": "back_button",
|
|
15591
|
+
"snapshot": "false",
|
|
15592
|
+
"skip_rules": {
|
|
15593
|
+
"wont_fix": [
|
|
15594
|
+
"region"
|
|
15595
|
+
],
|
|
15596
|
+
"will_fix": [
|
|
15597
|
+
"color-contrast"
|
|
15598
|
+
]
|
|
15599
|
+
}
|
|
15600
|
+
},
|
|
15601
|
+
{
|
|
15602
|
+
"preview_path": "primer/open_project/page_header/breadcrumbs",
|
|
15603
|
+
"name": "breadcrumbs",
|
|
15604
|
+
"snapshot": "false",
|
|
15605
|
+
"skip_rules": {
|
|
15606
|
+
"wont_fix": [
|
|
15607
|
+
"region"
|
|
15608
|
+
],
|
|
15609
|
+
"will_fix": [
|
|
15610
|
+
"color-contrast"
|
|
15611
|
+
]
|
|
15612
|
+
}
|
|
15532
15613
|
}
|
|
15533
15614
|
],
|
|
15534
15615
|
"subcomponents": [
|
package/static/previews.json
CHANGED
|
@@ -4755,6 +4755,32 @@
|
|
|
4755
4755
|
"color-contrast"
|
|
4756
4756
|
]
|
|
4757
4757
|
}
|
|
4758
|
+
},
|
|
4759
|
+
{
|
|
4760
|
+
"preview_path": "primer/open_project/page_header/back_button",
|
|
4761
|
+
"name": "back_button",
|
|
4762
|
+
"snapshot": "false",
|
|
4763
|
+
"skip_rules": {
|
|
4764
|
+
"wont_fix": [
|
|
4765
|
+
"region"
|
|
4766
|
+
],
|
|
4767
|
+
"will_fix": [
|
|
4768
|
+
"color-contrast"
|
|
4769
|
+
]
|
|
4770
|
+
}
|
|
4771
|
+
},
|
|
4772
|
+
{
|
|
4773
|
+
"preview_path": "primer/open_project/page_header/breadcrumbs",
|
|
4774
|
+
"name": "breadcrumbs",
|
|
4775
|
+
"snapshot": "false",
|
|
4776
|
+
"skip_rules": {
|
|
4777
|
+
"wont_fix": [
|
|
4778
|
+
"region"
|
|
4779
|
+
],
|
|
4780
|
+
"will_fix": [
|
|
4781
|
+
"color-contrast"
|
|
4782
|
+
]
|
|
4783
|
+
}
|
|
4758
4784
|
}
|
|
4759
4785
|
]
|
|
4760
4786
|
},
|