Skip to content

Commit

Permalink
fix(docs/general): improvements (#1307)
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiashader authored Jul 30, 2024
1 parent b4a306e commit db678ea
Show file tree
Hide file tree
Showing 99 changed files with 1,427 additions and 820 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* SPDX-FileCopyrightText: 2022 Siemens AG
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
Expand Down
3 changes: 3 additions & 0 deletions CODE_OF_CONDUCT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
SPDX-FileCopyrightText: 2024 Siemens AG
SPDX-License-Identifier: MIT
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
-->

# Code of Conduct
Expand Down
3 changes: 3 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
SPDX-FileCopyrightText: 2024 Siemens AG
SPDX-License-Identifier: MIT
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
-->


Expand Down
3 changes: 3 additions & 0 deletions MAINTAINERS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
SPDX-FileCopyrightText: 2024 Siemens AG
SPDX-License-Identifier: MIT
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
-->

Lukas Maurer <[email protected]>
Expand Down
3 changes: 3 additions & 0 deletions RELEASE-READINESS.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
SPDX-FileCopyrightText: 2024 Siemens AG
SPDX-License-Identifier: MIT
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
-->

All features/fixes satisfy their respective DoD
Expand Down
3 changes: 3 additions & 0 deletions SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
SPDX-FileCopyrightText: 2024 Siemens AG
SPDX-License-Identifier: MIT
This source code is licensed under the MIT license found in the
LICENSE file in the root directory of this source tree.
-->

# Reporting Security Issues
Expand Down
2 changes: 2 additions & 0 deletions packages/angular-test-app/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@ import Toast from 'src/preview-examples/toast';
import ToastCustom from 'src/preview-examples/toast-custom';
import ToastPosition from 'src/preview-examples/toast-position';
import Toggle from 'src/preview-examples/toggle';
import ToggleButtonPrimary from 'src/preview-examples/toggle-button-primary';
import ToggleButtonPrimaryGhost from 'src/preview-examples/toggle-button-primary-ghost';
import ToggleButtonPrimaryOutline from 'src/preview-examples/toggle-button-primary-outline';
import ToggleButtonSecondary from 'src/preview-examples/toggle-button-secondary';
Expand Down Expand Up @@ -371,6 +372,7 @@ const routes: Routes = [
{ path: 'theme-switcher', component: ThemeService },
{ path: 'tile', component: Tile },
{ path: 'timepicker', component: Timepicker },
{ path: 'toggle-button-primary', component: ToggleButtonPrimary },
{ path: 'toggle-button-secondary', component: ToggleButtonSecondary },
{
path: 'toggle-button-secondary-ghost',
Expand Down
2 changes: 2 additions & 0 deletions packages/angular-test-app/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ import Toast from 'src/preview-examples/toast';
import ToastCustom from 'src/preview-examples/toast-custom';
import ToastPosition from 'src/preview-examples/toast-position';
import Toggle from 'src/preview-examples/toggle';
import ToggleButtonPrimary from 'src/preview-examples/toggle-button-primary';
import ToggleButtonPrimaryGhost from 'src/preview-examples/toggle-button-primary-ghost';
import ToggleButtonPrimaryOutline from 'src/preview-examples/toggle-button-primary-outline';
import ToggleButtonSecondary from 'src/preview-examples/toggle-button-secondary';
Expand Down Expand Up @@ -241,6 +242,7 @@ import Echarts from 'src/preview-examples/echarts';
ThemeSwitcherExample,
Tile,
Timepicker,
ToggleButtonPrimary,
ToggleButtonPrimaryGhost,
ToggleButtonPrimaryOutline,
ToggleButtonSecondary,
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { Component } from '@angular/core';

@Component({
selector: 'app-example',
template: `
<ix-toggle-button variant="Primary">Normal</ix-toggle-button>
<ix-toggle-button variant="Primary" Pressed> Pressed </ix-toggle-button>
<ix-toggle-button variant="Primary" disabled> Disabled </ix-toggle-button>
<ix-toggle-button variant="Primary" disabled loading> Loading </ix-toggle-button>
`,
styles: [
`
@import 'example-styles/dist/toggle-buttons.css';
`,
],
})
export default class Buttons {}
2 changes: 1 addition & 1 deletion packages/angular/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ import type { FilterState as IIxCategoryFilterFilterState } from '@siemens/ix';

export declare interface IxCategoryFilter extends Components.IxCategoryFilter {
/**
* Event dispatched whenever the a category gets selected in the dropdown
* Event dispatched whenever a category gets selected in the dropdown
*/
categoryChanged: EventEmitter<CustomEvent<string>>;
/**
Expand Down
8 changes: 4 additions & 4 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2079,7 +2079,7 @@
},
"mutable": false,
"reflectToAttr": false,
"docs": "Configuration object hash used to populate the dropwdown menu for typeahead and quick selection functionality.\nEach ID maps to an object with a label and an array of options to select from.",
"docs": "Configuration object hash used to populate the dropdown menu for type-ahead and quick selection functionality.\nEach ID maps to an object with a label and an array of options to select from.",
"docsTags": [],
"values": [
{
Expand Down Expand Up @@ -2299,7 +2299,7 @@
"mutable": false,
"attr": "repeat-categories",
"reflectToAttr": false,
"docs": "If set to true allows that a single category can be set more than once.\nAn already set category will not appear in the category dropdown if set to false.\n\nDefaults to true",
"docs": "If set to true, allows that a single category can be set more than once.\nAn already set category will not appear in the category dropdown if set to false.\n\nDefaults to true",
"docsTags": [],
"default": "true",
"values": [
Expand Down Expand Up @@ -2355,7 +2355,7 @@
},
"mutable": false,
"reflectToAttr": false,
"docs": "A list of strings that will be supplied as typeahead suggestions not tied to any categories.",
"docs": "A list of strings that will be supplied as type-ahead suggestions not tied to any categories.",
"docsTags": [],
"values": [
{
Expand All @@ -2379,7 +2379,7 @@
},
"cancelable": true,
"composed": true,
"docs": "Event dispatched whenever the a category gets selected in the dropdown",
"docs": "Event dispatched whenever a category gets selected in the dropdown",
"docsTags": []
},
{
Expand Down
14 changes: 7 additions & 7 deletions packages/core/src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ export namespace Components {
}
interface IxCategoryFilter {
/**
* Configuration object hash used to populate the dropwdown menu for typeahead and quick selection functionality. Each ID maps to an object with a label and an array of options to select from.
* Configuration object hash used to populate the dropdown menu for type-ahead and quick selection functionality. Each ID maps to an object with a label and an array of options to select from.
*/
"categories": {
[id: string]: {
Expand Down Expand Up @@ -406,7 +406,7 @@ export namespace Components {
*/
"readonly": boolean;
/**
* If set to true allows that a single category can be set more than once. An already set category will not appear in the category dropdown if set to false. Defaults to true
* If set to true, allows that a single category can be set more than once. An already set category will not appear in the category dropdown if set to false. Defaults to true
*/
"repeatCategories": boolean;
/**
Expand All @@ -415,7 +415,7 @@ export namespace Components {
*/
"staticOperator"?: LogicalFilterOperator;
/**
* A list of strings that will be supplied as typeahead suggestions not tied to any categories.
* A list of strings that will be supplied as type-ahead suggestions not tied to any categories.
*/
"suggestions": string[];
"tmpDisableScrollIntoView": boolean;
Expand Down Expand Up @@ -4411,7 +4411,7 @@ declare namespace LocalJSX {
}
interface IxCategoryFilter {
/**
* Configuration object hash used to populate the dropwdown menu for typeahead and quick selection functionality. Each ID maps to an object with a label and an array of options to select from.
* Configuration object hash used to populate the dropdown menu for type-ahead and quick selection functionality. Each ID maps to an object with a label and an array of options to select from.
*/
"categories"?: {
[id: string]: {
Expand Down Expand Up @@ -4450,7 +4450,7 @@ declare namespace LocalJSX {
[id: string]: string;
};
/**
* Event dispatched whenever the a category gets selected in the dropdown
* Event dispatched whenever a category gets selected in the dropdown
*/
"onCategoryChanged"?: (event: IxCategoryFilterCustomEvent<string>) => void;
/**
Expand All @@ -4470,7 +4470,7 @@ declare namespace LocalJSX {
*/
"readonly"?: boolean;
/**
* If set to true allows that a single category can be set more than once. An already set category will not appear in the category dropdown if set to false. Defaults to true
* If set to true, allows that a single category can be set more than once. An already set category will not appear in the category dropdown if set to false. Defaults to true
*/
"repeatCategories"?: boolean;
/**
Expand All @@ -4479,7 +4479,7 @@ declare namespace LocalJSX {
*/
"staticOperator"?: LogicalFilterOperator;
/**
* A list of strings that will be supplied as typeahead suggestions not tied to any categories.
* A list of strings that will be supplied as type-ahead suggestions not tied to any categories.
*/
"suggestions"?: string[];
"tmpDisableScrollIntoView"?: boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class CategoryFilter {
@Prop() placeholder: string;

/**
* Configuration object hash used to populate the dropwdown menu for typeahead and quick selection functionality.
* Configuration object hash used to populate the dropdown menu for type-ahead and quick selection functionality.
* Each ID maps to an object with a label and an array of options to select from.
*/
@Prop() categories: {
Expand All @@ -91,7 +91,7 @@ export class CategoryFilter {
} = {};

/**
* A list of strings that will be supplied as typeahead suggestions not tied to any categories.
* A list of strings that will be supplied as type-ahead suggestions not tied to any categories.
*/
@Prop() suggestions: string[];

Expand All @@ -116,7 +116,7 @@ export class CategoryFilter {
@Prop() staticOperator?: LogicalFilterOperator;

/**
* If set to true allows that a single category can be set more than once.
* If set to true, allows that a single category can be set more than once.
* An already set category will not appear in the category dropdown if set to false.
*
* Defaults to true
Expand All @@ -139,7 +139,7 @@ export class CategoryFilter {
@Prop() i18nPlainText = 'Filter by text';

/**
* Event dispatched whenever the a category gets selected in the dropdown
* Event dispatched whenever a category gets selected in the dropdown
*/
@Event() categoryChanged: EventEmitter<string>;

Expand Down
43 changes: 25 additions & 18 deletions packages/documentation/docs/controls/_avatar_code.md
Original file line number Diff line number Diff line change
@@ -1,41 +1,48 @@
import Playground from '@site/src/components/PlaygroundV2';
import Props from './../auto-generated/ix-avatar/props.md';
import Events from './../auto-generated/ix-avatar/events.md';
import Tags from './../auto-generated/ix-avatar/tags.md';

# Avatar
import Playground from '@site/src/components/PlaygroundV2';

<Tags />
## Examples

## Default
### Basic

<Playground
name="avatar"
examplesByName>
name="avatar"
examplesByName>
</Playground>

## Initials
### Initials

<Playground
name="avatar-initials"
examplesByName>
name="avatar-initials"
examplesByName>
</Playground>

## Image
### Image

<Playground
name="avatar-image"
examplesByName>
name="avatar-image"
examplesByName>
</Playground>

## Header
### Header

You can also add the avatar to the header which will turn it into a clickable button.
You can also add the avatar to the header, which will turn it into a clickable button.

<Playground name="application-header" examplesByName noMargin height="21rem"></Playground>
<Playground
name="application-header"
examplesByName
noMargin
height="21rem">
</Playground>

## Properties
## API

### Props
### Properties

<Props />

### Events

<Events />
29 changes: 16 additions & 13 deletions packages/documentation/docs/controls/_blind_code.md
Original file line number Diff line number Diff line change
@@ -1,42 +1,45 @@
import { ApiTableSinceTag } from '@site/src/components/ApiTableTag';

import TabItem from '@theme/TabItem';
import Preview from '@site/src/components/Preview';
import Props from './../auto-generated/ix-blind/props.md';
import Events from './../auto-generated/ix-blind/events.md';

import Playground from '@site/src/components/PlaygroundV2'

## Examples

<Playground
name="blind"
height="16rem"
examplesByName>
name="blind"
height="16rem"
examplesByName>
</Playground>

### Header actions

<ApiTableSinceTag message="1.5.0" />

<Playground
name="blind-header-actions"
height="16rem"
examplesByName>
name="blind-header-actions"
height="16rem"
examplesByName>
</Playground>

### Variants

<ApiTableSinceTag message="2.0.0" />

<Playground
name="blind-variants"
height="16rem"
examplesByName>
name="blind-variants"
height="55rem"
examplesByName>
</Playground>

### Properties
## API

#### Props
### Properties

<Props />

#### Events
### Events

<Events />
Loading

0 comments on commit db678ea

Please sign in to comment.