Skip to content

Commit

Permalink
Addon-docs: Update Angular prop extraction snapshots
Browse files Browse the repository at this point in the history
  • Loading branch information
shilman committed May 28, 2020
1 parent 8a20f47 commit 62882fb
Show file tree
Hide file tree
Showing 2 changed files with 77 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
exports[`angular component properties doc-button 1`] = `
Object {
"_inputValue": Object {
"defaultValue": Object {
"summary": "'some value'",
},
"defaultValue": "some value",
"description": "",
"name": "_inputValue",
"table": Object {
Expand All @@ -15,11 +13,12 @@ Object {
"summary": "string",
},
},
"type": Object {
"name": "void",
},
},
"_value": Object {
"defaultValue": Object {
"summary": "'Private hello'",
},
"defaultValue": "Private hello",
"description": "<p>Private value. </p>
",
"name": "_value",
Expand All @@ -30,11 +29,12 @@ Object {
"summary": "string",
},
},
"type": Object {
"name": "void",
},
},
"appearance": Object {
"defaultValue": Object {
"summary": "'secondary'",
},
"defaultValue": "secondary",
"description": "<p>Appearance style of the button. </p>
",
"name": "appearance",
Expand All @@ -45,11 +45,16 @@ Object {
"summary": "\\"primary\\" | \\"secondary\\"",
},
},
"type": Object {
"name": "enum",
"value": Array [
"primary",
"secondary",
],
},
},
"buttonRef": Object {
"defaultValue": Object {
"summary": undefined,
},
"defaultValue": undefined,
"description": "",
"name": "buttonRef",
"table": Object {
Expand All @@ -59,11 +64,12 @@ Object {
"summary": "ElementRef",
},
},
"type": Object {
"name": "void",
},
},
"calc": Object {
"defaultValue": Object {
"summary": "",
},
"defaultValue": undefined,
"description": "<p>An internal calculation method which adds <code>x</code> and <code>y</code> together.</p>
",
"name": "calc",
Expand All @@ -74,11 +80,12 @@ Object {
"summary": "(x: number, y: string | number) => number",
},
},
"type": Object {
"name": "void",
},
},
"inputValue": Object {
"defaultValue": Object {
"summary": undefined,
},
"defaultValue": undefined,
"description": "<p>Setter for <code>inputValue</code> that is also an <code>@Input</code>. </p>
",
"name": "inputValue",
Expand All @@ -89,11 +96,12 @@ Object {
"summary": "string",
},
},
"type": Object {
"name": "string",
},
},
"internalProperty": Object {
"defaultValue": Object {
"summary": "'Public hello'",
},
"defaultValue": "Public hello",
"description": "<p>Public value. </p>
",
"name": "internalProperty",
Expand All @@ -104,11 +112,12 @@ Object {
"summary": "string",
},
},
"type": Object {
"name": "void",
},
},
"isDisabled": Object {
"defaultValue": Object {
"summary": "false",
},
"defaultValue": false,
"description": "<p>Sets the button to a disabled state. </p>
",
"name": "isDisabled",
Expand All @@ -119,11 +128,12 @@ Object {
"summary": undefined,
},
},
"type": Object {
"name": "boolean",
},
},
"item": Object {
"defaultValue": Object {
"summary": undefined,
},
"defaultValue": undefined,
"description": undefined,
"name": "item",
"table": Object {
Expand All @@ -133,11 +143,12 @@ Object {
"summary": "[]",
},
},
"type": Object {
"name": "object",
},
},
"label": Object {
"defaultValue": Object {
"summary": undefined,
},
"defaultValue": undefined,
"description": "<p>The inner text of the button.</p>
",
"name": "label",
Expand All @@ -148,11 +159,12 @@ Object {
"summary": "string",
},
},
"type": Object {
"name": "string",
},
},
"onClick": Object {
"defaultValue": Object {
"summary": "new EventEmitter<Event>()",
},
"defaultValue": undefined,
"description": "<p>Handler to be called when the button is clicked by a user.</p>
<p>Will also block the emission of the event if <code>isDisabled</code> is true.</p>
",
Expand All @@ -164,11 +176,12 @@ Object {
"summary": "EventEmitter",
},
},
"type": Object {
"name": "void",
},
},
"privateMethod": Object {
"defaultValue": Object {
"summary": "",
},
"defaultValue": undefined,
"description": "<p>A private method.</p>
",
"name": "privateMethod",
Expand All @@ -179,11 +192,12 @@ Object {
"summary": "(password: string) => void",
},
},
"type": Object {
"name": "void",
},
},
"processedItem": Object {
"defaultValue": Object {
"summary": undefined,
},
"defaultValue": undefined,
"description": "",
"name": "processedItem",
"table": Object {
Expand All @@ -193,11 +207,12 @@ Object {
"summary": "T[]",
},
},
"type": Object {
"name": "void",
},
},
"protectedMethod": Object {
"defaultValue": Object {
"summary": "",
},
"defaultValue": undefined,
"description": "<p>A protected method.</p>
",
"name": "protectedMethod",
Expand All @@ -208,11 +223,12 @@ Object {
"summary": "(id?: number) => void",
},
},
"type": Object {
"name": "void",
},
},
"publicMethod": Object {
"defaultValue": Object {
"summary": "",
},
"defaultValue": undefined,
"description": "<p>A public method using an interface. </p>
",
"name": "publicMethod",
Expand All @@ -223,11 +239,12 @@ Object {
"summary": "(things: ISomeInterface) => void",
},
},
"type": Object {
"name": "void",
},
},
"showKeyAlias": Object {
"defaultValue": Object {
"summary": undefined,
},
"defaultValue": undefined,
"description": undefined,
"name": "showKeyAlias",
"table": Object {
Expand All @@ -237,11 +254,12 @@ Object {
"summary": "",
},
},
"type": Object {
"name": "void",
},
},
"size": Object {
"defaultValue": Object {
"summary": "'medium'",
},
"defaultValue": "medium",
"description": "<p>Size of the button. </p>
",
"name": "size",
Expand All @@ -252,11 +270,12 @@ Object {
"summary": "ButtonSize",
},
},
"type": Object {
"name": "object",
},
},
"somethingYouShouldNotUse": Object {
"defaultValue": Object {
"summary": "false",
},
"defaultValue": false,
"description": "<p>Some input you shouldn&#39;t use.</p>
",
"name": "somethingYouShouldNotUse",
Expand All @@ -267,6 +286,9 @@ Object {
"summary": undefined,
},
},
"type": Object {
"name": "boolean",
},
},
}
`;
2 changes: 1 addition & 1 deletion addons/docs/src/frameworks/angular/compodoc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ const extractDefaultValue = (property: Property) => {
const value = eval(property.defaultValue);
return value;
} catch (err) {
logger.warn(`Error extracting ${property.name}: $ {property.defaultValue}`);
logger.info(`Error extracting ${property.name}: $ {property.defaultValue}`);
return undefined;
}
};
Expand Down

0 comments on commit 62882fb

Please sign in to comment.