inviton-powerduck 0.0.173 → 0.0.174

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.
@@ -9,6 +9,7 @@ import DateUtils from '../../../../common/utils/date-utils';
9
9
  import TemporalUtils from '../../../../common/utils/temporal-utils';
10
10
  import DaterangePickerConfig from './daterangepicker-config';
11
11
  import './daterangepicker.css';
12
+ import '../../../../app/css/input-effects.css';
12
13
  import { utcEpochMilliseconds } from '../../../../common/extensions/temporal-extensions';
13
14
  import { globalState } from '../../../../app/global-state';
14
15
 
@@ -2086,23 +2087,31 @@ import { globalState } from '../../../../app/global-state';
2086
2087
  return;
2087
2088
  }
2088
2089
 
2090
+ let afterAnimFired = false
2089
2091
  const afterAnim = function () {
2092
+ if (afterAnimFired) {
2093
+ return;
2094
+ }
2095
+
2096
+ afterAnimFired = true;
2097
+ box.hide();
2090
2098
  $(self).data('date-picker-opened', false);
2091
2099
  $(self).trigger('datepicker-closed', {
2092
2100
  relatedTarget: box,
2093
2101
  });
2102
+ box.removeClass('pd-dropdown-open-animation pd-dropdown-open-animation-above pd-dropdown-close-animation pd-dropdown-close-animation-above');
2094
2103
  };
2095
2104
  if (opt.customCloseAnimation) {
2096
2105
  opt.customCloseAnimation.call(box.get(0), afterAnim);
2097
2106
  } else {
2098
2107
  box.removeClass('pd-dropdown-open-animation pd-dropdown-open-animation-above pd-dropdown-close-animation pd-dropdown-close-animation-above');
2099
2108
  box[0].offsetWidth; // reflow
2100
- box.addClass('pd-dropdown-close-animation');
2101
2109
 
2102
- box.one('animationend', function () {
2103
- box.hide();
2104
- afterAnim();
2105
- box.removeClass('pd-dropdown-open-animation pd-dropdown-open-animation-above pd-dropdown-close-animation pd-dropdown-close-animation-above');
2110
+ box.addClass('pd-dropdown-close-animation');
2111
+ const timeout = setTimeout(afterAnim, 450)
2112
+ box.one('animationend', () => {
2113
+ clearTimeout(timeout)
2114
+ afterAnim()
2106
2115
  });
2107
2116
  }
2108
2117
 
@@ -183,7 +183,9 @@ export class OpenStreetMapComponent extends TsxComponent<OpenStreetMapArgs> impl
183
183
  @Watch('geoJSON')
184
184
  onGeoJsonChanged () {
185
185
  if (this.geoJSONClustering) {
186
- this.initCluster();
186
+ this.waitForLeaflet().then(() => {
187
+ this.initCluster()
188
+ })
187
189
  }
188
190
  }
189
191
 
@@ -1,6 +1,6 @@
1
- export const SKILIFT_SVG: string = `
2
- <svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000" preserveAspectRatio="xMidYMid meet">
3
- <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)" fill="currentColor" stroke="none">
4
- <path d="M3911 4254 l-1153 -354 -40 34 c-77 66 -211 76 -290 20 -57 -40 -107 -107 -114 -153 l-6 -38 -1127 -345 -1126 -345 -3 -103 c-2 -94 -1 -102 15 -98 10 3 529 161 1154 353 l1135 347 43 -28 42 -29 -5 -55 c-2 -30 -21 -279 -42 -552 l-38 -498 -360 0 c-200 0 -390 -5 -426 -11 -173 -27 -319 -153 -371 -320 -18 -56 -19 -99 -19 -594 0 -495 1 -538 19 -594 50 -161 183 -281 350 -317 98 -20 1924 -20 2022 0 167 36 300 156 350 317 18 56 19 99 19 588 0 444 -2 536 -16 586 -44 170 -197 307 -374 335 -36 5 -227 10 -426 10 l-360 0 -38 498 c-21 273 -40 522 -43 552 -5 53 -4 56 25 73 40 23 72 69 93 131 l17 49 153 48 c85 26 309 95 499 153 852 260 1595 488 1598 490 1 2 1 48 0 103 l-3 100 -1154 -353z m-1913 -2666 l2 -358 -260 0 -260 0 0 353 c0 195 3 357 7 361 4 3 119 5 257 4 l251 -3 3 -357z m820 0 l2 -358 -260 0 -260 0 0 353 c0 195 3 357 7 361 4 3 119 5 257 4 l251 -3 3 -357z m820 0 l2 -358 -260 0 -260 0 0 353 c0 195 3 357 7 361 4 3 119 5 257 4 l251 -3 3 -357z"/>
5
- </g>
6
- </svg>`;
1
+ export const SKILIFT_SVG: string = `
2
+ <svg version="1.0" xmlns="http://www.w3.org/2000/svg" width="512.000000pt" height="512.000000pt" viewBox="0 0 512.000000 512.000000" preserveAspectRatio="xMidYMid meet">
3
+ <g transform="translate(0.000000,512.000000) scale(0.100000,-0.100000)" fill="currentColor" stroke="none">
4
+ <path d="M3911 4254 l-1153 -354 -40 34 c-77 66 -211 76 -290 20 -57 -40 -107 -107 -114 -153 l-6 -38 -1127 -345 -1126 -345 -3 -103 c-2 -94 -1 -102 15 -98 10 3 529 161 1154 353 l1135 347 43 -28 42 -29 -5 -55 c-2 -30 -21 -279 -42 -552 l-38 -498 -360 0 c-200 0 -390 -5 -426 -11 -173 -27 -319 -153 -371 -320 -18 -56 -19 -99 -19 -594 0 -495 1 -538 19 -594 50 -161 183 -281 350 -317 98 -20 1924 -20 2022 0 167 36 300 156 350 317 18 56 19 99 19 588 0 444 -2 536 -16 586 -44 170 -197 307 -374 335 -36 5 -227 10 -426 10 l-360 0 -38 498 c-21 273 -40 522 -43 552 -5 53 -4 56 25 73 40 23 72 69 93 131 l17 49 153 48 c85 26 309 95 499 153 852 260 1595 488 1598 490 1 2 1 48 0 103 l-3 100 -1154 -353z m-1913 -2666 l2 -358 -260 0 -260 0 0 353 c0 195 3 357 7 361 4 3 119 5 257 4 l251 -3 3 -357z m820 0 l2 -358 -260 0 -260 0 0 353 c0 195 3 357 7 361 4 3 119 5 257 4 l251 -3 3 -357z m820 0 l2 -358 -260 0 -260 0 0 353 c0 195 3 357 7 361 4 3 119 5 257 4 l251 -3 3 -357z"/>
5
+ </g>
6
+ </svg>`;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "inviton-powerduck",
3
3
  "type": "module",
4
- "version": "0.0.173",
4
+ "version": "0.0.174",
5
5
  "files": [
6
6
  "app/",
7
7
  "common/",