diff --git a/backend/directus-config/development/snapshot/collections/attestations_component.json b/backend/directus-config/development/snapshot/collections/attestations_component.json new file mode 100644 index 00000000..688d5975 --- /dev/null +++ b/backend/directus-config/development/snapshot/collections/attestations_component.json @@ -0,0 +1,28 @@ +{ + "collection": "attestations_component", + "meta": { + "accountability": "all", + "archive_app_filter": true, + "archive_field": null, + "archive_value": null, + "collapse": "open", + "collection": "attestations_component", + "color": null, + "display_template": null, + "group": "UI_Components", + "hidden": false, + "icon": "favorite", + "item_duplication_fields": null, + "note": null, + "preview_url": null, + "singleton": false, + "sort": 11, + "sort_field": null, + "translations": null, + "unarchive_value": null, + "versioning": false + }, + "schema": { + "name": "attestations_component" + } +} diff --git a/backend/directus-config/development/snapshot/collections/tab.json b/backend/directus-config/development/snapshot/collections/tab.json new file mode 100644 index 00000000..ec4e3975 --- /dev/null +++ b/backend/directus-config/development/snapshot/collections/tab.json @@ -0,0 +1,28 @@ +{ + "collection": "tab", + "meta": { + "collection": "tab", + "icon": "tab", + "note": null, + "display_template": "{{title}}", + "hidden": false, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": "sort", + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": { + "name": "tab" + } +} diff --git a/backend/directus-config/development/snapshot/collections/tab_items.json b/backend/directus-config/development/snapshot/collections/tab_items.json new file mode 100644 index 00000000..a1ebcce7 --- /dev/null +++ b/backend/directus-config/development/snapshot/collections/tab_items.json @@ -0,0 +1,28 @@ +{ + "collection": "tab_items", + "meta": { + "collection": "tab_items", + "icon": "import_export", + "note": null, + "display_template": null, + "hidden": true, + "singleton": false, + "translations": null, + "archive_field": null, + "archive_app_filter": true, + "archive_value": null, + "unarchive_value": null, + "sort_field": "sort", + "accountability": "all", + "color": null, + "item_duplication_fields": null, + "sort": null, + "group": null, + "collapse": "open", + "preview_url": null, + "versioning": false + }, + "schema": { + "name": "tab_items" + } +} diff --git a/backend/directus-config/development/snapshot/collections/tabs.json b/backend/directus-config/development/snapshot/collections/tabs.json new file mode 100644 index 00000000..59e0d114 --- /dev/null +++ b/backend/directus-config/development/snapshot/collections/tabs.json @@ -0,0 +1,28 @@ +{ + "collection": "tabs", + "meta": { + "accountability": "all", + "archive_app_filter": true, + "archive_field": null, + "archive_value": null, + "collapse": "open", + "collection": "tabs", + "color": null, + "display_template": null, + "group": "UI_Components", + "hidden": false, + "icon": "tab", + "item_duplication_fields": null, + "note": null, + "preview_url": null, + "singleton": false, + "sort": 12, + "sort_field": null, + "translations": null, + "unarchive_value": null, + "versioning": false + }, + "schema": { + "name": "tabs" + } +} diff --git a/backend/directus-config/development/snapshot/collections/tags_component.json b/backend/directus-config/development/snapshot/collections/tags_component.json new file mode 100644 index 00000000..d70aefee --- /dev/null +++ b/backend/directus-config/development/snapshot/collections/tags_component.json @@ -0,0 +1,28 @@ +{ + "collection": "tags_component", + "meta": { + "accountability": "all", + "archive_app_filter": true, + "archive_field": null, + "archive_value": null, + "collapse": "open", + "collection": "tags_component", + "color": null, + "display_template": null, + "group": "UI_Components", + "hidden": false, + "icon": "sell", + "item_duplication_fields": null, + "note": null, + "preview_url": null, + "singleton": false, + "sort": 10, + "sort_field": null, + "translations": null, + "unarchive_value": null, + "versioning": false + }, + "schema": { + "name": "tags_component" + } +} diff --git a/backend/directus-config/development/snapshot/fields/attestations_component/heading.json b/backend/directus-config/development/snapshot/fields/attestations_component/heading.json new file mode 100644 index 00000000..486bbcce --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/attestations_component/heading.json @@ -0,0 +1,43 @@ +{ + "collection": "attestations_component", + "field": "heading", + "type": "string", + "meta": { + "collection": "attestations_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "heading", + "group": null, + "hidden": false, + "interface": "input", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 2, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "heading", + "table": "attestations_component", + "data_type": "character varying", + "default_value": "Trust", + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/attestations_component/hideWhenEmpty.json b/backend/directus-config/development/snapshot/fields/attestations_component/hideWhenEmpty.json new file mode 100644 index 00000000..f4d25333 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/attestations_component/hideWhenEmpty.json @@ -0,0 +1,45 @@ +{ + "collection": "attestations_component", + "field": "hideWhenEmpty", + "type": "boolean", + "meta": { + "collection": "attestations_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "hideWhenEmpty", + "group": null, + "hidden": false, + "interface": "boolean", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 3, + "special": [ + "cast-boolean" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "hideWhenEmpty", + "table": "attestations_component", + "data_type": "boolean", + "default_value": true, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/attestations_component/id.json b/backend/directus-config/development/snapshot/fields/attestations_component/id.json new file mode 100644 index 00000000..d543da4b --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/attestations_component/id.json @@ -0,0 +1,45 @@ +{ + "collection": "attestations_component", + "field": "id", + "type": "uuid", + "meta": { + "collection": "attestations_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "id", + "group": null, + "hidden": true, + "interface": "input", + "note": null, + "options": null, + "readonly": true, + "required": false, + "sort": 1, + "special": [ + "uuid" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "id", + "table": "attestations_component", + "data_type": "uuid", + "default_value": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": true, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab/icon.json b/backend/directus-config/development/snapshot/fields/tab/icon.json new file mode 100644 index 00000000..3d638824 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab/icon.json @@ -0,0 +1,43 @@ +{ + "collection": "tab", + "field": "icon", + "type": "string", + "meta": { + "collection": "tab", + "conditions": null, + "display": null, + "display_options": null, + "field": "icon", + "group": null, + "hidden": false, + "interface": "input", + "note": "Optional emoji or icon for the tab", + "options": null, + "readonly": false, + "required": false, + "sort": 3, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "icon", + "table": "tab", + "data_type": "character varying", + "default_value": null, + "max_length": 50, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab/id.json b/backend/directus-config/development/snapshot/fields/tab/id.json new file mode 100644 index 00000000..3388bfa2 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab/id.json @@ -0,0 +1,45 @@ +{ + "collection": "tab", + "field": "id", + "type": "uuid", + "meta": { + "collection": "tab", + "conditions": null, + "display": null, + "display_options": null, + "field": "id", + "group": null, + "hidden": true, + "interface": "input", + "note": null, + "options": null, + "readonly": true, + "required": false, + "sort": 1, + "special": [ + "uuid" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "id", + "table": "tab", + "data_type": "uuid", + "default_value": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": true, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab/items.json b/backend/directus-config/development/snapshot/fields/tab/items.json new file mode 100644 index 00000000..6ad7a93e --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab/items.json @@ -0,0 +1,32 @@ +{ + "collection": "tab", + "field": "items", + "type": "alias", + "meta": { + "collection": "tab", + "conditions": null, + "display": "related-values", + "display_options": { + "template": "{{collection}}" + }, + "field": "items", + "group": null, + "hidden": false, + "interface": "list-m2a", + "note": "Components inside this tab", + "options": { + "enableCreate": true, + "enableSelect": true + }, + "readonly": false, + "required": false, + "sort": 6, + "special": [ + "m2a" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab/sort.json b/backend/directus-config/development/snapshot/fields/tab/sort.json new file mode 100644 index 00000000..144a8cf4 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab/sort.json @@ -0,0 +1,43 @@ +{ + "collection": "tab", + "field": "sort", + "type": "integer", + "meta": { + "collection": "tab", + "conditions": null, + "display": null, + "display_options": null, + "field": "sort", + "group": null, + "hidden": true, + "interface": null, + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 4, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "sort", + "table": "tab", + "data_type": "integer", + "default_value": null, + "max_length": null, + "numeric_precision": 32, + "numeric_scale": 0, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab/tabs_id.json b/backend/directus-config/development/snapshot/fields/tab/tabs_id.json new file mode 100644 index 00000000..82643412 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab/tabs_id.json @@ -0,0 +1,43 @@ +{ + "collection": "tab", + "field": "tabs_id", + "type": "uuid", + "meta": { + "collection": "tab", + "conditions": null, + "display": null, + "display_options": null, + "field": "tabs_id", + "group": null, + "hidden": true, + "interface": null, + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 5, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "tabs_id", + "table": "tab", + "data_type": "uuid", + "default_value": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": "tabs", + "foreign_key_column": "id" + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab/title.json b/backend/directus-config/development/snapshot/fields/tab/title.json new file mode 100644 index 00000000..c2d5988a --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab/title.json @@ -0,0 +1,43 @@ +{ + "collection": "tab", + "field": "title", + "type": "string", + "meta": { + "collection": "tab", + "conditions": null, + "display": null, + "display_options": null, + "field": "title", + "group": null, + "hidden": false, + "interface": "input", + "note": "Tab title displayed in the tab header", + "options": null, + "readonly": false, + "required": true, + "sort": 2, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "title", + "table": "tab", + "data_type": "character varying", + "default_value": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab_items/collection.json b/backend/directus-config/development/snapshot/fields/tab_items/collection.json new file mode 100644 index 00000000..4a8e1af0 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab_items/collection.json @@ -0,0 +1,43 @@ +{ + "collection": "tab_items", + "field": "collection", + "type": "string", + "meta": { + "collection": "tab_items", + "conditions": null, + "display": null, + "display_options": null, + "field": "collection", + "group": null, + "hidden": true, + "interface": null, + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 4, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "collection", + "table": "tab_items", + "data_type": "character varying", + "default_value": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab_items/id.json b/backend/directus-config/development/snapshot/fields/tab_items/id.json new file mode 100644 index 00000000..aa5fde48 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab_items/id.json @@ -0,0 +1,43 @@ +{ + "collection": "tab_items", + "field": "id", + "type": "integer", + "meta": { + "collection": "tab_items", + "conditions": null, + "display": null, + "display_options": null, + "field": "id", + "group": null, + "hidden": true, + "interface": "input", + "note": null, + "options": null, + "readonly": true, + "required": false, + "sort": 1, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "id", + "table": "tab_items", + "data_type": "integer", + "default_value": "nextval('tab_items_id_seq'::regclass)", + "max_length": null, + "numeric_precision": 32, + "numeric_scale": 0, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": true, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": true, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab_items/item.json b/backend/directus-config/development/snapshot/fields/tab_items/item.json new file mode 100644 index 00000000..43105dd1 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab_items/item.json @@ -0,0 +1,43 @@ +{ + "collection": "tab_items", + "field": "item", + "type": "string", + "meta": { + "collection": "tab_items", + "conditions": null, + "display": null, + "display_options": null, + "field": "item", + "group": null, + "hidden": true, + "interface": null, + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 3, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "item", + "table": "tab_items", + "data_type": "character varying", + "default_value": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab_items/sort.json b/backend/directus-config/development/snapshot/fields/tab_items/sort.json new file mode 100644 index 00000000..3cc042c4 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab_items/sort.json @@ -0,0 +1,43 @@ +{ + "collection": "tab_items", + "field": "sort", + "type": "integer", + "meta": { + "collection": "tab_items", + "conditions": null, + "display": null, + "display_options": null, + "field": "sort", + "group": null, + "hidden": true, + "interface": null, + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 5, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "sort", + "table": "tab_items", + "data_type": "integer", + "default_value": null, + "max_length": null, + "numeric_precision": 32, + "numeric_scale": 0, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tab_items/tab_id.json b/backend/directus-config/development/snapshot/fields/tab_items/tab_id.json new file mode 100644 index 00000000..9f743425 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tab_items/tab_id.json @@ -0,0 +1,43 @@ +{ + "collection": "tab_items", + "field": "tab_id", + "type": "uuid", + "meta": { + "collection": "tab_items", + "conditions": null, + "display": null, + "display_options": null, + "field": "tab_id", + "group": null, + "hidden": true, + "interface": null, + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 2, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "tab_id", + "table": "tab_items", + "data_type": "uuid", + "default_value": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": "tab", + "foreign_key_column": "id" + } +} diff --git a/backend/directus-config/development/snapshot/fields/tabs/icon_as_labels.json b/backend/directus-config/development/snapshot/fields/tabs/icon_as_labels.json new file mode 100644 index 00000000..12915289 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tabs/icon_as_labels.json @@ -0,0 +1,45 @@ +{ + "collection": "tabs", + "field": "icon_as_labels", + "type": "boolean", + "meta": { + "collection": "tabs", + "conditions": null, + "display": null, + "display_options": null, + "field": "icon_as_labels", + "group": null, + "hidden": false, + "interface": "boolean", + "note": "Show icons only when tab is not active", + "options": null, + "readonly": false, + "required": false, + "sort": 2, + "special": [ + "cast-boolean" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "icon_as_labels", + "table": "tabs", + "data_type": "boolean", + "default_value": false, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tabs/id.json b/backend/directus-config/development/snapshot/fields/tabs/id.json new file mode 100644 index 00000000..1fb0902f --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tabs/id.json @@ -0,0 +1,45 @@ +{ + "collection": "tabs", + "field": "id", + "type": "uuid", + "meta": { + "collection": "tabs", + "conditions": null, + "display": null, + "display_options": null, + "field": "id", + "group": null, + "hidden": true, + "interface": "input", + "note": null, + "options": null, + "readonly": true, + "required": false, + "sort": 1, + "special": [ + "uuid" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "id", + "table": "tabs", + "data_type": "uuid", + "default_value": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": true, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tabs/tabs.json b/backend/directus-config/development/snapshot/fields/tabs/tabs.json new file mode 100644 index 00000000..96006f41 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tabs/tabs.json @@ -0,0 +1,33 @@ +{ + "collection": "tabs", + "field": "tabs", + "type": "alias", + "meta": { + "collection": "tabs", + "conditions": null, + "display": "related-values", + "display_options": { + "template": "{{title}}" + }, + "field": "tabs", + "group": null, + "hidden": false, + "interface": "list-o2m", + "note": "Individual tabs in this container", + "options": { + "enableCreate": true, + "enableSelect": false, + "template": "{{title}}" + }, + "readonly": false, + "required": false, + "sort": 4, + "special": [ + "o2m" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + } +} diff --git a/backend/directus-config/development/snapshot/fields/tags_component/dataField.json b/backend/directus-config/development/snapshot/fields/tags_component/dataField.json new file mode 100644 index 00000000..317b4e72 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tags_component/dataField.json @@ -0,0 +1,54 @@ +{ + "collection": "tags_component", + "field": "dataField", + "type": "string", + "meta": { + "collection": "tags_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "dataField", + "group": null, + "hidden": false, + "interface": "select-dropdown", + "note": "Which field to use: offers or needs", + "options": { + "choices": [ + { + "text": "Offers", + "value": "offers" + }, + { + "text": "Needs", + "value": "needs" + } + ] + }, + "readonly": false, + "required": true, + "sort": 2, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "dataField", + "table": "tags_component", + "data_type": "character varying", + "default_value": "offers", + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": false, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tags_component/heading.json b/backend/directus-config/development/snapshot/fields/tags_component/heading.json new file mode 100644 index 00000000..5cc57a36 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tags_component/heading.json @@ -0,0 +1,43 @@ +{ + "collection": "tags_component", + "field": "heading", + "type": "string", + "meta": { + "collection": "tags_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "heading", + "group": null, + "hidden": false, + "interface": "input", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 3, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "heading", + "table": "tags_component", + "data_type": "character varying", + "default_value": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tags_component/hideWhenEmpty.json b/backend/directus-config/development/snapshot/fields/tags_component/hideWhenEmpty.json new file mode 100644 index 00000000..ca95ac84 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tags_component/hideWhenEmpty.json @@ -0,0 +1,45 @@ +{ + "collection": "tags_component", + "field": "hideWhenEmpty", + "type": "boolean", + "meta": { + "collection": "tags_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "hideWhenEmpty", + "group": null, + "hidden": false, + "interface": "boolean", + "note": null, + "options": null, + "readonly": false, + "required": false, + "sort": 4, + "special": [ + "cast-boolean" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "half" + }, + "schema": { + "name": "hideWhenEmpty", + "table": "tags_component", + "data_type": "boolean", + "default_value": true, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tags_component/id.json b/backend/directus-config/development/snapshot/fields/tags_component/id.json new file mode 100644 index 00000000..527b2f7d --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tags_component/id.json @@ -0,0 +1,45 @@ +{ + "collection": "tags_component", + "field": "id", + "type": "uuid", + "meta": { + "collection": "tags_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "id", + "group": null, + "hidden": true, + "interface": "input", + "note": null, + "options": null, + "readonly": true, + "required": false, + "sort": 1, + "special": [ + "uuid" + ], + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "id", + "table": "tags_component", + "data_type": "uuid", + "default_value": null, + "max_length": null, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": false, + "is_unique": true, + "is_indexed": false, + "is_primary_key": true, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/fields/tags_component/placeholder.json b/backend/directus-config/development/snapshot/fields/tags_component/placeholder.json new file mode 100644 index 00000000..67b34f11 --- /dev/null +++ b/backend/directus-config/development/snapshot/fields/tags_component/placeholder.json @@ -0,0 +1,43 @@ +{ + "collection": "tags_component", + "field": "placeholder", + "type": "string", + "meta": { + "collection": "tags_component", + "conditions": null, + "display": null, + "display_options": null, + "field": "placeholder", + "group": null, + "hidden": false, + "interface": "input", + "note": "Placeholder text for the input field", + "options": null, + "readonly": false, + "required": false, + "sort": 5, + "special": null, + "translations": null, + "validation": null, + "validation_message": null, + "width": "full" + }, + "schema": { + "name": "placeholder", + "table": "tags_component", + "data_type": "character varying", + "default_value": null, + "max_length": 255, + "numeric_precision": null, + "numeric_scale": null, + "is_nullable": true, + "is_unique": false, + "is_indexed": false, + "is_primary_key": false, + "is_generated": false, + "generation_expression": null, + "has_auto_increment": false, + "foreign_key_table": null, + "foreign_key_column": null + } +} diff --git a/backend/directus-config/development/snapshot/relations/tab/tabs_id.json b/backend/directus-config/development/snapshot/relations/tab/tabs_id.json new file mode 100644 index 00000000..4f953c76 --- /dev/null +++ b/backend/directus-config/development/snapshot/relations/tab/tabs_id.json @@ -0,0 +1,25 @@ +{ + "collection": "tab", + "field": "tabs_id", + "related_collection": "tabs", + "meta": { + "junction_field": null, + "many_collection": "tab", + "many_field": "tabs_id", + "one_allowed_collections": null, + "one_collection": "tabs", + "one_collection_field": null, + "one_deselect_action": "nullify", + "one_field": "tabs", + "sort_field": "sort" + }, + "schema": { + "table": "tab", + "column": "tabs_id", + "foreign_key_table": "tabs", + "foreign_key_column": "id", + "constraint_name": "tab_tabs_id_foreign", + "on_update": "NO ACTION", + "on_delete": "SET NULL" + } +} diff --git a/backend/directus-config/development/snapshot/relations/tab_items/item.json b/backend/directus-config/development/snapshot/relations/tab_items/item.json new file mode 100644 index 00000000..534ff696 --- /dev/null +++ b/backend/directus-config/development/snapshot/relations/tab_items/item.json @@ -0,0 +1,27 @@ +{ + "collection": "tab_items", + "field": "item", + "related_collection": null, + "meta": { + "junction_field": "tab_id", + "many_collection": "tab_items", + "many_field": "item", + "one_allowed_collections": [ + "groupSubheaders", + "contactInfos", + "texts", + "startEnd", + "gallery", + "crowdfundings", + "inviteLinks", + "relations", + "tags_component", + "attestations_component" + ], + "one_collection": null, + "one_collection_field": "collection", + "one_deselect_action": "nullify", + "one_field": null, + "sort_field": null + } +} diff --git a/backend/directus-config/development/snapshot/relations/tab_items/tab_id.json b/backend/directus-config/development/snapshot/relations/tab_items/tab_id.json new file mode 100644 index 00000000..89a6033f --- /dev/null +++ b/backend/directus-config/development/snapshot/relations/tab_items/tab_id.json @@ -0,0 +1,25 @@ +{ + "collection": "tab_items", + "field": "tab_id", + "related_collection": "tab", + "meta": { + "junction_field": "item", + "many_collection": "tab_items", + "many_field": "tab_id", + "one_allowed_collections": null, + "one_collection": "tab", + "one_collection_field": null, + "one_deselect_action": "nullify", + "one_field": "items", + "sort_field": "sort" + }, + "schema": { + "table": "tab_items", + "column": "tab_id", + "foreign_key_table": "tab", + "foreign_key_column": "id", + "constraint_name": "tab_items_tab_id_foreign", + "on_update": "NO ACTION", + "on_delete": "SET NULL" + } +} diff --git a/backend/directus-config/development/snapshot/relations/types_profileTemplate/item.json b/backend/directus-config/development/snapshot/relations/types_profileTemplate/item.json index 2029ab84..39598ff8 100644 --- a/backend/directus-config/development/snapshot/relations/types_profileTemplate/item.json +++ b/backend/directus-config/development/snapshot/relations/types_profileTemplate/item.json @@ -14,7 +14,10 @@ "gallery", "crowdfundings", "inviteLinks", - "relations" + "relations", + "tags_component", + "attestations_component", + "tabs" ], "one_collection": null, "one_collection_field": "collection", diff --git a/lib/src/Components/Input/Autocomplete.tsx b/lib/src/Components/Input/Autocomplete.tsx index 2bb97d2c..12dd76cb 100644 --- a/lib/src/Components/Input/Autocomplete.tsx +++ b/lib/src/Components/Input/Autocomplete.tsx @@ -66,6 +66,7 @@ export const Autocomplete = ({ heighlightedSuggestion > 0 && setHeighlightedSuggestion((current) => current - 1) break case 'Enter': + event.preventDefault() if (filteredSuggestions.length > 0) { // eslint-disable-next-line security/detect-object-injection onSelected(filteredSuggestions[heighlightedSuggestion]) @@ -80,7 +81,7 @@ export const Autocomplete = ({ } return ( -
+
handleChange(e)} tabIndex='-1' onKeyDown={handleKeyDown} - className='tw:border-none tw:focus:outline-none tw:focus:ring-0 tw:mt-5' + className='tw:border-none tw:focus:outline-none tw:focus:ring-0 tw:mt-5 tw:w-full' />