@internetarchive/histogram-date-range 0.1.7 → 0.1.8-alpha.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/.editorconfig +29 -29
- package/.eslintrc.js +14 -14
- package/.github/workflows/ci.yml +26 -26
- package/LICENSE +661 -661
- package/README.md +104 -104
- package/demo/index.css +22 -22
- package/demo/index.html +159 -159
- package/demo/js/app-root.ts +59 -59
- package/dist/demo/js/app-root.d.ts +19 -19
- package/dist/demo/js/app-root.js +57 -57
- package/dist/demo/js/app-root.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/src/histogram-date-range.d.ts +154 -154
- package/dist/src/histogram-date-range.js +812 -811
- package/dist/src/histogram-date-range.js.map +1 -1
- package/dist/test/histogram-date-range.test.d.ts +1 -1
- package/dist/test/histogram-date-range.test.js +430 -430
- package/dist/test/histogram-date-range.test.js.map +1 -1
- package/docs/demo/index.css +22 -22
- package/docs/demo/index.html +159 -159
- package/docs/dist/src/histogram-date-range.js +2 -1
- package/index.ts +1 -1
- package/package.json +84 -84
- package/snowpack.config.js +10 -10
- package/src/histogram-date-range.ts +881 -880
- package/test/histogram-date-range.test.ts +595 -595
- package/tsconfig.json +21 -21
- package/web-dev-server.config.mjs +28 -28
- package/web-test-runner.config.mjs +29 -29
package/package.json
CHANGED
|
@@ -1,84 +1,84 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@internetarchive/histogram-date-range",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"description": "Internet Archive histogram date range picker",
|
|
5
|
-
"license": "AGPL-3.0-only",
|
|
6
|
-
"main": "dist/index.js",
|
|
7
|
-
"module": "dist/index.js",
|
|
8
|
-
"types": "dist/index.d.ts",
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"access": "public"
|
|
11
|
-
},
|
|
12
|
-
"scripts": {
|
|
13
|
-
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
|
|
14
|
-
"build": "snowpack build && touch docs/.nojekyll",
|
|
15
|
-
"prepublish": "tsc",
|
|
16
|
-
"prepare": "npm run build",
|
|
17
|
-
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
18
|
-
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
19
|
-
"test": "tsc && wtr --coverage",
|
|
20
|
-
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\""
|
|
21
|
-
},
|
|
22
|
-
"dependencies": {
|
|
23
|
-
"@internetarchive/ia-activity-indicator": "^0.0.3",
|
|
24
|
-
"dayjs": "^1.10.7",
|
|
25
|
-
"lit": "^2.2.7"
|
|
26
|
-
},
|
|
27
|
-
"devDependencies": {
|
|
28
|
-
"@open-wc/eslint-config": "^7.0.0",
|
|
29
|
-
"@open-wc/testing": "^3.0.3",
|
|
30
|
-
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
31
|
-
"@typescript-eslint/parser": "^5.10.0",
|
|
32
|
-
"@web/dev-server": "^0.1.29",
|
|
33
|
-
"@web/test-runner": "^0.13.25",
|
|
34
|
-
"concurrently": "^7.0.0",
|
|
35
|
-
"eslint": "^8.7.0",
|
|
36
|
-
"eslint-config-prettier": "^8.3.0",
|
|
37
|
-
"husky": "^4.3.8",
|
|
38
|
-
"lint-staged": "^12.2.2",
|
|
39
|
-
"lit-html": "^2.1.1",
|
|
40
|
-
"prettier": "^2.5.1",
|
|
41
|
-
"snowpack": "^3.8.8",
|
|
42
|
-
"tslib": "^2.3.1",
|
|
43
|
-
"typescript": "^4.5"
|
|
44
|
-
},
|
|
45
|
-
"eslintConfig": {
|
|
46
|
-
"parser": "@typescript-eslint/parser",
|
|
47
|
-
"extends": [
|
|
48
|
-
"@open-wc/eslint-config",
|
|
49
|
-
"eslint-config-prettier"
|
|
50
|
-
],
|
|
51
|
-
"plugins": [
|
|
52
|
-
"@typescript-eslint"
|
|
53
|
-
],
|
|
54
|
-
"rules": {
|
|
55
|
-
"no-unused-vars": "off",
|
|
56
|
-
"@typescript-eslint/no-unused-vars": [
|
|
57
|
-
"error"
|
|
58
|
-
],
|
|
59
|
-
"import/no-unresolved": "off",
|
|
60
|
-
"import/extensions": [
|
|
61
|
-
"error",
|
|
62
|
-
"always",
|
|
63
|
-
{
|
|
64
|
-
"ignorePackages": true
|
|
65
|
-
}
|
|
66
|
-
]
|
|
67
|
-
}
|
|
68
|
-
},
|
|
69
|
-
"prettier": {
|
|
70
|
-
"singleQuote": true,
|
|
71
|
-
"arrowParens": "avoid"
|
|
72
|
-
},
|
|
73
|
-
"husky": {
|
|
74
|
-
"hooks": {
|
|
75
|
-
"pre-commit": "lint-staged"
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
"lint-staged": {
|
|
79
|
-
"*.ts": [
|
|
80
|
-
"eslint --fix",
|
|
81
|
-
"prettier --write"
|
|
82
|
-
]
|
|
83
|
-
}
|
|
84
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@internetarchive/histogram-date-range",
|
|
3
|
+
"version": "0.1.8-alpha.1",
|
|
4
|
+
"description": "Internet Archive histogram date range picker",
|
|
5
|
+
"license": "AGPL-3.0-only",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"module": "dist/index.js",
|
|
8
|
+
"types": "dist/index.d.ts",
|
|
9
|
+
"publishConfig": {
|
|
10
|
+
"access": "public"
|
|
11
|
+
},
|
|
12
|
+
"scripts": {
|
|
13
|
+
"start": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wds\"",
|
|
14
|
+
"build": "snowpack build && touch docs/.nojekyll",
|
|
15
|
+
"prepublish": "tsc",
|
|
16
|
+
"prepare": "npm run build",
|
|
17
|
+
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
|
|
18
|
+
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
|
|
19
|
+
"test": "tsc && wtr --coverage",
|
|
20
|
+
"test:watch": "tsc && concurrently -k -r \"tsc --watch --preserveWatchOutput\" \"wtr --watch\""
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@internetarchive/ia-activity-indicator": "^0.0.3",
|
|
24
|
+
"dayjs": "^1.10.7",
|
|
25
|
+
"lit": "^2.2.7"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@open-wc/eslint-config": "^7.0.0",
|
|
29
|
+
"@open-wc/testing": "^3.0.3",
|
|
30
|
+
"@typescript-eslint/eslint-plugin": "^5.10.0",
|
|
31
|
+
"@typescript-eslint/parser": "^5.10.0",
|
|
32
|
+
"@web/dev-server": "^0.1.29",
|
|
33
|
+
"@web/test-runner": "^0.13.25",
|
|
34
|
+
"concurrently": "^7.0.0",
|
|
35
|
+
"eslint": "^8.7.0",
|
|
36
|
+
"eslint-config-prettier": "^8.3.0",
|
|
37
|
+
"husky": "^4.3.8",
|
|
38
|
+
"lint-staged": "^12.2.2",
|
|
39
|
+
"lit-html": "^2.1.1",
|
|
40
|
+
"prettier": "^2.5.1",
|
|
41
|
+
"snowpack": "^3.8.8",
|
|
42
|
+
"tslib": "^2.3.1",
|
|
43
|
+
"typescript": "^4.5"
|
|
44
|
+
},
|
|
45
|
+
"eslintConfig": {
|
|
46
|
+
"parser": "@typescript-eslint/parser",
|
|
47
|
+
"extends": [
|
|
48
|
+
"@open-wc/eslint-config",
|
|
49
|
+
"eslint-config-prettier"
|
|
50
|
+
],
|
|
51
|
+
"plugins": [
|
|
52
|
+
"@typescript-eslint"
|
|
53
|
+
],
|
|
54
|
+
"rules": {
|
|
55
|
+
"no-unused-vars": "off",
|
|
56
|
+
"@typescript-eslint/no-unused-vars": [
|
|
57
|
+
"error"
|
|
58
|
+
],
|
|
59
|
+
"import/no-unresolved": "off",
|
|
60
|
+
"import/extensions": [
|
|
61
|
+
"error",
|
|
62
|
+
"always",
|
|
63
|
+
{
|
|
64
|
+
"ignorePackages": true
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
"prettier": {
|
|
70
|
+
"singleQuote": true,
|
|
71
|
+
"arrowParens": "avoid"
|
|
72
|
+
},
|
|
73
|
+
"husky": {
|
|
74
|
+
"hooks": {
|
|
75
|
+
"pre-commit": "lint-staged"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"lint-staged": {
|
|
79
|
+
"*.ts": [
|
|
80
|
+
"eslint --fix",
|
|
81
|
+
"prettier --write"
|
|
82
|
+
]
|
|
83
|
+
}
|
|
84
|
+
}
|
package/snowpack.config.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
buildOptions: {
|
|
3
|
-
out: 'docs',
|
|
4
|
-
},
|
|
5
|
-
mount: {
|
|
6
|
-
'demo/js': { url: '/dist/demo/js' },
|
|
7
|
-
demo: { url: '/demo' },
|
|
8
|
-
src: { url: '/dist/src' },
|
|
9
|
-
},
|
|
10
|
-
};
|
|
1
|
+
module.exports = {
|
|
2
|
+
buildOptions: {
|
|
3
|
+
out: 'docs',
|
|
4
|
+
},
|
|
5
|
+
mount: {
|
|
6
|
+
'demo/js': { url: '/dist/demo/js' },
|
|
7
|
+
demo: { url: '/demo' },
|
|
8
|
+
src: { url: '/dist/src' },
|
|
9
|
+
},
|
|
10
|
+
};
|