@oiz/stzh-components 2.5.0-alpha → 2.5.0-beta
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/{app-globals-0c3558c0.js → app-globals-adfd466f.js} +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-badge_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-chip_2.cjs.entry.js +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-dropdown.cjs.entry.js +19 -1
- package/dist/cjs/stzh-olmap.cjs.entry.js +442 -1
- package/dist/collection/components/stzh-button/stzh-button.css +1 -0
- package/dist/collection/components/stzh-chip/stzh-chip.css +13 -8
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +15 -2
- package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +94 -8
- package/dist/collection/components/stzh-olmap/stzh-olmap.css +7 -2
- package/dist/collection/components/stzh-olmap/stzh-olmap.js +34 -0
- package/dist/components/index.js +1 -1
- package/dist/components/stzh-button2.js +1 -1
- package/dist/components/stzh-chip2.js +1 -1
- package/dist/components/stzh-dropdown2.js +24 -2
- package/dist/components/stzh-olmap.js +444 -2
- package/dist/esm/{app-globals-a58b5d2d.js → app-globals-9f43baf6.js} +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-badge_3.entry.js +1 -1
- package/dist/esm/stzh-chip_2.entry.js +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-dropdown.entry.js +19 -1
- package/dist/esm/stzh-olmap.entry.js +442 -1
- package/dist/esm-es5/{app-globals-a58b5d2d.js → app-globals-9f43baf6.js} +1 -1
- package/dist/esm-es5/loader.js +1 -1
- package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
- package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
- package/dist/esm-es5/stzh-components.js +1 -1
- package/dist/esm-es5/stzh-dropdown.entry.js +6 -6
- package/dist/esm-es5/stzh-olmap.entry.js +2 -2
- package/dist/stzh-components/p-08e324a9.entry.js +9 -0
- package/dist/stzh-components/p-22d01c71.entry.js +1 -0
- package/dist/stzh-components/{p-72f050c1.system.js → p-3cec74af.system.js} +1 -1
- package/dist/stzh-components/p-4b2a4289.entry.js +1 -0
- package/dist/stzh-components/{p-a8205b50.system.entry.js → p-833c666f.system.entry.js} +1 -1
- package/dist/stzh-components/p-8e48e5b2.system.js +1 -0
- package/dist/stzh-components/p-a3d67aca.entry.js +7 -0
- package/dist/stzh-components/p-a493c52e.system.entry.js +1 -0
- package/dist/stzh-components/p-b706c115.system.entry.js +1 -0
- package/dist/stzh-components/{p-73ce3c9b.system.entry.js → p-bd2b4c37.system.entry.js} +7 -7
- package/dist/stzh-components/{p-8276a3a5.js → p-d8468b5f.js} +1 -1
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.js +1 -1
- package/dist/types/components.d.ts +36 -8
- package/dist/vscode-data.json +20 -0
- package/package.json +1 -1
- package/dist/stzh-components/p-06e2b01d.system.entry.js +0 -1
- package/dist/stzh-components/p-077a1368.entry.js +0 -1
- package/dist/stzh-components/p-0b5226e2.entry.js +0 -7
- package/dist/stzh-components/p-406c9413.entry.js +0 -9
- package/dist/stzh-components/p-ac6df3e4.system.entry.js +0 -1
- package/dist/stzh-components/p-cfe82456.entry.js +0 -1
- package/dist/stzh-components/p-dde56464.system.js +0 -1
|
@@ -5258,7 +5258,7 @@ var no_backspace_delete = createCommonjsModule(function (module, exports) {
|
|
|
5258
5258
|
//# sourceMappingURL=no_backspace_delete.js.map
|
|
5259
5259
|
});
|
|
5260
5260
|
|
|
5261
|
-
const stzhDropdownCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-dropdown{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-grey61);--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-white);--label-background:var(--stzh-color-white);--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--hover-color);--popover-width:100%;--popover-min-width:var(--stzh-popover-min-width);--popover-max-width:var(--stzh-popover-min-width);--popover-max-height:calc(6.5 * var(--stzh-menu-item-height));width:100%;border-radius:var(--stzh-form-input-border-radius);}stzh-dropdown[hidden]{display:none}stzh-dropdown *,stzh-dropdown *::before,stzh-dropdown *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-dropdown[variant=plain]{--background-color:transparent}stzh-dropdown[inline]:not([inline=false]){--popover-width:auto;width:auto}stzh-dropdown[invalid]:not([invalid=false]){--color:var(--stzh-color-error);--border-color:var(--stzh-color-error);--label-color:var(--stzh-color-error);--placeholder-color:var(--stzh-color-error);--hover-color:var(--stzh-color-error);--hover-border-color:var(--stzh-color-error)}stzh-dropdown[disabled]:not([disabled=false]){--color:var(--stzh-color-grey61);--border-color:transparent;--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-black8);--label-background:transparent;--hover-color:var(--stzh-color-grey61);--hover-border-color:transparent}stzh-dropdown[disabled]:not([disabled=false])[variant=plain]{--background-color:transparent}.stzh-dropdown__icon-wrapper stzh-icon,.stzh-dropdown__icon{--size:var(--icon-size)}.stzh-dropdown{}.stzh-dropdown__marker-symbol{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-dropdown__marker-text{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__description-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-dropdown__error,.stzh-dropdown__description{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-dropdown__error{color:var(--stzh-color-error)}.stzh-dropdown__error-list{list-style:none;margin:0;padding:0}.stzh-dropdown__description{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-dropdown__description-long{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-dropdown__description-long-popover{--width:auto;--max-width:27.3125rem}.stzh-dropdown__description-long-popover[open]:not([open=false]) .stzh-dropdown__description-long-button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__description-long-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-dropdown__description-long-button:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown stzh-icon.stzh-dropdown__description-long-icon{--size:var(--stzh-icon-size-xsmall)}.stzh-dropdown--has-error .stzh-dropdown__error,.stzh-dropdown--has-description .stzh-dropdown__description{margin-top:var(--stzh-space-xxsmall)}.stzh-dropdown .ts-hidden-accessible{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown .ts-dropdown-content{max-height:var(--popover-max-height);overflow-y:auto;overflow-x:hidden;overflow-scrolling:touch;scroll-behavior:smooth}.stzh-dropdown .ts-control{overflow:hidden;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:var(--stzh-form-input-border-radius);background-color:var(--background-color);-webkit-transition-property:color, border-color;transition-property:color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown .ts-control:hover,.stzh-dropdown .ts-control:focus-within{border-color:var(--hover-border-color)}.stzh-dropdown .ts-control>*{vertical-align:baseline;display:inline-block}.stzh-dropdown .ts-control,.stzh-dropdown__sizer{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;width:100%;min-height:var(--stzh-form-input-height);border:0.0625rem solid var(--border-color)}.stzh-dropdown .ts-control>input{font-size:inherit;line-height:inherit;-ms-flex:1 1 auto;flex:1 1 auto;display:inline-block;padding:0;min-height:0;max-height:none;max-width:100%;margin:0;text-indent:0;border:0 none;background:none;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.stzh-dropdown .ts-control>input::-webkit-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-ms-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-ms-clear{display:none}.stzh-dropdown .ts-control>input:focus{outline:none}.stzh-dropdown .ts-control>input:-moz-placeholder-shown{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:-ms-input-placeholder{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:placeholder-shown{text-overflow:ellipsis}.stzh-dropdown__field-wrapper,.stzh-dropdown__select{position:relative}.stzh-dropdown__icon-wrapper{position:absolute}.stzh-dropdown__select .ts-control>input,.stzh-dropdown__select.single .stzh-dropdown__item,.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-dropdown__select.multi .stzh-dropdown__item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__select:hover .ts-control>input,.stzh-dropdown__select:focus-within .ts-control>input,.stzh-dropdown__select.single:hover .stzh-dropdown__item,.stzh-dropdown__select.single:focus-within .stzh-dropdown__item,.stzh-dropdown__select:hover~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:focus-within~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:hover~.stzh-dropdown__angle-icon,.stzh-dropdown__select:focus-within~.stzh-dropdown__angle-icon,.stzh-dropdown__select:hover~.stzh-dropdown__label,.stzh-dropdown__select:focus-within~.stzh-dropdown__label{color:var(--hover-color)}.stzh-dropdown__sizer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-top:calc(var(--stzh-form-input-height) / -1);pointer-events:none;visibility:hidden}.stzh-dropdown__select.has-items~.stzh-dropdown__sizer{display:none}.stzh-dropdown__select.plugin-input_hide~.stzh-dropdown__sizer{visibility:visible}.stzh-dropdown__select.input-active .ts-control,.stzh-dropdown__select.input-active .ts-control>input{cursor:text}.stzh-dropdown__select.input-hidden .ts-control>input,.stzh-dropdown__select.plugin-input_hide .ts-control>input{opacity:0;position:absolute;left:-625rem}.stzh-dropdown__select.single .ts-control,.stzh-dropdown__select.multi .ts-control,.stzh-dropdown__sizer{padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.stzh-dropdown__icon-wrapper{display:-ms-flexbox;display:flex;left:var(--stzh-space-medium)}.stzh-dropdown stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-medium)}.stzh-dropdown__angle-icon{right:var(--stzh-space-medium)}.stzh-dropdown__label{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--label-color);display:block;width:auto;position:absolute;top:calc(var(--stzh-form-input-height) / 2);left:calc(var(--stzh-space-medium) + 0.0625rem);max-width:calc(100% - var(--stzh-space-medium) * 2);-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);pointer-events:none}.stzh-dropdown__label:empty{display:none}.stzh-dropdown__label::before{content:\"\";display:none;background:var(--label-background);position:absolute;width:100%;z-index:-1;left:0;top:50%;height:0.125rem;margin-top:-0.5px}.stzh-dropdown__option,.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;-webkit-text-decoration-line:none;text-decoration-line:none;outline:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--stzh-color-grey70);height:var(--stzh-menu-item-height);line-height:var(--stzh-menu-item-height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown__option:hover,.stzh-dropdown__option.active,.stzh-dropdown__create:hover,.stzh-dropdown__create.active{background-color:var(--stzh-color-grey5)}.stzh-dropdown__option.selected,.stzh-dropdown__create.selected{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover,.stzh-dropdown__option.selected.active,.stzh-dropdown__create.selected:hover,.stzh-dropdown__create.selected.active{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown__option input,.stzh-dropdown__create input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:block}.stzh-dropdown__option-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-dropdown__option[data-selectable] .highlight{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-dropdown__select .stzh-dropdown__option-check{display:none;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover .stzh-dropdown__option-check,.stzh-dropdown__option.selected.active .stzh-dropdown__option-check{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-dropdown__no-results{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.stzh-dropdown__no-results,.stzh-dropdown__not-loading{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large)}.stzh-dropdown__optgroup-header{cursor:default}.stzh-dropdown__loader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.375rem}.stzh-dropdown__dropdown{position:absolute;top:100%;left:0;width:var(--popover-width);margin-top:var(--stzh-space-xsmall);background-color:var(--stzh-color-white);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);z-index:var(--stzh-z-index-popover);border-radius:var(--stzh-popover-border-radius);overflow:hidden}@media screen and (min-width: 600px){.stzh-dropdown__dropdown{min-width:var(--popover-min-width);max-width:var(--popover-max-width)}}.stzh-dropdown__select.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.stzh-dropdown__select.plugin-input_autogrow.has-items.focus .ts-control>input{-ms-flex:none;flex:none;min-width:0.25rem}.stzh-dropdown__select.has-items .ts-control>input{margin:0 0.25rem}.stzh-dropdown__select.has-items .ts-control>input::-webkit-input-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input::-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-ms-input-placeholder{color:transparent}.stzh-dropdown--is-multiple .stzh-dropdown__option-check{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);margin-right:var(--stzh-space-xsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__option{padding-left:var(--stzh-space-small)}.stzh-dropdown--is-multiple .stzh-dropdown__option.selected .stzh-dropdown__option-check{opacity:1}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control{padding-top:calc(var(--stzh-space-xsmall) - 0.0625rem);padding-bottom:calc(var(--stzh-space-xsmall) - 0.0625rem)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);position:relative;height:1.5rem;line-height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border-radius:0.75rem;padding:0 var(--stzh-space-medium);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:0.0625rem solid transparent;background-color:var(--stzh-color-grey5);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);margin:var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) 0;cursor:pointer}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item.active{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-right:calc(1.5rem + var(--stzh-space-xxsmall))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{position:absolute;top:50%;right:-0.0625rem;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-text-decoration-line:none;text-decoration-line:none;width:1.5rem;height:1.5rem;border-radius:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-left:var(--stzh-space-xxsmall);color:var(--stzh-base-lead-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__remove-icon{--size:var(--stzh-icon-size-xxsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item.active .stzh-dropdown__remove-icon{color:var(--stzh-color-white)}.stzh-dropdown--popover-placement-top .stzh-dropdown__dropdown{margin-top:0;top:auto;bottom:100%;margin-bottom:var(--stzh-space-xsmall)}.stzh-dropdown--popover-placement-top.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-bottom:0}.stzh-dropdown--size-small .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-dropdown--size-small .ts-control{min-height:var(--stzh-form-input-small-height)}.stzh-dropdown--size-small .stzh-dropdown__sizer{min-height:initial;height:var(--stzh-form-input-small-height);margin-top:calc(var(--stzh-form-input-small-height) / -1)}.stzh-dropdown--size-small .stzh-dropdown__label{top:calc(var(--stzh-form-input-small-height) / 2)}.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{padding:var(--stzh-space-xxsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--size-small stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-small)}.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--plain .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain .stzh-dropdown__sizer{border:none;padding-left:0;padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--plain .stzh-dropdown__icon-wrapper{left:0}.stzh-dropdown--plain .stzh-dropdown__angle-icon{right:0}.stzh-dropdown--plain .stzh-dropdown__label{left:0;max-width:100%;padding:0}.stzh-dropdown--plain .stzh-dropdown__label::before{content:none}.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-top:0}.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__sizer{padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--has-focus .stzh-dropdown__label{top:0;left:calc(var(--stzh-space-medium) - var(--stzh-space-xxsmall));height:1.25rem;line-height:1.25rem;padding:0 var(--stzh-space-xxsmall);max-width:calc(100% - (var(--stzh-space-medium) - var(--stzh-space-xxsmall)) * 2);pointer-events:all}.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before{display:block}.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label{left:0;padding:0;max-width:100%}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{cursor:not-allowed}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-grey25);background-color:var(--stzh-color-white);border-color:var(--stzh-base-border-color)}.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-grey13);background-color:transparent}";
|
|
5261
|
+
const stzhDropdownCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-dropdown{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-grey61);--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-white);--label-background:var(--stzh-color-white);--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--hover-color);--popover-width:100%;--popover-min-width:var(--stzh-popover-min-width);--popover-max-width:var(--stzh-popover-min-width);--popover-max-height:calc(6.5 * var(--stzh-menu-item-height));width:100%;border-radius:var(--stzh-form-input-border-radius);}stzh-dropdown[hidden]{display:none}stzh-dropdown *,stzh-dropdown *::before,stzh-dropdown *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-dropdown[variant=plain]{--background-color:transparent}stzh-dropdown[inline]:not([inline=false]){--popover-width:auto;width:auto}stzh-dropdown[invalid]:not([invalid=false]){--color:var(--stzh-color-error);--border-color:var(--stzh-color-error);--label-color:var(--stzh-color-error);--placeholder-color:var(--stzh-color-error);--hover-color:var(--stzh-color-error);--hover-border-color:var(--stzh-color-error)}stzh-dropdown[disabled]:not([disabled=false]){--color:var(--stzh-color-grey61);--border-color:transparent;--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-black8);--label-background:transparent;--hover-color:var(--stzh-color-grey61);--hover-border-color:transparent}stzh-dropdown[disabled]:not([disabled=false])[variant=plain]{--background-color:transparent}.stzh-dropdown__icon-wrapper stzh-icon,.stzh-dropdown__icon{--size:var(--icon-size)}.stzh-dropdown{}.stzh-dropdown__marker-symbol{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-dropdown__marker-text{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__description-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-dropdown__error,.stzh-dropdown__description{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-dropdown__error{color:var(--stzh-color-error)}.stzh-dropdown__error-list{list-style:none;margin:0;padding:0}.stzh-dropdown__description{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-dropdown__description-long{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-dropdown__description-long-popover{--width:auto;--max-width:27.3125rem}.stzh-dropdown__description-long-popover[open]:not([open=false]) .stzh-dropdown__description-long-button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__description-long-button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-dropdown__description-long-button:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown stzh-icon.stzh-dropdown__description-long-icon{--size:var(--stzh-icon-size-xsmall)}.stzh-dropdown--has-error .stzh-dropdown__error,.stzh-dropdown--has-description .stzh-dropdown__description{margin-top:var(--stzh-space-xxsmall)}.stzh-dropdown .ts-hidden-accessible{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown .ts-dropdown-content{max-height:var(--popover-max-height);overflow-y:auto;overflow-x:hidden;overflow-scrolling:touch;scroll-behavior:smooth}.stzh-dropdown .ts-control{overflow:hidden;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:var(--stzh-form-input-border-radius);background-color:var(--background-color);-webkit-transition-property:color, border-color;transition-property:color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown .ts-control:hover,.stzh-dropdown .ts-control:focus-within{border-color:var(--hover-border-color)}.stzh-dropdown .ts-control>*{vertical-align:baseline;display:inline-block}.stzh-dropdown .ts-control,.stzh-dropdown__sizer{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;width:100%;min-height:var(--stzh-form-input-height);border:0.0625rem solid var(--border-color)}.stzh-dropdown .ts-control>input{font-size:inherit;line-height:inherit;-ms-flex:1 1 auto;flex:1 1 auto;display:inline-block;padding:0;min-height:0;max-height:none;max-width:100%;margin:0;text-indent:0;border:0 none;background:none;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.stzh-dropdown .ts-control>input::-webkit-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-ms-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-ms-clear{display:none}.stzh-dropdown .ts-control>input:focus{outline:none}.stzh-dropdown .ts-control>input:-moz-placeholder-shown{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:-ms-input-placeholder{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:placeholder-shown{text-overflow:ellipsis}.stzh-dropdown__field-wrapper,.stzh-dropdown__select{position:relative}.stzh-dropdown__icon-wrapper{position:absolute}.stzh-dropdown__select .ts-control>input,.stzh-dropdown__select.single .stzh-dropdown__item,.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-dropdown__select.multi .stzh-dropdown__item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__select:hover .ts-control>input,.stzh-dropdown__select:focus-within .ts-control>input,.stzh-dropdown__select.single:hover .stzh-dropdown__item,.stzh-dropdown__select.single:focus-within .stzh-dropdown__item,.stzh-dropdown__select:hover~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:focus-within~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:hover~.stzh-dropdown__angle-icon,.stzh-dropdown__select:focus-within~.stzh-dropdown__angle-icon,.stzh-dropdown__select:hover~.stzh-dropdown__label,.stzh-dropdown__select:focus-within~.stzh-dropdown__label{color:var(--hover-color)}.stzh-dropdown__sizer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-top:calc(var(--stzh-form-input-height) / -1);pointer-events:none;visibility:hidden}.stzh-dropdown__select.has-items~.stzh-dropdown__sizer{display:none}.stzh-dropdown__select.plugin-input_hide~.stzh-dropdown__sizer{visibility:visible}.stzh-dropdown__select.input-active .ts-control,.stzh-dropdown__select.input-active .ts-control>input{cursor:text}.stzh-dropdown__select.input-hidden .ts-control>input,.stzh-dropdown__select.plugin-input_hide .ts-control>input{opacity:0;position:absolute;left:-625rem}.stzh-dropdown__select.single .ts-control,.stzh-dropdown__select.multi .ts-control,.stzh-dropdown__sizer{padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.stzh-dropdown__icon-wrapper{display:-ms-flexbox;display:flex;left:var(--stzh-space-medium)}.stzh-dropdown stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-medium)}.stzh-dropdown__angle-icon{right:var(--stzh-space-medium);-webkit-transform-origin:50% 0%;transform-origin:50% 0%}.stzh-dropdown__label{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--label-color);display:block;width:auto;position:absolute;top:calc(var(--stzh-form-input-height) / 2);left:calc(var(--stzh-space-medium) + 0.0625rem);max-width:calc(100% - var(--stzh-space-medium) * 2);-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);pointer-events:none}.stzh-dropdown__label:empty{display:none}.stzh-dropdown__label::before{content:\"\";display:none;background:var(--label-background);position:absolute;width:100%;z-index:-1;left:0;top:50%;height:0.125rem;margin-top:-0.5px}.stzh-dropdown__option,.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;-webkit-text-decoration-line:none;text-decoration-line:none;outline:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--stzh-color-grey70);height:var(--stzh-menu-item-height);line-height:var(--stzh-menu-item-height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown__option:hover,.stzh-dropdown__option.active,.stzh-dropdown__create:hover,.stzh-dropdown__create.active{background-color:var(--stzh-color-grey5)}.stzh-dropdown__option.selected,.stzh-dropdown__create.selected{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover,.stzh-dropdown__option.selected.active,.stzh-dropdown__create.selected:hover,.stzh-dropdown__create.selected.active{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown__option input,.stzh-dropdown__create input{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:block}.stzh-dropdown__option-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-dropdown__option[data-selectable] .highlight{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-dropdown__select .stzh-dropdown__option-check{display:none;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover .stzh-dropdown__option-check,.stzh-dropdown__option.selected.active .stzh-dropdown__option-check{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-dropdown__no-results{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.stzh-dropdown__no-results,.stzh-dropdown__not-loading{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large)}.stzh-dropdown__optgroup-header{cursor:default}.stzh-dropdown__loader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.375rem}.stzh-dropdown__dropdown{position:absolute;top:100%;left:0;width:var(--popover-width);margin-top:var(--stzh-space-xsmall);background-color:var(--stzh-color-white);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);z-index:var(--stzh-z-index-popover);border-radius:var(--stzh-popover-border-radius);overflow:hidden}@media screen and (min-width: 600px){.stzh-dropdown__dropdown{min-width:var(--popover-min-width);max-width:var(--popover-max-width)}}.stzh-dropdown__select.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.stzh-dropdown__select.plugin-input_autogrow.has-items.focus .ts-control>input{-ms-flex:none;flex:none;min-width:0.25rem}.stzh-dropdown__select.has-items .ts-control>input{margin:0 0.25rem}.stzh-dropdown__select.has-items .ts-control>input::-webkit-input-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input::-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-ms-input-placeholder{color:transparent}.stzh-dropdown__select.dropdown-active~.stzh-dropdown__angle-icon{-webkit-transform:rotate(180deg) translateY(-50%);transform:rotate(180deg) translateY(-50%)}.stzh-dropdown--is-multiple .stzh-dropdown__option-check{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);margin-right:var(--stzh-space-xsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__option{padding-left:var(--stzh-space-small)}.stzh-dropdown--is-multiple .stzh-dropdown__option.selected .stzh-dropdown__option-check{opacity:1}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control{padding-top:calc(var(--stzh-space-xsmall) - 0.0625rem);padding-bottom:calc(var(--stzh-space-xsmall) - 0.0625rem)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);position:relative;height:1.5rem;line-height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border-radius:0.75rem;padding:0 var(--stzh-space-medium);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:0.0625rem solid transparent;background-color:var(--stzh-color-grey5);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);margin:var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) 0;cursor:pointer}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item.active{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-right:calc(1.5rem + var(--stzh-space-xxsmall))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{position:absolute;top:50%;right:-0.0625rem;-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-text-decoration-line:none;text-decoration-line:none;width:1.5rem;height:1.5rem;border-radius:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-left:var(--stzh-space-xxsmall);color:var(--stzh-base-lead-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__remove-icon{--size:var(--stzh-icon-size-xxsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item.active .stzh-dropdown__remove-icon{color:var(--stzh-color-white)}.stzh-dropdown--popover-placement-top .stzh-dropdown__dropdown,.stzh-dropdown--popover-placement-top-end .stzh-dropdown__dropdown,.stzh-dropdown--popover-placement-top-center .stzh-dropdown__dropdown{margin-top:0;top:auto;bottom:100%;margin-bottom:var(--stzh-space-xsmall)}.stzh-dropdown--popover-placement-top.stzh-dropdown--plain .stzh-dropdown__dropdown,.stzh-dropdown--popover-placement-top-end.stzh-dropdown--plain .stzh-dropdown__dropdown,.stzh-dropdown--popover-placement-top-center.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-bottom:0}.stzh-dropdown--popover-placement-top-end .stzh-dropdown__dropdown,.stzh-dropdown--popover-placement-bottom-end .stzh-dropdown__dropdown{left:auto;right:0}.stzh-dropdown--popover-placement-top-center .stzh-dropdown__dropdown,.stzh-dropdown--popover-placement-bottom-center .stzh-dropdown__dropdown{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.stzh-dropdown--size-small .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-dropdown--size-small .ts-control{min-height:var(--stzh-form-input-small-height)}.stzh-dropdown--size-small .stzh-dropdown__sizer{min-height:initial;height:var(--stzh-form-input-small-height);margin-top:calc(var(--stzh-form-input-small-height) / -1)}.stzh-dropdown--size-small .stzh-dropdown__label{top:calc(var(--stzh-form-input-small-height) / 2)}.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{padding:var(--stzh-space-xxsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--size-small stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-small)}.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--plain .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain .stzh-dropdown__sizer{border:none;padding-left:0;padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--plain .stzh-dropdown__icon-wrapper{left:0}.stzh-dropdown--plain .stzh-dropdown__angle-icon{right:0}.stzh-dropdown--plain .stzh-dropdown__label{left:0;max-width:100%;padding:0}.stzh-dropdown--plain .stzh-dropdown__label::before{content:none}.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-top:0}.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__sizer{padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--has-focus .stzh-dropdown__label{top:0;left:calc(var(--stzh-space-medium) - var(--stzh-space-xxsmall));height:1.25rem;line-height:1.25rem;padding:0 var(--stzh-space-xxsmall);max-width:calc(100% - (var(--stzh-space-medium) - var(--stzh-space-xxsmall)) * 2);pointer-events:all}.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before{display:block}.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label{left:0;padding:0;max-width:100%}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{cursor:not-allowed}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-grey25);background-color:var(--stzh-color-white);border-color:var(--stzh-base-border-color)}.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-grey13);background-color:transparent}";
|
|
5262
5262
|
|
|
5263
5263
|
const TomSelectInputReadonly = function (_plugin_options) {
|
|
5264
5264
|
const self = this;
|
|
@@ -5318,6 +5318,8 @@ const StzhDropdown = class {
|
|
|
5318
5318
|
this.optgroupValueField = "value";
|
|
5319
5319
|
this.lockOptgroupOrder = undefined;
|
|
5320
5320
|
this.name = "";
|
|
5321
|
+
this.open = false;
|
|
5322
|
+
this.isOpen = false;
|
|
5321
5323
|
this.variant = "default";
|
|
5322
5324
|
this.size = "default";
|
|
5323
5325
|
this.disabled = false;
|
|
@@ -5421,6 +5423,14 @@ const StzhDropdown = class {
|
|
|
5421
5423
|
async loadItems(query) {
|
|
5422
5424
|
return this.tomSelect.load(query);
|
|
5423
5425
|
}
|
|
5426
|
+
/** Show dropdown popover */
|
|
5427
|
+
async show() {
|
|
5428
|
+
return this.tomSelect.open();
|
|
5429
|
+
}
|
|
5430
|
+
/** Hide dropdown popover */
|
|
5431
|
+
async hide() {
|
|
5432
|
+
return this.tomSelect.close();
|
|
5433
|
+
}
|
|
5424
5434
|
updateFilled() {
|
|
5425
5435
|
if (this._items.length > 0) {
|
|
5426
5436
|
this.rootElement.classList.add(CLASS_FILLED);
|
|
@@ -5440,6 +5450,9 @@ const StzhDropdown = class {
|
|
|
5440
5450
|
this.localization = await fetchTranslations(this.element, "dropdown");
|
|
5441
5451
|
}
|
|
5442
5452
|
}
|
|
5453
|
+
componentShouldUpdate(_newValue, _oldValue, prop) {
|
|
5454
|
+
return ["isOpen"].includes(prop) === false;
|
|
5455
|
+
}
|
|
5443
5456
|
async componentWillUpdate() {
|
|
5444
5457
|
if (this.tomSelect) {
|
|
5445
5458
|
this.tomSelect.destroy();
|
|
@@ -5607,11 +5620,13 @@ const StzhDropdown = class {
|
|
|
5607
5620
|
});
|
|
5608
5621
|
},
|
|
5609
5622
|
onDropdownOpen: () => {
|
|
5623
|
+
this.isOpen = true;
|
|
5610
5624
|
this.stzhOpen.emit({
|
|
5611
5625
|
component: "stzh-dropdown"
|
|
5612
5626
|
});
|
|
5613
5627
|
},
|
|
5614
5628
|
onDropdownClose: () => {
|
|
5629
|
+
this.isOpen = false;
|
|
5615
5630
|
this.stzhClose.emit({
|
|
5616
5631
|
component: "stzh-dropdown"
|
|
5617
5632
|
});
|
|
@@ -5679,6 +5694,9 @@ const StzhDropdown = class {
|
|
|
5679
5694
|
this.tomSelect.open();
|
|
5680
5695
|
});
|
|
5681
5696
|
}
|
|
5697
|
+
if (this.open) {
|
|
5698
|
+
this.show();
|
|
5699
|
+
}
|
|
5682
5700
|
}
|
|
5683
5701
|
disconnectedCallback() {
|
|
5684
5702
|
if (this.tomSelect) {
|
|
@@ -49319,6 +49319,437 @@ _ol_source_Vector_.Event = function(type, opt_feature) {
|
|
|
49319
49319
|
};
|
|
49320
49320
|
_ol_.inherits(_ol_source_Vector_.Event, _ol_events_Event_);
|
|
49321
49321
|
|
|
49322
|
+
var _ol_geom_flat_interpolate_ = {};
|
|
49323
|
+
|
|
49324
|
+
|
|
49325
|
+
/**
|
|
49326
|
+
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
|
49327
|
+
* @param {number} offset Offset.
|
|
49328
|
+
* @param {number} end End.
|
|
49329
|
+
* @param {number} stride Stride.
|
|
49330
|
+
* @param {number} fraction Fraction.
|
|
49331
|
+
* @param {Array.<number>=} opt_dest Destination.
|
|
49332
|
+
* @return {Array.<number>} Destination.
|
|
49333
|
+
*/
|
|
49334
|
+
_ol_geom_flat_interpolate_.lineString = function(flatCoordinates, offset, end, stride, fraction, opt_dest) {
|
|
49335
|
+
var pointX = NaN;
|
|
49336
|
+
var pointY = NaN;
|
|
49337
|
+
var n = (end - offset) / stride;
|
|
49338
|
+
if (n === 1) {
|
|
49339
|
+
pointX = flatCoordinates[offset];
|
|
49340
|
+
pointY = flatCoordinates[offset + 1];
|
|
49341
|
+
} else if (n == 2) {
|
|
49342
|
+
pointX = (1 - fraction) * flatCoordinates[offset] +
|
|
49343
|
+
fraction * flatCoordinates[offset + stride];
|
|
49344
|
+
pointY = (1 - fraction) * flatCoordinates[offset + 1] +
|
|
49345
|
+
fraction * flatCoordinates[offset + stride + 1];
|
|
49346
|
+
} else if (n !== 0) {
|
|
49347
|
+
var x1 = flatCoordinates[offset];
|
|
49348
|
+
var y1 = flatCoordinates[offset + 1];
|
|
49349
|
+
var length = 0;
|
|
49350
|
+
var cumulativeLengths = [0];
|
|
49351
|
+
var i;
|
|
49352
|
+
for (i = offset + stride; i < end; i += stride) {
|
|
49353
|
+
var x2 = flatCoordinates[i];
|
|
49354
|
+
var y2 = flatCoordinates[i + 1];
|
|
49355
|
+
length += Math.sqrt((x2 - x1) * (x2 - x1) + (y2 - y1) * (y2 - y1));
|
|
49356
|
+
cumulativeLengths.push(length);
|
|
49357
|
+
x1 = x2;
|
|
49358
|
+
y1 = y2;
|
|
49359
|
+
}
|
|
49360
|
+
var target = fraction * length;
|
|
49361
|
+
var index = _ol_array_.binarySearch(cumulativeLengths, target);
|
|
49362
|
+
if (index < 0) {
|
|
49363
|
+
var t = (target - cumulativeLengths[-index - 2]) /
|
|
49364
|
+
(cumulativeLengths[-index - 1] - cumulativeLengths[-index - 2]);
|
|
49365
|
+
var o = offset + (-index - 2) * stride;
|
|
49366
|
+
pointX = _ol_math_.lerp(
|
|
49367
|
+
flatCoordinates[o], flatCoordinates[o + stride], t);
|
|
49368
|
+
pointY = _ol_math_.lerp(
|
|
49369
|
+
flatCoordinates[o + 1], flatCoordinates[o + stride + 1], t);
|
|
49370
|
+
} else {
|
|
49371
|
+
pointX = flatCoordinates[offset + index * stride];
|
|
49372
|
+
pointY = flatCoordinates[offset + index * stride + 1];
|
|
49373
|
+
}
|
|
49374
|
+
}
|
|
49375
|
+
if (opt_dest) {
|
|
49376
|
+
opt_dest[0] = pointX;
|
|
49377
|
+
opt_dest[1] = pointY;
|
|
49378
|
+
return opt_dest;
|
|
49379
|
+
} else {
|
|
49380
|
+
return [pointX, pointY];
|
|
49381
|
+
}
|
|
49382
|
+
};
|
|
49383
|
+
|
|
49384
|
+
|
|
49385
|
+
/**
|
|
49386
|
+
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
|
49387
|
+
* @param {number} offset Offset.
|
|
49388
|
+
* @param {number} end End.
|
|
49389
|
+
* @param {number} stride Stride.
|
|
49390
|
+
* @param {number} m M.
|
|
49391
|
+
* @param {boolean} extrapolate Extrapolate.
|
|
49392
|
+
* @return {ol.Coordinate} Coordinate.
|
|
49393
|
+
*/
|
|
49394
|
+
_ol_geom_flat_interpolate_.lineStringCoordinateAtM = function(flatCoordinates, offset, end, stride, m, extrapolate) {
|
|
49395
|
+
if (end == offset) {
|
|
49396
|
+
return null;
|
|
49397
|
+
}
|
|
49398
|
+
var coordinate;
|
|
49399
|
+
if (m < flatCoordinates[offset + stride - 1]) {
|
|
49400
|
+
if (extrapolate) {
|
|
49401
|
+
coordinate = flatCoordinates.slice(offset, offset + stride);
|
|
49402
|
+
coordinate[stride - 1] = m;
|
|
49403
|
+
return coordinate;
|
|
49404
|
+
} else {
|
|
49405
|
+
return null;
|
|
49406
|
+
}
|
|
49407
|
+
} else if (flatCoordinates[end - 1] < m) {
|
|
49408
|
+
if (extrapolate) {
|
|
49409
|
+
coordinate = flatCoordinates.slice(end - stride, end);
|
|
49410
|
+
coordinate[stride - 1] = m;
|
|
49411
|
+
return coordinate;
|
|
49412
|
+
} else {
|
|
49413
|
+
return null;
|
|
49414
|
+
}
|
|
49415
|
+
}
|
|
49416
|
+
// FIXME use O(1) search
|
|
49417
|
+
if (m == flatCoordinates[offset + stride - 1]) {
|
|
49418
|
+
return flatCoordinates.slice(offset, offset + stride);
|
|
49419
|
+
}
|
|
49420
|
+
var lo = offset / stride;
|
|
49421
|
+
var hi = end / stride;
|
|
49422
|
+
while (lo < hi) {
|
|
49423
|
+
var mid = (lo + hi) >> 1;
|
|
49424
|
+
if (m < flatCoordinates[(mid + 1) * stride - 1]) {
|
|
49425
|
+
hi = mid;
|
|
49426
|
+
} else {
|
|
49427
|
+
lo = mid + 1;
|
|
49428
|
+
}
|
|
49429
|
+
}
|
|
49430
|
+
var m0 = flatCoordinates[lo * stride - 1];
|
|
49431
|
+
if (m == m0) {
|
|
49432
|
+
return flatCoordinates.slice((lo - 1) * stride, (lo - 1) * stride + stride);
|
|
49433
|
+
}
|
|
49434
|
+
var m1 = flatCoordinates[(lo + 1) * stride - 1];
|
|
49435
|
+
var t = (m - m0) / (m1 - m0);
|
|
49436
|
+
coordinate = [];
|
|
49437
|
+
var i;
|
|
49438
|
+
for (i = 0; i < stride - 1; ++i) {
|
|
49439
|
+
coordinate.push(_ol_math_.lerp(flatCoordinates[(lo - 1) * stride + i],
|
|
49440
|
+
flatCoordinates[lo * stride + i], t));
|
|
49441
|
+
}
|
|
49442
|
+
coordinate.push(m);
|
|
49443
|
+
return coordinate;
|
|
49444
|
+
};
|
|
49445
|
+
|
|
49446
|
+
|
|
49447
|
+
/**
|
|
49448
|
+
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
|
49449
|
+
* @param {number} offset Offset.
|
|
49450
|
+
* @param {Array.<number>} ends Ends.
|
|
49451
|
+
* @param {number} stride Stride.
|
|
49452
|
+
* @param {number} m M.
|
|
49453
|
+
* @param {boolean} extrapolate Extrapolate.
|
|
49454
|
+
* @param {boolean} interpolate Interpolate.
|
|
49455
|
+
* @return {ol.Coordinate} Coordinate.
|
|
49456
|
+
*/
|
|
49457
|
+
_ol_geom_flat_interpolate_.lineStringsCoordinateAtM = function(
|
|
49458
|
+
flatCoordinates, offset, ends, stride, m, extrapolate, interpolate) {
|
|
49459
|
+
if (interpolate) {
|
|
49460
|
+
return _ol_geom_flat_interpolate_.lineStringCoordinateAtM(
|
|
49461
|
+
flatCoordinates, offset, ends[ends.length - 1], stride, m, extrapolate);
|
|
49462
|
+
}
|
|
49463
|
+
var coordinate;
|
|
49464
|
+
if (m < flatCoordinates[stride - 1]) {
|
|
49465
|
+
if (extrapolate) {
|
|
49466
|
+
coordinate = flatCoordinates.slice(0, stride);
|
|
49467
|
+
coordinate[stride - 1] = m;
|
|
49468
|
+
return coordinate;
|
|
49469
|
+
} else {
|
|
49470
|
+
return null;
|
|
49471
|
+
}
|
|
49472
|
+
}
|
|
49473
|
+
if (flatCoordinates[flatCoordinates.length - 1] < m) {
|
|
49474
|
+
if (extrapolate) {
|
|
49475
|
+
coordinate = flatCoordinates.slice(flatCoordinates.length - stride);
|
|
49476
|
+
coordinate[stride - 1] = m;
|
|
49477
|
+
return coordinate;
|
|
49478
|
+
} else {
|
|
49479
|
+
return null;
|
|
49480
|
+
}
|
|
49481
|
+
}
|
|
49482
|
+
var i, ii;
|
|
49483
|
+
for (i = 0, ii = ends.length; i < ii; ++i) {
|
|
49484
|
+
var end = ends[i];
|
|
49485
|
+
if (offset == end) {
|
|
49486
|
+
continue;
|
|
49487
|
+
}
|
|
49488
|
+
if (m < flatCoordinates[offset + stride - 1]) {
|
|
49489
|
+
return null;
|
|
49490
|
+
} else if (m <= flatCoordinates[end - 1]) {
|
|
49491
|
+
return _ol_geom_flat_interpolate_.lineStringCoordinateAtM(
|
|
49492
|
+
flatCoordinates, offset, end, stride, m, false);
|
|
49493
|
+
}
|
|
49494
|
+
offset = end;
|
|
49495
|
+
}
|
|
49496
|
+
return null;
|
|
49497
|
+
};
|
|
49498
|
+
|
|
49499
|
+
/**
|
|
49500
|
+
* @classdesc
|
|
49501
|
+
* Linestring geometry.
|
|
49502
|
+
*
|
|
49503
|
+
* @constructor
|
|
49504
|
+
* @extends {ol.geom.SimpleGeometry}
|
|
49505
|
+
* @param {Array.<ol.Coordinate>} coordinates Coordinates.
|
|
49506
|
+
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
|
49507
|
+
* @api
|
|
49508
|
+
*/
|
|
49509
|
+
var _ol_geom_LineString_ = function(coordinates, opt_layout) {
|
|
49510
|
+
|
|
49511
|
+
_ol_geom_SimpleGeometry_.call(this);
|
|
49512
|
+
|
|
49513
|
+
/**
|
|
49514
|
+
* @private
|
|
49515
|
+
* @type {ol.Coordinate}
|
|
49516
|
+
*/
|
|
49517
|
+
this.flatMidpoint_ = null;
|
|
49518
|
+
|
|
49519
|
+
/**
|
|
49520
|
+
* @private
|
|
49521
|
+
* @type {number}
|
|
49522
|
+
*/
|
|
49523
|
+
this.flatMidpointRevision_ = -1;
|
|
49524
|
+
|
|
49525
|
+
/**
|
|
49526
|
+
* @private
|
|
49527
|
+
* @type {number}
|
|
49528
|
+
*/
|
|
49529
|
+
this.maxDelta_ = -1;
|
|
49530
|
+
|
|
49531
|
+
/**
|
|
49532
|
+
* @private
|
|
49533
|
+
* @type {number}
|
|
49534
|
+
*/
|
|
49535
|
+
this.maxDeltaRevision_ = -1;
|
|
49536
|
+
|
|
49537
|
+
this.setCoordinates(coordinates, opt_layout);
|
|
49538
|
+
|
|
49539
|
+
};
|
|
49540
|
+
|
|
49541
|
+
_ol_.inherits(_ol_geom_LineString_, _ol_geom_SimpleGeometry_);
|
|
49542
|
+
|
|
49543
|
+
|
|
49544
|
+
/**
|
|
49545
|
+
* Append the passed coordinate to the coordinates of the linestring.
|
|
49546
|
+
* @param {ol.Coordinate} coordinate Coordinate.
|
|
49547
|
+
* @api
|
|
49548
|
+
*/
|
|
49549
|
+
_ol_geom_LineString_.prototype.appendCoordinate = function(coordinate) {
|
|
49550
|
+
if (!this.flatCoordinates) {
|
|
49551
|
+
this.flatCoordinates = coordinate.slice();
|
|
49552
|
+
} else {
|
|
49553
|
+
_ol_array_.extend(this.flatCoordinates, coordinate);
|
|
49554
|
+
}
|
|
49555
|
+
this.changed();
|
|
49556
|
+
};
|
|
49557
|
+
|
|
49558
|
+
|
|
49559
|
+
/**
|
|
49560
|
+
* Make a complete copy of the geometry.
|
|
49561
|
+
* @return {!ol.geom.LineString} Clone.
|
|
49562
|
+
* @override
|
|
49563
|
+
* @api
|
|
49564
|
+
*/
|
|
49565
|
+
_ol_geom_LineString_.prototype.clone = function() {
|
|
49566
|
+
var lineString = new _ol_geom_LineString_(null);
|
|
49567
|
+
lineString.setFlatCoordinates(this.layout, this.flatCoordinates.slice());
|
|
49568
|
+
return lineString;
|
|
49569
|
+
};
|
|
49570
|
+
|
|
49571
|
+
|
|
49572
|
+
/**
|
|
49573
|
+
* @inheritDoc
|
|
49574
|
+
*/
|
|
49575
|
+
_ol_geom_LineString_.prototype.closestPointXY = function(x, y, closestPoint, minSquaredDistance) {
|
|
49576
|
+
if (minSquaredDistance <
|
|
49577
|
+
_ol_extent_.closestSquaredDistanceXY(this.getExtent(), x, y)) {
|
|
49578
|
+
return minSquaredDistance;
|
|
49579
|
+
}
|
|
49580
|
+
if (this.maxDeltaRevision_ != this.getRevision()) {
|
|
49581
|
+
this.maxDelta_ = Math.sqrt(_ol_geom_flat_closest_.getMaxSquaredDelta(
|
|
49582
|
+
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride, 0));
|
|
49583
|
+
this.maxDeltaRevision_ = this.getRevision();
|
|
49584
|
+
}
|
|
49585
|
+
return _ol_geom_flat_closest_.getClosestPoint(
|
|
49586
|
+
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
|
|
49587
|
+
this.maxDelta_, false, x, y, closestPoint, minSquaredDistance);
|
|
49588
|
+
};
|
|
49589
|
+
|
|
49590
|
+
|
|
49591
|
+
/**
|
|
49592
|
+
* Iterate over each segment, calling the provided callback.
|
|
49593
|
+
* If the callback returns a truthy value the function returns that
|
|
49594
|
+
* value immediately. Otherwise the function returns `false`.
|
|
49595
|
+
*
|
|
49596
|
+
* @param {function(this: S, ol.Coordinate, ol.Coordinate): T} callback Function
|
|
49597
|
+
* called for each segment.
|
|
49598
|
+
* @param {S=} opt_this The object to be used as the value of 'this'
|
|
49599
|
+
* within callback.
|
|
49600
|
+
* @return {T|boolean} Value.
|
|
49601
|
+
* @template T,S
|
|
49602
|
+
* @api
|
|
49603
|
+
*/
|
|
49604
|
+
_ol_geom_LineString_.prototype.forEachSegment = function(callback, opt_this) {
|
|
49605
|
+
return _ol_geom_flat_segments_.forEach(this.flatCoordinates, 0,
|
|
49606
|
+
this.flatCoordinates.length, this.stride, callback, opt_this);
|
|
49607
|
+
};
|
|
49608
|
+
|
|
49609
|
+
|
|
49610
|
+
/**
|
|
49611
|
+
* Returns the coordinate at `m` using linear interpolation, or `null` if no
|
|
49612
|
+
* such coordinate exists.
|
|
49613
|
+
*
|
|
49614
|
+
* `opt_extrapolate` controls extrapolation beyond the range of Ms in the
|
|
49615
|
+
* MultiLineString. If `opt_extrapolate` is `true` then Ms less than the first
|
|
49616
|
+
* M will return the first coordinate and Ms greater than the last M will
|
|
49617
|
+
* return the last coordinate.
|
|
49618
|
+
*
|
|
49619
|
+
* @param {number} m M.
|
|
49620
|
+
* @param {boolean=} opt_extrapolate Extrapolate. Default is `false`.
|
|
49621
|
+
* @return {ol.Coordinate} Coordinate.
|
|
49622
|
+
* @api
|
|
49623
|
+
*/
|
|
49624
|
+
_ol_geom_LineString_.prototype.getCoordinateAtM = function(m, opt_extrapolate) {
|
|
49625
|
+
if (this.layout != _ol_geom_GeometryLayout_.XYM &&
|
|
49626
|
+
this.layout != _ol_geom_GeometryLayout_.XYZM) {
|
|
49627
|
+
return null;
|
|
49628
|
+
}
|
|
49629
|
+
var extrapolate = opt_extrapolate !== undefined ? opt_extrapolate : false;
|
|
49630
|
+
return _ol_geom_flat_interpolate_.lineStringCoordinateAtM(this.flatCoordinates, 0,
|
|
49631
|
+
this.flatCoordinates.length, this.stride, m, extrapolate);
|
|
49632
|
+
};
|
|
49633
|
+
|
|
49634
|
+
|
|
49635
|
+
/**
|
|
49636
|
+
* Return the coordinates of the linestring.
|
|
49637
|
+
* @return {Array.<ol.Coordinate>} Coordinates.
|
|
49638
|
+
* @override
|
|
49639
|
+
* @api
|
|
49640
|
+
*/
|
|
49641
|
+
_ol_geom_LineString_.prototype.getCoordinates = function() {
|
|
49642
|
+
return _ol_geom_flat_inflate_.coordinates(
|
|
49643
|
+
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride);
|
|
49644
|
+
};
|
|
49645
|
+
|
|
49646
|
+
|
|
49647
|
+
/**
|
|
49648
|
+
* Return the coordinate at the provided fraction along the linestring.
|
|
49649
|
+
* The `fraction` is a number between 0 and 1, where 0 is the start of the
|
|
49650
|
+
* linestring and 1 is the end.
|
|
49651
|
+
* @param {number} fraction Fraction.
|
|
49652
|
+
* @param {ol.Coordinate=} opt_dest Optional coordinate whose values will
|
|
49653
|
+
* be modified. If not provided, a new coordinate will be returned.
|
|
49654
|
+
* @return {ol.Coordinate} Coordinate of the interpolated point.
|
|
49655
|
+
* @api
|
|
49656
|
+
*/
|
|
49657
|
+
_ol_geom_LineString_.prototype.getCoordinateAt = function(fraction, opt_dest) {
|
|
49658
|
+
return _ol_geom_flat_interpolate_.lineString(
|
|
49659
|
+
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
|
|
49660
|
+
fraction, opt_dest);
|
|
49661
|
+
};
|
|
49662
|
+
|
|
49663
|
+
|
|
49664
|
+
/**
|
|
49665
|
+
* Return the length of the linestring on projected plane.
|
|
49666
|
+
* @return {number} Length (on projected plane).
|
|
49667
|
+
* @api
|
|
49668
|
+
*/
|
|
49669
|
+
_ol_geom_LineString_.prototype.getLength = function() {
|
|
49670
|
+
return _ol_geom_flat_length_.lineString(
|
|
49671
|
+
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride);
|
|
49672
|
+
};
|
|
49673
|
+
|
|
49674
|
+
|
|
49675
|
+
/**
|
|
49676
|
+
* @return {Array.<number>} Flat midpoint.
|
|
49677
|
+
*/
|
|
49678
|
+
_ol_geom_LineString_.prototype.getFlatMidpoint = function() {
|
|
49679
|
+
if (this.flatMidpointRevision_ != this.getRevision()) {
|
|
49680
|
+
this.flatMidpoint_ = this.getCoordinateAt(0.5, this.flatMidpoint_);
|
|
49681
|
+
this.flatMidpointRevision_ = this.getRevision();
|
|
49682
|
+
}
|
|
49683
|
+
return this.flatMidpoint_;
|
|
49684
|
+
};
|
|
49685
|
+
|
|
49686
|
+
|
|
49687
|
+
/**
|
|
49688
|
+
* @inheritDoc
|
|
49689
|
+
*/
|
|
49690
|
+
_ol_geom_LineString_.prototype.getSimplifiedGeometryInternal = function(squaredTolerance) {
|
|
49691
|
+
var simplifiedFlatCoordinates = [];
|
|
49692
|
+
simplifiedFlatCoordinates.length = _ol_geom_flat_simplify_.douglasPeucker(
|
|
49693
|
+
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
|
|
49694
|
+
squaredTolerance, simplifiedFlatCoordinates, 0);
|
|
49695
|
+
var simplifiedLineString = new _ol_geom_LineString_(null);
|
|
49696
|
+
simplifiedLineString.setFlatCoordinates(
|
|
49697
|
+
_ol_geom_GeometryLayout_.XY, simplifiedFlatCoordinates);
|
|
49698
|
+
return simplifiedLineString;
|
|
49699
|
+
};
|
|
49700
|
+
|
|
49701
|
+
|
|
49702
|
+
/**
|
|
49703
|
+
* @inheritDoc
|
|
49704
|
+
* @api
|
|
49705
|
+
*/
|
|
49706
|
+
_ol_geom_LineString_.prototype.getType = function() {
|
|
49707
|
+
return _ol_geom_GeometryType_.LINE_STRING;
|
|
49708
|
+
};
|
|
49709
|
+
|
|
49710
|
+
|
|
49711
|
+
/**
|
|
49712
|
+
* @inheritDoc
|
|
49713
|
+
* @api
|
|
49714
|
+
*/
|
|
49715
|
+
_ol_geom_LineString_.prototype.intersectsExtent = function(extent) {
|
|
49716
|
+
return _ol_geom_flat_intersectsextent_.lineString(
|
|
49717
|
+
this.flatCoordinates, 0, this.flatCoordinates.length, this.stride,
|
|
49718
|
+
extent);
|
|
49719
|
+
};
|
|
49720
|
+
|
|
49721
|
+
|
|
49722
|
+
/**
|
|
49723
|
+
* Set the coordinates of the linestring.
|
|
49724
|
+
* @param {Array.<ol.Coordinate>} coordinates Coordinates.
|
|
49725
|
+
* @param {ol.geom.GeometryLayout=} opt_layout Layout.
|
|
49726
|
+
* @override
|
|
49727
|
+
* @api
|
|
49728
|
+
*/
|
|
49729
|
+
_ol_geom_LineString_.prototype.setCoordinates = function(coordinates, opt_layout) {
|
|
49730
|
+
if (!coordinates) {
|
|
49731
|
+
this.setFlatCoordinates(_ol_geom_GeometryLayout_.XY, null);
|
|
49732
|
+
} else {
|
|
49733
|
+
this.setLayout(opt_layout, coordinates, 1);
|
|
49734
|
+
if (!this.flatCoordinates) {
|
|
49735
|
+
this.flatCoordinates = [];
|
|
49736
|
+
}
|
|
49737
|
+
this.flatCoordinates.length = _ol_geom_flat_deflate_.coordinates(
|
|
49738
|
+
this.flatCoordinates, 0, coordinates, this.stride);
|
|
49739
|
+
this.changed();
|
|
49740
|
+
}
|
|
49741
|
+
};
|
|
49742
|
+
|
|
49743
|
+
|
|
49744
|
+
/**
|
|
49745
|
+
* @param {ol.geom.GeometryLayout} layout Layout.
|
|
49746
|
+
* @param {Array.<number>} flatCoordinates Flat coordinates.
|
|
49747
|
+
*/
|
|
49748
|
+
_ol_geom_LineString_.prototype.setFlatCoordinates = function(layout, flatCoordinates) {
|
|
49749
|
+
this.setFlatCoordinatesInternal(layout, flatCoordinates);
|
|
49750
|
+
this.changed();
|
|
49751
|
+
};
|
|
49752
|
+
|
|
49322
49753
|
/**
|
|
49323
49754
|
* @enum {string}
|
|
49324
49755
|
*/
|
|
@@ -50569,7 +51000,7 @@ const Compass = `<svg width="16" height="24" viewBox="0 0 16 24" fill="none" xml
|
|
|
50569
51000
|
</svg>
|
|
50570
51001
|
`;
|
|
50571
51002
|
|
|
50572
|
-
const stzhOlmapCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-olmap{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:relative;width:100%;height:18.75rem}stzh-olmap[hidden]{display:none}stzh-olmap *,stzh-olmap *::before,stzh-olmap *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}@media screen and (min-width: 800px){stzh-olmap{height:25rem}}.stzh-olmap{}.stzh-olmap__map{position:absolute;width:100%;height:100%;top:0;left:0}.stzh-olmap__map--print{margin-top:var(--stzh-space-xxlarge);max-width:100%;height:auto}.stzh-olmap__print-image{display:block;max-width:100%}.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom-in,.stzh-olmap .ol-zoom-out,.stzh-olmap .ol-rotate-reset{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-deca-font-size);line-height:var(--stzh-font-deca-text-line-height);letter-spacing:var(--stzh-font-deca-text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;border-radius:0;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transition:all var(--stzh-base-transition-animation-speed) ease;transition:all var(--stzh-base-transition-animation-speed) ease;background-color:var(--stzh-color-white);width:var(--stzh-form-input-small-height);height:var(--stzh-form-input-small-height);cursor:pointer}.stzh-olmap .ol-print stzh-icon,.stzh-olmap .ol-location stzh-icon,.stzh-olmap .ol-zoom-in stzh-icon,.stzh-olmap .ol-zoom-out stzh-icon,.stzh-olmap .ol-rotate-reset stzh-icon{--size:var(--stzh-icon-size-small)}.stzh-olmap .ol-print:hover,.stzh-olmap .ol-location:hover,.stzh-olmap .ol-zoom-in:hover,.stzh-olmap .ol-zoom-out:hover,.stzh-olmap .ol-rotate-reset:hover{color:var(--stzh-color-white);background:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{position:absolute;right:var(--stzh-space-xsmall);bottom:var(--stzh-space-xsmall);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-form-input-border-radius)}@media screen and (min-width: 800px){.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{right:var(--stzh-space-large);bottom:var(--stzh-space-large)}}.stzh-olmap .ol-layer{left:var(--stzh-space-xsmall);right:auto;padding:var(--stzh-space-xxxsmall);border:none;cursor:pointer}@media screen and (min-width: 800px){.stzh-olmap .ol-layer{left:var(--stzh-space-large)}}.stzh-olmap .ol-layer__thumbnail{width:4.75rem;height:4.75rem;display:block}.stzh-olmap .ol-layer__text{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height);position:absolute;bottom:0;left:0;right:0;text-align:left;background-color:var(--stzh-color-white);color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding-left:calc(var(--stzh-space-xxxsmall) + 0.0625rem);padding-right:calc(var(--stzh-space-xxxsmall) + 0.0625rem)}.stzh-olmap .ol-layer:hover .ol-layer__text{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-location{margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}.stzh-olmap .ol-location
|
|
51003
|
+
const stzhOlmapCss = ":host{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}stzh-olmap{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:relative;width:100%;height:18.75rem}stzh-olmap[hidden]{display:none}stzh-olmap *,stzh-olmap *::before,stzh-olmap *::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}@media screen and (min-width: 800px){stzh-olmap{height:25rem}}.stzh-olmap{}.stzh-olmap__map{position:absolute;width:100%;height:100%;top:0;left:0}.stzh-olmap__map--print{margin-top:var(--stzh-space-xxlarge);max-width:100%;height:auto}.stzh-olmap__print-image{display:block;max-width:100%}.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom-in,.stzh-olmap .ol-zoom-out,.stzh-olmap .ol-rotate-reset{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-deca-font-size);line-height:var(--stzh-font-deca-text-line-height);letter-spacing:var(--stzh-font-deca-text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border:none;border-radius:0;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));-webkit-transition:all var(--stzh-base-transition-animation-speed) ease;transition:all var(--stzh-base-transition-animation-speed) ease;background-color:var(--stzh-color-white);width:var(--stzh-form-input-small-height);height:var(--stzh-form-input-small-height);cursor:pointer}.stzh-olmap .ol-print stzh-icon,.stzh-olmap .ol-location stzh-icon,.stzh-olmap .ol-zoom-in stzh-icon,.stzh-olmap .ol-zoom-out stzh-icon,.stzh-olmap .ol-rotate-reset stzh-icon{--size:var(--stzh-icon-size-small)}.stzh-olmap .ol-print:hover,.stzh-olmap .ol-location:hover,.stzh-olmap .ol-zoom-in:hover,.stzh-olmap .ol-zoom-out:hover,.stzh-olmap .ol-rotate-reset:hover{color:var(--stzh-color-white);background:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{position:absolute;right:var(--stzh-space-xsmall);bottom:var(--stzh-space-xsmall);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border-radius:var(--stzh-form-input-border-radius)}@media screen and (min-width: 800px){.stzh-olmap .ol-layer,.stzh-olmap .ol-print,.stzh-olmap .ol-location,.stzh-olmap .ol-zoom,.stzh-olmap .ol-rotate-reset{right:var(--stzh-space-large);bottom:var(--stzh-space-large)}}.stzh-olmap .ol-layer{left:var(--stzh-space-xsmall);right:auto;padding:var(--stzh-space-xxxsmall);border:none;cursor:pointer}@media screen and (min-width: 800px){.stzh-olmap .ol-layer{left:var(--stzh-space-large)}}.stzh-olmap .ol-layer__thumbnail{width:4.75rem;height:4.75rem;display:block}.stzh-olmap .ol-layer__text{font-family:var(--stzh-font-family-light);font-weight:var(--stzh-font-weight-light);font-style:normal;font-size:var(--stzh-font-pico-font-size);line-height:var(--stzh-font-pico-text-line-height);position:absolute;bottom:0;left:0;right:0;text-align:left;background-color:var(--stzh-color-white);color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding-left:calc(var(--stzh-space-xxxsmall) + 0.0625rem);padding-right:calc(var(--stzh-space-xxxsmall) + 0.0625rem)}.stzh-olmap .ol-layer:hover .ol-layer__text{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-olmap .ol-location{margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}.stzh-olmap .ol-location:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background:var(--stzh-color-white);border-color:var(--stzh-color-white)}.stzh-olmap .ol-location.active{background:var(--stzh-color-primary, var(--stzh-color-zueriblue));border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));color:var(--stzh-color-white)}.stzh-olmap .ol-zoom{margin-bottom:calc(var(--stzh-form-input-small-height) + var(--stzh-space-xsmall));background-color:var(--stzh-color-grey13)}.stzh-olmap .ol-zoom-in{margin-bottom:0.0625rem}.stzh-olmap .ol-rotate-reset{width:var(--stzh-space-xxlarge);height:var(--stzh-space-xxlarge);border-radius:50%;-webkit-box-shadow:none;box-shadow:none;border:0.0625rem solid var(--stzh-color-grey13);margin-right:calc((var(--stzh-form-input-small-height) - var(--stzh-space-xxlarge)) / 2);margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}.stzh-olmap .ol-rotate-reset span{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-olmap .ol-rotate-reset svg{width:0.99rem;height:1.32188rem}.stzh-olmap .ol-hidden .ol-rotate-reset{opacity:0}.stzh-olmap .ol-compass{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.stzh-olmap .ol-scale-line{position:absolute;bottom:var(--stzh-space-xsmall);margin-left:calc(4.75rem + var(--stzh-space-xxxsmall) + var(--stzh-space-xsmall));left:var(--stzh-space-xsmall)}@media screen and (min-width: 800px){.stzh-olmap .ol-scale-line{bottom:var(--stzh-space-large);left:var(--stzh-space-large)}}.stzh-olmap .ol-scale-line-inner{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);position:relative;color:var(--stzh-color-black);text-align:center;-webkit-filter:drop-shadow(-0.0625rem 0px 0px white) drop-shadow(0.0625rem 0px 0px white) drop-shadow(0px -0.0625rem 0px white) drop-shadow(0px 0.0625rem 0px white);filter:drop-shadow(-0.0625rem 0px 0px white) drop-shadow(0.0625rem 0px 0px white) drop-shadow(0px -0.0625rem 0px white) drop-shadow(0px 0.0625rem 0px white)}.stzh-olmap .ol-scale-line-inner::after{content:\"\";position:absolute;bottom:0;left:0;width:100%;height:0.28125rem;border:0.0625rem solid var(--stzh-color-black);border-top:0}.stzh-olmap .ol-attribution{display:none}.stzh-olmap--has-no-layer-control .ol-scale-line{margin-left:0}.stzh-olmap--has-no-print-control .ol-zoom{margin-bottom:0}.stzh-olmap--has-no-print-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 2 + var(--stzh-space-xsmall))}.stzh-olmap--has-location-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 4 + var(--stzh-space-xsmall) * 3)}.stzh-olmap--has-location-control.stzh-olmap--has-no-print-control .ol-location{margin-bottom:calc(var(--stzh-form-input-small-height) * 2 + var(--stzh-space-xsmall))}.stzh-olmap--has-location-control.stzh-olmap--has-no-print-control .ol-rotate-reset{margin-bottom:calc(var(--stzh-form-input-small-height) * 3 + var(--stzh-space-xsmall) * 2)}";
|
|
50573
51004
|
|
|
50574
51005
|
window.proj4 = proj4;
|
|
50575
51006
|
window.proj4.defs("EPSG:2056", "+proj=somerc +lat_0=46.95240555555556 +lon_0=7.439583333333333 +k_0=1 +x_0=2600000 +y_0=1200000 +ellps=bessel +towgs84=674.374,15.056,405.346,0,0,0,0 +units=m +no_defs");
|
|
@@ -50963,6 +51394,16 @@ const StzhOlmap = class {
|
|
|
50963
51394
|
this.geolocation.setTracking(false);
|
|
50964
51395
|
}
|
|
50965
51396
|
}
|
|
51397
|
+
/** Get distance between two points in meters */
|
|
51398
|
+
async getDistance(startCoords, endCoords) {
|
|
51399
|
+
const line = new _ol_geom_LineString_([
|
|
51400
|
+
startCoords, endCoords
|
|
51401
|
+
]);
|
|
51402
|
+
const length = _ol_Sphere_.getLength(line, {
|
|
51403
|
+
projection: this.map.getView().getProjection()
|
|
51404
|
+
});
|
|
51405
|
+
return length;
|
|
51406
|
+
}
|
|
50966
51407
|
handleLoad() {
|
|
50967
51408
|
if (this.map) {
|
|
50968
51409
|
requestAnimationFrame(() => {
|