@piedata/pieui 1.2.9 → 1.2.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/cli.js +1910 -1845
- package/dist/code/args.d.ts +4 -0
- package/dist/code/args.d.ts.map +1 -0
- package/dist/code/commands/add.d.ts +3 -0
- package/dist/code/commands/add.d.ts.map +1 -0
- package/dist/code/commands/init.d.ts +2 -0
- package/dist/code/commands/init.d.ts.map +1 -0
- package/dist/code/commands/list.d.ts +3 -0
- package/dist/code/commands/list.d.ts.map +1 -0
- package/dist/code/commands/postbuild.d.ts +2 -0
- package/dist/code/commands/postbuild.d.ts.map +1 -0
- package/dist/code/commands/remove.d.ts +2 -0
- package/dist/code/commands/remove.d.ts.map +1 -0
- package/dist/code/registryPath.d.ts +8 -0
- package/dist/code/registryPath.d.ts.map +1 -0
- package/dist/code/scan.d.ts +4 -0
- package/dist/code/scan.d.ts.map +1 -0
- package/dist/code/schema.d.ts +4 -0
- package/dist/code/schema.d.ts.map +1 -0
- package/dist/code/templates/complexComponent.d.ts +2 -0
- package/dist/code/templates/complexComponent.d.ts.map +1 -0
- package/dist/code/templates/complexContainerComponent.d.ts +2 -0
- package/dist/code/templates/complexContainerComponent.d.ts.map +1 -0
- package/dist/code/templates/componentIndex.d.ts +2 -0
- package/dist/code/templates/componentIndex.d.ts.map +1 -0
- package/dist/code/templates/componentTypes.d.ts +2 -0
- package/dist/code/templates/componentTypes.d.ts.map +1 -0
- package/dist/code/templates/index.d.ts +8 -0
- package/dist/code/templates/index.d.ts.map +1 -0
- package/dist/code/templates/registerCall.d.ts +2 -0
- package/dist/code/templates/registerCall.d.ts.map +1 -0
- package/dist/code/templates/simpleComponent.d.ts +2 -0
- package/dist/code/templates/simpleComponent.d.ts.map +1 -0
- package/dist/code/templates/simpleContainerComponent.d.ts +2 -0
- package/dist/code/templates/simpleContainerComponent.d.ts.map +1 -0
- package/dist/code/ts.d.ts +4 -0
- package/dist/code/ts.d.ts.map +1 -0
- package/dist/code/types.d.ts +25 -0
- package/dist/code/types.d.ts.map +1 -0
- package/dist/components/index.esm.js +16 -16
- package/dist/components/index.js +59 -53
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.esm.js +22 -22
- package/dist/index.js +49 -43
- package/dist/pieui.components.json +27501 -1
- package/dist/util/pieName.d.ts +2 -0
- package/dist/util/pieName.d.ts.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../src/code/args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA6B,UAAU,EAAE,MAAM,SAAS,CAAA;AAEpE,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,EAAE,KAAG,UA6E1C,CAAA;AAED,eAAO,MAAM,UAAU,YAqFtB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"add.d.ts","sourceRoot":"","sources":["../../../src/code/commands/add.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AA6IxC,eAAO,MAAM,UAAU,GACnB,eAAe,MAAM,EACrB,gBAAe,aAAmC,SAsFrD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/code/commands/init.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,SAsHzC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../../../src/code/commands/list.ts"],"names":[],"mappings":"AAGA,OAAO,EAAiB,UAAU,EAAqB,MAAM,UAAU,CAAA;AAWvE,eAAO,MAAM,WAAW,GAAI,QAAQ,MAAM,EAAE,QAAQ,UAAU,SAkO7D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postbuild.d.ts","sourceRoot":"","sources":["../../../src/code/commands/postbuild.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,gBAAgB,GACzB,QAAQ,MAAM,EACd,QAAQ,MAAM,EACd,QAAQ,OAAO,kBAiNlB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["../../../src/code/commands/remove.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,aAAa,GAAI,eAAe,MAAM,SA6DlD,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resolves the path to the registry file inside `piecomponents`.
|
|
3
|
+
* Prefers `registry.ts`, but falls back to `registry.tsx` if the former
|
|
4
|
+
* does not exist. Returns the `.ts` candidate when neither exists so
|
|
5
|
+
* callers can still decide how to handle the missing file.
|
|
6
|
+
*/
|
|
7
|
+
export declare const resolveRegistryPath: (pieComponentsDir: string) => string;
|
|
8
|
+
//# sourceMappingURL=registryPath.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registryPath.d.ts","sourceRoot":"","sources":["../../src/code/registryPath.ts"],"names":[],"mappings":"AAGA;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,kBAAkB,MAAM,KAAG,MAU9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scan.d.ts","sourceRoot":"","sources":["../../src/code/scan.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,aAAa,EAAqB,MAAM,SAAS,CAAA;AAazE,eAAO,MAAM,0BAA0B,GAAI,QAAQ,MAAM,KAAG,aAAa,EAmOxE,CAAA;AAED,eAAO,MAAM,mBAAmB,GAC5B,WAAW,GAAG,EACd,SAAS,GAAG,KACb,aAgCF,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const isCssPropertiesType: (type: any, checker: any) => boolean;
|
|
2
|
+
export declare const schemaForIndexType: (type: any, checker: any) => Record<string, any>;
|
|
3
|
+
export declare const patchSchemaForType: (type: any, schema: Record<string, any>, checker: any, visited?: Set<number>) => void;
|
|
4
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schema.d.ts","sourceRoot":"","sources":["../../src/code/schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,GAAI,MAAM,GAAG,EAAE,SAAS,GAAG,KAAG,OAmC7D,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,MAAM,GAAG,EACT,SAAS,GAAG,KACb,MAAM,CAAC,MAAM,EAAE,GAAG,CA4CpB,CAAA;AAED,eAAO,MAAM,kBAAkB,GAC3B,MAAM,GAAG,EACT,QAAQ,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC3B,SAAS,GAAG,EACZ,UAAS,GAAG,CAAC,MAAM,CAAa,KACjC,IA6GF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complexComponent.d.ts","sourceRoot":"","sources":["../../../src/code/templates/complexComponent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,GAAI,eAAe,MAAM,KAAG,MAmBhE,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"complexContainerComponent.d.ts","sourceRoot":"","sources":["../../../src/code/templates/complexContainerComponent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iCAAiC,GAC1C,eAAe,MAAM,KACtB,MA+BF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentIndex.d.ts","sourceRoot":"","sources":["../../../src/code/templates/componentIndex.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,GAAI,eAAe,MAAM,KAAG,MAE9D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"componentTypes.d.ts","sourceRoot":"","sources":["../../../src/code/templates/componentTypes.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,GAC/B,eAAe,MAAM,EACrB,eAAe,MAAM,KACtB,MAQF,CAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ComponentType } from '../types';
|
|
2
|
+
import { componentIndexTemplate } from './componentIndex';
|
|
3
|
+
import { componentTypesTemplate } from './componentTypes';
|
|
4
|
+
import { registerCallTemplate } from './registerCall';
|
|
5
|
+
export { componentIndexTemplate, componentTypesTemplate, registerCallTemplate };
|
|
6
|
+
export declare const baseInterfaceFor: (componentType: ComponentType) => string;
|
|
7
|
+
export declare const componentTemplateFor: (componentType: ComponentType, componentName: string) => string;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/code/templates/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAA;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAA;AACzD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAA;AAMrD,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,CAAA;AAS/E,eAAO,MAAM,gBAAgB,GAAI,eAAe,aAAa,KAAG,MACvB,CAAA;AAEzC,eAAO,MAAM,oBAAoB,GAC7B,eAAe,aAAa,EAC5B,eAAe,MAAM,KACtB,MAYF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerCall.d.ts","sourceRoot":"","sources":["../../../src/code/templates/registerCall.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,oBAAoB,GAAI,eAAe,MAAM,KAAG,MAIrD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpleComponent.d.ts","sourceRoot":"","sources":["../../../src/code/templates/simpleComponent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,GAAI,eAAe,MAAM,KAAG,MAmB/D,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simpleContainerComponent.d.ts","sourceRoot":"","sources":["../../../src/code/templates/simpleContainerComponent.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gCAAgC,GACzC,eAAe,MAAM,KACtB,MA8BF,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../src/code/ts.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,GAAG,MAAM,wBAAwB,CAAA;AAE7C,OAAO,EAAE,GAAG,EAAE,CAAA;AACd,eAAO,MAAM,EAAE,eAAS,CAAA"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type * as TJS from 'typescript-json-schema';
|
|
2
|
+
export declare const MANIFEST_FILENAME = "pieui.components.json";
|
|
3
|
+
export declare const REGISTER_FUNCTION = "registerPieComponent";
|
|
4
|
+
export type ComponentType = 'simple' | 'complex' | 'simple-container' | 'complex-container';
|
|
5
|
+
export type ListFilter = 'all' | ComponentType;
|
|
6
|
+
export type ParsedArgs = {
|
|
7
|
+
command: string;
|
|
8
|
+
outDir: string;
|
|
9
|
+
srcDir: string;
|
|
10
|
+
append: boolean;
|
|
11
|
+
componentName?: string;
|
|
12
|
+
componentType?: ComponentType;
|
|
13
|
+
removeComponentName?: string;
|
|
14
|
+
listFilter?: ListFilter;
|
|
15
|
+
};
|
|
16
|
+
export type ComponentManifestEntry = {
|
|
17
|
+
card: string;
|
|
18
|
+
data: TJS.Definition;
|
|
19
|
+
};
|
|
20
|
+
export type ComponentInfo = {
|
|
21
|
+
name: string;
|
|
22
|
+
file: string;
|
|
23
|
+
dataTypeName: string;
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/code/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM,wBAAwB,CAAA;AAElD,eAAO,MAAM,iBAAiB,0BAA0B,CAAA;AACxD,eAAO,MAAM,iBAAiB,yBAAyB,CAAA;AAEvD,MAAM,MAAM,aAAa,GACnB,QAAQ,GACR,SAAS,GACT,kBAAkB,GAClB,mBAAmB,CAAA;AAEzB,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,aAAa,CAAA;AAE9C,MAAM,MAAM,UAAU,GAAG;IACrB,OAAO,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,MAAM,CAAA;IACd,MAAM,EAAE,OAAO,CAAA;IACf,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,UAAU,CAAC,EAAE,UAAU,CAAA;CAC1B,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG;IACjC,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,GAAG,CAAC,UAAU,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,aAAa,GAAG;IACxB,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;CACvB,CAAA"}
|