@solidstarters/solid-core-ui 1.0.2 → 1.1.0
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/auth/SolidForgotPassword.d.ts +3 -0
- package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -0
- package/dist/components/auth/SolidForgotPassword.js +108 -0
- package/dist/components/auth/SolidForgotPassword.js.map +1 -0
- package/dist/components/auth/SolidLogin.d.ts +3 -0
- package/dist/components/auth/SolidLogin.d.ts.map +1 -0
- package/dist/components/auth/SolidLogin.js +115 -0
- package/dist/components/auth/SolidLogin.js.map +1 -0
- package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
- package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
- package/dist/components/auth/SolidOTPVerify.js +108 -0
- package/dist/components/auth/SolidOTPVerify.js.map +1 -0
- package/dist/components/auth/SolidRegister.d.ts +3 -0
- package/dist/components/auth/SolidRegister.d.ts.map +1 -0
- package/dist/components/auth/SolidRegister.js +166 -0
- package/dist/components/auth/SolidRegister.js.map +1 -0
- package/dist/components/auth/SolidResetPassword.d.ts +3 -0
- package/dist/components/auth/SolidResetPassword.d.ts.map +1 -0
- package/dist/components/auth/SolidResetPassword.js +119 -0
- package/dist/components/auth/SolidResetPassword.js.map +1 -0
- package/dist/components/core/common/FilterComponent.d.ts +33 -1
- package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
- package/dist/components/core/common/FilterComponent.js +26 -25
- package/dist/components/core/common/FilterComponent.js.map +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.js +3 -3
- package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
- package/dist/components/core/common/SolidCreateButton.js +1 -1
- package/dist/components/core/common/SolidCreateButton.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +14 -9
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidLayoutViews.d.ts +19 -0
- package/dist/components/core/common/SolidLayoutViews.d.ts.map +1 -0
- package/dist/components/core/common/SolidLayoutViews.js +14 -0
- package/dist/components/core/common/SolidLayoutViews.js.map +1 -0
- package/dist/components/core/common/SolidListViewOptions.d.ts +2 -0
- package/dist/components/core/common/SolidListViewOptions.d.ts.map +1 -0
- package/dist/components/core/common/SolidListViewOptions.js +11 -0
- package/dist/components/core/common/SolidListViewOptions.js.map +1 -0
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/filter/columns/SolidBigintField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidBigintField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidBigintField.js +8 -0
- package/dist/components/core/filter/columns/SolidBigintField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidBooleanField.js +27 -0
- package/dist/components/core/filter/columns/SolidBooleanField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidComputedField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidComputedField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidComputedField.js +22 -0
- package/dist/components/core/filter/columns/SolidComputedField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDateField.d.ts +9 -0
- package/dist/components/core/filter/columns/SolidDateField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDateField.js +35 -0
- package/dist/components/core/filter/columns/SolidDateField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.js +24 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDecimalField.js +8 -0
- package/dist/components/core/filter/columns/SolidDecimalField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.js +25 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidFloatField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidFloatField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidFloatField.js +8 -0
- package/dist/components/core/filter/columns/SolidFloatField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidIdField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidIdField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidIdField.js +25 -0
- package/dist/components/core/filter/columns/SolidIdField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidIntField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidIntField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidIntField.js +34 -0
- package/dist/components/core/filter/columns/SolidIntField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidLongTextField.js +8 -0
- package/dist/components/core/filter/columns/SolidLongTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js +35 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.js +35 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidRelationField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidRelationField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidRelationField.js +12 -0
- package/dist/components/core/filter/columns/SolidRelationField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidRichTextField.js +8 -0
- package/dist/components/core/filter/columns/SolidRichTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js +25 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js +26 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidShortTextField.js +33 -0
- package/dist/components/core/filter/columns/SolidShortTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidTimeField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidTimeField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidTimeField.js +24 -0
- package/dist/components/core/filter/columns/SolidTimeField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidUuidField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidUuidField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidUuidField.js +25 -0
- package/dist/components/core/filter/columns/SolidUuidField.js.map +1 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts +4 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js +54 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js.map +1 -0
- package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.js +11 -11
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +113 -202
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +312 -62
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.js +2 -3
- package/dist/components/core/list/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.js +3 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +3 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js +5 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +3 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js +3 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
- package/dist/components/layout/AppConfig.d.ts +4 -0
- package/dist/components/layout/AppConfig.d.ts.map +1 -0
- package/dist/components/layout/AppConfig.js +57 -0
- package/dist/components/layout/AppConfig.js.map +1 -0
- package/dist/components/layout/AppSidebar.d.ts +3 -0
- package/dist/components/layout/AppSidebar.d.ts.map +1 -0
- package/dist/components/layout/AppSidebar.js +75 -0
- package/dist/components/layout/AppSidebar.js.map +1 -0
- package/dist/components/layout/CustomPagination.d.ts +0 -6
- package/dist/components/layout/CustomPagination.d.ts.map +1 -1
- package/dist/components/layout/CustomPagination.js +48 -27
- package/dist/components/layout/CustomPagination.js.map +1 -1
- package/dist/components/layout/FilterMenu.d.ts.map +1 -1
- package/dist/components/layout/FilterMenu.js +1 -2
- package/dist/components/layout/FilterMenu.js.map +1 -1
- package/dist/components/layout/context/layoutcontext.d.ts +5 -0
- package/dist/components/layout/context/layoutcontext.d.ts.map +1 -0
- package/dist/components/layout/context/layoutcontext.js +56 -0
- package/dist/components/layout/context/layoutcontext.js.map +1 -0
- package/dist/components/layout/navbar-two-menu.d.ts.map +1 -1
- package/dist/components/layout/navbar-two-menu.js +5 -5
- package/dist/components/layout/navbar-two-menu.js.map +1 -1
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +37 -5
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/components/modelsComponents/filterIcon.d.ts.map +1 -1
- package/dist/components/modelsComponents/filterIcon.js.map +1 -1
- package/dist/components/tables/ListViewTable.d.ts.map +1 -1
- package/dist/components/tables/ListViewTable.js +2 -1
- package/dist/components/tables/ListViewTable.js.map +1 -1
- package/dist/helpers/helpers.d.ts +1 -1
- package/dist/helpers/helpers.d.ts.map +1 -1
- package/dist/index.d.ts +19 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +40 -32
- package/dist/index.js.map +1 -1
- package/package.json +2 -1
- package/src/components/auth/SolidForgotPassword.tsx +124 -0
- package/src/components/auth/SolidLogin.tsx +156 -0
- package/src/components/auth/SolidOTPVerify.tsx +127 -0
- package/src/components/auth/SolidRegister.tsx +221 -0
- package/src/components/auth/SolidResetPassword.tsx +160 -0
- package/src/components/core/common/FilterComponent.tsx +45 -40
- package/src/components/core/common/SolidConfigureLayoutElement.tsx +11 -10
- package/src/components/core/common/SolidCreateButton.tsx +1 -1
- package/src/components/core/common/SolidGlobalSearchElement.tsx +33 -13
- package/src/components/core/common/SolidLayoutViews.tsx +87 -0
- package/src/components/core/common/SolidListViewOptions.tsx +31 -0
- package/src/components/core/filter/SolidManyToOneFilterElement.tsx +1 -1
- package/src/components/core/kanban/KanbanBoard.tsx +7 -4
- package/src/components/core/kanban/SolidKanbanView.tsx +110 -248
- package/src/components/core/list/SolidListView.tsx +421 -96
- package/src/components/core/list/SolidManyToOneFilterElement.tsx +3 -3
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +1 -1
- package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +1 -1
- package/src/components/core/list/columns/SolidShortTextColumn.tsx +8 -3
- package/src/components/core/list/columns/SolidTimeColumn.tsx +1 -1
- package/src/components/core/list/columns/SolidUuidColumn.tsx +1 -1
- package/src/components/layout/AppConfig.tsx +103 -0
- package/src/components/layout/AppSidebar.tsx +170 -0
- package/src/components/layout/CustomPagination.tsx +55 -55
- package/src/components/layout/FilterMenu.tsx +1 -2
- package/src/components/layout/context/layoutcontext.tsx +52 -0
- package/src/components/layout/navbar-two-menu.tsx +12 -9
- package/src/components/layout/user-profile-menu.tsx +74 -189
- package/src/components/modelsComponents/filterIcon.tsx +0 -1
- package/src/components/tables/ListViewTable.tsx +4 -3
- package/src/index.ts +157 -144
- package/src/types/index.d.ts +26 -0
- package/src/types/layout.d.ts +94 -0
- package/src/types/next-auth.d.ts +0 -0
- package/dist/components/core/kanban/SolidKanbanFilter.d.ts +0 -2
- package/dist/components/core/kanban/SolidKanbanFilter.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts +0 -10
- package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +0 -12
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidDateColumn.d.ts +0 -9
- package/dist/components/core/kanban/columns/SolidDateColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidIdColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidIdColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidIntColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidIntColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts.map +0 -1
- package/src/components/common/FilterComponent.tsx +0 -428
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SolidFilterFieldsParams } from '../SolidFilterFields';
|
|
2
|
+
declare const SolidSelectionStaticField: ({ fieldMetadata, onChange, index, rule }: SolidFilterFieldsParams) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default SolidSelectionStaticField;
|
|
4
|
+
//# sourceMappingURL=SolidSelectionStaticField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidSelectionStaticField.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidSelectionStaticField.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAKlF,QAAA,MAAM,yBAAyB,6CAA8C,uBAAuB,4CAqCnG,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { FilterMatchMode } from 'primereact/api';
|
|
4
|
+
import { getNumberOfInputs } from '../SolidFilterFields';
|
|
5
|
+
import { Dropdown } from 'primereact/dropdown';
|
|
6
|
+
import { InputTypes, SolidVarInputsFilterElement } from '../SolidVarInputsFilterElement';
|
|
7
|
+
var SolidSelectionStaticField = function (_a) {
|
|
8
|
+
var fieldMetadata = _a.fieldMetadata, onChange = _a.onChange, index = _a.index, rule = _a.rule;
|
|
9
|
+
// const filterable = column.attrs.filterable;
|
|
10
|
+
var showFilterOperator = false;
|
|
11
|
+
var columnDataType = fieldMetadata.selectionValueType === 'int' ? 'numeric' : 'text';
|
|
12
|
+
var filterMatchModeOptions = [
|
|
13
|
+
{ label: 'In', value: FilterMatchMode.IN },
|
|
14
|
+
{ label: 'Not In', value: FilterMatchMode.NOT_IN },
|
|
15
|
+
];
|
|
16
|
+
var numberOfInputs = getNumberOfInputs("in");
|
|
17
|
+
return (_jsxs(_Fragment, { children: [_jsx(Dropdown, { value: rule.operator, onChange: function (e) {
|
|
18
|
+
console.log("e", e);
|
|
19
|
+
onChange(rule.id, 'matchMode', e.value);
|
|
20
|
+
}, options: filterMatchModeOptions, optionLabel: 'label', optionValue: 'value', placeholder: "Select Operator", className: "w-full md:w-14rem" }), _jsx(SolidVarInputsFilterElement, { values: rule.value, onChange: function (e) {
|
|
21
|
+
console.log("e", e);
|
|
22
|
+
onChange(rule.id, 'value', e);
|
|
23
|
+
}, numberOfInputs: numberOfInputs, inputType: InputTypes.SelectionStatic, fieldMetadata: fieldMetadata })] }));
|
|
24
|
+
};
|
|
25
|
+
export default SolidSelectionStaticField;
|
|
26
|
+
//# sourceMappingURL=SolidSelectionStaticField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidSelectionStaticField.js","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidSelectionStaticField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAGzF,IAAM,yBAAyB,GAAG,UAAC,EAAiE;QAA/D,aAAa,mBAAA,EAAE,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAErE,8CAA8C;IAC9C,IAAM,kBAAkB,GAAG,KAAK,CAAC;IACjC,IAAM,cAAc,GAAG,aAAa,CAAC,kBAAkB,KAAK,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC;IACvF,IAAM,sBAAsB,GAAG;QAC3B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,CAAC,EAAE,EAAE;QAC1C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,CAAC,MAAM,EAAE;KACrD,CAAC;IAEF,IAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE/C,OAAO,CACH,8BACI,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,QAAQ,EAAE,UAAC,CAAM;oBACb,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAA;gBAC3C,CAAC,EACD,OAAO,EAAE,sBAAsB,EAC/B,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,iBAAiB,EAAC,SAAS,EAAC,mBAAmB,GAAG,EAClE,KAAC,2BAA2B,IACxB,MAAM,EAAE,IAAI,CAAC,KAAK,EAClB,QAAQ,EAAE,UAAC,CAAM;oBACb,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;gBACjC,CAAC,EACD,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,UAAU,CAAC,eAAe,EACrC,aAAa,EAAE,aAAa,GAEF,IAC/B,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,yBAAyB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SolidFilterFieldsParams } from '../SolidFilterFields';
|
|
2
|
+
declare const SolidShortTextField: ({ fieldMetadata, onChange, index, rule }: SolidFilterFieldsParams) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default SolidShortTextField;
|
|
4
|
+
//# sourceMappingURL=SolidShortTextField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidShortTextField.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidShortTextField.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAIlF,QAAA,MAAM,mBAAmB,6CAA8C,uBAAuB,4CA4C7F,CAAC;AAEF,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { FilterMatchMode } from 'primereact/api';
|
|
4
|
+
import { getNumberOfInputs } from '../SolidFilterFields';
|
|
5
|
+
import { Dropdown } from 'primereact/dropdown';
|
|
6
|
+
import { InputTypes, SolidVarInputsFilterElement } from '../SolidVarInputsFilterElement';
|
|
7
|
+
var SolidShortTextField = function (_a) {
|
|
8
|
+
var fieldMetadata = _a.fieldMetadata, onChange = _a.onChange, index = _a.index, rule = _a.rule;
|
|
9
|
+
// const filterable = column.attrs.filterable;
|
|
10
|
+
var showFilterOperator = false;
|
|
11
|
+
var columnDataType = 'text';
|
|
12
|
+
var filterMatchModeOptions = [
|
|
13
|
+
{ label: 'Starts With', value: FilterMatchMode.STARTS_WITH },
|
|
14
|
+
{ label: 'Contains', value: FilterMatchMode.CONTAINS },
|
|
15
|
+
{ label: 'Not Contains', value: FilterMatchMode.NOT_CONTAINS },
|
|
16
|
+
{ label: 'Ends With', value: FilterMatchMode.ENDS_WITH },
|
|
17
|
+
{ label: 'Equals', value: FilterMatchMode.EQUALS },
|
|
18
|
+
{ label: 'Not Equals', value: FilterMatchMode.NOT_EQUALS },
|
|
19
|
+
{ label: 'In', value: FilterMatchMode.IN },
|
|
20
|
+
{ label: 'Not In', value: FilterMatchMode.NOT_IN }
|
|
21
|
+
];
|
|
22
|
+
// const header = column.attrs.label ?? fieldMetadata.displayName;
|
|
23
|
+
var numberOfInputs = getNumberOfInputs("in");
|
|
24
|
+
return (_jsxs(_Fragment, { children: [_jsx(Dropdown, { value: rule.operator, onChange: function (e) {
|
|
25
|
+
console.log("e", e);
|
|
26
|
+
onChange(rule.id, 'matchMode', e.value);
|
|
27
|
+
}, options: filterMatchModeOptions, optionLabel: 'label', optionValue: 'value', placeholder: "Select Operator", className: "w-full md:w-14rem" }), _jsx(SolidVarInputsFilterElement, { values: rule.value, onChange: function (e) {
|
|
28
|
+
console.log("e", e);
|
|
29
|
+
onChange(rule.id, 'value', e);
|
|
30
|
+
}, numberOfInputs: numberOfInputs, inputType: InputTypes.Text, fieldMetadata: fieldMetadata })] }));
|
|
31
|
+
};
|
|
32
|
+
export default SolidShortTextField;
|
|
33
|
+
//# sourceMappingURL=SolidShortTextField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidShortTextField.js","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidShortTextField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AAEzF,IAAM,mBAAmB,GAAG,UAAC,EAAiE;QAA/D,aAAa,mBAAA,EAAE,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAC/D,8CAA8C;IAC9C,IAAM,kBAAkB,GAAG,KAAK,CAAC;IACjC,IAAM,cAAc,GAAG,MAAM,CAAC;IAC9B,IAAM,sBAAsB,GAAG;QAC3B,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,eAAe,CAAC,WAAW,EAAE;QAC5D,EAAE,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE;QACtD,EAAE,KAAK,EAAE,cAAc,EAAE,KAAK,EAAE,eAAe,CAAC,YAAY,EAA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mB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SolidFilterFieldsParams } from '../SolidFilterFields';
|
|
2
|
+
declare const SolidTimeField: ({ fieldMetadata, onChange, index, rule }: SolidFilterFieldsParams) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default SolidTimeField;
|
|
4
|
+
//# sourceMappingURL=SolidTimeField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidTimeField.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidTimeField.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAqB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAElF,QAAA,MAAM,cAAc,6CAA8C,uBAAuB,4CAiCxF,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { dateFilterMatchModeOptions } from './SolidDateField';
|
|
4
|
+
import { Dropdown } from 'primereact/dropdown';
|
|
5
|
+
import { InputTypes, SolidVarInputsFilterElement } from '../SolidVarInputsFilterElement';
|
|
6
|
+
import { getNumberOfInputs } from '../SolidFilterFields';
|
|
7
|
+
var SolidTimeField = function (_a) {
|
|
8
|
+
var fieldMetadata = _a.fieldMetadata, onChange = _a.onChange, index = _a.index, rule = _a.rule;
|
|
9
|
+
// const filterable = column.attrs.filterable;
|
|
10
|
+
var showFilterOperator = false;
|
|
11
|
+
var columnDataType = 'date';
|
|
12
|
+
// TODO: the body template to be controlled based on the format that one is expecting the date to be displayed in.
|
|
13
|
+
// const header = column.attrs.label ?? fieldMetadata.displayName;
|
|
14
|
+
var numberOfInputs = getNumberOfInputs("in");
|
|
15
|
+
return (_jsxs(_Fragment, { children: [_jsx(Dropdown, { value: rule.operator, onChange: function (e) {
|
|
16
|
+
console.log("e", e);
|
|
17
|
+
onChange(rule.id, 'matchMode', e.value);
|
|
18
|
+
}, options: dateFilterMatchModeOptions, optionLabel: 'label', optionValue: 'value', placeholder: "Select Operator", className: "w-full md:w-14rem" }), _jsx(SolidVarInputsFilterElement, { values: rule.value, onChange: function (e) {
|
|
19
|
+
console.log("e", e);
|
|
20
|
+
onChange(rule.id, 'value', e);
|
|
21
|
+
}, numberOfInputs: numberOfInputs, inputType: InputTypes.Time, fieldMetadata: fieldMetadata })] }));
|
|
22
|
+
};
|
|
23
|
+
export default SolidTimeField;
|
|
24
|
+
//# sourceMappingURL=SolidTimeField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidTimeField.js","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidTimeField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,gCAAgC,CAAC;AACzF,OAAO,EAAE,iBAAiB,EAA2B,MAAM,sBAAsB,CAAC;AAElF,IAAM,cAAc,GAAG,UAAC,EAAiE;QAA/D,aAAa,mBAAA,EAAE,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IAC1D,8CAA8C;IAC9C,IAAM,kBAAkB,GAAG,KAAK,CAAC;IACjC,IAAM,cAAc,GAAG,MAAM,CAAC;IAE9B,kHAAkH;IAClH,kEAAkE;IAClE,IAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAC/C,OAAO,CACH,8BACI,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,QAAQ,EAAE,UAAC,CAAM;oBACb,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,CAAA;gBAC3C,CAAC,EACD,OAAO,EAAE,0BAA0B,EACnC,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,iBAAiB,EAAC,SAAS,EAAC,mBAAmB,GAAG,EAClE,KAAC,2BAA2B,IACxB,MAAM,EAAE,IAAI,CAAC,KAAK,EAClB,QAAQ,EAAE,UAAC,CAAM;oBACb,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;gBACjC,CAAC,EACD,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,UAAU,CAAC,IAAI,EAC1B,aAAa,EAAE,aAAa,GAEF,IAAG,CACxC,CAAC;AAEN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SolidFilterFieldsParams } from '../SolidFilterFields';
|
|
2
|
+
declare const SolidUuidField: ({ fieldMetadata, onChange, index, rule }: SolidFilterFieldsParams) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default SolidUuidField;
|
|
4
|
+
//# sourceMappingURL=SolidUuidField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidUuidField.d.ts","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidUuidField.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAqB,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AAIlF,QAAA,MAAM,cAAc,6CAA8C,uBAAuB,4CAmCxF,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { FilterMatchMode } from 'primereact/api';
|
|
4
|
+
import { getNumberOfInputs } from '../SolidFilterFields';
|
|
5
|
+
import { Dropdown } from 'primereact/dropdown';
|
|
6
|
+
import { InputTypes, SolidVarInputsFilterElement } from '../SolidVarInputsFilterElement';
|
|
7
|
+
var SolidUuidField = function (_a) {
|
|
8
|
+
var fieldMetadata = _a.fieldMetadata, onChange = _a.onChange, index = _a.index, rule = _a.rule;
|
|
9
|
+
var showFilterOperator = false;
|
|
10
|
+
var columnDataType = 'text';
|
|
11
|
+
var filterMatchModeOptions = [
|
|
12
|
+
{ label: 'In', value: FilterMatchMode.IN },
|
|
13
|
+
{ label: 'Not In', value: FilterMatchMode.NOT_IN },
|
|
14
|
+
];
|
|
15
|
+
var numberOfInputs = getNumberOfInputs("in");
|
|
16
|
+
return (_jsxs(_Fragment, { children: [_jsx(Dropdown, { value: rule.operator, onChange: function (e) {
|
|
17
|
+
console.log("e", e);
|
|
18
|
+
onChange(rule.id, 'matchMode', e.value);
|
|
19
|
+
}, options: filterMatchModeOptions, optionLabel: 'label', optionValue: 'value', placeholder: "Select Operator", className: "w-full md:w-14rem" }), _jsx(SolidVarInputsFilterElement, { values: rule.value, onChange: function (e) {
|
|
20
|
+
console.log("e", e);
|
|
21
|
+
onChange(rule.id, 'value', e);
|
|
22
|
+
}, numberOfInputs: numberOfInputs, inputType: InputTypes.Text, fieldMetadata: fieldMetadata })] }));
|
|
23
|
+
};
|
|
24
|
+
export default SolidUuidField;
|
|
25
|
+
//# sourceMappingURL=SolidUuidField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidUuidField.js","sourceRoot":"","sources":["../../../../../src/components/core/filter/columns/SolidUuidField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAA2B,MAAM,sBAAsB,CAAC;AAClF,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;A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CACN,CAAC;AAEN,CAAC,CAAC;AAEF,eAAe,cAAc,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { SolidFilterFieldsParams } from '../../SolidFilterFields';
|
|
2
|
+
declare const SolidRelationManyToOneField: ({ fieldMetadata, onChange, index, rule }: SolidFilterFieldsParams) => import("react/jsx-runtime").JSX.Element;
|
|
3
|
+
export default SolidRelationManyToOneField;
|
|
4
|
+
//# sourceMappingURL=SolidRelationManyToOneField.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidRelationManyToOneField.d.ts","sourceRoot":"","sources":["../../../../../../src/components/core/filter/columns/relations/SolidRelationManyToOneField.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAqB,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAErF,QAAA,MAAM,2BAA2B,6CAA8C,uBAAuB,4CAsErG,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "react/jsx-runtime";
|
|
3
|
+
import { InputTypes, SolidVarInputsFilterElement } from '../../../../../components/core/filter/SolidVarInputsFilterElement';
|
|
4
|
+
import { FilterMatchMode } from 'primereact/api';
|
|
5
|
+
import { Dropdown } from 'primereact/dropdown';
|
|
6
|
+
import { getNumberOfInputs } from '../../SolidFilterFields';
|
|
7
|
+
var SolidRelationManyToOneField = function (_a) {
|
|
8
|
+
var fieldMetadata = _a.fieldMetadata, onChange = _a.onChange, index = _a.index, rule = _a.rule;
|
|
9
|
+
// const filterable = column.attrs.filterable;
|
|
10
|
+
var showFilterOperator = false;
|
|
11
|
+
var filterMatchModeOptions = [
|
|
12
|
+
{ label: 'In', value: FilterMatchMode.IN },
|
|
13
|
+
{ label: 'Not In', value: FilterMatchMode.NOT_IN },
|
|
14
|
+
];
|
|
15
|
+
var columnDataType = undefined;
|
|
16
|
+
var numberOfInputs = getNumberOfInputs("in");
|
|
17
|
+
// const filterTemplate = (options: ColumnFilterElementTemplateOptions) => {
|
|
18
|
+
// return (
|
|
19
|
+
// <SolidVarInputsFilterElement
|
|
20
|
+
// values={options.value}
|
|
21
|
+
// onChange={(e: FormEvent<HTMLInputElement>) => options.filterCallback(e, options.index)}
|
|
22
|
+
// inputType={InputTypes.RelationManyToOne}
|
|
23
|
+
// solidListViewMetaData={solidListViewMetaData}
|
|
24
|
+
// fieldMetadata={fieldMetadata}
|
|
25
|
+
// column={column}
|
|
26
|
+
// >
|
|
27
|
+
// </SolidVarInputsFilterElement>
|
|
28
|
+
// )
|
|
29
|
+
// };
|
|
30
|
+
// const bodyTemplate = (rowData: any) => {
|
|
31
|
+
// const manyToOneFieldData = rowData[column.attrs.name];
|
|
32
|
+
// // This is the userkey that will be present within the rowData.
|
|
33
|
+
// if (manyToOneFieldData) {
|
|
34
|
+
// // Since this is a many-to-one field, we fetch the user key field of the associated model.
|
|
35
|
+
// const userKeyField = fieldMetadata.relationModel.userKeyField.name;
|
|
36
|
+
// const manyToOneColVal = manyToOneFieldData[userKeyField];
|
|
37
|
+
// // TODO: change this to use an anchor tag so that on click we open that entity form view.
|
|
38
|
+
// return <span>{manyToOneColVal}</span>;
|
|
39
|
+
// }
|
|
40
|
+
// else {
|
|
41
|
+
// return <span></span>
|
|
42
|
+
// }
|
|
43
|
+
// };
|
|
44
|
+
// const header = column.attrs.label ?? fieldMetadata.displayName;
|
|
45
|
+
return (_jsxs(_Fragment, { children: [_jsx(Dropdown, { value: rule.operator, onChange: function (e) {
|
|
46
|
+
console.log("e", e);
|
|
47
|
+
onChange(index, 'operator', e.value);
|
|
48
|
+
}, options: filterMatchModeOptions, optionLabel: 'label', optionValue: 'value', placeholder: "Select Operator", className: "w-full md:w-14rem" }), _jsx(SolidVarInputsFilterElement, { values: rule.value, onChange: function (e) {
|
|
49
|
+
console.log("e", e);
|
|
50
|
+
onChange(index, 'value', e);
|
|
51
|
+
}, numberOfInputs: numberOfInputs, inputType: InputTypes.RelationManyToOne, fieldMetadata: fieldMetadata })] }));
|
|
52
|
+
};
|
|
53
|
+
export default SolidRelationManyToOneField;
|
|
54
|
+
//# sourceMappingURL=SolidRelationManyToOneField.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidRelationManyToOneField.js","sourceRoot":"","sources":["../../../../../../src/components/core/filter/columns/relations/SolidRelationManyToOneField.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AACb,OAAO,EAAE,UAAU,EAAE,2BAA2B,EAAE,MAAM,sDAAsD,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAA2B,MAAM,yBAAyB,CAAC;AAErF,IAAM,2BAA2B,GAAG,UAAC,EAAiE;QAA/D,aAAa,mBAAA,EAAE,QAAQ,cAAA,EAAE,KAAK,WAAA,EAAE,IAAI,UAAA;IACvE,8CAA8C;IAC9C,IAAM,kBAAkB,GAAG,KAAK,CAAC;IACjC,IAAM,sBAAsB,GAAG;QAC3B,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,eAAe,CAAC,EAAE,EAAE;QAC1C,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,eAAe,CAAC,MAAM,EAAE;KACrD,CAAC;IACF,IAAM,cAAc,GAAG,SAAS,CAAC;IACjC,IAAM,cAAc,GAAG,iBAAiB,CAAC,IAAI,CAAC,CAAC;IAE/C,4EAA4E;IAE5E,eAAe;IACf,uCAAuC;IACvC,qCAAqC;IACrC,sGAAsG;IACtG,uDAAuD;IACvD,4DAA4D;IAC5D,4CAA4C;IAC5C,8BAA8B;IAC9B,YAAY;IACZ,yCAAyC;IACzC,QAAQ;IACR,KAAK;IAEL,2CAA2C;IAC3C,6DAA6D;IAE7D,sEAAsE;IACtE,gCAAgC;IAChC,qGAAqG;IACrG,8EAA8E;IAE9E,oEAAoE;IAEpE,qGAAqG;IACrG,iDAAiD;IACjD,QAAQ;IACR,aAAa;IACb,+BAA+B;IAC/B,QAAQ;IACR,KAAK;IACL,kEAAkE;IAElE,OAAO,CACH,8BACI,KAAC,QAAQ,IACL,KAAK,EAAE,IAAI,CAAC,QAAQ,EACpB,QAAQ,EAAE,UAAC,CAAM;oBACb,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,CAAA;gBACxC,CAAC,EACD,OAAO,EAAE,sBAAsB,EAC/B,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,OAAO,EACnB,WAAW,EAAC,iBAAiB,EAAC,SAAS,EAAC,mBAAmB,GAAG,EAClE,KAAC,2BAA2B,IACxB,MAAM,EAAE,IAAI,CAAC,KAAK,EAClB,QAAQ,EAAE,UAAC,CAAM;oBACb,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC;oBACpB,QAAQ,CAAC,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC,CAAA;gBAC/B,CAAC,EACD,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,UAAU,CAAC,iBAAiB,EACvC,aAAa,EAAE,aAAa,GAEF,IAC/B,CACN,CAAC;AAEN,CAAC,CAAC;AAEF,eAAe,2BAA2B,CAAC"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export declare const KanbanBoard: ({ kanbanViewData, solidViewMetaData, setKanbanViewData, handleLoadMore, onDragEnd }: any) => import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare const KanbanBoard: ({ kanbanViewData, solidViewMetaData, setKanbanViewData, handleLoadMore, onDragEnd, handleSwimLinPagination }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default KanbanBoard;
|
|
3
3
|
//# sourceMappingURL=KanbanBoard.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/kanban/KanbanBoard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"KanbanBoard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/kanban/KanbanBoard.tsx"],"names":[],"mappings":"AA0BA,eAAO,MAAM,WAAW,iHAAiH,GAAG,4CA0F3I,CAAA;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -11,12 +11,12 @@ var __assign = (this && this.__assign) || function () {
|
|
|
11
11
|
};
|
|
12
12
|
return __assign.apply(this, arguments);
|
|
13
13
|
};
|
|
14
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
15
|
-
import { DragDropContext } from "@hello-pangea/dnd";
|
|
14
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
15
|
import { useState } from "react";
|
|
16
|
+
import { DragDropContext } from "@hello-pangea/dnd";
|
|
17
17
|
import KanbanColumn from "./KanbanColumn";
|
|
18
18
|
export var KanbanBoard = function (_a) {
|
|
19
|
-
var kanbanViewData = _a.kanbanViewData, solidViewMetaData = _a.solidViewMetaData, setKanbanViewData = _a.setKanbanViewData, handleLoadMore = _a.handleLoadMore, onDragEnd = _a.onDragEnd;
|
|
19
|
+
var kanbanViewData = _a.kanbanViewData, solidViewMetaData = _a.solidViewMetaData, setKanbanViewData = _a.setKanbanViewData, handleLoadMore = _a.handleLoadMore, onDragEnd = _a.onDragEnd, handleSwimLinPagination = _a.handleSwimLinPagination;
|
|
20
20
|
var _b = useState(true), loading = _b[0], setLoading = _b[1];
|
|
21
21
|
// State to manage the folded status of each column
|
|
22
22
|
var _c = useState({}), foldedStates = _c[0], setFoldedStates = _c[1];
|
|
@@ -54,14 +54,14 @@ export var KanbanBoard = function (_a) {
|
|
|
54
54
|
// Render the Kanban board
|
|
55
55
|
return (
|
|
56
56
|
//@ts-ignore
|
|
57
|
-
_jsx(DragDropContext, { onDragEnd: onDragEnd, children:
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
_jsx(DragDropContext, { onDragEnd: onDragEnd, children: _jsxs("div", { style: { display: "flex", gap: "1rem", background: "#f0f0f5", padding: "20px" }, children: [kanbanViewData.map(function (data) {
|
|
58
|
+
var group = {
|
|
59
|
+
label: data.groupName,
|
|
60
|
+
count: data.groupData.meta.totalRecords,
|
|
61
|
+
folded: foldedStates[data.groupName] || false,
|
|
62
|
+
};
|
|
63
|
+
return (_jsx(KanbanColumn, { groupByField: data.groupName, group: group, solidViewMetaData: solidViewMetaData, groupData: data.groupData.records, toggleFold: toggleFold, handleLoadMore: handleLoadMore }, data.groupName));
|
|
64
|
+
}), _jsx("div", { className: "kanban-load-more-folded", children: _jsx("a", { className: "kaban-load-more", onClick: handleSwimLinPagination, children: "load More" }) })] }) }));
|
|
65
65
|
};
|
|
66
66
|
export default KanbanBoard;
|
|
67
67
|
//# sourceMappingURL=KanbanBoard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KanbanBoard.js","sourceRoot":"","sources":["../../../../src/components/core/kanban/KanbanBoard.tsx"],"names":[],"mappings":"AAAA,cAAc;AACd,YAAY,
|
|
1
|
+
{"version":3,"file":"KanbanBoard.js","sourceRoot":"","sources":["../../../../src/components/core/kanban/KanbanBoard.tsx"],"names":[],"mappings":"AAAA,cAAc;AACd,YAAY,CAAA;;;;;;;;;;;;;AAEZ,OAAc,EAAE,QAAQ,EAAa,MAAM,OAAO,CAAC;AACnD,OAAO,EAAE,eAAe,EAAc,MAAM,mBAAmB,CAAC;AAEhE,OAAO,YAAY,MAAM,gBAAgB,CAAC;AAoB1C,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,EAAgH;QAA9G,cAAc,oBAAA,EAAE,iBAAiB,uBAAA,EAAE,iBAAiB,uBAAA,EAAE,cAA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,IAAI,KAAK;qBAChD,CAAC;oBAEF,OAAO,CACH,KAAC,YAAY,IAET,YAAY,EAAE,IAAI,CAAC,SAAS,EAC5B,KAAK,EAAE,KAAK,EACZ,iBAAiB,EAAE,iBAAiB,EACpC,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EACjC,UAAU,EAAE,UAAU,EACtB,cAAc,EAAE,cAAc,IANzB,IAAI,CAAC,SAAS,CAOrB,CACL,CAAC;gBACN,CAAC,CAAC,EACF,cAAK,SAAS,EAAC,yBAAyB,YACpC,YAAG,SAAS,EAAC,iBAAiB,EAAC,OAAO,EAAE,uBAAuB,0BAAe,GAAM,IACtF,GACQ,CACrB,CAAC;AACN,CAAC,CAAA;AAED,eAAe,WAAW,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidKanbanView.d.ts","sourceRoot":"","sources":["../../../../src/components/core/kanban/SolidKanbanView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SolidKanbanView.d.ts","sourceRoot":"","sources":["../../../../src/components/core/kanban/SolidKanbanView.tsx"],"names":[],"mappings":"AAkBA,KAAK,qBAAqB,GAAG;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC;AAEF,eAAO,MAAM,eAAe,WAAY,qBAAqB,4CAkf5D,CAAC"}
|