Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/datagrid functionality #1108

Merged
merged 4 commits into from
Jan 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "MultiType",
"name": "Default",
"type": "CORE:Blueprint",
"attributes": [
{
Expand All @@ -17,6 +17,12 @@
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*,*"
},
{
"name": "dimensional",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "4,5"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"_id": "Default",
"type": "./blueprints/Default",
"name": "Default",
"data": [
["Dodge", "Bentley Model T", "Extended Cab Pickup", "1D3MX48D48B28FPJU"],
["Volvo", "Volvo Camry", "Cargo Van", "5XYZGDAG8BDE8J42H"],
["Lamborghini", "Smart ATS", "Sedan", "3FTEW31R691XKD94Y"],
["Land Rover", "Mazda Countach", "Crew Cab Pickup", "3GTP2WE3XBUUMTGXS"],
["Ford", "Jeep Spyder", "Wagon", "1G1ZS51F37ETTZW4Y"]
],
"dimensional": [
["Dodge", "Bentley Model T", "Extended Cab Pickup", "1D3MX48D48B28FPJU"],
["Volvo", "Volvo Camry", "Cargo Van", "5XYZGDAG8BDE8J42H"],
["Lamborghini", "Smart ATS", "Sedan", "3FTEW31R691XKD94Y"],
["Land Rover", "Mazda Countach", "Crew Cab Pickup", "3GTP2WE3XBUUMTGXS"],
["Ford", "Jeep Spyder", "Wagon", "1G1ZS51F37ETTZW4Y"]
]
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"name": "MultiplePrimitives",
"type": "CORE:Blueprint",
"attributes": [
{
"name": "type",
"type": "dmss://system/SIMOS/BlueprintAttribute",
"attributeType": "string"
},
{
"name": "name",
"type": "dmss://system/SIMOS/BlueprintAttribute",
"attributeType": "string"
},
{
"name": "manufacturer",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
},
{
"name": "car_name",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
},
{
"name": "model",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
},
{
"name": "vin",
"type": "CORE:BlueprintAttribute",
"attributeType": "string",
"dimensions": "*"
}
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"_id": "MultiplePrimitives",
"type": "./blueprints/MultiplePrimitives",
"name": "MultiplePrimitives",
"manufacturer": ["Dodge", "Volvo", "Lamborghini", "Land Rover", "Ford"],
"car_name": [
"Bentley Model T",
"Volvo Camry",
"Smart ATS",
"Mazda Countach",
"Jeep Spyder"
],
"model": [
"Extended Cab Pickup",
"Cargo Van",
"Sedan",
"Crew Cab Pickup",
"Wagon"
],
"vin": [
"1D3MX48D48B28FPJU",
"5XYZGDAG8BDE8J42H",
"3FTEW31R691XKD94Y",
"3GTP2WE3XBUUMTGXS",
"1G1ZS51F37ETTZW4Y"
]
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,158 @@
{
"type": "CORE:RecipeLink",
"_blueprintPath_": "/plugins/data_grid/default/blueprints/Default",
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Default",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Default",
"type": "CORE:UiRecipe",
"description": "Single multidimensional primitive",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"fieldNames": ["data"]
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Set dimensions",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Set Dimensions",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"fieldNames": ["dimensional"],
"title": "Datagrid with set dimensions",
"description": "Dimensions are set to 4,5"
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Custom labels",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Custom labels",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"fieldNames": ["dimensional"],
"title": "Datagrid with custom labels",
"description": "Set dimensions: 4,5. Custom column and row labels.",
"columnLabels": ["Manufacturer", "Name", "Type", "VIN"],
"rowLabels": ["John", "Joe", "Jason", "Jack", "Jay"]
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Combined labels",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Combined labels",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"fieldNames": ["dimensional"],
"title": "Datagrid with combined labels",
"description": "Set dimensions: 4,5. Combined custom and pre-defined column and row labels.",
"columnLabels": ["Manufacturer", "Name", "Type", "VIN"],
"rowLabels": ["John", "...123"]
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Hidden labels",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Hidden labels",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"fieldNames": ["dimensional"],
"title": "Hidden labels",
"editable": false,
"description": "Hide labels for rows and columns. Set dimensions: 4,5.",
"showColumns": false,
"showRows": false
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "No-edit columns and rows",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "No-edit columns and rows",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"fieldNames": ["data"],
"title": "No-edit columns and rows",
"description": "No-edit columns and rows. No set dimensions.",
"adjustableColumns": false,
"adjustableRows": false
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Non-editable",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Non-editable",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"fieldNames": ["data"],
"title": "Non-editable datagrid",
"editable": false,
"description": "Non-editable. Unknown dimensions. Custom column and row labels.",
"columnLabels": ["Manufacturer", "Name", "Type", "VIN"],
"rowLabels": ["John", "Joe", "Jason", "Jack", "Jay"]
}
},
"scope": "self"
}
}
]
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
{
"type": "CORE:RecipeLink",
"_blueprintPath_": "/plugins/data_grid/multiple_primitives/blueprints/MultiplePrimitives",
"initialUiRecipe": {
"name": "ViewSelector",
"type": "CORE:UiRecipe",
"plugin": "@development-framework/dm-core-plugins/view_selector/tabs",
"config": {
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorConfig",
"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Multiple (default)",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Multiple Primitives",
"type": "CORE:UiRecipe",
"description": "Multiple primitives combined in datagrid",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"rowLabels": ["Manufacturer", "Name", "Type", "VIN"],
"fieldNames": ["manufacturer", "car_name", "model", "vin"],
"title": "Multiple primitives datagrid"
}
},
"scope": "self"
}
},
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Vertical printing",
"viewConfig": {
"type": "CORE:InlineRecipeViewConfig",
"recipe": {
"name": "Vertical printing",
"type": "CORE:UiRecipe",
"description": "Printdirection: vertical .Multiple primitives combined in datagrid",
"plugin": "@development-framework/dm-core-plugins/data_grid",
"config": {
"type": "PLUGINS:dm-core-plugins/data_grid/DataGridPluginConfig",
"rowLabels": ["Manufacturer", "Name", "Type", "VIN"],
"fieldNames": ["manufacturer", "car_name", "model", "vin"],
"title": "Vertically printed datagrid",
"printDirection": "vertical"
}
},
"scope": "self"
}
}
]
}
}
}
Loading
Loading