d2coreui 23.0.51 → 23.0.52

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.
@@ -19,136 +19,136 @@ export const useDraggableModalStyles = createStyles(({ token, css, prefixCls })
19
19
  const handleOverhang = 10;
20
20
  const markerSize = 12;
21
21
  return {
22
- wrap: css `
23
- overflow: hidden !important;
24
-
25
- ${modalCls} {
26
- display: flex;
27
- max-width: none;
28
- transform-origin: 50% 50% !important;
29
- }
30
-
31
- /*
32
- * rc-dialog puts an unclassed wrapper div between .ant-modal and .ant-modal-content.
33
- * As a flex item with width:auto it only shrink-wraps its content, so the dialog would
34
- * not follow the resized width. The focus sentinels matched by the same selector keep
35
- * their inline width:0, so they are not affected.
36
- */
37
- ${modalCls} > div {
38
- width: 100%;
39
- }
40
-
41
- /* the height comes from the modal state - content has to fill it and lay the parts out vertically */
42
- ${modalCls}-content {
43
- display: flex;
44
- flex-direction: column;
45
- flex: 1;
46
- width: 100%;
47
- height: 100%;
48
- /*
49
- * Deliberate deviation from the antd 5 default: the content carries no inset at all.
50
- * The top one belongs to the title (so the whole header area can be grabbed for
51
- * dragging) and the bottom one to the footer, which keeps both dividers surrounded by
52
- * padding instead of glued to the text. Horizontally it keeps only the slice the
53
- * body's scrollbars are drawn in, so they never sit on the dialog edge.
54
- */
55
- padding: 0 ${scrollbarInset}px;
56
- }
57
-
58
- ${modalCls}-header,
59
- ${modalCls}-footer {
60
- flex: 0 0 auto;
61
- /*
62
- * When the app configures dividers (Modal headerBorderBottom / footerBorderTop
63
- * tokens - d2ui does), antd draws them on the header/footer box. Bleed the box back
64
- * out over the content's scrollbar slice so the lines still span the dialog; the
65
- * title/buttons keep their own full inset and do not move.
66
- */
67
- margin-inline: -${scrollbarInset}px;
68
- }
69
-
70
- /*
71
- * The header contributes no spacing of its own - all of it lives on the drag area inside
72
- * (see the title style below), so every pixel down to the divider drags the dialog. The gap
73
- * to the body stays at the antd default (marginXS) and sits below the divider.
74
- */
75
- ${modalCls}-header {
76
- padding: 0;
77
- margin-bottom: ${token.marginXS}px;
78
- }
79
-
80
- /*
81
- * Mirror of the header: the footer carries the content's bottom inset itself, so the
82
- * divider has padding below it instead of sitting right on the buttons. The gap above the
83
- * divider stays at the antd default (marginSM).
84
- */
85
- ${modalCls}-footer {
86
- padding: ${token.padding}px ${contentPaddingInline}px;
87
- margin-top: ${token.marginSM}px;
88
- }
89
-
90
- /*
91
- * The maximize button reuses antd's .ant-modal-close markup so it looks and behaves like
92
- * the close button next to it (hover, focus ring, icon size); it only gets parked one
93
- * button width to the left. antd positions the close button with a two-class selector, so
94
- * this override has to be at least as specific.
95
- */
96
- ${modalCls} .ant-design-draggable-modal-maximize {
97
- inset-inline-end: ${headerButtons.secondButtonInset}px;
98
- }
99
-
100
- /*
101
- * The only part that shrinks/grows with the dialog; min-height:0 lets it actually shrink
102
- * in a flex column.
103
- *
104
- * Most of the horizontal inset lives here and not on the content on purpose. The body is
105
- * the scroll container, so anything sticking out of its content box becomes a horizontal
106
- * scrollbar - and antd's own <Row gutter={n}> does exactly that: it sets
107
- * margin-inline: -n/2 and is therefore n px wider than its parent (the matching padding
108
- * on each Col puts the visible content back, so only the scrollbar shows it). With the
109
- * whole inset on the content the body was flush with its children and every dialog whose
110
- * form starts with a gutter row had a permanent n/2 px horizontal scrollbar. Owning the
111
- * padding, the body absorbs those negative margins like a plain antd modal body does.
112
- */
113
- ${modalCls}-body {
114
- flex: 1 1 auto;
115
- min-height: 0;
116
- overflow: auto;
117
- padding-inline: ${bodyPaddingInline}px;
118
- }
22
+ wrap: css `
23
+ overflow: hidden !important;
24
+
25
+ ${modalCls} {
26
+ display: flex;
27
+ max-width: none;
28
+ transform-origin: 50% 50% !important;
29
+ }
30
+
31
+ /*
32
+ * rc-dialog puts an unclassed wrapper div between .ant-modal and .ant-modal-content.
33
+ * As a flex item with width:auto it only shrink-wraps its content, so the dialog would
34
+ * not follow the resized width. The focus sentinels matched by the same selector keep
35
+ * their inline width:0, so they are not affected.
36
+ */
37
+ ${modalCls} > div {
38
+ width: 100%;
39
+ }
40
+
41
+ /* the height comes from the modal state - content has to fill it and lay the parts out vertically */
42
+ ${modalCls}-content {
43
+ display: flex;
44
+ flex-direction: column;
45
+ flex: 1;
46
+ width: 100%;
47
+ height: 100%;
48
+ /*
49
+ * Deliberate deviation from the antd 5 default: the content carries no inset at all.
50
+ * The top one belongs to the title (so the whole header area can be grabbed for
51
+ * dragging) and the bottom one to the footer, which keeps both dividers surrounded by
52
+ * padding instead of glued to the text. Horizontally it keeps only the slice the
53
+ * body's scrollbars are drawn in, so they never sit on the dialog edge.
54
+ */
55
+ padding: 0 ${scrollbarInset}px;
56
+ }
57
+
58
+ ${modalCls}-header,
59
+ ${modalCls}-footer {
60
+ flex: 0 0 auto;
61
+ /*
62
+ * When the app configures dividers (Modal headerBorderBottom / footerBorderTop
63
+ * tokens - d2ui does), antd draws them on the header/footer box. Bleed the box back
64
+ * out over the content's scrollbar slice so the lines still span the dialog; the
65
+ * title/buttons keep their own full inset and do not move.
66
+ */
67
+ margin-inline: -${scrollbarInset}px;
68
+ }
69
+
70
+ /*
71
+ * The header contributes no spacing of its own - all of it lives on the drag area inside
72
+ * (see the title style below), so every pixel down to the divider drags the dialog. The gap
73
+ * to the body stays at the antd default (marginXS) and sits below the divider.
74
+ */
75
+ ${modalCls}-header {
76
+ padding: 0;
77
+ margin-bottom: ${token.marginXS}px;
78
+ }
79
+
80
+ /*
81
+ * Mirror of the header: the footer carries the content's bottom inset itself, so the
82
+ * divider has padding below it instead of sitting right on the buttons. The gap above the
83
+ * divider stays at the antd default (marginSM).
84
+ */
85
+ ${modalCls}-footer {
86
+ padding: ${token.padding}px ${contentPaddingInline}px;
87
+ margin-top: ${token.marginSM}px;
88
+ }
89
+
90
+ /*
91
+ * The maximize button reuses antd's .ant-modal-close markup so it looks and behaves like
92
+ * the close button next to it (hover, focus ring, icon size); it only gets parked one
93
+ * button width to the left. antd positions the close button with a two-class selector, so
94
+ * this override has to be at least as specific.
95
+ */
96
+ ${modalCls} .ant-design-draggable-modal-maximize {
97
+ inset-inline-end: ${headerButtons.secondButtonInset}px;
98
+ }
99
+
100
+ /*
101
+ * The only part that shrinks/grows with the dialog; min-height:0 lets it actually shrink
102
+ * in a flex column.
103
+ *
104
+ * Most of the horizontal inset lives here and not on the content on purpose. The body is
105
+ * the scroll container, so anything sticking out of its content box becomes a horizontal
106
+ * scrollbar - and antd's own <Row gutter={n}> does exactly that: it sets
107
+ * margin-inline: -n/2 and is therefore n px wider than its parent (the matching padding
108
+ * on each Col puts the visible content back, so only the scrollbar shows it). With the
109
+ * whole inset on the content the body was flush with its children and every dialog whose
110
+ * form starts with a gutter row had a permanent n/2 px horizontal scrollbar. Owning the
111
+ * padding, the body absorbs those negative margins like a plain antd modal body does.
112
+ */
113
+ ${modalCls}-body {
114
+ flex: 1 1 auto;
115
+ min-height: 0;
116
+ overflow: auto;
117
+ padding-inline: ${bodyPaddingInline}px;
118
+ }
119
119
  `,
120
- wrapWithoutFooter: css `
121
- ${modalCls} ${modalCls}-content {
122
- padding-bottom: ${token.padding}px;
123
- }
120
+ wrapWithoutFooter: css `
121
+ ${modalCls} ${modalCls}-content {
122
+ padding-bottom: ${token.padding}px;
123
+ }
124
124
  `,
125
- title: css `
126
- cursor: move;
127
- user-select: none;
128
- /*
129
- * Carries the whole header inset - the content's vertical padding and the horizontal
130
- * padding the header would otherwise have - so the entire header area is a drag handle,
131
- * right up to the dialog edges and down to the divider.
132
- */
133
- padding: ${token.padding}px ${contentPaddingInline}px;
125
+ title: css `
126
+ cursor: move;
127
+ user-select: none;
128
+ /*
129
+ * Carries the whole header inset - the content's vertical padding and the horizontal
130
+ * padding the header would otherwise have - so the entire header area is a drag handle,
131
+ * right up to the dialog edges and down to the divider.
132
+ */
133
+ padding: ${token.padding}px ${contentPaddingInline}px;
134
134
  `,
135
- resizeHandle: css `
136
- position: absolute;
137
- right: -${handleOverhang}px;
138
- bottom: -${handleOverhang}px;
139
- width: ${handleSize}px;
140
- height: ${handleSize}px;
141
- cursor: se-resize;
135
+ resizeHandle: css `
136
+ position: absolute;
137
+ right: -${handleOverhang}px;
138
+ bottom: -${handleOverhang}px;
139
+ width: ${handleSize}px;
140
+ height: ${handleSize}px;
141
+ cursor: se-resize;
142
142
  `,
143
- resizeHandleInner: css `
144
- position: absolute;
145
- right: ${handleOverhang + token.paddingXXS}px;
146
- bottom: ${handleOverhang + token.paddingXXS}px;
147
- width: ${markerSize}px;
148
- height: ${markerSize}px;
149
- border: ${token.lineWidthBold}px ${token.lineType} ${token.colorTextTertiary};
150
- border-top: 0;
151
- border-left: 0;
143
+ resizeHandleInner: css `
144
+ position: absolute;
145
+ right: ${handleOverhang + token.paddingXXS}px;
146
+ bottom: ${handleOverhang + token.paddingXXS}px;
147
+ width: ${markerSize}px;
148
+ height: ${markerSize}px;
149
+ border: ${token.lineWidthBold}px ${token.lineType} ${token.colorTextTertiary};
150
+ border-top: 0;
151
+ border-left: 0;
152
152
  `,
153
153
  };
154
154
  });
@@ -1 +1 @@
1
- {"version":3,"file":"draggableModalStyles.js","sourceRoot":"","sources":["../../../../../components/modal/impl/draggableModalStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AAgBxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAwB,EAAE,EAAE;IAC7D,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC;IACjC,MAAM,YAAY,GAAG,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;IAC3F,MAAM,KAAK,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO;QAEH,iBAAiB,EAAE,KAAK,GAAG,IAAI,GAAG,GAAG;QAErC,OAAO,EAAE,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG;KAChG,CAAA;AACL,CAAC,CAAC;AAWF,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC,CAAC,EAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAC,EAAE,EAAE;IAC5E,MAAM,QAAQ,GAAG,IAAI,SAAS,QAAQ,CAAC;IAGvC,MAAM,oBAAoB,GAAG,KAAK,CAAC,0BAA0B,CAAC;IAQ9D,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,CAAC;IACvC,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,cAAc,CAAC;IAEhE,MAAM,aAAa,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAGlD,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,MAAM,cAAc,GAAG,EAAE,CAAC;IAE1B,MAAM,UAAU,GAAG,EAAE,CAAC;IAEtB,OAAO;QACH,IAAI,EAAE,GAAG,CAAA;;;cAGH,QAAQ;;;;;;;;;;;;cAYR,QAAQ;;;;;cAKR,QAAQ;;;;;;;;;;;;;6BAaO,cAAc;;;cAG7B,QAAQ;cACR,QAAQ;;;;;;;;kCAQY,cAAc;;;;;;;;cAQlC,QAAQ;;iCAEW,KAAK,CAAC,QAAQ;;;;;;;;cAQjC,QAAQ;2BACK,KAAK,CAAC,OAAO,MAAM,oBAAoB;8BACpC,KAAK,CAAC,QAAQ;;;;;;;;;cAS9B,QAAQ;oCACc,aAAa,CAAC,iBAAiB;;;;;;;;;;;;;;;;cAgBrD,QAAQ;;;;kCAIY,iBAAiB;;SAE1C;QAOD,iBAAiB,EAAE,GAAG,CAAA;cAChB,QAAQ,IAAI,QAAQ;kCACA,KAAK,CAAC,OAAO;;SAEtC;QACD,KAAK,EAAE,GAAG,CAAA;;;;;;;;uBAQK,KAAK,CAAC,OAAO,MAAM,oBAAoB;SACrD;QACD,YAAY,EAAE,GAAG,CAAA;;sBAEH,cAAc;uBACb,cAAc;qBAChB,UAAU;sBACT,UAAU;;SAEvB;QACD,iBAAiB,EAAE,GAAG,CAAA;;qBAET,cAAc,GAAG,KAAK,CAAC,UAAU;sBAChC,cAAc,GAAG,KAAK,CAAC,UAAU;qBAClC,UAAU;sBACT,UAAU;sBACV,KAAK,CAAC,aAAa,MAAM,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,iBAAiB;;;SAG/E;KACJ,CAAC;AACN,CAAC,CAAC,CAAC","sourcesContent":["import {createStyles} from \"antd-style\";\n\n/** the antd tokens the header-button geometry is derived from */\ninterface HeaderButtonToken {\n controlHeight: number\n padding: number\n marginXXS: number\n lineHeightHeading5: number\n fontSizeHeading5: number\n}\n\n/**\n * Geometry of the buttons in the top-right corner of the header. Mirrors antd's own close-button\n * math (prepareToken in antd/es/modal/style) so our maximize button lines up with antd's close\n * button, and so the title knows how much room to leave for them.\n */\nexport const headerButtonGeometry = (token: HeaderButtonToken) => {\n const size = token.controlHeight;\n const headerHeight = token.lineHeightHeading5 * token.fontSizeHeading5 + token.padding * 2;\n const inset = (headerHeight - size) / 2;\n const gap = token.marginXXS;\n return {\n /** inset-inline-end of the button sitting left of the close button */\n secondButtonInset: inset + size + gap,\n /** horizontal space the title has to leave free so `count` buttons do not cover it */\n reserve: (count: number): number => count <= 0 ? 0 : inset + count * size + (count - 1) * gap,\n }\n};\n\n/**\n * Styles of the resizable/draggable modal.\n *\n * Only what dragging + resizing actually needs is defined here (flex layout so the body can\n * grow/scroll, the drag cursor on the title, the resize handle). Everything that antd 5 styles\n * through its own Modal tokens - header/footer spacing, title typography - is deliberately NOT\n * overridden, so the dialog looks like a plain antd 5 Modal. The exception is the content inset,\n * see below.\n */\nexport const useDraggableModalStyles = createStyles(({token, css, prefixCls}) => {\n const modalCls = `.${prefixCls}-modal`;\n\n // antd's default horizontal contentPadding, mirrored here because the parts carry it themselves\n const contentPaddingInline = token.paddingContentHorizontalLG;\n\n /*\n * That inset is split between the content and the body. The body is the scroll container, and a\n * scrollbar is always drawn at its border edge - so the content keeps the outer slice to push the\n * body's scrollbars off the dialog edge, and the body keeps the rest as the gap between a\n * scrollbar and the text (which is also what absorbs negative margins, see the body rule).\n */\n const scrollbarInset = token.paddingXS;\n const bodyPaddingInline = contentPaddingInline - scrollbarInset;\n\n const headerButtons = headerButtonGeometry(token);\n\n // the grab area reaches slightly outside the content so it does not sit on top of the footer buttons\n const handleSize = 44;\n const handleOverhang = 10;\n // the visible corner marker inside the grab area\n const markerSize = 12;\n\n return {\n wrap: css`\n overflow: hidden !important;\n\n ${modalCls} {\n display: flex;\n max-width: none;\n transform-origin: 50% 50% !important;\n }\n\n /*\n * rc-dialog puts an unclassed wrapper div between .ant-modal and .ant-modal-content.\n * As a flex item with width:auto it only shrink-wraps its content, so the dialog would\n * not follow the resized width. The focus sentinels matched by the same selector keep\n * their inline width:0, so they are not affected.\n */\n ${modalCls} > div {\n width: 100%;\n }\n\n /* the height comes from the modal state - content has to fill it and lay the parts out vertically */\n ${modalCls}-content {\n display: flex;\n flex-direction: column;\n flex: 1;\n width: 100%;\n height: 100%;\n /*\n * Deliberate deviation from the antd 5 default: the content carries no inset at all.\n * The top one belongs to the title (so the whole header area can be grabbed for\n * dragging) and the bottom one to the footer, which keeps both dividers surrounded by\n * padding instead of glued to the text. Horizontally it keeps only the slice the\n * body's scrollbars are drawn in, so they never sit on the dialog edge.\n */\n padding: 0 ${scrollbarInset}px;\n }\n\n ${modalCls}-header,\n ${modalCls}-footer {\n flex: 0 0 auto;\n /*\n * When the app configures dividers (Modal headerBorderBottom / footerBorderTop\n * tokens - d2ui does), antd draws them on the header/footer box. Bleed the box back\n * out over the content's scrollbar slice so the lines still span the dialog; the\n * title/buttons keep their own full inset and do not move.\n */\n margin-inline: -${scrollbarInset}px;\n }\n\n /*\n * The header contributes no spacing of its own - all of it lives on the drag area inside\n * (see the title style below), so every pixel down to the divider drags the dialog. The gap\n * to the body stays at the antd default (marginXS) and sits below the divider.\n */\n ${modalCls}-header {\n padding: 0;\n margin-bottom: ${token.marginXS}px;\n }\n\n /*\n * Mirror of the header: the footer carries the content's bottom inset itself, so the\n * divider has padding below it instead of sitting right on the buttons. The gap above the\n * divider stays at the antd default (marginSM).\n */\n ${modalCls}-footer {\n padding: ${token.padding}px ${contentPaddingInline}px;\n margin-top: ${token.marginSM}px;\n }\n\n /*\n * The maximize button reuses antd's .ant-modal-close markup so it looks and behaves like\n * the close button next to it (hover, focus ring, icon size); it only gets parked one\n * button width to the left. antd positions the close button with a two-class selector, so\n * this override has to be at least as specific.\n */\n ${modalCls} .ant-design-draggable-modal-maximize {\n inset-inline-end: ${headerButtons.secondButtonInset}px;\n }\n\n /*\n * The only part that shrinks/grows with the dialog; min-height:0 lets it actually shrink\n * in a flex column.\n *\n * Most of the horizontal inset lives here and not on the content on purpose. The body is\n * the scroll container, so anything sticking out of its content box becomes a horizontal\n * scrollbar - and antd's own <Row gutter={n}> does exactly that: it sets\n * margin-inline: -n/2 and is therefore n px wider than its parent (the matching padding\n * on each Col puts the visible content back, so only the scrollbar shows it). With the\n * whole inset on the content the body was flush with its children and every dialog whose\n * form starts with a gutter row had a permanent n/2 px horizontal scrollbar. Owning the\n * padding, the body absorbs those negative margins like a plain antd modal body does.\n */\n ${modalCls}-body {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n padding-inline: ${bodyPaddingInline}px;\n }\n `,\n /*\n * The bottom inset normally lives on the footer (see above). Dialogs rendered without one -\n * every NO_BUTTONS ModalDialog, and anything passing footer={null} - would otherwise have\n * their content flush against the bottom edge, so the content takes the inset back. The\n * extra selector level is needed to outweigh the padding-block: 0 above.\n */\n wrapWithoutFooter: css`\n ${modalCls} ${modalCls}-content {\n padding-bottom: ${token.padding}px;\n }\n `,\n title: css`\n cursor: move;\n user-select: none;\n /*\n * Carries the whole header inset - the content's vertical padding and the horizontal\n * padding the header would otherwise have - so the entire header area is a drag handle,\n * right up to the dialog edges and down to the divider.\n */\n padding: ${token.padding}px ${contentPaddingInline}px;\n `,\n resizeHandle: css`\n position: absolute;\n right: -${handleOverhang}px;\n bottom: -${handleOverhang}px;\n width: ${handleSize}px;\n height: ${handleSize}px;\n cursor: se-resize;\n `,\n resizeHandleInner: css`\n position: absolute;\n right: ${handleOverhang + token.paddingXXS}px;\n bottom: ${handleOverhang + token.paddingXXS}px;\n width: ${markerSize}px;\n height: ${markerSize}px;\n border: ${token.lineWidthBold}px ${token.lineType} ${token.colorTextTertiary};\n border-top: 0;\n border-left: 0;\n `,\n };\n});\n"]}
1
+ {"version":3,"file":"draggableModalStyles.js","sourceRoot":"","sources":["../../../../../components/modal/impl/draggableModalStyles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,YAAY,CAAC;AAgBxC,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,KAAwB,EAAE,EAAE;IAC7D,MAAM,IAAI,GAAG,KAAK,CAAC,aAAa,CAAC;IACjC,MAAM,YAAY,GAAG,KAAK,CAAC,kBAAkB,GAAG,KAAK,CAAC,gBAAgB,GAAG,KAAK,CAAC,OAAO,GAAG,CAAC,CAAC;IAC3F,MAAM,KAAK,GAAG,CAAC,YAAY,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC;IACxC,MAAM,GAAG,GAAG,KAAK,CAAC,SAAS,CAAC;IAC5B,OAAO;QAEH,iBAAiB,EAAE,KAAK,GAAG,IAAI,GAAG,GAAG;QAErC,OAAO,EAAE,CAAC,KAAa,EAAU,EAAE,CAAC,KAAK,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,GAAG,KAAK,GAAG,IAAI,GAAG,CAAC,KAAK,GAAG,CAAC,CAAC,GAAG,GAAG;KAChG,CAAA;AACL,CAAC,CAAC;AAWF,MAAM,CAAC,MAAM,uBAAuB,GAAG,YAAY,CAAC,CAAC,EAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAC,EAAE,EAAE;IAC5E,MAAM,QAAQ,GAAG,IAAI,SAAS,QAAQ,CAAC;IAGvC,MAAM,oBAAoB,GAAG,KAAK,CAAC,0BAA0B,CAAC;IAQ9D,MAAM,cAAc,GAAG,KAAK,CAAC,SAAS,CAAC;IACvC,MAAM,iBAAiB,GAAG,oBAAoB,GAAG,cAAc,CAAC;IAEhE,MAAM,aAAa,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAGlD,MAAM,UAAU,GAAG,EAAE,CAAC;IACtB,MAAM,cAAc,GAAG,EAAE,CAAC;IAE1B,MAAM,UAAU,GAAG,EAAE,CAAC;IAEtB,OAAO;QACH,IAAI,EAAE,GAAG,CAAA;;;cAGH,QAAQ;;;;;;;;;;;;cAYR,QAAQ;;;;;cAKR,QAAQ;;;;;;;;;;;;;6BAaO,cAAc;;;cAG7B,QAAQ;cACR,QAAQ;;;;;;;;kCAQY,cAAc;;;;;;;;cAQlC,QAAQ;;iCAEW,KAAK,CAAC,QAAQ;;;;;;;;cAQjC,QAAQ;2BACK,KAAK,CAAC,OAAO,MAAM,oBAAoB;8BACpC,KAAK,CAAC,QAAQ;;;;;;;;;cAS9B,QAAQ;oCACc,aAAa,CAAC,iBAAiB;;;;;;;;;;;;;;;;cAgBrD,QAAQ;;;;kCAIY,iBAAiB;;SAE1C;QAOD,iBAAiB,EAAE,GAAG,CAAA;cAChB,QAAQ,IAAI,QAAQ;kCACA,KAAK,CAAC,OAAO;;SAEtC;QACD,KAAK,EAAE,GAAG,CAAA;;;;;;;;uBAQK,KAAK,CAAC,OAAO,MAAM,oBAAoB;SACrD;QACD,YAAY,EAAE,GAAG,CAAA;;sBAEH,cAAc;uBACb,cAAc;qBAChB,UAAU;sBACT,UAAU;;SAEvB;QACD,iBAAiB,EAAE,GAAG,CAAA;;qBAET,cAAc,GAAG,KAAK,CAAC,UAAU;sBAChC,cAAc,GAAG,KAAK,CAAC,UAAU;qBAClC,UAAU;sBACT,UAAU;sBACV,KAAK,CAAC,aAAa,MAAM,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,iBAAiB;;;SAG/E;KACJ,CAAC;AACN,CAAC,CAAC,CAAC","sourcesContent":["import {createStyles} from \"antd-style\";\r\n\r\n/** the antd tokens the header-button geometry is derived from */\r\ninterface HeaderButtonToken {\r\n controlHeight: number\r\n padding: number\r\n marginXXS: number\r\n lineHeightHeading5: number\r\n fontSizeHeading5: number\r\n}\r\n\r\n/**\r\n * Geometry of the buttons in the top-right corner of the header. Mirrors antd's own close-button\r\n * math (prepareToken in antd/es/modal/style) so our maximize button lines up with antd's close\r\n * button, and so the title knows how much room to leave for them.\r\n */\r\nexport const headerButtonGeometry = (token: HeaderButtonToken) => {\r\n const size = token.controlHeight;\r\n const headerHeight = token.lineHeightHeading5 * token.fontSizeHeading5 + token.padding * 2;\r\n const inset = (headerHeight - size) / 2;\r\n const gap = token.marginXXS;\r\n return {\r\n /** inset-inline-end of the button sitting left of the close button */\r\n secondButtonInset: inset + size + gap,\r\n /** horizontal space the title has to leave free so `count` buttons do not cover it */\r\n reserve: (count: number): number => count <= 0 ? 0 : inset + count * size + (count - 1) * gap,\r\n }\r\n};\r\n\r\n/**\r\n * Styles of the resizable/draggable modal.\r\n *\r\n * Only what dragging + resizing actually needs is defined here (flex layout so the body can\r\n * grow/scroll, the drag cursor on the title, the resize handle). Everything that antd 5 styles\r\n * through its own Modal tokens - header/footer spacing, title typography - is deliberately NOT\r\n * overridden, so the dialog looks like a plain antd 5 Modal. The exception is the content inset,\r\n * see below.\r\n */\r\nexport const useDraggableModalStyles = createStyles(({token, css, prefixCls}) => {\r\n const modalCls = `.${prefixCls}-modal`;\r\n\r\n // antd's default horizontal contentPadding, mirrored here because the parts carry it themselves\r\n const contentPaddingInline = token.paddingContentHorizontalLG;\r\n\r\n /*\r\n * That inset is split between the content and the body. The body is the scroll container, and a\r\n * scrollbar is always drawn at its border edge - so the content keeps the outer slice to push the\r\n * body's scrollbars off the dialog edge, and the body keeps the rest as the gap between a\r\n * scrollbar and the text (which is also what absorbs negative margins, see the body rule).\r\n */\r\n const scrollbarInset = token.paddingXS;\r\n const bodyPaddingInline = contentPaddingInline - scrollbarInset;\r\n\r\n const headerButtons = headerButtonGeometry(token);\r\n\r\n // the grab area reaches slightly outside the content so it does not sit on top of the footer buttons\r\n const handleSize = 44;\r\n const handleOverhang = 10;\r\n // the visible corner marker inside the grab area\r\n const markerSize = 12;\r\n\r\n return {\r\n wrap: css`\r\n overflow: hidden !important;\r\n\r\n ${modalCls} {\r\n display: flex;\r\n max-width: none;\r\n transform-origin: 50% 50% !important;\r\n }\r\n\r\n /*\r\n * rc-dialog puts an unclassed wrapper div between .ant-modal and .ant-modal-content.\r\n * As a flex item with width:auto it only shrink-wraps its content, so the dialog would\r\n * not follow the resized width. The focus sentinels matched by the same selector keep\r\n * their inline width:0, so they are not affected.\r\n */\r\n ${modalCls} > div {\r\n width: 100%;\r\n }\r\n\r\n /* the height comes from the modal state - content has to fill it and lay the parts out vertically */\r\n ${modalCls}-content {\r\n display: flex;\r\n flex-direction: column;\r\n flex: 1;\r\n width: 100%;\r\n height: 100%;\r\n /*\r\n * Deliberate deviation from the antd 5 default: the content carries no inset at all.\r\n * The top one belongs to the title (so the whole header area can be grabbed for\r\n * dragging) and the bottom one to the footer, which keeps both dividers surrounded by\r\n * padding instead of glued to the text. Horizontally it keeps only the slice the\r\n * body's scrollbars are drawn in, so they never sit on the dialog edge.\r\n */\r\n padding: 0 ${scrollbarInset}px;\r\n }\r\n\r\n ${modalCls}-header,\r\n ${modalCls}-footer {\r\n flex: 0 0 auto;\r\n /*\r\n * When the app configures dividers (Modal headerBorderBottom / footerBorderTop\r\n * tokens - d2ui does), antd draws them on the header/footer box. Bleed the box back\r\n * out over the content's scrollbar slice so the lines still span the dialog; the\r\n * title/buttons keep their own full inset and do not move.\r\n */\r\n margin-inline: -${scrollbarInset}px;\r\n }\r\n\r\n /*\r\n * The header contributes no spacing of its own - all of it lives on the drag area inside\r\n * (see the title style below), so every pixel down to the divider drags the dialog. The gap\r\n * to the body stays at the antd default (marginXS) and sits below the divider.\r\n */\r\n ${modalCls}-header {\r\n padding: 0;\r\n margin-bottom: ${token.marginXS}px;\r\n }\r\n\r\n /*\r\n * Mirror of the header: the footer carries the content's bottom inset itself, so the\r\n * divider has padding below it instead of sitting right on the buttons. The gap above the\r\n * divider stays at the antd default (marginSM).\r\n */\r\n ${modalCls}-footer {\r\n padding: ${token.padding}px ${contentPaddingInline}px;\r\n margin-top: ${token.marginSM}px;\r\n }\r\n\r\n /*\r\n * The maximize button reuses antd's .ant-modal-close markup so it looks and behaves like\r\n * the close button next to it (hover, focus ring, icon size); it only gets parked one\r\n * button width to the left. antd positions the close button with a two-class selector, so\r\n * this override has to be at least as specific.\r\n */\r\n ${modalCls} .ant-design-draggable-modal-maximize {\r\n inset-inline-end: ${headerButtons.secondButtonInset}px;\r\n }\r\n\r\n /*\r\n * The only part that shrinks/grows with the dialog; min-height:0 lets it actually shrink\r\n * in a flex column.\r\n *\r\n * Most of the horizontal inset lives here and not on the content on purpose. The body is\r\n * the scroll container, so anything sticking out of its content box becomes a horizontal\r\n * scrollbar - and antd's own <Row gutter={n}> does exactly that: it sets\r\n * margin-inline: -n/2 and is therefore n px wider than its parent (the matching padding\r\n * on each Col puts the visible content back, so only the scrollbar shows it). With the\r\n * whole inset on the content the body was flush with its children and every dialog whose\r\n * form starts with a gutter row had a permanent n/2 px horizontal scrollbar. Owning the\r\n * padding, the body absorbs those negative margins like a plain antd modal body does.\r\n */\r\n ${modalCls}-body {\r\n flex: 1 1 auto;\r\n min-height: 0;\r\n overflow: auto;\r\n padding-inline: ${bodyPaddingInline}px;\r\n }\r\n `,\r\n /*\r\n * The bottom inset normally lives on the footer (see above). Dialogs rendered without one -\r\n * every NO_BUTTONS ModalDialog, and anything passing footer={null} - would otherwise have\r\n * their content flush against the bottom edge, so the content takes the inset back. The\r\n * extra selector level is needed to outweigh the padding-block: 0 above.\r\n */\r\n wrapWithoutFooter: css`\r\n ${modalCls} ${modalCls}-content {\r\n padding-bottom: ${token.padding}px;\r\n }\r\n `,\r\n title: css`\r\n cursor: move;\r\n user-select: none;\r\n /*\r\n * Carries the whole header inset - the content's vertical padding and the horizontal\r\n * padding the header would otherwise have - so the entire header area is a drag handle,\r\n * right up to the dialog edges and down to the divider.\r\n */\r\n padding: ${token.padding}px ${contentPaddingInline}px;\r\n `,\r\n resizeHandle: css`\r\n position: absolute;\r\n right: -${handleOverhang}px;\r\n bottom: -${handleOverhang}px;\r\n width: ${handleSize}px;\r\n height: ${handleSize}px;\r\n cursor: se-resize;\r\n `,\r\n resizeHandleInner: css`\r\n position: absolute;\r\n right: ${handleOverhang + token.paddingXXS}px;\r\n bottom: ${handleOverhang + token.paddingXXS}px;\r\n width: ${markerSize}px;\r\n height: ${markerSize}px;\r\n border: ${token.lineWidthBold}px ${token.lineType} ${token.colorTextTertiary};\r\n border-top: 0;\r\n border-left: 0;\r\n `,\r\n };\r\n});\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"resizeHandle.js","sourceRoot":"","sources":["../../../../../components/modal/impl/resizeHandle.tsx"],"names":[],"mappings":";;;;;;;;;;;AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAwD,EAAsB,EAAE;QAAhF,EAAC,SAAS,EAAE,cAAc,OAA8B,EAAzB,KAAK,cAApC,+BAAqC,CAAD;IAA6C,OAAA,CAE1G,2CAAK,SAAS,EAAE,4CAA4C,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,IAAM,KAAK;QACpF,6BAAK,SAAS,EAAE,kDAAkD,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,EAAE,EAAE,GAAG,CACzF,CACT,CAAA;CAAA,CAAA","sourcesContent":["// https://github.com/CUBETIQ/antd-modal/\n\nimport * as React from 'react'\n\nexport interface ResizeHandleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {\n /** class of the visible corner marker inside the grab area */\n innerClassName?: string\n}\n\nexport const ResizeHandle = ({className, innerClassName, ...props}: ResizeHandleProps): React.ReactElement => (\n // the legacy class names are kept as styling hooks for the app (e.g. .compact-modal)\n <div className={`ant-design-draggable-modal-resize-handle ${className ?? ''}`} {...props}>\n <div className={`ant-design-draggable-modal-resize-handle-inner ${innerClassName ?? ''}`}/>\n </div>\n)\n"]}
1
+ {"version":3,"file":"resizeHandle.js","sourceRoot":"","sources":["../../../../../components/modal/impl/resizeHandle.tsx"],"names":[],"mappings":";;;;;;;;;;;AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAA;AAO9B,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,EAAwD,EAAsB,EAAE;QAAhF,EAAC,SAAS,EAAE,cAAc,OAA8B,EAAzB,KAAK,cAApC,+BAAqC,CAAD;IAA6C,OAAA,CAE1G,2CAAK,SAAS,EAAE,4CAA4C,SAAS,aAAT,SAAS,cAAT,SAAS,GAAI,EAAE,EAAE,IAAM,KAAK;QACpF,6BAAK,SAAS,EAAE,kDAAkD,cAAc,aAAd,cAAc,cAAd,cAAc,GAAI,EAAE,EAAE,GAAG,CACzF,CACT,CAAA;CAAA,CAAA","sourcesContent":["// https://github.com/CUBETIQ/antd-modal/\r\n\r\nimport * as React from 'react'\r\n\r\nexport interface ResizeHandleProps extends React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement> {\r\n /** class of the visible corner marker inside the grab area */\r\n innerClassName?: string\r\n}\r\n\r\nexport const ResizeHandle = ({className, innerClassName, ...props}: ResizeHandleProps): React.ReactElement => (\r\n // the legacy class names are kept as styling hooks for the app (e.g. .compact-modal)\r\n <div className={`ant-design-draggable-modal-resize-handle ${className ?? ''}`} {...props}>\r\n <div className={`ant-design-draggable-modal-resize-handle-inner ${innerClassName ?? ''}`}/>\r\n </div>\r\n)\r\n"]}
@@ -1 +1 @@
1
- {"version":3,"file":"withCss.js","sourceRoot":"","sources":["../../../../components/style/withCss.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAC;AAE9D,OAAO,EAAC,aAAa,EAAU,MAAM,yBAAyB,CAAC;AAkB/D,MAAM,CAAC,OAAO,UAAU,OAAO,CAA4D,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAA0B;;IAC5I,MAAM,WAAW,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;IACxD,MAAM,EAAC,OAAO,EAAE,aAAa,EAAC,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC3D,MAAM,UAAU,GAA0B,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAA,IAAI,QAAQ,CAAC;IAE9F,MAAM,aAAa,GAAY,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,mCAAI,aAAa,mCAAI,UAAU,CAAC;IAC7E,MAAM,GAAG,GAAG,SAAS,iCAAM,KAAW,KAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,IAAE,CAAC;IACnF,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAAA,CAAC","sourcesContent":["import {BaseReturnType} from 'antd-style';\nimport {ReturnStyles} from \"antd-style/lib/factories/createStyles/types\";\nimport {useContext} from \"react\";\nimport {SpaceCompactItemContext} from \"antd/es/space/Compact\";\nimport {SizeType} from \"antd/lib/config-provider/SizeContext\";\nimport {ConfigContext, Variant} from \"antd/es/config-provider\";\n\ntype WithCssChildren<T extends BaseReturnType> = (css: ReturnStyles<T>) => any;\n\ntype WithCssOwnProps = { size?: SizeType, variant?: Variant };\n\n/**\n * props always passed to useStyles - size and variant are resolved by WithCss from the\n * component props / antd context, so they are never undefined\n */\nexport type WithCssInjectedProps = { size: NonNullable<SizeType>, variant: Variant };\n\ninterface WithCssProperties<T extends BaseReturnType, P extends WithCssOwnProps> {\n children: WithCssChildren<T>;\n useStyles: (props?: P & WithCssInjectedProps) => ReturnStyles<T>\n props?: P;\n}\n\nexport default function WithCss<T extends BaseReturnType, P extends WithCssOwnProps = {}> ({useStyles, children, props}: WithCssProperties<T, P>) {\n const contextSize = useContext(SpaceCompactItemContext);\n const {variant: configVariant} = useContext(ConfigContext);\n const mergedSize: NonNullable<SizeType> = props?.size || contextSize?.compactSize || 'middle';\n // same precedence as antd's internal useVariant: own prop > ConfigProvider > outlined\n const mergedVariant: Variant = props?.variant ?? configVariant ?? 'outlined';\n const css = useStyles({...(props as P), size: mergedSize, variant: mergedVariant});\n return children(css);\n};\n"]}
1
+ {"version":3,"file":"withCss.js","sourceRoot":"","sources":["../../../../components/style/withCss.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,UAAU,EAAC,MAAM,OAAO,CAAC;AACjC,OAAO,EAAC,uBAAuB,EAAC,MAAM,uBAAuB,CAAC;AAE9D,OAAO,EAAC,aAAa,EAAU,MAAM,yBAAyB,CAAC;AAkB/D,MAAM,CAAC,OAAO,UAAU,OAAO,CAA4D,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAA0B;;IAC5I,MAAM,WAAW,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;IACxD,MAAM,EAAC,OAAO,EAAE,aAAa,EAAC,GAAG,UAAU,CAAC,aAAa,CAAC,CAAC;IAC3D,MAAM,UAAU,GAA0B,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAA,IAAI,QAAQ,CAAC;IAE9F,MAAM,aAAa,GAAY,MAAA,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,mCAAI,aAAa,mCAAI,UAAU,CAAC;IAC7E,MAAM,GAAG,GAAG,SAAS,iCAAM,KAAW,KAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,aAAa,IAAE,CAAC;IACnF,OAAO,QAAQ,CAAC,GAAG,CAAC,CAAC;AACzB,CAAC;AAAA,CAAC","sourcesContent":["import {BaseReturnType} from 'antd-style';\r\nimport {ReturnStyles} from \"antd-style/lib/factories/createStyles/types\";\r\nimport {useContext} from \"react\";\r\nimport {SpaceCompactItemContext} from \"antd/es/space/Compact\";\r\nimport {SizeType} from \"antd/lib/config-provider/SizeContext\";\r\nimport {ConfigContext, Variant} from \"antd/es/config-provider\";\r\n\r\ntype WithCssChildren<T extends BaseReturnType> = (css: ReturnStyles<T>) => any;\r\n\r\ntype WithCssOwnProps = { size?: SizeType, variant?: Variant };\r\n\r\n/**\r\n * props always passed to useStyles - size and variant are resolved by WithCss from the\r\n * component props / antd context, so they are never undefined\r\n */\r\nexport type WithCssInjectedProps = { size: NonNullable<SizeType>, variant: Variant };\r\n\r\ninterface WithCssProperties<T extends BaseReturnType, P extends WithCssOwnProps> {\r\n children: WithCssChildren<T>;\r\n useStyles: (props?: P & WithCssInjectedProps) => ReturnStyles<T>\r\n props?: P;\r\n}\r\n\r\nexport default function WithCss<T extends BaseReturnType, P extends WithCssOwnProps = {}> ({useStyles, children, props}: WithCssProperties<T, P>) {\r\n const contextSize = useContext(SpaceCompactItemContext);\r\n const {variant: configVariant} = useContext(ConfigContext);\r\n const mergedSize: NonNullable<SizeType> = props?.size || contextSize?.compactSize || 'middle';\r\n // same precedence as antd's internal useVariant: own prop > ConfigProvider > outlined\r\n const mergedVariant: Variant = props?.variant ?? configVariant ?? 'outlined';\r\n const css = useStyles({...(props as P), size: mergedSize, variant: mergedVariant});\r\n return children(css);\r\n};\r\n"]}
package/package.json CHANGED
@@ -1,65 +1,65 @@
1
- {
2
- "name": "d2coreui",
3
- "version": "23.0.51",
4
- "description": "Core UI components and utilities library.",
5
- "author": "Ipesoft s.r.o.",
6
- "license": "MIT",
7
- "resolutions": {
8
- "@types/react": "18.3.7",
9
- "dayjs": "1.11.13"
10
- },
11
- "dependencies": {
12
- "@ant-design/compatible": "5.1.4",
13
- "@ant-design/dark-theme": "2.0.2",
14
- "@ant-design/icons": "5.6.1",
15
- "@types/codemirror": "5.60.15",
16
- "@types/draft-convert": "2.1.8",
17
- "@types/draft-js": "0.11.18",
18
- "@types/lodash": "4.17.5",
19
- "@types/pdfmake": "0.2.13",
20
- "@types/react": "18.3.7",
21
- "@types/react-collapse": "5.0.4",
22
- "@types/react-color": "3.0.12",
23
- "@types/react-dom": "18.3.0",
24
- "@types/react-resizable": "3.0.7",
25
- "ag-grid-community": "34.3.1",
26
- "ag-grid-react": "34.3.1",
27
- "antd": "5.29.3",
28
- "antd-style": "4.1.0",
29
- "codemirror": "5.65.20",
30
- "dayjs": "1.11.13",
31
- "dom-scroll-into-view": "2.0.1",
32
- "draft-convert": "2.1.12",
33
- "draft-js": "0.11.0",
34
- "draftail": "1.4.1",
35
- "filtrex": "2.2.3",
36
- "flexlayout-react": "0.8.18",
37
- "lodash": "4.17.23",
38
- "memoize-one": "6.0.0",
39
- "parse-decimal-number": "1.0.0",
40
- "pdfmake": "0.2.23",
41
- "process": "0.11.10",
42
- "react-codemirror2": "8.0.0",
43
- "react-collapse": "5.1.1",
44
- "react-color": "2.19.3",
45
- "react-dnd": "10.0.2",
46
- "react-dnd-html5-backend": "10.0.2",
47
- "react-drag-listview": "2.0.0",
48
- "react-draggable": "4.4.6",
49
- "react-maskinput": "3.2.0",
50
- "react-resizable": "3.0.5",
51
- "react-uid": "2.3.3",
52
- "threads": "1.7.0",
53
- "ts-key-enum": "2.0.12"
54
- },
55
- "scripts": {
56
- "cleanBuild": "@powershell if (Test-Path \"./lib/esm\") {rm -r ./lib/esm}",
57
- "copyPackageJson": "@powershell copy './package.json' './lib/esm/'",
58
- "copyStyles": "@powershell cp -R './style' './lib/esm/'",
59
- "copyIcons": "@powershell cp -R './components/icons/*.svg' './lib/esm/components/icons/'",
60
- "copyIcons2": "@powershell cp -R './components/icons/*.png' './lib/esm/components/icons/'",
61
- "build": "tsc -P tsconfig.build.json",
62
- "publish-lib": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 && yarn publish ./lib/esm",
63
- "publish-dryrun": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 && yarn publish ./lib/esm --dry-run"
64
- }
65
- }
1
+ {
2
+ "name": "d2coreui",
3
+ "version": "23.0.52",
4
+ "description": "Core UI components and utilities library.",
5
+ "author": "Ipesoft s.r.o.",
6
+ "license": "MIT",
7
+ "resolutions": {
8
+ "@types/react": "18.3.7",
9
+ "dayjs": "1.11.13"
10
+ },
11
+ "dependencies": {
12
+ "@ant-design/compatible": "5.1.4",
13
+ "@ant-design/dark-theme": "2.0.2",
14
+ "@ant-design/icons": "5.6.1",
15
+ "@types/codemirror": "5.60.15",
16
+ "@types/draft-convert": "2.1.8",
17
+ "@types/draft-js": "0.11.18",
18
+ "@types/lodash": "4.17.5",
19
+ "@types/pdfmake": "0.2.13",
20
+ "@types/react": "18.3.7",
21
+ "@types/react-collapse": "5.0.4",
22
+ "@types/react-color": "3.0.12",
23
+ "@types/react-dom": "18.3.0",
24
+ "@types/react-resizable": "3.0.7",
25
+ "ag-grid-community": "34.3.1",
26
+ "ag-grid-react": "34.3.1",
27
+ "antd": "5.29.3",
28
+ "antd-style": "4.1.0",
29
+ "codemirror": "5.65.20",
30
+ "dayjs": "1.11.13",
31
+ "dom-scroll-into-view": "2.0.1",
32
+ "draft-convert": "2.1.12",
33
+ "draft-js": "0.11.0",
34
+ "draftail": "1.4.1",
35
+ "filtrex": "2.2.3",
36
+ "flexlayout-react": "0.8.18",
37
+ "lodash": "4.17.23",
38
+ "memoize-one": "6.0.0",
39
+ "parse-decimal-number": "1.0.0",
40
+ "pdfmake": "0.2.23",
41
+ "process": "0.11.10",
42
+ "react-codemirror2": "8.0.0",
43
+ "react-collapse": "5.1.1",
44
+ "react-color": "2.19.3",
45
+ "react-dnd": "10.0.2",
46
+ "react-dnd-html5-backend": "10.0.2",
47
+ "react-drag-listview": "2.0.0",
48
+ "react-draggable": "4.4.6",
49
+ "react-maskinput": "3.2.0",
50
+ "react-resizable": "3.0.5",
51
+ "react-uid": "2.3.3",
52
+ "threads": "1.7.0",
53
+ "ts-key-enum": "2.0.12"
54
+ },
55
+ "scripts": {
56
+ "cleanBuild": "@powershell if (Test-Path \"./lib/esm\") {rm -r ./lib/esm}",
57
+ "copyPackageJson": "@powershell copy './package.json' './lib/esm/'",
58
+ "copyStyles": "@powershell cp -R './style' './lib/esm/'",
59
+ "copyIcons": "@powershell cp -R './components/icons/*.svg' './lib/esm/components/icons/'",
60
+ "copyIcons2": "@powershell cp -R './components/icons/*.png' './lib/esm/components/icons/'",
61
+ "build": "tsc -P tsconfig.build.json",
62
+ "publish-lib": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 && yarn publish ./lib/esm",
63
+ "publish-dryrun": "yarn cleanBuild && yarn build && yarn copyPackageJson && yarn copyStyles && yarn copyIcons && yarn copyIcons2 && yarn publish ./lib/esm --dry-run"
64
+ }
65
+ }