diff --git a/demo/src/app/components/+rating/demos/config/config.html b/demo/src/app/components/+rating/demos/config/config.html
new file mode 100644
index 0000000000..9ecdd87710
--- /dev/null
+++ b/demo/src/app/components/+rating/demos/config/config.html
@@ -0,0 +1,4 @@
+
Rate: {{rate}}+
Default mode for all date pickers
\n" }, - { - "name": "showPreviousMonth", - "type": "boolean", - "description": "Shows previous and current month, instead of current and next (daterangepicker only
\n" - }, { "name": "rangeInputFormat", "defaultValue": "L", @@ -1044,13 +1039,24 @@ export const ngdoc: any = { { "name": "selectWeek", "type": "boolean", - "description": "Makes dates from other months active
\n" + "description": "Allows select first date of the week by click on week number
\n" + }, + { + "name": "showPreviousMonth", + "type": "boolean", + "description": "Shows previous and current month, instead of current and next (dateRangePicker only)
\n" }, { "name": "showWeekNumbers", "defaultValue": "true", "type": "boolean", "description": "Allows to hide week numbers in datepicker
\n" + }, + { + "name": "useUtc", + "defaultValue": "false", + "type": "boolean", + "description": "sets use UTC date time format
\n" } ] }, @@ -1262,14 +1268,7 @@ export const ngdoc: any = { "className": "BsDaterangepickerConfig", "description": "", "methods": [], - "properties": [ - { - "name": "isAnimated", - "defaultValue": "false", - "type": "boolean", - "description": "turn on/off animation
\n" - } - ] + "properties": [] }, "BsLocaleService": { "fileName": "src/datepicker/bs-locale.service.ts", @@ -2093,6 +2092,12 @@ export const ngdoc: any = { "defaultValue": "false", "type": "boolean", "description": "default dropdown auto closing behavior
\n" + }, + { + "name": "isAnimated", + "defaultValue": "false", + "type": "boolean", + "description": "turn on/off animation
\n" } ] }, @@ -2123,6 +2128,11 @@ export const ngdoc: any = { "type": "boolean", "description": "This attribute indicates that the dropdown shouldn't close on inside click when autoClose is set to true
\n" }, + { + "name": "isAnimated", + "type": "boolean", + "description": "Indicates that dropdown will be animated
\n" + }, { "name": "isDisabled", "type": "boolean", @@ -2169,6 +2179,11 @@ export const ngdoc: any = { "type": "boolean", "description": "This attribute indicates that the dropdown shouldn't close on inside click when autoClose is set to true
\n" }, + { + "name": "isAnimated", + "type": "boolean", + "description": "Indicates that dropdown will be animated
\n" + }, { "name": "isDisabled", "type": "boolean", @@ -2268,7 +2283,7 @@ export const ngdoc: any = { }, { "name": "checkScrollbar", - "description": "AFTER PR MERGE MODAL.COMPONENT WILL BE USING THIS CODE\nScroll bar tricks
\n", + "description": "Checks if the body is overflowing and sets scrollbar width
\n", "args": [], "returnType": "void" } @@ -2696,6 +2711,12 @@ export const ngdoc: any = { "type": "string", "description": "A selector specifying the element the popover should be appended to.
\n" }, + { + "name": "delay", + "defaultValue": "0", + "type": "number", + "description": "delay before showing the tooltip
\n" + }, { "name": "placement", "defaultValue": "top", @@ -2707,12 +2728,6 @@ export const ngdoc: any = { "defaultValue": "click", "type": "string", "description": "Specifies events that should trigger. Supports a space separated list of\nevent names.
\n" - }, - { - "name": "delay", - "defaultValue": "0", - "type": "number", - "description": "delay before showing the popover
\n" } ] }, @@ -2741,7 +2756,7 @@ export const ngdoc: any = { { "name": "delay", "type": "number", - "description": "Delay before showing the popover
\n" + "description": "Delay before showing the tooltip
\n" }, { "name": "isOpen", @@ -2927,7 +2942,7 @@ export const ngdoc: any = { }, { "name": "type", - "type": "string", + "type": "ProgressbarType", "description": "provide one of the four supported contextual classes: success
, info
, warning
, danger
fired when icon selected, $event:number equals to previous rating value
\n" } ], - "properties": [], + "properties": [ + { + "name": "ariaLabel", + "type": "string", + "description": "aria label for rating
\n" + } + ], "methods": [] }, + "RatingConfig": { + "fileName": "src/rating/rating.config.ts", + "className": "RatingConfig", + "description": "Default values provider for rating
\n", + "methods": [], + "properties": [ + { + "name": "ariaLabel", + "defaultValue": "rating", + "type": "string", + "description": "aria label for rating
\n" + } + ] + }, "DraggableItemService": { "fileName": "src/sortable/draggable-item.service.ts", "className": "DraggableItemService", @@ -3211,7 +3246,13 @@ export const ngdoc: any = { } ], "outputs": [], - "properties": [], + "properties": [ + { + "name": "ariaLabel", + "type": "string", + "description": "aria label for tab list
\n" + } + ], "methods": [] }, "TabsetConfig": { @@ -3220,6 +3261,12 @@ export const ngdoc: any = { "description": "", "methods": [], "properties": [ + { + "name": "ariaLabel", + "defaultValue": "Tabs", + "type": "string", + "description": "aria label for tab list
\n" + }, { "name": "type", "defaultValue": "tabs", @@ -3265,6 +3312,11 @@ export const ngdoc: any = { "type": "boolean", "description": "if true hours and minutes fields will be disabled
\n" }, + { + "name": "hoursPlaceholder", + "type": "string", + "description": "placeholder for hours field in timepicker
\n" + }, { "name": "hourStep", "type": "number", @@ -3285,6 +3337,11 @@ export const ngdoc: any = { "type": "Date", "description": "minimum time user can select
\n" }, + { + "name": "minutesPlaceholder", + "type": "string", + "description": "placeholder for minutes field in timepicker
\n" + }, { "name": "minuteStep", "type": "number", @@ -3300,6 +3357,11 @@ export const ngdoc: any = { "type": "boolean", "description": "if true hours and minutes fields will be readonly
\n" }, + { + "name": "secondsPlaceholder", + "type": "string", + "description": "placeholder for seconds field in timepicker
\n" + }, { "name": "secondsStep", "type": "number", @@ -3324,21 +3386,6 @@ export const ngdoc: any = { "name": "showSpinners", "type": "boolean", "description": "if true spinner arrows above and below the inputs will be shown
\n" - }, - { - "name": "hoursPlaceholder", - "type": "string", - "description": "placeholder for hours field
\n" - }, - { - "name": "minutesPlacesholder", - "type": "string", - "description": "placeholder for minutes field
\n" - }, - { - "name": "secondsPlaceholder", - "type": "string", - "description": "placeholder for seconds field
\n" } ], "outputs": [ @@ -3368,6 +3415,12 @@ export const ngdoc: any = { "type": "boolean", "description": "if true hours and minutes fields will be disabled
\n" }, + { + "name": "hoursPlaceholder", + "defaultValue": "HH", + "type": "string", + "description": "placeholder for hours field in timepicker
\n" + }, { "name": "hourStep", "defaultValue": "1", @@ -3389,6 +3442,12 @@ export const ngdoc: any = { "type": "Date", "description": "minimum time user can select
\n" }, + { + "name": "minutesPlaceholder", + "defaultValue": "MM", + "type": "string", + "description": "placeholder for minutes field in timepicker
\n" + }, { "name": "minuteStep", "defaultValue": "5", @@ -3407,6 +3466,12 @@ export const ngdoc: any = { "type": "boolean", "description": "if true hours and minutes fields will be readonly
\n" }, + { + "name": "secondsPlaceholder", + "defaultValue": "SS", + "type": "string", + "description": "placeholder for seconds field in timepicker
\n" + }, { "name": "secondsStep", "defaultValue": "10", @@ -3436,24 +3501,6 @@ export const ngdoc: any = { "defaultValue": "true", "type": "boolean", "description": "if true spinner arrows above and below the inputs will be shown
\n" - }, - { - "name": "hoursPlaceholder", - "defaultValue": "HH", - "type": "string", - "description": "placeholder for hours field
\n" - }, - { - "name": "minutesPlacesholder", - "defaultValue": "MM", - "type": "string", - "description": "placeholder for minutes field
\n" - }, - { - "name": "secondsPlaceholder", - "defaultValue": "SS", - "type": "string", - "description": "placeholder for seconds field
\n" } ] }, @@ -3778,7 +3825,7 @@ export const ngdoc: any = { { "name": "typeaheadAsync", "type": "boolean", - "description": "should be used only in case of typeahead attribute is array.\nIf true - loading of options will be async, otherwise - sync.\ntrue make sense if options array is large.
\n" + "description": "should be used only in case of typeahead attribute is Observable of array.\nIf true - loading of options will be async, otherwise - sync.\ntrue make sense if options array is large.
\n" }, { "name": "typeaheadGroupField", diff --git a/src/common/public_api.ts b/src/common/public_api.ts index f3dc2614ee..e35d33efa5 100644 --- a/src/common/public_api.ts +++ b/src/common/public_api.ts @@ -104,7 +104,11 @@ export { ProgressbarModule } from 'ngx-bootstrap/progressbar'; -export { RatingComponent, RatingModule } from 'ngx-bootstrap/rating'; +export { + RatingComponent, + RatingModule, + RatingConfig +} from 'ngx-bootstrap/rating'; export { DraggableItem, diff --git a/src/index.ts b/src/index.ts index fe8c968cc4..0fdfafff10 100644 --- a/src/index.ts +++ b/src/index.ts @@ -100,7 +100,11 @@ export { ProgressbarModule } from './progressbar/index'; -export { RatingComponent, RatingModule } from './rating/index'; +export { + RatingComponent, + RatingModule, + RatingConfig +} from './rating/index'; export { DraggableItem, diff --git a/src/rating/public_api.ts b/src/rating/public_api.ts index 0df9080d2e..9eeff904a7 100644 --- a/src/rating/public_api.ts +++ b/src/rating/public_api.ts @@ -1,2 +1,3 @@ +export { RatingConfig } from './rating.config'; export { RatingComponent } from './rating.component'; export { RatingModule } from './rating.module'; diff --git a/src/rating/rating.component.html b/src/rating/rating.component.html index 86b9554d94..c0d7dff94c 100644 --- a/src/rating/rating.component.html +++ b/src/rating/rating.component.html @@ -1,5 +1,7 @@