@axinom/mosaic-ui 0.55.0-rc.1 → 0.55.0-rc.10
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/DynamicDataList/helpers/useColumnDefs.d.ts +1 -1
- package/dist/components/DynamicDataList/helpers/useColumnDefs.d.ts.map +1 -1
- package/dist/components/FormElements/Select/Select.d.ts +15 -11
- package/dist/components/FormElements/Select/Select.d.ts.map +1 -1
- package/dist/components/FormElements/Select/SelectField.d.ts.map +1 -1
- package/dist/components/FormElements/SingleLineText/SingleLineText.d.ts.map +1 -1
- package/dist/components/FormElements/Tags/Tags.d.ts +2 -2
- package/dist/components/FormElements/Tags/Tags.d.ts.map +1 -1
- package/dist/components/FormElements/Tags/TagsField.d.ts +1 -1
- package/dist/components/FormElements/Tags/TagsField.d.ts.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/package.json +4 -3
- package/src/components/DynamicDataList/DynamicDataList.spec.tsx +1 -5
- package/src/components/DynamicDataList/DynamicDataList.tsx +1 -1
- package/src/components/DynamicDataList/DynamicListDataEntry/Renderers/createSelectRenderer/createSelectRenderer.spec.tsx +9 -4
- package/src/components/DynamicDataList/DynamicListDataEntry/Renderers/createSelectRenderer/createSelectRenderer.tsx +2 -2
- package/src/components/DynamicDataList/helpers/useColumnDefs.ts +4 -2
- package/src/components/FormElements/FileUploadControl/FileUploadControl.scss +2 -3
- package/src/components/FormElements/FileUploadControl/FileUploadControl.stories.tsx +0 -1
- package/src/components/FormElements/FileUploadControl/FileUploadControl.tsx +2 -2
- package/src/components/FormElements/Select/Select.scss +108 -59
- package/src/components/FormElements/Select/Select.spec.tsx +52 -43
- package/src/components/FormElements/Select/Select.stories.tsx +8 -10
- package/src/components/FormElements/Select/Select.tsx +138 -52
- package/src/components/FormElements/Select/SelectField.tsx +1 -0
- package/src/components/FormElements/SingleLineText/SingleLineText.tsx +23 -7
- package/src/components/FormElements/Tags/Tags.scss +16 -76
- package/src/components/FormElements/Tags/Tags.spec.tsx +69 -80
- package/src/components/FormElements/Tags/Tags.tsx +54 -62
- package/src/components/FormElements/Tags/TagsField.tsx +3 -13
- package/src/styles/variables.scss +8 -0
|
@@ -6,7 +6,7 @@ import { DynamicListColumn } from '../DynamicDataList.model';
|
|
|
6
6
|
* @param columns The list of columns that should be used
|
|
7
7
|
* @returns a string that consists of defined column sizes and a position key that maps to a data property
|
|
8
8
|
*/
|
|
9
|
-
export declare const useColumnDefs: <T extends Data>(columns: DynamicListColumn<T>[], allowReordering: boolean, allowNewData: boolean, allowRowDragging: boolean, positionKey?: keyof T | undefined, showInlineMenu?: boolean) => {
|
|
9
|
+
export declare const useColumnDefs: <T extends Data>(columns: DynamicListColumn<T>[], allowReordering: boolean, allowNewData: boolean, allowEditing: boolean, allowRowDragging: boolean, positionKey?: keyof T | undefined, showInlineMenu?: boolean) => {
|
|
10
10
|
readonly columnSizes: string;
|
|
11
11
|
readonly showPositionColumn: boolean;
|
|
12
12
|
readonly showActionColumn: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useColumnDefs.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicDataList/helpers/useColumnDefs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,aAAa,qEAEP,OAAO,gBACV,OAAO,oBACH,OAAO,sDAER,OAAO;0BAEF,MAAM;iCACC,OAAO;+BACT,OAAO;sBAChB,MAAM,IAAI;qCACK,MAAM,KAAK,IAAI;
|
|
1
|
+
{"version":3,"file":"useColumnDefs.d.ts","sourceRoot":"","sources":["../../../../src/components/DynamicDataList/helpers/useColumnDefs.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAE7D;;;;;GAKG;AACH,eAAO,MAAM,aAAa,qEAEP,OAAO,gBACV,OAAO,gBACP,OAAO,oBACH,OAAO,sDAER,OAAO;0BAEF,MAAM;iCACC,OAAO;+BACT,OAAO;sBAChB,MAAM,IAAI;qCACK,MAAM,KAAK,IAAI;CA8DjD,CAAC"}
|
|
@@ -1,19 +1,23 @@
|
|
|
1
|
+
import { UseAutocompleteProps } from '@mui/base';
|
|
1
2
|
import React from 'react';
|
|
2
|
-
import { BaseFormControl,
|
|
3
|
-
export interface
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { BaseFormControl, BaseInputEvents } from '../Form.models';
|
|
4
|
+
export interface SelectOption {
|
|
5
|
+
value: string | number | string[];
|
|
6
|
+
label: string | number;
|
|
7
|
+
}
|
|
8
|
+
type TrimmedUseAutocompleteProps = Omit<UseAutocompleteProps<SelectOption, false, true, false>, 'value' | 'onChange'>;
|
|
9
|
+
export interface SelectProps extends BaseFormControl, BaseInputEvents, TrimmedUseAutocompleteProps {
|
|
10
|
+
/** An array of options */
|
|
11
|
+
options: SelectOption[];
|
|
11
12
|
/** Whether or not the control should start focused (default: false) */
|
|
12
13
|
autoFocus?: boolean;
|
|
13
|
-
/**
|
|
14
|
-
|
|
14
|
+
/** Current value the form control has */
|
|
15
|
+
value?: string | string[] | number;
|
|
15
16
|
/** Select placeholder */
|
|
16
17
|
placeholder?: string;
|
|
18
|
+
/** Allows to clear the input field and leave empty */
|
|
19
|
+
addEmptyOption?: boolean;
|
|
17
20
|
}
|
|
18
21
|
export declare const Select: React.FC<SelectProps>;
|
|
22
|
+
export {};
|
|
19
23
|
//# sourceMappingURL=Select.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Select/Select.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA2B,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAE1E,OAAO,KAAsB,MAAM,OAAO,CAAC;AAG3C,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIlE,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC;IAClC,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB;AAED,KAAK,2BAA2B,GAAG,IAAI,CACrC,oBAAoB,CAAC,YAAY,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC,EACtD,OAAO,GAAG,UAAU,CACrB,CAAC;AACF,MAAM,WAAW,WACf,SAAQ,eAAe,EACrB,eAAe,EACf,2BAA2B;IAC7B,0BAA0B;IAC1B,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yCAAyC;IACzC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,GAAG,MAAM,CAAC;IACnC,yBAAyB;IACzB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uDAAuD;IACvD,cAAc,CAAC,EAAE,OAAO,CAAC;CAC1B;AAED,eAAO,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAoHxC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Select/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"SelectField.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Select/SelectField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAU,WAAW,EAAE,MAAM,UAAU,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,OAAO,CAAC,CAG5D,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleLineText.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/SingleLineText/SingleLineText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"SingleLineText.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/SingleLineText/SingleLineText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAEZ,mBAAmB,EAGpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAIlE,MAAM,WAAW,mBAAoB,SAAQ,eAAe,EAAE,eAAe;IAC3E,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;IAEtC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,yCAAyC;IACzC,KAAK,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,OAAO,CAAC,CAAC;IACvD,yCAAyC;IACzC,YAAY,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC,cAAc,CAAC,CAAC;IACrE,wBAAwB;IACxB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,wDAAwD;IACxD,YAAY,CAAC,EAAE,IAAI,GAAG,KAAK,CAAC;IAE5B,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAE7C;;OAEG;IACH,UAAU,CAAC,EAAE,mBAAmB,CAAC,gBAAgB,CAAC,CAAC;CACpD;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+FxD,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
|
-
import { BaseFormControl,
|
|
3
|
-
export interface TagsProps<T = string> extends BaseFormControl,
|
|
2
|
+
import { BaseFormControl, BaseInputEvents } from '../Form.models';
|
|
3
|
+
export interface TagsProps<T = string> extends BaseFormControl, BaseInputEvents {
|
|
4
4
|
/** If set, sets the form control value */
|
|
5
5
|
value?: string[];
|
|
6
6
|
/** Array of options that can be selected from */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Tags/Tags.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAEZ,iBAAiB,
|
|
1
|
+
{"version":3,"file":"Tags.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Tags/Tags.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAEZ,iBAAiB,EAKlB,MAAM,OAAO,CAAC;AAKf,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAKlE,MAAM,WAAW,SAAS,CAAC,CAAC,GAAG,MAAM,CACnC,SAAQ,eAAe,EACrB,eAAe;IACjB,0CAA0C;IAC1C,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,iDAAiD;IACjD,WAAW,CAAC,EAAE,CAAC,EAAE,CAAC;IAClB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,uEAAuE;IACvE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gHAAgH;IAChH,UAAU,CAAC,EAAE,MAAM,CAAC,CAAC;IACrB,wGAAwG;IACxG,QAAQ,CAAC,EAAE,MAAM,CAAC,CAAC;CACpB;AAED,eAAO,MAAM,IAAI,kMAgBoB,WA6JpC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import React, { PropsWithChildren } from 'react';
|
|
2
2
|
import { TagsProps } from './Tags';
|
|
3
|
-
export declare const TagsField: <T>(props: React.PropsWithChildren<Omit<TagsProps<T>, "error"
|
|
3
|
+
export declare const TagsField: <T>(props: React.PropsWithChildren<Omit<TagsProps<T>, "error">>) => JSX.Element;
|
|
4
4
|
//# sourceMappingURL=TagsField.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TagsField.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Tags/TagsField.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TagsField.d.ts","sourceRoot":"","sources":["../../../../src/components/FormElements/Tags/TagsField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAEjD,OAAO,EAAQ,SAAS,EAAE,MAAM,QAAQ,CAAC;AACzC,eAAO,MAAM,SAAS,sEAEnB,WAIF,CAAC"}
|