@solidstarters/solid-core-ui 1.1.10 → 1.1.11
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/core/extension/dynamicComponentMap.d.ts +3 -0
- package/dist/components/core/extension/dynamicComponentMap.d.ts.map +1 -0
- package/dist/components/core/extension/dynamicComponentMap.js +6 -0
- package/dist/components/core/extension/dynamicComponentMap.js.map +1 -0
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +7 -5
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +31 -5
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +5 -1
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +5 -1
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +5 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +5 -1
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +5 -1
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +5 -1
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +14 -5
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +5 -1
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +5 -1
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +20 -13
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +9 -6
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/hooks/GlobalStateContext.d.ts +11 -0
- package/dist/components/core/hooks/GlobalStateContext.d.ts.map +1 -0
- package/dist/components/core/hooks/GlobalStateContext.js +17 -0
- package/dist/components/core/hooks/GlobalStateContext.js.map +1 -0
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +31 -9
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.js +7 -5
- 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/relations/SolidRelationManyToOneColumn.js +2 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +67 -54
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldSelector.js +1 -1
- package/dist/components/core/model/FieldSelector.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +12 -17
- package/dist/components/core/model/ModelMetaData.js.map +1 -1
- package/package.json +1 -1
- package/src/components/core/filter/SolidManyToOneFilterElement.tsx +2 -2
- package/src/components/core/form/SolidFormView.tsx +33 -5
- package/src/components/core/form/fields/SolidBooleanField.tsx +6 -1
- package/src/components/core/form/fields/SolidDateField.tsx +6 -1
- package/src/components/core/form/fields/SolidDateTimeField.tsx +6 -1
- package/src/components/core/form/fields/SolidDecimalField.tsx +6 -1
- package/src/components/core/form/fields/SolidIntegerField.tsx +6 -1
- package/src/components/core/form/fields/SolidLongTextField.tsx +6 -1
- package/src/components/core/form/fields/SolidSelectionStaticField.tsx +19 -9
- package/src/components/core/form/fields/SolidShortTextField.tsx +7 -2
- package/src/components/core/form/fields/SolidTimeField.tsx +6 -1
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +7 -7
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +3 -3
- package/src/components/core/list/SolidListView.tsx +32 -7
- package/src/components/core/list/SolidManyToOneFilterElement.tsx +2 -2
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +2 -2
- package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +1 -1
- package/src/components/core/model/FieldMetaDataForm.tsx +166 -87
- package/src/components/core/model/FieldSelector.tsx +1 -1
- package/src/components/core/model/ModelMetaData.tsx +8 -7
- package/dist/components/core/filter/columns/SolidBigintField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidBigintField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidBigintField.js +0 -8
- package/dist/components/core/filter/columns/SolidBigintField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidBooleanField.js +0 -27
- package/dist/components/core/filter/columns/SolidBooleanField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidComputedField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidComputedField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidComputedField.js +0 -22
- package/dist/components/core/filter/columns/SolidComputedField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidDateField.d.ts +0 -9
- package/dist/components/core/filter/columns/SolidDateField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidDateField.js +0 -35
- package/dist/components/core/filter/columns/SolidDateField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidDatetimeField.js +0 -24
- package/dist/components/core/filter/columns/SolidDatetimeField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidDecimalField.js +0 -8
- package/dist/components/core/filter/columns/SolidDecimalField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidExternalIdField.js +0 -25
- package/dist/components/core/filter/columns/SolidExternalIdField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidFloatField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidFloatField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidFloatField.js +0 -8
- package/dist/components/core/filter/columns/SolidFloatField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidIdField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidIdField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidIdField.js +0 -25
- package/dist/components/core/filter/columns/SolidIdField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidIntField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidIntField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidIntField.js +0 -34
- package/dist/components/core/filter/columns/SolidIntField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidLongTextField.js +0 -8
- package/dist/components/core/filter/columns/SolidLongTextField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js +0 -35
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidMediaSingleField.js +0 -35
- package/dist/components/core/filter/columns/SolidMediaSingleField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidRelationField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidRelationField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidRelationField.js +0 -12
- package/dist/components/core/filter/columns/SolidRelationField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidRichTextField.js +0 -8
- package/dist/components/core/filter/columns/SolidRichTextField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js +0 -25
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js +0 -26
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidShortTextField.js +0 -33
- package/dist/components/core/filter/columns/SolidShortTextField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidTimeField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidTimeField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidTimeField.js +0 -24
- package/dist/components/core/filter/columns/SolidTimeField.js.map +0 -1
- package/dist/components/core/filter/columns/SolidUuidField.d.ts +0 -4
- package/dist/components/core/filter/columns/SolidUuidField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/SolidUuidField.js +0 -25
- package/dist/components/core/filter/columns/SolidUuidField.js.map +0 -1
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts +0 -4
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts.map +0 -1
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js +0 -54
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js.map +0 -1
|
@@ -1,4 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,54 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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;QA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