@wcardinal/wcardinal-ui 0.398.0 → 0.400.0

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 (200) hide show
  1. package/dist/types/wcardinal/ui/d-base-state-set-impl.d.ts +5 -0
  2. package/dist/types/wcardinal/ui/d-base-state-set.d.ts +4 -0
  3. package/dist/types/wcardinal/ui/d-base-state.d.ts +1 -0
  4. package/dist/types/wcardinal/ui/d-base.d.ts +13 -1
  5. package/dist/types/wcardinal/ui/d-button-color.d.ts +0 -3
  6. package/dist/types/wcardinal/ui/d-image-base-theme-wrapper-other.d.ts +19 -0
  7. package/dist/types/wcardinal/ui/d-image-base-theme-wrapper-secondary.d.ts +3 -1
  8. package/dist/types/wcardinal/ui/d-image-base-theme-wrapper-tertiary.d.ts +3 -1
  9. package/dist/types/wcardinal/ui/d-image-base.d.ts +11 -26
  10. package/dist/types/wcardinal/ui/d-image-piece-align-impl.d.ts +23 -0
  11. package/dist/types/wcardinal/ui/d-image-piece-align.d.ts +14 -0
  12. package/dist/types/wcardinal/ui/d-image-piece-container-impl.d.ts +24 -0
  13. package/dist/types/wcardinal/ui/d-image-piece-container.d.ts +12 -0
  14. package/dist/types/wcardinal/ui/d-image-piece-impl.d.ts +60 -0
  15. package/dist/types/wcardinal/ui/d-image-piece-layouter-part-bottom.d.ts +3 -0
  16. package/dist/types/wcardinal/ui/d-image-piece-layouter-part-center.d.ts +2 -1
  17. package/dist/types/wcardinal/ui/d-image-piece-layouter-part-left.d.ts +3 -0
  18. package/dist/types/wcardinal/ui/d-image-piece-layouter-part-middle.d.ts +2 -1
  19. package/dist/types/wcardinal/ui/d-image-piece-layouter-part-right.d.ts +3 -0
  20. package/dist/types/wcardinal/ui/d-image-piece-layouter-part-top.d.ts +3 -0
  21. package/dist/types/wcardinal/ui/d-image-piece-layouter-part.d.ts +4 -2
  22. package/dist/types/wcardinal/ui/d-image-piece-margin-impl.d.ts +17 -0
  23. package/dist/types/wcardinal/ui/d-image-piece-margin.d.ts +9 -0
  24. package/dist/types/wcardinal/ui/d-image-piece-tint-impl.d.ts +23 -0
  25. package/dist/types/wcardinal/ui/d-image-piece-tint.d.ts +13 -0
  26. package/dist/types/wcardinal/ui/d-image-piece.d.ts +14 -77
  27. package/dist/types/wcardinal/ui/d-indicator-processing.d.ts +69 -0
  28. package/dist/types/wcardinal/ui/index.d.ts +11 -0
  29. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-en-us-dialog-processing.d.ts +2 -0
  30. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-en-us-indicator-processing.d.ts +5 -0
  31. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-image-base.d.ts +3 -0
  32. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.d.ts +13 -0
  33. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-dialog-processing.d.ts +2 -0
  34. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-indicator-processing.d.ts +5 -0
  35. package/dist/types/wcardinal/ui/theme/dark/index-en-us.d.ts +1 -0
  36. package/dist/types/wcardinal/ui/theme/dark/index-ja-jp.d.ts +1 -0
  37. package/dist/types/wcardinal/ui/theme/dark/index-zz-zz.d.ts +1 -0
  38. package/dist/types/wcardinal/ui/theme/dark/load/index-en-us.d.ts +1 -0
  39. package/dist/types/wcardinal/ui/theme/dark/load/index-ja-jp.d.ts +1 -0
  40. package/dist/types/wcardinal/ui/theme/dark/load/load-theme-dark-en-us-indicator-processing.d.ts +1 -0
  41. package/dist/types/wcardinal/ui/theme/dark/load/load-theme-dark-ja-jp-indicator-processing.d.ts +1 -0
  42. package/dist/types/wcardinal/ui/theme/white/d-theme-white-en-us-dialog-processing.d.ts +2 -0
  43. package/dist/types/wcardinal/ui/theme/white/d-theme-white-en-us-indicator-processing.d.ts +5 -0
  44. package/dist/types/wcardinal/ui/theme/white/d-theme-white-image-base.d.ts +3 -0
  45. package/dist/types/wcardinal/ui/theme/white/d-theme-white-indicator-processing.d.ts +13 -0
  46. package/dist/types/wcardinal/ui/theme/white/d-theme-white-ja-jp-dialog-processing.d.ts +2 -0
  47. package/dist/types/wcardinal/ui/theme/white/d-theme-white-ja-jp-indicator-processing.d.ts +5 -0
  48. package/dist/types/wcardinal/ui/theme/white/index-en-us.d.ts +1 -0
  49. package/dist/types/wcardinal/ui/theme/white/index-ja-jp.d.ts +1 -0
  50. package/dist/types/wcardinal/ui/theme/white/index-zz-zz.d.ts +1 -0
  51. package/dist/types/wcardinal/ui/theme/white/load/index-en-us.d.ts +1 -0
  52. package/dist/types/wcardinal/ui/theme/white/load/index-ja-jp.d.ts +1 -0
  53. package/dist/types/wcardinal/ui/theme/white/load/load-theme-white-en-us-indicator-processing.d.ts +1 -0
  54. package/dist/types/wcardinal/ui/theme/white/load/load-theme-white-ja-jp-indicator-processing.d.ts +1 -0
  55. package/dist/wcardinal/ui/d-base-state-set-impl.js +31 -0
  56. package/dist/wcardinal/ui/d-base-state-set-impl.js.map +1 -1
  57. package/dist/wcardinal/ui/d-base-state-set.js.map +1 -1
  58. package/dist/wcardinal/ui/d-base-state.js +1 -0
  59. package/dist/wcardinal/ui/d-base-state.js.map +1 -1
  60. package/dist/wcardinal/ui/d-base.js +63 -7
  61. package/dist/wcardinal/ui/d-base.js.map +1 -1
  62. package/dist/wcardinal/ui/d-button-color.js +6 -29
  63. package/dist/wcardinal/ui/d-button-color.js.map +1 -1
  64. package/dist/wcardinal/ui/d-dialog-processing.js +3 -2
  65. package/dist/wcardinal/ui/d-dialog-processing.js.map +1 -1
  66. package/dist/wcardinal/ui/d-image-base-theme-wrapper-other.js +35 -0
  67. package/dist/wcardinal/ui/d-image-base-theme-wrapper-other.js.map +1 -0
  68. package/dist/wcardinal/ui/d-image-base-theme-wrapper-secondary.js +5 -1
  69. package/dist/wcardinal/ui/d-image-base-theme-wrapper-secondary.js.map +1 -1
  70. package/dist/wcardinal/ui/d-image-base-theme-wrapper-tertiary.js +5 -1
  71. package/dist/wcardinal/ui/d-image-base-theme-wrapper-tertiary.js.map +1 -1
  72. package/dist/wcardinal/ui/d-image-base.js +22 -51
  73. package/dist/wcardinal/ui/d-image-base.js.map +1 -1
  74. package/dist/wcardinal/ui/d-image-piece-align-impl.js +89 -0
  75. package/dist/wcardinal/ui/d-image-piece-align-impl.js.map +1 -0
  76. package/dist/wcardinal/ui/d-image-piece-align.js +2 -0
  77. package/dist/wcardinal/ui/d-image-piece-align.js.map +1 -0
  78. package/dist/wcardinal/ui/d-image-piece-container-impl.js +108 -0
  79. package/dist/wcardinal/ui/d-image-piece-container-impl.js.map +1 -0
  80. package/dist/wcardinal/ui/d-image-piece-container.js +2 -0
  81. package/dist/wcardinal/ui/d-image-piece-container.js.map +1 -0
  82. package/dist/wcardinal/ui/d-image-piece-impl.js +235 -0
  83. package/dist/wcardinal/ui/d-image-piece-impl.js.map +1 -0
  84. package/dist/wcardinal/ui/d-image-piece-layouter-part-bottom.js +15 -4
  85. package/dist/wcardinal/ui/d-image-piece-layouter-part-bottom.js.map +1 -1
  86. package/dist/wcardinal/ui/d-image-piece-layouter-part-center.js +8 -5
  87. package/dist/wcardinal/ui/d-image-piece-layouter-part-center.js.map +1 -1
  88. package/dist/wcardinal/ui/d-image-piece-layouter-part-container.js +13 -17
  89. package/dist/wcardinal/ui/d-image-piece-layouter-part-container.js.map +1 -1
  90. package/dist/wcardinal/ui/d-image-piece-layouter-part-left.js +15 -4
  91. package/dist/wcardinal/ui/d-image-piece-layouter-part-left.js.map +1 -1
  92. package/dist/wcardinal/ui/d-image-piece-layouter-part-middle.js +8 -5
  93. package/dist/wcardinal/ui/d-image-piece-layouter-part-middle.js.map +1 -1
  94. package/dist/wcardinal/ui/d-image-piece-layouter-part-right.js +15 -4
  95. package/dist/wcardinal/ui/d-image-piece-layouter-part-right.js.map +1 -1
  96. package/dist/wcardinal/ui/d-image-piece-layouter-part-top.js +15 -4
  97. package/dist/wcardinal/ui/d-image-piece-layouter-part-top.js.map +1 -1
  98. package/dist/wcardinal/ui/d-image-piece-layouter-part.js +2 -6
  99. package/dist/wcardinal/ui/d-image-piece-layouter-part.js.map +1 -1
  100. package/dist/wcardinal/ui/d-image-piece-layouter.js +2 -2
  101. package/dist/wcardinal/ui/d-image-piece-layouter.js.map +1 -1
  102. package/dist/wcardinal/ui/d-image-piece-margin-impl.js +55 -0
  103. package/dist/wcardinal/ui/d-image-piece-margin-impl.js.map +1 -0
  104. package/dist/wcardinal/ui/d-image-piece-margin.js +2 -0
  105. package/dist/wcardinal/ui/d-image-piece-margin.js.map +1 -0
  106. package/dist/wcardinal/ui/d-image-piece-tint-impl.js +90 -0
  107. package/dist/wcardinal/ui/d-image-piece-tint-impl.js.map +1 -0
  108. package/dist/wcardinal/ui/d-image-piece-tint.js +2 -0
  109. package/dist/wcardinal/ui/d-image-piece-tint.js.map +1 -0
  110. package/dist/wcardinal/ui/d-image-piece.js +1 -287
  111. package/dist/wcardinal/ui/d-image-piece.js.map +1 -1
  112. package/dist/wcardinal/ui/d-indicator-processing.js +216 -0
  113. package/dist/wcardinal/ui/d-indicator-processing.js.map +1 -0
  114. package/dist/wcardinal/ui/d-table-header-cell.js +10 -5
  115. package/dist/wcardinal/ui/d-table-header-cell.js.map +1 -1
  116. package/dist/wcardinal/ui/d-text-base.js +9 -1
  117. package/dist/wcardinal/ui/d-text-base.js.map +1 -1
  118. package/dist/wcardinal/ui/index.js +11 -0
  119. package/dist/wcardinal/ui/index.js.map +1 -1
  120. package/dist/wcardinal/ui/theme/dark/d-theme-dark-en-us-dialog-processing.js +2 -2
  121. package/dist/wcardinal/ui/theme/dark/d-theme-dark-en-us-dialog-processing.js.map +1 -1
  122. package/dist/wcardinal/ui/theme/dark/d-theme-dark-en-us-indicator-processing.js +19 -0
  123. package/dist/wcardinal/ui/theme/dark/d-theme-dark-en-us-indicator-processing.js.map +1 -0
  124. package/dist/wcardinal/ui/theme/dark/d-theme-dark-image-base.js +9 -0
  125. package/dist/wcardinal/ui/theme/dark/d-theme-dark-image-base.js.map +1 -1
  126. package/dist/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.js +74 -0
  127. package/dist/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.js.map +1 -0
  128. package/dist/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-dialog-processing.js +2 -2
  129. package/dist/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-dialog-processing.js.map +1 -1
  130. package/dist/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-indicator-processing.js +19 -0
  131. package/dist/wcardinal/ui/theme/dark/d-theme-dark-ja-jp-indicator-processing.js.map +1 -0
  132. package/dist/wcardinal/ui/theme/dark/index-en-us.js +1 -0
  133. package/dist/wcardinal/ui/theme/dark/index-en-us.js.map +1 -1
  134. package/dist/wcardinal/ui/theme/dark/index-ja-jp.js +1 -0
  135. package/dist/wcardinal/ui/theme/dark/index-ja-jp.js.map +1 -1
  136. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js +1 -0
  137. package/dist/wcardinal/ui/theme/dark/index-zz-zz.js.map +1 -1
  138. package/dist/wcardinal/ui/theme/dark/load/index-en-us.js +1 -0
  139. package/dist/wcardinal/ui/theme/dark/load/index-en-us.js.map +1 -1
  140. package/dist/wcardinal/ui/theme/dark/load/index-ja-jp.js +1 -0
  141. package/dist/wcardinal/ui/theme/dark/load/index-ja-jp.js.map +1 -1
  142. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-en-us-all.js +2 -0
  143. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-en-us-all.js.map +1 -1
  144. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-en-us-indicator-processing.js +10 -0
  145. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-en-us-indicator-processing.js.map +1 -0
  146. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-ja-jp-all.js +2 -0
  147. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-ja-jp-all.js.map +1 -1
  148. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-ja-jp-indicator-processing.js +10 -0
  149. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-ja-jp-indicator-processing.js.map +1 -0
  150. package/dist/wcardinal/ui/theme/white/d-theme-white-en-us-dialog-processing.js +2 -2
  151. package/dist/wcardinal/ui/theme/white/d-theme-white-en-us-dialog-processing.js.map +1 -1
  152. package/dist/wcardinal/ui/theme/white/d-theme-white-en-us-indicator-processing.js +19 -0
  153. package/dist/wcardinal/ui/theme/white/d-theme-white-en-us-indicator-processing.js.map +1 -0
  154. package/dist/wcardinal/ui/theme/white/d-theme-white-image-base.js +9 -0
  155. package/dist/wcardinal/ui/theme/white/d-theme-white-image-base.js.map +1 -1
  156. package/dist/wcardinal/ui/theme/white/d-theme-white-indicator-processing.js +74 -0
  157. package/dist/wcardinal/ui/theme/white/d-theme-white-indicator-processing.js.map +1 -0
  158. package/dist/wcardinal/ui/theme/white/d-theme-white-ja-jp-dialog-processing.js +2 -2
  159. package/dist/wcardinal/ui/theme/white/d-theme-white-ja-jp-dialog-processing.js.map +1 -1
  160. package/dist/wcardinal/ui/theme/white/d-theme-white-ja-jp-indicator-processing.js +19 -0
  161. package/dist/wcardinal/ui/theme/white/d-theme-white-ja-jp-indicator-processing.js.map +1 -0
  162. package/dist/wcardinal/ui/theme/white/index-en-us.js +1 -0
  163. package/dist/wcardinal/ui/theme/white/index-en-us.js.map +1 -1
  164. package/dist/wcardinal/ui/theme/white/index-ja-jp.js +1 -0
  165. package/dist/wcardinal/ui/theme/white/index-ja-jp.js.map +1 -1
  166. package/dist/wcardinal/ui/theme/white/index-zz-zz.js +1 -0
  167. package/dist/wcardinal/ui/theme/white/index-zz-zz.js.map +1 -1
  168. package/dist/wcardinal/ui/theme/white/load/index-en-us.js +1 -0
  169. package/dist/wcardinal/ui/theme/white/load/index-en-us.js.map +1 -1
  170. package/dist/wcardinal/ui/theme/white/load/index-ja-jp.js +1 -0
  171. package/dist/wcardinal/ui/theme/white/load/index-ja-jp.js.map +1 -1
  172. package/dist/wcardinal/ui/theme/white/load/load-theme-white-en-us-all.js +2 -0
  173. package/dist/wcardinal/ui/theme/white/load/load-theme-white-en-us-all.js.map +1 -1
  174. package/dist/wcardinal/ui/theme/white/load/load-theme-white-en-us-indicator-processing.js +10 -0
  175. package/dist/wcardinal/ui/theme/white/load/load-theme-white-en-us-indicator-processing.js.map +1 -0
  176. package/dist/wcardinal/ui/theme/white/load/load-theme-white-ja-jp-all.js +2 -0
  177. package/dist/wcardinal/ui/theme/white/load/load-theme-white-ja-jp-all.js.map +1 -1
  178. package/dist/wcardinal/ui/theme/white/load/load-theme-white-ja-jp-indicator-processing.js +10 -0
  179. package/dist/wcardinal/ui/theme/white/load/load-theme-white-ja-jp-indicator-processing.js.map +1 -0
  180. package/dist/wcardinal-ui-theme-dark-en-us.js +112 -3
  181. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  182. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  183. package/dist/wcardinal-ui-theme-dark-ja-jp.js +112 -3
  184. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  185. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  186. package/dist/wcardinal-ui-theme-dark.js +112 -3
  187. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  188. package/dist/wcardinal-ui-theme-white-en-us.js +112 -3
  189. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  190. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  191. package/dist/wcardinal-ui-theme-white-ja-jp.js +112 -3
  192. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  193. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  194. package/dist/wcardinal-ui-theme-white.js +112 -3
  195. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  196. package/dist/wcardinal-ui.cjs.js +1413 -513
  197. package/dist/wcardinal-ui.js +1127 -495
  198. package/dist/wcardinal-ui.min.js +2 -2
  199. package/dist/wcardinal-ui.min.js.map +1 -1
  200. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.398.0
2
+ Winter Cardinal UI v0.400.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -2671,6 +2671,7 @@
2671
2671
  GESTURING: "GESTURING",
2672
2672
  PRESSED: "PRESSED",
2673
2673
  INVALID: "INVALID",
2674
+ PROCESSING: "PROCESSING",
2674
2675
  SUCCEEDED: "SUCCEEDED",
2675
2676
  FAILED: "FAILED",
2676
2677
  WARNED: "WARNED",
@@ -3735,6 +3736,37 @@
3735
3736
  enumerable: false,
3736
3737
  configurable: true
3737
3738
  });
3739
+ Object.defineProperty(DBaseStateSetImpl.prototype, "isProcessing", {
3740
+ get: function () {
3741
+ return this.is(DBaseState.PROCESSING);
3742
+ },
3743
+ set: function (processing) {
3744
+ this.set(DBaseState.PROCESSING, processing);
3745
+ },
3746
+ enumerable: false,
3747
+ configurable: true
3748
+ });
3749
+ Object.defineProperty(DBaseStateSetImpl.prototype, "inProcessing", {
3750
+ get: function () {
3751
+ return this.in(DBaseState.PROCESSING);
3752
+ },
3753
+ enumerable: false,
3754
+ configurable: true
3755
+ });
3756
+ Object.defineProperty(DBaseStateSetImpl.prototype, "onProcessing", {
3757
+ get: function () {
3758
+ return this.on(DBaseState.PROCESSING);
3759
+ },
3760
+ enumerable: false,
3761
+ configurable: true
3762
+ });
3763
+ Object.defineProperty(DBaseStateSetImpl.prototype, "underProcessing", {
3764
+ get: function () {
3765
+ return this.under(DBaseState.PROCESSING);
3766
+ },
3767
+ enumerable: false,
3768
+ configurable: true
3769
+ });
3738
3770
  Object.defineProperty(DBaseStateSetImpl.prototype, "isSucceeded", {
3739
3771
  get: function () {
3740
3772
  return this.is(DBaseState.SUCCEEDED);
@@ -14822,11 +14854,35 @@
14822
14854
  for (var i = 0, imax = children.length; i < imax; ++i) {
14823
14855
  var child = children[i];
14824
14856
  if (child.visible) {
14825
- if (this.hasRefitableWidth(child)) {
14826
- width = Math.max(width, child.x + child.width);
14827
- }
14828
- if (this.hasRefitableHeight(child)) {
14829
- height = Math.max(height, child.y + child.height);
14857
+ var rw = this.hasRefitableWidth(child);
14858
+ var rh = this.hasRefitableHeight(child);
14859
+ if (rw || rh) {
14860
+ if (child instanceof DBase) {
14861
+ if (rw) {
14862
+ width = Math.max(width, child.x + child.width);
14863
+ }
14864
+ if (rh) {
14865
+ height = Math.max(height, child.y + child.height);
14866
+ }
14867
+ }
14868
+ else if (child instanceof pixi_js.Container) {
14869
+ var bound = child.getLocalBounds(undefined, true);
14870
+ if (rw) {
14871
+ width = Math.max(width, child.x + bound.x + bound.width);
14872
+ }
14873
+ if (rh) {
14874
+ height = Math.max(height, child.y + bound.y + bound.height);
14875
+ }
14876
+ }
14877
+ else {
14878
+ var bound = child.getLocalBounds();
14879
+ if (rw) {
14880
+ width = Math.max(width, child.x + bound.x + bound.width);
14881
+ }
14882
+ if (rh) {
14883
+ height = Math.max(height, child.y + bound.y + bound.height);
14884
+ }
14885
+ }
14830
14886
  }
14831
14887
  }
14832
14888
  }
@@ -14839,7 +14895,17 @@
14839
14895
  for (var i = 0, imax = children.length; i < imax; ++i) {
14840
14896
  var child = children[i];
14841
14897
  if (child.visible && this.hasRefitableWidth(child)) {
14842
- width = Math.max(width, child.x + child.width);
14898
+ if (child instanceof DBase) {
14899
+ width = Math.max(width, child.x + child.width);
14900
+ }
14901
+ else if (child instanceof pixi_js.Container) {
14902
+ var bound = child.getLocalBounds(undefined, true);
14903
+ width = Math.max(width, child.x + bound.x + bound.width);
14904
+ }
14905
+ else {
14906
+ var bound = child.getLocalBounds();
14907
+ width = Math.max(width, child.x + bound.x + bound.width);
14908
+ }
14843
14909
  }
14844
14910
  }
14845
14911
  this.resize(width + this.padding.getRight(), undefined);
@@ -14850,7 +14916,17 @@
14850
14916
  for (var i = 0, imax = children.length; i < imax; ++i) {
14851
14917
  var child = children[i];
14852
14918
  if (child.visible && this.hasRefitableHeight(child)) {
14853
- height = Math.max(height, child.y + child.height);
14919
+ if (child instanceof DBase) {
14920
+ height = Math.max(height, child.y + child.height);
14921
+ }
14922
+ else if (child instanceof pixi_js.Container) {
14923
+ var bound = child.getLocalBounds(undefined, true);
14924
+ height = Math.max(height, child.y + bound.y + bound.height);
14925
+ }
14926
+ else {
14927
+ var bound = child.getLocalBounds();
14928
+ height = Math.max(height, child.y + bound.y + bound.height);
14929
+ }
14854
14930
  }
14855
14931
  }
14856
14932
  this.resize(undefined, height + this.padding.getBottom());
@@ -14859,9 +14935,21 @@
14859
14935
  DBase.prototype.isRefitable = function (target) {
14860
14936
  return target instanceof DBase;
14861
14937
  };
14938
+ /**
14939
+ * Returns true if the given target has a height that doesn't depend on its parent height.
14940
+ *
14941
+ * @param target a target
14942
+ * @returns true if the given target has a height that doesn't depend on its parent height.
14943
+ */
14862
14944
  DBase.prototype.hasRefitableHeight = function (target) {
14863
14945
  return (this.isRefitable(target) && !(target instanceof DBase && isFunction(target.getHeight())));
14864
14946
  };
14947
+ /**
14948
+ * Returns true if the given target has a width that doesn't depend on its parent width.
14949
+ *
14950
+ * @param target a target
14951
+ * @returns true if the given target has a width that doesn't depend on its parent width.
14952
+ */
14865
14953
  DBase.prototype.hasRefitableWidth = function (target) {
14866
14954
  return (this.isRefitable(target) && !(target instanceof DBase && isFunction(target.getWidth())));
14867
14955
  };
@@ -27569,67 +27657,15 @@
27569
27657
  DOUBLE_CLICKED: 1
27570
27658
  };
27571
27659
 
27572
- var DImageBaseThemeWrapperSecondary = /** @class */ (function () {
27573
- function DImageBaseThemeWrapperSecondary(theme) {
27574
- this._theme = theme;
27575
- }
27576
- DImageBaseThemeWrapperSecondary.prototype.getImageAlignHorizontal = function () {
27577
- return this._theme.getSecondaryImageAlignHorizontal();
27578
- };
27579
- DImageBaseThemeWrapperSecondary.prototype.getImageAlignVertical = function () {
27580
- return this._theme.getSecondaryImageAlignVertical();
27581
- };
27582
- DImageBaseThemeWrapperSecondary.prototype.getImageAlignWith = function () {
27583
- return this._theme.getSecondaryImageAlignWith();
27584
- };
27585
- DImageBaseThemeWrapperSecondary.prototype.getImageMarginHorizontal = function () {
27586
- return this._theme.getSecondaryImageMarginHorizontal();
27587
- };
27588
- DImageBaseThemeWrapperSecondary.prototype.getImageMarginVertial = function () {
27589
- return this._theme.getSecondaryImageMarginVertial();
27590
- };
27591
- DImageBaseThemeWrapperSecondary.prototype.getImageTintColor = function (state) {
27592
- return this._theme.getSecondaryImageTintColor(state);
27593
- };
27594
- DImageBaseThemeWrapperSecondary.prototype.getImageTintAlpha = function (state) {
27595
- return this._theme.getSecondaryImageTintAlpha(state);
27596
- };
27597
- DImageBaseThemeWrapperSecondary.prototype.getImageSource = function (state) {
27598
- return this._theme.getSecondaryImageSource(state);
27599
- };
27600
- return DImageBaseThemeWrapperSecondary;
27601
- }());
27602
-
27603
- var DImageBaseThemeWrapperTertiary = /** @class */ (function () {
27604
- function DImageBaseThemeWrapperTertiary(theme) {
27605
- this._theme = theme;
27606
- }
27607
- DImageBaseThemeWrapperTertiary.prototype.getImageAlignHorizontal = function () {
27608
- return this._theme.getTertiaryImageAlignHorizontal();
27609
- };
27610
- DImageBaseThemeWrapperTertiary.prototype.getImageAlignVertical = function () {
27611
- return this._theme.getTertiaryImageAlignVertical();
27612
- };
27613
- DImageBaseThemeWrapperTertiary.prototype.getImageAlignWith = function () {
27614
- return this._theme.getTertiaryImageAlignWith();
27615
- };
27616
- DImageBaseThemeWrapperTertiary.prototype.getImageMarginHorizontal = function () {
27617
- return this._theme.getTertiaryImageMarginHorizontal();
27618
- };
27619
- DImageBaseThemeWrapperTertiary.prototype.getImageMarginVertial = function () {
27620
- return this._theme.getTertiaryImageMarginVertial();
27621
- };
27622
- DImageBaseThemeWrapperTertiary.prototype.getImageTintColor = function (state) {
27623
- return this._theme.getTertiaryImageTintColor(state);
27624
- };
27625
- DImageBaseThemeWrapperTertiary.prototype.getImageTintAlpha = function (state) {
27626
- return this._theme.getTertiaryImageTintAlpha(state);
27627
- };
27628
- DImageBaseThemeWrapperTertiary.prototype.getImageSource = function (state) {
27629
- return this._theme.getTertiaryImageSource(state);
27630
- };
27631
- return DImageBaseThemeWrapperTertiary;
27632
- }());
27660
+ /*
27661
+ * Copyright (C) 2019 Toshiba Corporation
27662
+ * SPDX-License-Identifier: Apache-2.0
27663
+ */
27664
+ var DAlignWith = {
27665
+ TEXT: 0,
27666
+ PADDING: 1,
27667
+ BORDER: 2
27668
+ };
27633
27669
 
27634
27670
  /*
27635
27671
  * Copyright (C) 2019 Toshiba Corporation
@@ -27651,314 +27687,20 @@
27651
27687
  BOTTOM: 2
27652
27688
  };
27653
27689
 
27654
- /*
27655
- * Copyright (C) 2019 Toshiba Corporation
27656
- * SPDX-License-Identifier: Apache-2.0
27657
- */
27658
- var DAlignWith = {
27659
- TEXT: 0,
27660
- PADDING: 1,
27661
- BORDER: 2
27662
- };
27663
-
27664
- var toImageAlign = function (theme, options) {
27665
- var _a, _b, _c;
27666
- var align = options === null || options === void 0 ? void 0 : options.align;
27667
- return {
27668
- with: toEnum((_a = align === null || align === void 0 ? void 0 : align.with) !== null && _a !== void 0 ? _a : theme.getImageAlignWith(), DAlignWith),
27669
- vertical: toEnum((_b = align === null || align === void 0 ? void 0 : align.vertical) !== null && _b !== void 0 ? _b : theme.getImageAlignVertical(), DAlignVertical),
27670
- horizontal: toEnum((_c = align === null || align === void 0 ? void 0 : align.horizontal) !== null && _c !== void 0 ? _c : theme.getImageAlignHorizontal(), DAlignHorizontal)
27671
- };
27672
- };
27673
- var toImageMargin = function (theme, options) {
27674
- var _a, _b;
27675
- var margin = options === null || options === void 0 ? void 0 : options.margin;
27676
- return {
27677
- vertical: (_a = margin === null || margin === void 0 ? void 0 : margin.vertical) !== null && _a !== void 0 ? _a : theme.getImageMarginVertial(),
27678
- horizontal: (_b = margin === null || margin === void 0 ? void 0 : margin.horizontal) !== null && _b !== void 0 ? _b : theme.getImageMarginHorizontal()
27679
- };
27680
- };
27681
- var DImagePiece = /** @class */ (function () {
27682
- function DImagePiece(parent, theme, textAlign, options) {
27683
- var _this = this;
27684
- this._parent = parent;
27685
- this._theme = theme;
27686
- this._textAlign = textAlign;
27687
- this._image = null;
27688
- this._align = toImageAlign(theme, options);
27689
- this._margin = toImageMargin(theme, options);
27690
- this._tint = options === null || options === void 0 ? void 0 : options.tint;
27691
- this._bound = new pixi_js.Rectangle();
27692
- this._source = options === null || options === void 0 ? void 0 : options.source;
27693
- this._computed = null;
27694
- this._onUpdateBound = function () {
27695
- _this.onUpdate();
27696
- };
27697
- }
27698
- Object.defineProperty(DImagePiece.prototype, "image", {
27699
- get: function () {
27700
- return this._image;
27701
- },
27702
- enumerable: false,
27703
- configurable: true
27704
- });
27705
- Object.defineProperty(DImagePiece.prototype, "align", {
27706
- get: function () {
27707
- return this._align;
27708
- },
27709
- enumerable: false,
27710
- configurable: true
27711
- });
27712
- Object.defineProperty(DImagePiece.prototype, "margin", {
27713
- get: function () {
27714
- return this._margin;
27715
- },
27716
- enumerable: false,
27717
- configurable: true
27718
- });
27719
- Object.defineProperty(DImagePiece.prototype, "bound", {
27720
- get: function () {
27721
- return this._bound;
27722
- },
27723
- enumerable: false,
27724
- configurable: true
27725
- });
27726
- Object.defineProperty(DImagePiece.prototype, "source", {
27727
- get: function () {
27728
- return this._source;
27729
- },
27730
- set: function (source) {
27731
- if (this._source !== source) {
27732
- this._source = source;
27733
- this.onUpdate();
27734
- }
27735
- },
27736
- enumerable: false,
27737
- configurable: true
27738
- });
27739
- DImagePiece.prototype.computeSource = function () {
27740
- var source = this._source;
27741
- if (source !== undefined) {
27742
- if (isFunction(source)) {
27743
- var result = source(this._parent.state);
27744
- if (result !== undefined) {
27745
- return result;
27746
- }
27747
- }
27748
- else {
27749
- return source;
27750
- }
27751
- }
27752
- return this._theme.getImageSource(this._parent.state);
27753
- };
27754
- DImagePiece.prototype.onStateChange = function (newState, oldState) {
27755
- this.updateTint();
27756
- };
27757
- DImagePiece.prototype.updateBound = function () {
27758
- var bound = this._bound;
27759
- var image = this._image;
27760
- if (image != null) {
27761
- image.updateTransform();
27762
- image.getLocalBounds(bound);
27763
- var bl = bound.left;
27764
- var bt = bound.top;
27765
- var br = bound.right;
27766
- var bb = bound.bottom;
27767
- var localTransform = image.localTransform;
27768
- var a = localTransform.a;
27769
- var b = localTransform.b;
27770
- var c = localTransform.c;
27771
- var d = localTransform.d;
27772
- var x0 = a * bl + c * bt;
27773
- var y0 = b * bl + d * bt;
27774
- var x1 = a * br + c * bt;
27775
- var y1 = b * br + d * bt;
27776
- var x2 = a * br + c * bb;
27777
- var y2 = b * br + d * bb;
27778
- var x3 = a * bl + c * bb;
27779
- var y3 = b * bl + d * bb;
27780
- var xmin = Math.min(x0, x1, x2, x3);
27781
- var xmax = Math.max(x0, x1, x2, x3);
27782
- var ymin = Math.min(y0, y1, y2, y3);
27783
- var ymax = Math.max(y0, y1, y2, y3);
27784
- bound.x = xmin + localTransform.tx;
27785
- bound.y = ymin + localTransform.ty;
27786
- bound.width = xmax - xmin;
27787
- bound.height = ymax - ymin;
27788
- }
27789
- else {
27790
- bound.x = 0;
27791
- bound.y = 0;
27792
- bound.width = 0;
27793
- bound.height = 0;
27794
- }
27795
- };
27796
- DImagePiece.prototype.isTintAware = function (target) {
27797
- return target != null && "tint" in target;
27798
- };
27799
- DImagePiece.prototype.toTintColor = function (theme, state) {
27800
- var tint = this._tint;
27801
- if (tint) {
27802
- var color = tint.color;
27803
- if (color !== undefined) {
27804
- if (isFunction(color)) {
27805
- var result = color(state);
27806
- if (result !== undefined) {
27807
- return result;
27808
- }
27809
- }
27810
- else {
27811
- return color;
27812
- }
27813
- }
27814
- }
27815
- return theme.getImageTintColor(state);
27816
- };
27817
- DImagePiece.prototype.toTintAlpha = function (theme, state) {
27818
- var tint = this._tint;
27819
- if (tint) {
27820
- var alpha = tint.alpha;
27821
- if (alpha !== undefined) {
27822
- if (isFunction(alpha)) {
27823
- var result = alpha(state);
27824
- if (result !== undefined) {
27825
- return result;
27826
- }
27827
- }
27828
- else {
27829
- return alpha;
27830
- }
27831
- }
27832
- }
27833
- return theme.getImageTintAlpha(state);
27834
- };
27835
- /**
27836
- * Updates the tint.
27837
- *
27838
- * @returns True if the tint is changed.
27839
- */
27840
- DImagePiece.prototype.updateTint = function () {
27841
- var image = this._image;
27842
- if (image) {
27843
- if (this.isTintAware(image)) {
27844
- var theme = this._theme;
27845
- var state = this._parent.state;
27846
- var color = this.toTintColor(theme, state);
27847
- if (color != null) {
27848
- var result = false;
27849
- if (image.tint !== color) {
27850
- image.tint = color;
27851
- result = true;
27852
- }
27853
- var alpha = this.toTintAlpha(theme, state);
27854
- if (image.alpha !== alpha) {
27855
- image.alpha = alpha;
27856
- result = true;
27857
- }
27858
- return result;
27859
- }
27860
- }
27861
- }
27862
- return false;
27863
- };
27864
- /**
27865
- * Updates the computed source.
27866
- *
27867
- * @returns True if the computed source is changed
27868
- */
27869
- DImagePiece.prototype.updateSource = function () {
27870
- var newComputed = this.computeSource();
27871
- var oldComputed = this._computed;
27872
- if (newComputed !== oldComputed) {
27873
- this._computed = newComputed;
27874
- var parent_1 = this._parent;
27875
- var oldImage = this._image;
27876
- var onUpdateBound = this._onUpdateBound;
27877
- if (newComputed instanceof pixi_js.Texture) {
27878
- if (oldComputed instanceof pixi_js.Texture) {
27879
- oldComputed.off("update", onUpdateBound);
27880
- if (oldImage instanceof pixi_js.Sprite) {
27881
- oldImage.texture = newComputed;
27882
- newComputed.on("update", onUpdateBound);
27883
- }
27884
- }
27885
- else {
27886
- if (oldImage != null) {
27887
- parent_1.removeChild(oldImage);
27888
- }
27889
- var newImage = new pixi_js.Sprite(newComputed);
27890
- var overflowMask = parent_1.getOverflowMask();
27891
- if (overflowMask) {
27892
- newImage.mask = overflowMask;
27893
- }
27894
- newComputed.on("update", onUpdateBound);
27895
- parent_1.addChild(newImage);
27896
- this._image = newImage;
27897
- }
27898
- }
27899
- else {
27900
- if (oldComputed instanceof pixi_js.Texture) {
27901
- oldComputed.off("update", onUpdateBound);
27902
- if (oldImage != null) {
27903
- parent_1.removeChild(oldImage);
27904
- oldImage.destroy();
27905
- }
27906
- }
27907
- else if (oldImage != null) {
27908
- parent_1.removeChild(oldImage);
27909
- }
27910
- if (newComputed != null) {
27911
- var overflowMask = parent_1.getOverflowMask();
27912
- if (overflowMask) {
27913
- newComputed.mask = overflowMask;
27914
- }
27915
- parent_1.addChild(newComputed);
27916
- }
27917
- this._image = newComputed;
27918
- }
27919
- return true;
27920
- }
27921
- return false;
27922
- };
27923
- DImagePiece.prototype.isRefitable = function (target) {
27924
- return target != null && target === this._image;
27925
- };
27926
- DImagePiece.prototype.destroy = function () {
27927
- var image = this._image;
27928
- if (image) {
27929
- this._image = null;
27930
- var computed = this._computed;
27931
- if (computed instanceof pixi_js.Texture) {
27932
- computed.off("update", this._onUpdateBound, this);
27933
- image.destroy();
27934
- }
27935
- }
27936
- };
27937
- DImagePiece.prototype.onUpdate = function () {
27938
- this._parent.toDirty();
27939
- DApplications.update(this._parent);
27940
- };
27941
- return DImagePiece;
27942
- }());
27943
-
27944
27690
  var DImagePieceLayouterPart = /** @class */ (function () {
27945
27691
  function DImagePieceLayouterPart() {
27946
27692
  this._pieces = [];
27693
+ this._bounds = [];
27947
27694
  this._size = 0;
27948
27695
  this._margin = 0;
27949
27696
  }
27950
27697
  DImagePieceLayouterPart.prototype.clear = function () {
27951
27698
  this._pieces.length = 0;
27699
+ this._bounds.length = 0;
27952
27700
  this._size = 0;
27953
27701
  this._margin = 0;
27954
27702
  this._text = undefined;
27955
27703
  };
27956
- DImagePieceLayouterPart.prototype.add = function (image, size, margin) {
27957
- var pieces = this._pieces;
27958
- pieces.push(image);
27959
- this._size += margin + size;
27960
- this._margin = margin;
27961
- };
27962
27704
  DImagePieceLayouterPart.prototype.set = function (text) {
27963
27705
  this._text = text;
27964
27706
  };
@@ -27977,23 +27719,34 @@
27977
27719
  function DImagePieceLayouterPartBottom() {
27978
27720
  return _super !== null && _super.apply(this, arguments) || this;
27979
27721
  }
27722
+ DImagePieceLayouterPartBottom.prototype.add = function (image, bound, margin) {
27723
+ this._pieces.push(image);
27724
+ this._bounds.push(bound);
27725
+ this._size += margin + bound.height;
27726
+ this._margin = margin;
27727
+ };
27980
27728
  DImagePieceLayouterPartBottom.prototype.execute = function (pbottom, height) {
27981
27729
  var pieces = this._pieces;
27730
+ var bounds = this._bounds;
27982
27731
  var y = height - pbottom;
27983
27732
  if (this._text !== undefined) {
27984
27733
  var margin = 0;
27985
27734
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
27986
27735
  var piece = pieces[i];
27987
- y -= margin + piece.bound.height;
27988
- piece.image.y = y;
27736
+ var bound = bounds[i];
27737
+ var object = piece.object;
27738
+ y -= margin + bound.height;
27739
+ object.y = y - bound.y;
27989
27740
  margin = piece.margin.horizontal;
27990
27741
  }
27991
27742
  }
27992
27743
  else {
27993
27744
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
27994
27745
  var piece = pieces[i];
27995
- y -= piece.margin.horizontal + piece.bound.height;
27996
- piece.image.y = y;
27746
+ var bound = bounds[i];
27747
+ var object = piece.object;
27748
+ y -= piece.margin.horizontal + bound.height;
27749
+ object.y = y - bound.y;
27997
27750
  }
27998
27751
  }
27999
27752
  };
@@ -28005,17 +27758,20 @@
28005
27758
  function DImagePieceLayouterPartCenter() {
28006
27759
  return _super !== null && _super.apply(this, arguments) || this;
28007
27760
  }
28008
- DImagePieceLayouterPartCenter.prototype.add = function (image, size, margin) {
28009
- var pieces = this._pieces;
28010
- pieces.push(image);
28011
- this._size = Math.max(this.size, size);
27761
+ DImagePieceLayouterPartCenter.prototype.add = function (image, bound, margin) {
27762
+ this._pieces.push(image);
27763
+ this._bounds.push(bound);
27764
+ this._size = Math.max(this.size, bound.width);
28012
27765
  };
28013
27766
  DImagePieceLayouterPartCenter.prototype.execute = function (pleft, pright, width) {
28014
27767
  var c = pleft + (width - pleft - pright) * 0.5;
28015
27768
  var pieces = this._pieces;
27769
+ var bounds = this._bounds;
28016
27770
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28017
27771
  var piece = pieces[i];
28018
- piece.image.x = c - piece.bound.width * 0.5;
27772
+ var bound = bounds[i];
27773
+ var object = piece.object;
27774
+ object.x = c - bound.x - bound.width * 0.5;
28019
27775
  }
28020
27776
  };
28021
27777
  return DImagePieceLayouterPartCenter;
@@ -28026,22 +27782,33 @@
28026
27782
  function DImagePieceLayouterPartLeft() {
28027
27783
  return _super !== null && _super.apply(this, arguments) || this;
28028
27784
  }
27785
+ DImagePieceLayouterPartLeft.prototype.add = function (image, bound, margin) {
27786
+ this._pieces.push(image);
27787
+ this._bounds.push(bound);
27788
+ this._size += margin + bound.width;
27789
+ this._margin = margin;
27790
+ };
28029
27791
  DImagePieceLayouterPartLeft.prototype.execute = function (pleft) {
28030
27792
  var pieces = this._pieces;
27793
+ var bounds = this._bounds;
28031
27794
  var x = pleft;
28032
27795
  if (this._text !== undefined) {
28033
27796
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28034
27797
  var piece = pieces[i];
28035
- piece.image.x = x;
28036
- x += piece.bound.width + piece.margin.horizontal;
27798
+ var bound = bounds[i];
27799
+ var object = piece.object;
27800
+ object.x = x - bound.x;
27801
+ x += bound.width + piece.margin.horizontal;
28037
27802
  }
28038
27803
  }
28039
27804
  else {
28040
27805
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28041
27806
  var piece = pieces[i];
27807
+ var bound = bounds[i];
27808
+ var object = piece.object;
28042
27809
  x += piece.margin.horizontal;
28043
- piece.image.x = x;
28044
- x += piece.bound.width;
27810
+ object.x = x - bound.x;
27811
+ x += bound.width;
28045
27812
  }
28046
27813
  }
28047
27814
  };
@@ -28053,17 +27820,20 @@
28053
27820
  function DImagePieceLayouterPartMiddle() {
28054
27821
  return _super !== null && _super.apply(this, arguments) || this;
28055
27822
  }
28056
- DImagePieceLayouterPartMiddle.prototype.add = function (image, size, margin) {
28057
- var pieces = this._pieces;
28058
- pieces.push(image);
28059
- this._size = Math.max(this.size, size);
27823
+ DImagePieceLayouterPartMiddle.prototype.add = function (image, bound, margin) {
27824
+ this._pieces.push(image);
27825
+ this._bounds.push(bound);
27826
+ this._size = Math.max(this.size, bound.height);
28060
27827
  };
28061
27828
  DImagePieceLayouterPartMiddle.prototype.execute = function (ptop, pbottom, height) {
28062
27829
  var c = ptop + (height - ptop - pbottom) * 0.5;
28063
27830
  var pieces = this._pieces;
27831
+ var bounds = this._bounds;
28064
27832
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28065
27833
  var piece = pieces[i];
28066
- piece.image.y = c - piece.bound.height * 0.5;
27834
+ var bound = bounds[i];
27835
+ var object = piece.object;
27836
+ object.y = c - bound.y - bound.height * 0.5;
28067
27837
  }
28068
27838
  };
28069
27839
  return DImagePieceLayouterPartMiddle;
@@ -28074,23 +27844,34 @@
28074
27844
  function DImagePieceLayouterPartRight() {
28075
27845
  return _super !== null && _super.apply(this, arguments) || this;
28076
27846
  }
27847
+ DImagePieceLayouterPartRight.prototype.add = function (image, bound, margin) {
27848
+ this._pieces.push(image);
27849
+ this._bounds.push(bound);
27850
+ this._size += margin + bound.width;
27851
+ this._margin = margin;
27852
+ };
28077
27853
  DImagePieceLayouterPartRight.prototype.execute = function (pright, width) {
28078
27854
  var pieces = this._pieces;
27855
+ var bounds = this._bounds;
28079
27856
  var x = width - pright;
28080
27857
  if (this._text !== undefined) {
28081
27858
  var margin = 0;
28082
27859
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28083
27860
  var piece = pieces[i];
28084
- x -= margin + piece.bound.width;
28085
- piece.image.x = x;
27861
+ var bound = bounds[i];
27862
+ var object = piece.object;
27863
+ x -= margin + bound.width;
27864
+ object.x = x - bound.x;
28086
27865
  margin = piece.margin.horizontal;
28087
27866
  }
28088
27867
  }
28089
27868
  else {
28090
27869
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28091
27870
  var piece = pieces[i];
28092
- x -= piece.margin.horizontal + piece.bound.width;
28093
- piece.image.x = x;
27871
+ var bound = bounds[i];
27872
+ var object = piece.object;
27873
+ x -= piece.margin.horizontal + bound.width;
27874
+ object.x = x - bound.x;
28094
27875
  }
28095
27876
  }
28096
27877
  };
@@ -28102,24 +27883,35 @@
28102
27883
  function DImagePieceLayouterPartTop() {
28103
27884
  return _super !== null && _super.apply(this, arguments) || this;
28104
27885
  }
27886
+ DImagePieceLayouterPartTop.prototype.add = function (image, bound, margin) {
27887
+ this._pieces.push(image);
27888
+ this._bounds.push(bound);
27889
+ this._size += margin + bound.height;
27890
+ this._margin = margin;
27891
+ };
28105
27892
  DImagePieceLayouterPartTop.prototype.execute = function (ptop) {
28106
27893
  var pieces = this._pieces;
27894
+ var bounds = this._bounds;
28107
27895
  var y = ptop;
28108
27896
  if (this._text !== undefined) {
28109
27897
  var margin = 0;
28110
27898
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28111
27899
  var piece = pieces[i];
28112
- piece.image.y = margin + y;
28113
- y += piece.bound.height;
27900
+ var bound = bounds[i];
27901
+ var object = piece.object;
27902
+ object.y = margin + y - bound.y;
27903
+ y += bound.height;
28114
27904
  margin = piece.margin.vertical;
28115
27905
  }
28116
27906
  }
28117
27907
  else {
28118
27908
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28119
27909
  var piece = pieces[i];
27910
+ var bound = bounds[i];
27911
+ var object = piece.object;
28120
27912
  y += piece.margin.vertical;
28121
- piece.image.y = y;
28122
- y += piece.bound.height;
27913
+ object.y = y - bound.y;
27914
+ y += bound.height;
28123
27915
  }
28124
27916
  }
28125
27917
  };
@@ -28145,35 +27937,31 @@
28145
27937
  this.text = undefined;
28146
27938
  };
28147
27939
  DImagePieceLayouterPartContainer.prototype.add = function (image) {
28148
- var imageImage = image.image;
28149
- if (imageImage != null) {
28150
- var imageBound = image.bound;
28151
- var imageBoundWidth = imageBound.width;
28152
- var imageBoundHeight = imageBound.height;
28153
- var imageMargin = image.margin;
28154
- var imageMarginHorizontal = imageMargin.horizontal;
28155
- var imageMarginVertical = imageMargin.vertical;
28156
- var imageAlign = image.align;
28157
- switch (imageAlign.horizontal) {
27940
+ var object = image.object;
27941
+ if (object != null) {
27942
+ var bound = object.getLocalBounds();
27943
+ var margin = image.margin;
27944
+ var align = image.align;
27945
+ switch (align.horizontal) {
28158
27946
  case DAlignHorizontal.LEFT:
28159
- this.left.add(image, imageBoundWidth, imageMarginHorizontal);
27947
+ this.left.add(image, bound, margin.horizontal);
28160
27948
  break;
28161
27949
  case DAlignHorizontal.CENTER:
28162
- this.center.add(image, imageBoundWidth, imageMarginHorizontal);
27950
+ this.center.add(image, bound, margin.horizontal);
28163
27951
  break;
28164
27952
  case DAlignHorizontal.RIGHT:
28165
- this.right.add(image, imageBoundWidth, imageMarginHorizontal);
27953
+ this.right.add(image, bound, margin.horizontal);
28166
27954
  break;
28167
27955
  }
28168
- switch (imageAlign.vertical) {
27956
+ switch (align.vertical) {
28169
27957
  case DAlignVertical.TOP:
28170
- this.top.add(image, imageBoundHeight, imageMarginVertical);
27958
+ this.top.add(image, bound, margin.vertical);
28171
27959
  break;
28172
27960
  case DAlignVertical.MIDDLE:
28173
- this.middle.add(image, imageBoundHeight, imageMarginVertical);
27961
+ this.middle.add(image, bound, margin.vertical);
28174
27962
  break;
28175
27963
  case DAlignVertical.BOTTOM:
28176
- this.bottom.add(image, imageBoundHeight, imageMarginVertical);
27964
+ this.bottom.add(image, bound, margin.vertical);
28177
27965
  break;
28178
27966
  }
28179
27967
  }
@@ -28319,8 +28107,8 @@
28319
28107
  this.border.clear();
28320
28108
  };
28321
28109
  DImagePieceLayouter.prototype.add = function (image) {
28322
- var imageImage = image.image;
28323
- if (imageImage) {
28110
+ var object = image.object;
28111
+ if (object) {
28324
28112
  switch (image.align.with) {
28325
28113
  case DAlignWith.TEXT:
28326
28114
  this.text.add(image);
@@ -29820,12 +29608,20 @@
29820
29608
  DApplications.update(this);
29821
29609
  }
29822
29610
  }
29823
- else {
29611
+ else if (text.text !== formatted) {
29824
29612
  text.text = formatted;
29825
29613
  this.toDirty();
29826
29614
  DApplications.update(this);
29827
29615
  }
29828
29616
  }
29617
+ else {
29618
+ var text = this._text;
29619
+ if (text != null && text.text !== "") {
29620
+ text.text = "";
29621
+ this.toDirty();
29622
+ DApplications.update(this);
29623
+ }
29624
+ }
29829
29625
  };
29830
29626
  DTextBase.prototype.newText = function () {
29831
29627
  return new DDynamicText(this._textStyle);
@@ -29987,16 +29783,670 @@
29987
29783
  return DTextBase;
29988
29784
  }(DBase));
29989
29785
 
29786
+ var DImageBaseThemeWrapperOther = /** @class */ (function () {
29787
+ function DImageBaseThemeWrapperOther(theme) {
29788
+ this._theme = theme;
29789
+ }
29790
+ DImageBaseThemeWrapperOther.prototype.getImageAlignHorizontal = function () {
29791
+ return this._theme.getImageAlignHorizontal();
29792
+ };
29793
+ DImageBaseThemeWrapperOther.prototype.getImageAlignVertical = function () {
29794
+ return this._theme.getImageAlignVertical();
29795
+ };
29796
+ DImageBaseThemeWrapperOther.prototype.getImageAlignWith = function () {
29797
+ return this._theme.getImageAlignWith();
29798
+ };
29799
+ DImageBaseThemeWrapperOther.prototype.getImageMarginHorizontal = function () {
29800
+ return this._theme.getImageMarginHorizontal();
29801
+ };
29802
+ DImageBaseThemeWrapperOther.prototype.getImageMarginVertial = function () {
29803
+ return this._theme.getImageMarginVertial();
29804
+ };
29805
+ DImageBaseThemeWrapperOther.prototype.getImageTintColor = function (state) {
29806
+ return this._theme.getImageTintColor(state);
29807
+ };
29808
+ DImageBaseThemeWrapperOther.prototype.getImageTintAlpha = function (state) {
29809
+ return this._theme.getImageTintAlpha(state);
29810
+ };
29811
+ DImageBaseThemeWrapperOther.prototype.getImageRotation = function (state) {
29812
+ return this._theme.getImageRotation(state);
29813
+ };
29814
+ DImageBaseThemeWrapperOther.prototype.getImageSource = function (state) {
29815
+ return null;
29816
+ };
29817
+ return DImageBaseThemeWrapperOther;
29818
+ }());
29819
+
29820
+ var DImageBaseThemeWrapperSecondary = /** @class */ (function () {
29821
+ function DImageBaseThemeWrapperSecondary(theme) {
29822
+ this._theme = theme;
29823
+ }
29824
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignHorizontal = function () {
29825
+ return this._theme.getSecondaryImageAlignHorizontal();
29826
+ };
29827
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignVertical = function () {
29828
+ return this._theme.getSecondaryImageAlignVertical();
29829
+ };
29830
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignWith = function () {
29831
+ return this._theme.getSecondaryImageAlignWith();
29832
+ };
29833
+ DImageBaseThemeWrapperSecondary.prototype.getImageMarginHorizontal = function () {
29834
+ return this._theme.getSecondaryImageMarginHorizontal();
29835
+ };
29836
+ DImageBaseThemeWrapperSecondary.prototype.getImageMarginVertial = function () {
29837
+ return this._theme.getSecondaryImageMarginVertial();
29838
+ };
29839
+ DImageBaseThemeWrapperSecondary.prototype.getImageTintColor = function (state) {
29840
+ return this._theme.getSecondaryImageTintColor(state);
29841
+ };
29842
+ DImageBaseThemeWrapperSecondary.prototype.getImageTintAlpha = function (state) {
29843
+ return this._theme.getSecondaryImageTintAlpha(state);
29844
+ };
29845
+ DImageBaseThemeWrapperSecondary.prototype.getImageRotation = function (state) {
29846
+ return this._theme.getSecondaryImageRotation(state);
29847
+ };
29848
+ DImageBaseThemeWrapperSecondary.prototype.getImageSource = function (state) {
29849
+ var _a, _b, _c;
29850
+ return (_c = (_b = (_a = this._theme).getSecondaryImageSource) === null || _b === void 0 ? void 0 : _b.call(_a, state)) !== null && _c !== void 0 ? _c : null;
29851
+ };
29852
+ return DImageBaseThemeWrapperSecondary;
29853
+ }());
29854
+
29855
+ var DImageBaseThemeWrapperTertiary = /** @class */ (function () {
29856
+ function DImageBaseThemeWrapperTertiary(theme) {
29857
+ this._theme = theme;
29858
+ }
29859
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignHorizontal = function () {
29860
+ return this._theme.getTertiaryImageAlignHorizontal();
29861
+ };
29862
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignVertical = function () {
29863
+ return this._theme.getTertiaryImageAlignVertical();
29864
+ };
29865
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignWith = function () {
29866
+ return this._theme.getTertiaryImageAlignWith();
29867
+ };
29868
+ DImageBaseThemeWrapperTertiary.prototype.getImageMarginHorizontal = function () {
29869
+ return this._theme.getTertiaryImageMarginHorizontal();
29870
+ };
29871
+ DImageBaseThemeWrapperTertiary.prototype.getImageMarginVertial = function () {
29872
+ return this._theme.getTertiaryImageMarginVertial();
29873
+ };
29874
+ DImageBaseThemeWrapperTertiary.prototype.getImageTintColor = function (state) {
29875
+ return this._theme.getTertiaryImageTintColor(state);
29876
+ };
29877
+ DImageBaseThemeWrapperTertiary.prototype.getImageTintAlpha = function (state) {
29878
+ return this._theme.getTertiaryImageTintAlpha(state);
29879
+ };
29880
+ DImageBaseThemeWrapperTertiary.prototype.getImageRotation = function (state) {
29881
+ return this._theme.getTertiaryImageRotation(state);
29882
+ };
29883
+ DImageBaseThemeWrapperTertiary.prototype.getImageSource = function (state) {
29884
+ var _a, _b, _c;
29885
+ return (_c = (_b = (_a = this._theme).getTertiaryImageSource) === null || _b === void 0 ? void 0 : _b.call(_a, state)) !== null && _c !== void 0 ? _c : null;
29886
+ };
29887
+ return DImageBaseThemeWrapperTertiary;
29888
+ }());
29889
+
29890
+ var DImagePieceTintImpl = /** @class */ (function () {
29891
+ function DImagePieceTintImpl(parent, theme, options) {
29892
+ this._parent = parent;
29893
+ if (options != null) {
29894
+ this._color = options.color;
29895
+ this._alpha = options.alpha;
29896
+ }
29897
+ this._theme = theme;
29898
+ }
29899
+ Object.defineProperty(DImagePieceTintImpl.prototype, "color", {
29900
+ get: function () {
29901
+ return this._color;
29902
+ },
29903
+ set: function (color) {
29904
+ if (this._color !== color) {
29905
+ this._color = color;
29906
+ this.onChange();
29907
+ }
29908
+ },
29909
+ enumerable: false,
29910
+ configurable: true
29911
+ });
29912
+ DImagePieceTintImpl.prototype.getColor = function (state) {
29913
+ var color = this._color;
29914
+ if (color !== undefined) {
29915
+ if (isFunction(color)) {
29916
+ var result = color(state);
29917
+ if (result !== undefined) {
29918
+ return result;
29919
+ }
29920
+ }
29921
+ else {
29922
+ return color;
29923
+ }
29924
+ }
29925
+ return this._theme.getImageTintColor(state);
29926
+ };
29927
+ Object.defineProperty(DImagePieceTintImpl.prototype, "alpha", {
29928
+ get: function () {
29929
+ return this._alpha;
29930
+ },
29931
+ set: function (alpha) {
29932
+ if (this._alpha !== alpha) {
29933
+ this._alpha = alpha;
29934
+ this.onChange();
29935
+ }
29936
+ },
29937
+ enumerable: false,
29938
+ configurable: true
29939
+ });
29940
+ DImagePieceTintImpl.prototype.getAlpha = function (state) {
29941
+ var alpha = this._alpha;
29942
+ if (alpha !== undefined) {
29943
+ if (isFunction(alpha)) {
29944
+ var result = alpha(state);
29945
+ if (result !== undefined) {
29946
+ return result;
29947
+ }
29948
+ }
29949
+ else {
29950
+ return alpha;
29951
+ }
29952
+ }
29953
+ return this._theme.getImageTintAlpha(state);
29954
+ };
29955
+ DImagePieceTintImpl.prototype.set = function (color, alpha) {
29956
+ var isChanged = false;
29957
+ if (color != null && this._color !== color) {
29958
+ this._color = color;
29959
+ isChanged = true;
29960
+ }
29961
+ if (alpha != null && this._alpha !== alpha) {
29962
+ this._alpha = alpha;
29963
+ isChanged = true;
29964
+ }
29965
+ if (isChanged) {
29966
+ this.onChange();
29967
+ }
29968
+ return this;
29969
+ };
29970
+ DImagePieceTintImpl.prototype.onChange = function () {
29971
+ this._parent.updateTint();
29972
+ DApplications.update(this._parent);
29973
+ };
29974
+ return DImagePieceTintImpl;
29975
+ }());
29976
+
29977
+ var DImagePieceMarginImpl = /** @class */ (function () {
29978
+ function DImagePieceMarginImpl(parent, theme, options) {
29979
+ var _a, _b;
29980
+ this._parent = parent;
29981
+ this._vertical = (_a = options === null || options === void 0 ? void 0 : options.vertical) !== null && _a !== void 0 ? _a : theme.getImageMarginVertial();
29982
+ this._horizontal = (_b = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _b !== void 0 ? _b : theme.getImageMarginHorizontal();
29983
+ }
29984
+ Object.defineProperty(DImagePieceMarginImpl.prototype, "vertical", {
29985
+ get: function () {
29986
+ return this._vertical;
29987
+ },
29988
+ set: function (vertical) {
29989
+ if (this._vertical !== vertical) {
29990
+ this._vertical = vertical;
29991
+ this.onChange();
29992
+ }
29993
+ },
29994
+ enumerable: false,
29995
+ configurable: true
29996
+ });
29997
+ Object.defineProperty(DImagePieceMarginImpl.prototype, "horizontal", {
29998
+ get: function () {
29999
+ return this._horizontal;
30000
+ },
30001
+ set: function (horizontal) {
30002
+ if (this._horizontal !== horizontal) {
30003
+ this._horizontal = horizontal;
30004
+ this.onChange();
30005
+ }
30006
+ },
30007
+ enumerable: false,
30008
+ configurable: true
30009
+ });
30010
+ DImagePieceMarginImpl.prototype.set = function (vertical, horizontal) {
30011
+ var isChanged = false;
30012
+ if (vertical != null && this._vertical !== vertical) {
30013
+ this._vertical = vertical;
30014
+ isChanged = true;
30015
+ }
30016
+ if (horizontal != null && this._horizontal !== horizontal) {
30017
+ this._horizontal = horizontal;
30018
+ isChanged = true;
30019
+ }
30020
+ if (isChanged) {
30021
+ this.onChange();
30022
+ }
30023
+ return this;
30024
+ };
30025
+ DImagePieceMarginImpl.prototype.onChange = function () {
30026
+ this._parent.onUpdate();
30027
+ };
30028
+ return DImagePieceMarginImpl;
30029
+ }());
30030
+
30031
+ var DImagePieceAlignImpl = /** @class */ (function () {
30032
+ function DImagePieceAlignImpl(parent, theme, options) {
30033
+ var _a, _b, _c;
30034
+ this._parent = parent;
30035
+ this._with = toEnum((_a = options === null || options === void 0 ? void 0 : options.with) !== null && _a !== void 0 ? _a : theme.getImageAlignWith(), DAlignWith);
30036
+ this._vertical = toEnum((_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getImageAlignVertical(), DAlignVertical);
30037
+ this._horizontal = toEnum((_c = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _c !== void 0 ? _c : theme.getImageAlignHorizontal(), DAlignHorizontal);
30038
+ }
30039
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "with", {
30040
+ get: function () {
30041
+ return this._with;
30042
+ },
30043
+ set: function (w) {
30044
+ w = toEnum(w, DAlignWith);
30045
+ if (this._with !== w) {
30046
+ this._with = w;
30047
+ this.onChange();
30048
+ }
30049
+ },
30050
+ enumerable: false,
30051
+ configurable: true
30052
+ });
30053
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "vertical", {
30054
+ get: function () {
30055
+ return this._vertical;
30056
+ },
30057
+ set: function (vertical) {
30058
+ vertical = toEnum(vertical, DAlignVertical);
30059
+ if (this._vertical !== vertical) {
30060
+ this._vertical = vertical;
30061
+ this.onChange();
30062
+ }
30063
+ },
30064
+ enumerable: false,
30065
+ configurable: true
30066
+ });
30067
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "horizontal", {
30068
+ get: function () {
30069
+ return this._horizontal;
30070
+ },
30071
+ set: function (horizontal) {
30072
+ horizontal = toEnum(horizontal, DAlignHorizontal);
30073
+ if (this._horizontal !== horizontal) {
30074
+ this._horizontal = horizontal;
30075
+ this.onChange();
30076
+ }
30077
+ },
30078
+ enumerable: false,
30079
+ configurable: true
30080
+ });
30081
+ DImagePieceAlignImpl.prototype.set = function (w, vertical, horizontal) {
30082
+ var isChanged = false;
30083
+ if (w != null) {
30084
+ w = toEnum(w, DAlignWith);
30085
+ if (this._with !== w) {
30086
+ this._with = w;
30087
+ isChanged = true;
30088
+ }
30089
+ }
30090
+ if (vertical != null) {
30091
+ vertical = toEnum(vertical, DAlignVertical);
30092
+ if (this._vertical !== vertical) {
30093
+ this._vertical = vertical;
30094
+ isChanged = true;
30095
+ }
30096
+ }
30097
+ if (horizontal != null) {
30098
+ horizontal = toEnum(horizontal, DAlignHorizontal);
30099
+ if (this._horizontal !== horizontal) {
30100
+ this._horizontal = horizontal;
30101
+ isChanged = true;
30102
+ }
30103
+ }
30104
+ if (isChanged) {
30105
+ this.onChange();
30106
+ }
30107
+ return this;
30108
+ };
30109
+ DImagePieceAlignImpl.prototype.onChange = function () {
30110
+ this._parent.onUpdate();
30111
+ };
30112
+ return DImagePieceAlignImpl;
30113
+ }());
30114
+
30115
+ var DImagePieceImpl = /** @class */ (function () {
30116
+ function DImagePieceImpl(parent, theme, options) {
30117
+ var _this = this;
30118
+ this._parent = parent;
30119
+ this._theme = theme;
30120
+ this._object = null;
30121
+ this._align = new DImagePieceAlignImpl(this, theme, options === null || options === void 0 ? void 0 : options.align);
30122
+ this._margin = new DImagePieceMarginImpl(this, theme, options === null || options === void 0 ? void 0 : options.margin);
30123
+ this._tint = new DImagePieceTintImpl(this, theme, options === null || options === void 0 ? void 0 : options.tint);
30124
+ this._rotation = options === null || options === void 0 ? void 0 : options.rotation;
30125
+ this._source = options === null || options === void 0 ? void 0 : options.source;
30126
+ this._computed = null;
30127
+ this._onUpdateBound = function () {
30128
+ _this.onUpdate();
30129
+ };
30130
+ }
30131
+ Object.defineProperty(DImagePieceImpl.prototype, "object", {
30132
+ get: function () {
30133
+ return this._object;
30134
+ },
30135
+ enumerable: false,
30136
+ configurable: true
30137
+ });
30138
+ Object.defineProperty(DImagePieceImpl.prototype, "align", {
30139
+ get: function () {
30140
+ return this._align;
30141
+ },
30142
+ enumerable: false,
30143
+ configurable: true
30144
+ });
30145
+ Object.defineProperty(DImagePieceImpl.prototype, "margin", {
30146
+ get: function () {
30147
+ return this._margin;
30148
+ },
30149
+ enumerable: false,
30150
+ configurable: true
30151
+ });
30152
+ Object.defineProperty(DImagePieceImpl.prototype, "tint", {
30153
+ get: function () {
30154
+ return this._tint;
30155
+ },
30156
+ enumerable: false,
30157
+ configurable: true
30158
+ });
30159
+ Object.defineProperty(DImagePieceImpl.prototype, "source", {
30160
+ get: function () {
30161
+ return this._source;
30162
+ },
30163
+ set: function (source) {
30164
+ if (this._source !== source) {
30165
+ this._source = source;
30166
+ if (this.updateSource()) {
30167
+ this.onUpdate();
30168
+ }
30169
+ }
30170
+ },
30171
+ enumerable: false,
30172
+ configurable: true
30173
+ });
30174
+ Object.defineProperty(DImagePieceImpl.prototype, "rotation", {
30175
+ get: function () {
30176
+ return this._rotation;
30177
+ },
30178
+ set: function (rotation) {
30179
+ if (this._rotation !== rotation) {
30180
+ this._rotation = rotation;
30181
+ if (this.updateRotation()) {
30182
+ DApplications.update(this._parent);
30183
+ }
30184
+ }
30185
+ },
30186
+ enumerable: false,
30187
+ configurable: true
30188
+ });
30189
+ DImagePieceImpl.prototype.computeSource = function () {
30190
+ var source = this._source;
30191
+ if (source !== undefined) {
30192
+ if (isFunction(source)) {
30193
+ var result = source(this._parent.state);
30194
+ if (result !== undefined) {
30195
+ return result;
30196
+ }
30197
+ }
30198
+ else {
30199
+ return source;
30200
+ }
30201
+ }
30202
+ return this._theme.getImageSource(this._parent.state);
30203
+ };
30204
+ DImagePieceImpl.prototype.onStateChange = function (newState, oldState) {
30205
+ this.updateTint();
30206
+ this.updateRotation();
30207
+ };
30208
+ DImagePieceImpl.prototype.isTintAware = function (target) {
30209
+ return target != null && "tint" in target;
30210
+ };
30211
+ /**
30212
+ * Updates the tint.
30213
+ *
30214
+ * @returns True if the tint is changed.
30215
+ */
30216
+ DImagePieceImpl.prototype.updateTint = function () {
30217
+ var object = this._object;
30218
+ if (object) {
30219
+ if (this.isTintAware(object)) {
30220
+ var state = this._parent.state;
30221
+ var color = this._tint.getColor(state);
30222
+ if (color != null) {
30223
+ var result = false;
30224
+ if (object.tint !== color) {
30225
+ object.tint = color;
30226
+ result = true;
30227
+ }
30228
+ var alpha = this._tint.getAlpha(state);
30229
+ if (object.alpha !== alpha) {
30230
+ object.alpha = alpha;
30231
+ result = true;
30232
+ }
30233
+ return result;
30234
+ }
30235
+ }
30236
+ }
30237
+ return false;
30238
+ };
30239
+ DImagePieceImpl.prototype.toRotation = function (theme, state) {
30240
+ var rotation = this._rotation;
30241
+ if (rotation != null) {
30242
+ if (isFunction(rotation)) {
30243
+ var result = rotation(state);
30244
+ if (result !== undefined) {
30245
+ return result;
30246
+ }
30247
+ }
30248
+ else {
30249
+ return rotation;
30250
+ }
30251
+ }
30252
+ return theme.getImageRotation(state);
30253
+ };
30254
+ DImagePieceImpl.prototype.updateRotation = function () {
30255
+ var object = this._object;
30256
+ if (object) {
30257
+ var theme = this._theme;
30258
+ var state = this._parent.state;
30259
+ var rotation = this.toRotation(theme, state);
30260
+ if (rotation != null) {
30261
+ var transform = object.transform;
30262
+ if (transform.rotation !== rotation) {
30263
+ transform.rotation = rotation;
30264
+ return true;
30265
+ }
30266
+ }
30267
+ }
30268
+ return false;
30269
+ };
30270
+ /**
30271
+ * Updates the computed source.
30272
+ *
30273
+ * @returns True if the computed source is changed
30274
+ */
30275
+ DImagePieceImpl.prototype.updateSource = function () {
30276
+ var newComputed = this.computeSource();
30277
+ var oldComputed = this._computed;
30278
+ if (newComputed !== oldComputed) {
30279
+ this._computed = newComputed;
30280
+ var parent_1 = this._parent;
30281
+ var oldObject = this._object;
30282
+ var onUpdateBound = this._onUpdateBound;
30283
+ if (newComputed instanceof pixi_js.Texture) {
30284
+ if (oldComputed instanceof pixi_js.Texture) {
30285
+ oldComputed.off("update", onUpdateBound);
30286
+ if (oldObject instanceof pixi_js.Sprite) {
30287
+ oldObject.texture = newComputed;
30288
+ newComputed.on("update", onUpdateBound);
30289
+ }
30290
+ }
30291
+ else {
30292
+ if (oldObject != null) {
30293
+ parent_1.removeChild(oldObject);
30294
+ }
30295
+ var newObject = new pixi_js.Sprite(newComputed);
30296
+ newObject.anchor.set(0.5, 0.5);
30297
+ var overflowMask = parent_1.getOverflowMask();
30298
+ if (overflowMask) {
30299
+ newObject.mask = overflowMask;
30300
+ }
30301
+ newComputed.on("update", onUpdateBound);
30302
+ parent_1.addChild(newObject);
30303
+ this._object = newObject;
30304
+ }
30305
+ }
30306
+ else {
30307
+ if (oldComputed instanceof pixi_js.Texture) {
30308
+ oldComputed.off("update", onUpdateBound);
30309
+ if (oldObject != null) {
30310
+ parent_1.removeChild(oldObject);
30311
+ oldObject.destroy();
30312
+ }
30313
+ }
30314
+ else if (oldObject != null) {
30315
+ parent_1.removeChild(oldObject);
30316
+ }
30317
+ if (newComputed != null) {
30318
+ var overflowMask = parent_1.getOverflowMask();
30319
+ if (overflowMask) {
30320
+ newComputed.mask = overflowMask;
30321
+ }
30322
+ parent_1.addChild(newComputed);
30323
+ }
30324
+ this._object = newComputed;
30325
+ }
30326
+ return true;
30327
+ }
30328
+ return false;
30329
+ };
30330
+ DImagePieceImpl.prototype.isRefitable = function (target) {
30331
+ return target != null && target === this._object;
30332
+ };
30333
+ DImagePieceImpl.prototype.destroy = function () {
30334
+ this.source = null;
30335
+ };
30336
+ DImagePieceImpl.prototype.onUpdate = function () {
30337
+ this._parent.toDirty();
30338
+ DApplications.update(this._parent);
30339
+ };
30340
+ return DImagePieceImpl;
30341
+ }());
30342
+
30343
+ var DImagePieceContainerImpl = /** @class */ (function () {
30344
+ function DImagePieceContainerImpl(parent, theme, options) {
30345
+ this._parent = parent;
30346
+ this._theme = theme;
30347
+ var pieces = [];
30348
+ this._pieces = pieces;
30349
+ if (options != null) {
30350
+ var images = options.images;
30351
+ if (images != null) {
30352
+ pieces.push(this.newImage(theme, 0 < images.length ? images[0] : undefined));
30353
+ if (theme.getSecondaryImageSource != null || 1 < images.length) {
30354
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme), images[1]));
30355
+ }
30356
+ if (theme.getTertiaryImageSource != null || 2 < images.length) {
30357
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme), images[2]));
30358
+ }
30359
+ if (3 < images.length) {
30360
+ var other = new DImageBaseThemeWrapperOther(theme);
30361
+ for (var i = 3, imax = images.length; i < imax; ++i) {
30362
+ pieces.push(this.newImage(other, images[i]));
30363
+ }
30364
+ }
30365
+ }
30366
+ else {
30367
+ pieces.push(this.newImage(theme, options.image));
30368
+ if (theme.getSecondaryImageSource != null) {
30369
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30370
+ }
30371
+ if (theme.getTertiaryImageSource != null) {
30372
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30373
+ }
30374
+ }
30375
+ }
30376
+ else {
30377
+ pieces.push(this.newImage(theme));
30378
+ if (theme.getSecondaryImageSource != null) {
30379
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30380
+ }
30381
+ if (theme.getTertiaryImageSource != null) {
30382
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30383
+ }
30384
+ }
30385
+ }
30386
+ DImagePieceContainerImpl.prototype.newImage = function (theme, options) {
30387
+ return new DImagePieceImpl(this._parent, theme, options);
30388
+ };
30389
+ DImagePieceContainerImpl.prototype.onStateChange = function (newState, oldState) {
30390
+ var pieces = this._pieces;
30391
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30392
+ pieces[i].onStateChange(newState, oldState);
30393
+ }
30394
+ };
30395
+ DImagePieceContainerImpl.prototype.isRefitable = function (target) {
30396
+ var pieces = this._pieces;
30397
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30398
+ if (pieces[i].isRefitable(target)) {
30399
+ return true;
30400
+ }
30401
+ }
30402
+ return false;
30403
+ };
30404
+ DImagePieceContainerImpl.prototype.updateTextAndImage = function (layouter) {
30405
+ var pieces = this._pieces;
30406
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30407
+ var piece = pieces[i];
30408
+ piece.updateSource();
30409
+ piece.updateTint();
30410
+ piece.updateRotation();
30411
+ layouter.add(piece);
30412
+ }
30413
+ };
30414
+ DImagePieceContainerImpl.prototype.add = function (options) {
30415
+ var result = this.newImage(this._theme, options);
30416
+ this._pieces.push(result);
30417
+ return result;
30418
+ };
30419
+ DImagePieceContainerImpl.prototype.get = function (index) {
30420
+ var pieces = this._pieces;
30421
+ if (0 <= index && index < pieces.length) {
30422
+ return pieces[index];
30423
+ }
30424
+ return null;
30425
+ };
30426
+ DImagePieceContainerImpl.prototype.remove = function (index) {
30427
+ var pieces = this._pieces;
30428
+ if (0 <= index && index < pieces.length) {
30429
+ pieces[index].destroy();
30430
+ return true;
30431
+ }
30432
+ return false;
30433
+ };
30434
+ DImagePieceContainerImpl.prototype.size = function () {
30435
+ return this._pieces.length;
30436
+ };
30437
+ DImagePieceContainerImpl.prototype.destroy = function () {
30438
+ var pieces = this._pieces;
30439
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30440
+ pieces[i].destroy();
30441
+ }
30442
+ };
30443
+ return DImagePieceContainerImpl;
30444
+ }());
30445
+
29990
30446
  /*
29991
30447
  * Copyright (C) 2019 Toshiba Corporation
29992
30448
  * SPDX-License-Identifier: Apache-2.0
29993
30449
  */
29994
- var hasSecondaryImageSource = function (theme) {
29995
- return !!theme.getSecondaryImageSource;
29996
- };
29997
- var hasTertiaryImageSource = function (theme) {
29998
- return !!theme.getTertiaryImageSource;
29999
- };
30000
30450
  /**
30001
30451
  * A base class for UI classes with an image support.
30002
30452
  * See {@link DImageBaseEvents} for event details.
@@ -30007,44 +30457,33 @@
30007
30457
  return _super !== null && _super.apply(this, arguments) || this;
30008
30458
  }
30009
30459
  DImageBase.prototype.init = function (options) {
30010
- this._images = this.newImages(this.theme, options);
30460
+ this.getImage();
30011
30461
  _super.prototype.init.call(this, options);
30012
30462
  };
30013
- DImageBase.prototype.newImages = function (theme, options) {
30014
- var images = [];
30015
- images.push(this.newImage(theme, this.toImageOptions(theme, options === null || options === void 0 ? void 0 : options.image)));
30016
- if (hasSecondaryImageSource(theme)) {
30017
- images.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30018
- }
30019
- if (hasTertiaryImageSource(theme)) {
30020
- images.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30021
- }
30022
- return images;
30023
- };
30024
- DImageBase.prototype.toImageOptions = function (theme, options) {
30025
- return options;
30026
- };
30027
- DImageBase.prototype.newImage = function (theme, options) {
30028
- return new DImagePiece(this, theme, this._textAlign, options);
30029
- };
30030
30463
  Object.defineProperty(DImageBase.prototype, "image", {
30031
30464
  get: function () {
30032
- return this._images[0].source;
30465
+ var _a;
30466
+ return ((_a = this._image) !== null && _a !== void 0 ? _a : (this._image = this.newImage()));
30033
30467
  },
30034
30468
  set: function (imageSource) {
30035
- var image = this._images[0];
30036
- image.source = imageSource;
30037
- image.updateSource();
30469
+ var image = this.image.get(0);
30470
+ if (image != null) {
30471
+ image.source = imageSource;
30472
+ }
30038
30473
  },
30039
30474
  enumerable: false,
30040
30475
  configurable: true
30041
30476
  });
30477
+ DImageBase.prototype.getImage = function () {
30478
+ var _a;
30479
+ return ((_a = this._image) !== null && _a !== void 0 ? _a : (this._image = this.newImage()));
30480
+ };
30481
+ DImageBase.prototype.newImage = function () {
30482
+ return new DImagePieceContainerImpl(this, this.theme, this.options);
30483
+ };
30042
30484
  DImageBase.prototype.onStateChange = function (newState, oldState) {
30043
30485
  _super.prototype.onStateChange.call(this, newState, oldState);
30044
- var images = this._images;
30045
- for (var i = 0, imax = images.length; i < imax; ++i) {
30046
- images[i].onStateChange(newState, oldState);
30047
- }
30486
+ this.getImage().onStateChange(newState, oldState);
30048
30487
  };
30049
30488
  DImageBase.prototype.updateText = function () {
30050
30489
  this.updateTextValue();
@@ -30052,15 +30491,8 @@
30052
30491
  };
30053
30492
  DImageBase.prototype.updateTextAndImage = function () {
30054
30493
  var _a;
30055
- var images = this._images;
30056
30494
  var layouter = ((_a = DImageBase.LAYOUTER) !== null && _a !== void 0 ? _a : (DImageBase.LAYOUTER = new DImagePieceLayouter()));
30057
- for (var i = 0, imax = images.length; i < imax; ++i) {
30058
- var image = images[i];
30059
- image.updateSource();
30060
- image.updateTint();
30061
- image.updateBound();
30062
- layouter.add(image);
30063
- }
30495
+ this.getImage().updateTextAndImage(layouter);
30064
30496
  var text = this._text;
30065
30497
  if (text != null) {
30066
30498
  this.updateTextColor(text);
@@ -30077,11 +30509,8 @@
30077
30509
  if (_super.prototype.isRefitable.call(this, target)) {
30078
30510
  return true;
30079
30511
  }
30080
- var images = this._images;
30081
- for (var i = 0, imax = images.length; i < imax; ++i) {
30082
- if (images[i].isRefitable(target)) {
30083
- return true;
30084
- }
30512
+ if (this.getImage().isRefitable(target)) {
30513
+ return true;
30085
30514
  }
30086
30515
  return false;
30087
30516
  };
@@ -30089,9 +30518,9 @@
30089
30518
  return "DImageBase";
30090
30519
  };
30091
30520
  DImageBase.prototype.destroy = function () {
30092
- var images = this._images;
30093
- for (var i = 0, imax = images.length; i < imax; ++i) {
30094
- images[i].destroy();
30521
+ var image = this._image;
30522
+ if (image != null) {
30523
+ image.destroy();
30095
30524
  }
30096
30525
  _super.prototype.destroy.call(this);
30097
30526
  };
@@ -52569,35 +52998,13 @@
52569
52998
  this.onColorChange();
52570
52999
  this.emit("change", newValue, oldValue, this);
52571
53000
  };
52572
- DButtonColor.prototype.toImageTintOptions = function (tint) {
52573
- var _this = this;
52574
- var color = function () { return _this._textValueComputed.color; };
52575
- if (tint) {
52576
- return {
52577
- color: tint.color || color,
52578
- alpha: tint.alpha
52579
- };
52580
- }
52581
- return {
52582
- color: color
52583
- };
52584
- };
52585
- DButtonColor.prototype.toImageOptions = function (theme, options) {
52586
- if (options) {
52587
- return {
52588
- source: options.source,
52589
- tint: this.toImageTintOptions(options.tint),
52590
- align: options.align,
52591
- margin: options.margin
52592
- };
52593
- }
52594
- return {
52595
- tint: this.toImageTintOptions()
52596
- };
52597
- };
52598
53001
  DButtonColor.prototype.onColorChange = function () {
52599
- if (this._images[0].updateTint()) {
52600
- DApplications.update(this);
53002
+ var image = this.image.get(0);
53003
+ if (image != null) {
53004
+ var value = this._textValueComputed;
53005
+ if (value != null) {
53006
+ image.tint.color = value.color;
53007
+ }
52601
53008
  }
52602
53009
  this.updateTextForcibly();
52603
53010
  };
@@ -65247,10 +65654,11 @@
65247
65654
  var _this = _super.call(this, options) || this;
65248
65655
  _this._isDone = true;
65249
65656
  _this._startTime = 0;
65657
+ var theme = _this.theme;
65250
65658
  var delay = options === null || options === void 0 ? void 0 : options.delay;
65251
- _this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : _this.theme.getDoneDelay();
65659
+ _this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : theme.getDoneDelay();
65252
65660
  var delayClose = delay === null || delay === void 0 ? void 0 : delay.close;
65253
- _this._delayClose = delayClose !== undefined ? delayClose : _this.theme.getCloseDelay();
65661
+ _this._delayClose = delayClose !== undefined ? delayClose : theme.getCloseDelay();
65254
65662
  _this._messageText = _this.message.text;
65255
65663
  return _this;
65256
65664
  }
@@ -65546,6 +65954,219 @@
65546
65954
  return DExpandable;
65547
65955
  }(DLayoutVertical));
65548
65956
 
65957
+ var STATE_INITIAL = 0;
65958
+ var STATE_STARTED = 1;
65959
+ var STATE_RESOLVED = 2;
65960
+ var STATE_REJECTED = 3;
65961
+ var DIndicatorProcessing = /** @class */ (function () {
65962
+ function DIndicatorProcessing(parent, options) {
65963
+ var _a, _b, _c, _d, _e, _f, _g;
65964
+ this._parent = parent;
65965
+ this._state = STATE_INITIAL;
65966
+ this._startTime = 0;
65967
+ // Delay
65968
+ var theme = this.theme;
65969
+ var delay = options === null || options === void 0 ? void 0 : options.delay;
65970
+ this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : theme.getProcessDoneDelay();
65971
+ var delayClose = delay === null || delay === void 0 ? void 0 : delay.close;
65972
+ this._delayClose = delayClose !== undefined ? delayClose : theme.getProcessCloseDelay();
65973
+ // Text
65974
+ var text = options === null || options === void 0 ? void 0 : options.text;
65975
+ this._isTextEnabled = (_b = text === null || text === void 0 ? void 0 : text.enabled) !== null && _b !== void 0 ? _b : theme.isProcessTextEnabled();
65976
+ this._textValue = (_c = text === null || text === void 0 ? void 0 : text.value) !== null && _c !== void 0 ? _c : theme.newProcessTextValue();
65977
+ // Image
65978
+ var image = options === null || options === void 0 ? void 0 : options.image;
65979
+ this._isImageEnabled = (_d = image === null || image === void 0 ? void 0 : image.enabled) !== null && _d !== void 0 ? _d : theme.isProcessImageEnabled();
65980
+ this._imageIndex = (_e = image === null || image === void 0 ? void 0 : image.index) !== null && _e !== void 0 ? _e : theme.getProcessImageIndex();
65981
+ this._imageSource = (_f = image === null || image === void 0 ? void 0 : image.source) !== null && _f !== void 0 ? _f : theme.newProcessImageSource();
65982
+ this._imageRotation = (_g = image === null || image === void 0 ? void 0 : image.rotation) !== null && _g !== void 0 ? _g : theme.newProcessImageRotation();
65983
+ // State
65984
+ this._wasReadOnly = false;
65985
+ }
65986
+ DIndicatorProcessing.prototype.start = function () {
65987
+ var state = this._state;
65988
+ if (state === STATE_INITIAL) {
65989
+ this._state = STATE_STARTED;
65990
+ this.onBegin();
65991
+ }
65992
+ else if (state === STATE_RESOLVED || state === STATE_REJECTED) {
65993
+ this._state = STATE_STARTED;
65994
+ this.onEnd();
65995
+ this.onBegin();
65996
+ }
65997
+ return this;
65998
+ };
65999
+ DIndicatorProcessing.prototype.onBegin = function () {
66000
+ this._startTime = Date.now();
66001
+ var timeoutId = this._timeoutId;
66002
+ if (timeoutId != null) {
66003
+ clearTimeout(timeoutId);
66004
+ }
66005
+ var closeTimeoutId = this._closeTimeoutId;
66006
+ if (closeTimeoutId != null) {
66007
+ clearTimeout(closeTimeoutId);
66008
+ }
66009
+ var parent = this._parent;
66010
+ var state = parent.state;
66011
+ state.lock();
66012
+ state.ticker.remove(DBaseState.PROCESSING).add(DBaseState.PROCESSING, 32);
66013
+ state.removeAll(DBaseState.SUCCEEDED, DBaseState.FAILED);
66014
+ this._wasReadOnly = state.isReadOnly;
66015
+ if (!this._wasReadOnly) {
66016
+ state.add(DBaseState.READ_ONLY);
66017
+ }
66018
+ state.unlock();
66019
+ if (this._isTextEnabled) {
66020
+ this._textValueBackup = parent.text;
66021
+ var textValue = this._textValue;
66022
+ if (textValue !== undefined) {
66023
+ parent.text = textValue;
66024
+ }
66025
+ }
66026
+ if (this._isImageEnabled) {
66027
+ var image = parent.image.get(this._imageIndex);
66028
+ if (image != null) {
66029
+ this._imageSourceBackup = image.source;
66030
+ this._imageRotationBackup = image.rotation;
66031
+ var imageSource = this._imageSource;
66032
+ if (imageSource !== undefined) {
66033
+ image.source = imageSource;
66034
+ }
66035
+ var imageRotation = this._imageRotation;
66036
+ if (imageRotation !== undefined) {
66037
+ image.rotation = imageRotation;
66038
+ }
66039
+ }
66040
+ }
66041
+ };
66042
+ DIndicatorProcessing.prototype.end = function () {
66043
+ var state = this._state;
66044
+ if (state === STATE_STARTED || state === STATE_RESOLVED || state === STATE_REJECTED) {
66045
+ this._state = STATE_INITIAL;
66046
+ this.onEnd();
66047
+ }
66048
+ return this;
66049
+ };
66050
+ DIndicatorProcessing.prototype.onEnd = function () {
66051
+ var timeoutId = this._timeoutId;
66052
+ if (timeoutId != null) {
66053
+ clearTimeout(timeoutId);
66054
+ }
66055
+ var closeTimeoutId = this._closeTimeoutId;
66056
+ if (closeTimeoutId != null) {
66057
+ clearTimeout(closeTimeoutId);
66058
+ }
66059
+ var parent = this._parent;
66060
+ var state = parent.state;
66061
+ state.lock();
66062
+ state.ticker.remove(DBaseState.PROCESSING);
66063
+ state.removeAll(DBaseState.SUCCEEDED, DBaseState.FAILED);
66064
+ if (!this._wasReadOnly) {
66065
+ state.remove(DBaseState.READ_ONLY);
66066
+ }
66067
+ state.unlock();
66068
+ if (this._isTextEnabled) {
66069
+ parent.text = this._textValueBackup;
66070
+ }
66071
+ if (this._isImageEnabled) {
66072
+ var image = parent.image.get(this._imageIndex);
66073
+ if (image != null) {
66074
+ image.source = this._imageSourceBackup;
66075
+ image.rotation = this._imageRotationBackup;
66076
+ }
66077
+ }
66078
+ };
66079
+ DIndicatorProcessing.prototype.resolve = function (message) {
66080
+ var _this = this;
66081
+ if (this._state === STATE_STARTED) {
66082
+ this._state = STATE_RESOLVED;
66083
+ var elapsedTime = Date.now() - this._startTime;
66084
+ var delay = this._delayDone - elapsedTime;
66085
+ if (0 < delay) {
66086
+ this._timeoutId = window.setTimeout(function () {
66087
+ _this._timeoutId = undefined;
66088
+ _this.onResolved(message);
66089
+ }, delay);
66090
+ }
66091
+ else {
66092
+ this.onResolved(message);
66093
+ }
66094
+ }
66095
+ };
66096
+ DIndicatorProcessing.prototype.onResolved = function (message) {
66097
+ var parent = this._parent;
66098
+ if (this._isTextEnabled && message != null) {
66099
+ parent.text = message;
66100
+ }
66101
+ var state = parent.state;
66102
+ state.lock();
66103
+ state.ticker.remove(DBaseState.PROCESSING);
66104
+ state.add(DBaseState.SUCCEEDED);
66105
+ state.remove(DBaseState.FAILED);
66106
+ if (!this._wasReadOnly) {
66107
+ state.remove(DBaseState.READ_ONLY);
66108
+ }
66109
+ state.unlock();
66110
+ this.onDone(this._delayClose);
66111
+ };
66112
+ DIndicatorProcessing.prototype.reject = function (message) {
66113
+ var _this = this;
66114
+ if (this._state === STATE_STARTED) {
66115
+ this._state = STATE_REJECTED;
66116
+ var elapsedTime = Date.now() - this._startTime;
66117
+ var delay = this._delayDone - elapsedTime;
66118
+ if (0 < delay) {
66119
+ this._timeoutId = window.setTimeout(function () {
66120
+ _this._timeoutId = undefined;
66121
+ _this.onRejected(message);
66122
+ }, delay);
66123
+ }
66124
+ else {
66125
+ this.onRejected(message);
66126
+ }
66127
+ }
66128
+ };
66129
+ DIndicatorProcessing.prototype.onRejected = function (message) {
66130
+ var parent = this._parent;
66131
+ if (this._isTextEnabled && message != null) {
66132
+ parent.text = message;
66133
+ }
66134
+ var state = parent.state;
66135
+ state.lock();
66136
+ state.ticker.remove(DBaseState.PROCESSING);
66137
+ state.add(DBaseState.FAILED);
66138
+ state.remove(DBaseState.SUCCEEDED);
66139
+ if (!this._wasReadOnly) {
66140
+ state.remove(DBaseState.READ_ONLY);
66141
+ }
66142
+ state.unlock();
66143
+ this.onDone(this._delayClose);
66144
+ };
66145
+ DIndicatorProcessing.prototype.onDone = function (delay) {
66146
+ var _this = this;
66147
+ if (delay != null) {
66148
+ this._closeTimeoutId = window.setTimeout(function () {
66149
+ _this._closeTimeoutId = undefined;
66150
+ _this.end();
66151
+ }, delay);
66152
+ }
66153
+ else {
66154
+ this.end();
66155
+ }
66156
+ };
66157
+ DIndicatorProcessing.prototype.getType = function () {
66158
+ return "DIndicatorProcessing";
66159
+ };
66160
+ Object.defineProperty(DIndicatorProcessing.prototype, "theme", {
66161
+ get: function () {
66162
+ return DThemes.get(this.getType());
66163
+ },
66164
+ enumerable: false,
66165
+ configurable: true
66166
+ });
66167
+ return DIndicatorProcessing;
66168
+ }());
66169
+
65549
66170
  /*
65550
66171
  * Copyright (C) 2019 Toshiba Corporation
65551
66172
  * SPDX-License-Identifier: Apache-2.0
@@ -73451,12 +74072,17 @@
73451
74072
  DTableHeaderCell.prototype.isCheckClicked = function (e) {
73452
74073
  if (e instanceof pixi_js.InteractionEvent && this._check.isEnabled) {
73453
74074
  if (this.isSortable) {
73454
- var image = this._images[1];
73455
- if (image && image.image != null) {
74075
+ var image = this.image.get(1);
74076
+ if (image) {
73456
74077
  var position = this.toClickPosition(e);
73457
- var bound = image.bound;
73458
- var margin = image.margin.horizontal;
73459
- return bound.left - margin <= position && position <= bound.right + margin;
74078
+ var object = image.object;
74079
+ if (object != null) {
74080
+ var bound = object.getLocalBounds();
74081
+ var margin = image.margin.horizontal;
74082
+ var x = object.x;
74083
+ return (x + bound.left - margin <= position &&
74084
+ position <= x + bound.right + margin);
74085
+ }
73460
74086
  }
73461
74087
  }
73462
74088
  else {
@@ -76774,9 +77400,13 @@
76774
77400
  DExpandable: DExpandable,
76775
77401
  DHtmlElementState: DHtmlElementState,
76776
77402
  DHtmlElement: DHtmlElement,
77403
+ DImageBaseThemeWrapperOther: DImageBaseThemeWrapperOther,
76777
77404
  DImageBaseThemeWrapperSecondary: DImageBaseThemeWrapperSecondary,
76778
77405
  DImageBaseThemeWrapperTertiary: DImageBaseThemeWrapperTertiary,
76779
77406
  DImageBase: DImageBase,
77407
+ DImagePieceAlignImpl: DImagePieceAlignImpl,
77408
+ DImagePieceContainerImpl: DImagePieceContainerImpl,
77409
+ DImagePieceImpl: DImagePieceImpl,
76780
77410
  DImagePieceLayouterPartBottom: DImagePieceLayouterPartBottom,
76781
77411
  DImagePieceLayouterPartCenter: DImagePieceLayouterPartCenter,
76782
77412
  DImagePieceLayouterPartContainer: DImagePieceLayouterPartContainer,
@@ -76786,8 +77416,10 @@
76786
77416
  DImagePieceLayouterPartTop: DImagePieceLayouterPartTop,
76787
77417
  DImagePieceLayouterPart: DImagePieceLayouterPart,
76788
77418
  DImagePieceLayouter: DImagePieceLayouter,
76789
- DImagePiece: DImagePiece,
77419
+ DImagePieceMarginImpl: DImagePieceMarginImpl,
77420
+ DImagePieceTintImpl: DImagePieceTintImpl,
76790
77421
  DImage: DImage,
77422
+ DIndicatorProcessing: DIndicatorProcessing,
76791
77423
  DInputAndLabel: DInputAndLabel,
76792
77424
  DInputBooleanButtonOff: DInputBooleanButtonOff,
76793
77425
  DInputBooleanButtonOn: DInputBooleanButtonOn,