@m4l/components 9.3.1 → 9.3.2-B04082025-beta.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/@types/types.d.ts +9 -1
- package/components/DataGrid/Datagrid.styles.js +1 -1
- package/components/DragResizeWindowRND/constants.d.ts +44 -0
- package/components/DragResizeWindowRND/constants.js +46 -1
- package/components/DragResizeWindowRND/index.d.ts +1 -0
- package/components/DynamicFilter/DynamicFilter.styles.js +2 -2
- package/components/DynamicFilter/subcomponents/FilterActions/FilterActions.js +3 -0
- package/components/DynamicSort/DynamicSort.styles.js +2 -2
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.d.ts +7 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainer.js +25 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.d.ts +2 -0
- package/components/ImageText/components/ImageTextContainer/ImageTextContainerStyle.js +22 -0
- package/components/ImageText/components/ImageTextContainer/constants.d.ts +8 -0
- package/components/ImageText/components/ImageTextContainer/constants.js +8 -0
- package/components/ImageText/components/ImageTextContainer/index.d.ts +1 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.d.ts +3 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerEnum.js +7 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.d.ts +3 -0
- package/components/ImageText/components/ImageTextContainer/slots/ImageTextContainerSlots.js +12 -0
- package/components/ImageText/components/ImageTextContainer/types.d.ts +22 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivileges.d.ts +7 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivileges.js +65 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivilegesStyles.d.ts +5 -0
- package/components/ImageText/components/NoItemPrivileges/NoItemPrivilegesStyles.js +62 -0
- package/components/ImageText/components/NoItemPrivileges/constants.d.ts +4 -0
- package/components/ImageText/components/NoItemPrivileges/constants.js +11 -0
- package/components/ImageText/components/NoItemPrivileges/dictionary.d.ts +5 -0
- package/components/ImageText/components/NoItemPrivileges/dictionary.js +12 -0
- package/components/ImageText/components/NoItemPrivileges/index.d.ts +3 -0
- package/components/ImageText/components/NoItemPrivileges/index.js +1 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.d.ts +7 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesEnum.js +11 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.d.ts +15 -0
- package/components/ImageText/components/NoItemPrivileges/slots/NoItemPrivilegesSlots.js +33 -0
- package/components/ImageText/components/NoItemPrivileges/test/NoItemPrivileges.test.d.ts +1 -0
- package/components/ImageText/components/NoItemPrivileges/types.d.ts +36 -0
- package/components/ImageText/components/NoItemSelected/NoItemSelected.js +62 -0
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/NoItemSelected.styles.js +4 -20
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/constant.js +1 -1
- package/components/ImageText/components/NoItemSelected/index.js +1 -0
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedEnum.d.ts +0 -1
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedEnum.js +0 -1
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedSlots.d.ts +4 -7
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/slots/NoItemSelectedSlots.js +5 -10
- package/components/{NoItemSelected → ImageText/components/NoItemSelected}/types.d.ts +2 -2
- package/components/ImageText/hooks/useIsVisible/index.d.ts +6 -0
- package/components/ImageText/hooks/useIsVisible/index.js +24 -0
- package/components/ImageText/index.d.ts +3 -0
- package/components/ImageText/index.js +1 -0
- package/components/ObjectLogs/helpers/Fields/filterFields.d.ts +5 -0
- package/components/ObjectLogs/helpers/Fields/filterFields.js +81 -0
- package/components/ObjectLogs/hooks/useDetailFormatter.js +1 -1
- package/components/ObjectLogs/hooks/useFilterAndSort.d.ts +15 -0
- package/components/ObjectLogs/hooks/useFilterAndSort.js +51 -0
- package/components/ObjectLogs/slots/ObjectLogsSlots.js +1 -2
- package/components/ObjectLogs/subcomponents/ObjectLogsByM4L/ObjectLogsByM4L.js +39 -88
- package/components/ObjectLogs/subcomponents/ObjectLogsByOthers/ObjectLogsByOthers.js +30 -104
- package/components/PropertyValue/PropertyValue.styles.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/styles.js +1 -1
- package/components/SideBar/subcomponents/TreeGroupItems/subcomponents/NodeMenuItem/index.js +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useHeaderActions.js +4 -2
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.d.ts +1 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useRightActions.js +50 -47
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/hooks/useWindow.js +2 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/Window/types.d.ts +5 -1
- package/components/areas/components/AreasViewer/subcomponents/Area/subcomponents/WindowModal/WindowModal.js +12 -7
- package/components/formatters/BooleanFormatter/BooleanFormatter.js +1 -0
- package/components/formatters/ChipStatusFormatter/ChipStatusFormatter.js +7 -1
- package/components/formatters/ChipStatusFormatter/types.d.ts +9 -1
- package/components/hook-form/RHFPeriod/slots/RHFPeriodSlots.d.ts +1 -1
- package/components/hook-form/RHFTextField/slots/RHFTextFieldSlots.d.ts +1 -1
- package/components/hook-form/RHFTextFieldPassword/slots/RHFTextFieldPasswordSlots.d.ts +1 -1
- package/components/index.d.ts +1 -1
- package/components/mui_extended/Accordion/Accordion.js +1 -1
- package/components/mui_extended/Autocomplete/Autocomplete.js +2 -1
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.d.ts +1 -0
- package/components/mui_extended/Autocomplete/hooks/useEndAdornments.js +4 -2
- package/components/mui_extended/Autocomplete/hooks/useValuesAndHandlers.js +1 -1
- package/components/mui_extended/Autocomplete/slots/AutocompleteSlots.d.ts +1 -1
- package/components/mui_extended/Tab/Tab.styles.js +4 -4
- package/components/mui_extended/TabContent/TabContent.styles.js +0 -1
- package/components/mui_extended/TextField/TextField.js +16 -3
- package/components/mui_extended/TextField/TextField.styles.js +20 -4
- package/components/mui_extended/TextField/constants.d.ts +3 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/getLimitCharacters.d.ts +7 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/getLimitCharacters.js +11 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/index.d.ts +1 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/index.js +1 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/test/getLimitCharacters.test.d.ts +1 -0
- package/components/mui_extended/TextField/helpers/getLimitCharacters/types.d.ts +5 -0
- package/components/mui_extended/TextField/slots/TextFieldEnum.d.ts +4 -1
- package/components/mui_extended/TextField/slots/TextFieldEnum.js +3 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.d.ts +13 -0
- package/components/mui_extended/TextField/slots/TextFieldSlots.js +17 -2
- package/components/mui_extended/TextField/types.d.ts +9 -0
- package/hooks/useDynamicFilterAndSort/types.d.ts +2 -0
- package/hooks/useDynamicFilterAndSort/useDynamicFilterAndSort.js +5 -3
- package/index.js +42 -34
- package/mockServiceWorker.js +1 -1
- package/package.json +3 -3
- package/storybook/components/Areas/AreasViewer/subcomponents/Launcher/PopupButton.d.ts +1 -1
- package/storybook/components/NoItemPrivileges/NoItemPrivileges.stories.d.ts +12 -0
- package/storybook/components/NoItemSelect/NoItemSelect.stories.d.ts +1 -1
- package/storybook/components/extended/mui/TextField/TextFieldText.stories.d.ts +7 -0
- package/components/NoItemSelected/NoItemSelected.js +0 -77
- /package/components/{NoItemSelected → ImageText/components/ImageTextContainer}/index.js +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/NoItemSelected.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/NoItemSelected.styles.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/constant.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/dictionary.d.ts +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/dictionary.js +0 -0
- /package/components/{NoItemSelected → ImageText/components/NoItemSelected}/index.d.ts +0 -0
package/index.js
CHANGED
|
@@ -58,6 +58,7 @@ import { C as C13 } from "./components/DataGrid/formatters/ColumnChipStatusForma
|
|
|
58
58
|
import { u as u11 } from "./components/DataGrid/formatters/ColumnChipStatusFormatter/useColumnChipStatus.js";
|
|
59
59
|
import { D as D3 } from "./components/DragResizeWindowRND/DragResizeWindowRND.js";
|
|
60
60
|
import { d as d2 } from "./components/DragResizeWindowRND/classes/index.js";
|
|
61
|
+
import { W } from "./components/DragResizeWindowRND/constants.js";
|
|
61
62
|
import { g as g7 } from "./components/DynamicFilter/dictionary.js";
|
|
62
63
|
import { a as a5, g as g8 } from "./components/DynamicFilter/helpers/frontEndHelpers.js";
|
|
63
64
|
import { g as g9 } from "./components/DynamicFilter/helpers/getRawFiltersForNetwork.js";
|
|
@@ -162,9 +163,12 @@ import { a as a9, M as M3 } from "./components/MenuActions/MenuActions.js";
|
|
|
162
163
|
import { M as M4 } from "./components/MFIsolationApp/MFIsolationApp.js";
|
|
163
164
|
import { M as M5 } from "./components/MFLoader/MFLoader.js";
|
|
164
165
|
import { g as g24 } from "./components/MFLoader/dictionary.js";
|
|
165
|
-
import { N as N3 } from "./components/
|
|
166
|
-
import { g as g25 } from "./components/
|
|
167
|
-
import {
|
|
166
|
+
import { N as N3 } from "./components/ImageText/components/NoItemPrivileges/NoItemPrivileges.js";
|
|
167
|
+
import { g as g25 } from "./components/ImageText/components/NoItemPrivileges/dictionary.js";
|
|
168
|
+
import { N as N4 } from "./components/ImageText/components/NoItemSelected/NoItemSelected.js";
|
|
169
|
+
import { g as g26 } from "./components/ImageText/components/NoItemSelected/dictionary.js";
|
|
170
|
+
import { I as I6 } from "./components/ImageText/components/ImageTextContainer/ImageTextContainer.js";
|
|
171
|
+
import { g as g27 } from "./components/ObjectLogs/dictionary.js";
|
|
168
172
|
import { O } from "./components/ObjectLogs/ObjectLogs.js";
|
|
169
173
|
import { P as P7 } from "./components/PaperForm/PaperForm.js";
|
|
170
174
|
import { P as P8 } from "./components/PDFViewer/PDFViewer.js";
|
|
@@ -177,25 +181,25 @@ import { S as S8 } from "./components/ScrollBar/ScrollBar.js";
|
|
|
177
181
|
import { S as S9 } from "./components/SideBar/SideBar.js";
|
|
178
182
|
import { T as T18 } from "./components/ToastContainer/ToastContainer.js";
|
|
179
183
|
import { T as T19 } from "./components/ToastContainer/subcomponents/ToastMessage/ToastMessage.js";
|
|
180
|
-
import { W } from "./components/WindowBase/WindowBase.js";
|
|
184
|
+
import { W as W2 } from "./components/WindowBase/WindowBase.js";
|
|
181
185
|
import { u as u14 } from "./components/WindowBase/hooks/useWindowToolsMF/index.js";
|
|
182
186
|
import { u as u15, a as a11 } from "./components/WindowBase/hooks/useDynamicMFParameters/index.js";
|
|
183
|
-
import { M as M6, W as
|
|
187
|
+
import { M as M6, W as W3, a as a12 } from "./components/WindowBase/contexts/WindowToolsMFContext/WindowToolsMFContext.js";
|
|
184
188
|
import { c as c3 } from "./components/WindowBase/contexts/DynamicMFParmsContext/store.js";
|
|
185
189
|
import { D as D10, a as a13, M as M7 } from "./components/WindowBase/contexts/DynamicMFParmsContext/DynamicMFParmsContext.js";
|
|
186
|
-
import { W as
|
|
187
|
-
import { a as a14, g as
|
|
190
|
+
import { W as W4 } from "./components/WindowConfirm/WindowConfirm.js";
|
|
191
|
+
import { a as a14, g as g28 } from "./components/ModalDialog/dictionary.js";
|
|
188
192
|
import { M as M8 } from "./components/ModalDialog/ModalDialog.js";
|
|
189
193
|
import { P as P13 } from "./components/Pager/Pager.js";
|
|
190
194
|
import { F as F2, R as R22, u as u16 } from "./components/hook-form/RHFormContext/index.js";
|
|
191
|
-
import { g as
|
|
195
|
+
import { g as g29 } from "./components/hook-form/RHFormContext/dictionary.js";
|
|
192
196
|
import { u as u17 } from "./contexts/AppearanceComponentContext/useAppearanceComponentStore.js";
|
|
193
197
|
import { A as A16 } from "./contexts/AppearanceComponentContext/AppearanceComponentContext.js";
|
|
194
198
|
import { a as a15, M as M9 } from "./contexts/ModalContext/index.js";
|
|
195
199
|
import { u as u18 } from "./hooks/useFormAddEdit/index.js";
|
|
196
200
|
import { u as u19 } from "./hooks/useModal/index.js";
|
|
197
201
|
import { u as u20 } from "./hooks/useTab/index.js";
|
|
198
|
-
import { g as
|
|
202
|
+
import { g as g30 } from "./hooks/useFormAddEdit/dictionary.js";
|
|
199
203
|
import { u as u21 } from "./hooks/useFormFocus/index.js";
|
|
200
204
|
import { u as u22 } from "./hooks/useInterval/index.js";
|
|
201
205
|
import { u as u23 } from "./hooks/useComponentSize/useComponentSize.js";
|
|
@@ -208,16 +212,16 @@ import { u as u28 } from "./hooks/useDataGridPersistence/useDataGridPersistence.
|
|
|
208
212
|
import { u as u29 } from "./hooks/usePopoverContainer/usePopoverContainer.js";
|
|
209
213
|
import { c as c4 } from "./utils/capitalizeFirstLetter.js";
|
|
210
214
|
import { i as i2 } from "./utils/isValidDate.js";
|
|
211
|
-
import { g as
|
|
212
|
-
import { g as
|
|
213
|
-
import { g as
|
|
214
|
-
import { g as
|
|
215
|
-
import { a as a16, g as
|
|
215
|
+
import { g as g31 } from "./utils/getComponentUtilityClass.js";
|
|
216
|
+
import { g as g32 } from "./utils/getPaletteColor.js";
|
|
217
|
+
import { g as g33 } from "./utils/getTypographyStyles.js";
|
|
218
|
+
import { g as g34 } from "./utils/getIconColor.js";
|
|
219
|
+
import { a as a16, g as g35 } from "./utils/getSizeStyles/getSizeStyles.js";
|
|
216
220
|
import { O as O2 } from "./utils/ObjectQueue.js";
|
|
217
|
-
import { g as
|
|
221
|
+
import { g as g36, a as a17 } from "./utils/getComponentSlotRoot.js";
|
|
218
222
|
import { f } from "./utils/formatDistanceToNow/formatDistanteToNow.js";
|
|
219
|
-
import { g as
|
|
220
|
-
import { g as
|
|
223
|
+
import { g as g37 } from "./utils/getValidDate.js";
|
|
224
|
+
import { g as g38 } from "./utils/getNullGuard.js";
|
|
221
225
|
export {
|
|
222
226
|
A7 as AREAS_DICCTIONARY,
|
|
223
227
|
a3 as AREAS_DICTIONARY_ID,
|
|
@@ -285,6 +289,7 @@ export {
|
|
|
285
289
|
I as IconButtonAnimate,
|
|
286
290
|
I5 as Image,
|
|
287
291
|
I3 as ImageButton,
|
|
292
|
+
I6 as ImageTextContainer,
|
|
288
293
|
L2 as LABEL_FILTER_BUTTON,
|
|
289
294
|
L6 as Label,
|
|
290
295
|
L7 as LanguagePopover,
|
|
@@ -307,7 +312,8 @@ export {
|
|
|
307
312
|
M as MotionContainer,
|
|
308
313
|
M2 as MotionLazyContainer,
|
|
309
314
|
N2 as NavLink,
|
|
310
|
-
N3 as
|
|
315
|
+
N3 as NoItemPrivileges,
|
|
316
|
+
N4 as NoItemSelected,
|
|
311
317
|
N as NumberEditor,
|
|
312
318
|
O as ObjectLogs,
|
|
313
319
|
O2 as ObjectQueue,
|
|
@@ -380,9 +386,10 @@ export {
|
|
|
380
386
|
T8 as Typography,
|
|
381
387
|
U as UncertaintyFormatter,
|
|
382
388
|
V as VariableSizeList,
|
|
383
|
-
W as
|
|
384
|
-
|
|
385
|
-
|
|
389
|
+
W as WINDOW_SIZES,
|
|
390
|
+
W2 as WindowBase,
|
|
391
|
+
W4 as WindowConfirm,
|
|
392
|
+
W3 as WindowToolsMFContext,
|
|
386
393
|
a12 as WindowToolsMFProvider,
|
|
387
394
|
c2 as addLayoutItemToBreakPointIfNoExists,
|
|
388
395
|
e2 as addLayoutItemToBreakPoints,
|
|
@@ -398,44 +405,45 @@ export {
|
|
|
398
405
|
b2 as getAreasComponentsDictionary,
|
|
399
406
|
g3 as getAreasDictionary,
|
|
400
407
|
g4 as getCommonActionsDictionary,
|
|
401
|
-
|
|
408
|
+
g36 as getComponentClasses,
|
|
402
409
|
a17 as getComponentSlotRoot,
|
|
403
|
-
|
|
410
|
+
g31 as getComponentUtilityClass,
|
|
404
411
|
g5 as getDataGridComponentsDictionary,
|
|
405
412
|
g6 as getDataGridRowsFromSet,
|
|
406
413
|
g17 as getDistanceToNowFormatterComponentsDictionary,
|
|
407
414
|
g7 as getDynamicFilterComponentsDictionary,
|
|
408
415
|
a6 as getDynamicSortComponentsDictionary,
|
|
409
416
|
a5 as getFilterGroupFieldsByName,
|
|
410
|
-
|
|
417
|
+
g29 as getFormComponentsDictionary,
|
|
411
418
|
g15 as getFormatConcatenated,
|
|
412
419
|
g12 as getFormatDate,
|
|
413
420
|
g14 as getFormatPoints,
|
|
414
421
|
g16 as getFormatPrice,
|
|
415
422
|
g18 as getFormattersComponentsDictionary,
|
|
416
423
|
a16 as getHeightSizeStyles,
|
|
417
|
-
|
|
424
|
+
g34 as getIconColor,
|
|
418
425
|
g8 as getIsIfInDynamicFilter,
|
|
419
426
|
g22 as getLoadingErrorComponentsDictionary,
|
|
420
427
|
g24 as getMFLoaderComponentsDictionary,
|
|
421
428
|
g23 as getMenuActionsComponentsDictionary,
|
|
422
429
|
a14 as getModalDialogComponentsDictionary,
|
|
423
|
-
|
|
424
|
-
g25 as
|
|
425
|
-
|
|
426
|
-
|
|
430
|
+
g28 as getModalDictionary,
|
|
431
|
+
g25 as getNoItemPrivilegesComponentsDictionary,
|
|
432
|
+
g26 as getNoItemSelectedComponentsDictionary,
|
|
433
|
+
g38 as getNullGuard,
|
|
434
|
+
g27 as getObjectLogsComponentsDictionary,
|
|
427
435
|
g11 as getPagerComponentsDictionary,
|
|
428
|
-
|
|
436
|
+
g32 as getPaletteColor,
|
|
429
437
|
g21 as getPeriodComponetsDictionary,
|
|
430
438
|
g20 as getRHFAutocompleteAsyncComponentsDictionary,
|
|
431
439
|
g19 as getRHFAutocompleteComponentsDictionary,
|
|
432
440
|
g9 as getRawFiltersForNetwork,
|
|
433
441
|
g10 as getRawSortsForNetwork,
|
|
434
|
-
|
|
435
|
-
|
|
442
|
+
g35 as getSizeStyles,
|
|
443
|
+
g33 as getTypographyStyles,
|
|
436
444
|
g13 as getUncertaintyFormat,
|
|
437
|
-
|
|
438
|
-
|
|
445
|
+
g37 as getValidDate,
|
|
446
|
+
g30 as getformAddEditDictionary,
|
|
439
447
|
i as isEqualLayout,
|
|
440
448
|
k as isEqualLayouts,
|
|
441
449
|
i2 as isValidDate,
|
package/mockServiceWorker.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* - Please do NOT serve this file on production.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
-
const PACKAGE_VERSION = '2.
|
|
11
|
+
const PACKAGE_VERSION = '2.7.0'
|
|
12
12
|
const INTEGRITY_CHECKSUM = '00729d72e3b82faf54ca8b9621dbb96f'
|
|
13
13
|
const IS_MOCKED_RESPONSE = Symbol('isMockedResponse')
|
|
14
14
|
const activeClientIds = new Set()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@m4l/components",
|
|
3
|
-
"version": "9.3.
|
|
3
|
+
"version": "9.3.2-B04082025-beta.3",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"description": "M4L Components",
|
|
6
6
|
"lint-staged": {
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"@googlemaps/js-api-loader": "^1.16.6",
|
|
12
12
|
"@hookform/resolvers": "2.9.11",
|
|
13
13
|
"@m4l/core": "^2.0.0",
|
|
14
|
-
"@m4l/graphics": "
|
|
15
|
-
"@m4l/styles": "
|
|
14
|
+
"@m4l/graphics": "7.1.3-B04082025-beta.3",
|
|
15
|
+
"@m4l/styles": "7.1.31-B04082025-beta.3",
|
|
16
16
|
"@microlink/react-json-view": "^1.23.3",
|
|
17
17
|
"@mui/lab": "5.0.0-alpha.173",
|
|
18
18
|
"@mui/material": "5.16.7",
|
|
@@ -4,7 +4,7 @@ interface PopupButtonProps {
|
|
|
4
4
|
iconUrl: string;
|
|
5
5
|
dynamicParams: Record<string, any>;
|
|
6
6
|
/** Si se pasa este id, se intentará reemplazar el popup existente */
|
|
7
|
-
windowType?: 'simple_popup' | 'microfrontend_userd_add_edit_popup' | 'microfrontend_users_list_layout';
|
|
7
|
+
windowType?: 'simple_popup' | 'microfrontend_userd_add_edit_popup' | 'microfrontend_users_list_layout' | 'microfrontend_userd_add_edit_modal';
|
|
8
8
|
replaceMeId?: string;
|
|
9
9
|
onClick?: () => void;
|
|
10
10
|
/** Callback para notificar que se ha generado un id, en caso de no recibir uno por props */
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { NoItemPrivileges } from '../../../src/components/ImageText/components/NoItemPrivileges';
|
|
3
|
+
declare const meta: Meta<typeof NoItemPrivileges>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof NoItemPrivileges>;
|
|
6
|
+
/** Base component */
|
|
7
|
+
export declare const NoItemPrivilegesComponent: Story;
|
|
8
|
+
/**
|
|
9
|
+
* Version skeleton del componente
|
|
10
|
+
*/
|
|
11
|
+
export declare const Skeleton: Story;
|
|
12
|
+
export declare const WithSplitLayout: Story;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
-
import { NoItemSelected } from '../../../src/components/NoItemSelected/NoItemSelected';
|
|
2
|
+
import { NoItemSelected } from '../../../src/components/ImageText/components/NoItemSelected/NoItemSelected';
|
|
3
3
|
declare const meta: Meta<typeof NoItemSelected>;
|
|
4
4
|
export default meta;
|
|
5
5
|
type Story = StoryObj<typeof NoItemSelected>;
|
|
@@ -21,5 +21,12 @@ export declare const MultipleLines: Story;
|
|
|
21
21
|
* disabled
|
|
22
22
|
*/
|
|
23
23
|
export declare const WhitAdorment: Story;
|
|
24
|
+
/**
|
|
25
|
+
* Se aplica cuando el input tiene un limite de caracteres.
|
|
26
|
+
*/
|
|
27
|
+
export declare const WithLimitCharacters: Story;
|
|
28
|
+
/**
|
|
29
|
+
* Se aplica cuando el input tiene un skeleton.
|
|
30
|
+
*/
|
|
24
31
|
export declare const WithSkeleton: Story;
|
|
25
32
|
export default meta;
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
import { jsxs, jsx, Fragment } from "react/jsx-runtime";
|
|
2
|
-
import { useEnvironment, useModuleDictionary } from "@m4l/core";
|
|
3
|
-
import { useMemo, useRef, useState, useEffect } from "react";
|
|
4
|
-
import { W as WrapperNoItemSelectedStyled, N as NoItemSelectedContainer, I as ImgStyled, a as WrapperTpography, T as TypographyStyledTitle, b as TypographyStyledDetail, L as LabelDetail } from "./slots/NoItemSelectedSlots.js";
|
|
5
|
-
import { clsx } from "clsx";
|
|
6
|
-
import { c as classNoItemSelected, N as NO_ITEM_SELECT_KEY_COMPONENT } from "./constant.js";
|
|
7
|
-
import { g as getPropDataTestId } from "../../test/getNameDataTestId.js";
|
|
8
|
-
import { N as NoItemSelectedSlots } from "./slots/NoItemSelectedEnum.js";
|
|
9
|
-
import { D as DICTIONARY } from "./dictionary.js";
|
|
10
|
-
import { u as useComponentSize } from "../../hooks/useComponentSize/useComponentSize.js";
|
|
11
|
-
function NoItemSelected(props) {
|
|
12
|
-
const { image, message, size = "medium", className, dataTestId } = props;
|
|
13
|
-
const { host_static_assets, environment_assets } = useEnvironment();
|
|
14
|
-
const { currentSize } = useComponentSize(size);
|
|
15
|
-
const adjustedSize = currentSize === "small" || currentSize === "medium" ? currentSize : "medium";
|
|
16
|
-
const { getLabel } = useModuleDictionary();
|
|
17
|
-
const defaultImage = useMemo(() => {
|
|
18
|
-
return `${host_static_assets}/${environment_assets}/frontend/components/no_item_selected/assets/icons/no_selected.svg`;
|
|
19
|
-
}, []);
|
|
20
|
-
const ownerState = {
|
|
21
|
-
size
|
|
22
|
-
};
|
|
23
|
-
const containerRef = useRef(null);
|
|
24
|
-
const [isVisible, setIsVisible] = useState(true);
|
|
25
|
-
useEffect(() => {
|
|
26
|
-
const observer = new ResizeObserver((entries) => {
|
|
27
|
-
for (const entry of entries) {
|
|
28
|
-
setIsVisible(entry.contentRect.height >= 49);
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
if (containerRef.current) {
|
|
32
|
-
observer.observe(containerRef.current);
|
|
33
|
-
}
|
|
34
|
-
return () => observer.disconnect();
|
|
35
|
-
}, []);
|
|
36
|
-
return /* @__PURE__ */ jsxs(
|
|
37
|
-
WrapperNoItemSelectedStyled,
|
|
38
|
-
{
|
|
39
|
-
...getPropDataTestId(NO_ITEM_SELECT_KEY_COMPONENT, NoItemSelectedSlots.root, dataTestId),
|
|
40
|
-
children: [
|
|
41
|
-
/* @__PURE__ */ jsx(NoItemSelectedContainer, { ref: containerRef, children: isVisible && /* @__PURE__ */ jsx(
|
|
42
|
-
ImgStyled,
|
|
43
|
-
{
|
|
44
|
-
className: clsx(classNoItemSelected.img, "noItemSelectedImg", className),
|
|
45
|
-
src: image || defaultImage,
|
|
46
|
-
alt: "No item selected"
|
|
47
|
-
}
|
|
48
|
-
) }),
|
|
49
|
-
!message ? /* @__PURE__ */ jsx(Fragment, { children: /* @__PURE__ */ jsxs(WrapperTpography, { size: adjustedSize, children: [
|
|
50
|
-
/* @__PURE__ */ jsx(
|
|
51
|
-
TypographyStyledTitle,
|
|
52
|
-
{
|
|
53
|
-
ownerState: { ...ownerState },
|
|
54
|
-
skeletonWidth: 100,
|
|
55
|
-
size: adjustedSize,
|
|
56
|
-
"data-testid": getPropDataTestId(NO_ITEM_SELECT_KEY_COMPONENT, NoItemSelectedSlots.typographyStyledTitle, dataTestId),
|
|
57
|
-
children: getLabel(DICTIONARY.LABEL_TITLE)
|
|
58
|
-
}
|
|
59
|
-
),
|
|
60
|
-
/* @__PURE__ */ jsx(
|
|
61
|
-
TypographyStyledDetail,
|
|
62
|
-
{
|
|
63
|
-
ownerState: { ...ownerState },
|
|
64
|
-
skeletonWidth: 200,
|
|
65
|
-
size: adjustedSize,
|
|
66
|
-
"data-testid": getPropDataTestId(NO_ITEM_SELECT_KEY_COMPONENT, NoItemSelectedSlots.typographyStyledDetail, dataTestId),
|
|
67
|
-
children: getLabel(DICTIONARY.LABEL_DETAIL)
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
] }) }) : /* @__PURE__ */ jsx(LabelDetail, { children: message })
|
|
71
|
-
]
|
|
72
|
-
}
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
export {
|
|
76
|
-
NoItemSelected as N
|
|
77
|
-
};
|
|
File without changes
|
/package/components/{NoItemSelected → ImageText/components/NoItemSelected}/NoItemSelected.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|