@geotrekce/geotrek-rando-widget 0.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/LICENSE +21 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js +19 -0
- package/dist/cjs/grw-app_7.cjs.entry.js +14662 -0
- package/dist/cjs/index-31255e29.js +1262 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +21 -0
- package/dist/collection/assets/arrow-back.svg +1 -0
- package/dist/collection/assets/ascent.svg +1 -0
- package/dist/collection/assets/departure-arrival.svg +1 -0
- package/dist/collection/assets/duration.svg +1 -0
- package/dist/collection/assets/length.svg +1 -0
- package/dist/collection/collection-manifest.json +18 -0
- package/dist/collection/components/grw-app/grw-app.css +112 -0
- package/dist/collection/components/grw-app/grw-app.js +156 -0
- package/dist/collection/components/grw-map/grw-map.css +686 -0
- package/dist/collection/components/grw-map/grw-map.js +187 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.css +66 -0
- package/dist/collection/components/grw-trek-card/grw-trek-card.js +90 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +58 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +74 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.css +21 -0
- package/dist/collection/components/grw-treks-list/grw-treks-list.js +38 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/store/grw-trek-provider.js +63 -0
- package/dist/collection/store/grw-treks-provider.js +65 -0
- package/dist/collection/store/store.js +11 -0
- package/dist/collection/stories/App.js +9 -0
- package/dist/collection/stories/App.stories.js +21 -0
- package/dist/collection/stories/TrekCard.js +7 -0
- package/dist/collection/stories/TrekCard.stories.js +18 -0
- package/dist/collection/stories/TrekDetail.js +7 -0
- package/dist/collection/stories/TrekDetail.stories.js +18 -0
- package/dist/collection/stories/TrekMap.js +11 -0
- package/dist/collection/stories/TrekMap.stories.js +21 -0
- package/dist/collection/stories/TreksList.js +6 -0
- package/dist/collection/stories/TreksList.stories.js +17 -0
- package/dist/collection/stories/TreksMap.js +7 -0
- package/dist/collection/stories/TreksMap.stories.js +17 -0
- package/dist/collection/types/types.js +1 -0
- package/dist/collection/utils/utils.js +19 -0
- package/dist/components/grw-app.d.ts +11 -0
- package/dist/components/grw-app.js +98 -0
- package/dist/components/grw-map.d.ts +11 -0
- package/dist/components/grw-map.js +6 -0
- package/dist/components/grw-map2.js +14288 -0
- package/dist/components/grw-trek-card.d.ts +11 -0
- package/dist/components/grw-trek-card.js +6 -0
- package/dist/components/grw-trek-card2.js +45 -0
- package/dist/components/grw-trek-detail.d.ts +11 -0
- package/dist/components/grw-trek-detail.js +6 -0
- package/dist/components/grw-trek-detail2.js +44 -0
- package/dist/components/grw-trek-provider.d.ts +11 -0
- package/dist/components/grw-trek-provider.js +6 -0
- package/dist/components/grw-trek-provider2.js +49 -0
- package/dist/components/grw-treks-list.d.ts +11 -0
- package/dist/components/grw-treks-list.js +6 -0
- package/dist/components/grw-treks-list2.js +57 -0
- package/dist/components/grw-treks-provider.d.ts +11 -0
- package/dist/components/grw-treks-provider.js +6 -0
- package/dist/components/grw-treks-provider2.js +51 -0
- package/dist/components/index.d.ts +26 -0
- package/dist/components/index.js +1 -0
- package/dist/components/length.js +27 -0
- package/dist/components/store.js +196 -0
- package/dist/esm/geotrek-rando-widget.js +17 -0
- package/dist/esm/grw-app_7.entry.js +14652 -0
- package/dist/esm/index-b36f38f5.js +1232 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +17 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.css +1 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -0
- package/dist/geotrek-rando-widget/index.esm.js +0 -0
- package/dist/geotrek-rando-widget/p-f721481d.js +2 -0
- package/dist/geotrek-rando-widget/p-fe788eaa.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +15 -0
- package/dist/types/components/grw-map/grw-map.d.ts +17 -0
- package/dist/types/components/grw-trek-card/grw-trek-card.d.ts +12 -0
- package/dist/types/components/grw-trek-detail/grw-trek-detail.d.ts +10 -0
- package/dist/types/components/grw-treks-list/grw-treks-list.d.ts +10 -0
- package/dist/types/components.d.ts +149 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1565 -0
- package/dist/types/store/grw-trek-provider.d.ts +7 -0
- package/dist/types/store/grw-treks-provider.d.ts +6 -0
- package/dist/types/store/store.d.ts +18 -0
- package/dist/types/types/types.d.ts +48 -0
- package/dist/types/utils/utils.d.ts +3 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +12 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +10 -0
- package/package.json +57 -0
- package/readme.md +3 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Difficulties, Practices, Routes, Trek, Treks } from 'types/types';
|
|
2
|
+
declare const state: {
|
|
3
|
+
api: string;
|
|
4
|
+
treks: Treks;
|
|
5
|
+
difficulties: Difficulties;
|
|
6
|
+
routes: Routes;
|
|
7
|
+
practices: Practices;
|
|
8
|
+
currentTrek: Trek;
|
|
9
|
+
}, onChange: import("@stencil/store/dist/types").OnChangeHandler<{
|
|
10
|
+
api: string;
|
|
11
|
+
treks: Treks;
|
|
12
|
+
difficulties: Difficulties;
|
|
13
|
+
routes: Routes;
|
|
14
|
+
practices: Practices;
|
|
15
|
+
currentTrek: Trek;
|
|
16
|
+
}>;
|
|
17
|
+
export { onChange };
|
|
18
|
+
export default state;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { LineString, Position } from 'geojson';
|
|
2
|
+
export declare type Treks = Trek[];
|
|
3
|
+
export declare type Trek = {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
attachments: Attachments;
|
|
7
|
+
description?: string;
|
|
8
|
+
description_teaser: string;
|
|
9
|
+
difficulty: number;
|
|
10
|
+
route: number;
|
|
11
|
+
practice: number;
|
|
12
|
+
duration: number;
|
|
13
|
+
length_2d: number;
|
|
14
|
+
ascent: number;
|
|
15
|
+
geometry?: LineString;
|
|
16
|
+
departure_geom?: Position;
|
|
17
|
+
};
|
|
18
|
+
export declare type Attachments = Attachment[];
|
|
19
|
+
export declare type Attachment = {
|
|
20
|
+
backend: string;
|
|
21
|
+
type: string;
|
|
22
|
+
author: string;
|
|
23
|
+
thumbnail: string;
|
|
24
|
+
legend: string;
|
|
25
|
+
title: string;
|
|
26
|
+
url: string;
|
|
27
|
+
uuid: string;
|
|
28
|
+
};
|
|
29
|
+
export declare type Difficulties = Difficulty[];
|
|
30
|
+
export declare type Difficulty = {
|
|
31
|
+
id: number;
|
|
32
|
+
cirkwi_level: number;
|
|
33
|
+
label: string;
|
|
34
|
+
pictogram: string;
|
|
35
|
+
};
|
|
36
|
+
export declare type Routes = Route[];
|
|
37
|
+
export declare type Route = {
|
|
38
|
+
id: number;
|
|
39
|
+
route: string;
|
|
40
|
+
pictogram: string;
|
|
41
|
+
};
|
|
42
|
+
export declare type Practices = Practice[];
|
|
43
|
+
export declare type Practice = {
|
|
44
|
+
id: number;
|
|
45
|
+
name: string;
|
|
46
|
+
order: number;
|
|
47
|
+
pictogram: string;
|
|
48
|
+
};
|
package/loader/cdn.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from '../dist/types/components';
|
|
2
|
+
export interface CustomElementsDefineOptions {
|
|
3
|
+
exclude?: string[];
|
|
4
|
+
resourcesUrl?: string;
|
|
5
|
+
syncQueue?: boolean;
|
|
6
|
+
jmp?: (c: Function) => any;
|
|
7
|
+
raf?: (c: FrameRequestCallback) => number;
|
|
8
|
+
ael?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
9
|
+
rel?: (el: EventTarget, eventName: string, listener: EventListenerOrEventListenerObject, options: boolean | AddEventListenerOptions) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare function defineCustomElements(win?: Window, opts?: CustomElementsDefineOptions): Promise<void>;
|
|
12
|
+
export declare function applyPolyfills(): Promise<void>;
|
package/loader/index.js
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
|
|
2
|
+
(function(){if("undefined"!==typeof window&&void 0!==window.Reflect&&void 0!==window.customElements){var a=HTMLElement;window.HTMLElement=function(){return Reflect.construct(a,[],this.constructor)};HTMLElement.prototype=a.prototype;HTMLElement.prototype.constructor=HTMLElement;Object.setPrototypeOf(HTMLElement,a)}})();
|
|
3
|
+
export * from '../dist/esm/polyfills/index.js';
|
|
4
|
+
export * from '../dist/esm/loader.js';
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@geotrekce/geotrek-rando-widget",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Geotrek Rando Widget",
|
|
5
|
+
"main": "dist/index.cjs.js",
|
|
6
|
+
"module": "dist/index.js",
|
|
7
|
+
"es2015": "dist/esm/index.mjs",
|
|
8
|
+
"es2017": "dist/esm/index.mjs",
|
|
9
|
+
"types": "dist/types/index.d.ts",
|
|
10
|
+
"collection": "dist/collection/collection-manifest.json",
|
|
11
|
+
"collection:main": "dist/collection/index.js",
|
|
12
|
+
"unpkg": "dist/geotrek-rando-widget/geotrek-rando-widget.esm.js",
|
|
13
|
+
"repository": "github:GeotrekCE/Geotrek-rando-widget",
|
|
14
|
+
"files": [
|
|
15
|
+
"dist/",
|
|
16
|
+
"loader/"
|
|
17
|
+
],
|
|
18
|
+
"scripts": {
|
|
19
|
+
"build": "stencil build --docs",
|
|
20
|
+
"start": "stencil build --dev --watch --serve",
|
|
21
|
+
"test": "stencil test --spec --e2e",
|
|
22
|
+
"test.watch": "stencil test --spec --e2e --watchAll",
|
|
23
|
+
"generate": "stencil generate",
|
|
24
|
+
"storybook": "start-storybook -p 6006",
|
|
25
|
+
"build-storybook": "build-storybook",
|
|
26
|
+
"deploy-storybook": "storybook-to-ghpages",
|
|
27
|
+
"prepare": "npm run build"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@stencil/core": "^2.13.0",
|
|
31
|
+
"@types/geojson": "^7946.0.8",
|
|
32
|
+
"@types/leaflet": "^1.7.11",
|
|
33
|
+
"leaflet": "^1.8.0"
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@babel/core": "^7.18.5",
|
|
37
|
+
"@stencil/sass": "^1.5.2",
|
|
38
|
+
"@stencil/store": "^1.5.0",
|
|
39
|
+
"@storybook/addon-actions": "^6.5.9",
|
|
40
|
+
"@storybook/addon-essentials": "^6.5.9",
|
|
41
|
+
"@storybook/addon-interactions": "^6.5.9",
|
|
42
|
+
"@storybook/addon-links": "^6.5.9",
|
|
43
|
+
"@storybook/builder-webpack4": "^6.5.9",
|
|
44
|
+
"@storybook/html": "^6.5.9",
|
|
45
|
+
"@storybook/manager-webpack4": "^6.5.9",
|
|
46
|
+
"@storybook/storybook-deployer": "^2.8.11",
|
|
47
|
+
"@storybook/testing-library": "^0.0.13",
|
|
48
|
+
"@types/jest": "^27.0.3",
|
|
49
|
+
"babel-loader": "^8.2.5",
|
|
50
|
+
"jest": "^27.4.5",
|
|
51
|
+
"jest-cli": "^27.4.5",
|
|
52
|
+
"puppeteer": "^10.0.0",
|
|
53
|
+
"stencil-inline-svg": "^1.1.0"
|
|
54
|
+
},
|
|
55
|
+
"author": "bastien.alvez@makina-corpus.com",
|
|
56
|
+
"license": "MIT"
|
|
57
|
+
}
|
package/readme.md
ADDED