ngx-bootstrap 8.0.0-RC.3 → 8.0.0-RC.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/accordion/package.json +3 -3
  2. package/alert/package.json +2 -2
  3. package/buttons/package.json +1 -1
  4. package/carousel/package.json +2 -2
  5. package/chronos/package.json +1 -1
  6. package/collapse/package.json +1 -1
  7. package/component-loader/esm2020/component-loader.class.mjs +4 -8
  8. package/component-loader/fesm2015/ngx-bootstrap-component-loader.mjs +5 -9
  9. package/component-loader/fesm2015/ngx-bootstrap-component-loader.mjs.map +1 -1
  10. package/component-loader/fesm2020/ngx-bootstrap-component-loader.mjs +3 -7
  11. package/component-loader/fesm2020/ngx-bootstrap-component-loader.mjs.map +1 -1
  12. package/component-loader/package.json +3 -3
  13. package/datepicker/bs-datepicker-inline.component.d.ts +2 -0
  14. package/datepicker/bs-datepicker.component.d.ts +2 -0
  15. package/datepicker/bs-datepicker.config.d.ts +4 -0
  16. package/datepicker/bs-daterangepicker-inline.component.d.ts +2 -0
  17. package/datepicker/bs-daterangepicker.component.d.ts +2 -0
  18. package/datepicker/esm2020/bs-datepicker-inline.component.mjs +13 -3
  19. package/datepicker/esm2020/bs-datepicker.component.mjs +24 -14
  20. package/datepicker/esm2020/bs-datepicker.config.mjs +5 -1
  21. package/datepicker/esm2020/bs-datepicker.module.mjs +2 -3
  22. package/datepicker/esm2020/bs-daterangepicker-inline.component.mjs +27 -15
  23. package/datepicker/esm2020/bs-daterangepicker.component.mjs +11 -1
  24. package/datepicker/esm2020/engine/flag-months-calendar.mjs +2 -2
  25. package/datepicker/esm2020/reducer/bs-datepicker.reducer.mjs +2 -2
  26. package/datepicker/esm2020/themes/bs/bs-datepicker-container.component.mjs +10 -3
  27. package/datepicker/esm2020/themes/bs/bs-daterangepicker-container.component.mjs +10 -3
  28. package/datepicker/esm2020/utils/bs-calendar-utils.mjs +3 -6
  29. package/datepicker/esm2020/utils/copy-time-utils.mjs +4 -1
  30. package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs +105 -40
  31. package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs.map +1 -1
  32. package/datepicker/fesm2020/ngx-bootstrap-datepicker.mjs +100 -40
  33. package/datepicker/fesm2020/ngx-bootstrap-datepicker.mjs.map +1 -1
  34. package/datepicker/package.json +8 -8
  35. package/datepicker/utils/bs-calendar-utils.d.ts +2 -2
  36. package/dropdown/package.json +4 -4
  37. package/focus-trap/package.json +1 -1
  38. package/locale/package.json +2 -2
  39. package/mini-ngrx/package.json +1 -1
  40. package/modal/package.json +5 -5
  41. package/package.json +209 -16
  42. package/pagination/package.json +1 -1
  43. package/popover/package.json +4 -4
  44. package/positioning/package.json +2 -2
  45. package/progressbar/esm2020/bar.component.mjs +2 -2
  46. package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs +3 -3
  47. package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs.map +1 -1
  48. package/progressbar/fesm2020/ngx-bootstrap-progressbar.mjs +1 -1
  49. package/progressbar/fesm2020/ngx-bootstrap-progressbar.mjs.map +1 -1
  50. package/progressbar/package.json +2 -2
  51. package/rating/package.json +1 -1
  52. package/schematics/ng-add/index.js +1 -1
  53. package/schematics/package.json +1 -1
  54. package/schematics/utils/current_dependency_versions.json +2 -2
  55. package/sortable/package.json +1 -1
  56. package/tabs/package.json +1 -1
  57. package/timepicker/package.json +2 -2
  58. package/tooltip/package.json +4 -4
  59. package/typeahead/package.json +4 -4
  60. package/utils/esm2020/theme-provider.mjs +9 -7
  61. package/utils/fesm2015/ngx-bootstrap-utils.mjs +8 -6
  62. package/utils/fesm2015/ngx-bootstrap-utils.mjs.map +1 -1
  63. package/utils/fesm2020/ngx-bootstrap-utils.mjs +8 -6
  64. package/utils/fesm2020/ngx-bootstrap-utils.mjs.map +1 -1
  65. package/utils/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/datepicker",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-datepicker.mjs",
@@ -29,16 +29,16 @@
29
29
  "peerDependencies": {
30
30
  "rxjs": "7.4.0",
31
31
  "@angular/core": "13.1.1",
32
- "ngx-bootstrap/component-loader": "8.0.0-RC.3",
33
- "ngx-bootstrap/positioning": "8.0.0-RC.3",
32
+ "ngx-bootstrap/component-loader": "8.0.0-RC.9",
33
+ "ngx-bootstrap/positioning": "8.0.0-RC.9",
34
34
  "@angular/common": "13.1.1",
35
35
  "@angular-devkit/core": "13.1.2",
36
- "ngx-bootstrap/utils": "8.0.0-RC.3",
36
+ "ngx-bootstrap/utils": "8.0.0-RC.9",
37
37
  "@angular/forms": "13.1.1",
38
- "ngx-bootstrap/chronos": "8.0.0-RC.3",
39
- "ngx-bootstrap/tooltip": "8.0.0-RC.3",
40
- "ngx-bootstrap/timepicker": "8.0.0-RC.3",
41
- "ngx-bootstrap/mini-ngrx": "8.0.0-RC.3",
38
+ "ngx-bootstrap/chronos": "8.0.0-RC.9",
39
+ "ngx-bootstrap/tooltip": "8.0.0-RC.9",
40
+ "ngx-bootstrap/timepicker": "8.0.0-RC.9",
41
+ "ngx-bootstrap/mini-ngrx": "8.0.0-RC.9",
42
42
  "@angular/platform-browser": "13.1.1",
43
43
  "@angular/animations": "13.1.1"
44
44
  }
@@ -6,8 +6,8 @@ export declare function getStartingDayOfCalendar(date: Date, options: {
6
6
  export declare function calculateDateOffset(weekday: number, startingDayOffset?: number): number;
7
7
  export declare function isMonthDisabled(date: Date, min?: Date, max?: Date): boolean;
8
8
  export declare function isYearDisabled(date: Date, min?: Date, max?: Date): boolean;
9
- export declare function isDisabledDate(date?: Date, datesDisabled?: Date[], unit?: string): boolean;
10
- export declare function isEnabledDate(date?: Date, datesEnabled?: Date[], unit?: string): boolean;
9
+ export declare function isDisabledDate(date?: Date, datesDisabled?: Date[], unit?: 'year' | 'date' | 'month'): boolean;
10
+ export declare function isEnabledDate(date?: Date, datesEnabled?: Date[], unit?: 'year' | 'date' | 'month'): boolean;
11
11
  export declare function getYearsCalendarInitialDate(state: BsDatepickerState, calendarIndex?: number): Date | undefined;
12
12
  export declare function checkRangesWithMaxDate(ranges?: BsCustomDates[], maxDate?: Date): BsCustomDates[] | undefined;
13
13
  export declare function checkBsValue(date?: Array<Date> | Date | (Date | undefined)[], maxDate?: Date): Array<Date> | Date | (Date | undefined)[] | undefined;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/dropdown",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-dropdown.mjs",
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@angular/core": "13.1.1",
31
- "ngx-bootstrap/utils": "8.0.0-RC.3",
31
+ "ngx-bootstrap/utils": "8.0.0-RC.9",
32
32
  "@angular/animations": "13.1.1",
33
33
  "rxjs": "7.4.0",
34
- "ngx-bootstrap/component-loader": "8.0.0-RC.3",
35
- "ngx-bootstrap/positioning": "8.0.0-RC.3",
34
+ "ngx-bootstrap/component-loader": "8.0.0-RC.9",
35
+ "ngx-bootstrap/positioning": "8.0.0-RC.9",
36
36
  "@angular/common": "13.1.1",
37
37
  "@angular-devkit/core": "13.1.2",
38
38
  "@angular/platform-browser": "13.1.1"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/focus-trap",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-focus-trap.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/locale",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-locale.mjs",
@@ -27,6 +27,6 @@
27
27
  "tslib": "^2.3.0"
28
28
  },
29
29
  "peerDependencies": {
30
- "ngx-bootstrap/chronos": "8.0.0-RC.3"
30
+ "ngx-bootstrap/chronos": "8.0.0-RC.9"
31
31
  }
32
32
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/mini-ngrx",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-mini-ngrx.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/modal",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-modal.mjs",
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@angular/core": "13.1.1",
31
- "ngx-bootstrap/component-loader": "8.0.0-RC.3",
32
- "ngx-bootstrap/positioning": "8.0.0-RC.3",
31
+ "ngx-bootstrap/component-loader": "8.0.0-RC.9",
32
+ "ngx-bootstrap/positioning": "8.0.0-RC.9",
33
33
  "@angular/common": "13.1.1",
34
34
  "rxjs": "7.4.0",
35
35
  "@angular-devkit/core": "13.1.2",
36
- "ngx-bootstrap/utils": "8.0.0-RC.3",
37
- "ngx-bootstrap/focus-trap": "8.0.0-RC.3"
36
+ "ngx-bootstrap/utils": "8.0.0-RC.9",
37
+ "ngx-bootstrap/focus-trap": "8.0.0-RC.9"
38
38
  }
39
39
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "description": "Angular Bootstrap",
5
5
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
6
6
  "license": "MIT",
@@ -9,11 +9,217 @@
9
9
  "@angular/animations": "^13.0.0",
10
10
  "@angular/core": "^13.0.0",
11
11
  "@angular/common": "^13.0.0",
12
- "@angular/forms": "^13.0.0"
12
+ "@angular/forms": "^13.0.0",
13
+ "rxjs": "^6.5.3 || ^7.4.0"
13
14
  },
14
15
  "dependencies": {
15
16
  "tslib": "^2.0.0"
16
17
  },
18
+ "exports": {
19
+ "./accordion": {
20
+ "types": "./accordion/ngx-bootstrap-accordion.d.ts",
21
+ "esm2020": "./accordion/esm2020/ngx-bootstrap-accordion.mjs",
22
+ "es2020": "./accordion/fesm2020/ngx-bootstrap-accordion.mjs",
23
+ "es2015": "./accordion/fesm2015/ngx-bootstrap-accordion.mjs",
24
+ "node": "./accordion/fesm2015/ngx-bootstrap-accordion.mjs",
25
+ "default": "./accordion/fesm2020/ngx-bootstrap-accordion.mjs"
26
+ },
27
+ "./alert": {
28
+ "types": "./alert/ngx-bootstrap-alert.d.ts",
29
+ "esm2020": "./alert/esm2020/ngx-bootstrap-alert.mjs",
30
+ "es2020": "./alert/fesm2020/ngx-bootstrap-alert.mjs",
31
+ "es2015": "./alert/fesm2015/ngx-bootstrap-alert.mjs",
32
+ "node": "./alert/fesm2015/ngx-bootstrap-alert.mjs",
33
+ "default": "./alert/fesm2020/ngx-bootstrap-alert.mjs"
34
+ },
35
+ "./buttons": {
36
+ "types": "./buttons/ngx-bootstrap-buttons.d.ts",
37
+ "esm2020": "./buttons/esm2020/ngx-bootstrap-buttons.mjs",
38
+ "es2020": "./buttons/fesm2020/ngx-bootstrap-buttons.mjs",
39
+ "es2015": "./buttons/fesm2015/ngx-bootstrap-buttons.mjs",
40
+ "node": "./buttons/fesm2015/ngx-bootstrap-buttons.mjs",
41
+ "default": "./buttons/fesm2020/ngx-bootstrap-buttons.mjs"
42
+ },
43
+ "./carousel": {
44
+ "types": "./carousel/ngx-bootstrap-carousel.d.ts",
45
+ "esm2020": "./carousel/esm2020/ngx-bootstrap-carousel.mjs",
46
+ "es2020": "./carousel/fesm2020/ngx-bootstrap-carousel.mjs",
47
+ "es2015": "./carousel/fesm2015/ngx-bootstrap-carousel.mjs",
48
+ "node": "./carousel/fesm2015/ngx-bootstrap-carousel.mjs",
49
+ "default": "./carousel/fesm2020/ngx-bootstrap-carousel.mjs"
50
+ },
51
+ "./chronos": {
52
+ "types": "./chronos/ngx-bootstrap-chronos.d.ts",
53
+ "esm2020": "./chronos/esm2020/ngx-bootstrap-chronos.mjs",
54
+ "es2020": "./chronos/fesm2020/ngx-bootstrap-chronos.mjs",
55
+ "es2015": "./chronos/fesm2015/ngx-bootstrap-chronos.mjs",
56
+ "node": "./chronos/fesm2015/ngx-bootstrap-chronos.mjs",
57
+ "default": "./chronos/fesm2020/ngx-bootstrap-chronos.mjs"
58
+ },
59
+ "./collapse": {
60
+ "types": "./collapse/ngx-bootstrap-collapse.d.ts",
61
+ "esm2020": "./collapse/esm2020/ngx-bootstrap-collapse.mjs",
62
+ "es2020": "./collapse/fesm2020/ngx-bootstrap-collapse.mjs",
63
+ "es2015": "./collapse/fesm2015/ngx-bootstrap-collapse.mjs",
64
+ "node": "./collapse/fesm2015/ngx-bootstrap-collapse.mjs",
65
+ "default": "./collapse/fesm2020/ngx-bootstrap-collapse.mjs"
66
+ },
67
+ "./component-loader": {
68
+ "types": "./component-loader/ngx-bootstrap-component-loader.d.ts",
69
+ "esm2020": "./component-loader/esm2020/ngx-bootstrap-component-loader.mjs",
70
+ "es2020": "./component-loader/fesm2020/ngx-bootstrap-component-loader.mjs",
71
+ "es2015": "./component-loader/fesm2015/ngx-bootstrap-component-loader.mjs",
72
+ "node": "./component-loader/fesm2015/ngx-bootstrap-component-loader.mjs",
73
+ "default": "./component-loader/fesm2020/ngx-bootstrap-component-loader.mjs"
74
+ },
75
+ "./datepicker": {
76
+ "types": "./datepicker/ngx-bootstrap-datepicker.d.ts",
77
+ "esm2020": "./datepicker/esm2020/ngx-bootstrap-datepicker.mjs",
78
+ "es2020": "./datepicker/fesm2020/ngx-bootstrap-datepicker.mjs",
79
+ "es2015": "./datepicker/fesm2015/ngx-bootstrap-datepicker.mjs",
80
+ "node": "./datepicker/fesm2015/ngx-bootstrap-datepicker.mjs",
81
+ "default": "./datepicker/fesm2020/ngx-bootstrap-datepicker.mjs"
82
+ },
83
+ "./dropdown": {
84
+ "types": "./dropdown/ngx-bootstrap-dropdown.d.ts",
85
+ "esm2020": "./dropdown/esm2020/ngx-bootstrap-dropdown.mjs",
86
+ "es2020": "./dropdown/fesm2020/ngx-bootstrap-dropdown.mjs",
87
+ "es2015": "./dropdown/fesm2015/ngx-bootstrap-dropdown.mjs",
88
+ "node": "./dropdown/fesm2015/ngx-bootstrap-dropdown.mjs",
89
+ "default": "./dropdown/fesm2020/ngx-bootstrap-dropdown.mjs"
90
+ },
91
+ "./focus-trap": {
92
+ "types": "./focus-trap/ngx-bootstrap-focus-trap.d.ts",
93
+ "esm2020": "./focus-trap/esm2020/ngx-bootstrap-focus-trap.mjs",
94
+ "es2020": "./focus-trap/fesm2020/ngx-bootstrap-focus-trap.mjs",
95
+ "es2015": "./focus-trap/fesm2015/ngx-bootstrap-focus-trap.mjs",
96
+ "node": "./focus-trap/fesm2015/ngx-bootstrap-focus-trap.mjs",
97
+ "default": "./focus-trap/fesm2020/ngx-bootstrap-focus-trap.mjs"
98
+ },
99
+ "./locale": {
100
+ "types": "./locale/ngx-bootstrap-locale.d.ts",
101
+ "esm2020": "./locale/esm2020/ngx-bootstrap-locale.mjs",
102
+ "es2020": "./locale/fesm2020/ngx-bootstrap-locale.mjs",
103
+ "es2015": "./locale/fesm2015/ngx-bootstrap-locale.mjs",
104
+ "node": "./locale/fesm2015/ngx-bootstrap-locale.mjs",
105
+ "default": "./locale/fesm2020/ngx-bootstrap-locale.mjs"
106
+ },
107
+ "./mini-ngrx": {
108
+ "types": "./mini-ngrx/ngx-bootstrap-mini-ngrx.d.ts",
109
+ "esm2020": "./mini-ngrx/esm2020/ngx-bootstrap-mini-ngrx.mjs",
110
+ "es2020": "./mini-ngrx/fesm2020/ngx-bootstrap-mini-ngrx.mjs",
111
+ "es2015": "./mini-ngrx/fesm2015/ngx-bootstrap-mini-ngrx.mjs",
112
+ "node": "./mini-ngrx/fesm2015/ngx-bootstrap-mini-ngrx.mjs",
113
+ "default": "./mini-ngrx/fesm2020/ngx-bootstrap-mini-ngrx.mjs"
114
+ },
115
+ "./modal": {
116
+ "types": "./modal/ngx-bootstrap-modal.d.ts",
117
+ "esm2020": "./modal/esm2020/ngx-bootstrap-modal.mjs",
118
+ "es2020": "./modal/fesm2020/ngx-bootstrap-modal.mjs",
119
+ "es2015": "./modal/fesm2015/ngx-bootstrap-modal.mjs",
120
+ "node": "./modal/fesm2015/ngx-bootstrap-modal.mjs",
121
+ "default": "./modal/fesm2020/ngx-bootstrap-modal.mjs"
122
+ },
123
+ "./pagination": {
124
+ "types": "./pagination/ngx-bootstrap-pagination.d.ts",
125
+ "esm2020": "./pagination/esm2020/ngx-bootstrap-pagination.mjs",
126
+ "es2020": "./pagination/fesm2020/ngx-bootstrap-pagination.mjs",
127
+ "es2015": "./pagination/fesm2015/ngx-bootstrap-pagination.mjs",
128
+ "node": "./pagination/fesm2015/ngx-bootstrap-pagination.mjs",
129
+ "default": "./pagination/fesm2020/ngx-bootstrap-pagination.mjs"
130
+ },
131
+ "./popover": {
132
+ "types": "./popover/ngx-bootstrap-popover.d.ts",
133
+ "esm2020": "./popover/esm2020/ngx-bootstrap-popover.mjs",
134
+ "es2020": "./popover/fesm2020/ngx-bootstrap-popover.mjs",
135
+ "es2015": "./popover/fesm2015/ngx-bootstrap-popover.mjs",
136
+ "node": "./popover/fesm2015/ngx-bootstrap-popover.mjs",
137
+ "default": "./popover/fesm2020/ngx-bootstrap-popover.mjs"
138
+ },
139
+ "./positioning": {
140
+ "types": "./positioning/ngx-bootstrap-positioning.d.ts",
141
+ "esm2020": "./positioning/esm2020/ngx-bootstrap-positioning.mjs",
142
+ "es2020": "./positioning/fesm2020/ngx-bootstrap-positioning.mjs",
143
+ "es2015": "./positioning/fesm2015/ngx-bootstrap-positioning.mjs",
144
+ "node": "./positioning/fesm2015/ngx-bootstrap-positioning.mjs",
145
+ "default": "./positioning/fesm2020/ngx-bootstrap-positioning.mjs"
146
+ },
147
+ "./progressbar": {
148
+ "types": "./progressbar/ngx-bootstrap-progressbar.d.ts",
149
+ "esm2020": "./progressbar/esm2020/ngx-bootstrap-progressbar.mjs",
150
+ "es2020": "./progressbar/fesm2020/ngx-bootstrap-progressbar.mjs",
151
+ "es2015": "./progressbar/fesm2015/ngx-bootstrap-progressbar.mjs",
152
+ "node": "./progressbar/fesm2015/ngx-bootstrap-progressbar.mjs",
153
+ "default": "./progressbar/fesm2020/ngx-bootstrap-progressbar.mjs"
154
+ },
155
+ "./rating": {
156
+ "types": "./rating/ngx-bootstrap-rating.d.ts",
157
+ "esm2020": "./rating/esm2020/ngx-bootstrap-rating.mjs",
158
+ "es2020": "./rating/fesm2020/ngx-bootstrap-rating.mjs",
159
+ "es2015": "./rating/fesm2015/ngx-bootstrap-rating.mjs",
160
+ "node": "./rating/fesm2015/ngx-bootstrap-rating.mjs",
161
+ "default": "./rating/fesm2020/ngx-bootstrap-rating.mjs"
162
+ },
163
+ "./sortable": {
164
+ "types": "./sortable/ngx-bootstrap-sortable.d.ts",
165
+ "esm2020": "./sortable/esm2020/ngx-bootstrap-sortable.mjs",
166
+ "es2020": "./sortable/fesm2020/ngx-bootstrap-sortable.mjs",
167
+ "es2015": "./sortable/fesm2015/ngx-bootstrap-sortable.mjs",
168
+ "node": "./sortable/fesm2015/ngx-bootstrap-sortable.mjs",
169
+ "default": "./sortable/fesm2020/ngx-bootstrap-sortable.mjs"
170
+ },
171
+ "./tabs": {
172
+ "types": "./tabs/ngx-bootstrap-tabs.d.ts",
173
+ "esm2020": "./tabs/esm2020/ngx-bootstrap-tabs.mjs",
174
+ "es2020": "./tabs/fesm2020/ngx-bootstrap-tabs.mjs",
175
+ "es2015": "./tabs/fesm2015/ngx-bootstrap-tabs.mjs",
176
+ "node": "./tabs/fesm2015/ngx-bootstrap-tabs.mjs",
177
+ "default": "./tabs/fesm2020/ngx-bootstrap-tabs.mjs"
178
+ },
179
+ "./timepicker": {
180
+ "types": "./timepicker/ngx-bootstrap-timepicker.d.ts",
181
+ "esm2020": "./timepicker/esm2020/ngx-bootstrap-timepicker.mjs",
182
+ "es2020": "./timepicker/fesm2020/ngx-bootstrap-timepicker.mjs",
183
+ "es2015": "./timepicker/fesm2015/ngx-bootstrap-timepicker.mjs",
184
+ "node": "./timepicker/fesm2015/ngx-bootstrap-timepicker.mjs",
185
+ "default": "./timepicker/fesm2020/ngx-bootstrap-timepicker.mjs"
186
+ },
187
+ "./tooltip": {
188
+ "types": "./tooltip/ngx-bootstrap-tooltip.d.ts",
189
+ "esm2020": "./tooltip/esm2020/ngx-bootstrap-tooltip.mjs",
190
+ "es2020": "./tooltip/fesm2020/ngx-bootstrap-tooltip.mjs",
191
+ "es2015": "./tooltip/fesm2015/ngx-bootstrap-tooltip.mjs",
192
+ "node": "./tooltip/fesm2015/ngx-bootstrap-tooltip.mjs",
193
+ "default": "./tooltip/fesm2020/ngx-bootstrap-tooltip.mjs"
194
+ },
195
+ "./typeahead": {
196
+ "types": "./typeahead/ngx-bootstrap-typeahead.d.ts",
197
+ "esm2020": "./typeahead/esm2020/ngx-bootstrap-typeahead.mjs",
198
+ "es2020": "./typeahead/fesm2020/ngx-bootstrap-typeahead.mjs",
199
+ "es2015": "./typeahead/fesm2015/ngx-bootstrap-typeahead.mjs",
200
+ "node": "./typeahead/fesm2015/ngx-bootstrap-typeahead.mjs",
201
+ "default": "./typeahead/fesm2020/ngx-bootstrap-typeahead.mjs"
202
+ },
203
+ "./utils": {
204
+ "types": "./utils/ngx-bootstrap-utils.d.ts",
205
+ "esm2020": "./utils/esm2020/ngx-bootstrap-utils.mjs",
206
+ "es2020": "./utils/fesm2020/ngx-bootstrap-utils.mjs",
207
+ "es2015": "./utils/fesm2015/ngx-bootstrap-utils.mjs",
208
+ "node": "./utils/fesm2015/ngx-bootstrap-utils.mjs",
209
+ "default": "./utils/fesm2020/ngx-bootstrap-utils.mjs"
210
+ },
211
+ "./package.json": {
212
+ "default": "./package.json"
213
+ },
214
+ ".": {
215
+ "types": "./ngx-bootstrap.d.ts",
216
+ "esm2020": "./esm2020/ngx-bootstrap.mjs",
217
+ "es2020": "./fesm2020/ngx-bootstrap.mjs",
218
+ "es2015": "./fesm2015/ngx-bootstrap.mjs",
219
+ "node": "./fesm2015/ngx-bootstrap.mjs",
220
+ "default": "./fesm2020/ngx-bootstrap.mjs"
221
+ }
222
+ },
17
223
  "sideEffects": false,
18
224
  "publishConfig": {
19
225
  "registry": "https://registry.npmjs.org/",
@@ -40,18 +246,5 @@
40
246
  "esm2020": "esm2020/ngx-bootstrap.mjs",
41
247
  "fesm2020": "fesm2020/ngx-bootstrap.mjs",
42
248
  "fesm2015": "fesm2015/ngx-bootstrap.mjs",
43
- "typings": "ngx-bootstrap.d.ts",
44
- "exports": {
45
- "./package.json": {
46
- "default": "./package.json"
47
- },
48
- ".": {
49
- "types": "./ngx-bootstrap.d.ts",
50
- "esm2020": "./esm2020/ngx-bootstrap.mjs",
51
- "es2020": "./fesm2020/ngx-bootstrap.mjs",
52
- "es2015": "./fesm2015/ngx-bootstrap.mjs",
53
- "node": "./fesm2015/ngx-bootstrap.mjs",
54
- "default": "./fesm2020/ngx-bootstrap.mjs"
55
- }
56
- }
249
+ "typings": "ngx-bootstrap.d.ts"
57
250
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/pagination",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-pagination.mjs",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/popover",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-popover.mjs",
@@ -28,11 +28,11 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@angular/core": "13.1.1",
31
- "ngx-bootstrap/utils": "8.0.0-RC.3",
32
- "ngx-bootstrap/positioning": "8.0.0-RC.3",
31
+ "ngx-bootstrap/utils": "8.0.0-RC.9",
32
+ "ngx-bootstrap/positioning": "8.0.0-RC.9",
33
33
  "@angular/common": "13.1.1",
34
34
  "rxjs": "7.4.0",
35
35
  "@angular-devkit/core": "13.1.2",
36
- "ngx-bootstrap/component-loader": "8.0.0-RC.3"
36
+ "ngx-bootstrap/component-loader": "8.0.0-RC.9"
37
37
  }
38
38
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/positioning",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-positioning.mjs",
@@ -31,6 +31,6 @@
31
31
  "@angular/common": "13.1.1",
32
32
  "rxjs": "7.4.0",
33
33
  "@angular-devkit/core": "13.1.2",
34
- "ngx-bootstrap/utils": "8.0.0-RC.3"
34
+ "ngx-bootstrap/utils": "8.0.0-RC.9"
35
35
  }
36
36
  }
@@ -22,7 +22,7 @@ export class BarComponent {
22
22
  }
23
23
  ngOnChanges(changes) {
24
24
  if (changes["value"] || changes["max"]) {
25
- this.percent = 100 * (Number(changes["value"].currentValue || 0)
25
+ this.percent = 100 * (Number(changes["value"]?.currentValue || this.value)
26
26
  / Number((changes["max"]?.currentValue || this.max) || 100));
27
27
  }
28
28
  if (changes["type"]) {
@@ -74,4 +74,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
74
74
  }], type: [{
75
75
  type: Input
76
76
  }] } });
77
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9wcm9ncmVzc2Jhci9iYXIuY29tcG9uZW50LnRzIiwiLi4vLi4vLi4vLi4vc3JjL3Byb2dyZXNzYmFyL2Jhci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQ0wsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsS0FBSyxFQUVMLFNBQVMsRUFFVixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsS0FBSyxFQUFFLE1BQU0scUJBQXFCLENBQUM7O0FBc0I1QyxNQUFNLE9BQU8sWUFBWTtJQXdCdkIsWUFDVSxFQUFjLEVBQ2QsUUFBbUI7UUFEbkIsT0FBRSxHQUFGLEVBQUUsQ0FBWTtRQUNkLGFBQVEsR0FBUixRQUFRLENBQVc7UUF6QjdCLDhDQUE4QztRQUNyQyxRQUFHLEdBQUcsR0FBRyxDQUFDO1FBRW5CLG9DQUFvQztRQUMzQixVQUFLLEdBQUksQ0FBQyxDQUFDO1FBRXBCLGdFQUFnRTtRQUN2RCxZQUFPLEdBQUksS0FBSyxDQUFDO1FBRTFCLDZDQUE2QztRQUNwQyxZQUFPLEdBQUksS0FBSyxDQUFDO1FBRTFCLG1HQUFtRztRQUMxRixTQUFJLEdBQXFCLE1BQU0sQ0FBQztRQUV6QyxZQUFPLEdBQUcsR0FBRyxDQUFDO0lBV1gsQ0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AgICAgIGNvbnN0IGJnQ2xhc3MgPSBgYmctJHt0aGlzLl9wcmV2VHlwZX1gO1xuICAgICAgdGhpcy5yZW5kZXJlci5yZW1vdmVDbGFzcyh0aGlzLmVsLm5hdGl2ZUVsZW1lbnQsIGJhclR5cGVDbGFzcyk7XG4gICAgICB0aGlzLnJlbmRlcmVyLnJlbW92ZUNsYXNzKHRoaXMuZWwubmF0aXZlRWxlbWVudCwgYmdDbGFzcyk7XG4gICAgICB0aGlzLl9wcmV2VHlwZSA9IHZvaWQgMDtcbiAgICB9XG5cbiAgICBpZiAodGhpcy50eXBlKSB7XG4gICAgICBjb25zdCBiYXJUeXBlQ2xhc3MgPSBgcHJvZ3Jlc3MtYmFyLSR7dGhpcy50eXBlfWA7XG4gICAgICBjb25zdCBiZ0NsYXNzID0gYGJnLSR7dGhpcy50eXBlfWA7XG4gICAgICB0aGlzLnJlbmRlcmVyLmFkZENsYXNzKHRoaXMuZWwubmF0aXZlRWxlbWVudCwgYmFyVHlwZUNsYXNzKTtcbiAgICAgIHRoaXMucmVuZGVyZXIuYWRkQ2xhc3ModGhpcy5lbC5uYXRpdmVFbGVtZW50LCBiZ0NsYXNzKTtcbiAgICAgIHRoaXMuX3ByZXZUeXBlID0gdGhpcy50eXBlO1xuICAgIH1cbiAgfVxufVxuIiwiPG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuIl19
@@ -24,10 +24,10 @@ class BarComponent {
24
24
  return isBs3();
25
25
  }
26
26
  ngOnChanges(changes) {
27
- var _a;
27
+ var _a, _b;
28
28
  if (changes["value"] || changes["max"]) {
29
- this.percent = 100 * (Number(changes["value"].currentValue || 0)
30
- / Number((((_a = changes["max"]) === null || _a === void 0 ? void 0 : _a.currentValue) || this.max) || 100));
29
+ this.percent = 100 * (Number(((_a = changes["value"]) === null || _a === void 0 ? void 0 : _a.currentValue) || this.value)
30
+ / Number((((_b = changes["max"]) === null || _b === void 0 ? void 0 : _b.currentValue) || this.max) || 100));
31
31
  }
32
32
  if (changes["type"]) {
33
33
  this.applyTypeClasses();
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-bootstrap-progressbar.mjs","sources":["../../../../src/progressbar/bar.component.ts","../../../../src/progressbar/bar.component.html","../../../../src/progressbar/progressbar.config.ts","../../../../src/progressbar/progressbar.component.ts","../../../../src/progressbar/progressbar.component.html","../../../../src/progressbar/progressbar.module.ts","../../../../src/progressbar/ngx-bootstrap-progressbar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnChanges,\n Renderer2,\n SimpleChanges\n} from '@angular/core';\n\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { ProgressbarType } from './progressbar-type.interface';\n\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar]': 'true',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"',\n '[style.width.%]': 'percent'\n }\n})\nexport class BarComponent implements OnChanges {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** current value of progress bar */\n @Input() value? = 0;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate? = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped? = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType = 'info';\n\n percent = 100;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n private _prevType?: string;\n\n constructor(\n private el: ElementRef,\n private renderer: Renderer2\n ) {}\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes[\"value\"] || changes[\"max\"]) {\n this.percent = 100 * (Number(changes[\"value\"].currentValue || 0)\n / Number((changes[\"max\"]?.currentValue || this.max) || 100));\n }\n\n if (changes[\"type\"]) {\n this.applyTypeClasses();\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = void 0;\n }\n\n if (this.type) {\n const barTypeClass = `progress-bar-${this.type}`;\n const bgClass = `bg-${this.type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this.type;\n }\n }\n}\n","<ng-content></ng-content>\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { BarValue, ProgressbarType } from './progressbar-type.interface';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n '[class.progress]': 'true',\n '[attr.max]': 'max'\n },\n styles: [`\n :host {\n width: 100%;\n display: flex;\n } `]\n})\nexport class ProgressbarComponent {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType;\n\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n set value(value: number | BarValue[]) {\n this.isStacked = Array.isArray(value);\n if (typeof value === 'number') {\n this._value = value;\n this._values = void 0;\n } else {\n this._value = void 0;\n this._values = value;\n }\n }\n\n isStacked = false;\n _value? = 0;\n _values?: BarValue[];\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n}\n","<ng-container *ngIf=\"!isStacked then NotStacked else Stacked\"></ng-container>\n\n<ng-template #NotStacked>\n <bar [type]=\"type\" [value]=\"_value\" [max]=\"max\" [animate]=\"animate\" [striped]=\"striped\">\n <ng-content></ng-content>\n </bar>\n</ng-template>\n\n<ng-template #Stacked>\n <bar *ngFor=\"let item of _values\"\n [type]=\"item.type\" [value]=\"item.value\" [max]=\"item.max || max\" [animate]=\"animate\" [striped]=\"striped\">{{ item.label }}</bar>\n</ng-template>\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders<ProgressbarModule> {\n return { ngModule: ProgressbarModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAgCa,YAAY;IAwBvB,YACU,EAAc,EACd,QAAmB;QADnB,OAAE,GAAF,EAAE,CAAY;QACd,aAAQ,GAAR,QAAQ,CAAW;;QAxBpB,QAAG,GAAG,GAAG,CAAC;;QAGV,UAAK,GAAI,CAAC,CAAC;;QAGX,YAAO,GAAI,KAAK,CAAC;;QAGjB,YAAO,GAAI,KAAK,CAAC;;QAGjB,SAAI,GAAqB,MAAM,CAAC;QAEzC,YAAO,GAAG,GAAG,CAAC;KAWV;IATJ,IAAI,KAAK;QACP,OAAO,KAAK,EAAE,CAAC;KAChB;IASD,WAAW,CAAC,OAAsB;;QAChC,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,C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AC,OAAO,GAAG,KAAK,CAAC,CAAC;SACvB;aAAM;YACL,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;YACrB,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;SACtB;KACF;;iHA1BU,oBAAoB;qGAApB,oBAAoB,wNCnBjC,ifAYA;2FDOa,oBAAoB;kBAfhC,SAAS;+BACE,aAAa,mBAEN,uBAAuB,CAAC,MAAM,QAEzC;wBACJ,kBAAkB,EAAE,MAAM;wBAC1B,YAAY,EAAE,KAAK;qBACpB,UACO,CAAC;;;;OAIJ,CAAC;qGAIG,GAAG;sBAAX,KAAK;gBAGG,OAAO;sBAAf,KAAK;gBAGG,OAAO;sBAAf,KAAK;gBAGG,IAAI;sBAAZ,KAAK;gBAMF,KAAK;sBADR,KAAK;;;MExBK,iBAAiB;IAC5B,OAAO,OAAO;QACZ,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACvD;;8GAHU,iBAAiB;+GAAjB,iBAAiB,iBAHb,YAAY,EAAE,oBAAoB,aADvC,YAAY,aAEZ,YAAY,EAAE,oBAAoB;+GAEjC,iBAAiB,YAJnB,CAAC,YAAY,CAAC;2FAIZ,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;iBAC9C;;;ACVD;;;;;;"}
1
+ {"version":3,"file":"ngx-bootstrap-progressbar.mjs","sources":["../../../../src/progressbar/bar.component.ts","../../../../src/progressbar/bar.component.html","../../../../src/progressbar/progressbar.config.ts","../../../../src/progressbar/progressbar.component.ts","../../../../src/progressbar/progressbar.component.html","../../../../src/progressbar/progressbar.module.ts","../../../../src/progressbar/ngx-bootstrap-progressbar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnChanges,\n Renderer2,\n SimpleChanges\n} from '@angular/core';\n\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { ProgressbarType } from './progressbar-type.interface';\n\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar]': 'true',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"',\n '[style.width.%]': 'percent'\n }\n})\nexport class BarComponent implements OnChanges {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** current value of progress bar */\n @Input() value? = 0;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate? = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped? = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType = 'info';\n\n percent = 100;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n private _prevType?: string;\n\n constructor(\n private el: ElementRef,\n private renderer: Renderer2\n ) {}\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes[\"value\"] || changes[\"max\"]) {\n this.percent = 100 * (Number(changes[\"value\"]?.currentValue || this.value)\n / Number((changes[\"max\"]?.currentValue || this.max) || 100));\n }\n\n if (changes[\"type\"]) {\n this.applyTypeClasses();\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = void 0;\n }\n\n if (this.type) {\n const barTypeClass = `progress-bar-${this.type}`;\n const bgClass = `bg-${this.type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this.type;\n }\n }\n}\n","<ng-content></ng-content>\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { BarValue, ProgressbarType } from './progressbar-type.interface';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n '[class.progress]': 'true',\n '[attr.max]': 'max'\n },\n styles: [`\n :host {\n width: 100%;\n display: flex;\n } `]\n})\nexport class ProgressbarComponent {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType;\n\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n set value(value: number | BarValue[]) {\n this.isStacked = Array.isArray(value);\n if (typeof value === 'number') {\n this._value = value;\n this._values = void 0;\n } else {\n this._value = void 0;\n this._values = value;\n }\n }\n\n isStacked = false;\n _value? = 0;\n _values?: BarValue[];\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n}\n","<ng-container *ngIf=\"!isStacked then NotStacked else Stacked\"></ng-container>\n\n<ng-template #NotStacked>\n <bar [type]=\"type\" [value]=\"_value\" [max]=\"max\" [animate]=\"animate\" [striped]=\"striped\">\n <ng-content></ng-content>\n </bar>\n</ng-template>\n\n<ng-template #Stacked>\n <bar *ngFor=\"let item of _values\"\n [type]=\"item.type\" [value]=\"item.value\" [max]=\"item.max || max\" [animate]=\"animate\" [striped]=\"striped\">{{ item.label }}</bar>\n</ng-template>\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders<ProgressbarModule> {\n return { ngModule: ProgressbarModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAgCa,YAAY;IAwBvB,YACU,EAAc,EACd,QAAmB;QADnB,OAAE,GAAF,EAAE,CAAY;QACd,aAAQ,GAAR,QAAQ,CAAW;;QAxBpB,QAAG,GAAG,GAAG,CAAC;;QAGV,UAAK,GAAI,CAAC,CAAC;;QAGX,YAAO,GAAI,KAAK,CAAC;;QAGjB,YAAO,GAAI,KAAK,CAAC;;QAGjB,SAAI,GAAqB,MAAM,CAAC;QAEzC,YAAO,GAAG,GAAG,CAAC;KAWV;IATJ,IAAI,KAAK;QACP,OAAO,KAAK,EAAE,CAAC;KAChB;IASD,WAAW,CAAC,OAAsB;;QAChC,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;YACtC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,CAAA,MAAA,OAAO,CAAC,OAAO,CAAC,0CAAE,YAAY,KAAI,IAAI,CAAC,KAAK,CAAC;kBACtE,MAAM,CAAC,CAAC,CAAA,MAAA,OAAO,CAAC,KAAK,CAAC,0CAAE,YAAY,KAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC;SAChE;QAED,IAAI,OAAO,CAAC,MAA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,MAAM;wBAC1B,YAAY,EAAE,KAAK;qBACpB,UACO,CAAC;;;;OAIJ,CAAC;qGAIG,GAAG;sBAAX,KAAK;gBAGG,OAAO;sBAAf,KAAK;gBAGG,OAAO;sBAAf,KAAK;gBAGG,IAAI;sBAAZ,KAAK;gBAMF,KAAK;sBADR,KAAK;;;MExBK,iBAAiB;IAC5B,OAAO,OAAO;QACZ,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACvD;;8GAHU,iBAAiB;+GAAjB,iBAAiB,iBAHb,YAAY,EAAE,oBAAoB,aADvC,YAAY,aAEZ,YAAY,EAAE,oBAAoB;+GAEjC,iBAAiB,YAJnB,CAAC,YAAY,CAAC;2FAIZ,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;iBAC9C;;;ACVD;;;;;;"}
@@ -25,7 +25,7 @@ class BarComponent {
25
25
  }
26
26
  ngOnChanges(changes) {
27
27
  if (changes["value"] || changes["max"]) {
28
- this.percent = 100 * (Number(changes["value"].currentValue || 0)
28
+ this.percent = 100 * (Number(changes["value"]?.currentValue || this.value)
29
29
  / Number((changes["max"]?.currentValue || this.max) || 100));
30
30
  }
31
31
  if (changes["type"]) {
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-bootstrap-progressbar.mjs","sources":["../../../../src/progressbar/bar.component.ts","../../../../src/progressbar/bar.component.html","../../../../src/progressbar/progressbar.config.ts","../../../../src/progressbar/progressbar.component.ts","../../../../src/progressbar/progressbar.component.html","../../../../src/progressbar/progressbar.module.ts","../../../../src/progressbar/ngx-bootstrap-progressbar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnChanges,\n Renderer2,\n SimpleChanges\n} from '@angular/core';\n\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { ProgressbarType } from './progressbar-type.interface';\n\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar]': 'true',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"',\n '[style.width.%]': 'percent'\n }\n})\nexport class BarComponent implements OnChanges {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** current value of progress bar */\n @Input() value? = 0;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate? = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped? = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType = 'info';\n\n percent = 100;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n private _prevType?: string;\n\n constructor(\n private el: ElementRef,\n private renderer: Renderer2\n ) {}\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes[\"value\"] || changes[\"max\"]) {\n this.percent = 100 * (Number(changes[\"value\"].currentValue || 0)\n / Number((changes[\"max\"]?.currentValue || this.max) || 100));\n }\n\n if (changes[\"type\"]) {\n this.applyTypeClasses();\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = void 0;\n }\n\n if (this.type) {\n const barTypeClass = `progress-bar-${this.type}`;\n const bgClass = `bg-${this.type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this.type;\n }\n }\n}\n","<ng-content></ng-content>\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { BarValue, ProgressbarType } from './progressbar-type.interface';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n '[class.progress]': 'true',\n '[attr.max]': 'max'\n },\n styles: [`\n :host {\n width: 100%;\n display: flex;\n } `]\n})\nexport class ProgressbarComponent {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType;\n\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n set value(value: number | BarValue[]) {\n this.isStacked = Array.isArray(value);\n if (typeof value === 'number') {\n this._value = value;\n this._values = void 0;\n } else {\n this._value = void 0;\n this._values = value;\n }\n }\n\n isStacked = false;\n _value? = 0;\n _values?: BarValue[];\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n}\n","<ng-container *ngIf=\"!isStacked then NotStacked else Stacked\"></ng-container>\n\n<ng-template #NotStacked>\n <bar [type]=\"type\" [value]=\"_value\" [max]=\"max\" [animate]=\"animate\" [striped]=\"striped\">\n <ng-content></ng-content>\n </bar>\n</ng-template>\n\n<ng-template #Stacked>\n <bar *ngFor=\"let item of _values\"\n [type]=\"item.type\" [value]=\"item.value\" [max]=\"item.max || max\" [animate]=\"animate\" [striped]=\"striped\">{{ item.label }}</bar>\n</ng-template>\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders<ProgressbarModule> {\n return { ngModule: ProgressbarModule, providers: [] };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAgCa,YAAY;IAwBvB,YACU,EAAc,EACd,QAAmB;QADnB,OAAE,GAAF,EAAE,CAAY;QACd,aAAQ,GAAR,QAAQ,CAAW;;QAxBpB,QAAG,GAAG,GAAG,CAAC;;QAGV,UAAK,GAAI,CAAC,CAAC;;QAGX,YAAO,GAAI,KAAK,CAAC;;QAGjB,YAAO,GAAI,KAAK,CAAC;;QAGjB,SAAI,GAAqB,MAAM,CAAC;QAEzC,YAAO,GAAG,GAAG,CAAC;KAWV;IATJ,IAAI,KAAK;QACP,OAAO,KAAK,EAAE,CAAC;KAChB;IASD,WAAW,CAAC,OAAsB;QAChC,IAAI,OAAO,CAAC,OAAO,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,EAAE;YACtC,IAAI,CAAC,OAAO,GAAG,GAAG,IAAI,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,YAAY,IAAI,CAAC,CAAC;kBAC5D,MAAM,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,YAAY,IAAI,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC;SAChE;QAED,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE;YACnB,IAAI,CAAC,gBAAgB,EAAE,CAAC;SACzB;KACF;IAEO,gBAAgB;QACtB,IAAI,I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AK;gBAGG,OAAO;sBAAf,KAAK;gBAGG,OAAO;sBAAf,KAAK;gBAGG,IAAI;sBAAZ,KAAK;gBAMF,KAAK;sBADR,KAAK;;;MExBK,iBAAiB;IAC5B,OAAO,OAAO;QACZ,OAAO,EAAE,QAAQ,EAAE,iBAAiB,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACvD;;8GAHU,iBAAiB;+GAAjB,iBAAiB,iBAHb,YAAY,EAAE,oBAAoB,aADvC,YAAY,aAEZ,YAAY,EAAE,oBAAoB;+GAEjC,iBAAiB,YAJnB,CAAC,YAAY,CAAC;2FAIZ,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;iBAC9C;;;ACVD;;;;;;"}
1
+ {"version":3,"file":"ngx-bootstrap-progressbar.mjs","sources":["../../../../src/progressbar/bar.component.ts","../../../../src/progressbar/bar.component.html","../../../../src/progressbar/progressbar.config.ts","../../../../src/progressbar/progressbar.component.ts","../../../../src/progressbar/progressbar.component.html","../../../../src/progressbar/progressbar.module.ts","../../../../src/progressbar/ngx-bootstrap-progressbar.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n Input,\n OnChanges,\n Renderer2,\n SimpleChanges\n} from '@angular/core';\n\nimport { isBs3 } from 'ngx-bootstrap/utils';\nimport { ProgressbarType } from './progressbar-type.interface';\n\n@Component({\n selector: 'bar',\n templateUrl: './bar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n role: 'progressbar',\n 'aria-valuemin': '0',\n '[class.progress-bar]': 'true',\n '[class.progress-bar-animated]': '!isBs3 && animate',\n '[class.progress-bar-striped]': 'striped',\n '[class.active]': 'isBs3 && animate',\n '[attr.aria-valuenow]': 'value',\n '[attr.aria-valuetext]': 'percent ? percent.toFixed(0) + \"%\" : \"\"',\n '[attr.aria-valuemax]': 'max',\n '[style.height.%]': '\"100\"',\n '[style.width.%]': 'percent'\n }\n})\nexport class BarComponent implements OnChanges {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** current value of progress bar */\n @Input() value? = 0;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate? = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped? = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType = 'info';\n\n percent = 100;\n\n get isBs3(): boolean {\n return isBs3();\n }\n\n private _prevType?: string;\n\n constructor(\n private el: ElementRef,\n private renderer: Renderer2\n ) {}\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes[\"value\"] || changes[\"max\"]) {\n this.percent = 100 * (Number(changes[\"value\"]?.currentValue || this.value)\n / Number((changes[\"max\"]?.currentValue || this.max) || 100));\n }\n\n if (changes[\"type\"]) {\n this.applyTypeClasses();\n }\n }\n\n private applyTypeClasses(): void {\n if (this._prevType) {\n const barTypeClass = `progress-bar-${this._prevType}`;\n const bgClass = `bg-${this._prevType}`;\n this.renderer.removeClass(this.el.nativeElement, barTypeClass);\n this.renderer.removeClass(this.el.nativeElement, bgClass);\n this._prevType = void 0;\n }\n\n if (this.type) {\n const barTypeClass = `progress-bar-${this.type}`;\n const bgClass = `bg-${this.type}`;\n this.renderer.addClass(this.el.nativeElement, barTypeClass);\n this.renderer.addClass(this.el.nativeElement, bgClass);\n this._prevType = this.type;\n }\n }\n}\n","<ng-content></ng-content>\n","import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class ProgressbarConfig {\n /** if `true` changing value of progress bar will be animated */\n animate = false;\n /** maximum total value of progress element */\n max = 100;\n}\n","import { ChangeDetectionStrategy, Component, Input } from '@angular/core';\nimport { BarValue, ProgressbarType } from './progressbar-type.interface';\nimport { ProgressbarConfig } from './progressbar.config';\n\n@Component({\n selector: 'progressbar',\n templateUrl: './progressbar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n // eslint-disable-next-line @angular-eslint/no-host-metadata-property\n host: {\n '[class.progress]': 'true',\n '[attr.max]': 'max'\n },\n styles: [`\n :host {\n width: 100%;\n display: flex;\n } `]\n})\nexport class ProgressbarComponent {\n /** maximum total value of progress element */\n @Input() max = 100;\n\n /** if `true` changing value of progress bar will be animated */\n @Input() animate = false;\n\n /** If `true`, striped classes are applied */\n @Input() striped = false;\n\n /** provide one of the four supported contextual classes: `success`, `info`, `warning`, `danger` */\n @Input() type?: ProgressbarType;\n\n /** current value of progress bar. Could be a number or array of objects\n * like {\"value\":15,\"type\":\"info\",\"label\":\"15 %\"}\n */\n @Input()\n set value(value: number | BarValue[]) {\n this.isStacked = Array.isArray(value);\n if (typeof value === 'number') {\n this._value = value;\n this._values = void 0;\n } else {\n this._value = void 0;\n this._values = value;\n }\n }\n\n isStacked = false;\n _value? = 0;\n _values?: BarValue[];\n\n constructor(config: ProgressbarConfig) {\n Object.assign(this, config);\n }\n}\n","<ng-container *ngIf=\"!isStacked then NotStacked else Stacked\"></ng-container>\n\n<ng-template #NotStacked>\n <bar [type]=\"type\" [value]=\"_value\" [max]=\"max\" [animate]=\"animate\" [striped]=\"striped\">\n <ng-content></ng-content>\n </bar>\n</ng-template>\n\n<ng-template #Stacked>\n <bar *ngFor=\"let item of _values\"\n [type]=\"item.type\" [value]=\"item.value\" [max]=\"item.max || max\" [animate]=\"animate\" [striped]=\"striped\">{{ item.label }}</bar>\n</ng-template>\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\n\nimport { BarComponent } from './bar.component';\nimport { ProgressbarComponent } from './progressbar.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [BarComponent, ProgressbarComponent],\n exports: [BarComponent, ProgressbarComponent]\n})\nexport class ProgressbarModule {\n static forRoot(): ModuleWithProviders<ProgressbarModule> {\n return { ng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BAAoB;+GAEjC,iBAAiB,YAJnB,CAAC,YAAY,CAAC;2FAIZ,iBAAiB;kBAL7B,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;oBAClD,OAAO,EAAE,CAAC,YAAY,EAAE,oBAAoB,CAAC;iBAC9C;;;ACVD;;;;;;"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/progressbar",
3
- "version": "8.0.0-RC.3",
3
+ "version": "8.0.0-RC.9",
4
4
  "author": "Dmitriy Shekhovtsov <valorkin@gmail.com>",
5
5
  "license": "MIT",
6
6
  "module": "fesm2015/ngx-bootstrap-progressbar.mjs",
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "peerDependencies": {
30
30
  "@angular/core": "13.1.1",
31
- "ngx-bootstrap/utils": "8.0.0-RC.3",
31
+ "ngx-bootstrap/utils": "8.0.0-RC.9",
32
32
  "@angular/common": "13.1.1"
33
33
  }
34
34
  }