d2coreui 23.0.44 → 23.0.46

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.
Files changed (48) hide show
  1. package/components/date/dateRangeInput.d.ts +4 -0
  2. package/components/date/dateRangeInput.js +315 -46
  3. package/components/date/dateRangeInput.js.map +1 -1
  4. package/components/date/dateRangeInputAdvancedPanel.js +22 -7
  5. package/components/date/dateRangeInputAdvancedPanel.js.map +1 -1
  6. package/components/date/dateRangeInputConfirm.js +16 -3
  7. package/components/date/dateRangeInputConfirm.js.map +1 -1
  8. package/components/date/dateTimeInput.d.ts +37 -6
  9. package/components/date/dateTimeInput.js +295 -184
  10. package/components/date/dateTimeInput.js.map +1 -1
  11. package/components/grid/config/dataGridEditor.d.ts +2 -0
  12. package/components/grid/config/dataGridEditor.js +7 -0
  13. package/components/grid/config/dataGridEditor.js.map +1 -1
  14. package/components/grid/dataGrid.d.ts +4 -0
  15. package/components/grid/dataGrid.js +25 -11
  16. package/components/grid/dataGrid.js.map +1 -1
  17. package/components/grid/export/contextMenu.d.ts +1 -0
  18. package/components/grid/export/contextMenu.js.map +1 -1
  19. package/components/grid/extendedDataGrid.d.ts +2 -0
  20. package/components/grid/extendedDataGrid.js +4 -0
  21. package/components/grid/extendedDataGrid.js.map +1 -1
  22. package/components/input/maskedInput.d.ts +13 -13
  23. package/components/modal/impl/draggableModal.d.ts +1 -1
  24. package/components/modal/impl/draggableModal.js +0 -1
  25. package/components/modal/impl/draggableModal.js.map +1 -1
  26. package/components/modal/impl/draggableModalInner.d.ts +1 -1
  27. package/components/modal/impl/draggableModalInner.js +28 -5
  28. package/components/modal/impl/draggableModalInner.js.map +1 -1
  29. package/components/modal/impl/draggableModalReducer.d.ts +10 -0
  30. package/components/modal/impl/draggableModalReducer.js +18 -1
  31. package/components/modal/impl/draggableModalReducer.js.map +1 -1
  32. package/components/modal/impl/draggableModalStyles.d.ts +19 -0
  33. package/components/modal/impl/draggableModalStyles.js +140 -0
  34. package/components/modal/impl/draggableModalStyles.js.map +1 -0
  35. package/components/modal/impl/resizeHandle.d.ts +4 -2
  36. package/components/modal/impl/resizeHandle.js +16 -3
  37. package/components/modal/impl/resizeHandle.js.map +1 -1
  38. package/components/modal/modalDialog.d.ts +3 -8
  39. package/components/modal/modalDialog.js.map +1 -1
  40. package/components/style/withCss.d.ts +14 -4
  41. package/components/style/withCss.js +6 -2
  42. package/components/style/withCss.js.map +1 -1
  43. package/i18n/components.cs.json +3 -0
  44. package/i18n/components.sk.json +3 -0
  45. package/i18n/components.uk.json +3 -0
  46. package/package.json +1 -1
  47. package/style/modal/DraggableModal.css +0 -40
  48. package/style/modal/ResizeHandle.css +0 -27
@@ -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;AAU9D,MAAM,CAAC,OAAO,UAAU,OAAO,CAA4B,EAAC,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAsB;IACxG,MAAM,WAAW,GAAG,UAAU,CAAC,uBAAuB,CAAC,CAAC;IACxD,MAAM,UAAU,GAAG,CAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,IAAI,MAAI,WAAW,aAAX,WAAW,uBAAX,WAAW,CAAE,WAAW,CAAA,IAAI,SAAS,CAAC;IACxE,MAAM,GAAG,GAAG,SAAS,iCAAK,KAAK,KAAE,IAAI,EAAE,UAAU,IAAE,CAAC;IACpD,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\n\r\ntype WithCssChildren<T extends BaseReturnType> = (css: ReturnStyles<T>) => any;\r\n\r\ninterface WithCssProperties<T extends BaseReturnType> {\r\n children: WithCssChildren<T>;\r\n useStyles: (props?:any) => ReturnStyles<T>\r\n props?: any;\r\n}\r\n\r\nexport default function WithCss<T extends BaseReturnType> ({useStyles, children, props}:WithCssProperties<T>) {\r\n const contextSize = useContext(SpaceCompactItemContext);\r\n const mergedSize = props?.size || contextSize?.compactSize || 'default';\r\n const css = useStyles({...props, size: mergedSize});\r\n return children(css);\r\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';\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"]}
@@ -33,6 +33,7 @@
33
33
  "Hidden Columns": "Skryté sloupce",
34
34
  "Hide Column": "Skrýt sloupec",
35
35
  "Landscape": "Na šířku",
36
+ "Maximize": "Maximalizovat",
36
37
  "No records found.": "Nebyly nalezeny žádné záznamy.",
37
38
  "No": "Ne",
38
39
  "OK": "Potvrdit",
@@ -47,6 +48,7 @@
47
48
  "Refresh": "Obnovit",
48
49
  "Reset Columns": "Resetovat sloupce",
49
50
  "Reset": "Resetovat",
51
+ "Restore": "Obnovit velikost",
50
52
  "Revert": "Vrátit změny",
51
53
  "Revert configuration to predefined state": "Vrátit konfiguraci do výchozího nastavení",
52
54
  "Revert filter to original state": "Vrátit filtr do původního nastavení",
@@ -56,6 +58,7 @@
56
58
  "Search": "Vyhledat",
57
59
  "Set No Color": "Nastavit žádnou barvu",
58
60
  "Show time with milliseconds": "Zobrazit čas s milisekundami",
61
+ "Show time with time zone": "Zobrazit čas s časovou zónou",
59
62
  "Show time with year": "Zobrazit čas s rokem",
60
63
  "Show/Hide filter panel": "Zobrazit/skrýt panel s filtrem",
61
64
  "Show/Hide panel with modified filter": "Zobrazit/skrýt panel s modifikovaným filtrem",
@@ -33,6 +33,7 @@
33
33
  "Hidden Columns": "Skryté stĺpce",
34
34
  "Hide Column": "Skryť stĺpec",
35
35
  "Landscape": "Na šírku",
36
+ "Maximize": "Maximalizovať",
36
37
  "No records found.": "Neboli nájdené žiadne záznamy.",
37
38
  "No": "Nie",
38
39
  "OK": "Potvrdiť",
@@ -47,6 +48,7 @@
47
48
  "Refresh": "Obnoviť",
48
49
  "Reset Columns": "Resetovať stĺpce",
49
50
  "Reset": "Resetovať",
51
+ "Restore": "Obnoviť veľkosť",
50
52
  "Revert": "Vrátiť zmeny",
51
53
  "Revert configuration to predefined state": "Vrátiť konfiguráciu do predvoleného nastavenia",
52
54
  "Revert filter to original state": "Vrátiť filter do pôvodného nastavenia",
@@ -56,6 +58,7 @@
56
58
  "Search": "Vyhľadať",
57
59
  "Set No Color": "Nastaviť žiadnu farbu",
58
60
  "Show time with milliseconds": "Zobraziť čas s milisekundami",
61
+ "Show time with time zone": "Zobraziť čas s časovou zónou",
59
62
  "Show time with year": "Zobraziť čas s rokom",
60
63
  "Show/Hide filter panel": "Zobraziť/skryť panel s filtrom",
61
64
  "Show/Hide panel with modified filter": "Zobraziť/skryť panel s modifikovaným filtrom",
@@ -33,6 +33,7 @@
33
33
  "Hidden Columns": "Приховані колонки",
34
34
  "Hide Column": "Сховати стовпець",
35
35
  "Landscape": "По ширині",
36
+ "Maximize": "Розгорнути",
36
37
  "No records found.": "Записів не знайдено.",
37
38
  "No": "ні",
38
39
  "OK": "Підтвердити",
@@ -47,6 +48,7 @@
47
48
  "Refresh": "Відновити",
48
49
  "Reset Columns": "Скинути стовпці",
49
50
  "Reset": "Скинути",
51
+ "Restore": "Відновити розмір",
50
52
  "Revert": "Скасувати зміни",
51
53
  "Revert configuration to predefined state": "Поверніть конфігурацію до налаштувань за замовчуванням",
52
54
  "Revert filter to original state": "Поверніть фільтр до початкових налаштувань",
@@ -56,6 +58,7 @@
56
58
  "Search": "Подивіться вгору",
57
59
  "Set No Color": "Не встановлюйте колір",
58
60
  "Show time with milliseconds": "Показувати час у мілісекундах",
61
+ "Show time with time zone": "Показувати час із часовим поясом",
59
62
  "Show time with year": "Покажіть час роком",
60
63
  "Show/Hide filter panel": "Показати/сховати панель фільтрів",
61
64
  "Show/Hide panel with modified filter": "Показати/сховати панель із зміненим фільтром",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "d2coreui",
3
- "version": "23.0.44",
3
+ "version": "23.0.46",
4
4
  "description": "Core UI components and utilities library.",
5
5
  "author": "Ipesoft s.r.o.",
6
6
  "license": "MIT",
@@ -1,40 +0,0 @@
1
- .ant-design-draggable-modal {
2
- overflow: hidden !important;
3
- }
4
-
5
- .ant-design-draggable-modal .ant-modal {
6
- display: flex;
7
- max-width: none;
8
- transform-origin: 50% 50% !important;
9
- }
10
-
11
- .ant-design-draggable-modal .ant-modal-content {
12
- flex: 1;
13
- display: flex;
14
- flex-direction: column;
15
- height: 100%;
16
- width: 100%;
17
- padding: 0;
18
- }
19
-
20
- .ant-design-draggable-modal .ant-modal-header {
21
- flex: 0;
22
- padding: 0;
23
- }
24
-
25
- .ant-design-draggable-modal .ant-modal-footer {
26
- flex: 0;
27
- padding: 16px;
28
- margin-top: 0;
29
- }
30
-
31
- .ant-design-draggable-modal .ant-design-draggable-modal-title {
32
- cursor: move;
33
- padding: 16px;
34
- }
35
-
36
- .ant-design-draggable-modal .ant-modal-body {
37
- flex: 1;
38
- overflow-y: auto;
39
- padding: 16px;
40
- }
@@ -1,27 +0,0 @@
1
- .ant-design-draggable-modal-resize-handle-inner {
2
- width: 12px;
3
- right: 14px;
4
- border: 2px solid grey;
5
- height: 12px;
6
- bottom: 14px;
7
- position: absolute;
8
- border-top: 0;
9
- border-left: 0;
10
- }
11
-
12
- .ant-design-draggable-modal-resize-handle {
13
- right: -10px;
14
- width: 44px;
15
- bottom: -10px;
16
- cursor: se-resize;
17
- height: 44px;
18
- position: absolute;
19
- }
20
-
21
- .ant-modal > div{
22
- width: 100%;
23
- }
24
-
25
- .ant-modal-content {
26
- resize: both;
27
- }