sevago-sso-fe 1.0.60 → 1.0.62

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.
@@ -1,2 +1,2 @@
1
1
  export { TagOnClickElement } from './tag-on-click.element';
2
- export { TagElement } from './tag.element';
2
+ export * from './tag.element';
package/dist/index.cjs.js CHANGED
@@ -7203,257 +7203,6 @@ const IconRight = (props) => /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "20"
7203
7203
  "stroke-linejoin": "round"
7204
7204
  }
7205
7205
  ) });
7206
- const ImageBrand = material.styled(ImageElement)(({ theme }) => ({
7207
- height: HEIGHT_ELEMENT_OTHER,
7208
- border: `1px solid ${theme.palette.divider}`,
7209
- borderRadius: BORDER_RADIUS_ELEMENT,
7210
- "&:hover": { boxShadow: theme.shadows[1] },
7211
- padding: 8,
7212
- backgroundColor: "white",
7213
- cursor: "pointer",
7214
- width: 100,
7215
- objectFit: "contain"
7216
- }));
7217
- const ImageBorderDashboard = material.styled(ImageElement)(({ theme }) => ({
7218
- border: `1px solid ${theme.palette.divider}`,
7219
- borderRadius: BORDER_RADIUS_ELEMENT,
7220
- height: 50,
7221
- width: 70
7222
- }));
7223
- const ImageEmpty = material.styled(material.Box)(({ theme }) => ({
7224
- width: "auto",
7225
- minWidth: 50,
7226
- height: 50,
7227
- borderRadius: BORDER_RADIUS_ELEMENT,
7228
- border: `1px dashed ${theme.palette.divider}`
7229
- }));
7230
- const InputLabelCustom = material.styled(material.InputLabel)(({ theme }) => ({
7231
- display: "flex",
7232
- backgroundColor: theme.palette.background.paper,
7233
- paddingLeft: "8px",
7234
- paddingRight: `9px`,
7235
- transform: `translate(10px, -9px) scale(0.75)`
7236
- }));
7237
- const LinkElement = ({ onClick, sx = {}, target = "_self", ...rest }) => {
7238
- return /* @__PURE__ */ jsxRuntime.jsx(
7239
- material.Link,
7240
- {
7241
- target,
7242
- rel: "noopener",
7243
- sx: { textDecoration: "none", color: "unset", ...sx },
7244
- onClick: (event) => {
7245
- if (onClick) {
7246
- event.preventDefault();
7247
- onClick();
7248
- }
7249
- },
7250
- ...rest
7251
- }
7252
- );
7253
- };
7254
- const LinkWrapProductRow = material.styled(LinkElement)(({ theme }) => ({
7255
- display: "flex",
7256
- flexDirection: "row",
7257
- borderRadius: BORDER_RADIUS_ELEMENT,
7258
- border: `1px solid ${theme.palette.divider}`,
7259
- padding: PADDING_GAP_ITEM,
7260
- gap: PADDING_GAP_ITEM,
7261
- backgroundColor: theme.palette.background.default
7262
- }));
7263
- const lightenColor = (hex2, percent2) => {
7264
- let r2, g, b;
7265
- if (hex2.length === 7) {
7266
- r2 = parseInt(hex2.slice(1, 3), 16);
7267
- g = parseInt(hex2.slice(3, 5), 16);
7268
- b = parseInt(hex2.slice(5, 7), 16);
7269
- } else {
7270
- r2 = parseInt(hex2[1] + hex2[1], 16);
7271
- g = parseInt(hex2[2] + hex2[2], 16);
7272
- b = parseInt(hex2[3] + hex2[3], 16);
7273
- }
7274
- r2 = Math.round(r2 + (255 - r2) * percent2);
7275
- g = Math.round(g + (255 - g) * percent2);
7276
- b = Math.round(b + (255 - b) * percent2);
7277
- return `rgb(${r2}, ${g}, ${b})`;
7278
- };
7279
- const TAG_SIZE = {
7280
- large: {
7281
- padding: "6px 8px",
7282
- ...TYPOGRAPHY_STYLES.textXs.medium
7283
- },
7284
- medium: {
7285
- padding: "4px 6px",
7286
- ...TYPOGRAPHY_STYLES.textXs.medium
7287
- },
7288
- small: {
7289
- padding: 0.5,
7290
- ...TYPOGRAPHY_STYLES.textSmall.medium
7291
- }
7292
- };
7293
- const TagElement = ({
7294
- type,
7295
- content,
7296
- width: width2,
7297
- variation = "caption",
7298
- size = "medium",
7299
- variant = "contained",
7300
- sx,
7301
- color: color2,
7302
- iconProps
7303
- }) => {
7304
- const TAG_VARIANT = {
7305
- contained: {
7306
- backgroundColor: type,
7307
- color: color2 || "white"
7308
- },
7309
- outlined: {
7310
- backgroundColor: lightenColor(type, 0.8),
7311
- color: type
7312
- },
7313
- "outlined-border": {
7314
- backgroundColor: lightenColor(type, 0.8),
7315
- border: `1px solid ${type}`,
7316
- color: type
7317
- }
7318
- };
7319
- return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: iconProps ? /* @__PURE__ */ jsxRuntime.jsxs(
7320
- StackWrap,
7321
- {
7322
- sx: {
7323
- borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
7324
- width: width2,
7325
- textAlign: "center",
7326
- textWrap: "nowrap",
7327
- ...TAG_SIZE[size],
7328
- ...TAG_VARIANT[variant],
7329
- ...sx
7330
- },
7331
- children: [
7332
- iconProps && iconProps,
7333
- /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: variation, children: content })
7334
- ]
7335
- }
7336
- ) : /* @__PURE__ */ jsxRuntime.jsx(
7337
- material.Typography,
7338
- {
7339
- variant: variation,
7340
- sx: {
7341
- borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
7342
- width: width2,
7343
- textAlign: "center",
7344
- textWrap: "nowrap",
7345
- ...getLimitLineCss(1),
7346
- ...TAG_SIZE[size],
7347
- ...TAG_VARIANT[variant],
7348
- ...sx
7349
- },
7350
- children: content
7351
- }
7352
- ) });
7353
- };
7354
- const PaperSelect = material.styled(material.Paper, {
7355
- shouldForwardProp: (prop) => prop !== "disableSelectedStyle" && prop !== "autoWidth" && prop !== "isTreeSelect"
7356
- })(({ theme, disableSelectedStyle, autoWidth, isTreeSelect }) => ({
7357
- backgroundColor: theme.palette.background.paper,
7358
- borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
7359
- padding: PADDING_GAP_ITEM,
7360
- backgroundImage: "none",
7361
- boxShadow: theme.shadows[1],
7362
- ...autoWidth && {
7363
- width: "max-content"
7364
- },
7365
- "& > .MuiAutocomplete-listbox": {
7366
- padding: 0,
7367
- "& > .MuiAutocomplete-option": {
7368
- ...isTreeSelect ? {
7369
- padding: 0,
7370
- borderRadius: 0,
7371
- transition: TRANSITION_TIME,
7372
- backgroundColor: "transparent !important",
7373
- "& .option-content": {
7374
- display: "flex",
7375
- alignItems: "center",
7376
- padding: PADDING_GAP_ITEM,
7377
- borderRadius: BORDER_RADIUS_ELEMENT,
7378
- transition: TRANSITION_TIME,
7379
- backgroundColor: "transparent",
7380
- flex: 1,
7381
- width: "100%",
7382
- "&:hover": {
7383
- backgroundColor: lightenColor(theme.palette.primary.dark, 0.8)
7384
- },
7385
- ...disableSelectedStyle ? {} : {
7386
- "&.selected": {
7387
- backgroundColor: lightenColor(theme.palette.primary.dark, 0.8),
7388
- color: theme.palette.primary.contrastText
7389
- }
7390
- }
7391
- },
7392
- "&:hover": {
7393
- backgroundColor: "transparent !important"
7394
- },
7395
- "&[aria-selected='true']": {
7396
- backgroundColor: "transparent !important",
7397
- color: TREE_COLOR.TREE_LEVEL_1
7398
- }
7399
- } : {
7400
- padding: PADDING_GAP_ITEM,
7401
- borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
7402
- transition: TRANSITION_TIME,
7403
- "&:hover": {
7404
- backgroundColor: theme.palette.action.hover
7405
- },
7406
- ...disableSelectedStyle ? {} : {
7407
- "&[aria-selected='true']": {
7408
- backgroundColor: lightenColor(theme.palette.primary.main, 0.9),
7409
- color: theme.palette.primary.main
7410
- }
7411
- }
7412
- }
7413
- }
7414
- }
7415
- }));
7416
- const getPickerSx = (palette, sx) => ({
7417
- "& fieldset legend": { maxWidth: "100% !important" },
7418
- "& .MuiPickersInputBase-root": {
7419
- borderColor: palette.divider,
7420
- borderRadius: BORDER_RADIUS_ELEMENT,
7421
- height: HEIGHT_DEFAULT_TEXT_FIELD_BUTTON
7422
- },
7423
- "&.MuiPickersTextField-root": { ...sx }
7424
- });
7425
- const getPopperProps = () => ({
7426
- sx: { boxShadow: 1, overflow: "hidden" },
7427
- modifiers: [
7428
- {
7429
- name: "customStyle",
7430
- enabled: true,
7431
- phase: "beforeWrite",
7432
- fn: ({ state }) => {
7433
- Object.assign(state.elements.popper.style, {
7434
- borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
7435
- overflow: "hidden"
7436
- });
7437
- }
7438
- }
7439
- ]
7440
- });
7441
- const getActionBarSx = (palette) => ({
7442
- "& button": { textTransform: "none", width: 100 },
7443
- "& button:nth-of-type(1)": {
7444
- border: `1px solid ${palette.primary.main}`,
7445
- color: palette.primary.main,
7446
- background: "transparent",
7447
- borderRadius: BORDER_RADIUS_ELEMENT,
7448
- "&:hover": { backgroundColor: palette.divider + OPACITY[20] }
7449
- },
7450
- "& button:nth-of-type(2)": {
7451
- background: palette.primary.main,
7452
- color: palette.primary.contrastText,
7453
- borderRadius: BORDER_RADIUS_ELEMENT,
7454
- "&:hover": { backgroundColor: palette.primary.dark }
7455
- }
7456
- });
7457
7206
  const StackRow = material.styled(material.Stack)(() => ({
7458
7207
  flexDirection: "row"
7459
7208
  }));
@@ -7569,16 +7318,6 @@ const BorderLinearProgress = material.styled(material.LinearProgress)(({ theme }
7569
7318
  backgroundColor: theme.palette.primary
7570
7319
  }
7571
7320
  }));
7572
- const TypographyFilter = material.styled(material.Typography)(({ theme }) => ({
7573
- height: HEIGHT_ELEMENT_OTHER,
7574
- border: `1px solid ${theme.palette.divider}`,
7575
- borderRadius: BORDER_RADIUS_ELEMENT,
7576
- "&:hover": { boxShadow: theme.shadows[1], color: theme.palette.primary.main },
7577
- alignContent: "center",
7578
- cursor: "pointer",
7579
- textWrap: "nowrap",
7580
- padding: `0px ${PADDING_GAP_LAYOUT}`
7581
- }));
7582
7321
  var ImageSizeType = /* @__PURE__ */ ((ImageSizeType2) => {
7583
7322
  ImageSizeType2["CIRCLE"] = "CIRCLE";
7584
7323
  ImageSizeType2["SQUARE"] = "SQUARE";
@@ -15204,6 +14943,267 @@ const MotionBox = ({
15204
14943
  } : {};
15205
14944
  return /* @__PURE__ */ jsxRuntime.jsx(motion.div, { ...motionProps, ...getAnimationProps(), ...hoverProps, onClick, style: { ...sx }, children });
15206
14945
  };
14946
+ const ImageBrand = material.styled(ImageElement)(({ theme }) => ({
14947
+ height: HEIGHT_ELEMENT_OTHER,
14948
+ border: `1px solid ${theme.palette.divider}`,
14949
+ borderRadius: BORDER_RADIUS_ELEMENT,
14950
+ "&:hover": { boxShadow: theme.shadows[1] },
14951
+ padding: 8,
14952
+ backgroundColor: "white",
14953
+ cursor: "pointer",
14954
+ width: 100,
14955
+ objectFit: "contain"
14956
+ }));
14957
+ const ImageBorderDashboard = material.styled(ImageElement)(({ theme }) => ({
14958
+ border: `1px solid ${theme.palette.divider}`,
14959
+ borderRadius: BORDER_RADIUS_ELEMENT,
14960
+ height: 50,
14961
+ width: 70
14962
+ }));
14963
+ const ImageEmpty = material.styled(material.Box)(({ theme }) => ({
14964
+ width: "auto",
14965
+ minWidth: 50,
14966
+ height: 50,
14967
+ borderRadius: BORDER_RADIUS_ELEMENT,
14968
+ border: `1px dashed ${theme.palette.divider}`
14969
+ }));
14970
+ const InputLabelCustom = material.styled(material.InputLabel)(({ theme }) => ({
14971
+ display: "flex",
14972
+ backgroundColor: theme.palette.background.paper,
14973
+ paddingLeft: "8px",
14974
+ paddingRight: `9px`,
14975
+ transform: `translate(10px, -9px) scale(0.75)`
14976
+ }));
14977
+ const LinkElement = ({ onClick, sx = {}, target = "_self", ...rest }) => {
14978
+ return /* @__PURE__ */ jsxRuntime.jsx(
14979
+ material.Link,
14980
+ {
14981
+ target,
14982
+ rel: "noopener",
14983
+ sx: { textDecoration: "none", color: "unset", ...sx },
14984
+ onClick: (event) => {
14985
+ if (onClick) {
14986
+ event.preventDefault();
14987
+ onClick();
14988
+ }
14989
+ },
14990
+ ...rest
14991
+ }
14992
+ );
14993
+ };
14994
+ const LinkWrapProductRow = material.styled(LinkElement)(({ theme }) => ({
14995
+ display: "flex",
14996
+ flexDirection: "row",
14997
+ borderRadius: BORDER_RADIUS_ELEMENT,
14998
+ border: `1px solid ${theme.palette.divider}`,
14999
+ padding: PADDING_GAP_ITEM,
15000
+ gap: PADDING_GAP_ITEM,
15001
+ backgroundColor: theme.palette.background.default
15002
+ }));
15003
+ const lightenColor = (hex2, percent2) => {
15004
+ let r2, g, b;
15005
+ if (hex2.length === 7) {
15006
+ r2 = parseInt(hex2.slice(1, 3), 16);
15007
+ g = parseInt(hex2.slice(3, 5), 16);
15008
+ b = parseInt(hex2.slice(5, 7), 16);
15009
+ } else {
15010
+ r2 = parseInt(hex2[1] + hex2[1], 16);
15011
+ g = parseInt(hex2[2] + hex2[2], 16);
15012
+ b = parseInt(hex2[3] + hex2[3], 16);
15013
+ }
15014
+ r2 = Math.round(r2 + (255 - r2) * percent2);
15015
+ g = Math.round(g + (255 - g) * percent2);
15016
+ b = Math.round(b + (255 - b) * percent2);
15017
+ return `rgb(${r2}, ${g}, ${b})`;
15018
+ };
15019
+ const TAG_SIZE = {
15020
+ large: {
15021
+ padding: "6px 8px",
15022
+ ...TYPOGRAPHY_STYLES.textXs.medium
15023
+ },
15024
+ medium: {
15025
+ padding: "4px 6px",
15026
+ ...TYPOGRAPHY_STYLES.textXs.medium
15027
+ },
15028
+ small: {
15029
+ padding: 0.5,
15030
+ ...TYPOGRAPHY_STYLES.textSmall.medium
15031
+ }
15032
+ };
15033
+ const TagElement = ({
15034
+ type,
15035
+ content,
15036
+ width: width2,
15037
+ variation = "caption",
15038
+ size = "medium",
15039
+ variant = "contained",
15040
+ sx,
15041
+ color: color2,
15042
+ iconProps
15043
+ }) => {
15044
+ const TAG_VARIANT = {
15045
+ contained: {
15046
+ backgroundColor: type,
15047
+ color: color2 || "white"
15048
+ },
15049
+ outlined: {
15050
+ backgroundColor: lightenColor(type, 0.8),
15051
+ color: type
15052
+ },
15053
+ "outlined-border": {
15054
+ backgroundColor: lightenColor(type, 0.8),
15055
+ border: `1px solid ${type}`,
15056
+ color: type
15057
+ }
15058
+ };
15059
+ return /* @__PURE__ */ jsxRuntime.jsx(jsxRuntime.Fragment, { children: iconProps ? /* @__PURE__ */ jsxRuntime.jsxs(
15060
+ StackWrap,
15061
+ {
15062
+ sx: {
15063
+ borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
15064
+ width: width2,
15065
+ textAlign: "center",
15066
+ textWrap: "nowrap",
15067
+ ...TAG_SIZE[size],
15068
+ ...TAG_VARIANT[variant],
15069
+ ...sx
15070
+ },
15071
+ children: [
15072
+ iconProps && iconProps,
15073
+ /* @__PURE__ */ jsxRuntime.jsx(material.Typography, { variant: variation, children: content })
15074
+ ]
15075
+ }
15076
+ ) : /* @__PURE__ */ jsxRuntime.jsx(
15077
+ material.Typography,
15078
+ {
15079
+ variant: variation,
15080
+ sx: {
15081
+ borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
15082
+ width: width2,
15083
+ textAlign: "center",
15084
+ textWrap: "nowrap",
15085
+ ...getLimitLineCss(1),
15086
+ ...TAG_SIZE[size],
15087
+ ...TAG_VARIANT[variant],
15088
+ ...sx
15089
+ },
15090
+ children: content
15091
+ }
15092
+ ) });
15093
+ };
15094
+ const PaperSelect = material.styled(material.Paper, {
15095
+ shouldForwardProp: (prop) => prop !== "disableSelectedStyle" && prop !== "autoWidth" && prop !== "isTreeSelect"
15096
+ })(({ theme, disableSelectedStyle, autoWidth, isTreeSelect }) => ({
15097
+ backgroundColor: theme.palette.background.paper,
15098
+ borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
15099
+ padding: PADDING_GAP_ITEM,
15100
+ backgroundImage: "none",
15101
+ boxShadow: theme.shadows[1],
15102
+ ...autoWidth && {
15103
+ width: "max-content"
15104
+ },
15105
+ "& > .MuiAutocomplete-listbox": {
15106
+ padding: 0,
15107
+ "& > .MuiAutocomplete-option": {
15108
+ ...isTreeSelect ? {
15109
+ padding: 0,
15110
+ borderRadius: 0,
15111
+ transition: TRANSITION_TIME,
15112
+ backgroundColor: "transparent !important",
15113
+ "& .option-content": {
15114
+ display: "flex",
15115
+ alignItems: "center",
15116
+ padding: PADDING_GAP_ITEM,
15117
+ borderRadius: BORDER_RADIUS_ELEMENT,
15118
+ transition: TRANSITION_TIME,
15119
+ backgroundColor: "transparent",
15120
+ flex: 1,
15121
+ width: "100%",
15122
+ "&:hover": {
15123
+ backgroundColor: lightenColor(theme.palette.primary.dark, 0.8)
15124
+ },
15125
+ ...disableSelectedStyle ? {} : {
15126
+ "&.selected": {
15127
+ backgroundColor: lightenColor(theme.palette.primary.dark, 0.8),
15128
+ color: theme.palette.primary.contrastText
15129
+ }
15130
+ }
15131
+ },
15132
+ "&:hover": {
15133
+ backgroundColor: "transparent !important"
15134
+ },
15135
+ "&[aria-selected='true']": {
15136
+ backgroundColor: "transparent !important",
15137
+ color: TREE_COLOR.TREE_LEVEL_1
15138
+ }
15139
+ } : {
15140
+ padding: PADDING_GAP_ITEM,
15141
+ borderRadius: BORDER_RADIUS_ELEMENT_SMALL,
15142
+ transition: TRANSITION_TIME,
15143
+ "&:hover": {
15144
+ backgroundColor: theme.palette.action.hover
15145
+ },
15146
+ ...disableSelectedStyle ? {} : {
15147
+ "&[aria-selected='true']": {
15148
+ backgroundColor: lightenColor(theme.palette.primary.main, 0.9),
15149
+ color: theme.palette.primary.main
15150
+ }
15151
+ }
15152
+ }
15153
+ }
15154
+ }
15155
+ }));
15156
+ const getPickerSx = (palette, sx) => ({
15157
+ "& fieldset legend": { maxWidth: "100% !important" },
15158
+ "& .MuiPickersInputBase-root": {
15159
+ borderColor: palette.divider,
15160
+ borderRadius: BORDER_RADIUS_ELEMENT,
15161
+ height: HEIGHT_DEFAULT_TEXT_FIELD_BUTTON
15162
+ },
15163
+ "&.MuiPickersTextField-root": { ...sx }
15164
+ });
15165
+ const getPopperProps = () => ({
15166
+ sx: { boxShadow: 1, overflow: "hidden" },
15167
+ modifiers: [
15168
+ {
15169
+ name: "customStyle",
15170
+ enabled: true,
15171
+ phase: "beforeWrite",
15172
+ fn: ({ state }) => {
15173
+ Object.assign(state.elements.popper.style, {
15174
+ borderRadius: BORDER_RADIUS_ELEMENT_WRAPPER,
15175
+ overflow: "hidden"
15176
+ });
15177
+ }
15178
+ }
15179
+ ]
15180
+ });
15181
+ const getActionBarSx = (palette) => ({
15182
+ "& button": { textTransform: "none", width: 100 },
15183
+ "& button:nth-of-type(1)": {
15184
+ border: `1px solid ${palette.primary.main}`,
15185
+ color: palette.primary.main,
15186
+ background: "transparent",
15187
+ borderRadius: BORDER_RADIUS_ELEMENT,
15188
+ "&:hover": { backgroundColor: palette.divider + OPACITY[20] }
15189
+ },
15190
+ "& button:nth-of-type(2)": {
15191
+ background: palette.primary.main,
15192
+ color: palette.primary.contrastText,
15193
+ borderRadius: BORDER_RADIUS_ELEMENT,
15194
+ "&:hover": { backgroundColor: palette.primary.dark }
15195
+ }
15196
+ });
15197
+ const TypographyFilter = material.styled(material.Typography)(({ theme }) => ({
15198
+ height: HEIGHT_ELEMENT_OTHER,
15199
+ border: `1px solid ${theme.palette.divider}`,
15200
+ borderRadius: BORDER_RADIUS_ELEMENT,
15201
+ "&:hover": { boxShadow: theme.shadows[1], color: theme.palette.primary.main },
15202
+ alignContent: "center",
15203
+ cursor: "pointer",
15204
+ textWrap: "nowrap",
15205
+ padding: `0px ${PADDING_GAP_LAYOUT}`
15206
+ }));
15207
15207
  const AppGrid = ({
15208
15208
  apps,
15209
15209
  columns = 5,
@@ -50014,6 +50014,7 @@ exports.isDateString = isDateString;
50014
50014
  exports.isEmpty = isEmpty$2;
50015
50015
  exports.isSameDateTime = isSameDateTime;
50016
50016
  exports.light = light$1;
50017
+ exports.lightenColor = lightenColor;
50017
50018
  exports.lightenColorTree = lightenColorTree;
50018
50019
  exports.normalizeText = normalizeText;
50019
50020
  exports.phoneRegExp = phoneRegExp;