Skip to content

Commit dba0210

Browse files
doc(elements): fix pos-case link and attribute description
1 parent 8695723 commit dba0210

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

docs/elements/components/pos-switch/pos-case/readme.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@ See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--po
99

1010
## Properties
1111

12-
| Property | Attribute | Description | Type | Default |
13-
| ---------- | ----------- | ---------------------------------------------------------------------------- | --------- | ----------- |
14-
| `else` | `else` | The test only evaluates to true if tests for preceding templates have failed | `boolean` | `undefined` |
15-
| `ifTypeof` | `if-typeof` | Test if the resource is of the specified type | `string` | `undefined` |
16-
| `not` | `not` | Negates the result of the test | `boolean` | `undefined` |
12+
| Property | Attribute | Description | Type | Default |
13+
| ---------- | ----------- | ------------------------------------------------------------------------ | --------- | ----------- |
14+
| `else` | `else` | The test only evaluates to true if tests for preceding cases have failed | `boolean` | `undefined` |
15+
| `ifTypeof` | `if-typeof` | Test if the resource is of the specified type | `string` | `undefined` |
16+
| `not` | `not` | Negates the result of the test | `boolean` | `undefined` |
1717

1818

1919
----------------------------------------------

docs/elements/components/pos-switch/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Selects a child template to render based on properties of the subject resource, usually defined by an ancestor `pos-resource` element.
88
See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example.
9-
See [pos-case](https://pod-os.org/reference/elements/components/pos-case/) for available filter conditions.
9+
See [pos-case](https://pod-os.org/reference/elements/components/pos-switch/pos-case/) for available filter conditions.
1010

1111
## Events
1212

elements/src/components.d.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ export namespace Components {
6464
*/
6565
interface PosCase {
6666
/**
67-
* The test only evaluates to true if tests for preceding templates have failed
67+
* The test only evaluates to true if tests for preceding cases have failed
6868
*/
6969
"else"?: boolean;
7070
/**
@@ -274,7 +274,7 @@ export namespace Components {
274274
/**
275275
* Selects a child template to render based on properties of the subject resource, usually defined by an ancestor `pos-resource` element.
276276
* See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example.
277-
* See [pos-case](https://pod-os.org/reference/elements/components/pos-case/) for available filter conditions.
277+
* See [pos-case](https://pod-os.org/reference/elements/components/pos-switch/pos-case/) for available filter conditions.
278278
*/
279279
interface PosSwitch {
280280
}
@@ -1132,7 +1132,7 @@ declare global {
11321132
/**
11331133
* Selects a child template to render based on properties of the subject resource, usually defined by an ancestor `pos-resource` element.
11341134
* See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example.
1135-
* See [pos-case](https://pod-os.org/reference/elements/components/pos-case/) for available filter conditions.
1135+
* See [pos-case](https://pod-os.org/reference/elements/components/pos-switch/pos-case/) for available filter conditions.
11361136
*/
11371137
interface HTMLPosSwitchElement extends Components.PosSwitch, HTMLStencilElement {
11381138
addEventListener<K extends keyof HTMLPosSwitchElementEventMap>(type: K, listener: (this: HTMLPosSwitchElement, ev: PosSwitchCustomEvent<HTMLPosSwitchElementEventMap[K]>) => any, options?: boolean | AddEventListenerOptions): void;
@@ -1393,7 +1393,7 @@ declare namespace LocalJSX {
13931393
*/
13941394
interface PosCase {
13951395
/**
1396-
* The test only evaluates to true if tests for preceding templates have failed
1396+
* The test only evaluates to true if tests for preceding cases have failed
13971397
*/
13981398
"else"?: boolean;
13991399
/**
@@ -1659,7 +1659,7 @@ declare namespace LocalJSX {
16591659
/**
16601660
* Selects a child template to render based on properties of the subject resource, usually defined by an ancestor `pos-resource` element.
16611661
* See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example.
1662-
* See [pos-case](https://pod-os.org/reference/elements/components/pos-case/) for available filter conditions.
1662+
* See [pos-case](https://pod-os.org/reference/elements/components/pos-switch/pos-case/) for available filter conditions.
16631663
*/
16641664
interface PosSwitch {
16651665
"onPod-os:resource"?: (event: PosSwitchCustomEvent<any>) => void;
@@ -1857,7 +1857,7 @@ declare module "@stencil/core" {
18571857
/**
18581858
* Selects a child template to render based on properties of the subject resource, usually defined by an ancestor `pos-resource` element.
18591859
* See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example.
1860-
* See [pos-case](https://pod-os.org/reference/elements/components/pos-case/) for available filter conditions.
1860+
* See [pos-case](https://pod-os.org/reference/elements/components/pos-switch/pos-case/) for available filter conditions.
18611861
*/
18621862
"pos-switch": LocalJSX.PosSwitch & JSXBase.HTMLAttributes<HTMLPosSwitchElement>;
18631863
/**

elements/src/components/pos-switch/pos-case/pos-case.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export class PosCase {
2121
*/
2222
@Prop() not?: boolean;
2323
/**
24-
* The test only evaluates to true if tests for preceding templates have failed
24+
* The test only evaluates to true if tests for preceding cases have failed
2525
*/
2626
@Prop() else?: boolean;
2727

elements/src/components/pos-switch/pos-switch.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { ResourceAware, ResourceEventEmitter, subscribeResource } from '../event
55
/**
66
* Selects a child template to render based on properties of the subject resource, usually defined by an ancestor `pos-resource` element.
77
* See [storybook](https://pod-os.github.io/PodOS/storybook/?path=/story/basics--pos-switch) for an example.
8-
* See [pos-case](https://pod-os.org/reference/elements/components/pos-case/) for available filter conditions.
8+
* See [pos-case](https://pod-os.org/reference/elements/components/pos-switch/pos-case/) for available filter conditions.
99
*/
1010
@Component({
1111
tag: 'pos-switch',

0 commit comments

Comments
 (0)