@astral/features 3.345.1 → 3.345.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/AutoSaveIndicatorService/index.d.ts +1 -1
- package/AutoSaveIndicatorService/index.js +1 -1
- package/cryproPro/components/CryptoProCertAutocomplete/AutocompleteListItem/styles.d.ts +31 -31
- package/cryproPro/components/CryptoProCertAutocomplete/AutocompleteListItem/utils/getShortFullName/getShortFullName.js +4 -4
- package/cryproPro/components/CryptoProCertAutocomplete/CryptoProCertAutocomplete.d.ts +1 -1
- package/cryproPro/components/CryptoProCertAutocomplete/utils/transformCertificates/transformCertificates.js +3 -3
- package/cryproPro/components/CryptoProCertFormAutocomplete/CryptoProCertFormAutocomplete.d.ts +2 -2
- package/cryproPro/components/CryptoProProvider/CryptoProProvider.js +1 -1
- package/cryproPro/components/SetupCryptoProWorkspaceModal/CryptoproviderInfo/CryptoproviderInfo.js +1 -2
- package/cryproPro/components/SetupCryptoProWorkspaceModal/PluginInfo/PluginInfo.js +1 -2
- package/cryproPro/components/SetupCryptoProWorkspaceModal/SetupCryptoProWorkspaceModal.js +1 -2
- package/cryproPro/components/index.d.ts +2 -2
- package/cryproPro/components/index.js +2 -2
- package/cryproPro/constants/index.d.ts +1 -1
- package/cryproPro/constants/index.js +1 -1
- package/cryproPro/index.d.ts +1 -1
- package/cryproPro/index.js +1 -1
- package/cryproPro/services/CryptoProCertificateService/CryptoProCertificateService.js +1 -1
- package/cryproPro/services/CryptoProCertificateService/utils/index.d.ts +1 -1
- package/cryproPro/services/CryptoProCertificateService/utils/index.js +1 -1
- package/cryproPro/services/WorkspaceSetupService/WorkspaceSetupService.js +1 -1
- package/index.d.ts +2 -2
- package/index.js +2 -2
- package/node/AutoSaveIndicatorService/index.d.ts +1 -1
- package/node/AutoSaveIndicatorService/index.js +1 -1
- package/node/cryproPro/components/CryptoProCertAutocomplete/AutocompleteListItem/styles.d.ts +31 -31
- package/node/cryproPro/components/CryptoProCertAutocomplete/AutocompleteListItem/utils/getShortFullName/getShortFullName.js +4 -4
- package/node/cryproPro/components/CryptoProCertAutocomplete/CryptoProCertAutocomplete.d.ts +1 -1
- package/node/cryproPro/components/CryptoProCertAutocomplete/utils/transformCertificates/transformCertificates.js +3 -3
- package/node/cryproPro/components/CryptoProCertFormAutocomplete/CryptoProCertFormAutocomplete.d.ts +2 -2
- package/node/cryproPro/components/CryptoProProvider/CryptoProProvider.js +1 -1
- package/node/cryproPro/components/SetupCryptoProWorkspaceModal/CryptoproviderInfo/CryptoproviderInfo.js +2 -3
- package/node/cryproPro/components/SetupCryptoProWorkspaceModal/PluginInfo/PluginInfo.js +1 -2
- package/node/cryproPro/components/SetupCryptoProWorkspaceModal/SetupCryptoProWorkspaceModal.js +1 -2
- package/node/cryproPro/components/index.d.ts +2 -2
- package/node/cryproPro/components/index.js +2 -2
- package/node/cryproPro/constants/index.d.ts +1 -1
- package/node/cryproPro/constants/index.js +1 -1
- package/node/cryproPro/index.d.ts +1 -1
- package/node/cryproPro/index.js +3 -3
- package/node/cryproPro/services/CryptoProCertificateService/utils/index.d.ts +1 -1
- package/node/cryproPro/services/CryptoProCertificateService/utils/index.js +1 -1
- package/node/cryproPro/services/WorkspaceSetupService/WorkspaceSetupService.js +1 -1
- package/node/index.d.ts +2 -2
- package/node/index.js +5 -5
- package/node/productSwitcher/components/AstralProductSwitcher/utils/getFilteredProducts/getFilteredProducts.js +1 -1
- package/node/productSwitcher/components/IdentityProductSwitcher/IdentityProductSwitcher.js +1 -1
- package/node/productSwitcher/components/IdentityProductSwitcher/hooks/useLogic/useLogic.d.ts +1 -1
- package/node/productSwitcher/components/IdentityProductSwitcher/hooks/useLogic/useLogic.js +2 -2
- package/node/productSwitcher/components/IdentityProductSwitcher/utils/index.d.ts +1 -1
- package/node/productSwitcher/components/IdentityProductSwitcher/utils/index.js +1 -1
- package/node/productSwitcher/utils/formatIdentityProducts/formatIdentityProducts.js +2 -2
- package/node/productSwitcher/utils/index.d.ts +1 -1
- package/node/productSwitcher/utils/index.js +1 -1
- package/package.json +2 -2
- package/productSwitcher/components/AstralProductSwitcher/utils/getFilteredProducts/getFilteredProducts.js +1 -1
- package/productSwitcher/components/IdentityProductSwitcher/IdentityProductSwitcher.js +1 -1
- package/productSwitcher/components/IdentityProductSwitcher/hooks/useLogic/useLogic.d.ts +1 -1
- package/productSwitcher/components/IdentityProductSwitcher/hooks/useLogic/useLogic.js +2 -2
- package/productSwitcher/components/IdentityProductSwitcher/styles.js +1 -1
- package/productSwitcher/components/IdentityProductSwitcher/utils/index.d.ts +1 -1
- package/productSwitcher/components/IdentityProductSwitcher/utils/index.js +1 -1
- package/productSwitcher/utils/formatIdentityProducts/formatIdentityProducts.js +2 -2
- package/productSwitcher/utils/index.d.ts +1 -1
- package/productSwitcher/utils/index.js +1 -1
|
@@ -13,22 +13,24 @@ export declare const SideLabel: import("@emotion/styled").StyledComponent<{
|
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
14
|
export declare const LabelTitle: import("@emotion/styled").StyledComponent<import("@astral/ui").OverflowedProps & {
|
|
15
15
|
tooltipProps?: (Omit<{
|
|
16
|
+
slot?: string | undefined;
|
|
17
|
+
style?: import("react").CSSProperties | undefined;
|
|
18
|
+
title: import("react").ReactNode;
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
content?: string | undefined;
|
|
21
|
+
translate?: "yes" | "no" | undefined;
|
|
16
22
|
components?: {
|
|
17
23
|
Popper?: import("react").ElementType<import("@mui/material").PopperProps> | undefined;
|
|
18
24
|
Transition?: import("react").ElementType<any> | undefined;
|
|
19
25
|
Tooltip?: import("react").ElementType<any> | undefined;
|
|
20
26
|
Arrow?: import("react").ElementType<any> | undefined;
|
|
21
27
|
} | undefined;
|
|
22
|
-
|
|
23
|
-
content?: string | undefined;
|
|
24
|
-
translate?: "yes" | "no" | undefined;
|
|
25
|
-
slot?: string | undefined;
|
|
26
|
-
style?: import("react").CSSProperties | undefined;
|
|
27
|
-
title: import("react").ReactNode;
|
|
28
|
+
size?: "small" | "medium" | undefined;
|
|
28
29
|
classes?: Partial<import("@mui/material").TooltipClasses> | undefined;
|
|
30
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
31
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
29
32
|
children: import("react").ReactElement<any, any>;
|
|
30
33
|
defaultChecked?: boolean | undefined;
|
|
31
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
32
34
|
suppressContentEditableWarning?: boolean | undefined;
|
|
33
35
|
suppressHydrationWarning?: boolean | undefined;
|
|
34
36
|
accessKey?: string | undefined;
|
|
@@ -68,18 +70,18 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
68
70
|
results?: number | undefined;
|
|
69
71
|
security?: string | undefined;
|
|
70
72
|
unselectable?: "on" | "off" | undefined;
|
|
71
|
-
inputMode?: "
|
|
73
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
72
74
|
is?: string | undefined;
|
|
73
75
|
'aria-activedescendant'?: string | undefined;
|
|
74
76
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
75
|
-
'aria-autocomplete'?: "
|
|
77
|
+
'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
|
|
76
78
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
77
79
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
78
80
|
'aria-colcount'?: number | undefined;
|
|
79
81
|
'aria-colindex'?: number | undefined;
|
|
80
82
|
'aria-colspan'?: number | undefined;
|
|
81
83
|
'aria-controls'?: string | undefined;
|
|
82
|
-
'aria-current'?: boolean | "
|
|
84
|
+
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
83
85
|
'aria-describedby'?: string | undefined;
|
|
84
86
|
'aria-details'?: string | undefined;
|
|
85
87
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -88,7 +90,7 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
88
90
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
89
91
|
'aria-flowto'?: string | undefined;
|
|
90
92
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
91
|
-
'aria-haspopup'?: boolean | "
|
|
93
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "true" | "false" | "tree" | undefined;
|
|
92
94
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
93
95
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
94
96
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -137,7 +139,6 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
137
139
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
138
140
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
139
141
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
140
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
141
142
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
142
143
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
143
144
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -283,15 +284,8 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
283
284
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
284
285
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
285
286
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
286
|
-
size?: "medium" | "small" | undefined;
|
|
287
287
|
open?: boolean | undefined;
|
|
288
288
|
onClose?: ((event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
289
|
-
componentsProps?: {
|
|
290
|
-
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
291
|
-
transition?: (import("@mui/material/transitions").TransitionProps & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
292
|
-
tooltip?: (import("react").HTMLProps<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
293
|
-
arrow?: (import("react").HTMLProps<HTMLSpanElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
294
|
-
} | undefined;
|
|
295
289
|
slotProps?: {
|
|
296
290
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
297
291
|
transition?: (import("@mui/material/transitions").TransitionProps & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -304,6 +298,12 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
304
298
|
tooltip?: import("react").ElementType<any> | undefined;
|
|
305
299
|
arrow?: import("react").ElementType<any> | undefined;
|
|
306
300
|
} | undefined;
|
|
301
|
+
componentsProps?: {
|
|
302
|
+
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
303
|
+
transition?: (import("@mui/material/transitions").TransitionProps & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
304
|
+
tooltip?: (import("react").HTMLProps<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
305
|
+
arrow?: (import("react").HTMLProps<HTMLSpanElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
306
|
+
} | undefined;
|
|
307
307
|
TransitionComponent?: import("react").JSXElementConstructor<import("@mui/material/transitions").TransitionProps & {
|
|
308
308
|
children: import("react").ReactElement<any, any>;
|
|
309
309
|
}> | undefined;
|
|
@@ -331,15 +331,15 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
331
331
|
visibleLastSymbolsCount?: number | undefined;
|
|
332
332
|
} & {
|
|
333
333
|
children?: import("react").ReactNode;
|
|
334
|
-
align?: "
|
|
334
|
+
align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
|
|
335
335
|
gutterBottom?: boolean | undefined;
|
|
336
336
|
noWrap?: boolean | undefined;
|
|
337
337
|
paragraph?: boolean | undefined;
|
|
338
338
|
} & {
|
|
339
|
-
color?: "
|
|
339
|
+
color?: "green" | "grey" | "red" | "yellow" | "info" | "primary" | "secondary" | "error" | "warning" | "success" | "text" | "textSecondary" | undefined;
|
|
340
340
|
variant?: import("@astral/ui").TypographyLegacyVariant | import("@astral/ui").TypographyVariant | undefined;
|
|
341
341
|
colorIntensity?: import("@astral/ui").Intensity | undefined;
|
|
342
|
-
component?: ("symbol" | "object" | "
|
|
342
|
+
component?: ("symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "clipPath" | "filter" | "mask" | "marker" | "text" | "center" | import("react").ComponentType<any> | "big" | "keygen" | "menuitem" | "noindex" | "param" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view") | undefined;
|
|
343
343
|
isUpperCase?: boolean | undefined;
|
|
344
344
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
345
345
|
children?: import("react").ReactNode;
|
|
@@ -347,16 +347,17 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
347
347
|
theme?: import("@emotion/react").Theme | undefined;
|
|
348
348
|
}, {}, {}>;
|
|
349
349
|
export declare const StyledListItemIcon: import("@emotion/styled").StyledComponent<Omit<{
|
|
350
|
-
color?: string | undefined;
|
|
351
|
-
content?: string | undefined;
|
|
352
|
-
translate?: "yes" | "no" | undefined;
|
|
353
350
|
slot?: string | undefined;
|
|
354
351
|
style?: import("react").CSSProperties | undefined;
|
|
355
352
|
title?: string | undefined;
|
|
353
|
+
color?: string | undefined;
|
|
354
|
+
content?: string | undefined;
|
|
355
|
+
translate?: "yes" | "no" | undefined;
|
|
356
356
|
classes?: Partial<import("@mui/material").ListItemIconClasses> | undefined;
|
|
357
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
358
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
357
359
|
children?: import("react").ReactNode;
|
|
358
360
|
defaultChecked?: boolean | undefined;
|
|
359
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
360
361
|
suppressContentEditableWarning?: boolean | undefined;
|
|
361
362
|
suppressHydrationWarning?: boolean | undefined;
|
|
362
363
|
accessKey?: string | undefined;
|
|
@@ -396,18 +397,18 @@ export declare const StyledListItemIcon: import("@emotion/styled").StyledCompone
|
|
|
396
397
|
results?: number | undefined;
|
|
397
398
|
security?: string | undefined;
|
|
398
399
|
unselectable?: "on" | "off" | undefined;
|
|
399
|
-
inputMode?: "
|
|
400
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
400
401
|
is?: string | undefined;
|
|
401
402
|
'aria-activedescendant'?: string | undefined;
|
|
402
403
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
403
|
-
'aria-autocomplete'?: "
|
|
404
|
+
'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
|
|
404
405
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
405
406
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
406
407
|
'aria-colcount'?: number | undefined;
|
|
407
408
|
'aria-colindex'?: number | undefined;
|
|
408
409
|
'aria-colspan'?: number | undefined;
|
|
409
410
|
'aria-controls'?: string | undefined;
|
|
410
|
-
'aria-current'?: boolean | "
|
|
411
|
+
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
411
412
|
'aria-describedby'?: string | undefined;
|
|
412
413
|
'aria-details'?: string | undefined;
|
|
413
414
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -416,7 +417,7 @@ export declare const StyledListItemIcon: import("@emotion/styled").StyledCompone
|
|
|
416
417
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
417
418
|
'aria-flowto'?: string | undefined;
|
|
418
419
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
419
|
-
'aria-haspopup'?: boolean | "
|
|
420
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "true" | "false" | "tree" | undefined;
|
|
420
421
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
421
422
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
422
423
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -465,7 +466,6 @@ export declare const StyledListItemIcon: import("@emotion/styled").StyledCompone
|
|
|
465
466
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
466
467
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
467
468
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
468
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
469
469
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
470
470
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
471
471
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export const getShortFullName = (fullname) => {
|
|
2
|
-
var _a, _b;
|
|
2
|
+
var _a, _b, _c, _d;
|
|
3
3
|
const arr = (fullname === null || fullname === void 0 ? void 0 : fullname.split(' ')) || [];
|
|
4
|
-
const innerName = ((_a = arr[1]) === null || _a === void 0 ? void 0 : _a.split('').at(0)) || '';
|
|
5
|
-
const innerMiddlename = ((
|
|
4
|
+
const innerName = ((_b = (_a = arr[1]) === null || _a === void 0 ? void 0 : _a.split('').at(0)) === null || _b === void 0 ? void 0 : _b.concat('.')) || '';
|
|
5
|
+
const innerMiddlename = ((_d = (_c = arr[2]) === null || _c === void 0 ? void 0 : _c.split('').at(0)) === null || _d === void 0 ? void 0 : _d.concat('.')) || '';
|
|
6
6
|
const innerLastname = arr.at(0) || '';
|
|
7
|
-
return `${innerLastname
|
|
7
|
+
return `${innerLastname} ${innerName}${innerMiddlename}`;
|
|
8
8
|
};
|
|
@@ -6,4 +6,4 @@ import { type AutocompleteProps } from '@astral/ui';
|
|
|
6
6
|
* @deprecated Используйте пакет @astral-private/crypto https://cryptodocs.astralnalog.ru/
|
|
7
7
|
* Причина отказа от поддержки: поддержка функционала теперь осуществляется централизовано командой Астрал-Софт в закрытом контуре.
|
|
8
8
|
*/
|
|
9
|
-
export declare const CryptoProCertAutocomplete: <
|
|
9
|
+
export declare const CryptoProCertAutocomplete: <TMultiple extends boolean, TDisableClearable extends boolean, TFreeSolo extends boolean>({ getOptionLabel, ...props }: AutocompleteProps<Certificate, TMultiple, TDisableClearable, TFreeSolo>) => JSX.Element;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getCertificateExpiresDate } from '../../../../services';
|
|
2
1
|
import { CertificateType } from '../../../../constants';
|
|
2
|
+
import { getCertificateExpiresDate } from '../../../../services';
|
|
3
3
|
export const transformCertificate = (certificate) => {
|
|
4
|
-
const
|
|
4
|
+
const certificateTypeIfNotLegal = certificate.subject.ogrnip
|
|
5
5
|
? CertificateType.SoleTrader
|
|
6
6
|
: CertificateType.Individual;
|
|
7
7
|
const isCertificateTypeLegal = certificate.subject.innLe;
|
|
@@ -13,6 +13,6 @@ export const transformCertificate = (certificate) => {
|
|
|
13
13
|
inn: certificate.subject.innLe || certificate.subject.inn,
|
|
14
14
|
type: isCertificateTypeLegal
|
|
15
15
|
? CertificateType.LegalEntity
|
|
16
|
-
:
|
|
16
|
+
: certificateTypeIfNotLegal,
|
|
17
17
|
};
|
|
18
18
|
};
|
package/cryproPro/components/CryptoProCertFormAutocomplete/CryptoProCertFormAutocomplete.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type Certificate } from '@astral/cryptopro-cades';
|
|
3
3
|
import { type AutocompleteProps, type WithFormFieldProps } from '@astral/ui';
|
|
4
|
-
export type CryptoProCertFormAutocompleteProps<
|
|
4
|
+
export type CryptoProCertFormAutocompleteProps<TMultiple extends boolean = false, TDisableClearable extends boolean = false, TFreeSolo extends boolean = false> = WithFormFieldProps<AutocompleteProps<Certificate, TMultiple, TDisableClearable, TFreeSolo>, any>;
|
|
5
5
|
/**
|
|
6
6
|
* Autocomplete с сертификатами для формы
|
|
7
7
|
* @deprecated Используйте пакет @astral-private/crypto https://cryptodocs.astralnalog.ru/
|
|
8
8
|
* Причина отказа от поддержки: поддержка функционала теперь осуществляется централизовано командой Астрал-Софт в закрытом контуре.
|
|
9
9
|
*/
|
|
10
|
-
export declare const CryptoProCertFormAutocomplete: <
|
|
10
|
+
export declare const CryptoProCertFormAutocomplete: <TMultiple extends boolean = false, TDisableClearable extends boolean = false>(props: CryptoProCertFormAutocompleteProps<TMultiple, TDisableClearable, false>) => JSX.Element;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { observer } from 'mobx-react-lite';
|
|
3
2
|
import { Global } from '@astral/ui';
|
|
3
|
+
import { observer } from 'mobx-react-lite';
|
|
4
4
|
import { SetupCryptoProWorkspaceModal } from '../SetupCryptoProWorkspaceModal';
|
|
5
5
|
/**
|
|
6
6
|
* Провайдер, который в случае отсутствия или неактивности
|
package/cryproPro/components/SetupCryptoProWorkspaceModal/CryptoproviderInfo/CryptoproviderInfo.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Description, Tooltip } from '@astral/ui';
|
|
3
|
-
import { InfoFillSm, OpenLinkOutlineMd } from '@astral/ui';
|
|
2
|
+
import { Button, Description, InfoFillSm, OpenLinkOutlineMd, Tooltip, } from '@astral/ui';
|
|
4
3
|
import { WorkspaceInfoItem } from '../styles';
|
|
5
4
|
import { IconWrapper } from './styles';
|
|
6
5
|
export const CryptoproviderInfo = ({ workspaceSetupInfo }) => {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Description, Typography } from '@astral/ui';
|
|
3
|
-
import { DownloadOutlineMd } from '@astral/ui';
|
|
2
|
+
import { Button, Description, DownloadOutlineMd, Typography } from '@astral/ui';
|
|
4
3
|
import { WorkspaceInfoItem } from '../styles';
|
|
5
4
|
export const PluginInfo = ({ workspaceSetupInfo }) => {
|
|
6
5
|
return (_jsxs(WorkspaceInfoItem, { children: [_jsxs(Description, { children: [_jsx(Description.Name, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), _jsx(Description.Value, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in" })] }), workspaceSetupInfo.isPluginInstalled ? (_jsx(Typography, { color: "green", colorIntensity: "900", children: "\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E" })) : (_jsx(Button, { variant: "text", endIcon: _jsx(DownloadOutlineMd, {}), href: "https://www.cryptopro.ru/products/cades/plugin/get_2_0",
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { Button, Dialog, DialogActions, DialogContent, Typography, } from '@astral/ui';
|
|
3
|
-
import { RefreshOutlineMd } from '@astral/ui';
|
|
2
|
+
import { Button, Dialog, DialogActions, DialogContent, RefreshOutlineMd, Typography, } from '@astral/ui';
|
|
4
3
|
import { CryptoproviderInfo } from './CryptoproviderInfo';
|
|
5
4
|
import { PluginInfo } from './PluginInfo';
|
|
6
5
|
import { WorkspaceInfoWrapper } from './styles';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './SetupCryptoProWorkspaceModal';
|
|
2
|
-
export * from './CryptoProCertFormAutocomplete';
|
|
3
1
|
export * from './CryptoProCertAutocomplete';
|
|
2
|
+
export * from './CryptoProCertFormAutocomplete';
|
|
4
3
|
export * from './CryptoProProvider';
|
|
4
|
+
export * from './SetupCryptoProWorkspaceModal';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './SetupCryptoProWorkspaceModal';
|
|
2
|
-
export * from './CryptoProCertFormAutocomplete';
|
|
3
1
|
export * from './CryptoProCertAutocomplete';
|
|
2
|
+
export * from './CryptoProCertFormAutocomplete';
|
|
4
3
|
export * from './CryptoProProvider';
|
|
4
|
+
export * from './SetupCryptoProWorkspaceModal';
|
package/cryproPro/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CryptoProCertAutocomplete, CryptoProCertFormAutocomplete, CryptoProProvider, SetupCryptoProWorkspaceModal, } from './components';
|
|
2
2
|
export { CryptoProStore } from './stores';
|
|
3
3
|
export { Certificate } from './types';
|
package/cryproPro/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CryptoProCertAutocomplete, CryptoProCertFormAutocomplete, CryptoProProvider, SetupCryptoProWorkspaceModal, } from './components';
|
|
2
2
|
export { CryptoProStore } from './stores';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { findCertificateBySkid, getCertificates, STORE_TYPE, } from '@astral/cryptopro-cades';
|
|
2
2
|
import { getCertificateExpiresDate, getCertificateOwnerShortName, getCertificateType, } from './utils';
|
|
3
3
|
/**
|
|
4
4
|
* Сервис для сертификатов КриптоПро
|
|
@@ -7,8 +7,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { notify } from '@astral/ui';
|
|
11
10
|
import { getSystemInfo, } from '@astral/cryptopro-cades';
|
|
11
|
+
import { notify } from '@astral/ui';
|
|
12
12
|
import { CRYPTO_PROVIDER_NOT_FOUND_CODE, PLUGIN_NOT_INITIALIZED_CODE, PLUGIN_NOT_INSTALLED_CODE, } from '../../constants';
|
|
13
13
|
/**
|
|
14
14
|
* Сервис для настройки рабочего места
|
package/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './cryproPro';
|
|
2
|
-
export { IdentityProductSwitcher, AstralProductSwitcher, } from './productSwitcher';
|
|
3
1
|
export { AutoSaveIndicatorStore, useInitAutoSaveIndicatorStore, } from './AutoSaveIndicatorService';
|
|
2
|
+
export * from './cryproPro';
|
|
3
|
+
export { AstralProductSwitcher, IdentityProductSwitcher, } from './productSwitcher';
|
package/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './cryproPro';
|
|
2
|
-
export { IdentityProductSwitcher, AstralProductSwitcher, } from './productSwitcher';
|
|
3
1
|
export { AutoSaveIndicatorStore, useInitAutoSaveIndicatorStore, } from './AutoSaveIndicatorService';
|
|
2
|
+
export * from './cryproPro';
|
|
3
|
+
export { AstralProductSwitcher, IdentityProductSwitcher, } from './productSwitcher';
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./stores/AutoSaveIndicatorStore"), exports);
|
|
18
17
|
__exportStar(require("./hooks/useInitAutoSaveIndicatorStore"), exports);
|
|
18
|
+
__exportStar(require("./stores/AutoSaveIndicatorStore"), exports);
|
package/node/cryproPro/components/CryptoProCertAutocomplete/AutocompleteListItem/styles.d.ts
CHANGED
|
@@ -13,22 +13,24 @@ export declare const SideLabel: import("@emotion/styled").StyledComponent<{
|
|
|
13
13
|
}, import("react").DetailedHTMLProps<import("react").HTMLAttributes<HTMLDivElement>, HTMLDivElement>, {}>;
|
|
14
14
|
export declare const LabelTitle: import("@emotion/styled").StyledComponent<import("@astral/ui").OverflowedProps & {
|
|
15
15
|
tooltipProps?: (Omit<{
|
|
16
|
+
slot?: string | undefined;
|
|
17
|
+
style?: import("react").CSSProperties | undefined;
|
|
18
|
+
title: import("react").ReactNode;
|
|
19
|
+
color?: string | undefined;
|
|
20
|
+
content?: string | undefined;
|
|
21
|
+
translate?: "yes" | "no" | undefined;
|
|
16
22
|
components?: {
|
|
17
23
|
Popper?: import("react").ElementType<import("@mui/material").PopperProps> | undefined;
|
|
18
24
|
Transition?: import("react").ElementType<any> | undefined;
|
|
19
25
|
Tooltip?: import("react").ElementType<any> | undefined;
|
|
20
26
|
Arrow?: import("react").ElementType<any> | undefined;
|
|
21
27
|
} | undefined;
|
|
22
|
-
|
|
23
|
-
content?: string | undefined;
|
|
24
|
-
translate?: "yes" | "no" | undefined;
|
|
25
|
-
slot?: string | undefined;
|
|
26
|
-
style?: import("react").CSSProperties | undefined;
|
|
27
|
-
title: import("react").ReactNode;
|
|
28
|
+
size?: "small" | "medium" | undefined;
|
|
28
29
|
classes?: Partial<import("@mui/material").TooltipClasses> | undefined;
|
|
30
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
31
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
29
32
|
children: import("react").ReactElement<any, any>;
|
|
30
33
|
defaultChecked?: boolean | undefined;
|
|
31
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
32
34
|
suppressContentEditableWarning?: boolean | undefined;
|
|
33
35
|
suppressHydrationWarning?: boolean | undefined;
|
|
34
36
|
accessKey?: string | undefined;
|
|
@@ -68,18 +70,18 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
68
70
|
results?: number | undefined;
|
|
69
71
|
security?: string | undefined;
|
|
70
72
|
unselectable?: "on" | "off" | undefined;
|
|
71
|
-
inputMode?: "
|
|
73
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
72
74
|
is?: string | undefined;
|
|
73
75
|
'aria-activedescendant'?: string | undefined;
|
|
74
76
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
75
|
-
'aria-autocomplete'?: "
|
|
77
|
+
'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
|
|
76
78
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
77
79
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
78
80
|
'aria-colcount'?: number | undefined;
|
|
79
81
|
'aria-colindex'?: number | undefined;
|
|
80
82
|
'aria-colspan'?: number | undefined;
|
|
81
83
|
'aria-controls'?: string | undefined;
|
|
82
|
-
'aria-current'?: boolean | "
|
|
84
|
+
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
83
85
|
'aria-describedby'?: string | undefined;
|
|
84
86
|
'aria-details'?: string | undefined;
|
|
85
87
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -88,7 +90,7 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
88
90
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
89
91
|
'aria-flowto'?: string | undefined;
|
|
90
92
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
91
|
-
'aria-haspopup'?: boolean | "
|
|
93
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "true" | "false" | "tree" | undefined;
|
|
92
94
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
93
95
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
94
96
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -137,7 +139,6 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
137
139
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
138
140
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
139
141
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
140
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
141
142
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
142
143
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
143
144
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -283,15 +284,8 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
283
284
|
onAnimationIterationCapture?: import("react").AnimationEventHandler<HTMLDivElement> | undefined;
|
|
284
285
|
onTransitionEnd?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
285
286
|
onTransitionEndCapture?: import("react").TransitionEventHandler<HTMLDivElement> | undefined;
|
|
286
|
-
size?: "medium" | "small" | undefined;
|
|
287
287
|
open?: boolean | undefined;
|
|
288
288
|
onClose?: ((event: Event | import("react").SyntheticEvent<Element, Event>) => void) | undefined;
|
|
289
|
-
componentsProps?: {
|
|
290
|
-
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
291
|
-
transition?: (import("@mui/material/transitions").TransitionProps & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
292
|
-
tooltip?: (import("react").HTMLProps<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
293
|
-
arrow?: (import("react").HTMLProps<HTMLSpanElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
294
|
-
} | undefined;
|
|
295
289
|
slotProps?: {
|
|
296
290
|
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
297
291
|
transition?: (import("@mui/material/transitions").TransitionProps & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
@@ -304,6 +298,12 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
304
298
|
tooltip?: import("react").ElementType<any> | undefined;
|
|
305
299
|
arrow?: import("react").ElementType<any> | undefined;
|
|
306
300
|
} | undefined;
|
|
301
|
+
componentsProps?: {
|
|
302
|
+
popper?: (Partial<import("@mui/material").PopperProps> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
303
|
+
transition?: (import("@mui/material/transitions").TransitionProps & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
304
|
+
tooltip?: (import("react").HTMLProps<HTMLDivElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
305
|
+
arrow?: (import("react").HTMLProps<HTMLSpanElement> & import("@mui/system").MUIStyledCommonProps<import("@mui/system").Theme> & import("@mui/material").TooltipComponentsPropsOverrides) | undefined;
|
|
306
|
+
} | undefined;
|
|
307
307
|
TransitionComponent?: import("react").JSXElementConstructor<import("@mui/material/transitions").TransitionProps & {
|
|
308
308
|
children: import("react").ReactElement<any, any>;
|
|
309
309
|
}> | undefined;
|
|
@@ -331,15 +331,15 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
331
331
|
visibleLastSymbolsCount?: number | undefined;
|
|
332
332
|
} & {
|
|
333
333
|
children?: import("react").ReactNode;
|
|
334
|
-
align?: "
|
|
334
|
+
align?: "left" | "right" | "inherit" | "center" | "justify" | undefined;
|
|
335
335
|
gutterBottom?: boolean | undefined;
|
|
336
336
|
noWrap?: boolean | undefined;
|
|
337
337
|
paragraph?: boolean | undefined;
|
|
338
338
|
} & {
|
|
339
|
-
color?: "
|
|
339
|
+
color?: "green" | "grey" | "red" | "yellow" | "info" | "primary" | "secondary" | "error" | "warning" | "success" | "text" | "textSecondary" | undefined;
|
|
340
340
|
variant?: import("@astral/ui").TypographyLegacyVariant | import("@astral/ui").TypographyVariant | undefined;
|
|
341
341
|
colorIntensity?: import("@astral/ui").Intensity | undefined;
|
|
342
|
-
component?: ("symbol" | "object" | "
|
|
342
|
+
component?: ("symbol" | "object" | "a" | "abbr" | "address" | "area" | "article" | "aside" | "audio" | "b" | "base" | "bdi" | "bdo" | "blockquote" | "body" | "br" | "button" | "canvas" | "caption" | "cite" | "code" | "col" | "colgroup" | "data" | "datalist" | "dd" | "del" | "details" | "dfn" | "dialog" | "div" | "dl" | "dt" | "em" | "embed" | "fieldset" | "figcaption" | "figure" | "footer" | "form" | "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "head" | "header" | "hgroup" | "hr" | "html" | "i" | "iframe" | "img" | "input" | "ins" | "kbd" | "label" | "legend" | "li" | "link" | "main" | "map" | "mark" | "menu" | "meta" | "meter" | "nav" | "noscript" | "ol" | "optgroup" | "option" | "output" | "p" | "picture" | "pre" | "progress" | "q" | "rp" | "rt" | "ruby" | "s" | "samp" | "script" | "section" | "select" | "slot" | "small" | "source" | "span" | "strong" | "style" | "sub" | "summary" | "sup" | "table" | "tbody" | "td" | "template" | "textarea" | "tfoot" | "th" | "thead" | "time" | "title" | "tr" | "track" | "u" | "ul" | "var" | "video" | "wbr" | "clipPath" | "filter" | "mask" | "marker" | "text" | "center" | import("react").ComponentType<any> | "big" | "keygen" | "menuitem" | "noindex" | "param" | "webview" | "svg" | "animate" | "animateMotion" | "animateTransform" | "circle" | "defs" | "desc" | "ellipse" | "feBlend" | "feColorMatrix" | "feComponentTransfer" | "feComposite" | "feConvolveMatrix" | "feDiffuseLighting" | "feDisplacementMap" | "feDistantLight" | "feDropShadow" | "feFlood" | "feFuncA" | "feFuncB" | "feFuncG" | "feFuncR" | "feGaussianBlur" | "feImage" | "feMerge" | "feMergeNode" | "feMorphology" | "feOffset" | "fePointLight" | "feSpecularLighting" | "feSpotLight" | "feTile" | "feTurbulence" | "foreignObject" | "g" | "image" | "line" | "linearGradient" | "metadata" | "mpath" | "path" | "pattern" | "polygon" | "polyline" | "radialGradient" | "rect" | "stop" | "switch" | "textPath" | "tspan" | "use" | "view") | undefined;
|
|
343
343
|
isUpperCase?: boolean | undefined;
|
|
344
344
|
} & import("react").HTMLAttributes<HTMLParagraphElement> & {
|
|
345
345
|
children?: import("react").ReactNode;
|
|
@@ -347,16 +347,17 @@ export declare const LabelTitle: import("@emotion/styled").StyledComponent<impor
|
|
|
347
347
|
theme?: import("@emotion/react").Theme | undefined;
|
|
348
348
|
}, {}, {}>;
|
|
349
349
|
export declare const StyledListItemIcon: import("@emotion/styled").StyledComponent<Omit<{
|
|
350
|
-
color?: string | undefined;
|
|
351
|
-
content?: string | undefined;
|
|
352
|
-
translate?: "yes" | "no" | undefined;
|
|
353
350
|
slot?: string | undefined;
|
|
354
351
|
style?: import("react").CSSProperties | undefined;
|
|
355
352
|
title?: string | undefined;
|
|
353
|
+
color?: string | undefined;
|
|
354
|
+
content?: string | undefined;
|
|
355
|
+
translate?: "yes" | "no" | undefined;
|
|
356
356
|
classes?: Partial<import("@mui/material").ListItemIconClasses> | undefined;
|
|
357
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
358
|
+
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
357
359
|
children?: import("react").ReactNode;
|
|
358
360
|
defaultChecked?: boolean | undefined;
|
|
359
|
-
defaultValue?: string | number | readonly string[] | undefined;
|
|
360
361
|
suppressContentEditableWarning?: boolean | undefined;
|
|
361
362
|
suppressHydrationWarning?: boolean | undefined;
|
|
362
363
|
accessKey?: string | undefined;
|
|
@@ -396,18 +397,18 @@ export declare const StyledListItemIcon: import("@emotion/styled").StyledCompone
|
|
|
396
397
|
results?: number | undefined;
|
|
397
398
|
security?: string | undefined;
|
|
398
399
|
unselectable?: "on" | "off" | undefined;
|
|
399
|
-
inputMode?: "
|
|
400
|
+
inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
400
401
|
is?: string | undefined;
|
|
401
402
|
'aria-activedescendant'?: string | undefined;
|
|
402
403
|
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
403
|
-
'aria-autocomplete'?: "
|
|
404
|
+
'aria-autocomplete'?: "inline" | "none" | "list" | "both" | undefined;
|
|
404
405
|
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
405
406
|
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
406
407
|
'aria-colcount'?: number | undefined;
|
|
407
408
|
'aria-colindex'?: number | undefined;
|
|
408
409
|
'aria-colspan'?: number | undefined;
|
|
409
410
|
'aria-controls'?: string | undefined;
|
|
410
|
-
'aria-current'?: boolean | "
|
|
411
|
+
'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
|
|
411
412
|
'aria-describedby'?: string | undefined;
|
|
412
413
|
'aria-details'?: string | undefined;
|
|
413
414
|
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
@@ -416,7 +417,7 @@ export declare const StyledListItemIcon: import("@emotion/styled").StyledCompone
|
|
|
416
417
|
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
417
418
|
'aria-flowto'?: string | undefined;
|
|
418
419
|
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
419
|
-
'aria-haspopup'?: boolean | "
|
|
420
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "grid" | "listbox" | "true" | "false" | "tree" | undefined;
|
|
420
421
|
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
421
422
|
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
422
423
|
'aria-keyshortcuts'?: string | undefined;
|
|
@@ -465,7 +466,6 @@ export declare const StyledListItemIcon: import("@emotion/styled").StyledCompone
|
|
|
465
466
|
onFocusCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
466
467
|
onBlur?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
467
468
|
onBlurCapture?: import("react").FocusEventHandler<HTMLDivElement> | undefined;
|
|
468
|
-
onChange?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
469
469
|
onChangeCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
470
470
|
onBeforeInput?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
471
471
|
onBeforeInputCapture?: import("react").FormEventHandler<HTMLDivElement> | undefined;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getShortFullName = void 0;
|
|
4
4
|
const getShortFullName = (fullname) => {
|
|
5
|
-
var _a, _b;
|
|
5
|
+
var _a, _b, _c, _d;
|
|
6
6
|
const arr = (fullname === null || fullname === void 0 ? void 0 : fullname.split(' ')) || [];
|
|
7
|
-
const innerName = ((_a = arr[1]) === null || _a === void 0 ? void 0 : _a.split('').at(0)) || '';
|
|
8
|
-
const innerMiddlename = ((
|
|
7
|
+
const innerName = ((_b = (_a = arr[1]) === null || _a === void 0 ? void 0 : _a.split('').at(0)) === null || _b === void 0 ? void 0 : _b.concat('.')) || '';
|
|
8
|
+
const innerMiddlename = ((_d = (_c = arr[2]) === null || _c === void 0 ? void 0 : _c.split('').at(0)) === null || _d === void 0 ? void 0 : _d.concat('.')) || '';
|
|
9
9
|
const innerLastname = arr.at(0) || '';
|
|
10
|
-
return `${innerLastname
|
|
10
|
+
return `${innerLastname} ${innerName}${innerMiddlename}`;
|
|
11
11
|
};
|
|
12
12
|
exports.getShortFullName = getShortFullName;
|
|
@@ -6,4 +6,4 @@ import { type AutocompleteProps } from '@astral/ui';
|
|
|
6
6
|
* @deprecated Используйте пакет @astral-private/crypto https://cryptodocs.astralnalog.ru/
|
|
7
7
|
* Причина отказа от поддержки: поддержка функционала теперь осуществляется централизовано командой Астрал-Софт в закрытом контуре.
|
|
8
8
|
*/
|
|
9
|
-
export declare const CryptoProCertAutocomplete: <
|
|
9
|
+
export declare const CryptoProCertAutocomplete: <TMultiple extends boolean, TDisableClearable extends boolean, TFreeSolo extends boolean>({ getOptionLabel, ...props }: AutocompleteProps<Certificate, TMultiple, TDisableClearable, TFreeSolo>) => JSX.Element;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.transformCertificate = void 0;
|
|
4
|
-
const services_1 = require("../../../../services");
|
|
5
4
|
const constants_1 = require("../../../../constants");
|
|
5
|
+
const services_1 = require("../../../../services");
|
|
6
6
|
const transformCertificate = (certificate) => {
|
|
7
|
-
const
|
|
7
|
+
const certificateTypeIfNotLegal = certificate.subject.ogrnip
|
|
8
8
|
? constants_1.CertificateType.SoleTrader
|
|
9
9
|
: constants_1.CertificateType.Individual;
|
|
10
10
|
const isCertificateTypeLegal = certificate.subject.innLe;
|
|
@@ -16,7 +16,7 @@ const transformCertificate = (certificate) => {
|
|
|
16
16
|
inn: certificate.subject.innLe || certificate.subject.inn,
|
|
17
17
|
type: isCertificateTypeLegal
|
|
18
18
|
? constants_1.CertificateType.LegalEntity
|
|
19
|
-
:
|
|
19
|
+
: certificateTypeIfNotLegal,
|
|
20
20
|
};
|
|
21
21
|
};
|
|
22
22
|
exports.transformCertificate = transformCertificate;
|
package/node/cryproPro/components/CryptoProCertFormAutocomplete/CryptoProCertFormAutocomplete.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type Certificate } from '@astral/cryptopro-cades';
|
|
3
3
|
import { type AutocompleteProps, type WithFormFieldProps } from '@astral/ui';
|
|
4
|
-
export type CryptoProCertFormAutocompleteProps<
|
|
4
|
+
export type CryptoProCertFormAutocompleteProps<TMultiple extends boolean = false, TDisableClearable extends boolean = false, TFreeSolo extends boolean = false> = WithFormFieldProps<AutocompleteProps<Certificate, TMultiple, TDisableClearable, TFreeSolo>, any>;
|
|
5
5
|
/**
|
|
6
6
|
* Autocomplete с сертификатами для формы
|
|
7
7
|
* @deprecated Используйте пакет @astral-private/crypto https://cryptodocs.astralnalog.ru/
|
|
8
8
|
* Причина отказа от поддержки: поддержка функционала теперь осуществляется централизовано командой Астрал-Софт в закрытом контуре.
|
|
9
9
|
*/
|
|
10
|
-
export declare const CryptoProCertFormAutocomplete: <
|
|
10
|
+
export declare const CryptoProCertFormAutocomplete: <TMultiple extends boolean = false, TDisableClearable extends boolean = false>(props: CryptoProCertFormAutocompleteProps<TMultiple, TDisableClearable, false>) => JSX.Element;
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.CryptoProProvider = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
|
-
const mobx_react_lite_1 = require("mobx-react-lite");
|
|
6
5
|
const ui_1 = require("@astral/ui");
|
|
6
|
+
const mobx_react_lite_1 = require("mobx-react-lite");
|
|
7
7
|
const SetupCryptoProWorkspaceModal_1 = require("../SetupCryptoProWorkspaceModal");
|
|
8
8
|
/**
|
|
9
9
|
* Провайдер, который в случае отсутствия или неактивности
|
|
@@ -3,13 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.CryptoproviderInfo = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ui_1 = require("@astral/ui");
|
|
6
|
-
const ui_2 = require("@astral/ui");
|
|
7
6
|
const styles_1 = require("../styles");
|
|
8
7
|
const styles_2 = require("./styles");
|
|
9
8
|
const CryptoproviderInfo = ({ workspaceSetupInfo }) => {
|
|
10
9
|
const getDescription = () => {
|
|
11
10
|
if (!workspaceSetupInfo.isPluginInstalled) {
|
|
12
|
-
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445", (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u043A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u044B \u043F\u043E\u0441\u043B\u0435\n \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u201C\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in\u201D \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", children: (0, jsx_runtime_1.jsx)(styles_2.IconWrapper, { children: (0, jsx_runtime_1.jsx)(
|
|
11
|
+
return ((0, jsx_runtime_1.jsxs)(jsx_runtime_1.Fragment, { children: ["\u041D\u0435\u0442 \u0434\u0430\u043D\u043D\u044B\u0445", (0, jsx_runtime_1.jsx)(ui_1.Tooltip, { title: "\u0414\u0430\u043D\u043D\u044B\u0435 \u043E \u043A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440\u0435 \u0431\u0443\u0434\u0443\u0442 \u043F\u043E\u043B\u0443\u0447\u0435\u043D\u044B \u043F\u043E\u0441\u043B\u0435\n \u0443\u0441\u0442\u0430\u043D\u043E\u0432\u043A\u0438 \u043F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u044F \u201C\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in\u201D \u0438 \u043E\u0431\u043D\u043E\u0432\u043B\u0435\u043D\u0438\u044F \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u044B \u0431\u0440\u0430\u0443\u0437\u0435\u0440\u0430.", children: (0, jsx_runtime_1.jsx)(styles_2.IconWrapper, { children: (0, jsx_runtime_1.jsx)(ui_1.InfoFillSm, {}) }) })] }));
|
|
13
12
|
}
|
|
14
13
|
else if (workspaceSetupInfo.hasCryptoProvider) {
|
|
15
14
|
return 'Установлен';
|
|
@@ -20,7 +19,7 @@ const CryptoproviderInfo = ({ workspaceSetupInfo }) => {
|
|
|
20
19
|
};
|
|
21
20
|
return ((0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoItem, { children: [(0, jsx_runtime_1.jsxs)(ui_1.Description, { children: [(0, jsx_runtime_1.jsx)(ui_1.Description.Name, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u043F\u0440\u043E\u0432\u0430\u0439\u0434\u0435\u0440" }), (0, jsx_runtime_1.jsx)(ui_1.Description.Value, { children: workspaceSetupInfo.cspVersion
|
|
22
21
|
? `Крипто Про CSP v${workspaceSetupInfo.cspVersion}`
|
|
23
|
-
: getDescription() })] }), !workspaceSetupInfo.isPluginInstalled && ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "link", endIcon: (0, jsx_runtime_1.jsx)(
|
|
22
|
+
: getDescription() })] }), !workspaceSetupInfo.isPluginInstalled && ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "link", endIcon: (0, jsx_runtime_1.jsx)(ui_1.OpenLinkOutlineMd, {}), href: "https://cryptopro.ru/downloads",
|
|
24
23
|
/*
|
|
25
24
|
проблемы с типами кнопки
|
|
26
25
|
// @ts-ignore */
|
|
@@ -3,10 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.PluginInfo = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ui_1 = require("@astral/ui");
|
|
6
|
-
const ui_2 = require("@astral/ui");
|
|
7
6
|
const styles_1 = require("../styles");
|
|
8
7
|
const PluginInfo = ({ workspaceSetupInfo }) => {
|
|
9
|
-
return ((0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoItem, { children: [(0, jsx_runtime_1.jsxs)(ui_1.Description, { children: [(0, jsx_runtime_1.jsx)(ui_1.Description.Name, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)(ui_1.Description.Value, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in" })] }), workspaceSetupInfo.isPluginInstalled ? ((0, jsx_runtime_1.jsx)(ui_1.Typography, { color: "green", colorIntensity: "900", children: "\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E" })) : ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "text", endIcon: (0, jsx_runtime_1.jsx)(
|
|
8
|
+
return ((0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoItem, { children: [(0, jsx_runtime_1.jsxs)(ui_1.Description, { children: [(0, jsx_runtime_1.jsx)(ui_1.Description.Name, { children: "\u041F\u0440\u0438\u043B\u043E\u0436\u0435\u043D\u0438\u0435" }), (0, jsx_runtime_1.jsx)(ui_1.Description.Value, { children: "\u041A\u0440\u0438\u043F\u0442\u043E\u041F\u0440\u043E \u042D\u0426\u041F Browser plug-in" })] }), workspaceSetupInfo.isPluginInstalled ? ((0, jsx_runtime_1.jsx)(ui_1.Typography, { color: "green", colorIntensity: "900", children: "\u0423\u0441\u0442\u0430\u043D\u043E\u0432\u043B\u0435\u043D\u043E" })) : ((0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "text", endIcon: (0, jsx_runtime_1.jsx)(ui_1.DownloadOutlineMd, {}), href: "https://www.cryptopro.ru/products/cades/plugin/get_2_0",
|
|
10
9
|
/*
|
|
11
10
|
проблемы с типами кнопки
|
|
12
11
|
// @ts-ignore */
|
package/node/cryproPro/components/SetupCryptoProWorkspaceModal/SetupCryptoProWorkspaceModal.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.SetupCryptoProWorkspaceModal = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ui_1 = require("@astral/ui");
|
|
6
|
-
const ui_2 = require("@astral/ui");
|
|
7
6
|
const CryptoproviderInfo_1 = require("./CryptoproviderInfo");
|
|
8
7
|
const PluginInfo_1 = require("./PluginInfo");
|
|
9
8
|
const styles_1 = require("./styles");
|
|
@@ -15,6 +14,6 @@ const SetupCryptoProWorkspaceModal = ({ isDialogOpen, onCloseButtonClick, worksp
|
|
|
15
14
|
const handleRefreshButtonClick = () => {
|
|
16
15
|
location.reload();
|
|
17
16
|
};
|
|
18
|
-
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: isDialogOpen, onClose: onCloseButtonClick, title: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043C\u0435\u0441\u0442\u0430", maxWidth: "sm", fullWidth: true, children: [(0, jsx_runtime_1.jsxs)(ui_1.DialogContent, { children: [(0, jsx_runtime_1.jsx)(ui_1.Typography, { children: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u043A\u0440\u0438\u043F\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F, \u0430 \u0437\u0430\u0442\u0435\u043C \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443." }), (0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoWrapper, { children: [(0, jsx_runtime_1.jsx)(PluginInfo_1.PluginInfo, { workspaceSetupInfo: workspaceSetupInfo }), (0, jsx_runtime_1.jsx)(CryptoproviderInfo_1.CryptoproviderInfo, { workspaceSetupInfo: workspaceSetupInfo })] })] }), (0, jsx_runtime_1.jsxs)(ui_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "text", onClick: onCloseButtonClick, children: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C" }), (0, jsx_runtime_1.jsx)(ui_1.Button, { endIcon: (0, jsx_runtime_1.jsx)(
|
|
17
|
+
return ((0, jsx_runtime_1.jsxs)(ui_1.Dialog, { open: isDialogOpen, onClose: onCloseButtonClick, title: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043C\u0435\u0441\u0442\u0430", maxWidth: "sm", fullWidth: true, children: [(0, jsx_runtime_1.jsxs)(ui_1.DialogContent, { children: [(0, jsx_runtime_1.jsx)(ui_1.Typography, { children: "\u041D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0430 \u0440\u0430\u0431\u043E\u0447\u0435\u0433\u043E \u043C\u0435\u0441\u0442\u0430 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u0430 \u0434\u043B\u044F \u0432\u044B\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F \u043A\u0440\u0438\u043F\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0447\u0435\u0441\u043A\u0438\u0445 \u043E\u043F\u0435\u0440\u0430\u0446\u0438\u0439. \u0423\u0441\u0442\u0430\u043D\u043E\u0432\u0438\u0442\u0435 \u043D\u0435\u043E\u0431\u0445\u043E\u0434\u0438\u043C\u044B\u0435 \u0434\u043E\u043F\u043E\u043B\u043D\u0435\u043D\u0438\u044F, \u0430 \u0437\u0430\u0442\u0435\u043C \u043E\u0431\u043D\u043E\u0432\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443." }), (0, jsx_runtime_1.jsxs)(styles_1.WorkspaceInfoWrapper, { children: [(0, jsx_runtime_1.jsx)(PluginInfo_1.PluginInfo, { workspaceSetupInfo: workspaceSetupInfo }), (0, jsx_runtime_1.jsx)(CryptoproviderInfo_1.CryptoproviderInfo, { workspaceSetupInfo: workspaceSetupInfo })] })] }), (0, jsx_runtime_1.jsxs)(ui_1.DialogActions, { children: [(0, jsx_runtime_1.jsx)(ui_1.Button, { variant: "text", onClick: onCloseButtonClick, children: "\u0417\u0430\u043A\u0440\u044B\u0442\u044C" }), (0, jsx_runtime_1.jsx)(ui_1.Button, { endIcon: (0, jsx_runtime_1.jsx)(ui_1.RefreshOutlineMd, {}), onClick: handleRefreshButtonClick, children: "\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C \u0441\u0442\u0440\u0430\u043D\u0438\u0446\u0443" })] })] }));
|
|
19
18
|
};
|
|
20
19
|
exports.SetupCryptoProWorkspaceModal = SetupCryptoProWorkspaceModal;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * from './SetupCryptoProWorkspaceModal';
|
|
2
|
-
export * from './CryptoProCertFormAutocomplete';
|
|
3
1
|
export * from './CryptoProCertAutocomplete';
|
|
2
|
+
export * from './CryptoProCertFormAutocomplete';
|
|
4
3
|
export * from './CryptoProProvider';
|
|
4
|
+
export * from './SetupCryptoProWorkspaceModal';
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./SetupCryptoProWorkspaceModal"), exports);
|
|
18
|
-
__exportStar(require("./CryptoProCertFormAutocomplete"), exports);
|
|
19
17
|
__exportStar(require("./CryptoProCertAutocomplete"), exports);
|
|
18
|
+
__exportStar(require("./CryptoProCertFormAutocomplete"), exports);
|
|
20
19
|
__exportStar(require("./CryptoProProvider"), exports);
|
|
20
|
+
__exportStar(require("./SetupCryptoProWorkspaceModal"), exports);
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./error"), exports);
|
|
18
17
|
__exportStar(require("./enums"), exports);
|
|
18
|
+
__exportStar(require("./error"), exports);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { CryptoProCertAutocomplete, CryptoProCertFormAutocomplete, CryptoProProvider, SetupCryptoProWorkspaceModal, } from './components';
|
|
2
2
|
export { CryptoProStore } from './stores';
|
|
3
3
|
export { Certificate } from './types';
|
package/node/cryproPro/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CryptoProStore = exports.
|
|
3
|
+
exports.CryptoProStore = exports.SetupCryptoProWorkspaceModal = exports.CryptoProProvider = exports.CryptoProCertFormAutocomplete = exports.CryptoProCertAutocomplete = void 0;
|
|
4
4
|
var components_1 = require("./components");
|
|
5
|
-
Object.defineProperty(exports, "SetupCryptoProWorkspaceModal", { enumerable: true, get: function () { return components_1.SetupCryptoProWorkspaceModal; } });
|
|
6
|
-
Object.defineProperty(exports, "CryptoProCertFormAutocomplete", { enumerable: true, get: function () { return components_1.CryptoProCertFormAutocomplete; } });
|
|
7
5
|
Object.defineProperty(exports, "CryptoProCertAutocomplete", { enumerable: true, get: function () { return components_1.CryptoProCertAutocomplete; } });
|
|
6
|
+
Object.defineProperty(exports, "CryptoProCertFormAutocomplete", { enumerable: true, get: function () { return components_1.CryptoProCertFormAutocomplete; } });
|
|
8
7
|
Object.defineProperty(exports, "CryptoProProvider", { enumerable: true, get: function () { return components_1.CryptoProProvider; } });
|
|
8
|
+
Object.defineProperty(exports, "SetupCryptoProWorkspaceModal", { enumerable: true, get: function () { return components_1.SetupCryptoProWorkspaceModal; } });
|
|
9
9
|
var stores_1 = require("./stores");
|
|
10
10
|
Object.defineProperty(exports, "CryptoProStore", { enumerable: true, get: function () { return stores_1.CryptoProStore; } });
|
|
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./convertBase64toBlob"), exports);
|
|
17
18
|
__exportStar(require("./getCertificateExpiresDate"), exports);
|
|
18
19
|
__exportStar(require("./getCertificateOwnerShortName"), exports);
|
|
19
20
|
__exportStar(require("./getCertificateType"), exports);
|
|
20
|
-
__exportStar(require("./convertBase64toBlob"), exports);
|
|
@@ -10,8 +10,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.createWorkspaceSetupService = exports.WorkspaceSetupService = void 0;
|
|
13
|
-
const ui_1 = require("@astral/ui");
|
|
14
13
|
const cryptopro_cades_1 = require("@astral/cryptopro-cades");
|
|
14
|
+
const ui_1 = require("@astral/ui");
|
|
15
15
|
const constants_1 = require("../../constants");
|
|
16
16
|
/**
|
|
17
17
|
* Сервис для настройки рабочего места
|
package/node/index.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export * from './cryproPro';
|
|
2
|
-
export { IdentityProductSwitcher, AstralProductSwitcher, } from './productSwitcher';
|
|
3
1
|
export { AutoSaveIndicatorStore, useInitAutoSaveIndicatorStore, } from './AutoSaveIndicatorService';
|
|
2
|
+
export * from './cryproPro';
|
|
3
|
+
export { AstralProductSwitcher, IdentityProductSwitcher, } from './productSwitcher';
|
package/node/index.js
CHANGED
|
@@ -14,11 +14,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.
|
|
18
|
-
__exportStar(require("./cryproPro"), exports);
|
|
19
|
-
var productSwitcher_1 = require("./productSwitcher");
|
|
20
|
-
Object.defineProperty(exports, "IdentityProductSwitcher", { enumerable: true, get: function () { return productSwitcher_1.IdentityProductSwitcher; } });
|
|
21
|
-
Object.defineProperty(exports, "AstralProductSwitcher", { enumerable: true, get: function () { return productSwitcher_1.AstralProductSwitcher; } });
|
|
17
|
+
exports.IdentityProductSwitcher = exports.AstralProductSwitcher = exports.useInitAutoSaveIndicatorStore = exports.AutoSaveIndicatorStore = void 0;
|
|
22
18
|
var AutoSaveIndicatorService_1 = require("./AutoSaveIndicatorService");
|
|
23
19
|
Object.defineProperty(exports, "AutoSaveIndicatorStore", { enumerable: true, get: function () { return AutoSaveIndicatorService_1.AutoSaveIndicatorStore; } });
|
|
24
20
|
Object.defineProperty(exports, "useInitAutoSaveIndicatorStore", { enumerable: true, get: function () { return AutoSaveIndicatorService_1.useInitAutoSaveIndicatorStore; } });
|
|
21
|
+
__exportStar(require("./cryproPro"), exports);
|
|
22
|
+
var productSwitcher_1 = require("./productSwitcher");
|
|
23
|
+
Object.defineProperty(exports, "AstralProductSwitcher", { enumerable: true, get: function () { return productSwitcher_1.AstralProductSwitcher; } });
|
|
24
|
+
Object.defineProperty(exports, "IdentityProductSwitcher", { enumerable: true, get: function () { return productSwitcher_1.IdentityProductSwitcher; } });
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getFilteredProducts = void 0;
|
|
4
4
|
const utils_1 = require("../../../../utils");
|
|
5
|
-
const enums_1 = require("../../enums");
|
|
6
5
|
const getGroupsProducts_1 = require("../../../../utils/getGroupsProducts");
|
|
6
|
+
const enums_1 = require("../../enums");
|
|
7
7
|
/**
|
|
8
8
|
* Получение всех продуктов из разных экосистем и группировка в единую мапу
|
|
9
9
|
* @param identityUrl - адрес экосистемы
|
|
@@ -3,8 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.IdentityProductSwitcher = exports.ASTRAL_IDENTITY_DEFAULT_TENANT = void 0;
|
|
4
4
|
const jsx_runtime_1 = require("react/jsx-runtime");
|
|
5
5
|
const ui_1 = require("@astral/ui");
|
|
6
|
-
const styles_1 = require("./styles");
|
|
7
6
|
const hooks_1 = require("./hooks");
|
|
7
|
+
const styles_1 = require("./styles");
|
|
8
8
|
exports.ASTRAL_IDENTITY_DEFAULT_TENANT = 'astral';
|
|
9
9
|
const IdentityProductSwitcher = ({ identityUrl, }) => {
|
|
10
10
|
const { open, anchorRef, handleOpenMenu, handleCloseMenu } = (0, ui_1.useMenu)();
|
package/node/productSwitcher/components/IdentityProductSwitcher/hooks/useLogic/useLogic.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type MouseEvent } from 'react';
|
|
2
1
|
import { type WidgetProduct } from '@astral/ui';
|
|
2
|
+
import { type MouseEvent } from 'react';
|
|
3
3
|
import { type IdentityTenantsDTO } from '../../../../types';
|
|
4
4
|
export declare const useLogic: (identityUrl: string, openMenu: () => void) => {
|
|
5
5
|
handleShowProducts: () => void;
|
|
@@ -10,10 +10,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
10
10
|
};
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.useLogic = void 0;
|
|
13
|
-
const react_1 = require("react");
|
|
14
13
|
const ui_1 = require("@astral/ui");
|
|
15
|
-
const
|
|
14
|
+
const react_1 = require("react");
|
|
16
15
|
const IdentityProductSwitcher_1 = require("../../IdentityProductSwitcher");
|
|
16
|
+
const utils_1 = require("../../utils");
|
|
17
17
|
const useLogic = (identityUrl, openMenu) => {
|
|
18
18
|
const { captureException } = (0, react_1.useContext)(ui_1.ConfigContext);
|
|
19
19
|
const [tenantsProductsMap, setTenantsProductsMap] = (0, react_1.useState)();
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./getTenantsProducts"), exports);
|
|
18
17
|
__exportStar(require("./getIdentityTenants"), exports);
|
|
18
|
+
__exportStar(require("./getTenantsProducts"), exports);
|
|
@@ -8,9 +8,9 @@ exports.formatIdentityProducts = void 0;
|
|
|
8
8
|
*/
|
|
9
9
|
const formatIdentityProducts = (identityUrl, identityProducts = []) => (identityProducts === null || identityProducts === void 0 ? void 0 : identityProducts.map(({ id, productUrl = '', name = '', logoUrl, iconFileId, backgroundHexColor = '', }) => {
|
|
10
10
|
return {
|
|
11
|
-
id
|
|
11
|
+
id,
|
|
12
12
|
url: productUrl,
|
|
13
|
-
name
|
|
13
|
+
name,
|
|
14
14
|
logoUrl: logoUrl || `${identityUrl}/api/files/${iconFileId}`,
|
|
15
15
|
color: backgroundHexColor,
|
|
16
16
|
};
|
|
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./getIdentityProducts"), exports);
|
|
18
17
|
__exportStar(require("./formatIdentityProducts"), exports);
|
|
18
|
+
__exportStar(require("./getIdentityProducts"), exports);
|
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astral/features",
|
|
3
3
|
"main": "./node/index.js",
|
|
4
|
-
"version": "3.345.
|
|
4
|
+
"version": "3.345.3",
|
|
5
5
|
"dependencies": {
|
|
6
|
-
"@astral/ui": "3.345.
|
|
6
|
+
"@astral/ui": "3.345.3",
|
|
7
7
|
"mobx": "^6.8.0",
|
|
8
8
|
"mobx-react-lite": "^3.4.0",
|
|
9
9
|
"@astral/cryptopro-cades": "^1.5.1"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getIdentityProducts } from '../../../../utils';
|
|
2
|
-
import { ProductFilterType } from '../../enums';
|
|
3
2
|
import { getGroupsProducts } from '../../../../utils/getGroupsProducts';
|
|
3
|
+
import { ProductFilterType } from '../../enums';
|
|
4
4
|
/**
|
|
5
5
|
* Получение всех продуктов из разных экосистем и группировка в единую мапу
|
|
6
6
|
* @param identityUrl - адрес экосистемы
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
2
|
import { ContentState, ErrorFillSm, IconButton, MenuGroup, ProductsFillMd, Typography, useMenu, } from '@astral/ui';
|
|
3
|
-
import { ErrorContainer, Logo, StyledMenu, StyledMenuItem, TenantToggleButton, TenantsToggleButtonGroup, } from './styles';
|
|
4
3
|
import { useLogic } from './hooks';
|
|
4
|
+
import { ErrorContainer, Logo, StyledMenu, StyledMenuItem, TenantsToggleButtonGroup, TenantToggleButton, } from './styles';
|
|
5
5
|
export const ASTRAL_IDENTITY_DEFAULT_TENANT = 'astral';
|
|
6
6
|
export const IdentityProductSwitcher = ({ identityUrl, }) => {
|
|
7
7
|
const { open, anchorRef, handleOpenMenu, handleCloseMenu } = useMenu();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type MouseEvent } from 'react';
|
|
2
1
|
import { type WidgetProduct } from '@astral/ui';
|
|
2
|
+
import { type MouseEvent } from 'react';
|
|
3
3
|
import { type IdentityTenantsDTO } from '../../../../types';
|
|
4
4
|
export declare const useLogic: (identityUrl: string, openMenu: () => void) => {
|
|
5
5
|
handleShowProducts: () => void;
|
|
@@ -7,10 +7,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import { useContext, useMemo, useState } from 'react';
|
|
11
10
|
import { ConfigContext } from '@astral/ui';
|
|
12
|
-
import {
|
|
11
|
+
import { useContext, useMemo, useState } from 'react';
|
|
13
12
|
import { ASTRAL_IDENTITY_DEFAULT_TENANT } from '../../IdentityProductSwitcher';
|
|
13
|
+
import { getIdentityTenants, getTenantsProducts } from '../../utils';
|
|
14
14
|
export const useLogic = (identityUrl, openMenu) => {
|
|
15
15
|
const { captureException } = useContext(ConfigContext);
|
|
16
16
|
const [tenantsProductsMap, setTenantsProductsMap] = useState();
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Grid, Menu, MenuItem, ToggleButton, ToggleButtonGroup,
|
|
1
|
+
import { Grid, Menu, MenuItem, styled, ToggleButton, ToggleButtonGroup, } from '@astral/ui';
|
|
2
2
|
export const StyledMenu = styled(Menu) `
|
|
3
3
|
.MuiPaper-root > .MuiList-root {
|
|
4
4
|
display: flex;
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export const formatIdentityProducts = (identityUrl, identityProducts = []) => (identityProducts === null || identityProducts === void 0 ? void 0 : identityProducts.map(({ id, productUrl = '', name = '', logoUrl, iconFileId, backgroundHexColor = '', }) => {
|
|
7
7
|
return {
|
|
8
|
-
id
|
|
8
|
+
id,
|
|
9
9
|
url: productUrl,
|
|
10
|
-
name
|
|
10
|
+
name,
|
|
11
11
|
logoUrl: logoUrl || `${identityUrl}/api/files/${iconFileId}`,
|
|
12
12
|
color: backgroundHexColor,
|
|
13
13
|
};
|