@solidstarters/solid-core-ui 1.1.37 → 1.1.38
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/dist/components/common/SolidBreadcrumb.d.ts +1 -1
- package/dist/components/common/SolidBreadcrumb.d.ts.map +1 -1
- package/dist/components/common/SolidBreadcrumb.js +5 -3
- package/dist/components/common/SolidBreadcrumb.js.map +1 -1
- package/dist/components/common/SolidFormHeader.d.ts +9 -0
- package/dist/components/common/SolidFormHeader.d.ts.map +1 -0
- package/dist/components/common/SolidFormHeader.js +22 -0
- package/dist/components/common/SolidFormHeader.js.map +1 -0
- package/dist/components/common/SolidFormStepper.d.ts +8 -1
- package/dist/components/common/SolidFormStepper.d.ts.map +1 -1
- package/dist/components/common/SolidFormStepper.js +144 -7
- package/dist/components/common/SolidFormStepper.js.map +1 -1
- package/dist/components/common/SolidModuleHome.d.ts +6 -0
- package/dist/components/common/SolidModuleHome.d.ts.map +1 -0
- package/dist/components/common/SolidModuleHome.js +12 -0
- package/dist/components/common/SolidModuleHome.js.map +1 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +22 -15
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +2 -2
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/module/CreateModule.d.ts.map +1 -1
- package/dist/components/core/module/CreateModule.js +2 -2
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +2 -2
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/redux/api/solidEntityApi.d.ts +1 -0
- package/dist/redux/api/solidEntityApi.d.ts.map +1 -1
- package/dist/redux/api/solidEntityApi.js +10 -0
- package/dist/redux/api/solidEntityApi.js.map +1 -1
- package/dist/resources/globals.css +115 -9
- package/package.json +1 -1
- package/src/components/common/SolidBreadcrumb.tsx +5 -4
- package/src/components/common/SolidFormHeader.tsx +22 -0
- package/src/components/common/SolidFormStepper.tsx +208 -56
- package/src/components/common/SolidModuleHome.tsx +68 -0
- package/src/components/core/form/SolidFormView.tsx +14 -6
- package/src/components/core/model/CreateModel.tsx +2 -1
- package/src/components/core/module/CreateModule.tsx +2 -1
- package/src/components/core/users/CreateUser.tsx +4 -3
- package/src/index.ts +1 -0
- package/src/redux/api/solidEntityApi.tsx +7 -1
- package/src/resources/globals.css +115 -9
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
import { BackButton } from "@/components/common/BackButton";
|
|
3
3
|
import { CancelButton } from "@/components/common/CancelButton";
|
|
4
4
|
import { SolidBreadcrumb } from "@/components/common/SolidBreadcrumb";
|
|
5
|
+
import { SolidFormHeader } from "@/components/common/SolidFormHeader";
|
|
5
6
|
import { SolidFormStepper } from "@/components/common/SolidFormStepper";
|
|
6
7
|
import { useRegisterPrivateMutation, useUpdateUserMutation } from "@/redux/api/authApi";
|
|
7
8
|
import { useGetrolesQuery } from "@/redux/api/roleApi";
|
|
@@ -269,7 +270,7 @@ const CreateUser = ({ data, params }: any) => {
|
|
|
269
270
|
</>
|
|
270
271
|
)}
|
|
271
272
|
</div>
|
|
272
|
-
<
|
|
273
|
+
<SolidFormHeader />
|
|
273
274
|
{/* <div className="solid-form-stepper">
|
|
274
275
|
<SolidFormStepper />
|
|
275
276
|
</div> */}
|
|
@@ -399,10 +400,10 @@ const CreateUser = ({ data, params }: any) => {
|
|
|
399
400
|
|
|
400
401
|
</div>
|
|
401
402
|
</Panel>
|
|
402
|
-
|
|
403
|
+
|
|
403
404
|
{/* <Divider /> */}
|
|
404
405
|
{/* <p className="form-wrapper-heading text-base" style={{ fontSize: 16 }}>Roles</p> */}
|
|
405
|
-
|
|
406
|
+
|
|
406
407
|
<Panel toggleable header="Roles" className="solid-column-panel mt-5">
|
|
407
408
|
<div className="formgrid grid mt-4">
|
|
408
409
|
{rolesData?.data?.records && rolesData?.data?.records.map((role: any, i: number) => (
|
package/src/index.ts
CHANGED
|
@@ -281,6 +281,7 @@ export { SolidKanbanView } from '@/components/core/kanban/SolidKanbanView';
|
|
|
281
281
|
|
|
282
282
|
// export * from '@/components/core/kanban/columns/relations/SolidRelationManyToOneColumn';
|
|
283
283
|
|
|
284
|
+
export { SolidModuleHome } from '@/components/common/SolidModuleHome';
|
|
284
285
|
export { SolidListView } from '@/components/core/list/SolidListView';
|
|
285
286
|
export { SolidListViewColumn, getNumberOfInputs } from '@/components/core/list/SolidListViewColumn';
|
|
286
287
|
export type { SolidListViewColumnParams } from '@/components/core/list/SolidListViewColumn';
|
|
@@ -78,7 +78,13 @@ export const createSolidEntityApi = (entityName: string) => {
|
|
|
78
78
|
method: 'POST',
|
|
79
79
|
body: data
|
|
80
80
|
})
|
|
81
|
-
|
|
81
|
+
}),
|
|
82
|
+
patchUpdateSolidEntity: builder.mutation({
|
|
83
|
+
query: ({ id, data }) => ({
|
|
84
|
+
url: `/${kebabEntityName}/${id}`,
|
|
85
|
+
method: 'PATCH',
|
|
86
|
+
body: data,
|
|
87
|
+
}),
|
|
82
88
|
}),
|
|
83
89
|
}),
|
|
84
90
|
});
|
|
@@ -1664,11 +1664,12 @@ li.header-li-px {
|
|
|
1664
1664
|
}
|
|
1665
1665
|
|
|
1666
1666
|
.solid-form-wrapper .solid-form-content {
|
|
1667
|
-
height: calc(100vh -
|
|
1667
|
+
height: calc(100vh - 115px);
|
|
1668
|
+
/* height: calc(100vh - 111px); */
|
|
1668
1669
|
/* If No Breadcrumb */
|
|
1669
1670
|
/* height: calc(100vh - 64px); */
|
|
1670
1671
|
/* if Stepper */
|
|
1671
|
-
/* height: calc(100vh -
|
|
1672
|
+
/* height: calc(100vh - 127px); */
|
|
1672
1673
|
overflow-y: auto;
|
|
1673
1674
|
}
|
|
1674
1675
|
|
|
@@ -1682,18 +1683,27 @@ li.header-li-px {
|
|
|
1682
1683
|
|
|
1683
1684
|
.solid-form-stepper {
|
|
1684
1685
|
padding: 7.5px 14px 7.5px 24px;
|
|
1685
|
-
background-color:
|
|
1686
|
+
background-color: #fff;
|
|
1687
|
+
/* background-color: var(--solid-light-100); */
|
|
1686
1688
|
border-top: 1px solid var(--primary-light-color);
|
|
1687
1689
|
border-bottom: 1px solid var(--primary-light-color);
|
|
1688
1690
|
}
|
|
1689
1691
|
|
|
1692
|
+
.solid-dynamic-breadcrumb-stepper {
|
|
1693
|
+
height: 50px;
|
|
1694
|
+
border-bottom: 1px solid var(--primary-light-color);
|
|
1695
|
+
padding: 0.8rem 1.5rem;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1690
1698
|
.solid-breadcrumb.p-breadcrumb {
|
|
1691
|
-
border-bottom: 1px solid #CED0D6;
|
|
1699
|
+
/* border-bottom: 1px solid #CED0D6; */
|
|
1700
|
+
border-bottom: none;
|
|
1692
1701
|
border-right: none;
|
|
1693
1702
|
border-left: none;
|
|
1694
1703
|
border-top: none;
|
|
1695
1704
|
border-radius: 0;
|
|
1696
|
-
padding: 0
|
|
1705
|
+
padding: 0;
|
|
1706
|
+
/* padding: 0.8rem 1.5rem; */
|
|
1697
1707
|
font-size: 14px;
|
|
1698
1708
|
font-weight: 500;
|
|
1699
1709
|
text-transform: capitalize;
|
|
@@ -1730,17 +1740,112 @@ li.header-li-px {
|
|
|
1730
1740
|
margin-top: 10px;
|
|
1731
1741
|
}
|
|
1732
1742
|
|
|
1743
|
+
|
|
1744
|
+
.solid-dynamic-stepper {
|
|
1745
|
+
overflow: hidden;
|
|
1746
|
+
border-radius: 6px;
|
|
1747
|
+
border: 1px solid var(--solid-stepper-border);
|
|
1748
|
+
}
|
|
1749
|
+
|
|
1750
|
+
.active-step-arrow {
|
|
1751
|
+
left: -21px;
|
|
1752
|
+
z-index: 9999;
|
|
1753
|
+
top: 50%;
|
|
1754
|
+
transform: translateY(-38%);
|
|
1755
|
+
}
|
|
1756
|
+
|
|
1757
|
+
.active-before-step-arrow {
|
|
1758
|
+
left: -18px;
|
|
1759
|
+
z-index: 9999;
|
|
1760
|
+
top: 50%;
|
|
1761
|
+
transform: translateY(-38%);
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
.inactive-step-arrow {
|
|
1765
|
+
right: 2px;
|
|
1766
|
+
z-index: 999;
|
|
1767
|
+
top: 50%;
|
|
1768
|
+
transform: translateY(-37%);
|
|
1769
|
+
}
|
|
1770
|
+
|
|
1733
1771
|
.solid-step-button.p-button {
|
|
1734
1772
|
position: relative;
|
|
1735
|
-
min-width:
|
|
1773
|
+
min-width: 110px;
|
|
1736
1774
|
display: flex;
|
|
1737
1775
|
justify-content: center;
|
|
1776
|
+
padding-top: 8px;
|
|
1777
|
+
padding-bottom: 8px;
|
|
1778
|
+
font-size: 0.875rem;
|
|
1779
|
+
border-radius: 0;
|
|
1780
|
+
border: none;
|
|
1738
1781
|
}
|
|
1739
1782
|
|
|
1783
|
+
.solid-step-button.p-button-primary {
|
|
1784
|
+
padding-right: 0;
|
|
1785
|
+
}
|
|
1740
1786
|
|
|
1741
|
-
.solid-step-button.p-button:
|
|
1742
|
-
padding-left:
|
|
1743
|
-
min-width:
|
|
1787
|
+
.solid-step-button.p-button-secondary:first-child {
|
|
1788
|
+
padding-left: 0;
|
|
1789
|
+
min-width: 100px;
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
/* .solid-step-button.p-button.p-button-text:first-child {
|
|
1793
|
+
padding-left: 16px !important;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
.solid-step-button.p-button.p-button-text:not(:first-child) {
|
|
1797
|
+
padding-left: 0px !important;
|
|
1798
|
+
} */
|
|
1799
|
+
|
|
1800
|
+
.solid-step-button.p-button-secondary {
|
|
1801
|
+
background-color: #EAEDF1;
|
|
1802
|
+
color: #0D0B26;
|
|
1803
|
+
padding-right: 0;
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
.solid-step-button.p-button-secondary.p-button:not(:disabled):active {
|
|
1807
|
+
background: #EAEDF1;
|
|
1808
|
+
color: #0D0B26;
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
.solid-step-button.p-button-secondary.p-button:not(:disabled):hover {
|
|
1812
|
+
background: #EAEDF1;
|
|
1813
|
+
color: #0D0B26;
|
|
1814
|
+
}
|
|
1815
|
+
|
|
1816
|
+
.solid-step-button.p-button:not(:disabled):active {
|
|
1817
|
+
background: var(--primary-color);
|
|
1818
|
+
color: #ffffff;
|
|
1819
|
+
border-color: var(--primary-color);
|
|
1820
|
+
}
|
|
1821
|
+
|
|
1822
|
+
.solid-step-button.p-button:not(:disabled):hover {
|
|
1823
|
+
background: var(--primary-color);
|
|
1824
|
+
color: #ffffff;
|
|
1825
|
+
border-color: var(--primary-color);
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1828
|
+
.solid-step-button.p-button.p-button-text {
|
|
1829
|
+
background-color: transparent;
|
|
1830
|
+
color: #0D0B26;
|
|
1831
|
+
border: 0;
|
|
1832
|
+
min-width: 130px;
|
|
1833
|
+
/* padding-left: 0; */
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
/* .solid-dynamic-stepper.test .solid-step-button.p-button:nth-child(2) {
|
|
1837
|
+
padding-left: 20px !important;
|
|
1838
|
+
min-width: 130px;
|
|
1839
|
+
} */
|
|
1840
|
+
|
|
1841
|
+
.solid-step-button.p-button.p-button-text:not(:disabled):active {
|
|
1842
|
+
background-color: transparent;
|
|
1843
|
+
color: #0D0B26;
|
|
1844
|
+
}
|
|
1845
|
+
|
|
1846
|
+
.solid-step-button.p-button.p-button-text:not(:disabled):hover {
|
|
1847
|
+
background-color: transparent;
|
|
1848
|
+
color: #0D0B26;
|
|
1744
1849
|
}
|
|
1745
1850
|
|
|
1746
1851
|
.solid-step-button.btn-step-first {
|
|
@@ -2774,6 +2879,7 @@ li.header-li-px {
|
|
|
2774
2879
|
.solid-right-layout .solid-logo {
|
|
2775
2880
|
top: 3rem;
|
|
2776
2881
|
}
|
|
2882
|
+
|
|
2777
2883
|
.customize-layout-panel.p-overlaypanel {
|
|
2778
2884
|
position: absolute;
|
|
2779
2885
|
left: 59% !important;
|