-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add progress spinner & slide toggle component
- Loading branch information
1 parent
4695074
commit a25cf00
Showing
35 changed files
with
704 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
::: mesop.components.progress_spinner.progress_spinner |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"input": { | ||
"name": "progress_spinner", | ||
"targetClass": "MatProgressSpinner", | ||
"hasContent": false, | ||
"elementName": "mat-progress-spinner", | ||
"tsFilename": "", | ||
"directiveNamesList": [], | ||
"nativeEventsList": [], | ||
"skipPropertyNamesList": [], | ||
"ngModulesList": [ | ||
{ | ||
"importPath": "@angular/material/progress-spinner", | ||
"moduleName": "MatProgressSpinnerModule", | ||
"otherSymbolsList": [] | ||
} | ||
], | ||
"isFormField": false | ||
}, | ||
"inputPropsList": [ | ||
{ | ||
"name": "color", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 1 | ||
}, | ||
"debugType": "", | ||
"target": 0, | ||
"docs": "Theme palette color of the progress spinner." | ||
}, | ||
{ | ||
"name": "mode", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 0, | ||
"stringLiterals": { | ||
"stringLiteralList": ["determinate", "indeterminate"], | ||
"defaultValue": "determinate" | ||
} | ||
}, | ||
"debugType": "ProgressSpinnerMode", | ||
"target": 0, | ||
"docs": "Mode of the progress bar. Input must be one of these values: determinate, indeterminate, buffer, query, defaults to 'determinate'. Mirrored to mode attribute." | ||
}, | ||
{ | ||
"name": "value", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 3 | ||
}, | ||
"debugType": "number", | ||
"target": 0, | ||
"docs": "Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow." | ||
}, | ||
{ | ||
"name": "diameter", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 3 | ||
}, | ||
"debugType": "number", | ||
"target": 0, | ||
"docs": "The diameter of the progress spinner (will set width and height of svg)." | ||
}, | ||
{ | ||
"name": "strokeWidth", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 3 | ||
}, | ||
"debugType": "number", | ||
"target": 0, | ||
"docs": "Stroke width of the progress spinner." | ||
} | ||
], | ||
"outputPropsList": [] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,168 @@ | ||
{ | ||
"input": { | ||
"name": "slide_toggle", | ||
"targetClass": "MatSlideToggle", | ||
"hasContent": false, | ||
"elementName": "mat-slide-toggle", | ||
"tsFilename": "", | ||
"directiveNamesList": [], | ||
"nativeEventsList": [], | ||
"skipPropertyNamesList": ["toggleChange"], | ||
"ngModulesList": [ | ||
{ | ||
"importPath": "@angular/material/slide-toggle", | ||
"moduleName": "MatSlideToggleModule", | ||
"otherSymbolsList": ["MatSlideToggleChange"] | ||
} | ||
], | ||
"isFormField": false | ||
}, | ||
"inputPropsList": [ | ||
{ | ||
"name": "name", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 1 | ||
}, | ||
"debugType": "string | null", | ||
"target": 0, | ||
"docs": "Name value will be applied to the input element if present." | ||
}, | ||
{ | ||
"name": "id", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 1 | ||
}, | ||
"debugType": "string", | ||
"target": 0, | ||
"docs": "A unique id for the slide-toggle input. If none is supplied, it will be auto-generated." | ||
}, | ||
{ | ||
"name": "labelPosition", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 0, | ||
"stringLiterals": { | ||
"stringLiteralList": ["before", "after"], | ||
"defaultValue": "after" | ||
} | ||
}, | ||
"debugType": "'before' | 'after'", | ||
"target": 0, | ||
"docs": "Whether the label should appear after or before the slide-toggle. Defaults to 'after'." | ||
}, | ||
{ | ||
"name": "ariaLabel", | ||
"alias": "aria-label", | ||
"type": { | ||
"simpleType": 1 | ||
}, | ||
"debugType": "string | null", | ||
"target": 0, | ||
"docs": "Used to set the aria-label attribute on the underlying input element." | ||
}, | ||
{ | ||
"name": "ariaLabelledby", | ||
"alias": "aria-labelledby", | ||
"type": { | ||
"simpleType": 1 | ||
}, | ||
"debugType": "string | null", | ||
"target": 0, | ||
"docs": "Used to set the aria-labelledby attribute on the underlying input element." | ||
}, | ||
{ | ||
"name": "ariaDescribedby", | ||
"alias": "aria-describedby", | ||
"type": { | ||
"simpleType": 1 | ||
}, | ||
"debugType": "string", | ||
"target": 0, | ||
"docs": "Used to set the aria-describedby attribute on the underlying input element." | ||
}, | ||
{ | ||
"name": "required", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 2 | ||
}, | ||
"debugType": "boolean", | ||
"target": 0, | ||
"docs": "Whether the slide-toggle is required." | ||
}, | ||
{ | ||
"name": "color", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 1 | ||
}, | ||
"debugType": "string | undefined", | ||
"target": 0, | ||
"docs": "Palette color of slide toggle." | ||
}, | ||
{ | ||
"name": "disabled", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 2 | ||
}, | ||
"debugType": "boolean", | ||
"target": 0, | ||
"docs": "Whether the slide toggle is disabled." | ||
}, | ||
{ | ||
"name": "disableRipple", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 2 | ||
}, | ||
"debugType": "boolean", | ||
"target": 0, | ||
"docs": "Whether the slide toggle has a ripple." | ||
}, | ||
{ | ||
"name": "tabIndex", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 3 | ||
}, | ||
"debugType": "number", | ||
"target": 0, | ||
"docs": "Tabindex of slide toggle." | ||
}, | ||
{ | ||
"name": "checked", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 2 | ||
}, | ||
"debugType": "boolean", | ||
"target": 0, | ||
"docs": "Whether the slide-toggle element is checked or not." | ||
}, | ||
{ | ||
"name": "hideIcon", | ||
"alias": "", | ||
"type": { | ||
"simpleType": 2 | ||
}, | ||
"debugType": "boolean", | ||
"target": 0, | ||
"docs": "Whether to hide the icon inside of the slide toggle." | ||
} | ||
], | ||
"outputPropsList": [ | ||
{ | ||
"name": "change", | ||
"eventName": "SlideToggleChangeEvent", | ||
"eventPropsList": [], | ||
"eventJsType": { | ||
"typeName": "MatSlideToggleChange", | ||
"isPrimitive": false | ||
}, | ||
"docs": "An event will be dispatched each time the slide-toggle changes its value." | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.