ngx-bootstrap 11.0.2 → 12.0.0
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.
- package/accordion/esm2022/accordion-group.component.mjs +6 -6
- package/accordion/esm2022/accordion.component.mjs +5 -5
- package/accordion/esm2022/accordion.config.mjs +3 -3
- package/accordion/esm2022/accordion.module.mjs +4 -4
- package/accordion/fesm2022/ngx-bootstrap-accordion.mjs +16 -16
- package/accordion/fesm2022/ngx-bootstrap-accordion.mjs.map +1 -1
- package/alert/esm2022/alert.component.mjs +5 -5
- package/alert/esm2022/alert.config.mjs +3 -3
- package/alert/esm2022/alert.module.mjs +4 -4
- package/alert/fesm2022/ngx-bootstrap-alert.mjs +12 -12
- package/alert/fesm2022/ngx-bootstrap-alert.mjs.map +1 -1
- package/buttons/esm2022/button-checkbox.directive.mjs +3 -3
- package/buttons/esm2022/button-radio-group.directive.mjs +5 -5
- package/buttons/esm2022/button-radio.directive.mjs +6 -6
- package/buttons/esm2022/buttons.module.mjs +4 -4
- package/buttons/fesm2022/ngx-bootstrap-buttons.mjs +16 -16
- package/buttons/fesm2022/ngx-bootstrap-buttons.mjs.map +1 -1
- package/carousel/esm2022/carousel.component.mjs +6 -6
- package/carousel/esm2022/carousel.config.mjs +3 -3
- package/carousel/esm2022/carousel.module.mjs +4 -4
- package/carousel/esm2022/slide.component.mjs +5 -5
- package/carousel/esm2022/utils.mjs +3 -3
- package/carousel/fesm2022/ngx-bootstrap-carousel.mjs +18 -18
- package/carousel/fesm2022/ngx-bootstrap-carousel.mjs.map +1 -1
- package/carousel/utils.d.ts +1 -1
- package/collapse/esm2022/collapse.directive.mjs +5 -5
- package/collapse/esm2022/collapse.module.mjs +4 -4
- package/collapse/fesm2022/ngx-bootstrap-collapse.mjs +8 -8
- package/collapse/fesm2022/ngx-bootstrap-collapse.mjs.map +1 -1
- package/component-loader/esm2022/component-loader.factory.mjs +5 -5
- package/component-loader/fesm2022/ngx-bootstrap-component-loader.mjs +5 -5
- package/datepicker/bs-datepicker-input.directive.d.ts +3 -4
- package/datepicker/esm2022/bs-datepicker-inline.component.mjs +5 -5
- package/datepicker/esm2022/bs-datepicker-inline.config.mjs +3 -3
- package/datepicker/esm2022/bs-datepicker-input.directive.mjs +42 -40
- package/datepicker/esm2022/bs-datepicker.component.mjs +5 -5
- package/datepicker/esm2022/bs-datepicker.config.mjs +3 -3
- package/datepicker/esm2022/bs-datepicker.module.mjs +4 -4
- package/datepicker/esm2022/bs-daterangepicker-inline.component.mjs +5 -5
- package/datepicker/esm2022/bs-daterangepicker-inline.config.mjs +3 -3
- package/datepicker/esm2022/bs-daterangepicker-input.directive.mjs +5 -5
- package/datepicker/esm2022/bs-daterangepicker.component.mjs +5 -5
- package/datepicker/esm2022/bs-daterangepicker.config.mjs +3 -3
- package/datepicker/esm2022/bs-locale.service.mjs +3 -3
- package/datepicker/esm2022/reducer/bs-datepicker.actions.mjs +3 -3
- package/datepicker/esm2022/reducer/bs-datepicker.effects.mjs +4 -4
- package/datepicker/esm2022/reducer/bs-datepicker.store.mjs +4 -4
- package/datepicker/esm2022/themes/bs/bs-calendar-layout.component.mjs +3 -3
- package/datepicker/esm2022/themes/bs/bs-current-date-view.component.mjs +3 -3
- package/datepicker/esm2022/themes/bs/bs-custom-dates-view.component.mjs +3 -3
- package/datepicker/esm2022/themes/bs/bs-datepicker-container.component.mjs +17 -13
- package/datepicker/esm2022/themes/bs/bs-datepicker-day-decorator.directive.mjs +5 -5
- package/datepicker/esm2022/themes/bs/bs-datepicker-inline-container.component.mjs +5 -5
- package/datepicker/esm2022/themes/bs/bs-datepicker-navigation-view.component.mjs +3 -3
- package/datepicker/esm2022/themes/bs/bs-daterangepicker-container.component.mjs +24 -23
- package/datepicker/esm2022/themes/bs/bs-daterangepicker-inline-container.component.mjs +5 -5
- package/datepicker/esm2022/themes/bs/bs-days-calendar-view.component.mjs +5 -5
- package/datepicker/esm2022/themes/bs/bs-months-calendar-view.component.mjs +3 -3
- package/datepicker/esm2022/themes/bs/bs-timepicker-view.component.mjs +3 -3
- package/datepicker/esm2022/themes/bs/bs-years-calendar-view.component.mjs +3 -3
- package/datepicker/fesm2022/ngx-bootstrap-datepicker.mjs +170 -163
- package/datepicker/fesm2022/ngx-bootstrap-datepicker.mjs.map +1 -1
- package/dropdown/bs-dropdown.directive.d.ts +1 -1
- package/dropdown/esm2022/bs-dropdown-container.component.mjs +4 -4
- package/dropdown/esm2022/bs-dropdown-menu.directive.mjs +4 -4
- package/dropdown/esm2022/bs-dropdown-toggle.directive.mjs +5 -5
- package/dropdown/esm2022/bs-dropdown.config.mjs +3 -3
- package/dropdown/esm2022/bs-dropdown.directive.mjs +14 -12
- package/dropdown/esm2022/bs-dropdown.module.mjs +4 -4
- package/dropdown/esm2022/bs-dropdown.state.mjs +4 -4
- package/dropdown/fesm2022/ngx-bootstrap-dropdown.mjs +36 -34
- package/dropdown/fesm2022/ngx-bootstrap-dropdown.mjs.map +1 -1
- package/focus-trap/esm2022/focus-trap-manager.mjs +3 -3
- package/focus-trap/esm2022/focus-trap.mjs +11 -11
- package/focus-trap/esm2022/focus-trap.module.mjs +4 -4
- package/focus-trap/esm2022/interactivity-checker.mjs +4 -4
- package/focus-trap/esm2022/platform.mjs +5 -5
- package/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs +26 -26
- package/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs.map +1 -1
- package/modal/esm2022/bs-modal-ref.service.mjs +3 -3
- package/modal/esm2022/bs-modal.service.mjs +5 -5
- package/modal/esm2022/modal-backdrop.component.mjs +4 -4
- package/modal/esm2022/modal-container.component.mjs +5 -5
- package/modal/esm2022/modal-options.class.mjs +3 -3
- package/modal/esm2022/modal.directive.mjs +6 -6
- package/modal/esm2022/modal.module.mjs +4 -4
- package/modal/fesm2022/ngx-bootstrap-modal.mjs +28 -28
- package/modal/fesm2022/ngx-bootstrap-modal.mjs.map +1 -1
- package/package.json +6 -6
- package/pagination/esm2022/pager.component.mjs +5 -5
- package/pagination/esm2022/pagination.component.mjs +5 -5
- package/pagination/esm2022/pagination.config.mjs +3 -3
- package/pagination/esm2022/pagination.module.mjs +4 -4
- package/pagination/fesm2022/ngx-bootstrap-pagination.mjs +15 -15
- package/pagination/fesm2022/ngx-bootstrap-pagination.mjs.map +1 -1
- package/popover/esm2022/popover-container.component.mjs +5 -6
- package/popover/esm2022/popover.config.mjs +3 -3
- package/popover/esm2022/popover.directive.mjs +7 -12
- package/popover/esm2022/popover.module.mjs +4 -4
- package/popover/fesm2022/ngx-bootstrap-popover.mjs +17 -23
- package/popover/fesm2022/ngx-bootstrap-popover.mjs.map +1 -1
- package/popover/popover-container.component.d.ts +3 -3
- package/popover/popover.directive.d.ts +3 -3
- package/positioning/esm2022/models/index.mjs +1 -1
- package/positioning/esm2022/positioning.service.mjs +5 -5
- package/positioning/esm2022/public_api.mjs +1 -1
- package/positioning/esm2022/utils/checkMargin.mjs +1 -1
- package/positioning/esm2022/utils/getOffsetRectRelativeToArbitraryNode.mjs +1 -3
- package/positioning/esm2022/utils/getWindowSizes.mjs +4 -6
- package/positioning/esm2022/utils/isNumeric.mjs +1 -2
- package/positioning/esm2022/utils/updateContainerClass.mjs +4 -2
- package/positioning/fesm2022/ngx-bootstrap-positioning.mjs +50 -52
- package/positioning/fesm2022/ngx-bootstrap-positioning.mjs.map +1 -1
- package/positioning/models/index.d.ts +7 -1
- package/positioning/public_api.d.ts +1 -1
- package/positioning/utils/checkMargin.d.ts +3 -3
- package/positioning/utils/isNumeric.d.ts +1 -1
- package/progressbar/esm2022/bar.component.mjs +5 -5
- package/progressbar/esm2022/progressbar.component.mjs +5 -5
- package/progressbar/esm2022/progressbar.config.mjs +3 -3
- package/progressbar/esm2022/progressbar.module.mjs +4 -4
- package/progressbar/fesm2022/ngx-bootstrap-progressbar.mjs +15 -15
- package/progressbar/fesm2022/ngx-bootstrap-progressbar.mjs.map +1 -1
- package/rating/esm2022/rating.component.mjs +5 -5
- package/rating/esm2022/rating.config.mjs +3 -3
- package/rating/esm2022/rating.module.mjs +4 -4
- package/rating/fesm2022/ngx-bootstrap-rating.mjs +11 -11
- package/rating/fesm2022/ngx-bootstrap-rating.mjs.map +1 -1
- package/schematics/utils/addStyles.d.ts +2 -2
- package/schematics/utils/addStyles.js +3 -3
- package/schematics/utils/addStyles.js.map +1 -1
- package/schematics/utils/current_dependency_versions.json +1 -1
- package/schematics/utils/getVersions.js +1 -2
- package/schematics/utils/getVersions.js.map +1 -1
- package/schematics/utils/index.d.ts +2 -2
- package/schematics/utils/index.js +6 -9
- package/schematics/utils/index.js.map +1 -1
- package/sortable/esm2022/draggable-item.service.mjs +3 -3
- package/sortable/esm2022/sortable.component.mjs +5 -5
- package/sortable/esm2022/sortable.module.mjs +4 -4
- package/sortable/fesm2022/ngx-bootstrap-sortable.mjs +11 -11
- package/sortable/fesm2022/ngx-bootstrap-sortable.mjs.map +1 -1
- package/tabs/esm2022/ng-transclude.directive.mjs +5 -5
- package/tabs/esm2022/tab-heading.directive.mjs +4 -4
- package/tabs/esm2022/tab.directive.mjs +5 -5
- package/tabs/esm2022/tabs.module.mjs +4 -4
- package/tabs/esm2022/tabset.component.mjs +5 -5
- package/tabs/esm2022/tabset.config.mjs +3 -3
- package/tabs/fesm2022/ngx-bootstrap-tabs.mjs +23 -23
- package/tabs/fesm2022/ngx-bootstrap-tabs.mjs.map +1 -1
- package/timepicker/esm2022/reducer/timepicker.actions.mjs +3 -3
- package/timepicker/esm2022/reducer/timepicker.store.mjs +4 -4
- package/timepicker/esm2022/timepicker.component.mjs +5 -5
- package/timepicker/esm2022/timepicker.config.mjs +3 -3
- package/timepicker/esm2022/timepicker.module.mjs +4 -4
- package/timepicker/fesm2022/ngx-bootstrap-timepicker.mjs +18 -18
- package/timepicker/fesm2022/ngx-bootstrap-timepicker.mjs.map +1 -1
- package/tooltip/esm2022/tooltip-container.component.mjs +4 -4
- package/tooltip/esm2022/tooltip.config.mjs +3 -3
- package/tooltip/esm2022/tooltip.directive.mjs +8 -12
- package/tooltip/esm2022/tooltip.module.mjs +4 -4
- package/tooltip/fesm2022/ngx-bootstrap-tooltip.mjs +19 -23
- package/tooltip/fesm2022/ngx-bootstrap-tooltip.mjs.map +1 -1
- package/tooltip/tooltip.directive.d.ts +4 -4
- package/typeahead/esm2022/typeahead-container.component.mjs +5 -5
- package/typeahead/esm2022/typeahead-match.class.mjs +2 -2
- package/typeahead/esm2022/typeahead.config.mjs +3 -3
- package/typeahead/esm2022/typeahead.directive.mjs +28 -34
- package/typeahead/esm2022/typeahead.module.mjs +4 -4
- package/typeahead/fesm2022/ngx-bootstrap-typeahead.mjs +41 -47
- package/typeahead/fesm2022/ngx-bootstrap-typeahead.mjs.map +1 -1
- package/typeahead/typeahead-match.class.d.ts +3 -3
- package/typeahead/typeahead.directive.d.ts +3 -3
- package/accordion/package.json +0 -28
- package/alert/package.json +0 -28
- package/buttons/package.json +0 -27
- package/carousel/package.json +0 -28
- package/chronos/package.json +0 -23
- package/collapse/package.json +0 -28
- package/component-loader/package.json +0 -27
- package/datepicker/package.json +0 -33
- package/dropdown/package.json +0 -30
- package/focus-trap/package.json +0 -28
- package/locale/package.json +0 -26
- package/mini-ngrx/package.json +0 -26
- package/modal/package.json +0 -28
- package/pagination/package.json +0 -28
- package/popover/package.json +0 -29
- package/positioning/esm2022/utils/includeScroll.mjs +0 -24
- package/positioning/package.json +0 -30
- package/positioning/utils/includeScroll.d.ts +0 -2
- package/progressbar/package.json +0 -27
- package/rating/package.json +0 -28
- package/schematics/package.json +0 -11
- package/sortable/package.json +0 -30
- package/tabs/package.json +0 -27
- package/timepicker/package.json +0 -30
- package/tooltip/package.json +0 -30
- package/typeahead/package.json +0 -32
- package/utils/package.json +0 -26
@@ -4,7 +4,9 @@ import { getBsVer } from 'ngx-bootstrap/utils';
|
|
4
4
|
export function updateContainerClass(data, renderer) {
|
5
5
|
const target = data.instance.target;
|
6
6
|
let containerClass = target.className;
|
7
|
-
const dataPlacement = getBsVer().isBs5
|
7
|
+
const dataPlacement = getBsVer().isBs5
|
8
|
+
? PlacementForBs5[data.placement]
|
9
|
+
: data.placement;
|
8
10
|
if (data.placementAuto) {
|
9
11
|
containerClass = containerClass.replace(/bs-popover-auto/g, `bs-popover-${dataPlacement}`);
|
10
12
|
containerClass = containerClass.replace(/ms-2|me-2|mb-2|mt-2/g, '');
|
@@ -27,4 +29,4 @@ export function updateContainerClass(data, renderer) {
|
|
27
29
|
}
|
28
30
|
target.className = containerClass;
|
29
31
|
}
|
30
|
-
//# sourceMappingURL=data:application/json;base64,
|
32
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidXBkYXRlQ29udGFpbmVyQ2xhc3MuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvcG9zaXRpb25pbmcvdXRpbHMvdXBkYXRlQ29udGFpbmVyQ2xhc3MudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBSUEsT0FBTyxFQUE4QixlQUFlLEVBQUUsTUFBTSxXQUFXLENBQUM7QUFDeEUsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUM3QyxPQUFPLEVBQUUsUUFBUSxFQUFFLE1BQU0scUJBQXFCLENBQUM7QUFFL0MsTUFBTSxVQUFVLG9CQUFvQixDQUFDLElBQVUsRUFBRSxRQUFvQjtJQUNuRSxNQUFNLE1BQU0sR0FBRyxJQUFJLENBQUMsUUFBUSxDQUFDLE1BQU0sQ0FBQztJQUVwQyxJQUFJLGNBQWMsR0FBRyxNQUFNLENBQUMsU0FBUyxDQUFDO0lBRXRDLE1BQU0sYUFBYSxHQUFHLFFBQVEsRUFBRSxDQUFDLEtBQUs7UUFDcEMsQ0FBQyxDQUFDLGVBQWUsQ0FBQyxJQUFJLENBQUMsU0FBeUMsQ0FBQztRQUNqRSxDQUFDLENBQUMsSUFBSSxDQUFDLFNBQVMsQ0FBQzt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xuICBjb250YWluZXJDbGFzcyA9IGNvbnRhaW5lckNsYXNzLnJlcGxhY2UoL2xlZnR8cmlnaHR8dG9wfGJvdHRvbXxlbmR8c3RhcnQvZywgYCR7ZGF0YVBsYWNlbWVudC5zcGxpdCgnICcpWzBdfWApO1xuXG4gIGlmIChyZW5kZXJlcikge1xuICAgIHJlbmRlcmVyLnNldEF0dHJpYnV0ZSh0YXJnZXQsICdjbGFzcycsIGNvbnRhaW5lckNsYXNzKTtcblxuICAgIHJldHVybjtcbiAgfVxuXG4gIHRhcmdldC5jbGFzc05hbWUgPSBjb250YWluZXJDbGFzcztcbn1cbiJdfQ==
|
@@ -2,7 +2,7 @@ import { getBsVer } from 'ngx-bootstrap/utils';
|
|
2
2
|
import * as i0 from '@angular/core';
|
3
3
|
import { PLATFORM_ID, Injectable, Inject, ElementRef } from '@angular/core';
|
4
4
|
import { isPlatformBrowser } from '@angular/common';
|
5
|
-
import { Subject,
|
5
|
+
import { Subject, fromEvent, animationFrameScheduler, of, merge } from 'rxjs';
|
6
6
|
|
7
7
|
var MapPlacementInToRL;
|
8
8
|
(function (MapPlacementInToRL) {
|
@@ -183,19 +183,17 @@ function getBordersSize(styles, axis) {
|
|
183
183
|
parseFloat(styles[`border${sideB}Width`]));
|
184
184
|
}
|
185
185
|
|
186
|
-
function getSize(axis, body, html
|
186
|
+
function getSize(axis, body, html) {
|
187
187
|
const _body = body;
|
188
188
|
const _html = html;
|
189
|
-
const _computedStyle = computedStyle;
|
190
189
|
return Math.max(_body[`offset${axis}`], _body[`scroll${axis}`], _html[`client${axis}`], _html[`offset${axis}`], _html[`scroll${axis}`], 0);
|
191
190
|
}
|
192
191
|
function getWindowSizes(document) {
|
193
192
|
const body = document.body;
|
194
193
|
const html = document.documentElement;
|
195
|
-
const computedStyle = void 0;
|
196
194
|
return {
|
197
|
-
height: getSize('Height', body, html
|
198
|
-
width: getSize('Width', body, html
|
195
|
+
height: getSize('Height', body, html),
|
196
|
+
width: getSize('Width', body, html)
|
199
197
|
};
|
200
198
|
}
|
201
199
|
|
@@ -213,7 +211,6 @@ function getClientRect(offsets) {
|
|
213
211
|
function isNumeric(n) {
|
214
212
|
return n !== '' && !isNaN(parseFloat(n)) && isFinite(Number(n));
|
215
213
|
}
|
216
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
217
214
|
function isNumber(value) {
|
218
215
|
return typeof value === 'number' || Object.prototype.toString.call(value) === '[object Number]';
|
219
216
|
}
|
@@ -269,49 +266,10 @@ function getBoundingClientRect(element) {
|
|
269
266
|
return getClientRect(result);
|
270
267
|
}
|
271
268
|
|
272
|
-
/**
|
273
|
-
* Returns the parentNode or the host of the element
|
274
|
-
*/
|
275
|
-
// todo: valorkin fix
|
276
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
277
|
-
function getParentNode(element) {
|
278
|
-
if (element.nodeName === 'HTML') {
|
279
|
-
return element;
|
280
|
-
}
|
281
|
-
return element.parentNode || element.host;
|
282
|
-
}
|
283
|
-
|
284
|
-
/**
|
285
|
-
* Returns the scrolling parent of the given element
|
286
|
-
*/
|
287
|
-
// todo: valorkin fix
|
288
|
-
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
289
|
-
function getScrollParent(element) {
|
290
|
-
// Return body, `getScroll` will take care to get the correct `scrollTop` from it
|
291
|
-
if (!element) {
|
292
|
-
return document.body;
|
293
|
-
}
|
294
|
-
switch (element.nodeName) {
|
295
|
-
case 'HTML':
|
296
|
-
case 'BODY':
|
297
|
-
return element.ownerDocument.body;
|
298
|
-
case '#document':
|
299
|
-
return element.body;
|
300
|
-
default:
|
301
|
-
}
|
302
|
-
// Firefox want us to check `-x` and `-y` variations as well
|
303
|
-
const { overflow, overflowX, overflowY } = getStyleComputedProperty(element);
|
304
|
-
if (/(auto|scroll|overlay)/.test(String(overflow) + String(overflowY) + String(overflowX))) {
|
305
|
-
return element;
|
306
|
-
}
|
307
|
-
return getScrollParent(getParentNode(element));
|
308
|
-
}
|
309
|
-
|
310
269
|
function getOffsetRectRelativeToArbitraryNode(children, parent, fixedPosition = false) {
|
311
270
|
const isHTML = parent.nodeName === 'HTML';
|
312
271
|
const childrenRect = getBoundingClientRect(children);
|
313
272
|
const parentRect = getBoundingClientRect(parent);
|
314
|
-
const scrollParent = getScrollParent(children);
|
315
273
|
const styles = getStyleComputedProperty(parent);
|
316
274
|
const borderTopWidth = parseFloat(styles.borderTopWidth);
|
317
275
|
const borderLeftWidth = parseFloat(styles.borderLeftWidth);
|
@@ -354,6 +312,44 @@ function getOffsetRectRelativeToArbitraryNode(children, parent, fixedPosition =
|
|
354
312
|
return offsets;
|
355
313
|
}
|
356
314
|
|
315
|
+
/**
|
316
|
+
* Returns the parentNode or the host of the element
|
317
|
+
*/
|
318
|
+
// todo: valorkin fix
|
319
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
320
|
+
function getParentNode(element) {
|
321
|
+
if (element.nodeName === 'HTML') {
|
322
|
+
return element;
|
323
|
+
}
|
324
|
+
return element.parentNode || element.host;
|
325
|
+
}
|
326
|
+
|
327
|
+
/**
|
328
|
+
* Returns the scrolling parent of the given element
|
329
|
+
*/
|
330
|
+
// todo: valorkin fix
|
331
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
332
|
+
function getScrollParent(element) {
|
333
|
+
// Return body, `getScroll` will take care to get the correct `scrollTop` from it
|
334
|
+
if (!element) {
|
335
|
+
return document.body;
|
336
|
+
}
|
337
|
+
switch (element.nodeName) {
|
338
|
+
case 'HTML':
|
339
|
+
case 'BODY':
|
340
|
+
return element.ownerDocument.body;
|
341
|
+
case '#document':
|
342
|
+
return element.body;
|
343
|
+
default:
|
344
|
+
}
|
345
|
+
// Firefox want us to check `-x` and `-y` variations as well
|
346
|
+
const { overflow, overflowX, overflowY } = getStyleComputedProperty(element);
|
347
|
+
if (/(auto|scroll|overlay)/.test(String(overflow) + String(overflowY) + String(overflowX))) {
|
348
|
+
return element;
|
349
|
+
}
|
350
|
+
return getScrollParent(getParentNode(element));
|
351
|
+
}
|
352
|
+
|
357
353
|
/**
|
358
354
|
* Gets the scroll value of the given element in the given side (top and left)
|
359
355
|
*/
|
@@ -631,7 +627,9 @@ function checkMargins(placement) {
|
|
631
627
|
function updateContainerClass(data, renderer) {
|
632
628
|
const target = data.instance.target;
|
633
629
|
let containerClass = target.className;
|
634
|
-
const dataPlacement = getBsVer().isBs5
|
630
|
+
const dataPlacement = getBsVer().isBs5
|
631
|
+
? PlacementForBs5[data.placement]
|
632
|
+
: data.placement;
|
635
633
|
if (data.placementAuto) {
|
636
634
|
containerClass = containerClass.replace(/bs-popover-auto/g, `bs-popover-${dataPlacement}`);
|
637
635
|
containerClass = containerClass.replace(/ms-2|me-2|mb-2|mt-2/g, '');
|
@@ -995,16 +993,16 @@ class PositioningService {
|
|
995
993
|
setOptions(options) {
|
996
994
|
this.options = options;
|
997
995
|
}
|
998
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
999
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
996
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PositioningService, deps: [{ token: i0.NgZone }, { token: i0.RendererFactory2 }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
997
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PositioningService, providedIn: 'root' }); }
|
1000
998
|
}
|
1001
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
999
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PositioningService, decorators: [{
|
1002
1000
|
type: Injectable,
|
1003
1001
|
args: [{ providedIn: 'root' }]
|
1004
|
-
}], ctorParameters:
|
1002
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i0.RendererFactory2 }, { type: undefined, decorators: [{
|
1005
1003
|
type: Inject,
|
1006
1004
|
args: [PLATFORM_ID]
|
1007
|
-
}] }]
|
1005
|
+
}] }] });
|
1008
1006
|
function _getHtmlElement(element) {
|
1009
1007
|
// it means that we got a selector
|
1010
1008
|
if (typeof element === 'string') {
|