@myrmidon/cadmus-profile-editor 0.0.1

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/README.md ADDED
@@ -0,0 +1,23 @@
1
+ # CadmusProfileEditor
2
+
3
+ This project was generated using [Angular CLI](https://github.com/angular/angular-cli) version 21.2.0.
4
+
5
+ This library contains components for editing Cadmus item facets.
6
+
7
+ In Cadmus, which is a general-purpose content management, data records are named items, and each item can contain any number of parts.
8
+
9
+ Each part is a data object having any scheme, and representing a portion of the data of the item. This way the item's model is dynamically built by composing parts.
10
+
11
+ The item's facet is a configuration abstraction which tells the editor which parts can be found inside each item type. The main data models are (from `@myrmidon/cadmus-core`):
12
+
13
+ - `FacetDefinition`: the definition of a facet: id, label, color, description, and definitions of the parts it can contain.
14
+ - `PartDefinition`: the definition of a part: type ID (a unique string identifier for the part's type, like a class name), role ID (an optional string identifier used when multiple parts of the same type are used to assign to each usage a specific role), name, description, whether it is required in its item, color, group (a string used to group parts when displaying their list), sort key (a string used to sort parts within each group when displaying their list), and settings (a POJO object for settings, which is now obsoleted).
15
+
16
+ ## Components
17
+
18
+ The components in this library are:
19
+
20
+ - `FacetDefinitionListEditorComponent`: editor for a list of facet definitions. This is the top-level component which loads and saves facets from the server. All the other components are descendant dumb components.
21
+ - `FacetDefinitionEditorComponent`: editor for a facet definition.
22
+ - `PartDefinitionEditorComponent`: editor for a part definition.
23
+ - `FacetEditPage`: wrapper for the `FacetDefinitionListEditorComponent` linked to a preset route (defined in `CADMUS_PROFILE_EDIT_ROUTES`).