{"id":20650930,"url":"https://github.com/coolsamson7/ui-editor","last_synced_at":"2025-10-08T19:06:48.543Z","repository":{"id":19709835,"uuid":"80711392","full_name":"coolsamson7/ui-editor","owner":"coolsamson7","description":null,"archived":false,"fork":false,"pushed_at":"2023-03-06T07:57:27.000Z","size":2454,"stargazers_count":2,"open_issues_count":9,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-04-13T17:05:38.260Z","etag":null,"topics":["form-builder","form-generator","ui-designer"],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/coolsamson7.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-02-02T09:40:37.000Z","updated_at":"2021-08-11T14:13:13.000Z","dependencies_parsed_at":"2024-11-16T17:36:46.840Z","dependency_job_id":null,"html_url":"https://github.com/coolsamson7/ui-editor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/coolsamson7/ui-editor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolsamson7%2Fui-editor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolsamson7%2Fui-editor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolsamson7%2Fui-editor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolsamson7%2Fui-editor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/coolsamson7","download_url":"https://codeload.github.com/coolsamson7/ui-editor/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/coolsamson7%2Fui-editor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000702,"owners_count":26082805,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["form-builder","form-generator","ui-designer"],"created_at":"2024-11-16T17:24:35.394Z","updated_at":"2025-10-08T19:06:48.522Z","avatar_url":"https://github.com/coolsamson7.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UiEditor\n\nUIEditor is a wisiwyg html editor implemented with AngularJS 2.x. The available components - as seen in the palette to the left - can be dragged onto the main area - or alternatively the component tree - and will be instanciated as children of the corresponding parent element. A property editor onn the right side is used to modify corresponding properties. These are either normal html properties or properties which make sense in an Angular environment - e.g. 'click'.\nLayout elements - such as rows and columns  are based on bootstrap 3.x.\n\n## Basic Idea\n\nThe basic idea is a rendering engine, that knows about different types of components as organized in a central component registry. Every component is defined by\n* a number of properties ( with corresponding type information ), and\n* a template string containing static content as well as placeholders that will be filled by dynamic data.\n\nThe payload data on the other hand is a simple javascript object referencing the component type and specific property values.\nA special property - '$children' references any component children.\n\nLet's look at a simplified example:\n\nThe component 'label' as registered with a registry:\n\n```typescript\n  componentRegistry.register(template(\"label\")\n                // the template\n                .renderTemplate(\"\u003clabel\u003e$value$\u003c/label\u003e\")\n                // property editors will use this information\n                .setLabel(\"Label\")\n                .group('Widgets')\n                // essential for drag \u0026 drop\n                .validParents('col', 'div', 'form', 'fieldset')\n                // properties\n                .register(property(\"value\")\n                    .tooltip(\"the label content\") // used by the property editor\n                    .setDefault(\"\") // if the payload does not cotain a value this default ill be used instead\n```\n\nwill be able to render the following payload data.\n\n```javacript\n{\n   \"$isa\": \"label\", // the component reference\n   \"value\": \"Hello World\" // a property\n}\n```\n\nand will produce:\n\n```html\n\u003clabel\u003eHello World\u003c/label\u003e\n```\n\n\nA running demo can be found [here](https://coolsamson7.github.io//ui-editor/).\n\n## Features\n\n* Support for shortcuts ( ctrl+z, del )\n* Undo mechanism ( try  ctrl+z )\n* Inplace edit for most string based widgets ( e.g. label, h1 )\n* Generic component registry with support for\n   * custom property renders\n   * custom property editors\n   * properties that reference either plain values or angular bindings\n\n## Missing\n\nThe project is far away from being complete. Missing features are at least\n* a backend :-)\n* better property editors: font editor, color picker, box editor...\n* compound components\n* i18n support for both editor as well as the rendering engine\n* support for business datatypes ( e.g. string 10 )\n* more components ( images, etc. )\n\n## Internal classes\n\nIf you are just interested in the provided widgets, just go ahead. \n* Tree\n* Splitter\n* Floating windows\n* Tabs\n* In-Place editors\n* Context Menus\n* Drag \u0026 Drop \n* Breadcrumb\n\n## Project Setup\nThis project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.28.3.\n\n## Development server\nRun `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.\n\n## Code scaffolding\n\nRun `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.\n\n## Build\n\nRun `ng build` to build the project. The build artifacts will be stored in the `dist/` directory. Use the `-prod` flag for a production build.\n\n## Running unit tests\n\nRun `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).\n\n## Running end-to-end tests\n\nRun `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).\nBefore running the tests make sure you are serving the app via `ng serve`.\n\n## Deploying to GitHub Pages\n\nRun `ng github-pages:deploy` to deploy to GitHub Pages.\n\n## Further help\n\nTo get more help on the `angular-cli` use `ng help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolsamson7%2Fui-editor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcoolsamson7%2Fui-editor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcoolsamson7%2Fui-editor/lists"}