@solidxai/core-ui 0.1.9-beta.11 → 0.1.9-beta.13

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 (101) hide show
  1. package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
  2. package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
  3. package/dist/components/auth/SolidOTPVerify.js +67 -0
  4. package/dist/components/auth/SolidOTPVerify.js.map +1 -0
  5. package/dist/components/auth/SolidOTPVerify.tsx +133 -0
  6. package/dist/components/common/AuthBanner.js.map +1 -1
  7. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +2 -0
  8. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -0
  9. package/dist/components/core/common/LoadDynamicJsxComponent.js +50 -0
  10. package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
  11. package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
  12. package/dist/components/core/form/SolidFormFooter.js +1 -1
  13. package/dist/components/core/form/SolidFormFooter.js.map +1 -1
  14. package/dist/components/core/form/SolidFormFooter.tsx +1 -1
  15. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  16. package/dist/components/core/form/SolidFormView.js +3 -2
  17. package/dist/components/core/form/SolidFormView.js.map +1 -1
  18. package/dist/components/core/form/SolidFormView.tsx +3 -1
  19. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -1
  20. package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -1
  21. package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +2 -1
  22. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -1
  23. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +2 -2
  24. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -1
  25. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +10 -21
  26. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -1
  27. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +2 -2
  28. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -1
  29. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +10 -18
  30. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
  31. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +6 -3
  32. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
  33. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +24 -30
  34. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -1
  35. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +2 -2
  36. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  37. package/dist/components/core/list/SolidListView.js +2 -0
  38. package/dist/components/core/list/SolidListView.js.map +1 -1
  39. package/dist/components/core/list/SolidListView.tsx +2 -0
  40. package/dist/components/core/list/SolidListViewColumn.d.ts +2 -1
  41. package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -1
  42. package/dist/components/core/list/SolidListViewColumn.js +2 -2
  43. package/dist/components/core/list/SolidListViewColumn.js.map +1 -1
  44. package/dist/components/core/list/SolidListViewColumn.tsx +4 -3
  45. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +1 -1
  46. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -1
  47. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +7 -6
  48. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -1
  49. package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +10 -9
  50. package/dist/components/core/list/columns/SolidRelationColumn.d.ts +1 -1
  51. package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -1
  52. package/dist/components/core/list/columns/SolidRelationColumn.js +2 -2
  53. package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -1
  54. package/dist/components/core/list/columns/SolidRelationColumn.tsx +2 -2
  55. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts +2 -2
  56. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
  57. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +9 -4
  58. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
  59. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +14 -4
  60. package/dist/nextAuth/authProviders.d.ts +4 -0
  61. package/dist/nextAuth/authProviders.d.ts.map +1 -0
  62. package/dist/nextAuth/authProviders.js +198 -0
  63. package/dist/nextAuth/authProviders.js.map +1 -0
  64. package/dist/nextAuth/authProviders.tsx +232 -0
  65. package/dist/nextAuth/handleLogout.d.ts +2 -0
  66. package/dist/nextAuth/handleLogout.d.ts.map +1 -0
  67. package/dist/nextAuth/handleLogout.js +36 -0
  68. package/dist/nextAuth/handleLogout.js.map +1 -0
  69. package/dist/nextAuth/handleLogout.tsx +39 -0
  70. package/dist/nextAuth/refreshAccessToken.d.ts +2 -0
  71. package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -0
  72. package/dist/nextAuth/refreshAccessToken.js +24 -0
  73. package/dist/nextAuth/refreshAccessToken.js.map +1 -0
  74. package/dist/nextAuth/refreshAccessToken.tsx +28 -0
  75. package/dist/redux/features/settingsSlice.d.ts +20 -0
  76. package/dist/redux/features/settingsSlice.d.ts.map +1 -0
  77. package/dist/redux/features/settingsSlice.js +39 -0
  78. package/dist/redux/features/settingsSlice.js.map +1 -0
  79. package/dist/redux/features/settingsSlice.ts +60 -0
  80. package/dist/types/solid-core.d.ts +1 -0
  81. package/package.json +1 -1
  82. package/dist/components/core/list/SolidDataTablePagination.d.ts +0 -15
  83. package/dist/components/core/list/SolidDataTablePagination.d.ts.map +0 -1
  84. package/dist/components/core/list/SolidDataTablePagination.js +0 -22
  85. package/dist/components/core/list/SolidDataTablePagination.js.map +0 -1
  86. package/dist/components/core/list/SolidDataTablePagination.tsx +0 -71
  87. package/dist/components/solid-ui/SolidButton.d.ts +0 -14
  88. package/dist/components/solid-ui/SolidButton.d.ts.map +0 -1
  89. package/dist/components/solid-ui/SolidButton.js +0 -36
  90. package/dist/components/solid-ui/SolidButton.js.map +0 -1
  91. package/dist/components/solid-ui/SolidButton.tsx +0 -54
  92. package/dist/components/solid-ui/SolidTabs.d.ts +0 -18
  93. package/dist/components/solid-ui/SolidTabs.d.ts.map +0 -1
  94. package/dist/components/solid-ui/SolidTabs.js +0 -22
  95. package/dist/components/solid-ui/SolidTabs.js.map +0 -1
  96. package/dist/components/solid-ui/SolidTabs.tsx +0 -73
  97. package/dist/components/solid-ui/index.d.ts +0 -3
  98. package/dist/components/solid-ui/index.d.ts.map +0 -1
  99. package/dist/components/solid-ui/index.js +0 -3
  100. package/dist/components/solid-ui/index.js.map +0 -1
  101. package/dist/components/solid-ui/index.ts +0 -2
@@ -1,6 +1,7 @@
1
1
 
2
2
  import { useState } from 'react';
3
3
  import { SolidKanbanViewFieldsParams } from '../SolidKanbanViewFields';
4
+ import { Dialog } from 'primereact/dialog';
4
5
  import { Document, Page } from "react-pdf";
5
6
  import { PDFSvg } from '../../../../components/Svg/PDFSvg';
6
7
  import MP3Image from '../../../../resources/images/fileTypes/Mp3.png'
@@ -8,18 +9,29 @@ import MP4Image from '../../../../resources/images/fileTypes/Mp4.png'
8
9
  import FileImage from '../../../../resources/images/fileTypes/File.png'
9
10
  import Image from "../../../common/Image";
10
11
  import { ExcelSvg } from '../../../../components/Svg/ExcelSvg';
11
- import {
12
- SolidDialog,
13
- SolidDialogBody,
14
- SolidDialogClose,
15
- SolidDialogHeader,
16
- SolidDialogTitle,
17
- } from "../../../shad-cn-ui";
18
12
  const SolidShortTextKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout, data, setLightboxUrls, setOpenLightbox, groupedView }: SolidKanbanViewFieldsParams) => {
19
13
  const [visible, setVisible] = useState(false);
20
14
  const widget = fieldLayout?.attrs?.widget ? fieldLayout?.attrs?.widget : "text";
21
15
  const mimeType = data && data?.mimeType
22
16
  const fileName = data?.originalFileName;
17
+ const PDFHeader = () => {
18
+ return (
19
+ <div className='flex justify-content-between align-items-center'>
20
+ <p className='m-0'>
21
+ {fileName}
22
+ </p>
23
+ <a
24
+ href={data[fieldMetadata.name]}
25
+ download={fileName}
26
+ target="_blank"
27
+ rel="noopener noreferrer"
28
+ className='mr-4'
29
+ >
30
+ <i className='pi pi-download' />
31
+ </a>
32
+ </div>
33
+ )
34
+ }
23
35
  return (
24
36
  <div className={`${fieldLayout?.attrs?.className ? ` ${fieldLayout.attrs.className}` : ""}`}>
25
37
  {widget === "text" && groupedView &&
@@ -49,29 +61,11 @@ const SolidShortTextKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fie
49
61
  <div className='kanban-media-view-card' onClick={() => setVisible(true)} style={{ cursor: 'pointer' }}>
50
62
  <PDFSvg />
51
63
  </div>
52
- <SolidDialog open={visible} onOpenChange={setVisible} className="solid-kanban-preview-dialog">
53
- <SolidDialogHeader className="solid-kanban-preview-dialog-header">
54
- <div className="solid-kanban-preview-dialog-title-row">
55
- <SolidDialogTitle>{fileName}</SolidDialogTitle>
56
- <a
57
- href={data[fieldMetadata.name]}
58
- download={fileName}
59
- target="_blank"
60
- rel="noopener noreferrer"
61
- className="solid-kanban-preview-download"
62
- onClick={(event) => event.stopPropagation()}
63
- >
64
- <i className='pi pi-download' />
65
- </a>
66
- <SolidDialogClose />
67
- </div>
68
- </SolidDialogHeader>
69
- <SolidDialogBody className="solid-kanban-preview-dialog-body">
70
- <Document file={data[fieldMetadata.name]}>
71
- <Page pageNumber={1} />
72
- </Document>
73
- </SolidDialogBody>
74
- </SolidDialog>
64
+ <Dialog header={<PDFHeader />} visible={visible} style={{ width: "" }} onHide={() => setVisible(false)} modal>
65
+ <Document file={data[fieldMetadata.name]}>
66
+ <Page pageNumber={1} />
67
+ </Document>
68
+ </Dialog>
75
69
  </div>
76
70
  )}
77
71
 
@@ -1 +1 @@
1
- {"version":3,"file":"SolidRelationManyToOneKanbanField.js","sourceRoot":"","sources":["../../../../../../src/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx"],"names":[],"mappings":";AAOA,IAAM,iCAAiC,GAAG,UAAC,EAAyF;QAAvF,uBAAuB,6BAAA,EAAE,aAAa,mBAAA,EAAE,WAAW,iBAAA,EAAC,IAAI,UAAA;IAEjG,OAAO,CACJ,mBAAK,CACP,CAAC;AAEN,CAAC,CAAC;AAEF,eAAe,iCAAiC,CAAC","sourcesContent":["\nimport { FilterMatchMode } from 'primereact/api';\nimport { Column, ColumnFilterElementTemplateOptions } from \"primereact/column\";\nimport { FormEvent } from \"primereact/ts-helpers\";\nimport { InputTypes, SolidVarInputsFilterElement } from '../../../../../components/core/filter/SolidVarInputsFilterElement';\nimport { SolidKanbanViewFieldsParams } from '../../../../../components/core/kanban/SolidKanbanViewFields';\n\nconst SolidRelationManyToOneKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data }: SolidKanbanViewFieldsParams) => {\n \n return (\n <></>\n );\n\n};\n\nexport default SolidRelationManyToOneKanbanField;\n"]}
1
+ {"version":3,"file":"SolidRelationManyToOneKanbanField.js","sourceRoot":"","sources":["../../../../../../src/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx"],"names":[],"mappings":";AAOA,IAAM,iCAAiC,GAAG,UAAC,EAAyF;QAAvF,uBAAuB,6BAAA,EAAE,aAAa,mBAAA,EAAE,WAAW,iBAAA,EAAC,IAAI,UAAA;IAEjG,OAAO,CACJ,mBAAK,CACP,CAAC;AAEN,CAAC,CAAC;AAEF,eAAe,iCAAiC,CAAC","sourcesContent":["\nimport { FilterMatchMode } from 'primereact/api';\nimport { Column, ColumnFilterElementTemplateOptions } from \"primereact/column\";\nimport { FormEvent } from \"primereact/ts-helpers\";\nimport { InputTypes, SolidVarInputsFilterElement } from '../../../../../components/core/kanban/SolidVarInputsFilterElement';\nimport { SolidKanbanViewFieldsParams } from '../../../../../components/core/kanban/SolidKanbanViewFields';\n\nconst SolidRelationManyToOneKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data }: SolidKanbanViewFieldsParams) => {\n \n return (\n <></>\n );\n\n};\n\nexport default SolidRelationManyToOneKanbanField;"]}
@@ -2,7 +2,7 @@
2
2
  import { FilterMatchMode } from 'primereact/api';
3
3
  import { Column, ColumnFilterElementTemplateOptions } from "primereact/column";
4
4
  import { FormEvent } from "primereact/ts-helpers";
5
- import { InputTypes, SolidVarInputsFilterElement } from '../../../../../components/core/filter/SolidVarInputsFilterElement';
5
+ import { InputTypes, SolidVarInputsFilterElement } from '../../../../../components/core/kanban/SolidVarInputsFilterElement';
6
6
  import { SolidKanbanViewFieldsParams } from '../../../../../components/core/kanban/SolidKanbanViewFields';
7
7
 
8
8
  const SolidRelationManyToOneKanbanField = ({ solidKanbanViewMetaData, fieldMetadata, fieldLayout,data }: SolidKanbanViewFieldsParams) => {
@@ -13,4 +13,4 @@ const SolidRelationManyToOneKanbanField = ({ solidKanbanViewMetaData, fieldMetad
13
13
 
14
14
  };
15
15
 
16
- export default SolidRelationManyToOneKanbanField;
16
+ export default SolidRelationManyToOneKanbanField;
@@ -1 +1 @@
1
- {"version":3,"file":"SolidListView.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListView.tsx"],"names":[],"mappings":";AAwDA,eAAO,MAAM,+BAA+B,WAgB3C,CAAC;AAGF,eAAO,MAAM,oCAAoC,QAAS,MAAM,QAgB/D,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAAiB,GAAG,kBAU7D,CAAC;AAGF,eAAO,MAAM,kCAAkC,QAAS,MAAM,eAAe,GAAG,kBAU/E,CAAC;AAEF,KAAK,mBAAmB,GAA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B,YAAY,EAAE,OAAO,CAAC;QACtB,OAAO,EAAE,GAAG,CAAC;QACb,gBAAgB,EAAE,GAAG,CAAC;QACtB,QAAQ,EAAE,GAAG,EAAE,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,aAAa,qHA0oDxB,CAAC"}
1
+ {"version":3,"file":"SolidListView.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListView.tsx"],"names":[],"mappings":";AAwDA,eAAO,MAAM,+BAA+B,WAgB3C,CAAC;AAGF,eAAO,MAAM,oCAAoC,QAAS,MAAM,QAgB/D,CAAC;AAEF,eAAO,MAAM,6BAA6B,gBAAiB,GAAG,kBAU7D,CAAC;AAGF,eAAO,MAAM,kCAAkC,QAAS,MAAM,eAAe,GAAG,kBAU/E,CAAC;AAEF,KAAK,mBAAmB,GAAG;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,6BAA6B,CAAC,EAAE,GAAG,CAAC;IACpC,8BAA8B,CAAC,EAAE,GAAG,CAAC;IACrC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,YAAY,CAAC,EAAE,GAAG,CAAC;IACnB,iBAAiB,CAAC,EAAE,GAAG,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,mBAAmB,GAAG;IAChC;;;;;OAKG;IACH,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB;;;;OAIG;IACH,YAAY,EAAE,MAAM,IAAI,CAAC;IACzB;;;;;;OAMG;IACH,WAAW,EAAE,CAAC,MAAM,EAAE;QACpB,uBAAuB,CAAC,EAAE,GAAG,CAAC;QAC9B,gBAAgB,CAAC,EAAE,GAAG,CAAC;QACvB,sBAAsB,CAAC,EAAE,GAAG,CAAC;QAC7B,2BAA2B,CAAC,EAAE,GAAG,CAAC;KACnC,KAAK,IAAI,CAAC;IACX;;;;OAIG;IACH,aAAa,EAAE,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7D;;;OAGG;IACH,OAAO,EAAE,CAAC,aAAa,EAAE,MAAM,EAAE,aAAa,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,KAAK,IAAI,CAAC;IACpE;;;OAGG;IACH,eAAe,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAC1C;;;OAGG;IACH,QAAQ,EAAE,MAAM;QACd,KAAK,EAAE,MAAM,CAAC;QACd,IAAI,EAAE,MAAM,CAAC;QACb,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACtB,YAAY,EAAE,OAAO,CAAC;QACtB,OAAO,EAAE,GAAG,CAAC;QACb,gBAAgB,EAAE,GAAG,CAAC;QACtB,QAAQ,EAAE,GAAG,EAAE,CAAC;QAChB,YAAY,EAAE,MAAM,CAAC;QACrB,OAAO,EAAE,OAAO,CAAC;KAClB,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,aAAa,qHA4oDxB,CAAC"}
@@ -951,6 +951,7 @@ export var SolidListView = forwardRef(function (params, ref) {
951
951
  column: column,
952
952
  setLightboxUrls: setLightboxUrls,
953
953
  setOpenLightbox: setOpenLightbox,
954
+ embeded: params.embeded
954
955
  });
955
956
  }
956
957
  else {
@@ -964,6 +965,7 @@ export var SolidListView = forwardRef(function (params, ref) {
964
965
  column: column,
965
966
  setLightboxUrls: setLightboxUrls,
966
967
  setOpenLightbox: setOpenLightbox,
968
+ embeded: params.embeded
967
969
  });
968
970
  }
969
971
  });