@plasmicpkgs/plasmic-rich-components 1.0.61 → 1.0.63
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/common.d.ts +2 -2
- package/dist/field-mappings.d.ts +51 -51
- package/dist/index.d.ts +4 -4
- package/dist/index.js +965 -5
- package/dist/index.js.map +1 -0
- package/dist/plasmic-rich-components.esm.js +871 -1519
- package/dist/plasmic-rich-components.esm.js.map +1 -1
- package/dist/rich-layout/RichLayout.d.ts +16 -16
- package/dist/rich-layout/index.d.ts +5 -5
- package/dist/rich-table/RichTable.d.ts +43 -40
- package/dist/rich-table/index.d.ts +18 -5
- package/dist/utils.d.ts +24 -24
- package/package.json +3 -3
- package/dist/plasmic-rich-components.cjs.development.js +0 -1614
- package/dist/plasmic-rich-components.cjs.development.js.map +0 -1
- package/dist/plasmic-rich-components.cjs.production.min.js +0 -2
- package/dist/plasmic-rich-components.cjs.production.min.js.map +0 -1
package/dist/common.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function useIsClient(): boolean;
|
|
2
|
-
export declare function capitalize(text: string): string;
|
|
1
|
+
export declare function useIsClient(): boolean;
|
|
2
|
+
export declare function capitalize(text: string): string;
|
package/dist/field-mappings.d.ts
CHANGED
|
@@ -1,51 +1,51 @@
|
|
|
1
|
-
import { TableSchema } from "@plasmicapp/data-sources";
|
|
2
|
-
export declare const tuple: <T extends any[]>(...args: T) => T;
|
|
3
|
-
export interface HasId {
|
|
4
|
-
id: string;
|
|
5
|
-
}
|
|
6
|
-
export declare function mkIdMap<T extends HasId>(xs: ReadonlyArray<T>): Map<string, T>;
|
|
7
|
-
export declare const mkShortId: () => string;
|
|
8
|
-
export declare const withoutNils: <T>(xs: (T | null | undefined)[]) => T[];
|
|
9
|
-
interface AutoSettings {
|
|
10
|
-
dataType: "auto";
|
|
11
|
-
}
|
|
12
|
-
interface NumberSettings {
|
|
13
|
-
dataType: "number";
|
|
14
|
-
decimalPlacesExpr: RowFunc<number>;
|
|
15
|
-
showThousandsSeparator: boolean;
|
|
16
|
-
}
|
|
17
|
-
interface BooleanSettings {
|
|
18
|
-
dataType: "boolean";
|
|
19
|
-
showFalseAs: "empty" | "dash" | "cross";
|
|
20
|
-
}
|
|
21
|
-
interface StringSettings {
|
|
22
|
-
dataType: "string";
|
|
23
|
-
}
|
|
24
|
-
interface StyleConfig {
|
|
25
|
-
styles: {};
|
|
26
|
-
align: "left" | "center" | "right";
|
|
27
|
-
freeze: "off" | "left" | "right";
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Exprs are for things that can must re-evaluate from row to row.
|
|
32
|
-
*
|
|
33
|
-
* Literal values are for things that are column-level. (But in Plasmic Studio, as with all props, you can still use a dynamic value.)
|
|
34
|
-
*/
|
|
35
|
-
export
|
|
36
|
-
key: string;
|
|
37
|
-
fieldId?: string;
|
|
38
|
-
title?: string;
|
|
39
|
-
expr?: RowFunc<any>;
|
|
40
|
-
isEditableExpr: RowFunc<boolean>;
|
|
41
|
-
disableSorting: boolean;
|
|
42
|
-
sortByExpr?: RowFunc<any>;
|
|
43
|
-
isHidden: boolean;
|
|
44
|
-
formatting: StyleConfig;
|
|
45
|
-
} & (AutoSettings | NumberSettings | StringSettings | BooleanSettings);
|
|
46
|
-
export
|
|
47
|
-
export declare function deriveFieldConfigs(specifiedFieldsPartial: PartialColumnConfig[], schema: TableSchema | undefined): {
|
|
48
|
-
mergedFields: ColumnConfig[];
|
|
49
|
-
minimalFullLengthFields: PartialColumnConfig[];
|
|
50
|
-
};
|
|
51
|
-
export {};
|
|
1
|
+
import { TableSchema } from "@plasmicapp/data-sources";
|
|
2
|
+
export declare const tuple: <T extends any[]>(...args: T) => T;
|
|
3
|
+
export interface HasId {
|
|
4
|
+
id: string;
|
|
5
|
+
}
|
|
6
|
+
export declare function mkIdMap<T extends HasId>(xs: ReadonlyArray<T>): Map<string, T>;
|
|
7
|
+
export declare const mkShortId: () => string;
|
|
8
|
+
export declare const withoutNils: <T>(xs: (T | null | undefined)[]) => T[];
|
|
9
|
+
interface AutoSettings {
|
|
10
|
+
dataType: "auto";
|
|
11
|
+
}
|
|
12
|
+
interface NumberSettings {
|
|
13
|
+
dataType: "number";
|
|
14
|
+
decimalPlacesExpr: RowFunc<number>;
|
|
15
|
+
showThousandsSeparator: boolean;
|
|
16
|
+
}
|
|
17
|
+
interface BooleanSettings {
|
|
18
|
+
dataType: "boolean";
|
|
19
|
+
showFalseAs: "empty" | "dash" | "cross";
|
|
20
|
+
}
|
|
21
|
+
interface StringSettings {
|
|
22
|
+
dataType: "string";
|
|
23
|
+
}
|
|
24
|
+
interface StyleConfig {
|
|
25
|
+
styles: {};
|
|
26
|
+
align: "left" | "center" | "right";
|
|
27
|
+
freeze: "off" | "left" | "right";
|
|
28
|
+
}
|
|
29
|
+
type RowFunc<Result> = (row: Record<string, unknown>) => Result;
|
|
30
|
+
/**
|
|
31
|
+
* Exprs are for things that can must re-evaluate from row to row.
|
|
32
|
+
*
|
|
33
|
+
* Literal values are for things that are column-level. (But in Plasmic Studio, as with all props, you can still use a dynamic value.)
|
|
34
|
+
*/
|
|
35
|
+
export type ColumnConfig = {
|
|
36
|
+
key: string;
|
|
37
|
+
fieldId?: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
expr?: RowFunc<any>;
|
|
40
|
+
isEditableExpr: RowFunc<boolean>;
|
|
41
|
+
disableSorting: boolean;
|
|
42
|
+
sortByExpr?: RowFunc<any>;
|
|
43
|
+
isHidden: boolean;
|
|
44
|
+
formatting: StyleConfig;
|
|
45
|
+
} & (AutoSettings | NumberSettings | StringSettings | BooleanSettings);
|
|
46
|
+
export type PartialColumnConfig = Partial<ColumnConfig>;
|
|
47
|
+
export declare function deriveFieldConfigs(specifiedFieldsPartial: PartialColumnConfig[], schema: TableSchema | undefined): {
|
|
48
|
+
mergedFields: ColumnConfig[];
|
|
49
|
+
minimalFullLengthFields: PartialColumnConfig[];
|
|
50
|
+
};
|
|
51
|
+
export {};
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Registerable } from "./utils";
|
|
2
|
-
export { RichLayout } from "./rich-layout";
|
|
3
|
-
export { RichTable } from "./rich-table";
|
|
4
|
-
export declare function registerAll(loader?: Registerable): void;
|
|
1
|
+
import { Registerable } from "./utils";
|
|
2
|
+
export { RichLayout } from "./rich-layout";
|
|
3
|
+
export { RichTable, tableHelpers } from "./rich-table";
|
|
4
|
+
export declare function registerAll(loader?: Registerable): void;
|