@startinblox/core 0.19.0-beta.1 → 0.19.0-beta.3

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.
Files changed (166) hide show
  1. package/dist/{_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.css → assets/MarkerCluster-614dea0a.css} +0 -0
  2. package/dist/{_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.Default.css → assets/MarkerCluster.Default-61258232.css} +0 -0
  3. package/dist/assets/en-e53105c5.js +14 -0
  4. package/dist/assets/en-e53105c5.js.map +1 -0
  5. package/dist/assets/fr-a7fcdb64.js +14 -0
  6. package/dist/assets/fr-a7fcdb64.js.map +1 -0
  7. package/dist/{_snowpack/pkg/fusejs.js → assets/helpers-bf15809c.js} +398 -454
  8. package/dist/assets/helpers-bf15809c.js.map +1 -0
  9. package/dist/{_snowpack/pkg/leaflet/dist/leaflet.css → assets/leaflet-3c081932.css} +3 -3
  10. package/dist/helpers.js +18 -0
  11. package/dist/helpers.js.map +1 -0
  12. package/dist/index.js +54523 -48
  13. package/dist/index.js.map +1 -0
  14. package/package.json +7 -22
  15. package/dist/_snowpack/pkg/autolinker.js +0 -4429
  16. package/dist/_snowpack/pkg/autolinker.js.map +0 -1
  17. package/dist/_snowpack/pkg/common/_baseUnary-d2677655.js +0 -353
  18. package/dist/_snowpack/pkg/common/_baseUnary-d2677655.js.map +0 -1
  19. package/dist/_snowpack/pkg/common/_commonjsHelpers-0597c316.js +0 -26
  20. package/dist/_snowpack/pkg/common/_commonjsHelpers-0597c316.js.map +0 -1
  21. package/dist/_snowpack/pkg/common/decode-26fbf385.js +0 -185
  22. package/dist/_snowpack/pkg/common/decode-26fbf385.js.map +0 -1
  23. package/dist/_snowpack/pkg/common/lit-html-3647afce.js +0 -1104
  24. package/dist/_snowpack/pkg/common/lit-html-3647afce.js.map +0 -1
  25. package/dist/_snowpack/pkg/delta-markdown-for-quill.js +0 -26198
  26. package/dist/_snowpack/pkg/delta-markdown-for-quill.js.map +0 -1
  27. package/dist/_snowpack/pkg/dialog-polyfill.js +0 -826
  28. package/dist/_snowpack/pkg/dialog-polyfill.js.map +0 -1
  29. package/dist/_snowpack/pkg/fusejs.js.map +0 -1
  30. package/dist/_snowpack/pkg/import-map.json +0 -25
  31. package/dist/_snowpack/pkg/jsonld-context-parser.js +0 -836
  32. package/dist/_snowpack/pkg/jsonld-context-parser.js.map +0 -1
  33. package/dist/_snowpack/pkg/jsonld.js +0 -11760
  34. package/dist/_snowpack/pkg/jsonld.js.map +0 -1
  35. package/dist/_snowpack/pkg/leaflet/dist/leaflet.css.proxy.js +0 -10
  36. package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.Default.css.proxy.js +0 -10
  37. package/dist/_snowpack/pkg/leaflet.markercluster/dist/MarkerCluster.css.proxy.js +0 -10
  38. package/dist/_snowpack/pkg/lit-html/directives/if-defined.js +0 -39
  39. package/dist/_snowpack/pkg/lit-html/directives/if-defined.js.map +0 -1
  40. package/dist/_snowpack/pkg/lit-html/directives/unsafe-html.js +0 -48
  41. package/dist/_snowpack/pkg/lit-html/directives/unsafe-html.js.map +0 -1
  42. package/dist/_snowpack/pkg/lit-html/directives/until.js +0 -87
  43. package/dist/_snowpack/pkg/lit-html/directives/until.js.map +0 -1
  44. package/dist/_snowpack/pkg/lit-html.js +0 -94
  45. package/dist/_snowpack/pkg/lit-html.js.map +0 -1
  46. package/dist/_snowpack/pkg/markdown-it-link-attributes.js +0 -68
  47. package/dist/_snowpack/pkg/markdown-it-link-attributes.js.map +0 -1
  48. package/dist/_snowpack/pkg/markdown-it.js +0 -11307
  49. package/dist/_snowpack/pkg/markdown-it.js.map +0 -1
  50. package/dist/_snowpack/pkg/quill/dist/quill.snow.css.proxy.js +0 -10
  51. package/dist/_snowpack/pkg/quill-delta-to-markdown.js +0 -971
  52. package/dist/_snowpack/pkg/quill-delta-to-markdown.js.map +0 -1
  53. package/dist/_snowpack/pkg/quill.js +0 -14441
  54. package/dist/_snowpack/pkg/quill.js.map +0 -1
  55. package/dist/_snowpack/pkg/slim-select.js +0 -714
  56. package/dist/_snowpack/pkg/slim-select.js.map +0 -1
  57. package/dist/_snowpack/pkg/tui-calendar/dist/tui-calendar.css +0 -1149
  58. package/dist/_snowpack/pkg/tui-calendar/dist/tui-calendar.css.proxy.js +0 -10
  59. package/dist/_snowpack/pkg/tui-calendar.js +0 -46503
  60. package/dist/_snowpack/pkg/tui-calendar.js.map +0 -1
  61. package/dist/components/solid-ac-checker.js +0 -45
  62. package/dist/components/solid-calendar.js +0 -66
  63. package/dist/components/solid-delete.js +0 -96
  64. package/dist/components/solid-display.js +0 -150
  65. package/dist/components/solid-form-search.js +0 -173
  66. package/dist/components/solid-form.js +0 -257
  67. package/dist/components/solid-lang.js +0 -35
  68. package/dist/components/solid-map.js +0 -204
  69. package/dist/components/solid-table.js +0 -181
  70. package/dist/components/solid-widget.js +0 -72
  71. package/dist/import.css +0 -4
  72. package/dist/libs/Component.js +0 -13
  73. package/dist/libs/ComponentFactory.js +0 -165
  74. package/dist/libs/Compositor.js +0 -96
  75. package/dist/libs/Sib.js +0 -44
  76. package/dist/libs/filter.js +0 -184
  77. package/dist/libs/helpers.js +0 -185
  78. package/dist/libs/interfaces.js +0 -6
  79. package/dist/libs/lit-helpers.js +0 -139
  80. package/dist/libs/polyfills.js +0 -35
  81. package/dist/libs/store/custom-getter.js +0 -344
  82. package/dist/libs/store/server-pagination.js +0 -19
  83. package/dist/libs/store/server-search.js +0 -32
  84. package/dist/libs/store/store.js +0 -560
  85. package/dist/locales/en.json +0 -10
  86. package/dist/locales/en.json.proxy.js +0 -2
  87. package/dist/locales/fr.json +0 -10
  88. package/dist/locales/fr.json.proxy.js +0 -2
  89. package/dist/mixins/attributeBinderMixin.js +0 -113
  90. package/dist/mixins/contextMixin.js +0 -26
  91. package/dist/mixins/counterMixin.js +0 -54
  92. package/dist/mixins/federationMixin.js +0 -57
  93. package/dist/mixins/filterMixin.js +0 -152
  94. package/dist/mixins/grouperMixin.js +0 -73
  95. package/dist/mixins/highlighterMixin.js +0 -36
  96. package/dist/mixins/interfaces.js +0 -6
  97. package/dist/mixins/listMixin.js +0 -116
  98. package/dist/mixins/nextMixin.js +0 -23
  99. package/dist/mixins/paginateMixin.js +0 -97
  100. package/dist/mixins/requiredMixin.js +0 -38
  101. package/dist/mixins/serverPaginationMixin.js +0 -122
  102. package/dist/mixins/sorterMixin.js +0 -131
  103. package/dist/mixins/storeMixin.js +0 -139
  104. package/dist/mixins/translationMixin.js +0 -58
  105. package/dist/mixins/validationMixin.js +0 -95
  106. package/dist/mixins/widgetMixin.js +0 -358
  107. package/dist/new-widgets/attributeMixins/actionMixin.js +0 -13
  108. package/dist/new-widgets/attributeMixins/blankMixin.js +0 -7
  109. package/dist/new-widgets/attributeMixins/booleanMixin.js +0 -7
  110. package/dist/new-widgets/attributeMixins/index.js +0 -19
  111. package/dist/new-widgets/attributeMixins/mailtoMixin.js +0 -7
  112. package/dist/new-widgets/attributeMixins/multipleMixin.js +0 -27
  113. package/dist/new-widgets/attributeMixins/numberMixin.js +0 -7
  114. package/dist/new-widgets/attributeMixins/placeholderMixin.js +0 -16
  115. package/dist/new-widgets/attributeMixins/telMixin.js +0 -7
  116. package/dist/new-widgets/baseWidgetMixin.js +0 -109
  117. package/dist/new-widgets/callbackMixins/autocompletionMixin.js +0 -96
  118. package/dist/new-widgets/callbackMixins/index.js +0 -7
  119. package/dist/new-widgets/callbackMixins/richtextMixin.js +0 -37
  120. package/dist/new-widgets/callbackMixins/slimselect.css.proxy.js +0 -10
  121. package/dist/new-widgets/interfaces.js +0 -1
  122. package/dist/new-widgets/new-widget-factory.js +0 -91
  123. package/dist/new-widgets/templateAdditionMixins/addableMixin.js +0 -26
  124. package/dist/new-widgets/templateAdditionMixins/index.js +0 -13
  125. package/dist/new-widgets/templateAdditionMixins/labelLastMixin.js +0 -16
  126. package/dist/new-widgets/templateAdditionMixins/labelMixin.js +0 -18
  127. package/dist/new-widgets/templates/defaultTemplatesDirectory.js +0 -29
  128. package/dist/new-widgets/templates/displayTemplatesDirectory.js +0 -54
  129. package/dist/new-widgets/templates/formTemplatesDirectory.js +0 -423
  130. package/dist/new-widgets/templates/groupTemplatesDirectory.js +0 -11
  131. package/dist/new-widgets/templates/index.js +0 -6
  132. package/dist/new-widgets/templates/setTemplatesDirectory.js +0 -16
  133. package/dist/new-widgets/templatesDependencies/altMixin.js +0 -12
  134. package/dist/new-widgets/templatesDependencies/editableMixin.js +0 -60
  135. package/dist/new-widgets/templatesDependencies/filterRangeFormMixin.js +0 -34
  136. package/dist/new-widgets/templatesDependencies/formCheckboxMixin.js +0 -10
  137. package/dist/new-widgets/templatesDependencies/formCheckboxesMixin.js +0 -41
  138. package/dist/new-widgets/templatesDependencies/formDropdownMixin.js +0 -59
  139. package/dist/new-widgets/templatesDependencies/formFileMixin.js +0 -82
  140. package/dist/new-widgets/templatesDependencies/formLengthMixin.js +0 -18
  141. package/dist/new-widgets/templatesDependencies/formMinMaxMixin.js +0 -18
  142. package/dist/new-widgets/templatesDependencies/formMixin.js +0 -56
  143. package/dist/new-widgets/templatesDependencies/formNumberMixin.js +0 -10
  144. package/dist/new-widgets/templatesDependencies/formRadioMixin.js +0 -12
  145. package/dist/new-widgets/templatesDependencies/formStepMixin.js +0 -12
  146. package/dist/new-widgets/templatesDependencies/linkTextMixin.js +0 -13
  147. package/dist/new-widgets/templatesDependencies/multipleFormMixin.js +0 -116
  148. package/dist/new-widgets/templatesDependencies/multipleselectFormMixin.js +0 -74
  149. package/dist/new-widgets/templatesDependencies/patternMixin.js +0 -18
  150. package/dist/new-widgets/templatesDependencies/rangeMixin.js +0 -100
  151. package/dist/new-widgets/templatesDependencies/setMixin.js +0 -9
  152. package/dist/new-widgets/templatesDependencies/valueRichtextMixin.js +0 -9
  153. package/dist/new-widgets/valueTransformationMixins/autolinkMixin.js +0 -14
  154. package/dist/new-widgets/valueTransformationMixins/dateMixin.js +0 -29
  155. package/dist/new-widgets/valueTransformationMixins/dateTimeMixin.js +0 -12
  156. package/dist/new-widgets/valueTransformationMixins/index.js +0 -15
  157. package/dist/new-widgets/valueTransformationMixins/markdownMixin.js +0 -30
  158. package/dist/new-widgets/valueTransformationMixins/multilineMixin.js +0 -13
  159. package/dist/new-widgets/valueTransformationMixins/oembedMixin.js +0 -21
  160. package/dist/solid-template-element.js +0 -144
  161. package/dist/style/default-theme.css.proxy.js +0 -10
  162. package/dist/widgets/baseWidget.js +0 -267
  163. package/dist/widgets/widget-factory.js +0 -20
  164. /package/dist/{style/default-theme.css → assets/default-theme-d0f20a8a.css} +0 -0
  165. /package/dist/{_snowpack/pkg/quill/dist/quill.snow.css → assets/quill.snow-8f222e44.css} +0 -0
  166. /package/dist/{new-widgets/callbackMixins/slimselect.css → assets/slimselect-43e3ebc8.css} +0 -0
@@ -1,10 +0,0 @@
1
- // [snowpack] add styles to the page (skip if no document exists)
2
- if (typeof document !== 'undefined') {
3
- const code = "/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t -moz-user-select: none;\r\n\t user-select: none;\r\n\t -webkit-user-drag: none;\r\n\t}\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n/* hack that prevents hw layers \"stretching\" when loading new tiles */\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n.leaflet-container .leaflet-overlay-pane svg,\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn't support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane { z-index: 400; }\r\n\r\n.leaflet-tile-pane { z-index: 200; }\r\n.leaflet-overlay-pane { z-index: 400; }\r\n.leaflet-shadow-pane { z-index: 500; }\r\n.leaflet-marker-pane { z-index: 600; }\r\n.leaflet-tooltip-pane { z-index: 650; }\r\n.leaflet-popup-pane { z-index: 700; }\r\n\r\n.leaflet-map-pane canvas { z-index: 100; }\r\n.leaflet-map-pane svg { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-tile {\r\n\twill-change: opacity;\r\n\t}\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t -moz-transition: opacity 0.2s linear;\r\n\t transition: opacity 0.2s linear;\r\n\t}\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t -ms-transform-origin: 0 0;\r\n\t transform-origin: 0 0;\r\n\t}\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\twill-change: transform;\r\n\t}\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t -moz-transition: -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t transition: transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t -moz-transition: none;\r\n\t transition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor: -moz-grab;\r\n\tcursor: grab;\r\n\t}\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor: -moz-grabbing;\r\n\tcursor: grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline: 0;\r\n\t}\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n.leaflet-container a.leaflet-active {\r\n\toutline: 2px solid orange;\r\n\t}\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n\r\n/* general typography */\r\n.leaflet-container {\r\n\tfont: 12px/1.5 \"Helvetica Neue\", Arial, Helvetica, sans-serif;\r\n\t}\r\n\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-bar a:hover {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-bar a:hover {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers.png);\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url(images/layers-2x.png);\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n.leaflet-control-layers label {\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n.leaflet-default-icon-path {\r\n\tbackground-image: url(images/marker-icon.png);\r\n\t}\r\n\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.7);\r\n\tmargin: 0;\r\n\t}\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\t}\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n.leaflet-control-attribution a:hover {\r\n\ttext-decoration: underline;\r\n\t}\r\n.leaflet-container .leaflet-control-attribution,\r\n.leaflet-container .leaflet-control-scale {\r\n\tfont-size: 11px;\r\n\t}\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\tfont-size: 11px;\r\n\twhite-space: nowrap;\r\n\toverflow: hidden;\r\n\t-moz-box-sizing: border-box;\r\n\t box-sizing: border-box;\r\n\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.5);\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n.leaflet-popup-content {\r\n\tmargin: 13px 19px;\r\n\tline-height: 1.4;\r\n\t}\r\n.leaflet-popup-content p {\r\n\tmargin: 18px 0;\r\n\t}\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t -moz-transform: rotate(45deg);\r\n\t -ms-transform: rotate(45deg);\r\n\t transform: rotate(45deg);\r\n\t}\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tpadding: 4px 4px 0 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 18px;\r\n\theight: 14px;\r\n\tfont: 16px/14px Tahoma, Verdana, sans-serif;\r\n\tcolor: #c3c3c3;\r\n\ttext-decoration: none;\r\n\tfont-weight: bold;\r\n\tbackground: transparent;\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button:hover {\r\n\tcolor: #999;\r\n\t}\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\tborder-bottom: 1px solid #ddd;\r\n\tborder-top: 1px solid #ddd;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: \"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)\";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip-container {\r\n\tmargin-top: -1px;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-tooltip.leaflet-clickable {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: \"\";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n";
4
-
5
- const styleEl = document.createElement("style");
6
- const codeEl = document.createTextNode(code);
7
- styleEl.type = 'text/css';
8
- styleEl.appendChild(codeEl);
9
- document.head.appendChild(styleEl);
10
- }
@@ -1,10 +0,0 @@
1
- // [snowpack] add styles to the page (skip if no document exists)
2
- if (typeof document !== 'undefined') {
3
- const code = ".marker-cluster-small {\n\tbackground-color: rgba(181, 226, 140, 0.6);\n\t}\n.marker-cluster-small div {\n\tbackground-color: rgba(110, 204, 57, 0.6);\n\t}\n\n.marker-cluster-medium {\n\tbackground-color: rgba(241, 211, 87, 0.6);\n\t}\n.marker-cluster-medium div {\n\tbackground-color: rgba(240, 194, 12, 0.6);\n\t}\n\n.marker-cluster-large {\n\tbackground-color: rgba(253, 156, 115, 0.6);\n\t}\n.marker-cluster-large div {\n\tbackground-color: rgba(241, 128, 23, 0.6);\n\t}\n\n\t/* IE 6-8 fallback colors */\n.leaflet-oldie .marker-cluster-small {\n\tbackground-color: rgb(181, 226, 140);\n\t}\n.leaflet-oldie .marker-cluster-small div {\n\tbackground-color: rgb(110, 204, 57);\n\t}\n\n.leaflet-oldie .marker-cluster-medium {\n\tbackground-color: rgb(241, 211, 87);\n\t}\n.leaflet-oldie .marker-cluster-medium div {\n\tbackground-color: rgb(240, 194, 12);\n\t}\n\n.leaflet-oldie .marker-cluster-large {\n\tbackground-color: rgb(253, 156, 115);\n\t}\n.leaflet-oldie .marker-cluster-large div {\n\tbackground-color: rgb(241, 128, 23);\n}\n\n.marker-cluster {\n\tbackground-clip: padding-box;\n\tborder-radius: 20px;\n\t}\n.marker-cluster div {\n\twidth: 30px;\n\theight: 30px;\n\tmargin-left: 5px;\n\tmargin-top: 5px;\n\n\ttext-align: center;\n\tborder-radius: 15px;\n\tfont: 12px \"Helvetica Neue\", Arial, Helvetica, sans-serif;\n\t}\n.marker-cluster span {\n\tline-height: 30px;\n\t}";
4
-
5
- const styleEl = document.createElement("style");
6
- const codeEl = document.createTextNode(code);
7
- styleEl.type = 'text/css';
8
- styleEl.appendChild(codeEl);
9
- document.head.appendChild(styleEl);
10
- }
@@ -1,10 +0,0 @@
1
- // [snowpack] add styles to the page (skip if no document exists)
2
- if (typeof document !== 'undefined') {
3
- const code = ".leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {\n\t-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;\n\t-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;\n\ttransition: transform 0.3s ease-out, opacity 0.3s ease-in;\n}\n\n.leaflet-cluster-spider-leg {\n\t/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */\n\t-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;\n\t-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;\n\t-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;\n\ttransition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;\n}\n";
4
-
5
- const styleEl = document.createElement("style");
6
- const codeEl = document.createTextNode(code);
7
- styleEl.type = 'text/css';
8
- styleEl.appendChild(codeEl);
9
- document.head.appendChild(styleEl);
10
- }
@@ -1,39 +0,0 @@
1
- import { d as directive, A as AttributePart } from '../../common/lit-html-3647afce.js';
2
-
3
- /**
4
- * @license
5
- * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.
6
- * This code may only be used under the BSD style license found at
7
- * http://polymer.github.io/LICENSE.txt
8
- * The complete set of authors may be found at
9
- * http://polymer.github.io/AUTHORS.txt
10
- * The complete set of contributors may be found at
11
- * http://polymer.github.io/CONTRIBUTORS.txt
12
- * Code distributed by Google as part of the polymer project is also
13
- * subject to an additional IP rights grant found at
14
- * http://polymer.github.io/PATENTS.txt
15
- */
16
- const previousValues = new WeakMap();
17
- /**
18
- * For AttributeParts, sets the attribute if the value is defined and removes
19
- * the attribute if the value is undefined.
20
- *
21
- * For other part types, this directive is a no-op.
22
- */
23
- const ifDefined = directive(value => part => {
24
- const previousValue = previousValues.get(part);
25
- if (value === undefined && part instanceof AttributePart) {
26
- // If the value is undefined, remove the attribute, but only if the value
27
- // was previously defined.
28
- if (previousValue !== undefined || !previousValues.has(part)) {
29
- const name = part.committer.name;
30
- part.committer.element.removeAttribute(name);
31
- }
32
- } else if (value !== previousValue) {
33
- part.setValue(value);
34
- }
35
- previousValues.set(part, value);
36
- });
37
-
38
- export { ifDefined };
39
- //# sourceMappingURL=if-defined.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"if-defined.js","sources":["../../../../../node_modules/lit-html/src/directives/if-defined.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) 2018 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {AttributePart, directive, Part} from '../lit-html.js';\n\nconst previousValues = new WeakMap<Part, unknown>();\n\n/**\n * For AttributeParts, sets the attribute if the value is defined and removes\n * the attribute if the value is undefined.\n *\n * For other part types, this directive is a no-op.\n */\nexport const ifDefined = directive((value: unknown) => (part: Part) => {\n const previousValue = previousValues.get(part);\n\n if (value === undefined && part instanceof AttributePart) {\n // If the value is undefined, remove the attribute, but only if the value\n // was previously defined.\n if (previousValue !== undefined || !previousValues.has(part)) {\n const name = part.committer.name;\n part.committer.element.removeAttribute(name);\n }\n } else if (value !== previousValue) {\n part.setValue(value);\n }\n\n previousValues.set(part, value);\n});\n"],"names":["previousValues","WeakMap","ifDefined","directive","value","part","previousValue","get","undefined","AttributePart","has","name","committer","element","removeAttribute","setValue","set"],"mappings":";;AAAA;;;;;;;;;;;;;AAgBA,MAAMA,cAAc,GAAG,IAAIC,OAAO,EAAiB;AAEnD;;;;;;MAMaC,SAAS,GAAGC,SAAS,CAAEC,KAAc,IAAMC,IAAU,IAAI;EACpE,MAAMC,aAAa,GAAGN,cAAc,CAACO,GAAG,CAACF,IAAI,CAAC;EAE9C,IAAID,KAAK,KAAKI,SAAS,IAAIH,IAAI,YAAYI,aAAa,EAAE;;;IAGxD,IAAIH,aAAa,KAAKE,SAAS,IAAI,CAACR,cAAc,CAACU,GAAG,CAACL,IAAI,CAAC,EAAE;MAC5D,MAAMM,IAAI,GAAGN,IAAI,CAACO,SAAS,CAACD,IAAI;MAChCN,IAAI,CAACO,SAAS,CAACC,OAAO,CAACC,eAAe,CAACH,IAAI,CAAC;;GAE/C,MAAM,IAAIP,KAAK,KAAKE,aAAa,EAAE;IAClCD,IAAI,CAACU,QAAQ,CAACX,KAAK,CAAC;;EAGtBJ,cAAc,CAACgB,GAAG,CAACX,IAAI,EAAED,KAAK,CAAC;AACjC,CAAC;;;;"}
@@ -1,48 +0,0 @@
1
- import { d as directive, N as NodePart, i as isPrimitive } from '../../common/lit-html-3647afce.js';
2
-
3
- /**
4
- * @license
5
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6
- * This code may only be used under the BSD style license found at
7
- * http://polymer.github.io/LICENSE.txt
8
- * The complete set of authors may be found at
9
- * http://polymer.github.io/AUTHORS.txt
10
- * The complete set of contributors may be found at
11
- * http://polymer.github.io/CONTRIBUTORS.txt
12
- * Code distributed by Google as part of the polymer project is also
13
- * subject to an additional IP rights grant found at
14
- * http://polymer.github.io/PATENTS.txt
15
- */
16
- // For each part, remember the value that was last rendered to the part by the
17
- // unsafeHTML directive, and the DocumentFragment that was last set as a value.
18
- // The DocumentFragment is used as a unique key to check if the last value
19
- // rendered to the part was with unsafeHTML. If not, we'll always re-render the
20
- // value passed to unsafeHTML.
21
- const previousValues = new WeakMap();
22
- /**
23
- * Renders the result as HTML, rather than text.
24
- *
25
- * Note, this is unsafe to use with any user-provided input that hasn't been
26
- * sanitized or escaped, as it may lead to cross-site-scripting
27
- * vulnerabilities.
28
- */
29
- const unsafeHTML = directive(value => part => {
30
- if (!(part instanceof NodePart)) {
31
- throw new Error('unsafeHTML can only be used in text bindings');
32
- }
33
- const previousValue = previousValues.get(part);
34
- if (previousValue !== undefined && isPrimitive(value) && value === previousValue.value && part.value === previousValue.fragment) {
35
- return;
36
- }
37
- const template = document.createElement('template');
38
- template.innerHTML = value; // innerHTML casts to string internally
39
- const fragment = document.importNode(template.content, true);
40
- part.setValue(fragment);
41
- previousValues.set(part, {
42
- value,
43
- fragment
44
- });
45
- });
46
-
47
- export { unsafeHTML };
48
- //# sourceMappingURL=unsafe-html.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unsafe-html.js","sources":["../../../../../node_modules/lit-html/src/directives/unsafe-html.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {isPrimitive} from '../lib/parts.js';\nimport {directive, NodePart, Part} from '../lit-html.js';\n\ninterface PreviousValue {\n readonly value: unknown;\n readonly fragment: DocumentFragment;\n}\n\n// For each part, remember the value that was last rendered to the part by the\n// unsafeHTML directive, and the DocumentFragment that was last set as a value.\n// The DocumentFragment is used as a unique key to check if the last value\n// rendered to the part was with unsafeHTML. If not, we'll always re-render the\n// value passed to unsafeHTML.\nconst previousValues = new WeakMap<NodePart, PreviousValue>();\n\n/**\n * Renders the result as HTML, rather than text.\n *\n * Note, this is unsafe to use with any user-provided input that hasn't been\n * sanitized or escaped, as it may lead to cross-site-scripting\n * vulnerabilities.\n */\nexport const unsafeHTML = directive((value: unknown) => (part: Part): void => {\n if (!(part instanceof NodePart)) {\n throw new Error('unsafeHTML can only be used in text bindings');\n }\n\n const previousValue = previousValues.get(part);\n\n if (previousValue !== undefined && isPrimitive(value) &&\n value === previousValue.value && part.value === previousValue.fragment) {\n return;\n }\n\n const template = document.createElement('template');\n template.innerHTML = value as string; // innerHTML casts to string internally\n const fragment = document.importNode(template.content, true);\n part.setValue(fragment);\n previousValues.set(part, {value, fragment});\n});\n"],"names":["previousValues","WeakMap","unsafeHTML","directive","value","part","NodePart","Error","previousValue","get","undefined","isPrimitive","fragment","template","document","createElement","innerHTML","importNode","content","setValue","set"],"mappings":";;AAAA;;;;;;;;;;;;;AAsBA;AACA;AACA;AACA;AACA;AACA,MAAMA,cAAc,GAAG,IAAIC,OAAO,EAA2B;AAE7D;;;;;;;MAOaC,UAAU,GAAGC,SAAS,CAAEC,KAAc,IAAMC,IAAU,IAAU;EAC3E,IAAI,EAAEA,IAAI,YAAYC,QAAQ,CAAC,EAAE;IAC/B,MAAM,IAAIC,KAAK,CAAC,8CAA8C,CAAC;;EAGjE,MAAMC,aAAa,GAAGR,cAAc,CAACS,GAAG,CAACJ,IAAI,CAAC;EAE9C,IAAIG,aAAa,KAAKE,SAAS,IAAIC,WAAW,CAACP,KAAK,CAAC,IACjDA,KAAK,KAAKI,aAAa,CAACJ,KAAK,IAAIC,IAAI,CAACD,KAAK,KAAKI,aAAa,CAACI,QAAQ,EAAE;IAC1E;;EAGF,MAAMC,QAAQ,GAAGC,QAAQ,CAACC,aAAa,CAAC,UAAU,CAAC;EACnDF,QAAQ,CAACG,SAAS,GAAGZ,KAAe,CAAC;EACrC,MAAMQ,QAAQ,GAAGE,QAAQ,CAACG,UAAU,CAACJ,QAAQ,CAACK,OAAO,EAAE,IAAI,CAAC;EAC5Db,IAAI,CAACc,QAAQ,CAACP,QAAQ,CAAC;EACvBZ,cAAc,CAACoB,GAAG,CAACf,IAAI,EAAE;IAACD,KAAK;IAAEQ;GAAS,CAAC;AAC7C,CAAC;;;;"}
@@ -1,87 +0,0 @@
1
- import { d as directive, i as isPrimitive } from '../../common/lit-html-3647afce.js';
2
-
3
- /**
4
- * @license
5
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
6
- * This code may only be used under the BSD style license found at
7
- * http://polymer.github.io/LICENSE.txt
8
- * The complete set of authors may be found at
9
- * http://polymer.github.io/AUTHORS.txt
10
- * The complete set of contributors may be found at
11
- * http://polymer.github.io/CONTRIBUTORS.txt
12
- * Code distributed by Google as part of the polymer project is also
13
- * subject to an additional IP rights grant found at
14
- * http://polymer.github.io/PATENTS.txt
15
- */
16
- const _state = new WeakMap();
17
- // Effectively infinity, but a SMI.
18
- const _infinity = 0x7fffffff;
19
- /**
20
- * Renders one of a series of values, including Promises, to a Part.
21
- *
22
- * Values are rendered in priority order, with the first argument having the
23
- * highest priority and the last argument having the lowest priority. If a
24
- * value is a Promise, low-priority values will be rendered until it resolves.
25
- *
26
- * The priority of values can be used to create placeholder content for async
27
- * data. For example, a Promise with pending content can be the first,
28
- * highest-priority, argument, and a non_promise loading indicator template can
29
- * be used as the second, lower-priority, argument. The loading indicator will
30
- * render immediately, and the primary content will render when the Promise
31
- * resolves.
32
- *
33
- * Example:
34
- *
35
- * const content = fetch('./content.txt').then(r => r.text());
36
- * html`${until(content, html`<span>Loading...</span>`)}`
37
- */
38
- const until = directive((...args) => part => {
39
- let state = _state.get(part);
40
- if (state === undefined) {
41
- state = {
42
- lastRenderedIndex: _infinity,
43
- values: []
44
- };
45
- _state.set(part, state);
46
- }
47
- const previousValues = state.values;
48
- let previousLength = previousValues.length;
49
- state.values = args;
50
- for (let i = 0; i < args.length; i++) {
51
- // If we've rendered a higher-priority value already, stop.
52
- if (i > state.lastRenderedIndex) {
53
- break;
54
- }
55
- const value = args[i];
56
- // Render non-Promise values immediately
57
- if (isPrimitive(value) || typeof value.then !== 'function') {
58
- part.setValue(value);
59
- state.lastRenderedIndex = i;
60
- // Since a lower-priority value will never overwrite a higher-priority
61
- // synchronous value, we can stop processing now.
62
- break;
63
- }
64
- // If this is a Promise we've already handled, skip it.
65
- if (i < previousLength && value === previousValues[i]) {
66
- continue;
67
- }
68
- // We have a Promise that we haven't seen before, so priorities may have
69
- // changed. Forget what we rendered before.
70
- state.lastRenderedIndex = _infinity;
71
- previousLength = 0;
72
- Promise.resolve(value).then(resolvedValue => {
73
- const index = state.values.indexOf(value);
74
- // If state.values doesn't contain the value, we've re-rendered without
75
- // the value, so don't render it. Then, only render if the value is
76
- // higher-priority than what's already been rendered.
77
- if (index > -1 && index < state.lastRenderedIndex) {
78
- state.lastRenderedIndex = index;
79
- part.setValue(resolvedValue);
80
- part.commit();
81
- }
82
- });
83
- }
84
- });
85
-
86
- export { until };
87
- //# sourceMappingURL=until.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"until.js","sources":["../../../../../node_modules/lit-html/src/directives/until.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {isPrimitive} from '../lib/parts.js';\nimport {directive, Part} from '../lit-html.js';\n\ninterface AsyncState {\n /**\n * The last rendered index of a call to until(). A value only renders if its\n * index is less than the `lastRenderedIndex`.\n */\n lastRenderedIndex: number;\n\n values: unknown[];\n}\n\nconst _state = new WeakMap<Part, AsyncState>();\n// Effectively infinity, but a SMI.\nconst _infinity = 0x7fffffff;\n\n/**\n * Renders one of a series of values, including Promises, to a Part.\n *\n * Values are rendered in priority order, with the first argument having the\n * highest priority and the last argument having the lowest priority. If a\n * value is a Promise, low-priority values will be rendered until it resolves.\n *\n * The priority of values can be used to create placeholder content for async\n * data. For example, a Promise with pending content can be the first,\n * highest-priority, argument, and a non_promise loading indicator template can\n * be used as the second, lower-priority, argument. The loading indicator will\n * render immediately, and the primary content will render when the Promise\n * resolves.\n *\n * Example:\n *\n * const content = fetch('./content.txt').then(r => r.text());\n * html`${until(content, html`<span>Loading...</span>`)}`\n */\nexport const until = directive((...args: unknown[]) => (part: Part) => {\n let state = _state.get(part)!;\n if (state === undefined) {\n state = {\n lastRenderedIndex: _infinity,\n values: [],\n };\n _state.set(part, state);\n }\n const previousValues = state.values;\n let previousLength = previousValues.length;\n state.values = args;\n\n for (let i = 0; i < args.length; i++) {\n // If we've rendered a higher-priority value already, stop.\n if (i > state.lastRenderedIndex) {\n break;\n }\n\n const value = args[i];\n\n // Render non-Promise values immediately\n if (isPrimitive(value) ||\n typeof (value as {then?: unknown}).then !== 'function') {\n part.setValue(value);\n state.lastRenderedIndex = i;\n // Since a lower-priority value will never overwrite a higher-priority\n // synchronous value, we can stop processing now.\n break;\n }\n\n // If this is a Promise we've already handled, skip it.\n if (i < previousLength && value === previousValues[i]) {\n continue;\n }\n\n // We have a Promise that we haven't seen before, so priorities may have\n // changed. Forget what we rendered before.\n state.lastRenderedIndex = _infinity;\n previousLength = 0;\n\n Promise.resolve(value).then((resolvedValue: unknown) => {\n const index = state.values.indexOf(value);\n // If state.values doesn't contain the value, we've re-rendered without\n // the value, so don't render it. Then, only render if the value is\n // higher-priority than what's already been rendered.\n if (index > -1 && index < state.lastRenderedIndex) {\n state.lastRenderedIndex = index;\n part.setValue(resolvedValue);\n part.commit();\n }\n });\n }\n});\n"],"names":["_state","WeakMap","_infinity","until","directive","args","part","state","get","undefined","lastRenderedIndex","values","set","previousValues","previousLength","length","i","value","isPrimitive","then","setValue","Promise","resolve","resolvedValue","index","indexOf","commit"],"mappings":";;AAAA;;;;;;;;;;;;;AA2BA,MAAMA,MAAM,GAAG,IAAIC,OAAO,EAAoB;AAC9C;AACA,MAAMC,SAAS,GAAG,UAAU;AAE5B;;;;;;;;;;;;;;;;;;;MAmBaC,KAAK,GAAGC,SAAS,CAAC,CAAC,GAAGC,IAAe,KAAMC,IAAU,IAAI;EACpE,IAAIC,KAAK,GAAGP,MAAM,CAACQ,GAAG,CAACF,IAAI,CAAE;EAC7B,IAAIC,KAAK,KAAKE,SAAS,EAAE;IACvBF,KAAK,GAAG;MACNG,iBAAiB,EAAER,SAAS;MAC5BS,MAAM,EAAE;KACT;IACDX,MAAM,CAACY,GAAG,CAACN,IAAI,EAAEC,KAAK,CAAC;;EAEzB,MAAMM,cAAc,GAAGN,KAAK,CAACI,MAAM;EACnC,IAAIG,cAAc,GAAGD,cAAc,CAACE,MAAM;EAC1CR,KAAK,CAACI,MAAM,GAAGN,IAAI;EAEnB,KAAK,IAAIW,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGX,IAAI,CAACU,MAAM,EAAEC,CAAC,EAAE,EAAE;;IAEpC,IAAIA,CAAC,GAAGT,KAAK,CAACG,iBAAiB,EAAE;MAC/B;;IAGF,MAAMO,KAAK,GAAGZ,IAAI,CAACW,CAAC,CAAC;;IAGrB,IAAIE,WAAW,CAACD,KAAK,CAAC,IAClB,OAAQA,KAA0B,CAACE,IAAI,KAAK,UAAU,EAAE;MAC1Db,IAAI,CAACc,QAAQ,CAACH,KAAK,CAAC;MACpBV,KAAK,CAACG,iBAAiB,GAAGM,CAAC;;;MAG3B;;;IAIF,IAAIA,CAAC,GAAGF,cAAc,IAAIG,KAAK,KAAKJ,cAAc,CAACG,CAAC,CAAC,EAAE;MACrD;;;;IAKFT,KAAK,CAACG,iBAAiB,GAAGR,SAAS;IACnCY,cAAc,GAAG,CAAC;IAElBO,OAAO,CAACC,OAAO,CAACL,KAAK,CAAC,CAACE,IAAI,CAAEI,aAAsB,IAAI;MACrD,MAAMC,KAAK,GAAGjB,KAAK,CAACI,MAAM,CAACc,OAAO,CAACR,KAAK,CAAC;;;;MAIzC,IAAIO,KAAK,GAAG,CAAC,CAAC,IAAIA,KAAK,GAAGjB,KAAK,CAACG,iBAAiB,EAAE;QACjDH,KAAK,CAACG,iBAAiB,GAAGc,KAAK;QAC/BlB,IAAI,CAACc,QAAQ,CAACG,aAAa,CAAC;QAC5BjB,IAAI,CAACoB,MAAM,EAAE;;KAEhB,CAAC;;AAEN,CAAC;;;;"}
@@ -1,94 +0,0 @@
1
- import { m as marker, T as Template, r as removeNodes, N as NodePart } from './common/lit-html-3647afce.js';
2
- export { d as directive, h as html, n as noChange } from './common/lit-html-3647afce.js';
3
-
4
- /**
5
- * @license
6
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7
- * This code may only be used under the BSD style license found at
8
- * http://polymer.github.io/LICENSE.txt
9
- * The complete set of authors may be found at
10
- * http://polymer.github.io/AUTHORS.txt
11
- * The complete set of contributors may be found at
12
- * http://polymer.github.io/CONTRIBUTORS.txt
13
- * Code distributed by Google as part of the polymer project is also
14
- * subject to an additional IP rights grant found at
15
- * http://polymer.github.io/PATENTS.txt
16
- */
17
- /**
18
- * The default TemplateFactory which caches Templates keyed on
19
- * result.type and result.strings.
20
- */
21
- function templateFactory(result) {
22
- let templateCache = templateCaches.get(result.type);
23
- if (templateCache === undefined) {
24
- templateCache = {
25
- stringsArray: new WeakMap(),
26
- keyString: new Map()
27
- };
28
- templateCaches.set(result.type, templateCache);
29
- }
30
- let template = templateCache.stringsArray.get(result.strings);
31
- if (template !== undefined) {
32
- return template;
33
- }
34
- // If the TemplateStringsArray is new, generate a key from the strings
35
- // This key is shared between all templates with identical content
36
- const key = result.strings.join(marker);
37
- // Check if we already have a Template for this key
38
- template = templateCache.keyString.get(key);
39
- if (template === undefined) {
40
- // If we have not seen this key before, create a new Template
41
- template = new Template(result, result.getTemplateElement());
42
- // Cache the Template for this key
43
- templateCache.keyString.set(key, template);
44
- }
45
- // Cache all future queries for this TemplateStringsArray
46
- templateCache.stringsArray.set(result.strings, template);
47
- return template;
48
- }
49
- const templateCaches = new Map();
50
-
51
- /**
52
- * @license
53
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
54
- * This code may only be used under the BSD style license found at
55
- * http://polymer.github.io/LICENSE.txt
56
- * The complete set of authors may be found at
57
- * http://polymer.github.io/AUTHORS.txt
58
- * The complete set of contributors may be found at
59
- * http://polymer.github.io/CONTRIBUTORS.txt
60
- * Code distributed by Google as part of the polymer project is also
61
- * subject to an additional IP rights grant found at
62
- * http://polymer.github.io/PATENTS.txt
63
- */
64
- const parts = new WeakMap();
65
- /**
66
- * Renders a template result or other value to a container.
67
- *
68
- * To update a container with new values, reevaluate the template literal and
69
- * call `render` with the new result.
70
- *
71
- * @param result Any value renderable by NodePart - typically a TemplateResult
72
- * created by evaluating a template tag like `html` or `svg`.
73
- * @param container A DOM parent to render to. The entire contents are either
74
- * replaced, or efficiently updated if the same result type was previous
75
- * rendered there.
76
- * @param options RenderOptions for the entire render tree rendered to this
77
- * container. Render options must *not* change between renders to the same
78
- * container, as those changes will not effect previously rendered DOM.
79
- */
80
- const render = (result, container, options) => {
81
- let part = parts.get(container);
82
- if (part === undefined) {
83
- removeNodes(container, container.firstChild);
84
- parts.set(container, part = new NodePart(Object.assign({
85
- templateFactory
86
- }, options)));
87
- part.appendInto(container);
88
- }
89
- part.setValue(result);
90
- part.commit();
91
- };
92
-
93
- export { render };
94
- //# sourceMappingURL=lit-html.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"lit-html.js","sources":["../../../node_modules/lit-html/src/lib/template-factory.ts","../../../node_modules/lit-html/src/lib/render.ts"],"sourcesContent":["/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {TemplateResult} from './template-result.js';\nimport {marker, Template} from './template.js';\n\n/**\n * A function type that creates a Template from a TemplateResult.\n *\n * This is a hook into the template-creation process for rendering that\n * requires some modification of templates before they're used, like ShadyCSS,\n * which must add classes to elements and remove styles.\n *\n * Templates should be cached as aggressively as possible, so that many\n * TemplateResults produced from the same expression only do the work of\n * creating the Template the first time.\n *\n * Templates are usually cached by TemplateResult.strings and\n * TemplateResult.type, but may be cached by other keys if this function\n * modifies the template.\n *\n * Note that currently TemplateFactories must not add, remove, or reorder\n * expressions, because there is no way to describe such a modification\n * to render() so that values are interpolated to the correct place in the\n * template instances.\n */\nexport type TemplateFactory = (result: TemplateResult) => Template;\n\n/**\n * The default TemplateFactory which caches Templates keyed on\n * result.type and result.strings.\n */\nexport function templateFactory(result: TemplateResult) {\n let templateCache = templateCaches.get(result.type);\n if (templateCache === undefined) {\n templateCache = {\n stringsArray: new WeakMap<TemplateStringsArray, Template>(),\n keyString: new Map<string, Template>()\n };\n templateCaches.set(result.type, templateCache);\n }\n\n let template = templateCache.stringsArray.get(result.strings);\n if (template !== undefined) {\n return template;\n }\n\n // If the TemplateStringsArray is new, generate a key from the strings\n // This key is shared between all templates with identical content\n const key = result.strings.join(marker);\n\n // Check if we already have a Template for this key\n template = templateCache.keyString.get(key);\n if (template === undefined) {\n // If we have not seen this key before, create a new Template\n template = new Template(result, result.getTemplateElement());\n // Cache the Template for this key\n templateCache.keyString.set(key, template);\n }\n\n // Cache all future queries for this TemplateStringsArray\n templateCache.stringsArray.set(result.strings, template);\n return template;\n}\n\n/**\n * The first argument to JS template tags retain identity across multiple\n * calls to a tag for the same literal, so we can cache work done per literal\n * in a Map.\n *\n * Safari currently has a bug which occasionally breaks this behavior, so we\n * need to cache the Template at two levels. We first cache the\n * TemplateStringsArray, and if that fails, we cache a key constructed by\n * joining the strings array.\n */\nexport interface TemplateCache {\n readonly stringsArray: WeakMap<TemplateStringsArray, Template>;\n readonly keyString: Map<string, Template>;\n}\n\nexport const templateCaches = new Map<string, TemplateCache>();\n","/**\n * @license\n * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.\n * This code may only be used under the BSD style license found at\n * http://polymer.github.io/LICENSE.txt\n * The complete set of authors may be found at\n * http://polymer.github.io/AUTHORS.txt\n * The complete set of contributors may be found at\n * http://polymer.github.io/CONTRIBUTORS.txt\n * Code distributed by Google as part of the polymer project is also\n * subject to an additional IP rights grant found at\n * http://polymer.github.io/PATENTS.txt\n */\n\nimport {removeNodes} from './dom.js';\nimport {NodePart} from './parts.js';\nimport {RenderOptions} from './render-options.js';\nimport {templateFactory} from './template-factory.js';\n\nexport const parts = new WeakMap<Node, NodePart>();\n\n/**\n * Renders a template result or other value to a container.\n *\n * To update a container with new values, reevaluate the template literal and\n * call `render` with the new result.\n *\n * @param result Any value renderable by NodePart - typically a TemplateResult\n * created by evaluating a template tag like `html` or `svg`.\n * @param container A DOM parent to render to. The entire contents are either\n * replaced, or efficiently updated if the same result type was previous\n * rendered there.\n * @param options RenderOptions for the entire render tree rendered to this\n * container. Render options must *not* change between renders to the same\n * container, as those changes will not effect previously rendered DOM.\n */\nexport const render =\n (result: unknown,\n container: Element|DocumentFragment,\n options?: Partial<RenderOptions>) => {\n let part = parts.get(container);\n if (part === undefined) {\n removeNodes(container, container.firstChild);\n parts.set(container, part = new NodePart({\n templateFactory,\n ...options,\n }));\n part.appendInto(container);\n }\n part.setValue(result);\n part.commit();\n };\n"],"names":["templateFactory","result","templateCache","templateCaches","get","type","undefined","stringsArray","WeakMap","keyString","Map","set","template","strings","key","join","marker","Template","getTemplateElement","parts","render","container","options","part","removeNodes","firstChild","NodePart","Object","assign","appendInto","setValue","commit"],"mappings":";;;AAAA;;;;;;;;;;;;;AAuCA;;;;AAIM,SAAUA,eAAeA,CAACC,MAAsB;EACpD,IAAIC,aAAa,GAAGC,cAAc,CAACC,GAAG,CAACH,MAAM,CAACI,IAAI,CAAC;EACnD,IAAIH,aAAa,KAAKI,SAAS,EAAE;IAC/BJ,aAAa,GAAG;MACdK,YAAY,EAAE,IAAIC,OAAO,EAAkC;MAC3DC,SAAS,EAAE,IAAIC,GAAG;KACnB;IACDP,cAAc,CAACQ,GAAG,CAACV,MAAM,CAACI,IAAI,EAAEH,aAAa,CAAC;;EAGhD,IAAIU,QAAQ,GAAGV,aAAa,CAACK,YAAY,CAACH,GAAG,CAACH,MAAM,CAACY,OAAO,CAAC;EAC7D,IAAID,QAAQ,KAAKN,SAAS,EAAE;IAC1B,OAAOM,QAAQ;;;;EAKjB,MAAME,GAAG,GAAGb,MAAM,CAACY,OAAO,CAACE,IAAI,CAACC,MAAM,CAAC;;EAGvCJ,QAAQ,GAAGV,aAAa,CAACO,SAAS,CAACL,GAAG,CAACU,GAAG,CAAC;EAC3C,IAAIF,QAAQ,KAAKN,SAAS,EAAE;;IAE1BM,QAAQ,GAAG,IAAIK,QAAQ,CAAChB,MAAM,EAAEA,MAAM,CAACiB,kBAAkB,EAAE,CAAC;;IAE5DhB,aAAa,CAACO,SAAS,CAACE,GAAG,CAACG,GAAG,EAAEF,QAAQ,CAAC;;;EAI5CV,aAAa,CAACK,YAAY,CAACI,GAAG,CAACV,MAAM,CAACY,OAAO,EAAED,QAAQ,CAAC;EACxD,OAAOA,QAAQ;AACjB;AAiBO,MAAMT,cAAc,GAAG,IAAIO,GAAG,EAAyB;;AC3F9D;;;;;;;;;;;;;AAmBO,MAAMS,KAAK,GAAG,IAAIX,OAAO,EAAkB;AAElD;;;;;;;;;;;;;;;MAeaY,MAAM,GACfA,CAACnB,MAAe,EACfoB,SAAmC,EACnCC,OAAgC,KAAI;EACnC,IAAIC,IAAI,GAAGJ,KAAK,CAACf,GAAG,CAACiB,SAAS,CAAC;EAC/B,IAAIE,IAAI,KAAKjB,SAAS,EAAE;IACtBkB,WAAW,CAACH,SAAS,EAAEA,SAAS,CAACI,UAAU,CAAC;IAC5CN,KAAK,CAACR,GAAG,CAACU,SAAS,EAAEE,IAAI,GAAG,IAAIG,QAAQ,CAAAC,MAAA,CAAAC,MAAA;MACjB5B;OACGsB,OAAO,EACV,CAAC;IACxBC,IAAI,CAACM,UAAU,CAACR,SAAS,CAAC;;EAE5BE,IAAI,CAACO,QAAQ,CAAC7B,MAAM,CAAC;EACrBsB,IAAI,CAACQ,MAAM,EAAE;AACf;;;;"}
@@ -1,68 +0,0 @@
1
- // Adapted from https://github.com/markdown-it/markdown-it/blob/fbc6b0fed563ba7c00557ab638fd19752f8e759d/docs/architecture.md
2
- function findFirstMatchingConfig(link, configs) {
3
- var i, config;
4
- var href = link.attrs[link.attrIndex("href")][1];
5
- for (i = 0; i < configs.length; ++i) {
6
- config = configs[i];
7
-
8
- // If there is a matcher function defined then call it
9
- // Matcher Function should return a boolean indicating
10
- // whether or not it matched. If it matched, use that
11
- // configuration, otherwise, try the next one.
12
- if (typeof config.matcher === "function") {
13
- if (config.matcher(href, config)) {
14
- return config;
15
- } else {
16
- continue;
17
- }
18
- }
19
- return config;
20
- }
21
- }
22
- function applyAttributes(idx, tokens, attributes) {
23
- Object.keys(attributes).forEach(function (attr) {
24
- var attrIndex;
25
- var value = attributes[attr];
26
- if (attr === "className") {
27
- // when dealing with applying classes
28
- // programatically, some programmers
29
- // may prefer to use the className syntax
30
- attr = "class";
31
- }
32
- attrIndex = tokens[idx].attrIndex(attr);
33
- if (attrIndex < 0) {
34
- // attr doesn't exist, add new attribute
35
- tokens[idx].attrPush([attr, value]);
36
- } else {
37
- // attr already exists, overwrite it
38
- tokens[idx].attrs[attrIndex][1] = value; // replace value of existing attr
39
- }
40
- });
41
- }
42
-
43
- function markdownitLinkAttributes(md, configs) {
44
- if (!configs) {
45
- configs = [];
46
- } else {
47
- configs = Array.isArray(configs) ? configs : [configs];
48
- }
49
- Object.freeze(configs);
50
- var defaultRender = md.renderer.rules.link_open || this.defaultRender;
51
- md.renderer.rules.link_open = function (tokens, idx, options, env, self) {
52
- var config = findFirstMatchingConfig(tokens[idx], configs);
53
- var attributes = config && config.attrs;
54
- if (attributes) {
55
- applyAttributes(idx, tokens, attributes);
56
- }
57
-
58
- // pass token to default renderer.
59
- return defaultRender(tokens, idx, options, env, self);
60
- };
61
- }
62
- markdownitLinkAttributes.defaultRender = function (tokens, idx, options, env, self) {
63
- return self.renderToken(tokens, idx, options);
64
- };
65
- var markdownItLinkAttributes = markdownitLinkAttributes;
66
-
67
- export default markdownItLinkAttributes;
68
- //# sourceMappingURL=markdown-it-link-attributes.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"markdown-it-link-attributes.js","sources":["../../../node_modules/markdown-it-link-attributes/index.js"],"sourcesContent":["\"use strict\";\n\n// Adapted from https://github.com/markdown-it/markdown-it/blob/fbc6b0fed563ba7c00557ab638fd19752f8e759d/docs/architecture.md\n\nfunction findFirstMatchingConfig(link, configs) {\n var i, config;\n var href = link.attrs[link.attrIndex(\"href\")][1];\n\n for (i = 0; i < configs.length; ++i) {\n config = configs[i];\n\n // If there is a matcher function defined then call it\n // Matcher Function should return a boolean indicating\n // whether or not it matched. If it matched, use that\n // configuration, otherwise, try the next one.\n if (typeof config.matcher === \"function\") {\n if (config.matcher(href, config)) {\n return config;\n } else {\n continue;\n }\n }\n\n return config;\n }\n}\n\nfunction applyAttributes(idx, tokens, attributes) {\n Object.keys(attributes).forEach(function (attr) {\n var attrIndex;\n var value = attributes[attr];\n\n if (attr === \"className\") {\n // when dealing with applying classes\n // programatically, some programmers\n // may prefer to use the className syntax\n attr = \"class\";\n }\n\n attrIndex = tokens[idx].attrIndex(attr);\n\n if (attrIndex < 0) {\n // attr doesn't exist, add new attribute\n tokens[idx].attrPush([attr, value]);\n } else {\n // attr already exists, overwrite it\n tokens[idx].attrs[attrIndex][1] = value; // replace value of existing attr\n }\n });\n}\n\nfunction markdownitLinkAttributes(md, configs) {\n if (!configs) {\n configs = [];\n } else {\n configs = Array.isArray(configs) ? configs : [configs];\n }\n\n Object.freeze(configs);\n\n var defaultRender = md.renderer.rules.link_open || this.defaultRender;\n\n md.renderer.rules.link_open = function (tokens, idx, options, env, self) {\n var config = findFirstMatchingConfig(tokens[idx], configs);\n var attributes = config && config.attrs;\n\n if (attributes) {\n applyAttributes(idx, tokens, attributes);\n }\n\n // pass token to default renderer.\n return defaultRender(tokens, idx, options, env, self);\n };\n}\n\nmarkdownitLinkAttributes.defaultRender = function (\n tokens,\n idx,\n options,\n env,\n self\n) {\n return self.renderToken(tokens, idx, options);\n};\n\nmodule.exports = markdownitLinkAttributes;\n"],"names":["findFirstMatchingConfig","link","configs","i","config","href","attrs","attrIndex","length","matcher","applyAttributes","idx","tokens","attributes","Object","keys","forEach","attr","value","attrPush","markdownitLinkAttributes","md","Array","isArray","freeze","defaultRender","renderer","rules","link_open","options","env","self","renderToken"],"mappings":"AAEA;AAEA,SAASA,uBAAuBA,CAACC,IAAI,EAAEC,OAAO,EAAE;EAC9C,IAAIC,CAAC,EAAEC,MAAM;EACb,IAAIC,IAAI,GAAGJ,IAAI,CAACK,KAAK,CAACL,IAAI,CAACM,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;EAEhD,KAAKJ,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGD,OAAO,CAACM,MAAM,EAAE,EAAEL,CAAC,EAAE;IACnCC,MAAM,GAAGF,OAAO,CAACC,CAAC,CAAC;;;;;;IAMnB,IAAI,OAAOC,MAAM,CAACK,OAAO,KAAK,UAAU,EAAE;MACxC,IAAIL,MAAM,CAACK,OAAO,CAACJ,IAAI,EAAED,MAAM,CAAC,EAAE;QAChC,OAAOA,MAAM;OACd,MAAM;QACL;;;IAIJ,OAAOA,MAAM;;AAEjB;AAEA,SAASM,eAAeA,CAACC,GAAG,EAAEC,MAAM,EAAEC,UAAU,EAAE;EAChDC,MAAM,CAACC,IAAI,CAACF,UAAU,CAAC,CAACG,OAAO,CAAC,UAAUC,IAAI,EAAE;IAC9C,IAAIV,SAAS;IACb,IAAIW,KAAK,GAAGL,UAAU,CAACI,IAAI,CAAC;IAE5B,IAAIA,IAAI,KAAK,WAAW,EAAE;;;;MAIxBA,IAAI,GAAG,OAAO;;IAGhBV,SAAS,GAAGK,MAAM,CAACD,GAAG,CAAC,CAACJ,SAAS,CAACU,IAAI,CAAC;IAEvC,IAAIV,SAAS,GAAG,CAAC,EAAE;;MAEjBK,MAAM,CAACD,GAAG,CAAC,CAACQ,QAAQ,CAAC,CAACF,IAAI,EAAEC,KAAK,CAAC,CAAC;KACpC,MAAM;;MAELN,MAAM,CAACD,GAAG,CAAC,CAACL,KAAK,CAACC,SAAS,CAAC,CAAC,CAAC,CAAC,GAAGW,KAAK,CAAC;;GAE3C,CAAC;AACJ;;AAEA,SAASE,wBAAwBA,CAACC,EAAE,EAAEnB,OAAO,EAAE;EAC7C,IAAI,CAACA,OAAO,EAAE;IACZA,OAAO,GAAG,EAAE;GACb,MAAM;IACLA,OAAO,GAAGoB,KAAK,CAACC,OAAO,CAACrB,OAAO,CAAC,GAAGA,OAAO,GAAG,CAACA,OAAO,CAAC;;EAGxDY,MAAM,CAACU,MAAM,CAACtB,OAAO,CAAC;EAEtB,IAAIuB,aAAa,GAAGJ,EAAE,CAACK,QAAQ,CAACC,KAAK,CAACC,SAAS,IAAI,IAAI,CAACH,aAAa;EAErEJ,EAAE,CAACK,QAAQ,CAACC,KAAK,CAACC,SAAS,GAAG,UAAUhB,MAAM,EAAED,GAAG,EAAEkB,OAAO,EAAEC,GAAG,EAAEC,IAAI,EAAE;IACvE,IAAI3B,MAAM,GAAGJ,uBAAuB,CAACY,MAAM,CAACD,GAAG,CAAC,EAAET,OAAO,CAAC;IAC1D,IAAIW,UAAU,GAAGT,MAAM,IAAIA,MAAM,CAACE,KAAK;IAEvC,IAAIO,UAAU,EAAE;MACdH,eAAe,CAACC,GAAG,EAAEC,MAAM,EAAEC,UAAU,CAAC;;;;IAI1C,OAAOY,aAAa,CAACb,MAAM,EAAED,GAAG,EAAEkB,OAAO,EAAEC,GAAG,EAAEC,IAAI,CAAC;GACtD;AACH;AAEAX,wBAAwB,CAACK,aAAa,GAAG,UACvCb,MAAM,EACND,GAAG,EACHkB,OAAO,EACPC,GAAG,EACHC,IAAI,EACJ;EACA,OAAOA,IAAI,CAACC,WAAW,CAACpB,MAAM,EAAED,GAAG,EAAEkB,OAAO,CAAC;AAC/C,CAAC;4BAEa,GAAGT;;;;"}