Files
metabuilder/packages/stats_grid/scripts/functions.json
johndoe6345789 6992c3a650 feat(ui_pages): Add UI Pages Bundle with multi-level navigation and components
- Created package.json for ui_pages with dependencies and exports.
- Added roles.json for access permissions related to UI pages.
- Implemented functions.json for managing UI pages and routing.
- Developed stories.json for Storybook showcasing UI pages components.
- Defined styles tokens for UI pages including colors, spacing, and typography.

feat(ui_permissions): Introduce UI Permissions package for access control

- Created package.json for ui_permissions with permission utilities.
- Added roles.json defining permissions for a 6-level access control system.
- Implemented functions.json for permission checking and level management.
- Developed stories.json for Storybook showcasing permission-related components.
- Defined styles tokens for UI permissions including colors and spacing.
2026-01-02 19:45:10 +00:00

112 lines
3.0 KiB
JSON

{
"$schema": "https://metabuilder.dev/schemas/json-script.schema.json",
"schemaVersion": "2.2.0",
"package": "stats_grid",
"description": "Statistics grid functions for data formatting and display",
"functions": [
{
"id": "stats_create_items",
"name": "createStatItems",
"exported": true,
"description": "Create stat items from raw data and configuration",
"category": "data",
"luaScript": "stats/init.lua"
},
{
"id": "stats_get_color_class",
"name": "getColorClass",
"exported": true,
"description": "Get CSS color class for a stat color",
"category": "styling",
"luaScript": "stats/init.lua"
},
{
"id": "stats_format_label",
"name": "formatLabel",
"exported": true,
"description": "Format a key into a human-readable label",
"category": "formatting",
"luaScript": "stats/init.lua"
},
{
"id": "stats_format_value",
"name": "formatValue",
"exported": true,
"description": "Format a number value for display (K, M suffixes)",
"category": "formatting",
"luaScript": "stats/init.lua"
},
{
"id": "stats_create_card",
"name": "createCard",
"exported": true,
"description": "Create a single stat card component",
"category": "rendering",
"luaScript": "stats/card.lua"
},
{
"id": "stats_create_grid",
"name": "createGrid",
"exported": true,
"description": "Create a stats grid component from props",
"category": "rendering",
"luaScript": "stats/grid.lua"
},
{
"id": "formatters_format_currency",
"name": "formatCurrency",
"exported": true,
"description": "Format a value as currency",
"category": "formatting",
"luaScript": "formatters.lua"
},
{
"id": "formatters_format_percentage",
"name": "formatPercentage",
"exported": true,
"description": "Format a value as percentage",
"category": "formatting",
"luaScript": "formatters.lua"
},
{
"id": "formatters_format_compact",
"name": "formatCompact",
"exported": true,
"description": "Format a value with compact notation",
"category": "formatting",
"luaScript": "formatters.lua"
},
{
"id": "formatters_format_duration",
"name": "formatDuration",
"exported": true,
"description": "Format a duration value",
"category": "formatting",
"luaScript": "formatters.lua"
},
{
"id": "formatters_format_bytes",
"name": "formatBytes",
"exported": true,
"description": "Format a byte value with appropriate unit",
"category": "formatting",
"luaScript": "formatters.lua"
}
],
"exports": {
"functions": [
"createStatItems",
"getColorClass",
"formatLabel",
"formatValue",
"createCard",
"createGrid",
"formatCurrency",
"formatPercentage",
"formatCompact",
"formatDuration",
"formatBytes"
]
}
}