sf-i-reporting 1.0.1
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/CHANGELOG.md +41 -0
- package/DataObject.d.ts +11 -0
- package/DataObject.d.ts.map +1 -0
- package/DataObject.js +26 -0
- package/DataObject.js.map +1 -0
- package/LICENSE +28 -0
- package/README copy.md +588 -0
- package/README.md +3 -0
- package/dataObjects.d.ts +20 -0
- package/dataObjects.d.ts.map +1 -0
- package/dataObjects.js +39 -0
- package/dataObjects.js.map +1 -0
- package/package.json +82 -0
- package/sf-i-reporting.d.ts +55 -0
- package/sf-i-reporting.d.ts.map +1 -0
- package/sf-i-reporting.js +671 -0
- package/sf-i-reporting.js.map +1 -0
- package/util.d.ts +9 -0
- package/util.d.ts.map +1 -0
- package/util.js +47 -0
- package/util.js.map +1 -0
package/package.json
ADDED
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "sf-i-reporting",
|
|
3
|
+
"private": false,
|
|
4
|
+
"version": "1.0.1",
|
|
5
|
+
"description": "Superflows Reporting Component",
|
|
6
|
+
"main": "sf-i-reporting.js",
|
|
7
|
+
"module": "sf-i-reporting.js",
|
|
8
|
+
"type": "module",
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"build:watch": "tsc --watch",
|
|
12
|
+
"clean": "rimraf sf-i-reporting.{d.ts,d.ts.map,js,js.map} test/sf-i-reporting.{d.ts,d.ts.map,js,js.map} test/sf-i-reporting_test.{d.ts,d.ts.map,js,js.map}",
|
|
13
|
+
"lint": "npm run lint:lit-analyzer && npm run lint:eslint",
|
|
14
|
+
"lint:eslint": "eslint 'src/**/*.ts'",
|
|
15
|
+
"lint:lit-analyzer": "lit-analyzer",
|
|
16
|
+
"format": "prettier \"**/*.{cjs,html,js,json,md,ts}\" --ignore-path ./.eslintignore --write",
|
|
17
|
+
"analyze": "cem analyze --litelement --globs \"src/**/*.ts\"",
|
|
18
|
+
"analyze:watch": "cem analyze --litelement --globs \"src/**/*.ts\" --watch",
|
|
19
|
+
"serve": "wds --watch",
|
|
20
|
+
"serve:prod": "MODE=prod npm run serve",
|
|
21
|
+
"test": "npm run test:dev && npm run test:prod",
|
|
22
|
+
"test:dev": "wtr --verbose=true --coverage --silent=false",
|
|
23
|
+
"test:watch": "wtr --watch",
|
|
24
|
+
"test:prod": "MODE=prod wtr",
|
|
25
|
+
"test:prod:watch": "MODE=prod wtr --watch",
|
|
26
|
+
"checksize": "rollup -c ; cat sf-i-reporting.bundled.js | gzip -9 | wc -c ; rm sf-i-reporting.bundled.js"
|
|
27
|
+
},
|
|
28
|
+
"keywords": [
|
|
29
|
+
"superflows",
|
|
30
|
+
"react",
|
|
31
|
+
"serverless",
|
|
32
|
+
"buttons",
|
|
33
|
+
"input",
|
|
34
|
+
"navigation",
|
|
35
|
+
"building blocks",
|
|
36
|
+
"lego",
|
|
37
|
+
"search",
|
|
38
|
+
"notifications",
|
|
39
|
+
"login",
|
|
40
|
+
"sign in",
|
|
41
|
+
"profile",
|
|
42
|
+
"menu",
|
|
43
|
+
"brand",
|
|
44
|
+
"lit",
|
|
45
|
+
"lit-element",
|
|
46
|
+
"navigation-bar",
|
|
47
|
+
"web component",
|
|
48
|
+
"browser"
|
|
49
|
+
],
|
|
50
|
+
"author": "Superflows-dev",
|
|
51
|
+
"license": "MIT",
|
|
52
|
+
"repository": "superflows-dev/sf-i-reporting",
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"fs": "^0.0.1-security",
|
|
55
|
+
"lit": "^2.2.4",
|
|
56
|
+
"sinon": "^15.0.1"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@11ty/eleventy": "^1.0.1",
|
|
60
|
+
"@11ty/eleventy-plugin-syntaxhighlight": "^4.0.0",
|
|
61
|
+
"@custom-elements-manifest/analyzer": "^0.6.3",
|
|
62
|
+
"@open-wc/testing": "^3.1.7",
|
|
63
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
64
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
65
|
+
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
66
|
+
"@typescript-eslint/parser": "^5.25.0",
|
|
67
|
+
"@web/dev-server": "^0.1.31",
|
|
68
|
+
"@web/dev-server-legacy": "^1.0.0",
|
|
69
|
+
"@web/test-runner": "^0.13.27",
|
|
70
|
+
"@web/test-runner-playwright": "^0.8.8",
|
|
71
|
+
"@webcomponents/webcomponentsjs": "^2.6.0",
|
|
72
|
+
"eslint": "^8.15.0",
|
|
73
|
+
"lit-analyzer": "^1.2.1",
|
|
74
|
+
"prettier": "^2.6.2",
|
|
75
|
+
"rimraf": "^3.0.2",
|
|
76
|
+
"rollup": "^2.73.0",
|
|
77
|
+
"rollup-plugin-summary": "^1.4.3",
|
|
78
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
79
|
+
"typescript": "~4.7.4"
|
|
80
|
+
},
|
|
81
|
+
"customElements": "custom-elements.json"
|
|
82
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright 2022 Superflow.dev
|
|
4
|
+
* SPDX-License-Identifier: MIT
|
|
5
|
+
*/
|
|
6
|
+
import { LitElement, PropertyValueMap } from 'lit';
|
|
7
|
+
import { DataObject, AddButtonObject } from './dataObjects';
|
|
8
|
+
/**
|
|
9
|
+
* SfIReporting element.
|
|
10
|
+
* @fires renderComplete - When the list is populated
|
|
11
|
+
* @fires valueChanged - When the value is changed
|
|
12
|
+
* @property apiId - backend api id
|
|
13
|
+
* @property label - input label
|
|
14
|
+
* @property name - name of the input
|
|
15
|
+
* @property mode - mode of operation
|
|
16
|
+
* @property selectedId - id to preselect
|
|
17
|
+
* @property selectedValue - callback function
|
|
18
|
+
*/
|
|
19
|
+
export declare class SfIReporting extends LitElement {
|
|
20
|
+
configjson: string;
|
|
21
|
+
getConfigJson: () => any;
|
|
22
|
+
prepopulateValJson: string;
|
|
23
|
+
getPrepopulateJson: () => any;
|
|
24
|
+
mode: string;
|
|
25
|
+
dataModel: any[];
|
|
26
|
+
static styles: import("lit").CSSResult;
|
|
27
|
+
_SfIReportingC: any;
|
|
28
|
+
_SfReportingContainer: any;
|
|
29
|
+
_SfReportingButtonContainer: any;
|
|
30
|
+
_SfReportingButtonSubmit: any;
|
|
31
|
+
_SfReportingButtonEdit: any;
|
|
32
|
+
constructor();
|
|
33
|
+
truncate: (str: string, n: number, useWordBoundary: boolean) => string;
|
|
34
|
+
submitClick: () => void;
|
|
35
|
+
editClick: () => void;
|
|
36
|
+
initListeners: () => void;
|
|
37
|
+
populateDataModel: () => void;
|
|
38
|
+
populateView: () => void;
|
|
39
|
+
prepopulateValues: () => void;
|
|
40
|
+
initAddListeners: () => void;
|
|
41
|
+
initSectionListeners: () => void;
|
|
42
|
+
renderAddButton: (addObj: AddButtonObject) => string;
|
|
43
|
+
renderElement: (dataObj: DataObject) => string;
|
|
44
|
+
populateViewShort: () => void;
|
|
45
|
+
loadMode: () => Promise<void>;
|
|
46
|
+
protected firstUpdated(_changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void;
|
|
47
|
+
connectedCallback(): void;
|
|
48
|
+
render(): import("lit-html").TemplateResult<1>;
|
|
49
|
+
}
|
|
50
|
+
declare global {
|
|
51
|
+
interface HTMLElementTagNameMap {
|
|
52
|
+
'sf-i-reporting': SfIReporting;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
//# sourceMappingURL=sf-i-reporting.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sf-i-reporting.d.ts","sourceRoot":"","sources":["src/sf-i-reporting.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAC,UAAU,EAAa,gBAAgB,EAAC,MAAM,KAAK,CAAC;AAO5D,OAAO,EAAC,UAAU,EAAE,eAAe,EAA6D,MAAM,eAAe,CAAC;AAStH;;;;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