@geotrekce/geotrek-rando-widget 0.2.4 → 0.2.6
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/cjs/geotrek-rando-widget.cjs.js +2 -2
- package/dist/cjs/geotrek-rando-widget.cjs.js.br +0 -0
- package/dist/cjs/geotrek-rando-widget.cjs.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js +11 -5
- package/dist/cjs/grw-app.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-app.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-filter_7.cjs.entry.js +24 -15
- package/dist/cjs/grw-filter_7.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-filter_7.cjs.entry.js.map +1 -1
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js +2 -2
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-information-desk-detail_3.cjs.entry.js.gz +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js +2 -2
- package/dist/cjs/grw-trek-card.cjs.entry.js.br +0 -0
- package/dist/cjs/grw-trek-card.cjs.entry.js.gz +0 -0
- package/dist/cjs/{index-4f1ea0dc.js → index-4965ff38.js} +13 -392
- package/dist/cjs/index-4965ff38.js.br +0 -0
- package/dist/cjs/index-4965ff38.js.gz +0 -0
- package/dist/cjs/index-4965ff38.js.map +1 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/loader.cjs.js.br +0 -0
- package/dist/cjs/loader.cjs.js.gz +0 -0
- package/dist/cjs/{store-6635208a.js → store-dea1bb76.js} +2 -2
- package/dist/cjs/store-dea1bb76.js.br +0 -0
- package/dist/cjs/store-dea1bb76.js.gz +0 -0
- package/dist/cjs/{store-6635208a.js.map → store-dea1bb76.js.map} +1 -1
- package/dist/collection/components/grw-app/grw-app.css +8 -0
- package/dist/collection/components/grw-app/grw-app.css.br +0 -0
- package/dist/collection/components/grw-app/grw-app.css.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js +8 -2
- package/dist/collection/components/grw-app/grw-app.js.br +0 -0
- package/dist/collection/components/grw-app/grw-app.js.gz +0 -0
- package/dist/collection/components/grw-app/grw-app.js.map +1 -1
- package/dist/collection/components/grw-map/grw-map.js +20 -10
- package/dist/collection/components/grw-map/grw-map.js.br +0 -0
- package/dist/collection/components/grw-map/grw-map.js.gz +0 -0
- package/dist/collection/components/grw-map/grw-map.js.map +1 -1
- package/dist/collection/components/grw-select-language/grw-select-language.css +8 -0
- package/dist/collection/components/grw-select-language/grw-select-language.css.br +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.css.gz +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js +1 -1
- package/dist/collection/components/grw-select-language/grw-select-language.js.br +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js.gz +0 -0
- package/dist/collection/components/grw-select-language/grw-select-language.js.map +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css +3 -2
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.css.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js +1 -1
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.br +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.gz +0 -0
- package/dist/collection/components/grw-trek-detail/grw-trek-detail.js.map +1 -1
- package/dist/esm/geotrek-rando-widget.js +3 -3
- package/dist/esm/geotrek-rando-widget.js.br +0 -0
- package/dist/esm/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm/grw-app.entry.js +11 -5
- package/dist/esm/grw-app.entry.js.br +0 -0
- package/dist/esm/grw-app.entry.js.gz +0 -0
- package/dist/esm/grw-app.entry.js.map +1 -1
- package/dist/esm/grw-filter_7.entry.js +24 -15
- package/dist/esm/grw-filter_7.entry.js.br +0 -0
- package/dist/esm/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm/grw-filter_7.entry.js.map +1 -1
- package/dist/esm/grw-information-desk-detail_3.entry.js +2 -2
- package/dist/esm/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm/grw-trek-card.entry.js +2 -2
- package/dist/esm/grw-trek-card.entry.js.br +0 -0
- package/dist/esm/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm/{index-54f82b03.js → index-e3b2b3c7.js} +13 -392
- package/dist/esm/index-e3b2b3c7.js.br +0 -0
- package/dist/esm/index-e3b2b3c7.js.gz +0 -0
- package/dist/esm/index-e3b2b3c7.js.map +1 -0
- package/dist/esm/loader.js +3 -3
- package/dist/esm/loader.js.br +0 -0
- package/dist/esm/loader.js.gz +0 -0
- package/dist/esm/{store-0fc1faf0.js → store-c65221a3.js} +2 -2
- package/dist/esm/store-c65221a3.js.br +0 -0
- package/dist/esm/store-c65221a3.js.gz +0 -0
- package/dist/esm/{store-0fc1faf0.js.map → store-c65221a3.js.map} +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js +1 -1
- package/dist/esm-es5/geotrek-rando-widget.js.br +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.gz +0 -0
- package/dist/esm-es5/geotrek-rando-widget.js.map +1 -1
- package/dist/esm-es5/grw-app.entry.js +1 -1
- package/dist/esm-es5/grw-app.entry.js.br +0 -0
- package/dist/esm-es5/grw-app.entry.js.gz +0 -0
- package/dist/esm-es5/grw-app.entry.js.map +1 -1
- package/dist/esm-es5/grw-filter_7.entry.js +2 -2
- package/dist/esm-es5/grw-filter_7.entry.js.br +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.gz +0 -0
- package/dist/esm-es5/grw-filter_7.entry.js.map +1 -1
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js +1 -1
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.br +0 -0
- package/dist/esm-es5/grw-information-desk-detail_3.entry.js.gz +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js +1 -1
- package/dist/esm-es5/grw-trek-card.entry.js.br +0 -0
- package/dist/esm-es5/grw-trek-card.entry.js.gz +0 -0
- package/dist/esm-es5/index-e3b2b3c7.js +3 -0
- package/dist/esm-es5/index-e3b2b3c7.js.br +0 -0
- package/dist/esm-es5/index-e3b2b3c7.js.gz +0 -0
- package/dist/esm-es5/index-e3b2b3c7.js.map +1 -0
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/loader.js.br +0 -0
- package/dist/esm-es5/loader.js.gz +0 -0
- package/dist/esm-es5/loader.js.map +1 -1
- package/dist/esm-es5/{store-0fc1faf0.js → store-c65221a3.js} +2 -2
- package/dist/esm-es5/store-c65221a3.js.br +0 -0
- package/dist/esm-es5/store-c65221a3.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.gz +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.esm.js.map +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js +1 -1
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js.br +0 -0
- package/dist/geotrek-rando-widget/geotrek-rando-widget.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-664e5947.entry.js → p-58780538.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-58780538.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-58780538.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-756407ef.system.entry.js → p-5d3b30cf.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-5d3b30cf.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-5d3b30cf.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-6d698d25.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-ce85e24a.entry.js → p-739b3529.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-739b3529.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-739b3529.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7505c6d0.entry.js +2 -0
- package/dist/geotrek-rando-widget/p-7505c6d0.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7505c6d0.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7505c6d0.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-648e7a24.system.entry.js → p-9347e4aa.system.entry.js} +2 -2
- package/dist/geotrek-rando-widget/p-9347e4aa.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9347e4aa.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-66b39d3f.system.entry.js → p-94ff5569.system.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-94ff5569.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-94ff5569.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-94ff5569.system.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/p-b3dbf860.js +3 -0
- package/dist/geotrek-rando-widget/p-b3dbf860.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b3dbf860.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b3dbf860.js.map +1 -0
- package/dist/geotrek-rando-widget/p-b6f2002a.system.js +3 -0
- package/dist/geotrek-rando-widget/p-b6f2002a.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b6f2002a.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b6f2002a.system.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-9330bbdb.entry.js → p-c321886e.entry.js} +3 -3
- package/dist/geotrek-rando-widget/p-c321886e.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-c321886e.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-c321886e.entry.js.map +1 -0
- package/dist/geotrek-rando-widget/{p-b73f1de1.system.js → p-dbc7b7b1.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-dbc7b7b1.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-dbc7b7b1.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-7ff4047d.js → p-dffaf93c.js} +2 -2
- package/dist/geotrek-rando-widget/p-dffaf93c.js.br +0 -0
- package/dist/geotrek-rando-widget/p-dffaf93c.js.gz +0 -0
- package/dist/geotrek-rando-widget/{p-243113ed.system.js → p-edf31fdc.system.js} +2 -2
- package/dist/geotrek-rando-widget/p-edf31fdc.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-edf31fdc.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-edf31fdc.system.js.map +1 -0
- package/dist/types/components/grw-app/grw-app.d.ts +2 -0
- package/dist/types/components/grw-map/grw-map.d.ts +6 -0
- package/package.json +1 -1
- package/dist/cjs/index-4f1ea0dc.js.br +0 -0
- package/dist/cjs/index-4f1ea0dc.js.gz +0 -0
- package/dist/cjs/index-4f1ea0dc.js.map +0 -1
- package/dist/cjs/store-6635208a.js.br +0 -0
- package/dist/cjs/store-6635208a.js.gz +0 -0
- package/dist/esm/index-54f82b03.js.br +0 -0
- package/dist/esm/index-54f82b03.js.gz +0 -0
- package/dist/esm/index-54f82b03.js.map +0 -1
- package/dist/esm/store-0fc1faf0.js.br +0 -0
- package/dist/esm/store-0fc1faf0.js.gz +0 -0
- package/dist/esm-es5/index-54f82b03.js +0 -3
- package/dist/esm-es5/index-54f82b03.js.br +0 -0
- package/dist/esm-es5/index-54f82b03.js.gz +0 -0
- package/dist/esm-es5/index-54f82b03.js.map +0 -1
- package/dist/esm-es5/store-0fc1faf0.js.br +0 -0
- package/dist/esm-es5/store-0fc1faf0.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-17823624.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-17823624.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-17823624.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-17823624.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-243113ed.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-243113ed.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-243113ed.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-648e7a24.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-648e7a24.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-664e5947.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-664e5947.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-66b39d3f.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-66b39d3f.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-66b39d3f.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-756407ef.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-756407ef.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-7ff4047d.js.br +0 -0
- package/dist/geotrek-rando-widget/p-7ff4047d.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9330bbdb.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-9330bbdb.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-9330bbdb.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js +0 -2
- package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-b3ed849d.system.entry.js.map +0 -1
- package/dist/geotrek-rando-widget/p-b73f1de1.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-b73f1de1.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-ce85e24a.entry.js.br +0 -0
- package/dist/geotrek-rando-widget/p-ce85e24a.entry.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fb7c407e.system.js +0 -3
- package/dist/geotrek-rando-widget/p-fb7c407e.system.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fb7c407e.system.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fb7c407e.system.js.map +0 -1
- package/dist/geotrek-rando-widget/p-fc1a08e2.js +0 -3
- package/dist/geotrek-rando-widget/p-fc1a08e2.js.br +0 -0
- package/dist/geotrek-rando-widget/p-fc1a08e2.js.gz +0 -0
- package/dist/geotrek-rando-widget/p-fc1a08e2.js.map +0 -1
- /package/dist/esm-es5/{store-0fc1faf0.js.map → store-c65221a3.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-664e5947.entry.js.map → p-58780538.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-756407ef.system.entry.js.map → p-5d3b30cf.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-ce85e24a.entry.js.map → p-739b3529.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-648e7a24.system.entry.js.map → p-9347e4aa.system.entry.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-b73f1de1.system.js.map → p-dbc7b7b1.system.js.map} +0 -0
- /package/dist/geotrek-rando-widget/{p-7ff4047d.js.map → p-dffaf93c.js.map} +0 -0
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-4965ff38.js');
|
|
6
6
|
const pagination = require('./pagination-149c2052.js');
|
|
7
|
-
const store = require('./store-
|
|
7
|
+
const store = require('./store-dea1bb76.js');
|
|
8
8
|
|
|
9
9
|
const grwInformationDeskDetailCss = ".material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}:host{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;overflow:hidden;border:1px solid gray;border-radius:12px;background-color:var(--color-surface-container-low);color:var(--color-on-surface)}:host a{color:var(--color-primary-app)}.information-desk-img{position:relative}.information-desk-img img{width:100%;height:100%;max-height:200px;-o-object-fit:cover;object-fit:cover}.information-desk-sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;padding:12px}.information-desk-name{font-size:16px;line-height:24px;font-weight:500}.information-desk-description{font-size:14px;line-height:20px}.information-desk-description-short{font-size:14px;line-height:20px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;overflow:hidden}.handle-information-desk-description{cursor:pointer;color:var(--color-primary-app);text-decoration:underline;margin-top:12px}.phone-container,.mail-container,.link-container{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center}.phone-container span,.mail-container span,.link-container span{font-family:\"Material Symbols Outlined\";font-size:16px;margin-right:8px}.center-on-map-button{cursor:pointer;background-color:var(--color-primary-container);color:var(--color-on-primary-container);border-radius:8px;padding:8px 16px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative;border:none;font-size:14px;margin:12px 0px}.center-on-map-button:hover{-webkit-box-shadow:var(--elevation-2);box-shadow:var(--elevation-2)}.center-on-map-button span{font-family:\"Material Symbols Outlined\";font-size:18px}";
|
|
10
10
|
|
|
Binary file
|
|
Binary file
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const store = require('./store-
|
|
5
|
+
const index = require('./index-4965ff38.js');
|
|
6
|
+
const store = require('./store-dea1bb76.js');
|
|
7
7
|
const utils = require('./utils-15de4c32.js');
|
|
8
8
|
|
|
9
9
|
const grwTrekCardCss = ".material-symbols-outlined{font-variation-settings:\"FILL\" 0, \"wght\" 400, \"GRAD\" 0, \"opsz\" 48}.trek-card-container,.trek-card-large-view-container{cursor:pointer;font-family:\"Roboto\";border-radius:12px;-webkit-box-shadow:var(--elevation-1);box-shadow:var(--elevation-1);background-color:var(--color-surface-container-low)}.trek-card-container .image,.trek-card-large-view-container .image{-o-object-fit:cover;object-fit:cover;border-top-left-radius:12px;border-top-right-radius:12px}.trek-card-container .sub-container,.trek-card-large-view-container .sub-container{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:center;justify-content:center;padding:8px 16px}.trek-card-container .sub-container .name,.trek-card-large-view-container .sub-container .name{color:var(--color-on-surface);font-size:22px;line-height:28px;font-weight:400;margin-bottom:8px}.trek-card-container .sub-container .departure,.trek-card-large-view-container .sub-container .departure{color:var(--color-on-surface);font-size:16px;line-height:24px;font-weight:500;margin-bottom:4px}.trek-card-container .sub-container .themes-container,.trek-card-large-view-container .sub-container .themes-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap}.trek-card-container .sub-container .themes-container .theme,.trek-card-large-view-container .sub-container .themes-container .theme{background-color:var(--color-secondary-container);color:var(--color-on-secondary-container);border-radius:8px;padding:8px 16px;margin:0px 8px 8px 0px;-webkit-box-shadow:var(--elevation-0);box-shadow:var(--elevation-0);border:1px solid var(--color-outline);height:32px;gap:8px;-webkit-box-sizing:border-box;box-sizing:border-box;text-align:start;vertical-align:middle;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;position:relative}.trek-card-container .sub-container .icons-labels-container,.trek-card-large-view-container .sub-container .icons-labels-container{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;color:var(--color-on-surface);font-size:14px;line-height:20px;font-weight:500}.trek-card-container .sub-container .icons-labels-container .row,.trek-card-large-view-container .sub-container .icons-labels-container .row{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;width:100%}.trek-card-container .sub-container .icons-labels-container .row:not(:last-child),.trek-card-large-view-container .sub-container .icons-labels-container .row:not(:last-child){margin-bottom:12px}.trek-card-container .sub-container .icons-labels-container .row .icon-label,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;width:50%}.trek-card-container .sub-container .icons-labels-container .row .icon-label:nth-child(2),.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label:nth-child(2){margin:0px 4px}.trek-card-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-container .sub-container .icons-labels-container .row .icon-label span,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label img,.trek-card-large-view-container .sub-container .icons-labels-container .row .icon-label span{font-family:\"Material Symbols Outlined\";font-size:24px;width:24px;height:auto;margin-right:8px}.trek-card-container .sub-container .icons-labels-container .row .practice img,.trek-card-large-view-container .sub-container .icons-labels-container .row .practice img{background-color:var(--color-primary-app)}.trek-card-container{width:350px}.trek-card-container .image{width:100%;max-height:200px}.trek-card-large-view-container{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row}.trek-card-large-view-container .image{width:250px}";
|
|
Binary file
|
|
Binary file
|
|
@@ -31,11 +31,7 @@ const NAMESPACE = 'geotrek-rando-widget';
|
|
|
31
31
|
* Modified for Stencil's renderer and slot projection
|
|
32
32
|
*/
|
|
33
33
|
let scopeId;
|
|
34
|
-
let contentRef;
|
|
35
34
|
let hostTagName;
|
|
36
|
-
let useNativeShadowDom = false;
|
|
37
|
-
let checkSlotFallbackVisibility = false;
|
|
38
|
-
let checkSlotRelocate = false;
|
|
39
35
|
let isSvgMode = false;
|
|
40
36
|
let renderingRef = null;
|
|
41
37
|
let queuePending = false;
|
|
@@ -104,7 +100,6 @@ function queryNonceMetaTagContent(doc) {
|
|
|
104
100
|
const h = (nodeName, vnodeData, ...children) => {
|
|
105
101
|
let child = null;
|
|
106
102
|
let key = null;
|
|
107
|
-
let slotName = null;
|
|
108
103
|
let simple = false;
|
|
109
104
|
let lastSimple = false;
|
|
110
105
|
const vNodeChildren = [];
|
|
@@ -136,9 +131,6 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
136
131
|
if (vnodeData.key) {
|
|
137
132
|
key = vnodeData.key;
|
|
138
133
|
}
|
|
139
|
-
if (vnodeData.name) {
|
|
140
|
-
slotName = vnodeData.name;
|
|
141
|
-
}
|
|
142
134
|
{
|
|
143
135
|
const classData = vnodeData.className || vnodeData.class;
|
|
144
136
|
if (classData) {
|
|
@@ -159,9 +151,6 @@ const h = (nodeName, vnodeData, ...children) => {
|
|
|
159
151
|
{
|
|
160
152
|
vnode.$key$ = key;
|
|
161
153
|
}
|
|
162
|
-
{
|
|
163
|
-
vnode.$name$ = slotName;
|
|
164
|
-
}
|
|
165
154
|
return vnode;
|
|
166
155
|
};
|
|
167
156
|
/**
|
|
@@ -186,9 +175,6 @@ const newVNode = (tag, text) => {
|
|
|
186
175
|
{
|
|
187
176
|
vnode.$key$ = null;
|
|
188
177
|
}
|
|
189
|
-
{
|
|
190
|
-
vnode.$name$ = null;
|
|
191
|
-
}
|
|
192
178
|
return vnode;
|
|
193
179
|
};
|
|
194
180
|
const Host = {};
|
|
@@ -532,36 +518,13 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
532
518
|
let i = 0;
|
|
533
519
|
let elm;
|
|
534
520
|
let childNode;
|
|
535
|
-
let oldVNode;
|
|
536
|
-
if (!useNativeShadowDom) {
|
|
537
|
-
// remember for later we need to check to relocate nodes
|
|
538
|
-
checkSlotRelocate = true;
|
|
539
|
-
if (newVNode.$tag$ === 'slot') {
|
|
540
|
-
if (scopeId) {
|
|
541
|
-
// scoped css needs to add its scoped id to the parent element
|
|
542
|
-
parentElm.classList.add(scopeId + '-s');
|
|
543
|
-
}
|
|
544
|
-
newVNode.$flags$ |= newVNode.$children$
|
|
545
|
-
? // slot element has fallback content
|
|
546
|
-
2 /* VNODE_FLAGS.isSlotFallback */
|
|
547
|
-
: // slot element does not have fallback content
|
|
548
|
-
1 /* VNODE_FLAGS.isSlotReference */;
|
|
549
|
-
}
|
|
550
|
-
}
|
|
551
521
|
if (newVNode.$text$ !== null) {
|
|
552
522
|
// create text node
|
|
553
523
|
elm = newVNode.$elm$ = doc.createTextNode(newVNode.$text$);
|
|
554
524
|
}
|
|
555
|
-
else if (newVNode.$flags$ & 1 /* VNODE_FLAGS.isSlotReference */) {
|
|
556
|
-
// create a slot reference node
|
|
557
|
-
elm = newVNode.$elm$ =
|
|
558
|
-
doc.createTextNode('');
|
|
559
|
-
}
|
|
560
525
|
else {
|
|
561
526
|
// create element
|
|
562
|
-
elm = newVNode.$elm$ = (doc.createElement(newVNode.$
|
|
563
|
-
? 'slot-fb'
|
|
564
|
-
: newVNode.$tag$));
|
|
527
|
+
elm = newVNode.$elm$ = (doc.createElement(newVNode.$tag$));
|
|
565
528
|
// add css classes, attrs, props, listeners, etc.
|
|
566
529
|
{
|
|
567
530
|
updateElement(null, newVNode, isSvgMode);
|
|
@@ -574,7 +537,7 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
574
537
|
if (newVNode.$children$) {
|
|
575
538
|
for (i = 0; i < newVNode.$children$.length; ++i) {
|
|
576
539
|
// create the node
|
|
577
|
-
childNode = createElm(oldParentVNode, newVNode, i
|
|
540
|
+
childNode = createElm(oldParentVNode, newVNode, i);
|
|
578
541
|
// return node could have been null
|
|
579
542
|
if (childNode) {
|
|
580
543
|
// append our new node
|
|
@@ -583,50 +546,8 @@ const createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
|
|
|
583
546
|
}
|
|
584
547
|
}
|
|
585
548
|
}
|
|
586
|
-
{
|
|
587
|
-
elm['s-hn'] = hostTagName;
|
|
588
|
-
if (newVNode.$flags$ & (2 /* VNODE_FLAGS.isSlotFallback */ | 1 /* VNODE_FLAGS.isSlotReference */)) {
|
|
589
|
-
// remember the content reference comment
|
|
590
|
-
elm['s-sr'] = true;
|
|
591
|
-
// remember the content reference comment
|
|
592
|
-
elm['s-cr'] = contentRef;
|
|
593
|
-
// remember the slot name, or empty string for default slot
|
|
594
|
-
elm['s-sn'] = newVNode.$name$ || '';
|
|
595
|
-
// check if we've got an old vnode for this slot
|
|
596
|
-
oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
|
|
597
|
-
if (oldVNode && oldVNode.$tag$ === newVNode.$tag$ && oldParentVNode.$elm$) {
|
|
598
|
-
// we've got an old slot vnode and the wrapper is being replaced
|
|
599
|
-
// so let's move the old slot content back to it's original location
|
|
600
|
-
putBackInOriginalLocation(oldParentVNode.$elm$, false);
|
|
601
|
-
}
|
|
602
|
-
}
|
|
603
|
-
}
|
|
604
549
|
return elm;
|
|
605
550
|
};
|
|
606
|
-
const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
607
|
-
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
608
|
-
const oldSlotChildNodes = parentElm.childNodes;
|
|
609
|
-
for (let i = oldSlotChildNodes.length - 1; i >= 0; i--) {
|
|
610
|
-
const childNode = oldSlotChildNodes[i];
|
|
611
|
-
if (childNode['s-hn'] !== hostTagName && childNode['s-ol']) {
|
|
612
|
-
// // this child node in the old element is from another component
|
|
613
|
-
// // remove this node from the old slot's parent
|
|
614
|
-
// childNode.remove();
|
|
615
|
-
// and relocate it back to it's original location
|
|
616
|
-
parentReferenceNode(childNode).insertBefore(childNode, referenceNode(childNode));
|
|
617
|
-
// remove the old original location comment entirely
|
|
618
|
-
// later on the patch function will know what to do
|
|
619
|
-
// and move this to the correct spot in need be
|
|
620
|
-
childNode['s-ol'].remove();
|
|
621
|
-
childNode['s-ol'] = undefined;
|
|
622
|
-
checkSlotRelocate = true;
|
|
623
|
-
}
|
|
624
|
-
if (recursive) {
|
|
625
|
-
putBackInOriginalLocation(childNode, recursive);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
629
|
-
};
|
|
630
551
|
/**
|
|
631
552
|
* Create DOM nodes corresponding to a list of {@link d.Vnode} objects and
|
|
632
553
|
* add them to the DOM in the appropriate place.
|
|
@@ -643,17 +564,17 @@ const putBackInOriginalLocation = (parentElm, recursive) => {
|
|
|
643
564
|
* creating DOM nodes (inclusive)
|
|
644
565
|
*/
|
|
645
566
|
const addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
|
|
646
|
-
let containerElm = (
|
|
567
|
+
let containerElm = (parentElm);
|
|
647
568
|
let childNode;
|
|
648
569
|
if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
|
|
649
570
|
containerElm = containerElm.shadowRoot;
|
|
650
571
|
}
|
|
651
572
|
for (; startIdx <= endIdx; ++startIdx) {
|
|
652
573
|
if (vnodes[startIdx]) {
|
|
653
|
-
childNode = createElm(null, parentVNode, startIdx
|
|
574
|
+
childNode = createElm(null, parentVNode, startIdx);
|
|
654
575
|
if (childNode) {
|
|
655
576
|
vnodes[startIdx].$elm$ = childNode;
|
|
656
|
-
containerElm.insertBefore(childNode,
|
|
577
|
+
containerElm.insertBefore(childNode, before);
|
|
657
578
|
}
|
|
658
579
|
}
|
|
659
580
|
}
|
|
@@ -676,20 +597,6 @@ const removeVnodes = (vnodes, startIdx, endIdx) => {
|
|
|
676
597
|
const elm = vnode.$elm$;
|
|
677
598
|
nullifyVNodeRefs(vnode);
|
|
678
599
|
if (elm) {
|
|
679
|
-
{
|
|
680
|
-
// we're removing this element
|
|
681
|
-
// so it's possible we need to show slot fallback content now
|
|
682
|
-
checkSlotFallbackVisibility = true;
|
|
683
|
-
if (elm['s-ol']) {
|
|
684
|
-
// remove the original location comment
|
|
685
|
-
elm['s-ol'].remove();
|
|
686
|
-
}
|
|
687
|
-
else {
|
|
688
|
-
// it's possible that child nodes of the node
|
|
689
|
-
// that's being removed are slot nodes
|
|
690
|
-
putBackInOriginalLocation(elm, true);
|
|
691
|
-
}
|
|
692
|
-
}
|
|
693
600
|
// remove the vnode's element from the dom
|
|
694
601
|
elm.remove();
|
|
695
602
|
}
|
|
@@ -809,23 +716,6 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
809
716
|
newEndVnode = newCh[--newEndIdx];
|
|
810
717
|
}
|
|
811
718
|
else if (isSameVnode(oldStartVnode, newEndVnode)) {
|
|
812
|
-
// case: "Vnode moved right"
|
|
813
|
-
//
|
|
814
|
-
// We've found that the last node in our window on the new children is
|
|
815
|
-
// the same VNode as the _first_ node in our window on the old children
|
|
816
|
-
// we're dealing with now. Visually, this is the layout of these two
|
|
817
|
-
// nodes:
|
|
818
|
-
//
|
|
819
|
-
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
820
|
-
// ^^^^^^^^^^^
|
|
821
|
-
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
822
|
-
// ^^^^^^^^^^^^^
|
|
823
|
-
//
|
|
824
|
-
// In this situation we need to patch `newEndVnode` onto `oldStartVnode`
|
|
825
|
-
// and move the DOM element for `oldStartVnode`.
|
|
826
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
827
|
-
putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
|
|
828
|
-
}
|
|
829
719
|
patch(oldStartVnode, newEndVnode);
|
|
830
720
|
// We need to move the element for `oldStartVnode` into a position which
|
|
831
721
|
// will be appropriate for `newEndVnode`. For this we can use
|
|
@@ -849,24 +739,6 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
849
739
|
newEndVnode = newCh[--newEndIdx];
|
|
850
740
|
}
|
|
851
741
|
else if (isSameVnode(oldEndVnode, newStartVnode)) {
|
|
852
|
-
// case: "Vnode moved left"
|
|
853
|
-
//
|
|
854
|
-
// We've found that the first node in our window on the new children is
|
|
855
|
-
// the same VNode as the _last_ node in our window on the old children.
|
|
856
|
-
// Visually, this is the layout of these two nodes:
|
|
857
|
-
//
|
|
858
|
-
// newCh: [..., newStartVnode , ... , newEndVnode , ...]
|
|
859
|
-
// ^^^^^^^^^^^^^
|
|
860
|
-
// oldCh: [..., oldStartVnode , ... , oldEndVnode , ...]
|
|
861
|
-
// ^^^^^^^^^^^
|
|
862
|
-
//
|
|
863
|
-
// In this situation we need to patch `newStartVnode` onto `oldEndVnode`
|
|
864
|
-
// (which will handle updating any changed attributes, reconciling their
|
|
865
|
-
// children etc) but we also need to move the DOM node to which
|
|
866
|
-
// `oldEndVnode` corresponds.
|
|
867
|
-
if ((oldStartVnode.$tag$ === 'slot' || newEndVnode.$tag$ === 'slot')) {
|
|
868
|
-
putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
|
|
869
|
-
}
|
|
870
742
|
patch(oldEndVnode, newStartVnode);
|
|
871
743
|
// We've already checked above if `oldStartVnode` and `newStartVnode` are
|
|
872
744
|
// the same node, so since we're here we know that they are not. Thus we
|
|
@@ -901,7 +773,7 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
901
773
|
elmToMove = oldCh[idxInOld];
|
|
902
774
|
if (elmToMove.$tag$ !== newStartVnode.$tag$) {
|
|
903
775
|
// the tag doesn't match so we'll need a new DOM element
|
|
904
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld
|
|
776
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, idxInOld);
|
|
905
777
|
}
|
|
906
778
|
else {
|
|
907
779
|
patch(elmToMove, newStartVnode);
|
|
@@ -917,13 +789,13 @@ const updateChildren = (parentElm, oldCh, newVNode, newCh) => {
|
|
|
917
789
|
// the key of the first new child OR the build is not using `key`
|
|
918
790
|
// attributes at all. In either case we need to create a new element
|
|
919
791
|
// for the new node.
|
|
920
|
-
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx
|
|
792
|
+
node = createElm(oldCh && oldCh[newStartIdx], newVNode, newStartIdx);
|
|
921
793
|
newStartVnode = newCh[++newStartIdx];
|
|
922
794
|
}
|
|
923
795
|
if (node) {
|
|
924
796
|
// if we created a new node then handle inserting it to the DOM
|
|
925
797
|
{
|
|
926
|
-
|
|
798
|
+
oldStartVnode.$elm$.parentNode.insertBefore(node, oldStartVnode.$elm$);
|
|
927
799
|
}
|
|
928
800
|
}
|
|
929
801
|
}
|
|
@@ -961,9 +833,6 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
961
833
|
// compare if two vnode to see if they're "technically" the same
|
|
962
834
|
// need to have the same element tag, and same key to be the same
|
|
963
835
|
if (leftVNode.$tag$ === rightVNode.$tag$) {
|
|
964
|
-
if (leftVNode.$tag$ === 'slot') {
|
|
965
|
-
return leftVNode.$name$ === rightVNode.$name$;
|
|
966
|
-
}
|
|
967
836
|
// this will be set if components in the build have `key` attrs set on them
|
|
968
837
|
{
|
|
969
838
|
return leftVNode.$key$ === rightVNode.$key$;
|
|
@@ -971,14 +840,6 @@ const isSameVnode = (leftVNode, rightVNode) => {
|
|
|
971
840
|
}
|
|
972
841
|
return false;
|
|
973
842
|
};
|
|
974
|
-
const referenceNode = (node) => {
|
|
975
|
-
// this node was relocated to a new location in the dom
|
|
976
|
-
// because of some other component's slot
|
|
977
|
-
// but we still have an html comment in place of where
|
|
978
|
-
// it's original location was according to it's original vdom
|
|
979
|
-
return (node && node['s-ol']) || node;
|
|
980
|
-
};
|
|
981
|
-
const parentReferenceNode = (node) => (node['s-ol'] ? node['s-ol'] : node).parentNode;
|
|
982
843
|
/**
|
|
983
844
|
* Handle reconciling an outdated VNode with a new one which corresponds to
|
|
984
845
|
* it. This function handles flushing updates to the DOM and reconciling the
|
|
@@ -991,14 +852,10 @@ const patch = (oldVNode, newVNode) => {
|
|
|
991
852
|
const elm = (newVNode.$elm$ = oldVNode.$elm$);
|
|
992
853
|
const oldChildren = oldVNode.$children$;
|
|
993
854
|
const newChildren = newVNode.$children$;
|
|
994
|
-
const tag = newVNode.$tag$;
|
|
995
855
|
const text = newVNode.$text$;
|
|
996
|
-
let defaultHolder;
|
|
997
856
|
if (text === null) {
|
|
998
857
|
{
|
|
999
|
-
|
|
1000
|
-
;
|
|
1001
|
-
else {
|
|
858
|
+
{
|
|
1002
859
|
// either this is the first render of an element OR it's an update
|
|
1003
860
|
// AND we already know it's possible it could have changed
|
|
1004
861
|
// this updates the element's css classes, attrs, props, listeners, etc.
|
|
@@ -1024,147 +881,12 @@ const patch = (oldVNode, newVNode) => {
|
|
|
1024
881
|
removeVnodes(oldChildren, 0, oldChildren.length - 1);
|
|
1025
882
|
}
|
|
1026
883
|
}
|
|
1027
|
-
else if ((defaultHolder = elm['s-cr'])) {
|
|
1028
|
-
// this element has slotted content
|
|
1029
|
-
defaultHolder.parentNode.textContent = text;
|
|
1030
|
-
}
|
|
1031
884
|
else if (oldVNode.$text$ !== text) {
|
|
1032
885
|
// update the text content for the text only vnode
|
|
1033
886
|
// and also only if the text is different than before
|
|
1034
887
|
elm.data = text;
|
|
1035
888
|
}
|
|
1036
889
|
};
|
|
1037
|
-
const updateFallbackSlotVisibility = (elm) => {
|
|
1038
|
-
// tslint:disable-next-line: prefer-const
|
|
1039
|
-
const childNodes = elm.childNodes;
|
|
1040
|
-
let childNode;
|
|
1041
|
-
let i;
|
|
1042
|
-
let ilen;
|
|
1043
|
-
let j;
|
|
1044
|
-
let slotNameAttr;
|
|
1045
|
-
let nodeType;
|
|
1046
|
-
for (i = 0, ilen = childNodes.length; i < ilen; i++) {
|
|
1047
|
-
childNode = childNodes[i];
|
|
1048
|
-
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1049
|
-
if (childNode['s-sr']) {
|
|
1050
|
-
// this is a slot fallback node
|
|
1051
|
-
// get the slot name for this slot reference node
|
|
1052
|
-
slotNameAttr = childNode['s-sn'];
|
|
1053
|
-
// by default always show a fallback slot node
|
|
1054
|
-
// then hide it if there are other slots in the light dom
|
|
1055
|
-
childNode.hidden = false;
|
|
1056
|
-
for (j = 0; j < ilen; j++) {
|
|
1057
|
-
nodeType = childNodes[j].nodeType;
|
|
1058
|
-
if (childNodes[j]['s-hn'] !== childNode['s-hn'] || slotNameAttr !== '') {
|
|
1059
|
-
// this sibling node is from a different component OR is a named fallback slot node
|
|
1060
|
-
if (nodeType === 1 /* NODE_TYPE.ElementNode */ && slotNameAttr === childNodes[j].getAttribute('slot')) {
|
|
1061
|
-
childNode.hidden = true;
|
|
1062
|
-
break;
|
|
1063
|
-
}
|
|
1064
|
-
}
|
|
1065
|
-
else {
|
|
1066
|
-
// this is a default fallback slot node
|
|
1067
|
-
// any element or text node (with content)
|
|
1068
|
-
// should hide the default fallback slot node
|
|
1069
|
-
if (nodeType === 1 /* NODE_TYPE.ElementNode */ ||
|
|
1070
|
-
(nodeType === 3 /* NODE_TYPE.TextNode */ && childNodes[j].textContent.trim() !== '')) {
|
|
1071
|
-
childNode.hidden = true;
|
|
1072
|
-
break;
|
|
1073
|
-
}
|
|
1074
|
-
}
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
// keep drilling down
|
|
1078
|
-
updateFallbackSlotVisibility(childNode);
|
|
1079
|
-
}
|
|
1080
|
-
}
|
|
1081
|
-
};
|
|
1082
|
-
const relocateNodes = [];
|
|
1083
|
-
const relocateSlotContent = (elm) => {
|
|
1084
|
-
// tslint:disable-next-line: prefer-const
|
|
1085
|
-
let childNode;
|
|
1086
|
-
let node;
|
|
1087
|
-
let hostContentNodes;
|
|
1088
|
-
let slotNameAttr;
|
|
1089
|
-
let relocateNodeData;
|
|
1090
|
-
let j;
|
|
1091
|
-
let i = 0;
|
|
1092
|
-
const childNodes = elm.childNodes;
|
|
1093
|
-
const ilen = childNodes.length;
|
|
1094
|
-
for (; i < ilen; i++) {
|
|
1095
|
-
childNode = childNodes[i];
|
|
1096
|
-
if (childNode['s-sr'] && (node = childNode['s-cr']) && node.parentNode) {
|
|
1097
|
-
// first got the content reference comment node
|
|
1098
|
-
// then we got it's parent, which is where all the host content is in now
|
|
1099
|
-
hostContentNodes = node.parentNode.childNodes;
|
|
1100
|
-
slotNameAttr = childNode['s-sn'];
|
|
1101
|
-
for (j = hostContentNodes.length - 1; j >= 0; j--) {
|
|
1102
|
-
node = hostContentNodes[j];
|
|
1103
|
-
if (!node['s-cn'] && !node['s-nr'] && node['s-hn'] !== childNode['s-hn']) {
|
|
1104
|
-
// let's do some relocating to its new home
|
|
1105
|
-
// but never relocate a content reference node
|
|
1106
|
-
// that is suppose to always represent the original content location
|
|
1107
|
-
if (isNodeLocatedInSlot(node, slotNameAttr)) {
|
|
1108
|
-
// it's possible we've already decided to relocate this node
|
|
1109
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1110
|
-
// made some changes to slots
|
|
1111
|
-
// let's make sure we also double check
|
|
1112
|
-
// fallbacks are correctly hidden or shown
|
|
1113
|
-
checkSlotFallbackVisibility = true;
|
|
1114
|
-
node['s-sn'] = node['s-sn'] || slotNameAttr;
|
|
1115
|
-
if (relocateNodeData) {
|
|
1116
|
-
// previously we never found a slot home for this node
|
|
1117
|
-
// but turns out we did, so let's remember it now
|
|
1118
|
-
relocateNodeData.$slotRefNode$ = childNode;
|
|
1119
|
-
}
|
|
1120
|
-
else {
|
|
1121
|
-
// add to our list of nodes to relocate
|
|
1122
|
-
relocateNodes.push({
|
|
1123
|
-
$slotRefNode$: childNode,
|
|
1124
|
-
$nodeToRelocate$: node,
|
|
1125
|
-
});
|
|
1126
|
-
}
|
|
1127
|
-
if (node['s-sr']) {
|
|
1128
|
-
relocateNodes.map((relocateNode) => {
|
|
1129
|
-
if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node['s-sn'])) {
|
|
1130
|
-
relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
|
|
1131
|
-
if (relocateNodeData && !relocateNode.$slotRefNode$) {
|
|
1132
|
-
relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
|
|
1133
|
-
}
|
|
1134
|
-
}
|
|
1135
|
-
});
|
|
1136
|
-
}
|
|
1137
|
-
}
|
|
1138
|
-
else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
|
|
1139
|
-
// so far this element does not have a slot home, not setting slotRefNode on purpose
|
|
1140
|
-
// if we never find a home for this element then we'll need to hide it
|
|
1141
|
-
relocateNodes.push({
|
|
1142
|
-
$nodeToRelocate$: node,
|
|
1143
|
-
});
|
|
1144
|
-
}
|
|
1145
|
-
}
|
|
1146
|
-
}
|
|
1147
|
-
}
|
|
1148
|
-
if (childNode.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1149
|
-
relocateSlotContent(childNode);
|
|
1150
|
-
}
|
|
1151
|
-
}
|
|
1152
|
-
};
|
|
1153
|
-
const isNodeLocatedInSlot = (nodeToRelocate, slotNameAttr) => {
|
|
1154
|
-
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1155
|
-
if (nodeToRelocate.getAttribute('slot') === null && slotNameAttr === '') {
|
|
1156
|
-
return true;
|
|
1157
|
-
}
|
|
1158
|
-
if (nodeToRelocate.getAttribute('slot') === slotNameAttr) {
|
|
1159
|
-
return true;
|
|
1160
|
-
}
|
|
1161
|
-
return false;
|
|
1162
|
-
}
|
|
1163
|
-
if (nodeToRelocate['s-sn'] === slotNameAttr) {
|
|
1164
|
-
return true;
|
|
1165
|
-
}
|
|
1166
|
-
return slotNameAttr === '';
|
|
1167
|
-
};
|
|
1168
890
|
/**
|
|
1169
891
|
* 'Nullify' any VDom `ref` callbacks on a VDom node or its children by
|
|
1170
892
|
* calling them with `null`. This signals that the DOM element corresponding to
|
|
@@ -1192,7 +914,6 @@ const nullifyVNodeRefs = (vNode) => {
|
|
|
1192
914
|
*/
|
|
1193
915
|
const renderVdom = (hostRef, renderFnResults) => {
|
|
1194
916
|
const hostElm = hostRef.$hostElement$;
|
|
1195
|
-
const cmpMeta = hostRef.$cmpMeta$;
|
|
1196
917
|
const oldVNode = hostRef.$vnode$ || newVNode(null, null);
|
|
1197
918
|
const rootVnode = isHost(renderFnResults) ? renderFnResults : h(null, null, renderFnResults);
|
|
1198
919
|
hostTagName = hostElm.tagName;
|
|
@@ -1203,90 +924,8 @@ const renderVdom = (hostRef, renderFnResults) => {
|
|
|
1203
924
|
{
|
|
1204
925
|
scopeId = hostElm['s-sc'];
|
|
1205
926
|
}
|
|
1206
|
-
{
|
|
1207
|
-
contentRef = hostElm['s-cr'];
|
|
1208
|
-
useNativeShadowDom = supportsShadow && (cmpMeta.$flags$ & 1 /* CMP_FLAGS.shadowDomEncapsulation */) !== 0;
|
|
1209
|
-
// always reset
|
|
1210
|
-
checkSlotFallbackVisibility = false;
|
|
1211
|
-
}
|
|
1212
927
|
// synchronous patch
|
|
1213
928
|
patch(oldVNode, rootVnode);
|
|
1214
|
-
{
|
|
1215
|
-
// while we're moving nodes around existing nodes, temporarily disable
|
|
1216
|
-
// the disconnectCallback from working
|
|
1217
|
-
plt.$flags$ |= 1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1218
|
-
if (checkSlotRelocate) {
|
|
1219
|
-
relocateSlotContent(rootVnode.$elm$);
|
|
1220
|
-
let relocateData;
|
|
1221
|
-
let nodeToRelocate;
|
|
1222
|
-
let orgLocationNode;
|
|
1223
|
-
let parentNodeRef;
|
|
1224
|
-
let insertBeforeNode;
|
|
1225
|
-
let refNode;
|
|
1226
|
-
let i = 0;
|
|
1227
|
-
for (; i < relocateNodes.length; i++) {
|
|
1228
|
-
relocateData = relocateNodes[i];
|
|
1229
|
-
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1230
|
-
if (!nodeToRelocate['s-ol']) {
|
|
1231
|
-
// add a reference node marking this node's original location
|
|
1232
|
-
// keep a reference to this node for later lookups
|
|
1233
|
-
orgLocationNode =
|
|
1234
|
-
doc.createTextNode('');
|
|
1235
|
-
orgLocationNode['s-nr'] = nodeToRelocate;
|
|
1236
|
-
nodeToRelocate.parentNode.insertBefore((nodeToRelocate['s-ol'] = orgLocationNode), nodeToRelocate);
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
for (i = 0; i < relocateNodes.length; i++) {
|
|
1240
|
-
relocateData = relocateNodes[i];
|
|
1241
|
-
nodeToRelocate = relocateData.$nodeToRelocate$;
|
|
1242
|
-
if (relocateData.$slotRefNode$) {
|
|
1243
|
-
// by default we're just going to insert it directly
|
|
1244
|
-
// after the slot reference node
|
|
1245
|
-
parentNodeRef = relocateData.$slotRefNode$.parentNode;
|
|
1246
|
-
insertBeforeNode = relocateData.$slotRefNode$.nextSibling;
|
|
1247
|
-
orgLocationNode = nodeToRelocate['s-ol'];
|
|
1248
|
-
while ((orgLocationNode = orgLocationNode.previousSibling)) {
|
|
1249
|
-
refNode = orgLocationNode['s-nr'];
|
|
1250
|
-
if (refNode && refNode['s-sn'] === nodeToRelocate['s-sn'] && parentNodeRef === refNode.parentNode) {
|
|
1251
|
-
refNode = refNode.nextSibling;
|
|
1252
|
-
if (!refNode || !refNode['s-nr']) {
|
|
1253
|
-
insertBeforeNode = refNode;
|
|
1254
|
-
break;
|
|
1255
|
-
}
|
|
1256
|
-
}
|
|
1257
|
-
}
|
|
1258
|
-
if ((!insertBeforeNode && parentNodeRef !== nodeToRelocate.parentNode) ||
|
|
1259
|
-
nodeToRelocate.nextSibling !== insertBeforeNode) {
|
|
1260
|
-
// we've checked that it's worth while to relocate
|
|
1261
|
-
// since that the node to relocate
|
|
1262
|
-
// has a different next sibling or parent relocated
|
|
1263
|
-
if (nodeToRelocate !== insertBeforeNode) {
|
|
1264
|
-
if (!nodeToRelocate['s-hn'] && nodeToRelocate['s-ol']) {
|
|
1265
|
-
// probably a component in the index.html that doesn't have it's hostname set
|
|
1266
|
-
nodeToRelocate['s-hn'] = nodeToRelocate['s-ol'].parentNode.nodeName;
|
|
1267
|
-
}
|
|
1268
|
-
// add it back to the dom but in its new home
|
|
1269
|
-
parentNodeRef.insertBefore(nodeToRelocate, insertBeforeNode);
|
|
1270
|
-
}
|
|
1271
|
-
}
|
|
1272
|
-
}
|
|
1273
|
-
else {
|
|
1274
|
-
// this node doesn't have a slot home to go to, so let's hide it
|
|
1275
|
-
if (nodeToRelocate.nodeType === 1 /* NODE_TYPE.ElementNode */) {
|
|
1276
|
-
nodeToRelocate.hidden = true;
|
|
1277
|
-
}
|
|
1278
|
-
}
|
|
1279
|
-
}
|
|
1280
|
-
}
|
|
1281
|
-
if (checkSlotFallbackVisibility) {
|
|
1282
|
-
updateFallbackSlotVisibility(rootVnode.$elm$);
|
|
1283
|
-
}
|
|
1284
|
-
// done moving nodes around
|
|
1285
|
-
// allow the disconnect callback to work again
|
|
1286
|
-
plt.$flags$ &= ~1 /* PLATFORM_FLAGS.isTmpDisconnected */;
|
|
1287
|
-
// always reset
|
|
1288
|
-
relocateNodes.length = 0;
|
|
1289
|
-
}
|
|
1290
929
|
};
|
|
1291
930
|
const attachToAncestor = (hostRef, ancestorComponent) => {
|
|
1292
931
|
if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent['s-p']) {
|
|
@@ -1457,6 +1096,9 @@ const postUpdateComponent = (hostRef) => {
|
|
|
1457
1096
|
const endPostUpdate = createTime('postUpdate', tagName);
|
|
1458
1097
|
const instance = hostRef.$lazyInstance$ ;
|
|
1459
1098
|
const ancestorComponent = hostRef.$ancestorComponent$;
|
|
1099
|
+
{
|
|
1100
|
+
safeCall(instance, 'componentDidRender');
|
|
1101
|
+
}
|
|
1460
1102
|
if (!(hostRef.$flags$ & 64 /* HOST_FLAGS.hasLoadedComponent */)) {
|
|
1461
1103
|
hostRef.$flags$ |= 64 /* HOST_FLAGS.hasLoadedComponent */;
|
|
1462
1104
|
{
|
|
@@ -1766,16 +1408,6 @@ const connectedCallback = (elm) => {
|
|
|
1766
1408
|
if (!(hostRef.$flags$ & 1 /* HOST_FLAGS.hasConnected */)) {
|
|
1767
1409
|
// first time this component has connected
|
|
1768
1410
|
hostRef.$flags$ |= 1 /* HOST_FLAGS.hasConnected */;
|
|
1769
|
-
{
|
|
1770
|
-
// initUpdate
|
|
1771
|
-
// if the slot polyfill is required we'll need to put some nodes
|
|
1772
|
-
// in here to act as original content anchors as we move nodes around
|
|
1773
|
-
// host element has been connected to the DOM
|
|
1774
|
-
if ((// TODO(STENCIL-662): Remove code related to deprecated shadowDomShim field
|
|
1775
|
-
cmpMeta.$flags$ & (4 /* CMP_FLAGS.hasSlotRelocation */ | 8 /* CMP_FLAGS.needsShadowDomShim */))) {
|
|
1776
|
-
setContentReference(elm);
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
1411
|
{
|
|
1780
1412
|
// find the first ancestor component (if there is one) and register
|
|
1781
1413
|
// this component as one of the actively loading child components for its ancestor
|
|
@@ -1817,17 +1449,6 @@ const connectedCallback = (elm) => {
|
|
|
1817
1449
|
endConnected();
|
|
1818
1450
|
}
|
|
1819
1451
|
};
|
|
1820
|
-
const setContentReference = (elm) => {
|
|
1821
|
-
// only required when we're NOT using native shadow dom (slot)
|
|
1822
|
-
// or this browser doesn't support native shadow dom
|
|
1823
|
-
// and this host element was NOT created with SSR
|
|
1824
|
-
// let's pick out the inner content for slot projection
|
|
1825
|
-
// create a node to represent where the original
|
|
1826
|
-
// content was first placed, which is useful later on
|
|
1827
|
-
const contentRefElm = (elm['s-cr'] = doc.createComment(''));
|
|
1828
|
-
contentRefElm['s-cn'] = true;
|
|
1829
|
-
elm.insertBefore(contentRefElm, elm.firstChild);
|
|
1830
|
-
};
|
|
1831
1452
|
const disconnectedCallback = (elm) => {
|
|
1832
1453
|
if ((plt.$flags$ & 1 /* PLATFORM_FLAGS.isTmpDisconnected */) === 0) {
|
|
1833
1454
|
const hostRef = getHostRef(elm);
|
|
@@ -2169,4 +1790,4 @@ exports.registerInstance = registerInstance;
|
|
|
2169
1790
|
exports.setNonce = setNonce;
|
|
2170
1791
|
exports.win = win;
|
|
2171
1792
|
|
|
2172
|
-
//# sourceMappingURL=index-
|
|
1793
|
+
//# sourceMappingURL=index-4965ff38.js.map
|
|
Binary file
|
|
Binary file
|