asma-ui-core 3.101.1 → 3.101.3
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/dist/asma-ui-core.css +1 -1
- package/dist/components/feedback/snack-bar/SnackbarProvider.js +32 -25
- package/dist/components/feedback/snack-bar/components/processMessageError.js +1 -1
- package/dist/components/feedback/snack-bar/components/processMessageInfo.js +1 -1
- package/dist/components/feedback/snack-bar/index.js +3 -4
- package/dist/components/feedback/snack-bar/processAlertSnackBar.js +1 -1
- package/dist/components/feedback/snack-bar/processDefaultSnackbar.js +1 -1
- package/dist/components/feedback/snack-bar/processInfoSnackbar.js +1 -1
- package/dist/components/feedback/snack-bar/snackbarHost.js +22 -0
- package/dist/components/utils/popover/PopoverAnatomy.js +49 -42
- package/dist/components/utils/popover/useScrollGutter.js +33 -0
- package/dist/index.js +156 -155
- package/dist/src/components/feedback/snack-bar/index.d.ts +2 -1
- package/dist/src/components/feedback/snack-bar/snackbarHost.d.ts +29 -0
- package/dist/src/components/utils/popover/useScrollGutter.d.ts +19 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -218,78 +218,79 @@ import { StyledEmptyPage as pp } from "./components/feedback/empty-page/StyledEm
|
|
|
218
218
|
import { StyledFilteredEmptyState as cp } from "./components/feedback/filtered-empty-state/StyledFilteredEmptyState.js";
|
|
219
219
|
import { StyledLoading as Ip } from "./components/feedback/loading/StyledLoading.js";
|
|
220
220
|
import { StyledAlert as dp } from "./components/feedback/snack-bar/StyledAlert.js";
|
|
221
|
-
import {
|
|
222
|
-
import {
|
|
223
|
-
import {
|
|
224
|
-
import {
|
|
225
|
-
import {
|
|
226
|
-
import {
|
|
227
|
-
import {
|
|
228
|
-
import {
|
|
229
|
-
import {
|
|
230
|
-
import {
|
|
231
|
-
import {
|
|
232
|
-
import {
|
|
233
|
-
import {
|
|
234
|
-
import {
|
|
235
|
-
import {
|
|
236
|
-
import {
|
|
237
|
-
import {
|
|
238
|
-
import {
|
|
239
|
-
import {
|
|
240
|
-
import {
|
|
241
|
-
import {
|
|
242
|
-
import {
|
|
243
|
-
import {
|
|
244
|
-
import {
|
|
245
|
-
import {
|
|
246
|
-
import {
|
|
247
|
-
import {
|
|
248
|
-
import {
|
|
249
|
-
import {
|
|
250
|
-
import {
|
|
251
|
-
import {
|
|
252
|
-
import {
|
|
253
|
-
import {
|
|
254
|
-
import {
|
|
255
|
-
import {
|
|
256
|
-
import {
|
|
257
|
-
import {
|
|
258
|
-
import {
|
|
259
|
-
import {
|
|
260
|
-
import {
|
|
261
|
-
import {
|
|
262
|
-
import {
|
|
263
|
-
import {
|
|
264
|
-
import {
|
|
265
|
-
import {
|
|
266
|
-
import {
|
|
267
|
-
import {
|
|
268
|
-
import {
|
|
269
|
-
import {
|
|
270
|
-
import {
|
|
271
|
-
import {
|
|
272
|
-
import {
|
|
273
|
-
import {
|
|
274
|
-
import {
|
|
275
|
-
import {
|
|
276
|
-
import {
|
|
277
|
-
import {
|
|
278
|
-
import {
|
|
279
|
-
import {
|
|
280
|
-
import {
|
|
281
|
-
import {
|
|
282
|
-
import {
|
|
283
|
-
import {
|
|
284
|
-
import {
|
|
285
|
-
import {
|
|
286
|
-
import {
|
|
287
|
-
import {
|
|
288
|
-
import {
|
|
289
|
-
import {
|
|
290
|
-
import {
|
|
221
|
+
import { closeSnackbar as Sp, enqueueSnackbar as sp } from "./components/feedback/snack-bar/snackbarHost.js";
|
|
222
|
+
import { SnackbarProvider as Cp } from "./components/feedback/snack-bar/SnackbarProvider.js";
|
|
223
|
+
import { StyledSnackbar as gp } from "./components/feedback/snack-bar/StyledSnackbar.js";
|
|
224
|
+
import { processAlertSnackBar as Dp } from "./components/feedback/snack-bar/processAlertSnackBar.js";
|
|
225
|
+
import { processDefaultSnackbar as kp } from "./components/feedback/snack-bar/processDefaultSnackbar.js";
|
|
226
|
+
import { processInfoSnackbar as Pp } from "./components/feedback/snack-bar/processInfoSnackbar.js";
|
|
227
|
+
import { message as Fp } from "./components/feedback/snack-bar/message.js";
|
|
228
|
+
import { useSnackbar as Rp } from "./components/feedback/snack-bar/index.js";
|
|
229
|
+
import { StyledInputField as vp } from "./components/inputs/input-field/StyledInputField.js";
|
|
230
|
+
import { StyledSearchField as Np } from "./components/inputs/search-field/StyledSearchField.js";
|
|
231
|
+
import { StyledTextarea as Hp } from "./components/inputs/textarea/StyledTextarea.js";
|
|
232
|
+
import { StyledSelect as _p } from "./components/inputs/select/StyledSelect.js";
|
|
233
|
+
import { StyledSelectItem as Wp } from "./components/inputs/select/StyledSelectItem.js";
|
|
234
|
+
import { StyledSelectAutocomplete as Vp } from "./components/inputs/select-autocomplete/StyledSelectAutocomplete.js";
|
|
235
|
+
import { StyledSlider as Gp } from "./components/inputs/slider/StyledSlider.js";
|
|
236
|
+
import { StyledSwitch as qp } from "./components/inputs/switch/base-ui/StyledSwitch.js";
|
|
237
|
+
import { StyledRadioGroup as Qp } from "./components/inputs/radio-button/base-ui/StyledRadioGroup.js";
|
|
238
|
+
import { StyledLabel as jp } from "./components/inputs/label/StyledLabel.js";
|
|
239
|
+
import { StyledDynamicSelect as Yp } from "./components/inputs/dynamic-select/StyledDynamicSelect.js";
|
|
240
|
+
import { StyledLink as of } from "./components/navigation/link/StyledLink.js";
|
|
241
|
+
import { StyledPhoneField as mf } from "./components/inputs/phone-field/StyledPhoneField.js";
|
|
242
|
+
import { StyledCountryFlag as ef } from "./components/inputs/phone-field/StyledCountryFlag.js";
|
|
243
|
+
import { StyledFormControl as pf } from "./components/miscellaneous/StyledFormControl.js";
|
|
244
|
+
import { defaultDatePickerValidationMessages as cf, useDatePickerValidation as lf } from "./datetime/components/date-picker/hooks/useDatePickerValidation.js";
|
|
245
|
+
import { StyledDrawer as af } from "./components/navigation/drawer/StyledDrawer.js";
|
|
246
|
+
import { StyledDatePicker as uf } from "./datetime/components/date-picker/StyledDatePicker.js";
|
|
247
|
+
import { PopupState as sf, bindPopover as yf, bindPopper as Cf, bindTrigger as Of, usePopupState as gf } from "./hooks/usePopupState.js";
|
|
248
|
+
import { ClickAwayListener as Df } from "./components/mui-compat/ClickAwayListener.js";
|
|
249
|
+
import { Paper as kf } from "./components/mui-compat/Paper.js";
|
|
250
|
+
import { Stack as Pf } from "./components/mui-compat/Stack.js";
|
|
251
|
+
import { Container as Ff } from "./components/mui-compat/Container.js";
|
|
252
|
+
import { Avatar as Rf } from "./components/mui-compat/Avatar.js";
|
|
253
|
+
import { Skeleton as vf } from "./components/mui-compat/Skeleton.js";
|
|
254
|
+
import { FormLabel as Nf } from "./components/mui-compat/FormLabel.js";
|
|
255
|
+
import { Fade as Hf } from "./components/mui-compat/Fade.js";
|
|
256
|
+
import { Popper as _f } from "./components/mui-compat/Popper.js";
|
|
257
|
+
import { defaultTimePickerHelperMessages as Wf } from "./datetime/components/time-picker/components/HelperText.js";
|
|
258
|
+
import { StyledTimePicker as Vf } from "./datetime/components/time-picker/StyledTimePicker.js";
|
|
259
|
+
import { setMidnightTime as Gf, setZeroTime as Xf } from "./datetime/helpers/date.helper.js";
|
|
260
|
+
import { StyledFormControlLabel as Kf } from "./components/miscellaneous/StyledFormControlLabel.js";
|
|
261
|
+
import { StyledFormHelperText as Zf } from "./components/miscellaneous/StyledFormHelperText.js";
|
|
262
|
+
import { StyledInputLabel as Jf } from "./components/miscellaneous/StyledInputLabel.js";
|
|
263
|
+
import { StyledFormGroup as $f } from "./components/miscellaneous/StyledFormGroup.js";
|
|
264
|
+
import { StyledTab as rc } from "./components/navigation/tabs/StyledTab.js";
|
|
265
|
+
import { StyledTabs as tc } from "./components/navigation/tabs/StyledTabs.js";
|
|
266
|
+
import { StyledTitleChevron as ec } from "./components/navigation/title-chevron/StyledTitleChevron.js";
|
|
267
|
+
import { Listbox as pc } from "./components/navigation/listbox/Listbox.js";
|
|
268
|
+
import { StyledAccordion as cc } from "./components/utils/accordion/base-ui/StyledAccordion.js";
|
|
269
|
+
import { StyledAccordionSummary as Ic } from "./components/utils/accordion/base-ui/StyledAccordionSummary.js";
|
|
270
|
+
import { StyledAccordionDetails as dc } from "./components/utils/accordion/base-ui/StyledAccordionDetails.js";
|
|
271
|
+
import { ACTIONS_COLUMN_ID as Sc, DND_HANDLE_COLUMN_ID as sc, EXPAND_COLUMN_ID as yc, INTERNAL_COLUMN_IDS as Cc, SELECT_COLUMN_ID as Oc, SHOW_FULL_TEXT_ID as gc, isCustomAction as hc } from "./table/types.js";
|
|
272
|
+
import { RowDragHandleCell as bc } from "./table/components/columns/dndHandleColumn.js";
|
|
273
|
+
import { StyledTable as Lc } from "./table/components/StyledTableIndex.js";
|
|
274
|
+
import { createColumnHelper as Tc } from "./table/index.js";
|
|
275
|
+
import { DynamicToolbarLayoutContext as Ac, useDynamicToolbarLayout as Rc } from "./components/custom/module/header-layout/DynamicToolbarLayoutContext.js";
|
|
276
|
+
import { StyledFilterButton as vc } from "./components/utils/filter-menu/StyledFilterButton.js";
|
|
277
|
+
import { StyledFilterMenu as Nc } from "./components/utils/filter-menu/StyledFilterMenu.js";
|
|
278
|
+
import { CopyButton as Hc } from "./components/utils/copy-wrapper/CopyButton.js";
|
|
279
|
+
import { CopyWrapper as _c } from "./components/utils/copy-wrapper/CopyWrapper.js";
|
|
280
|
+
import { VirtualList as Wc } from "./components/utils/virtual-list/VirtualList.js";
|
|
281
|
+
import { StyledWidgetTitle as Vc } from "./components/custom/widget/widget-title/StyledWidgetTitle.js";
|
|
282
|
+
import { StyledWidgetHeader as Gc } from "./components/custom/widget/widget-header/StyledWidgetHeader.js";
|
|
283
|
+
import { StyledWidget as qc } from "./components/custom/widget/widget/StyledWidget.js";
|
|
284
|
+
import { StyledModuleTitle as Qc } from "./components/custom/module/module-title/StyledModuleTitle.js";
|
|
285
|
+
import { DynamicToolbar as jc } from "./components/custom/module/header-layout/DynamicToolbar.js";
|
|
286
|
+
import { PageHeader as Yc } from "./components/custom/page/page-header/PageHeader.js";
|
|
287
|
+
import { MinimizableDialog as ol } from "./components/feedback/minimizable-dialog/MinimizableDialog.js";
|
|
288
|
+
import { MinimizableDialogV2 as ml } from "./components/feedback/minimizable-dialog/v2/MinimizableDialogV2.js";
|
|
289
|
+
import { createDialogStack as il } from "./components/feedback/minimizable-dialog/stack/createDialogStack.js";
|
|
290
|
+
import { PathfinderCard as nl } from "./components/custom/pathfinder-card/PathfinderCard.js";
|
|
291
|
+
import { useRouteHeadingFocus as fl } from "./hooks/useRouteHeadingFocus.js";
|
|
291
292
|
export {
|
|
292
|
-
|
|
293
|
+
Sc as ACTIONS_COLUMN_ID,
|
|
293
294
|
Yn as ACTION_GAP_PX,
|
|
294
295
|
Xi as AppRegistrationIcon,
|
|
295
296
|
wo as ArchiveIcon,
|
|
@@ -300,7 +301,7 @@ export {
|
|
|
300
301
|
j as AssignmentIcon,
|
|
301
302
|
Y as AssignmentOutlineIcon,
|
|
302
303
|
wt as AttachFileIcon,
|
|
303
|
-
|
|
304
|
+
Rf as Avatar,
|
|
304
305
|
xm as BackIcon,
|
|
305
306
|
wi as BackupIcon,
|
|
306
307
|
tm as BadgeIcon,
|
|
@@ -328,22 +329,22 @@ export {
|
|
|
328
329
|
s as ChevronRightIcon,
|
|
329
330
|
Uo as ChevronUpIcon,
|
|
330
331
|
zi as CircleWarningOutlineIcon,
|
|
331
|
-
|
|
332
|
+
Df as ClickAwayListener,
|
|
332
333
|
Lm as ClockOutlineIcon,
|
|
333
334
|
zo as CloseIcon,
|
|
334
335
|
At as CloudDoneOutlineIcon,
|
|
335
336
|
Mt as CloudIcon,
|
|
336
337
|
$i as CloudOffOutlineIcon,
|
|
337
338
|
Zr as ConsentsIcon,
|
|
338
|
-
|
|
339
|
+
Ff as Container,
|
|
339
340
|
St as ContentCopyIcon,
|
|
340
341
|
ht as ContentCopyOutlineIcon,
|
|
341
342
|
yt as ContentCutIcon,
|
|
342
343
|
Ot as ContentPasteIcon,
|
|
343
344
|
ri as ConversionPathIcon,
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
345
|
+
Hc as CopyButton,
|
|
346
|
+
_c as CopyWrapper,
|
|
347
|
+
sc as DND_HANDLE_COLUMN_ID,
|
|
347
348
|
F as DashboardViewIcon,
|
|
348
349
|
R as DashboardViewOutlineIcon,
|
|
349
350
|
cr as DeleteOutlineIcon,
|
|
@@ -362,16 +363,16 @@ export {
|
|
|
362
363
|
Ao as DropUpIcon,
|
|
363
364
|
yr as DvrIcon,
|
|
364
365
|
Mi as DvrIconOutline,
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
366
|
+
jc as DynamicToolbar,
|
|
367
|
+
Ac as DynamicToolbarLayoutContext,
|
|
368
|
+
yc as EXPAND_COLUMN_ID,
|
|
368
369
|
Er as EarthIcon,
|
|
369
370
|
Oe as EditNotesIcon,
|
|
370
371
|
em as EditSquareIcon,
|
|
371
372
|
tr as EmptyPageIcon,
|
|
372
373
|
yi as EnvelopeIcon,
|
|
373
374
|
Or as ErrorOutlineIcon,
|
|
374
|
-
|
|
375
|
+
Hf as Fade,
|
|
375
376
|
Tr as FastCheckOutlineIcon,
|
|
376
377
|
Ai as FileDocIcon,
|
|
377
378
|
be as FileImageIcon,
|
|
@@ -384,7 +385,7 @@ export {
|
|
|
384
385
|
yo as FindReplacePeopleIcon,
|
|
385
386
|
Oi as FingerprintIcon,
|
|
386
387
|
hm as FormIcon,
|
|
387
|
-
|
|
388
|
+
Nf as FormLabel,
|
|
388
389
|
tt as FormatListBulletedIcon,
|
|
389
390
|
et as FormatListBulletedOutlineIcon,
|
|
390
391
|
ti as GraphIcon,
|
|
@@ -399,7 +400,7 @@ export {
|
|
|
399
400
|
Se as HistoryToggleOffIcon,
|
|
400
401
|
ze as HubIcon,
|
|
401
402
|
Xe as HubIconFilled,
|
|
402
|
-
|
|
403
|
+
Cc as INTERNAL_COLUMN_IDS,
|
|
403
404
|
Jo as InboxOutboxIcon,
|
|
404
405
|
$o as InboxOutboxOutlineIcon,
|
|
405
406
|
Ee as IndeterminateIcon,
|
|
@@ -412,7 +413,7 @@ export {
|
|
|
412
413
|
xr as ListSettingsLineIcon,
|
|
413
414
|
Mr as ListStatusIcon,
|
|
414
415
|
wr as ListViewOutlineIcon,
|
|
415
|
-
|
|
416
|
+
pc as Listbox,
|
|
416
417
|
$e as LoadCurrentIcon,
|
|
417
418
|
To as LoadingIcon,
|
|
418
419
|
Om as LocationIcon,
|
|
@@ -425,8 +426,8 @@ export {
|
|
|
425
426
|
io as MessageProcessingOutlineIcon,
|
|
426
427
|
rm as MessageReplyIcon,
|
|
427
428
|
Am as MicrosoftOutlookIcon,
|
|
428
|
-
|
|
429
|
-
|
|
429
|
+
ol as MinimizableDialog,
|
|
430
|
+
ml as MinimizableDialogV2,
|
|
430
431
|
Jr as MinimizeIcon,
|
|
431
432
|
tn as MoveUpIcon,
|
|
432
433
|
G as NewCalendarIcon,
|
|
@@ -437,9 +438,9 @@ export {
|
|
|
437
438
|
Kt as OutlineCheckboxIconChecked,
|
|
438
439
|
Jt as OutlineCheckboxIconIndeterminate,
|
|
439
440
|
zt as OutlineNotificationsIcon,
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
441
|
+
Yc as PageHeader,
|
|
442
|
+
kf as Paper,
|
|
443
|
+
nl as PathfinderCard,
|
|
443
444
|
P as PdfIcon,
|
|
444
445
|
zr as PencilOutlineIcon,
|
|
445
446
|
N as PeopleIcon,
|
|
@@ -454,8 +455,8 @@ export {
|
|
|
454
455
|
pm as PlusIcon,
|
|
455
456
|
cm as PlusIconCircle,
|
|
456
457
|
Gn as PopoverSheet,
|
|
457
|
-
|
|
458
|
-
|
|
458
|
+
_f as Popper,
|
|
459
|
+
sf as PopupState,
|
|
459
460
|
Be as PrintIcon,
|
|
460
461
|
Te as ProhibitionIcon,
|
|
461
462
|
Ae as ProhibitionLargeIcon,
|
|
@@ -469,11 +470,11 @@ export {
|
|
|
469
470
|
de as ResetSettingsIcon,
|
|
470
471
|
Je as RocketLaunchIcon,
|
|
471
472
|
rn as RotateAutoIcon,
|
|
472
|
-
|
|
473
|
+
bc as RowDragHandleCell,
|
|
473
474
|
It as RuleIcon,
|
|
474
475
|
dt as RuleOutlineIcon,
|
|
475
|
-
|
|
476
|
-
|
|
476
|
+
Oc as SELECT_COLUMN_ID,
|
|
477
|
+
gc as SHOW_FULL_TEXT_ID,
|
|
477
478
|
di as SaveAsDraftIcon,
|
|
478
479
|
Ii as SaveIcon,
|
|
479
480
|
Lo as SearchIcon,
|
|
@@ -483,70 +484,70 @@ export {
|
|
|
483
484
|
Lt as SettingsNoteIcon,
|
|
484
485
|
ao as SettingsOutlineIcon,
|
|
485
486
|
Zi as ShareIcon,
|
|
486
|
-
|
|
487
|
+
vf as Skeleton,
|
|
487
488
|
ee as SmsIcon,
|
|
488
|
-
|
|
489
|
-
|
|
489
|
+
Cp as SnackbarProvider,
|
|
490
|
+
Pf as Stack,
|
|
490
491
|
Pn as StyledAIDisclosure,
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
492
|
+
cc as StyledAccordion,
|
|
493
|
+
dc as StyledAccordionDetails,
|
|
494
|
+
Ic as StyledAccordionSummary,
|
|
494
495
|
dp as StyledAlert,
|
|
495
496
|
f as StyledBadge,
|
|
496
497
|
Vn as StyledBottomSheet,
|
|
497
498
|
Fn as StyledButton,
|
|
498
499
|
an as StyledCheckbox,
|
|
499
500
|
ln as StyledChip,
|
|
500
|
-
|
|
501
|
-
|
|
501
|
+
ef as StyledCountryFlag,
|
|
502
|
+
uf as StyledDatePicker,
|
|
502
503
|
Rn as StyledDialog,
|
|
503
504
|
vn as StyledDialogActions,
|
|
504
505
|
Nn as StyledDialogContent,
|
|
505
506
|
ep as StyledDialogFooter,
|
|
506
507
|
Hn as StyledDialogTitle,
|
|
507
|
-
|
|
508
|
-
|
|
508
|
+
af as StyledDrawer,
|
|
509
|
+
Yp as StyledDynamicSelect,
|
|
509
510
|
pp as StyledEmptyPage,
|
|
510
|
-
|
|
511
|
-
|
|
511
|
+
vc as StyledFilterButton,
|
|
512
|
+
Nc as StyledFilterMenu,
|
|
512
513
|
cp as StyledFilteredEmptyState,
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
514
|
+
pf as StyledFormControl,
|
|
515
|
+
Kf as StyledFormControlLabel,
|
|
516
|
+
$f as StyledFormGroup,
|
|
517
|
+
Zf as StyledFormHelperText,
|
|
517
518
|
kn as StyledFormLabel,
|
|
518
|
-
|
|
519
|
-
|
|
519
|
+
vp as StyledInputField,
|
|
520
|
+
Jf as StyledInputLabel,
|
|
520
521
|
sn as StyledInteractiveChip,
|
|
521
|
-
|
|
522
|
-
|
|
522
|
+
jp as StyledLabel,
|
|
523
|
+
of as StyledLink,
|
|
523
524
|
Ip as StyledLoading,
|
|
524
525
|
Qn as StyledMenu,
|
|
525
526
|
jn as StyledMenuItem,
|
|
526
527
|
qn as StyledMenuList,
|
|
527
|
-
|
|
528
|
-
|
|
528
|
+
Qc as StyledModuleTitle,
|
|
529
|
+
mf as StyledPhoneField,
|
|
529
530
|
_n as StyledPopover,
|
|
530
531
|
un as StyledRadio,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
532
|
+
Qp as StyledRadioGroup,
|
|
533
|
+
Np as StyledSearchField,
|
|
534
|
+
_p as StyledSelect,
|
|
535
|
+
Vp as StyledSelectAutocomplete,
|
|
536
|
+
Wp as StyledSelectItem,
|
|
537
|
+
Gp as StyledSlider,
|
|
538
|
+
gp as StyledSnackbar,
|
|
539
|
+
qp as StyledSwitch,
|
|
540
|
+
rc as StyledTab,
|
|
541
|
+
Lc as StyledTable,
|
|
542
|
+
tc as StyledTabs,
|
|
543
|
+
Hp as StyledTextarea,
|
|
544
|
+
Vf as StyledTimePicker,
|
|
545
|
+
ec as StyledTitleChevron,
|
|
545
546
|
Cn as StyledTooltip,
|
|
546
547
|
Dn as StyledTypography,
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
548
|
+
qc as StyledWidget,
|
|
549
|
+
Gc as StyledWidgetHeader,
|
|
550
|
+
Vc as StyledWidgetTitle,
|
|
550
551
|
Me as StylusNoteIcon,
|
|
551
552
|
we as StylusNoteLargeIcon,
|
|
552
553
|
Xt as SyncIcon,
|
|
@@ -560,7 +561,7 @@ export {
|
|
|
560
561
|
Ar as UnknownDocumentOutlineRoundedIcon,
|
|
561
562
|
Km as UnlockIcon,
|
|
562
563
|
hi as UploadIcon,
|
|
563
|
-
|
|
564
|
+
Wc as VirtualList,
|
|
564
565
|
gn as VirtualizedList,
|
|
565
566
|
te as VisibilityOffOutlineIcon,
|
|
566
567
|
re as VisibilityOutlineIcon,
|
|
@@ -569,33 +570,33 @@ export {
|
|
|
569
570
|
Ke as WidgetIcon,
|
|
570
571
|
Ze as WidgetIconFilled,
|
|
571
572
|
ym as WorkIcon,
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
573
|
+
yf as bindPopover,
|
|
574
|
+
Cf as bindPopper,
|
|
575
|
+
Of as bindTrigger,
|
|
576
|
+
Sp as closeSnackbar,
|
|
576
577
|
m as cn,
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
578
|
+
Tc as createColumnHelper,
|
|
579
|
+
il as createDialogStack,
|
|
580
|
+
cf as defaultDatePickerValidationMessages,
|
|
581
|
+
Wf as defaultTimePickerHelperMessages,
|
|
582
|
+
sp as enqueueSnackbar,
|
|
582
583
|
op as estimateToolbarActionWidth,
|
|
583
584
|
Wn as formatResultsLabel,
|
|
584
|
-
|
|
585
|
-
|
|
585
|
+
hc as isCustomAction,
|
|
586
|
+
Fp as message,
|
|
586
587
|
i as omit,
|
|
587
588
|
rp as planBulkToolbarActions,
|
|
588
589
|
mp as planToolbarActions,
|
|
589
590
|
n as prepareForSlot,
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
591
|
+
Dp as processAlertSnackBar,
|
|
592
|
+
kp as processDefaultSnackbar,
|
|
593
|
+
Pp as processInfoSnackbar,
|
|
593
594
|
tp as resolveToolbarActionWidth,
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
595
|
+
Gf as setMidnightTime,
|
|
596
|
+
Xf as setZeroTime,
|
|
597
|
+
lf as useDatePickerValidation,
|
|
598
|
+
Rc as useDynamicToolbarLayout,
|
|
599
|
+
gf as usePopupState,
|
|
600
|
+
fl as useRouteHeadingFocus,
|
|
601
|
+
Rp as useSnackbar
|
|
601
602
|
};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from './SnackbarProvider';
|
|
2
|
-
export {
|
|
2
|
+
export { useSnackbar } from 'notistack';
|
|
3
|
+
export { enqueueSnackbar, closeSnackbar } from './snackbarHost';
|
|
3
4
|
export * from './StyledAlert';
|
|
4
5
|
export * from './StyledSnackbar';
|
|
5
6
|
export * from './processAlertSnackBar';
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ProviderContext } from 'notistack';
|
|
2
|
+
/**
|
|
3
|
+
* Where the global snackbar helpers (`message.*`, `processAlertSnackBar`, the exported
|
|
4
|
+
* `enqueueSnackbar`/`closeSnackbar`, …) render: the **oldest still-mounted** ui-core
|
|
5
|
+
* `SnackbarProvider` (ASMA-8414).
|
|
6
|
+
*
|
|
7
|
+
* notistack's own module-level `enqueueSnackbar` is bound to the LAST constructed provider and is
|
|
8
|
+
* never restored when that provider unmounts. `asma-ui-core` is a shared kernel lib, so the shell and
|
|
9
|
+
* every app share one notistack, and every app widget mounts its own provider through `AppProviders`.
|
|
10
|
+
* The most recently mounted widget therefore captured every global toast in the page; once it
|
|
11
|
+
* unmounted (e.g. a widget embedded in a dialog that just closed on save), toasts already shown died
|
|
12
|
+
* with it and every later one was enqueued into a dead provider — silently.
|
|
13
|
+
*
|
|
14
|
+
* The oldest live provider is the host's (shell / AdVoca), which outlives every widget. The registry is
|
|
15
|
+
* **window-scoped** for the same reason as the open-modal-dialog registry in `useTopLayer.hook`: in a
|
|
16
|
+
* plain `vite dev` each micro-frontend bundles its own copy of this module, but they all share one
|
|
17
|
+
* `window`.
|
|
18
|
+
*/
|
|
19
|
+
type SnackbarHost = Pick<ProviderContext, 'enqueueSnackbar' | 'closeSnackbar'>;
|
|
20
|
+
declare global {
|
|
21
|
+
interface Window {
|
|
22
|
+
__asmaSnackbarHosts__?: SnackbarHost[];
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
/** Register a mounted provider's context; returns its unregister. Mount order is preserved. */
|
|
26
|
+
export declare function registerSnackbarHost(host: SnackbarHost): () => void;
|
|
27
|
+
export declare const enqueueSnackbar: ProviderContext["enqueueSnackbar"];
|
|
28
|
+
export declare const closeSnackbar: ProviderContext['closeSnackbar'];
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RefObject } from 'react';
|
|
2
|
+
export interface ScrollGutter {
|
|
3
|
+
/** Layout width the scrollbar takes: 15-17px for a classic bar, 0 for an overlay one. */
|
|
4
|
+
width: number;
|
|
5
|
+
/** The content is taller than the scroll container. */
|
|
6
|
+
overflows: boolean;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Measures a scroll container's scrollbar gutter and whether it overflows, and keeps both current.
|
|
10
|
+
*
|
|
11
|
+
* Meant for a container with `scrollbar-gutter: stable`: its gutter is then reserved whether or not it
|
|
12
|
+
* scrolls, so `width` is a property of the platform (and zoom), not of the content — padding derived
|
|
13
|
+
* from it cannot oscillate as scrolling starts and stops. Re-measured on its own resize, on any direct
|
|
14
|
+
* child's resize (content growing inside a container already at max-height does not resize it), when
|
|
15
|
+
* children are added or removed, and on window resize, which also catches browser zoom.
|
|
16
|
+
*
|
|
17
|
+
* Measured in a layout effect, so the corrected layout is in place before the first paint.
|
|
18
|
+
*/
|
|
19
|
+
export declare const useScrollGutter: (ref: RefObject<HTMLElement | null>) => ScrollGutter;
|