-
Notifications
You must be signed in to change notification settings - Fork 39
[Tree widget]: Add docs for visibility handling #1606
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
base: tree-widget/next
Are you sure you want to change the base?
Changes from 17 commits
0b2ca40
7212502
9547037
eca0bd9
1ea8d85
934c316
4ffaafe
9491989
e3f95a7
cba0696
59a227c
e9bd9aa
2eb2e5f
19766eb
5646885
ad77adf
f2f427c
7e50627
dce1d8d
1dc2819
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
| <!-- cspell: ignore getcategoriesvisibilitystatus --> | ||
|
|
||
| # Categories tree specific visibility handling | ||
|
|
||
| This document explains visibility handling for categories tree specific cases. | ||
|
|
||
| ## Table of contents | ||
|
|
||
| - [Getting visibility status](#getting-visibility-status) | ||
| - [getDefinitionContainersVisibilityStatus](#getdefinitioncontainersvisibilitystatus) | ||
| - [getCategoriesVisibilityStatus](./SharedVisibilityHandling.md#getcategoriesvisibilitystatus) | ||
| - [getSubCategoriesVisibilityStatus](./SharedVisibilityHandling.md#getsubcategoriesvisibilitystatus) | ||
| - [getElementsVisibilityStatus](./SharedVisibilityHandling.md#getelementsvisibilitystatus) | ||
|
|
||
| ## Getting visibility status | ||
|
|
||
| ### getDefinitionContainersVisibilityStatus | ||
|
|
||
| To determine definition containers' visibility status, get their child categories from cache and call [getCategoriesVisibilityStatus](./SharedVisibilityHandling.md#getcategoriesvisibilitystatus). | ||
|
|
||
| ```mermaid | ||
| --- | ||
| config: | ||
| flowchart: | ||
| wrappingWidth: 750 | ||
| useMaxWidth: false | ||
| --- | ||
|
|
||
| flowchart TD | ||
| RESULT_Partial[/partial/] | ||
| RESULT_Visible[/visible/] | ||
| RESULT_Hidden[/hidden/] | ||
|
|
||
| %% Start | ||
| TITLE(["<code>getDefinitionContainersVisibilityStatus</code>"]) --> A["Get categories under <code>props.definitionContainerIds</code> from cache. These are categories whose modelId is the same as definition container or categories of child definition containers (can be nested)"] | ||
|
|
||
| PROPS[\" | ||
| <code>props</code> | ||
| <div style='text-align: left;'>- definitionContainerIds: **Id64Arg**</div> | ||
| "\] | ||
JonasDov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| A -- categoryIds --> B["<code><a href='./SharedVisibilityHandling.md#getcategoriesvisibilitystatus'>getCategoriesVisibilityStatus</a>({ categoryIds, modelId: undefined })</code>"] | ||
|
|
||
| %% Results | ||
| B -- partial --> RESULT_Partial | ||
| B -- visible --> RESULT_Visible | ||
| B -- hidden --> RESULT_Hidden | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,82 @@ | ||
| <!-- cspell: ignore getcategoriesvisibilitystatus --> | ||
|
|
||
| # Classifications tree specific visibility handling | ||
|
|
||
| This document explains visibility handling for classifications tree specific cases. | ||
|
|
||
| ## Table of contents | ||
|
|
||
| - [Getting visibility status](#getting-visibility-status) | ||
| - [getClassificationTablesVisibilityStatus](#getclassificationtablesvisibilitystatus) | ||
| - [getClassificationsVisibilityStatus](#getclassificationsvisibilitystatus) | ||
| - [getCategoriesVisibilityStatus](./SharedVisibilityHandling.md#getcategoriesvisibilitystatus) | ||
| - [getElementsVisibilityStatus](./SharedVisibilityHandling.md#getelementsvisibilitystatus) | ||
JonasDov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Getting visibility status | ||
|
|
||
| ### getClassificationTablesVisibilityStatus | ||
|
|
||
| To determine classification tables' visibility status, get their child categories from cache and call [getCategoriesVisibilityStatus](./SharedVisibilityHandling.md#getcategoriesvisibilitystatus). | ||
|
|
||
| ```mermaid | ||
| --- | ||
| config: | ||
| flowchart: | ||
| wrappingWidth: 750 | ||
| useMaxWidth: false | ||
| --- | ||
|
|
||
| flowchart TD | ||
| RESULT_Partial[/partial/] | ||
| RESULT_Visible[/visible/] | ||
| RESULT_Hidden[/hidden/] | ||
|
|
||
|
|
||
| %% Start | ||
| TITLE(["<code>getClassificationTablesVisibilityStatus</code>"]) --> A["Get categories under <code>props.classificationTableIds</code> from cache. These are categories of child classifications (can be nested)"] | ||
|
|
||
| PROPS[\" | ||
| <code>props</code> | ||
| <div style='text-align: left;'>- classificationTableIds: **Id64Arg**</div> | ||
| "\] | ||
|
|
||
JonasDov marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| A -- categoryIds --> B["<code><a href='./SharedVisibilityHandling.md#getcategoriesvisibilitystatus'>getCategoriesVisibilityStatus</a>({ categoryIds, modelId: undefined })</code>"] | ||
|
|
||
| %% Results | ||
| B -- partial --> RESULT_Partial | ||
| B -- visible --> RESULT_Visible | ||
| B -- hidden --> RESULT_Hidden | ||
| ``` | ||
|
|
||
| ### getClassificationsVisibilityStatus | ||
|
|
||
| To determine classifications' visibility status, get their child categories from cache and call [getCategoriesVisibilityStatus](./SharedVisibilityHandling.md#getcategoriesvisibilitystatus). | ||
|
|
||
| ```mermaid | ||
| --- | ||
| config: | ||
| flowchart: | ||
| wrappingWidth: 750 | ||
| useMaxWidth: false | ||
| --- | ||
|
|
||
| flowchart TD | ||
| RESULT_Partial[/partial/] | ||
| RESULT_Visible[/visible/] | ||
| RESULT_Hidden[/hidden/] | ||
|
|
||
| %% Start | ||
| TITLE(["<code>getClassificationsVisibilityStatus</code>"]) --> A["Get categories under <code>props.classificationIds</code> from cache. These are related categories and categories of child classifications (can be nested)"] | ||
|
|
||
| PROPS[\" | ||
| <code>props</code> | ||
| <div style='text-align: left;'>- classificationIds: **Id64Arg**</div> | ||
| "\] | ||
|
|
||
| A -- categoryIds --> B["<code><a href='./SharedVisibilityHandling.md#getcategoriesvisibilitystatus'>getCategoriesVisibilityStatus</a>({ categoryIds, modelId: undefined })</code>"] | ||
|
|
||
| %% Results | ||
| B -- partial --> RESULT_Partial | ||
| B -- visible --> RESULT_Visible | ||
| B -- hidden --> RESULT_Hidden | ||
| ``` | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| <!-- cspell: ignore getmodelsvisibilitystatus --> | ||
|
|
||
| # Models tree specific visibility handling | ||
|
|
||
| This document explains visibility handling for models tree specific cases. | ||
|
|
||
| ## Table of contents | ||
|
|
||
| - [Getting visibility status](#getting-visibility-status) | ||
| - [getSubjectsVisibilityStatus](#getsubjectsvisibilitystatus) | ||
| - [getModelsVisibilityStatus](./SharedVisibilityHandling.md#getmodelsvisibilitystatus) | ||
| - [getCategoriesVisibilityStatus](./SharedVisibilityHandling.md#getcategoriesvisibilitystatus) | ||
| - [getElementsVisibilityStatus](./SharedVisibilityHandling.md#getelementsvisibilitystatus) | ||
JonasDov marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Getting visibility status | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Similar to my other comment, I'd add a TOC here. Also, in addition to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added |
||
|
|
||
| ### getSubjectsVisibilityStatus | ||
|
|
||
| To determine subjects' visibility status, get their child models from cache and call [getModelsVisibilityStatus](./SharedVisibilityHandling.md#getmodelsvisibilitystatus). | ||
|
|
||
| ```mermaid | ||
| --- | ||
| config: | ||
| flowchart: | ||
| wrappingWidth: 750 | ||
| useMaxWidth: false | ||
| --- | ||
|
|
||
| flowchart TD | ||
| RESULT_Partial[/partial/] | ||
| RESULT_Visible[/visible/] | ||
| RESULT_Hidden[/hidden/] | ||
|
|
||
| %% Start | ||
| TITLE("<code>getSubjectsVisibilityStatus</code>") --> A["Get models under <code>props.subjectIds</code> from cache. These are related models and models of child subjects (can be nested)"] | ||
|
|
||
| PROPS[\"<code>props</code> | ||
| <div style='text-align: left;'>- subjectIds: **Id64Arg**</div> | ||
| "\] | ||
|
|
||
| A -- modelIds --> B["<code><a href='./SharedVisibilityHandling.md#getmodelsvisibilitystatus'>getModelsVisibilityStatus</a>({ modelIds })</code>"] | ||
|
|
||
| %% Results | ||
| B -- partial --> RESULT_Partial | ||
| B -- visible --> RESULT_Visible | ||
| B -- hidden --> RESULT_Hidden | ||
| ``` | ||
Uh oh!
There was an error while loading. Please reload this page.