@raintonic/formaui 0.2.0 → 0.2.1
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/CHANGELOG.md +7 -7
- package/README.md +145 -145
- package/fesm2022/raintonic-formaui-cdk-drag-drop.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-cdk-form-field.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs +0 -26
- package/fesm2022/raintonic-formaui-cdk-overlay.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs +2 -2
- package/fesm2022/raintonic-formaui-cdk-virtual-scroll.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-accordion.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-accordion.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-alert.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-autocomplete.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-avatar.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-badge.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-badge.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-big-menu.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-big-menu.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-breadcrumb.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-button-group.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-button.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-card.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-checkbox.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-checkbox.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-data-table.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-date-picker.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-date-picker.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-divider.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-divider.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-drawer.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-drawer.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-dynamic-form.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-empty-state.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-empty-state.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-file-upload.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-file-upload.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-form-field.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-icon.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-input.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-list.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-list.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-menu.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-number-input.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-number-input.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-paginator.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-paginator.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-password-input.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-password-input.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-popover.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-popover.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-progressbar.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-radio.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-radio.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-select.mjs +24 -24
- package/fesm2022/raintonic-formaui-components-select.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-side-panel.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-side-panel.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-sidebar.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-sidebar.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-skeleton.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-skeleton.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-slider.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-slider.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-spinner.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-spinner.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-stepper.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-stepper.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tab.mjs +10 -10
- package/fesm2022/raintonic-formaui-components-tab.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tag.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-tag.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-time-picker.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-time-picker.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-toggle.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-toolbar.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tooltip.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tree-select.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-tree-select.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tree-table.mjs +2 -2
- package/fesm2022/raintonic-formaui-components-tree-table.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-components-tree.mjs +4 -4
- package/fesm2022/raintonic-formaui-components-tree.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-core.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-services-dialog.mjs +36 -36
- package/fesm2022/raintonic-formaui-services-dialog.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-services-notification.mjs +2 -2
- package/fesm2022/raintonic-formaui-services-notification.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-services-theme.mjs.map +1 -1
- package/fesm2022/raintonic-formaui-test-utils.mjs.map +1 -1
- package/fesm2022/raintonic-formaui.mjs.map +1 -1
- package/llms-full.txt +3 -97
- package/llms.txt +3 -3
- package/package.json +1 -1
- package/styles/index.scss +3 -3
- package/styles/partials/components/_button.scss +367 -0
- package/styles/partials/components/_dialog.scss +180 -0
- package/styles/partials/components/_overlay.scss +87 -0
- package/types/raintonic-formaui-cdk-overlay.d.ts +0 -1
- package/types/raintonic-formaui-cdk-overlay.d.ts.map +1 -1
|
@@ -1300,22 +1300,13 @@ class FuiBlockScrollStrategy {
|
|
|
1300
1300
|
// Store previous styles
|
|
1301
1301
|
this._previousHTMLStyles = {
|
|
1302
1302
|
overflow: html.style.overflow || '',
|
|
1303
|
-
paddingRight: html.style.paddingRight || '',
|
|
1304
1303
|
};
|
|
1305
1304
|
this._previousBodyStyles = {
|
|
1306
1305
|
overflow: body.style.overflow || '',
|
|
1307
|
-
paddingRight: body.style.paddingRight || '',
|
|
1308
1306
|
};
|
|
1309
|
-
// Calculate scrollbar width
|
|
1310
|
-
const scrollbarWidth = this._getScrollbarWidth();
|
|
1311
1307
|
// Apply blocking styles
|
|
1312
1308
|
html.style.overflow = 'hidden';
|
|
1313
1309
|
body.style.overflow = 'hidden';
|
|
1314
|
-
// Compensate for scrollbar width to prevent layout shift
|
|
1315
|
-
if (scrollbarWidth > 0) {
|
|
1316
|
-
html.style.paddingRight = `${scrollbarWidth}px`;
|
|
1317
|
-
body.style.paddingRight = `${scrollbarWidth}px`;
|
|
1318
|
-
}
|
|
1319
1310
|
}
|
|
1320
1311
|
disable() {
|
|
1321
1312
|
if (!this._isEnabled) {
|
|
@@ -1330,9 +1321,7 @@ class FuiBlockScrollStrategy {
|
|
|
1330
1321
|
}
|
|
1331
1322
|
// Restore previous styles
|
|
1332
1323
|
html.style.overflow = this._previousHTMLStyles['overflow'];
|
|
1333
|
-
html.style.paddingRight = this._previousHTMLStyles['paddingRight'];
|
|
1334
1324
|
body.style.overflow = this._previousBodyStyles['overflow'];
|
|
1335
|
-
body.style.paddingRight = this._previousBodyStyles['paddingRight'];
|
|
1336
1325
|
// Clear stored styles
|
|
1337
1326
|
this._previousHTMLStyles = {};
|
|
1338
1327
|
this._previousBodyStyles = {};
|
|
@@ -1343,21 +1332,6 @@ class FuiBlockScrollStrategy {
|
|
|
1343
1332
|
detach() {
|
|
1344
1333
|
this.disable();
|
|
1345
1334
|
}
|
|
1346
|
-
_getScrollbarWidth() {
|
|
1347
|
-
const doc = this._document ?? document;
|
|
1348
|
-
// Create a temporary div to measure scrollbar width
|
|
1349
|
-
const outer = doc.createElement('div');
|
|
1350
|
-
outer.style.visibility = 'hidden';
|
|
1351
|
-
outer.style.overflow = 'scroll';
|
|
1352
|
-
// outer.style.msOverflowStyle = 'scrollbar'; // needed for WinJS apps
|
|
1353
|
-
doc.body.appendChild(outer);
|
|
1354
|
-
const inner = doc.createElement('div');
|
|
1355
|
-
outer.appendChild(inner);
|
|
1356
|
-
const scrollbarWidth = outer.offsetWidth - inner.offsetWidth;
|
|
1357
|
-
// Clean up
|
|
1358
|
-
outer.parentNode?.removeChild(outer);
|
|
1359
|
-
return scrollbarWidth;
|
|
1360
|
-
}
|
|
1361
1335
|
}
|
|
1362
1336
|
/**
|
|
1363
1337
|
* Factory functions for creating scroll strategies
|