@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
 
@@ -2674,6 +2674,7 @@ var DBaseState = {
2674
2674
  GESTURING: "GESTURING",
2675
2675
  PRESSED: "PRESSED",
2676
2676
  INVALID: "INVALID",
2677
+ PROCESSING: "PROCESSING",
2677
2678
  SUCCEEDED: "SUCCEEDED",
2678
2679
  FAILED: "FAILED",
2679
2680
  WARNED: "WARNED",
@@ -3738,6 +3739,37 @@ var DBaseStateSetImpl = /** @class */ (function () {
3738
3739
  enumerable: false,
3739
3740
  configurable: true
3740
3741
  });
3742
+ Object.defineProperty(DBaseStateSetImpl.prototype, "isProcessing", {
3743
+ get: function () {
3744
+ return this.is(DBaseState.PROCESSING);
3745
+ },
3746
+ set: function (processing) {
3747
+ this.set(DBaseState.PROCESSING, processing);
3748
+ },
3749
+ enumerable: false,
3750
+ configurable: true
3751
+ });
3752
+ Object.defineProperty(DBaseStateSetImpl.prototype, "inProcessing", {
3753
+ get: function () {
3754
+ return this.in(DBaseState.PROCESSING);
3755
+ },
3756
+ enumerable: false,
3757
+ configurable: true
3758
+ });
3759
+ Object.defineProperty(DBaseStateSetImpl.prototype, "onProcessing", {
3760
+ get: function () {
3761
+ return this.on(DBaseState.PROCESSING);
3762
+ },
3763
+ enumerable: false,
3764
+ configurable: true
3765
+ });
3766
+ Object.defineProperty(DBaseStateSetImpl.prototype, "underProcessing", {
3767
+ get: function () {
3768
+ return this.under(DBaseState.PROCESSING);
3769
+ },
3770
+ enumerable: false,
3771
+ configurable: true
3772
+ });
3741
3773
  Object.defineProperty(DBaseStateSetImpl.prototype, "isSucceeded", {
3742
3774
  get: function () {
3743
3775
  return this.is(DBaseState.SUCCEEDED);
@@ -14825,11 +14857,35 @@ var DBase = /** @class */ (function (_super) {
14825
14857
  for (var i = 0, imax = children.length; i < imax; ++i) {
14826
14858
  var child = children[i];
14827
14859
  if (child.visible) {
14828
- if (this.hasRefitableWidth(child)) {
14829
- width = Math.max(width, child.x + child.width);
14830
- }
14831
- if (this.hasRefitableHeight(child)) {
14832
- height = Math.max(height, child.y + child.height);
14860
+ var rw = this.hasRefitableWidth(child);
14861
+ var rh = this.hasRefitableHeight(child);
14862
+ if (rw || rh) {
14863
+ if (child instanceof DBase) {
14864
+ if (rw) {
14865
+ width = Math.max(width, child.x + child.width);
14866
+ }
14867
+ if (rh) {
14868
+ height = Math.max(height, child.y + child.height);
14869
+ }
14870
+ }
14871
+ else if (child instanceof pixi_js.Container) {
14872
+ var bound = child.getLocalBounds(undefined, true);
14873
+ if (rw) {
14874
+ width = Math.max(width, child.x + bound.x + bound.width);
14875
+ }
14876
+ if (rh) {
14877
+ height = Math.max(height, child.y + bound.y + bound.height);
14878
+ }
14879
+ }
14880
+ else {
14881
+ var bound = child.getLocalBounds();
14882
+ if (rw) {
14883
+ width = Math.max(width, child.x + bound.x + bound.width);
14884
+ }
14885
+ if (rh) {
14886
+ height = Math.max(height, child.y + bound.y + bound.height);
14887
+ }
14888
+ }
14833
14889
  }
14834
14890
  }
14835
14891
  }
@@ -14842,7 +14898,17 @@ var DBase = /** @class */ (function (_super) {
14842
14898
  for (var i = 0, imax = children.length; i < imax; ++i) {
14843
14899
  var child = children[i];
14844
14900
  if (child.visible && this.hasRefitableWidth(child)) {
14845
- width = Math.max(width, child.x + child.width);
14901
+ if (child instanceof DBase) {
14902
+ width = Math.max(width, child.x + child.width);
14903
+ }
14904
+ else if (child instanceof pixi_js.Container) {
14905
+ var bound = child.getLocalBounds(undefined, true);
14906
+ width = Math.max(width, child.x + bound.x + bound.width);
14907
+ }
14908
+ else {
14909
+ var bound = child.getLocalBounds();
14910
+ width = Math.max(width, child.x + bound.x + bound.width);
14911
+ }
14846
14912
  }
14847
14913
  }
14848
14914
  this.resize(width + this.padding.getRight(), undefined);
@@ -14853,7 +14919,17 @@ var DBase = /** @class */ (function (_super) {
14853
14919
  for (var i = 0, imax = children.length; i < imax; ++i) {
14854
14920
  var child = children[i];
14855
14921
  if (child.visible && this.hasRefitableHeight(child)) {
14856
- height = Math.max(height, child.y + child.height);
14922
+ if (child instanceof DBase) {
14923
+ height = Math.max(height, child.y + child.height);
14924
+ }
14925
+ else if (child instanceof pixi_js.Container) {
14926
+ var bound = child.getLocalBounds(undefined, true);
14927
+ height = Math.max(height, child.y + bound.y + bound.height);
14928
+ }
14929
+ else {
14930
+ var bound = child.getLocalBounds();
14931
+ height = Math.max(height, child.y + bound.y + bound.height);
14932
+ }
14857
14933
  }
14858
14934
  }
14859
14935
  this.resize(undefined, height + this.padding.getBottom());
@@ -14862,9 +14938,21 @@ var DBase = /** @class */ (function (_super) {
14862
14938
  DBase.prototype.isRefitable = function (target) {
14863
14939
  return target instanceof DBase;
14864
14940
  };
14941
+ /**
14942
+ * Returns true if the given target has a height that doesn't depend on its parent height.
14943
+ *
14944
+ * @param target a target
14945
+ * @returns true if the given target has a height that doesn't depend on its parent height.
14946
+ */
14865
14947
  DBase.prototype.hasRefitableHeight = function (target) {
14866
14948
  return (this.isRefitable(target) && !(target instanceof DBase && isFunction(target.getHeight())));
14867
14949
  };
14950
+ /**
14951
+ * Returns true if the given target has a width that doesn't depend on its parent width.
14952
+ *
14953
+ * @param target a target
14954
+ * @returns true if the given target has a width that doesn't depend on its parent width.
14955
+ */
14868
14956
  DBase.prototype.hasRefitableWidth = function (target) {
14869
14957
  return (this.isRefitable(target) && !(target instanceof DBase && isFunction(target.getWidth())));
14870
14958
  };
@@ -27572,67 +27660,15 @@ var DButtonBaseWhen = {
27572
27660
  DOUBLE_CLICKED: 1
27573
27661
  };
27574
27662
 
27575
- var DImageBaseThemeWrapperSecondary = /** @class */ (function () {
27576
- function DImageBaseThemeWrapperSecondary(theme) {
27577
- this._theme = theme;
27578
- }
27579
- DImageBaseThemeWrapperSecondary.prototype.getImageAlignHorizontal = function () {
27580
- return this._theme.getSecondaryImageAlignHorizontal();
27581
- };
27582
- DImageBaseThemeWrapperSecondary.prototype.getImageAlignVertical = function () {
27583
- return this._theme.getSecondaryImageAlignVertical();
27584
- };
27585
- DImageBaseThemeWrapperSecondary.prototype.getImageAlignWith = function () {
27586
- return this._theme.getSecondaryImageAlignWith();
27587
- };
27588
- DImageBaseThemeWrapperSecondary.prototype.getImageMarginHorizontal = function () {
27589
- return this._theme.getSecondaryImageMarginHorizontal();
27590
- };
27591
- DImageBaseThemeWrapperSecondary.prototype.getImageMarginVertial = function () {
27592
- return this._theme.getSecondaryImageMarginVertial();
27593
- };
27594
- DImageBaseThemeWrapperSecondary.prototype.getImageTintColor = function (state) {
27595
- return this._theme.getSecondaryImageTintColor(state);
27596
- };
27597
- DImageBaseThemeWrapperSecondary.prototype.getImageTintAlpha = function (state) {
27598
- return this._theme.getSecondaryImageTintAlpha(state);
27599
- };
27600
- DImageBaseThemeWrapperSecondary.prototype.getImageSource = function (state) {
27601
- return this._theme.getSecondaryImageSource(state);
27602
- };
27603
- return DImageBaseThemeWrapperSecondary;
27604
- }());
27605
-
27606
- var DImageBaseThemeWrapperTertiary = /** @class */ (function () {
27607
- function DImageBaseThemeWrapperTertiary(theme) {
27608
- this._theme = theme;
27609
- }
27610
- DImageBaseThemeWrapperTertiary.prototype.getImageAlignHorizontal = function () {
27611
- return this._theme.getTertiaryImageAlignHorizontal();
27612
- };
27613
- DImageBaseThemeWrapperTertiary.prototype.getImageAlignVertical = function () {
27614
- return this._theme.getTertiaryImageAlignVertical();
27615
- };
27616
- DImageBaseThemeWrapperTertiary.prototype.getImageAlignWith = function () {
27617
- return this._theme.getTertiaryImageAlignWith();
27618
- };
27619
- DImageBaseThemeWrapperTertiary.prototype.getImageMarginHorizontal = function () {
27620
- return this._theme.getTertiaryImageMarginHorizontal();
27621
- };
27622
- DImageBaseThemeWrapperTertiary.prototype.getImageMarginVertial = function () {
27623
- return this._theme.getTertiaryImageMarginVertial();
27624
- };
27625
- DImageBaseThemeWrapperTertiary.prototype.getImageTintColor = function (state) {
27626
- return this._theme.getTertiaryImageTintColor(state);
27627
- };
27628
- DImageBaseThemeWrapperTertiary.prototype.getImageTintAlpha = function (state) {
27629
- return this._theme.getTertiaryImageTintAlpha(state);
27630
- };
27631
- DImageBaseThemeWrapperTertiary.prototype.getImageSource = function (state) {
27632
- return this._theme.getTertiaryImageSource(state);
27633
- };
27634
- return DImageBaseThemeWrapperTertiary;
27635
- }());
27663
+ /*
27664
+ * Copyright (C) 2019 Toshiba Corporation
27665
+ * SPDX-License-Identifier: Apache-2.0
27666
+ */
27667
+ var DAlignWith = {
27668
+ TEXT: 0,
27669
+ PADDING: 1,
27670
+ BORDER: 2
27671
+ };
27636
27672
 
27637
27673
  /*
27638
27674
  * Copyright (C) 2019 Toshiba Corporation
@@ -27654,314 +27690,20 @@ var DAlignVertical = {
27654
27690
  BOTTOM: 2
27655
27691
  };
27656
27692
 
27657
- /*
27658
- * Copyright (C) 2019 Toshiba Corporation
27659
- * SPDX-License-Identifier: Apache-2.0
27660
- */
27661
- var DAlignWith = {
27662
- TEXT: 0,
27663
- PADDING: 1,
27664
- BORDER: 2
27665
- };
27666
-
27667
- var toImageAlign = function (theme, options) {
27668
- var _a, _b, _c;
27669
- var align = options === null || options === void 0 ? void 0 : options.align;
27670
- return {
27671
- with: toEnum((_a = align === null || align === void 0 ? void 0 : align.with) !== null && _a !== void 0 ? _a : theme.getImageAlignWith(), DAlignWith),
27672
- vertical: toEnum((_b = align === null || align === void 0 ? void 0 : align.vertical) !== null && _b !== void 0 ? _b : theme.getImageAlignVertical(), DAlignVertical),
27673
- horizontal: toEnum((_c = align === null || align === void 0 ? void 0 : align.horizontal) !== null && _c !== void 0 ? _c : theme.getImageAlignHorizontal(), DAlignHorizontal)
27674
- };
27675
- };
27676
- var toImageMargin = function (theme, options) {
27677
- var _a, _b;
27678
- var margin = options === null || options === void 0 ? void 0 : options.margin;
27679
- return {
27680
- vertical: (_a = margin === null || margin === void 0 ? void 0 : margin.vertical) !== null && _a !== void 0 ? _a : theme.getImageMarginVertial(),
27681
- horizontal: (_b = margin === null || margin === void 0 ? void 0 : margin.horizontal) !== null && _b !== void 0 ? _b : theme.getImageMarginHorizontal()
27682
- };
27683
- };
27684
- var DImagePiece = /** @class */ (function () {
27685
- function DImagePiece(parent, theme, textAlign, options) {
27686
- var _this = this;
27687
- this._parent = parent;
27688
- this._theme = theme;
27689
- this._textAlign = textAlign;
27690
- this._image = null;
27691
- this._align = toImageAlign(theme, options);
27692
- this._margin = toImageMargin(theme, options);
27693
- this._tint = options === null || options === void 0 ? void 0 : options.tint;
27694
- this._bound = new pixi_js.Rectangle();
27695
- this._source = options === null || options === void 0 ? void 0 : options.source;
27696
- this._computed = null;
27697
- this._onUpdateBound = function () {
27698
- _this.onUpdate();
27699
- };
27700
- }
27701
- Object.defineProperty(DImagePiece.prototype, "image", {
27702
- get: function () {
27703
- return this._image;
27704
- },
27705
- enumerable: false,
27706
- configurable: true
27707
- });
27708
- Object.defineProperty(DImagePiece.prototype, "align", {
27709
- get: function () {
27710
- return this._align;
27711
- },
27712
- enumerable: false,
27713
- configurable: true
27714
- });
27715
- Object.defineProperty(DImagePiece.prototype, "margin", {
27716
- get: function () {
27717
- return this._margin;
27718
- },
27719
- enumerable: false,
27720
- configurable: true
27721
- });
27722
- Object.defineProperty(DImagePiece.prototype, "bound", {
27723
- get: function () {
27724
- return this._bound;
27725
- },
27726
- enumerable: false,
27727
- configurable: true
27728
- });
27729
- Object.defineProperty(DImagePiece.prototype, "source", {
27730
- get: function () {
27731
- return this._source;
27732
- },
27733
- set: function (source) {
27734
- if (this._source !== source) {
27735
- this._source = source;
27736
- this.onUpdate();
27737
- }
27738
- },
27739
- enumerable: false,
27740
- configurable: true
27741
- });
27742
- DImagePiece.prototype.computeSource = function () {
27743
- var source = this._source;
27744
- if (source !== undefined) {
27745
- if (isFunction(source)) {
27746
- var result = source(this._parent.state);
27747
- if (result !== undefined) {
27748
- return result;
27749
- }
27750
- }
27751
- else {
27752
- return source;
27753
- }
27754
- }
27755
- return this._theme.getImageSource(this._parent.state);
27756
- };
27757
- DImagePiece.prototype.onStateChange = function (newState, oldState) {
27758
- this.updateTint();
27759
- };
27760
- DImagePiece.prototype.updateBound = function () {
27761
- var bound = this._bound;
27762
- var image = this._image;
27763
- if (image != null) {
27764
- image.updateTransform();
27765
- image.getLocalBounds(bound);
27766
- var bl = bound.left;
27767
- var bt = bound.top;
27768
- var br = bound.right;
27769
- var bb = bound.bottom;
27770
- var localTransform = image.localTransform;
27771
- var a = localTransform.a;
27772
- var b = localTransform.b;
27773
- var c = localTransform.c;
27774
- var d = localTransform.d;
27775
- var x0 = a * bl + c * bt;
27776
- var y0 = b * bl + d * bt;
27777
- var x1 = a * br + c * bt;
27778
- var y1 = b * br + d * bt;
27779
- var x2 = a * br + c * bb;
27780
- var y2 = b * br + d * bb;
27781
- var x3 = a * bl + c * bb;
27782
- var y3 = b * bl + d * bb;
27783
- var xmin = Math.min(x0, x1, x2, x3);
27784
- var xmax = Math.max(x0, x1, x2, x3);
27785
- var ymin = Math.min(y0, y1, y2, y3);
27786
- var ymax = Math.max(y0, y1, y2, y3);
27787
- bound.x = xmin + localTransform.tx;
27788
- bound.y = ymin + localTransform.ty;
27789
- bound.width = xmax - xmin;
27790
- bound.height = ymax - ymin;
27791
- }
27792
- else {
27793
- bound.x = 0;
27794
- bound.y = 0;
27795
- bound.width = 0;
27796
- bound.height = 0;
27797
- }
27798
- };
27799
- DImagePiece.prototype.isTintAware = function (target) {
27800
- return target != null && "tint" in target;
27801
- };
27802
- DImagePiece.prototype.toTintColor = function (theme, state) {
27803
- var tint = this._tint;
27804
- if (tint) {
27805
- var color = tint.color;
27806
- if (color !== undefined) {
27807
- if (isFunction(color)) {
27808
- var result = color(state);
27809
- if (result !== undefined) {
27810
- return result;
27811
- }
27812
- }
27813
- else {
27814
- return color;
27815
- }
27816
- }
27817
- }
27818
- return theme.getImageTintColor(state);
27819
- };
27820
- DImagePiece.prototype.toTintAlpha = function (theme, state) {
27821
- var tint = this._tint;
27822
- if (tint) {
27823
- var alpha = tint.alpha;
27824
- if (alpha !== undefined) {
27825
- if (isFunction(alpha)) {
27826
- var result = alpha(state);
27827
- if (result !== undefined) {
27828
- return result;
27829
- }
27830
- }
27831
- else {
27832
- return alpha;
27833
- }
27834
- }
27835
- }
27836
- return theme.getImageTintAlpha(state);
27837
- };
27838
- /**
27839
- * Updates the tint.
27840
- *
27841
- * @returns True if the tint is changed.
27842
- */
27843
- DImagePiece.prototype.updateTint = function () {
27844
- var image = this._image;
27845
- if (image) {
27846
- if (this.isTintAware(image)) {
27847
- var theme = this._theme;
27848
- var state = this._parent.state;
27849
- var color = this.toTintColor(theme, state);
27850
- if (color != null) {
27851
- var result = false;
27852
- if (image.tint !== color) {
27853
- image.tint = color;
27854
- result = true;
27855
- }
27856
- var alpha = this.toTintAlpha(theme, state);
27857
- if (image.alpha !== alpha) {
27858
- image.alpha = alpha;
27859
- result = true;
27860
- }
27861
- return result;
27862
- }
27863
- }
27864
- }
27865
- return false;
27866
- };
27867
- /**
27868
- * Updates the computed source.
27869
- *
27870
- * @returns True if the computed source is changed
27871
- */
27872
- DImagePiece.prototype.updateSource = function () {
27873
- var newComputed = this.computeSource();
27874
- var oldComputed = this._computed;
27875
- if (newComputed !== oldComputed) {
27876
- this._computed = newComputed;
27877
- var parent_1 = this._parent;
27878
- var oldImage = this._image;
27879
- var onUpdateBound = this._onUpdateBound;
27880
- if (newComputed instanceof pixi_js.Texture) {
27881
- if (oldComputed instanceof pixi_js.Texture) {
27882
- oldComputed.off("update", onUpdateBound);
27883
- if (oldImage instanceof pixi_js.Sprite) {
27884
- oldImage.texture = newComputed;
27885
- newComputed.on("update", onUpdateBound);
27886
- }
27887
- }
27888
- else {
27889
- if (oldImage != null) {
27890
- parent_1.removeChild(oldImage);
27891
- }
27892
- var newImage = new pixi_js.Sprite(newComputed);
27893
- var overflowMask = parent_1.getOverflowMask();
27894
- if (overflowMask) {
27895
- newImage.mask = overflowMask;
27896
- }
27897
- newComputed.on("update", onUpdateBound);
27898
- parent_1.addChild(newImage);
27899
- this._image = newImage;
27900
- }
27901
- }
27902
- else {
27903
- if (oldComputed instanceof pixi_js.Texture) {
27904
- oldComputed.off("update", onUpdateBound);
27905
- if (oldImage != null) {
27906
- parent_1.removeChild(oldImage);
27907
- oldImage.destroy();
27908
- }
27909
- }
27910
- else if (oldImage != null) {
27911
- parent_1.removeChild(oldImage);
27912
- }
27913
- if (newComputed != null) {
27914
- var overflowMask = parent_1.getOverflowMask();
27915
- if (overflowMask) {
27916
- newComputed.mask = overflowMask;
27917
- }
27918
- parent_1.addChild(newComputed);
27919
- }
27920
- this._image = newComputed;
27921
- }
27922
- return true;
27923
- }
27924
- return false;
27925
- };
27926
- DImagePiece.prototype.isRefitable = function (target) {
27927
- return target != null && target === this._image;
27928
- };
27929
- DImagePiece.prototype.destroy = function () {
27930
- var image = this._image;
27931
- if (image) {
27932
- this._image = null;
27933
- var computed = this._computed;
27934
- if (computed instanceof pixi_js.Texture) {
27935
- computed.off("update", this._onUpdateBound, this);
27936
- image.destroy();
27937
- }
27938
- }
27939
- };
27940
- DImagePiece.prototype.onUpdate = function () {
27941
- this._parent.toDirty();
27942
- DApplications.update(this._parent);
27943
- };
27944
- return DImagePiece;
27945
- }());
27946
-
27947
27693
  var DImagePieceLayouterPart = /** @class */ (function () {
27948
27694
  function DImagePieceLayouterPart() {
27949
27695
  this._pieces = [];
27696
+ this._bounds = [];
27950
27697
  this._size = 0;
27951
27698
  this._margin = 0;
27952
27699
  }
27953
27700
  DImagePieceLayouterPart.prototype.clear = function () {
27954
27701
  this._pieces.length = 0;
27702
+ this._bounds.length = 0;
27955
27703
  this._size = 0;
27956
27704
  this._margin = 0;
27957
27705
  this._text = undefined;
27958
27706
  };
27959
- DImagePieceLayouterPart.prototype.add = function (image, size, margin) {
27960
- var pieces = this._pieces;
27961
- pieces.push(image);
27962
- this._size += margin + size;
27963
- this._margin = margin;
27964
- };
27965
27707
  DImagePieceLayouterPart.prototype.set = function (text) {
27966
27708
  this._text = text;
27967
27709
  };
@@ -27980,23 +27722,34 @@ var DImagePieceLayouterPartBottom = /** @class */ (function (_super) {
27980
27722
  function DImagePieceLayouterPartBottom() {
27981
27723
  return _super !== null && _super.apply(this, arguments) || this;
27982
27724
  }
27725
+ DImagePieceLayouterPartBottom.prototype.add = function (image, bound, margin) {
27726
+ this._pieces.push(image);
27727
+ this._bounds.push(bound);
27728
+ this._size += margin + bound.height;
27729
+ this._margin = margin;
27730
+ };
27983
27731
  DImagePieceLayouterPartBottom.prototype.execute = function (pbottom, height) {
27984
27732
  var pieces = this._pieces;
27733
+ var bounds = this._bounds;
27985
27734
  var y = height - pbottom;
27986
27735
  if (this._text !== undefined) {
27987
27736
  var margin = 0;
27988
27737
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
27989
27738
  var piece = pieces[i];
27990
- y -= margin + piece.bound.height;
27991
- piece.image.y = y;
27739
+ var bound = bounds[i];
27740
+ var object = piece.object;
27741
+ y -= margin + bound.height;
27742
+ object.y = y - bound.y;
27992
27743
  margin = piece.margin.horizontal;
27993
27744
  }
27994
27745
  }
27995
27746
  else {
27996
27747
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
27997
27748
  var piece = pieces[i];
27998
- y -= piece.margin.horizontal + piece.bound.height;
27999
- piece.image.y = y;
27749
+ var bound = bounds[i];
27750
+ var object = piece.object;
27751
+ y -= piece.margin.horizontal + bound.height;
27752
+ object.y = y - bound.y;
28000
27753
  }
28001
27754
  }
28002
27755
  };
@@ -28008,17 +27761,20 @@ var DImagePieceLayouterPartCenter = /** @class */ (function (_super) {
28008
27761
  function DImagePieceLayouterPartCenter() {
28009
27762
  return _super !== null && _super.apply(this, arguments) || this;
28010
27763
  }
28011
- DImagePieceLayouterPartCenter.prototype.add = function (image, size, margin) {
28012
- var pieces = this._pieces;
28013
- pieces.push(image);
28014
- this._size = Math.max(this.size, size);
27764
+ DImagePieceLayouterPartCenter.prototype.add = function (image, bound, margin) {
27765
+ this._pieces.push(image);
27766
+ this._bounds.push(bound);
27767
+ this._size = Math.max(this.size, bound.width);
28015
27768
  };
28016
27769
  DImagePieceLayouterPartCenter.prototype.execute = function (pleft, pright, width) {
28017
27770
  var c = pleft + (width - pleft - pright) * 0.5;
28018
27771
  var pieces = this._pieces;
27772
+ var bounds = this._bounds;
28019
27773
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28020
27774
  var piece = pieces[i];
28021
- piece.image.x = c - piece.bound.width * 0.5;
27775
+ var bound = bounds[i];
27776
+ var object = piece.object;
27777
+ object.x = c - bound.x - bound.width * 0.5;
28022
27778
  }
28023
27779
  };
28024
27780
  return DImagePieceLayouterPartCenter;
@@ -28029,22 +27785,33 @@ var DImagePieceLayouterPartLeft = /** @class */ (function (_super) {
28029
27785
  function DImagePieceLayouterPartLeft() {
28030
27786
  return _super !== null && _super.apply(this, arguments) || this;
28031
27787
  }
27788
+ DImagePieceLayouterPartLeft.prototype.add = function (image, bound, margin) {
27789
+ this._pieces.push(image);
27790
+ this._bounds.push(bound);
27791
+ this._size += margin + bound.width;
27792
+ this._margin = margin;
27793
+ };
28032
27794
  DImagePieceLayouterPartLeft.prototype.execute = function (pleft) {
28033
27795
  var pieces = this._pieces;
27796
+ var bounds = this._bounds;
28034
27797
  var x = pleft;
28035
27798
  if (this._text !== undefined) {
28036
27799
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28037
27800
  var piece = pieces[i];
28038
- piece.image.x = x;
28039
- x += piece.bound.width + piece.margin.horizontal;
27801
+ var bound = bounds[i];
27802
+ var object = piece.object;
27803
+ object.x = x - bound.x;
27804
+ x += bound.width + piece.margin.horizontal;
28040
27805
  }
28041
27806
  }
28042
27807
  else {
28043
27808
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28044
27809
  var piece = pieces[i];
27810
+ var bound = bounds[i];
27811
+ var object = piece.object;
28045
27812
  x += piece.margin.horizontal;
28046
- piece.image.x = x;
28047
- x += piece.bound.width;
27813
+ object.x = x - bound.x;
27814
+ x += bound.width;
28048
27815
  }
28049
27816
  }
28050
27817
  };
@@ -28056,17 +27823,20 @@ var DImagePieceLayouterPartMiddle = /** @class */ (function (_super) {
28056
27823
  function DImagePieceLayouterPartMiddle() {
28057
27824
  return _super !== null && _super.apply(this, arguments) || this;
28058
27825
  }
28059
- DImagePieceLayouterPartMiddle.prototype.add = function (image, size, margin) {
28060
- var pieces = this._pieces;
28061
- pieces.push(image);
28062
- this._size = Math.max(this.size, size);
27826
+ DImagePieceLayouterPartMiddle.prototype.add = function (image, bound, margin) {
27827
+ this._pieces.push(image);
27828
+ this._bounds.push(bound);
27829
+ this._size = Math.max(this.size, bound.height);
28063
27830
  };
28064
27831
  DImagePieceLayouterPartMiddle.prototype.execute = function (ptop, pbottom, height) {
28065
27832
  var c = ptop + (height - ptop - pbottom) * 0.5;
28066
27833
  var pieces = this._pieces;
27834
+ var bounds = this._bounds;
28067
27835
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28068
27836
  var piece = pieces[i];
28069
- piece.image.y = c - piece.bound.height * 0.5;
27837
+ var bound = bounds[i];
27838
+ var object = piece.object;
27839
+ object.y = c - bound.y - bound.height * 0.5;
28070
27840
  }
28071
27841
  };
28072
27842
  return DImagePieceLayouterPartMiddle;
@@ -28077,23 +27847,34 @@ var DImagePieceLayouterPartRight = /** @class */ (function (_super) {
28077
27847
  function DImagePieceLayouterPartRight() {
28078
27848
  return _super !== null && _super.apply(this, arguments) || this;
28079
27849
  }
27850
+ DImagePieceLayouterPartRight.prototype.add = function (image, bound, margin) {
27851
+ this._pieces.push(image);
27852
+ this._bounds.push(bound);
27853
+ this._size += margin + bound.width;
27854
+ this._margin = margin;
27855
+ };
28080
27856
  DImagePieceLayouterPartRight.prototype.execute = function (pright, width) {
28081
27857
  var pieces = this._pieces;
27858
+ var bounds = this._bounds;
28082
27859
  var x = width - pright;
28083
27860
  if (this._text !== undefined) {
28084
27861
  var margin = 0;
28085
27862
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28086
27863
  var piece = pieces[i];
28087
- x -= margin + piece.bound.width;
28088
- piece.image.x = x;
27864
+ var bound = bounds[i];
27865
+ var object = piece.object;
27866
+ x -= margin + bound.width;
27867
+ object.x = x - bound.x;
28089
27868
  margin = piece.margin.horizontal;
28090
27869
  }
28091
27870
  }
28092
27871
  else {
28093
27872
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28094
27873
  var piece = pieces[i];
28095
- x -= piece.margin.horizontal + piece.bound.width;
28096
- piece.image.x = x;
27874
+ var bound = bounds[i];
27875
+ var object = piece.object;
27876
+ x -= piece.margin.horizontal + bound.width;
27877
+ object.x = x - bound.x;
28097
27878
  }
28098
27879
  }
28099
27880
  };
@@ -28105,24 +27886,35 @@ var DImagePieceLayouterPartTop = /** @class */ (function (_super) {
28105
27886
  function DImagePieceLayouterPartTop() {
28106
27887
  return _super !== null && _super.apply(this, arguments) || this;
28107
27888
  }
27889
+ DImagePieceLayouterPartTop.prototype.add = function (image, bound, margin) {
27890
+ this._pieces.push(image);
27891
+ this._bounds.push(bound);
27892
+ this._size += margin + bound.height;
27893
+ this._margin = margin;
27894
+ };
28108
27895
  DImagePieceLayouterPartTop.prototype.execute = function (ptop) {
28109
27896
  var pieces = this._pieces;
27897
+ var bounds = this._bounds;
28110
27898
  var y = ptop;
28111
27899
  if (this._text !== undefined) {
28112
27900
  var margin = 0;
28113
27901
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28114
27902
  var piece = pieces[i];
28115
- piece.image.y = margin + y;
28116
- y += piece.bound.height;
27903
+ var bound = bounds[i];
27904
+ var object = piece.object;
27905
+ object.y = margin + y - bound.y;
27906
+ y += bound.height;
28117
27907
  margin = piece.margin.vertical;
28118
27908
  }
28119
27909
  }
28120
27910
  else {
28121
27911
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28122
27912
  var piece = pieces[i];
27913
+ var bound = bounds[i];
27914
+ var object = piece.object;
28123
27915
  y += piece.margin.vertical;
28124
- piece.image.y = y;
28125
- y += piece.bound.height;
27916
+ object.y = y - bound.y;
27917
+ y += bound.height;
28126
27918
  }
28127
27919
  }
28128
27920
  };
@@ -28148,35 +27940,31 @@ var DImagePieceLayouterPartContainer = /** @class */ (function () {
28148
27940
  this.text = undefined;
28149
27941
  };
28150
27942
  DImagePieceLayouterPartContainer.prototype.add = function (image) {
28151
- var imageImage = image.image;
28152
- if (imageImage != null) {
28153
- var imageBound = image.bound;
28154
- var imageBoundWidth = imageBound.width;
28155
- var imageBoundHeight = imageBound.height;
28156
- var imageMargin = image.margin;
28157
- var imageMarginHorizontal = imageMargin.horizontal;
28158
- var imageMarginVertical = imageMargin.vertical;
28159
- var imageAlign = image.align;
28160
- switch (imageAlign.horizontal) {
27943
+ var object = image.object;
27944
+ if (object != null) {
27945
+ var bound = object.getLocalBounds();
27946
+ var margin = image.margin;
27947
+ var align = image.align;
27948
+ switch (align.horizontal) {
28161
27949
  case DAlignHorizontal.LEFT:
28162
- this.left.add(image, imageBoundWidth, imageMarginHorizontal);
27950
+ this.left.add(image, bound, margin.horizontal);
28163
27951
  break;
28164
27952
  case DAlignHorizontal.CENTER:
28165
- this.center.add(image, imageBoundWidth, imageMarginHorizontal);
27953
+ this.center.add(image, bound, margin.horizontal);
28166
27954
  break;
28167
27955
  case DAlignHorizontal.RIGHT:
28168
- this.right.add(image, imageBoundWidth, imageMarginHorizontal);
27956
+ this.right.add(image, bound, margin.horizontal);
28169
27957
  break;
28170
27958
  }
28171
- switch (imageAlign.vertical) {
27959
+ switch (align.vertical) {
28172
27960
  case DAlignVertical.TOP:
28173
- this.top.add(image, imageBoundHeight, imageMarginVertical);
27961
+ this.top.add(image, bound, margin.vertical);
28174
27962
  break;
28175
27963
  case DAlignVertical.MIDDLE:
28176
- this.middle.add(image, imageBoundHeight, imageMarginVertical);
27964
+ this.middle.add(image, bound, margin.vertical);
28177
27965
  break;
28178
27966
  case DAlignVertical.BOTTOM:
28179
- this.bottom.add(image, imageBoundHeight, imageMarginVertical);
27967
+ this.bottom.add(image, bound, margin.vertical);
28180
27968
  break;
28181
27969
  }
28182
27970
  }
@@ -28322,8 +28110,8 @@ var DImagePieceLayouter = /** @class */ (function () {
28322
28110
  this.border.clear();
28323
28111
  };
28324
28112
  DImagePieceLayouter.prototype.add = function (image) {
28325
- var imageImage = image.image;
28326
- if (imageImage) {
28113
+ var object = image.object;
28114
+ if (object) {
28327
28115
  switch (image.align.with) {
28328
28116
  case DAlignWith.TEXT:
28329
28117
  this.text.add(image);
@@ -29823,12 +29611,20 @@ var DTextBase = /** @class */ (function (_super) {
29823
29611
  DApplications.update(this);
29824
29612
  }
29825
29613
  }
29826
- else {
29614
+ else if (text.text !== formatted) {
29827
29615
  text.text = formatted;
29828
29616
  this.toDirty();
29829
29617
  DApplications.update(this);
29830
29618
  }
29831
29619
  }
29620
+ else {
29621
+ var text = this._text;
29622
+ if (text != null && text.text !== "") {
29623
+ text.text = "";
29624
+ this.toDirty();
29625
+ DApplications.update(this);
29626
+ }
29627
+ }
29832
29628
  };
29833
29629
  DTextBase.prototype.newText = function () {
29834
29630
  return new DDynamicText(this._textStyle);
@@ -29990,16 +29786,670 @@ var DTextBase = /** @class */ (function (_super) {
29990
29786
  return DTextBase;
29991
29787
  }(DBase));
29992
29788
 
29789
+ var DImageBaseThemeWrapperOther = /** @class */ (function () {
29790
+ function DImageBaseThemeWrapperOther(theme) {
29791
+ this._theme = theme;
29792
+ }
29793
+ DImageBaseThemeWrapperOther.prototype.getImageAlignHorizontal = function () {
29794
+ return this._theme.getImageAlignHorizontal();
29795
+ };
29796
+ DImageBaseThemeWrapperOther.prototype.getImageAlignVertical = function () {
29797
+ return this._theme.getImageAlignVertical();
29798
+ };
29799
+ DImageBaseThemeWrapperOther.prototype.getImageAlignWith = function () {
29800
+ return this._theme.getImageAlignWith();
29801
+ };
29802
+ DImageBaseThemeWrapperOther.prototype.getImageMarginHorizontal = function () {
29803
+ return this._theme.getImageMarginHorizontal();
29804
+ };
29805
+ DImageBaseThemeWrapperOther.prototype.getImageMarginVertial = function () {
29806
+ return this._theme.getImageMarginVertial();
29807
+ };
29808
+ DImageBaseThemeWrapperOther.prototype.getImageTintColor = function (state) {
29809
+ return this._theme.getImageTintColor(state);
29810
+ };
29811
+ DImageBaseThemeWrapperOther.prototype.getImageTintAlpha = function (state) {
29812
+ return this._theme.getImageTintAlpha(state);
29813
+ };
29814
+ DImageBaseThemeWrapperOther.prototype.getImageRotation = function (state) {
29815
+ return this._theme.getImageRotation(state);
29816
+ };
29817
+ DImageBaseThemeWrapperOther.prototype.getImageSource = function (state) {
29818
+ return null;
29819
+ };
29820
+ return DImageBaseThemeWrapperOther;
29821
+ }());
29822
+
29823
+ var DImageBaseThemeWrapperSecondary = /** @class */ (function () {
29824
+ function DImageBaseThemeWrapperSecondary(theme) {
29825
+ this._theme = theme;
29826
+ }
29827
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignHorizontal = function () {
29828
+ return this._theme.getSecondaryImageAlignHorizontal();
29829
+ };
29830
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignVertical = function () {
29831
+ return this._theme.getSecondaryImageAlignVertical();
29832
+ };
29833
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignWith = function () {
29834
+ return this._theme.getSecondaryImageAlignWith();
29835
+ };
29836
+ DImageBaseThemeWrapperSecondary.prototype.getImageMarginHorizontal = function () {
29837
+ return this._theme.getSecondaryImageMarginHorizontal();
29838
+ };
29839
+ DImageBaseThemeWrapperSecondary.prototype.getImageMarginVertial = function () {
29840
+ return this._theme.getSecondaryImageMarginVertial();
29841
+ };
29842
+ DImageBaseThemeWrapperSecondary.prototype.getImageTintColor = function (state) {
29843
+ return this._theme.getSecondaryImageTintColor(state);
29844
+ };
29845
+ DImageBaseThemeWrapperSecondary.prototype.getImageTintAlpha = function (state) {
29846
+ return this._theme.getSecondaryImageTintAlpha(state);
29847
+ };
29848
+ DImageBaseThemeWrapperSecondary.prototype.getImageRotation = function (state) {
29849
+ return this._theme.getSecondaryImageRotation(state);
29850
+ };
29851
+ DImageBaseThemeWrapperSecondary.prototype.getImageSource = function (state) {
29852
+ var _a, _b, _c;
29853
+ return (_c = (_b = (_a = this._theme).getSecondaryImageSource) === null || _b === void 0 ? void 0 : _b.call(_a, state)) !== null && _c !== void 0 ? _c : null;
29854
+ };
29855
+ return DImageBaseThemeWrapperSecondary;
29856
+ }());
29857
+
29858
+ var DImageBaseThemeWrapperTertiary = /** @class */ (function () {
29859
+ function DImageBaseThemeWrapperTertiary(theme) {
29860
+ this._theme = theme;
29861
+ }
29862
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignHorizontal = function () {
29863
+ return this._theme.getTertiaryImageAlignHorizontal();
29864
+ };
29865
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignVertical = function () {
29866
+ return this._theme.getTertiaryImageAlignVertical();
29867
+ };
29868
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignWith = function () {
29869
+ return this._theme.getTertiaryImageAlignWith();
29870
+ };
29871
+ DImageBaseThemeWrapperTertiary.prototype.getImageMarginHorizontal = function () {
29872
+ return this._theme.getTertiaryImageMarginHorizontal();
29873
+ };
29874
+ DImageBaseThemeWrapperTertiary.prototype.getImageMarginVertial = function () {
29875
+ return this._theme.getTertiaryImageMarginVertial();
29876
+ };
29877
+ DImageBaseThemeWrapperTertiary.prototype.getImageTintColor = function (state) {
29878
+ return this._theme.getTertiaryImageTintColor(state);
29879
+ };
29880
+ DImageBaseThemeWrapperTertiary.prototype.getImageTintAlpha = function (state) {
29881
+ return this._theme.getTertiaryImageTintAlpha(state);
29882
+ };
29883
+ DImageBaseThemeWrapperTertiary.prototype.getImageRotation = function (state) {
29884
+ return this._theme.getTertiaryImageRotation(state);
29885
+ };
29886
+ DImageBaseThemeWrapperTertiary.prototype.getImageSource = function (state) {
29887
+ var _a, _b, _c;
29888
+ return (_c = (_b = (_a = this._theme).getTertiaryImageSource) === null || _b === void 0 ? void 0 : _b.call(_a, state)) !== null && _c !== void 0 ? _c : null;
29889
+ };
29890
+ return DImageBaseThemeWrapperTertiary;
29891
+ }());
29892
+
29893
+ var DImagePieceTintImpl = /** @class */ (function () {
29894
+ function DImagePieceTintImpl(parent, theme, options) {
29895
+ this._parent = parent;
29896
+ if (options != null) {
29897
+ this._color = options.color;
29898
+ this._alpha = options.alpha;
29899
+ }
29900
+ this._theme = theme;
29901
+ }
29902
+ Object.defineProperty(DImagePieceTintImpl.prototype, "color", {
29903
+ get: function () {
29904
+ return this._color;
29905
+ },
29906
+ set: function (color) {
29907
+ if (this._color !== color) {
29908
+ this._color = color;
29909
+ this.onChange();
29910
+ }
29911
+ },
29912
+ enumerable: false,
29913
+ configurable: true
29914
+ });
29915
+ DImagePieceTintImpl.prototype.getColor = function (state) {
29916
+ var color = this._color;
29917
+ if (color !== undefined) {
29918
+ if (isFunction(color)) {
29919
+ var result = color(state);
29920
+ if (result !== undefined) {
29921
+ return result;
29922
+ }
29923
+ }
29924
+ else {
29925
+ return color;
29926
+ }
29927
+ }
29928
+ return this._theme.getImageTintColor(state);
29929
+ };
29930
+ Object.defineProperty(DImagePieceTintImpl.prototype, "alpha", {
29931
+ get: function () {
29932
+ return this._alpha;
29933
+ },
29934
+ set: function (alpha) {
29935
+ if (this._alpha !== alpha) {
29936
+ this._alpha = alpha;
29937
+ this.onChange();
29938
+ }
29939
+ },
29940
+ enumerable: false,
29941
+ configurable: true
29942
+ });
29943
+ DImagePieceTintImpl.prototype.getAlpha = function (state) {
29944
+ var alpha = this._alpha;
29945
+ if (alpha !== undefined) {
29946
+ if (isFunction(alpha)) {
29947
+ var result = alpha(state);
29948
+ if (result !== undefined) {
29949
+ return result;
29950
+ }
29951
+ }
29952
+ else {
29953
+ return alpha;
29954
+ }
29955
+ }
29956
+ return this._theme.getImageTintAlpha(state);
29957
+ };
29958
+ DImagePieceTintImpl.prototype.set = function (color, alpha) {
29959
+ var isChanged = false;
29960
+ if (color != null && this._color !== color) {
29961
+ this._color = color;
29962
+ isChanged = true;
29963
+ }
29964
+ if (alpha != null && this._alpha !== alpha) {
29965
+ this._alpha = alpha;
29966
+ isChanged = true;
29967
+ }
29968
+ if (isChanged) {
29969
+ this.onChange();
29970
+ }
29971
+ return this;
29972
+ };
29973
+ DImagePieceTintImpl.prototype.onChange = function () {
29974
+ this._parent.updateTint();
29975
+ DApplications.update(this._parent);
29976
+ };
29977
+ return DImagePieceTintImpl;
29978
+ }());
29979
+
29980
+ var DImagePieceMarginImpl = /** @class */ (function () {
29981
+ function DImagePieceMarginImpl(parent, theme, options) {
29982
+ var _a, _b;
29983
+ this._parent = parent;
29984
+ this._vertical = (_a = options === null || options === void 0 ? void 0 : options.vertical) !== null && _a !== void 0 ? _a : theme.getImageMarginVertial();
29985
+ this._horizontal = (_b = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _b !== void 0 ? _b : theme.getImageMarginHorizontal();
29986
+ }
29987
+ Object.defineProperty(DImagePieceMarginImpl.prototype, "vertical", {
29988
+ get: function () {
29989
+ return this._vertical;
29990
+ },
29991
+ set: function (vertical) {
29992
+ if (this._vertical !== vertical) {
29993
+ this._vertical = vertical;
29994
+ this.onChange();
29995
+ }
29996
+ },
29997
+ enumerable: false,
29998
+ configurable: true
29999
+ });
30000
+ Object.defineProperty(DImagePieceMarginImpl.prototype, "horizontal", {
30001
+ get: function () {
30002
+ return this._horizontal;
30003
+ },
30004
+ set: function (horizontal) {
30005
+ if (this._horizontal !== horizontal) {
30006
+ this._horizontal = horizontal;
30007
+ this.onChange();
30008
+ }
30009
+ },
30010
+ enumerable: false,
30011
+ configurable: true
30012
+ });
30013
+ DImagePieceMarginImpl.prototype.set = function (vertical, horizontal) {
30014
+ var isChanged = false;
30015
+ if (vertical != null && this._vertical !== vertical) {
30016
+ this._vertical = vertical;
30017
+ isChanged = true;
30018
+ }
30019
+ if (horizontal != null && this._horizontal !== horizontal) {
30020
+ this._horizontal = horizontal;
30021
+ isChanged = true;
30022
+ }
30023
+ if (isChanged) {
30024
+ this.onChange();
30025
+ }
30026
+ return this;
30027
+ };
30028
+ DImagePieceMarginImpl.prototype.onChange = function () {
30029
+ this._parent.onUpdate();
30030
+ };
30031
+ return DImagePieceMarginImpl;
30032
+ }());
30033
+
30034
+ var DImagePieceAlignImpl = /** @class */ (function () {
30035
+ function DImagePieceAlignImpl(parent, theme, options) {
30036
+ var _a, _b, _c;
30037
+ this._parent = parent;
30038
+ this._with = toEnum((_a = options === null || options === void 0 ? void 0 : options.with) !== null && _a !== void 0 ? _a : theme.getImageAlignWith(), DAlignWith);
30039
+ this._vertical = toEnum((_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getImageAlignVertical(), DAlignVertical);
30040
+ this._horizontal = toEnum((_c = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _c !== void 0 ? _c : theme.getImageAlignHorizontal(), DAlignHorizontal);
30041
+ }
30042
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "with", {
30043
+ get: function () {
30044
+ return this._with;
30045
+ },
30046
+ set: function (w) {
30047
+ w = toEnum(w, DAlignWith);
30048
+ if (this._with !== w) {
30049
+ this._with = w;
30050
+ this.onChange();
30051
+ }
30052
+ },
30053
+ enumerable: false,
30054
+ configurable: true
30055
+ });
30056
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "vertical", {
30057
+ get: function () {
30058
+ return this._vertical;
30059
+ },
30060
+ set: function (vertical) {
30061
+ vertical = toEnum(vertical, DAlignVertical);
30062
+ if (this._vertical !== vertical) {
30063
+ this._vertical = vertical;
30064
+ this.onChange();
30065
+ }
30066
+ },
30067
+ enumerable: false,
30068
+ configurable: true
30069
+ });
30070
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "horizontal", {
30071
+ get: function () {
30072
+ return this._horizontal;
30073
+ },
30074
+ set: function (horizontal) {
30075
+ horizontal = toEnum(horizontal, DAlignHorizontal);
30076
+ if (this._horizontal !== horizontal) {
30077
+ this._horizontal = horizontal;
30078
+ this.onChange();
30079
+ }
30080
+ },
30081
+ enumerable: false,
30082
+ configurable: true
30083
+ });
30084
+ DImagePieceAlignImpl.prototype.set = function (w, vertical, horizontal) {
30085
+ var isChanged = false;
30086
+ if (w != null) {
30087
+ w = toEnum(w, DAlignWith);
30088
+ if (this._with !== w) {
30089
+ this._with = w;
30090
+ isChanged = true;
30091
+ }
30092
+ }
30093
+ if (vertical != null) {
30094
+ vertical = toEnum(vertical, DAlignVertical);
30095
+ if (this._vertical !== vertical) {
30096
+ this._vertical = vertical;
30097
+ isChanged = true;
30098
+ }
30099
+ }
30100
+ if (horizontal != null) {
30101
+ horizontal = toEnum(horizontal, DAlignHorizontal);
30102
+ if (this._horizontal !== horizontal) {
30103
+ this._horizontal = horizontal;
30104
+ isChanged = true;
30105
+ }
30106
+ }
30107
+ if (isChanged) {
30108
+ this.onChange();
30109
+ }
30110
+ return this;
30111
+ };
30112
+ DImagePieceAlignImpl.prototype.onChange = function () {
30113
+ this._parent.onUpdate();
30114
+ };
30115
+ return DImagePieceAlignImpl;
30116
+ }());
30117
+
30118
+ var DImagePieceImpl = /** @class */ (function () {
30119
+ function DImagePieceImpl(parent, theme, options) {
30120
+ var _this = this;
30121
+ this._parent = parent;
30122
+ this._theme = theme;
30123
+ this._object = null;
30124
+ this._align = new DImagePieceAlignImpl(this, theme, options === null || options === void 0 ? void 0 : options.align);
30125
+ this._margin = new DImagePieceMarginImpl(this, theme, options === null || options === void 0 ? void 0 : options.margin);
30126
+ this._tint = new DImagePieceTintImpl(this, theme, options === null || options === void 0 ? void 0 : options.tint);
30127
+ this._rotation = options === null || options === void 0 ? void 0 : options.rotation;
30128
+ this._source = options === null || options === void 0 ? void 0 : options.source;
30129
+ this._computed = null;
30130
+ this._onUpdateBound = function () {
30131
+ _this.onUpdate();
30132
+ };
30133
+ }
30134
+ Object.defineProperty(DImagePieceImpl.prototype, "object", {
30135
+ get: function () {
30136
+ return this._object;
30137
+ },
30138
+ enumerable: false,
30139
+ configurable: true
30140
+ });
30141
+ Object.defineProperty(DImagePieceImpl.prototype, "align", {
30142
+ get: function () {
30143
+ return this._align;
30144
+ },
30145
+ enumerable: false,
30146
+ configurable: true
30147
+ });
30148
+ Object.defineProperty(DImagePieceImpl.prototype, "margin", {
30149
+ get: function () {
30150
+ return this._margin;
30151
+ },
30152
+ enumerable: false,
30153
+ configurable: true
30154
+ });
30155
+ Object.defineProperty(DImagePieceImpl.prototype, "tint", {
30156
+ get: function () {
30157
+ return this._tint;
30158
+ },
30159
+ enumerable: false,
30160
+ configurable: true
30161
+ });
30162
+ Object.defineProperty(DImagePieceImpl.prototype, "source", {
30163
+ get: function () {
30164
+ return this._source;
30165
+ },
30166
+ set: function (source) {
30167
+ if (this._source !== source) {
30168
+ this._source = source;
30169
+ if (this.updateSource()) {
30170
+ this.onUpdate();
30171
+ }
30172
+ }
30173
+ },
30174
+ enumerable: false,
30175
+ configurable: true
30176
+ });
30177
+ Object.defineProperty(DImagePieceImpl.prototype, "rotation", {
30178
+ get: function () {
30179
+ return this._rotation;
30180
+ },
30181
+ set: function (rotation) {
30182
+ if (this._rotation !== rotation) {
30183
+ this._rotation = rotation;
30184
+ if (this.updateRotation()) {
30185
+ DApplications.update(this._parent);
30186
+ }
30187
+ }
30188
+ },
30189
+ enumerable: false,
30190
+ configurable: true
30191
+ });
30192
+ DImagePieceImpl.prototype.computeSource = function () {
30193
+ var source = this._source;
30194
+ if (source !== undefined) {
30195
+ if (isFunction(source)) {
30196
+ var result = source(this._parent.state);
30197
+ if (result !== undefined) {
30198
+ return result;
30199
+ }
30200
+ }
30201
+ else {
30202
+ return source;
30203
+ }
30204
+ }
30205
+ return this._theme.getImageSource(this._parent.state);
30206
+ };
30207
+ DImagePieceImpl.prototype.onStateChange = function (newState, oldState) {
30208
+ this.updateTint();
30209
+ this.updateRotation();
30210
+ };
30211
+ DImagePieceImpl.prototype.isTintAware = function (target) {
30212
+ return target != null && "tint" in target;
30213
+ };
30214
+ /**
30215
+ * Updates the tint.
30216
+ *
30217
+ * @returns True if the tint is changed.
30218
+ */
30219
+ DImagePieceImpl.prototype.updateTint = function () {
30220
+ var object = this._object;
30221
+ if (object) {
30222
+ if (this.isTintAware(object)) {
30223
+ var state = this._parent.state;
30224
+ var color = this._tint.getColor(state);
30225
+ if (color != null) {
30226
+ var result = false;
30227
+ if (object.tint !== color) {
30228
+ object.tint = color;
30229
+ result = true;
30230
+ }
30231
+ var alpha = this._tint.getAlpha(state);
30232
+ if (object.alpha !== alpha) {
30233
+ object.alpha = alpha;
30234
+ result = true;
30235
+ }
30236
+ return result;
30237
+ }
30238
+ }
30239
+ }
30240
+ return false;
30241
+ };
30242
+ DImagePieceImpl.prototype.toRotation = function (theme, state) {
30243
+ var rotation = this._rotation;
30244
+ if (rotation != null) {
30245
+ if (isFunction(rotation)) {
30246
+ var result = rotation(state);
30247
+ if (result !== undefined) {
30248
+ return result;
30249
+ }
30250
+ }
30251
+ else {
30252
+ return rotation;
30253
+ }
30254
+ }
30255
+ return theme.getImageRotation(state);
30256
+ };
30257
+ DImagePieceImpl.prototype.updateRotation = function () {
30258
+ var object = this._object;
30259
+ if (object) {
30260
+ var theme = this._theme;
30261
+ var state = this._parent.state;
30262
+ var rotation = this.toRotation(theme, state);
30263
+ if (rotation != null) {
30264
+ var transform = object.transform;
30265
+ if (transform.rotation !== rotation) {
30266
+ transform.rotation = rotation;
30267
+ return true;
30268
+ }
30269
+ }
30270
+ }
30271
+ return false;
30272
+ };
30273
+ /**
30274
+ * Updates the computed source.
30275
+ *
30276
+ * @returns True if the computed source is changed
30277
+ */
30278
+ DImagePieceImpl.prototype.updateSource = function () {
30279
+ var newComputed = this.computeSource();
30280
+ var oldComputed = this._computed;
30281
+ if (newComputed !== oldComputed) {
30282
+ this._computed = newComputed;
30283
+ var parent_1 = this._parent;
30284
+ var oldObject = this._object;
30285
+ var onUpdateBound = this._onUpdateBound;
30286
+ if (newComputed instanceof pixi_js.Texture) {
30287
+ if (oldComputed instanceof pixi_js.Texture) {
30288
+ oldComputed.off("update", onUpdateBound);
30289
+ if (oldObject instanceof pixi_js.Sprite) {
30290
+ oldObject.texture = newComputed;
30291
+ newComputed.on("update", onUpdateBound);
30292
+ }
30293
+ }
30294
+ else {
30295
+ if (oldObject != null) {
30296
+ parent_1.removeChild(oldObject);
30297
+ }
30298
+ var newObject = new pixi_js.Sprite(newComputed);
30299
+ newObject.anchor.set(0.5, 0.5);
30300
+ var overflowMask = parent_1.getOverflowMask();
30301
+ if (overflowMask) {
30302
+ newObject.mask = overflowMask;
30303
+ }
30304
+ newComputed.on("update", onUpdateBound);
30305
+ parent_1.addChild(newObject);
30306
+ this._object = newObject;
30307
+ }
30308
+ }
30309
+ else {
30310
+ if (oldComputed instanceof pixi_js.Texture) {
30311
+ oldComputed.off("update", onUpdateBound);
30312
+ if (oldObject != null) {
30313
+ parent_1.removeChild(oldObject);
30314
+ oldObject.destroy();
30315
+ }
30316
+ }
30317
+ else if (oldObject != null) {
30318
+ parent_1.removeChild(oldObject);
30319
+ }
30320
+ if (newComputed != null) {
30321
+ var overflowMask = parent_1.getOverflowMask();
30322
+ if (overflowMask) {
30323
+ newComputed.mask = overflowMask;
30324
+ }
30325
+ parent_1.addChild(newComputed);
30326
+ }
30327
+ this._object = newComputed;
30328
+ }
30329
+ return true;
30330
+ }
30331
+ return false;
30332
+ };
30333
+ DImagePieceImpl.prototype.isRefitable = function (target) {
30334
+ return target != null && target === this._object;
30335
+ };
30336
+ DImagePieceImpl.prototype.destroy = function () {
30337
+ this.source = null;
30338
+ };
30339
+ DImagePieceImpl.prototype.onUpdate = function () {
30340
+ this._parent.toDirty();
30341
+ DApplications.update(this._parent);
30342
+ };
30343
+ return DImagePieceImpl;
30344
+ }());
30345
+
30346
+ var DImagePieceContainerImpl = /** @class */ (function () {
30347
+ function DImagePieceContainerImpl(parent, theme, options) {
30348
+ this._parent = parent;
30349
+ this._theme = theme;
30350
+ var pieces = [];
30351
+ this._pieces = pieces;
30352
+ if (options != null) {
30353
+ var images = options.images;
30354
+ if (images != null) {
30355
+ pieces.push(this.newImage(theme, 0 < images.length ? images[0] : undefined));
30356
+ if (theme.getSecondaryImageSource != null || 1 < images.length) {
30357
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme), images[1]));
30358
+ }
30359
+ if (theme.getTertiaryImageSource != null || 2 < images.length) {
30360
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme), images[2]));
30361
+ }
30362
+ if (3 < images.length) {
30363
+ var other = new DImageBaseThemeWrapperOther(theme);
30364
+ for (var i = 3, imax = images.length; i < imax; ++i) {
30365
+ pieces.push(this.newImage(other, images[i]));
30366
+ }
30367
+ }
30368
+ }
30369
+ else {
30370
+ pieces.push(this.newImage(theme, options.image));
30371
+ if (theme.getSecondaryImageSource != null) {
30372
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30373
+ }
30374
+ if (theme.getTertiaryImageSource != null) {
30375
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30376
+ }
30377
+ }
30378
+ }
30379
+ else {
30380
+ pieces.push(this.newImage(theme));
30381
+ if (theme.getSecondaryImageSource != null) {
30382
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30383
+ }
30384
+ if (theme.getTertiaryImageSource != null) {
30385
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30386
+ }
30387
+ }
30388
+ }
30389
+ DImagePieceContainerImpl.prototype.newImage = function (theme, options) {
30390
+ return new DImagePieceImpl(this._parent, theme, options);
30391
+ };
30392
+ DImagePieceContainerImpl.prototype.onStateChange = function (newState, oldState) {
30393
+ var pieces = this._pieces;
30394
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30395
+ pieces[i].onStateChange(newState, oldState);
30396
+ }
30397
+ };
30398
+ DImagePieceContainerImpl.prototype.isRefitable = function (target) {
30399
+ var pieces = this._pieces;
30400
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30401
+ if (pieces[i].isRefitable(target)) {
30402
+ return true;
30403
+ }
30404
+ }
30405
+ return false;
30406
+ };
30407
+ DImagePieceContainerImpl.prototype.updateTextAndImage = function (layouter) {
30408
+ var pieces = this._pieces;
30409
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30410
+ var piece = pieces[i];
30411
+ piece.updateSource();
30412
+ piece.updateTint();
30413
+ piece.updateRotation();
30414
+ layouter.add(piece);
30415
+ }
30416
+ };
30417
+ DImagePieceContainerImpl.prototype.add = function (options) {
30418
+ var result = this.newImage(this._theme, options);
30419
+ this._pieces.push(result);
30420
+ return result;
30421
+ };
30422
+ DImagePieceContainerImpl.prototype.get = function (index) {
30423
+ var pieces = this._pieces;
30424
+ if (0 <= index && index < pieces.length) {
30425
+ return pieces[index];
30426
+ }
30427
+ return null;
30428
+ };
30429
+ DImagePieceContainerImpl.prototype.remove = function (index) {
30430
+ var pieces = this._pieces;
30431
+ if (0 <= index && index < pieces.length) {
30432
+ pieces[index].destroy();
30433
+ return true;
30434
+ }
30435
+ return false;
30436
+ };
30437
+ DImagePieceContainerImpl.prototype.size = function () {
30438
+ return this._pieces.length;
30439
+ };
30440
+ DImagePieceContainerImpl.prototype.destroy = function () {
30441
+ var pieces = this._pieces;
30442
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30443
+ pieces[i].destroy();
30444
+ }
30445
+ };
30446
+ return DImagePieceContainerImpl;
30447
+ }());
30448
+
29993
30449
  /*
29994
30450
  * Copyright (C) 2019 Toshiba Corporation
29995
30451
  * SPDX-License-Identifier: Apache-2.0
29996
30452
  */
29997
- var hasSecondaryImageSource = function (theme) {
29998
- return !!theme.getSecondaryImageSource;
29999
- };
30000
- var hasTertiaryImageSource = function (theme) {
30001
- return !!theme.getTertiaryImageSource;
30002
- };
30003
30453
  /**
30004
30454
  * A base class for UI classes with an image support.
30005
30455
  * See {@link DImageBaseEvents} for event details.
@@ -30010,44 +30460,33 @@ var DImageBase = /** @class */ (function (_super) {
30010
30460
  return _super !== null && _super.apply(this, arguments) || this;
30011
30461
  }
30012
30462
  DImageBase.prototype.init = function (options) {
30013
- this._images = this.newImages(this.theme, options);
30463
+ this.getImage();
30014
30464
  _super.prototype.init.call(this, options);
30015
30465
  };
30016
- DImageBase.prototype.newImages = function (theme, options) {
30017
- var images = [];
30018
- images.push(this.newImage(theme, this.toImageOptions(theme, options === null || options === void 0 ? void 0 : options.image)));
30019
- if (hasSecondaryImageSource(theme)) {
30020
- images.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30021
- }
30022
- if (hasTertiaryImageSource(theme)) {
30023
- images.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30024
- }
30025
- return images;
30026
- };
30027
- DImageBase.prototype.toImageOptions = function (theme, options) {
30028
- return options;
30029
- };
30030
- DImageBase.prototype.newImage = function (theme, options) {
30031
- return new DImagePiece(this, theme, this._textAlign, options);
30032
- };
30033
30466
  Object.defineProperty(DImageBase.prototype, "image", {
30034
30467
  get: function () {
30035
- return this._images[0].source;
30468
+ var _a;
30469
+ return ((_a = this._image) !== null && _a !== void 0 ? _a : (this._image = this.newImage()));
30036
30470
  },
30037
30471
  set: function (imageSource) {
30038
- var image = this._images[0];
30039
- image.source = imageSource;
30040
- image.updateSource();
30472
+ var image = this.image.get(0);
30473
+ if (image != null) {
30474
+ image.source = imageSource;
30475
+ }
30041
30476
  },
30042
30477
  enumerable: false,
30043
30478
  configurable: true
30044
30479
  });
30480
+ DImageBase.prototype.getImage = function () {
30481
+ var _a;
30482
+ return ((_a = this._image) !== null && _a !== void 0 ? _a : (this._image = this.newImage()));
30483
+ };
30484
+ DImageBase.prototype.newImage = function () {
30485
+ return new DImagePieceContainerImpl(this, this.theme, this.options);
30486
+ };
30045
30487
  DImageBase.prototype.onStateChange = function (newState, oldState) {
30046
30488
  _super.prototype.onStateChange.call(this, newState, oldState);
30047
- var images = this._images;
30048
- for (var i = 0, imax = images.length; i < imax; ++i) {
30049
- images[i].onStateChange(newState, oldState);
30050
- }
30489
+ this.getImage().onStateChange(newState, oldState);
30051
30490
  };
30052
30491
  DImageBase.prototype.updateText = function () {
30053
30492
  this.updateTextValue();
@@ -30055,15 +30494,8 @@ var DImageBase = /** @class */ (function (_super) {
30055
30494
  };
30056
30495
  DImageBase.prototype.updateTextAndImage = function () {
30057
30496
  var _a;
30058
- var images = this._images;
30059
30497
  var layouter = ((_a = DImageBase.LAYOUTER) !== null && _a !== void 0 ? _a : (DImageBase.LAYOUTER = new DImagePieceLayouter()));
30060
- for (var i = 0, imax = images.length; i < imax; ++i) {
30061
- var image = images[i];
30062
- image.updateSource();
30063
- image.updateTint();
30064
- image.updateBound();
30065
- layouter.add(image);
30066
- }
30498
+ this.getImage().updateTextAndImage(layouter);
30067
30499
  var text = this._text;
30068
30500
  if (text != null) {
30069
30501
  this.updateTextColor(text);
@@ -30080,11 +30512,8 @@ var DImageBase = /** @class */ (function (_super) {
30080
30512
  if (_super.prototype.isRefitable.call(this, target)) {
30081
30513
  return true;
30082
30514
  }
30083
- var images = this._images;
30084
- for (var i = 0, imax = images.length; i < imax; ++i) {
30085
- if (images[i].isRefitable(target)) {
30086
- return true;
30087
- }
30515
+ if (this.getImage().isRefitable(target)) {
30516
+ return true;
30088
30517
  }
30089
30518
  return false;
30090
30519
  };
@@ -30092,9 +30521,9 @@ var DImageBase = /** @class */ (function (_super) {
30092
30521
  return "DImageBase";
30093
30522
  };
30094
30523
  DImageBase.prototype.destroy = function () {
30095
- var images = this._images;
30096
- for (var i = 0, imax = images.length; i < imax; ++i) {
30097
- images[i].destroy();
30524
+ var image = this._image;
30525
+ if (image != null) {
30526
+ image.destroy();
30098
30527
  }
30099
30528
  _super.prototype.destroy.call(this);
30100
30529
  };
@@ -47291,6 +47720,9 @@ var DThemeWhiteImageBase = /** @class */ (function (_super) {
47291
47720
  DThemeWhiteImageBase.prototype.getImageTintAlpha = function (state) {
47292
47721
  return this.getAlpha(state);
47293
47722
  };
47723
+ DThemeWhiteImageBase.prototype.getImageRotation = function (state) {
47724
+ return 0;
47725
+ };
47294
47726
  DThemeWhiteImageBase.prototype.getImageSource = function (state) {
47295
47727
  return null;
47296
47728
  };
@@ -47315,6 +47747,9 @@ var DThemeWhiteImageBase = /** @class */ (function (_super) {
47315
47747
  DThemeWhiteImageBase.prototype.getSecondaryImageTintAlpha = function (state) {
47316
47748
  return this.getImageTintAlpha(state);
47317
47749
  };
47750
+ DThemeWhiteImageBase.prototype.getSecondaryImageRotation = function (state) {
47751
+ return this.getImageRotation(state);
47752
+ };
47318
47753
  DThemeWhiteImageBase.prototype.getTertiaryImageAlignHorizontal = function () {
47319
47754
  return this.getImageAlignHorizontal();
47320
47755
  };
@@ -47336,6 +47771,9 @@ var DThemeWhiteImageBase = /** @class */ (function (_super) {
47336
47771
  DThemeWhiteImageBase.prototype.getTertiaryImageTintAlpha = function (state) {
47337
47772
  return this.getImageTintAlpha(state);
47338
47773
  };
47774
+ DThemeWhiteImageBase.prototype.getTertiaryImageRotation = function (state) {
47775
+ return this.getImageRotation(state);
47776
+ };
47339
47777
  return DThemeWhiteImageBase;
47340
47778
  }(DThemeWhiteTextBase));
47341
47779
 
@@ -55078,7 +55516,7 @@ var DThemeWhiteDialogProcessing = /** @class */ (function (_super) {
55078
55516
  * Copyright (C) 2019 Toshiba Corporation
55079
55517
  * SPDX-License-Identifier: Apache-2.0
55080
55518
  */
55081
- var message$3 = function (state) {
55519
+ var dThemeWhiteEnUsDialogProcessingMessage = function (state) {
55082
55520
  if (state.isSucceeded) {
55083
55521
  return "Processed successfully";
55084
55522
  }
@@ -55103,7 +55541,7 @@ var DThemeWhiteEnUsDialogProcessing = /** @class */ (function (_super) {
55103
55541
  };
55104
55542
  };
55105
55543
  DThemeWhiteEnUsDialogProcessing.prototype.getMessage = function () {
55106
- return message$3;
55544
+ return dThemeWhiteEnUsDialogProcessingMessage;
55107
55545
  };
55108
55546
  return DThemeWhiteEnUsDialogProcessing;
55109
55547
  }(DThemeWhiteDialogProcessing));
@@ -56984,6 +57422,109 @@ var loadThemeWhiteEnUsTable = function () {
56984
57422
  loadThemeWhiteMenu();
56985
57423
  };
56986
57424
 
57425
+ /*
57426
+ * Copyright (C) 2019 Toshiba Corporation
57427
+ * SPDX-License-Identifier: Apache-2.0
57428
+ */
57429
+ var toSvgTexture = function (svg, resolution) {
57430
+ return pixi_js.Texture.from(toSvgUrl(svg), {
57431
+ resolution: resolution
57432
+ });
57433
+ };
57434
+
57435
+ /*
57436
+ * Copyright (C) 2019 Toshiba Corporation
57437
+ * SPDX-License-Identifier: Apache-2.0
57438
+ */
57439
+ // Material Design icons by Google.
57440
+ // Apache license version 2.0.
57441
+ /* eslint-disable prettier/prettier */
57442
+ DThemeWhiteAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
57443
+ "<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
57444
+ "</g>");
57445
+ DThemeWhiteAtlas.add("button_process_fail", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
57446
+ "<path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" fill=\"#fff\" />" +
57447
+ "</g>");
57448
+ /* eslint-enable prettier/prettier */
57449
+ var newProcessingTexture$1 = function () {
57450
+ var resolution = (window.devicePixelRatio || 1) * 2;
57451
+ var size = 24 * resolution;
57452
+ return toSvgTexture("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "px\" height=\"").concat(size, "px\" viewBox=\"0 -960 960 960\">") +
57453
+ "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
57454
+ "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
57455
+ " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
57456
+ "6T480-80Z\" fill=\"#fff\"/>" +
57457
+ "</svg>", resolution);
57458
+ };
57459
+ var processingTexture$1;
57460
+ var imageSource$1 = function (state) {
57461
+ if (state.isProcessing) {
57462
+ return (processingTexture$1 !== null && processingTexture$1 !== void 0 ? processingTexture$1 : (processingTexture$1 = newProcessingTexture$1()));
57463
+ }
57464
+ else if (state.isSucceeded) {
57465
+ return DThemeWhiteAtlas.mappings.button_process_success;
57466
+ }
57467
+ else {
57468
+ return DThemeWhiteAtlas.mappings.button_process_fail;
57469
+ }
57470
+ };
57471
+ var imageRotation$1 = function (state) {
57472
+ var value = state.valueOf(DBaseState.PROCESSING);
57473
+ if (value != null) {
57474
+ return value * Math.PI * 0.02;
57475
+ }
57476
+ return 0;
57477
+ };
57478
+ var DThemeWhiteIndicatorProcess = /** @class */ (function () {
57479
+ function DThemeWhiteIndicatorProcess() {
57480
+ }
57481
+ DThemeWhiteIndicatorProcess.prototype.getProcessDoneDelay = function () {
57482
+ return 400;
57483
+ };
57484
+ DThemeWhiteIndicatorProcess.prototype.getProcessCloseDelay = function () {
57485
+ return 3000;
57486
+ };
57487
+ DThemeWhiteIndicatorProcess.prototype.isProcessTextEnabled = function () {
57488
+ return false;
57489
+ };
57490
+ DThemeWhiteIndicatorProcess.prototype.isProcessImageEnabled = function () {
57491
+ return true;
57492
+ };
57493
+ DThemeWhiteIndicatorProcess.prototype.getProcessImageIndex = function () {
57494
+ return 0;
57495
+ };
57496
+ DThemeWhiteIndicatorProcess.prototype.newProcessImageSource = function () {
57497
+ return imageSource$1;
57498
+ };
57499
+ DThemeWhiteIndicatorProcess.prototype.newProcessImageRotation = function () {
57500
+ return imageRotation$1;
57501
+ };
57502
+ return DThemeWhiteIndicatorProcess;
57503
+ }());
57504
+
57505
+ /*
57506
+ * Copyright (C) 2019 Toshiba Corporation
57507
+ * SPDX-License-Identifier: Apache-2.0
57508
+ */
57509
+ var DThemeWhiteEnUsIndicatorProcessing = /** @class */ (function (_super) {
57510
+ __extends(DThemeWhiteEnUsIndicatorProcessing, _super);
57511
+ function DThemeWhiteEnUsIndicatorProcessing() {
57512
+ return _super !== null && _super.apply(this, arguments) || this;
57513
+ }
57514
+ DThemeWhiteEnUsIndicatorProcessing.prototype.newProcessTextValue = function () {
57515
+ return dThemeWhiteEnUsDialogProcessingMessage;
57516
+ };
57517
+ return DThemeWhiteEnUsIndicatorProcessing;
57518
+ }(DThemeWhiteIndicatorProcess));
57519
+
57520
+ /*
57521
+ * Copyright (C) 2019 Toshiba Corporation
57522
+ * SPDX-License-Identifier: Apache-2.0
57523
+ */
57524
+ var loadThemeWhiteEnUsIndicatorProcessing = function () {
57525
+ DThemeWhite.set("DIndicatorProcessing", DThemeWhiteEnUsIndicatorProcessing);
57526
+ };
57527
+
56987
57528
  /*
56988
57529
  * Copyright (C) 2019 Toshiba Corporation
56989
57530
  * SPDX-License-Identifier: Apache-2.0
@@ -57003,6 +57544,7 @@ var loadThemeWhiteEnUsAll = function () {
57003
57544
  loadThemeWhiteExpandable();
57004
57545
  loadThemeWhiteHtmlElement();
57005
57546
  loadThemeWhiteImage();
57547
+ loadThemeWhiteEnUsIndicatorProcessing();
57006
57548
  loadThemeWhiteEnUsInputAll();
57007
57549
  loadThemeWhiteLayout();
57008
57550
  loadThemeWhiteEnUsLink();
@@ -57543,7 +58085,7 @@ var loadThemeWhiteJaJpDialogMessage = function () {
57543
58085
  * Copyright (C) 2019 Toshiba Corporation
57544
58086
  * SPDX-License-Identifier: Apache-2.0
57545
58087
  */
57546
- var message$2 = function (state) {
58088
+ var dThemeWhiteJaJpDialogProcessingMessage = function (state) {
57547
58089
  if (state.isSucceeded) {
57548
58090
  return "正常に処理されました";
57549
58091
  }
@@ -57568,7 +58110,7 @@ var DThemeWhiteJaJpDialogProcessing = /** @class */ (function (_super) {
57568
58110
  };
57569
58111
  };
57570
58112
  DThemeWhiteJaJpDialogProcessing.prototype.getMessage = function () {
57571
- return message$2;
58113
+ return dThemeWhiteJaJpDialogProcessingMessage;
57572
58114
  };
57573
58115
  return DThemeWhiteJaJpDialogProcessing;
57574
58116
  }(DThemeWhiteDialogProcessing));
@@ -57825,6 +58367,29 @@ var loadThemeWhiteJaJpTable = function () {
57825
58367
  loadThemeWhiteMenu();
57826
58368
  };
57827
58369
 
58370
+ /*
58371
+ * Copyright (C) 2019 Toshiba Corporation
58372
+ * SPDX-License-Identifier: Apache-2.0
58373
+ */
58374
+ var DThemeWhiteJaJpIndicatorProcessing = /** @class */ (function (_super) {
58375
+ __extends(DThemeWhiteJaJpIndicatorProcessing, _super);
58376
+ function DThemeWhiteJaJpIndicatorProcessing() {
58377
+ return _super !== null && _super.apply(this, arguments) || this;
58378
+ }
58379
+ DThemeWhiteJaJpIndicatorProcessing.prototype.newProcessTextValue = function () {
58380
+ return dThemeWhiteJaJpDialogProcessingMessage;
58381
+ };
58382
+ return DThemeWhiteJaJpIndicatorProcessing;
58383
+ }(DThemeWhiteIndicatorProcess));
58384
+
58385
+ /*
58386
+ * Copyright (C) 2019 Toshiba Corporation
58387
+ * SPDX-License-Identifier: Apache-2.0
58388
+ */
58389
+ var loadThemeWhiteJaJpIndicatorProcessing = function () {
58390
+ DThemeWhite.set("DIndicatorProcessing", DThemeWhiteJaJpIndicatorProcessing);
58391
+ };
58392
+
57828
58393
  /*
57829
58394
  * Copyright (C) 2019 Toshiba Corporation
57830
58395
  * SPDX-License-Identifier: Apache-2.0
@@ -57844,6 +58409,7 @@ var loadThemeWhiteJaJpAll = function () {
57844
58409
  loadThemeWhiteExpandable();
57845
58410
  loadThemeWhiteHtmlElement();
57846
58411
  loadThemeWhiteImage();
58412
+ loadThemeWhiteJaJpIndicatorProcessing();
57847
58413
  loadThemeWhiteJaJpInputAll();
57848
58414
  loadThemeWhiteLayout();
57849
58415
  loadThemeWhiteJaJpLink();
@@ -58276,6 +58842,9 @@ var DThemeDarkImageBase = /** @class */ (function (_super) {
58276
58842
  DThemeDarkImageBase.prototype.getImageTintAlpha = function (state) {
58277
58843
  return this.getAlpha(state);
58278
58844
  };
58845
+ DThemeDarkImageBase.prototype.getImageRotation = function (state) {
58846
+ return 0;
58847
+ };
58279
58848
  DThemeDarkImageBase.prototype.getImageSource = function (state) {
58280
58849
  return null;
58281
58850
  };
@@ -58300,6 +58869,9 @@ var DThemeDarkImageBase = /** @class */ (function (_super) {
58300
58869
  DThemeDarkImageBase.prototype.getSecondaryImageTintAlpha = function (state) {
58301
58870
  return this.getImageTintAlpha(state);
58302
58871
  };
58872
+ DThemeDarkImageBase.prototype.getSecondaryImageRotation = function (state) {
58873
+ return this.getImageRotation(state);
58874
+ };
58303
58875
  DThemeDarkImageBase.prototype.getTertiaryImageAlignHorizontal = function () {
58304
58876
  return this.getImageAlignHorizontal();
58305
58877
  };
@@ -58321,6 +58893,9 @@ var DThemeDarkImageBase = /** @class */ (function (_super) {
58321
58893
  DThemeDarkImageBase.prototype.getTertiaryImageTintAlpha = function (state) {
58322
58894
  return this.getImageTintAlpha(state);
58323
58895
  };
58896
+ DThemeDarkImageBase.prototype.getTertiaryImageRotation = function (state) {
58897
+ return this.getImageRotation(state);
58898
+ };
58324
58899
  return DThemeDarkImageBase;
58325
58900
  }(DThemeDarkTextBase));
58326
58901
 
@@ -65458,7 +66033,7 @@ var DThemeDarkDialogProcessing = /** @class */ (function (_super) {
65458
66033
  * Copyright (C) 2019 Toshiba Corporation
65459
66034
  * SPDX-License-Identifier: Apache-2.0
65460
66035
  */
65461
- var message$1 = function (state) {
66036
+ var dThemeDarkEnUsDialogProcessingMessage = function (state) {
65462
66037
  if (state.isSucceeded) {
65463
66038
  return "Processed successfully";
65464
66039
  }
@@ -65483,7 +66058,7 @@ var DThemeDarkEnUsDialogProcessing = /** @class */ (function (_super) {
65483
66058
  };
65484
66059
  };
65485
66060
  DThemeDarkEnUsDialogProcessing.prototype.getMessage = function () {
65486
- return message$1;
66061
+ return dThemeDarkEnUsDialogProcessingMessage;
65487
66062
  };
65488
66063
  return DThemeDarkEnUsDialogProcessing;
65489
66064
  }(DThemeDarkDialogProcessing));
@@ -67361,6 +67936,99 @@ var loadThemeDarkEnUsTable = function () {
67361
67936
  loadThemeDarkMenu();
67362
67937
  };
67363
67938
 
67939
+ /*
67940
+ * Copyright (C) 2019 Toshiba Corporation
67941
+ * SPDX-License-Identifier: Apache-2.0
67942
+ */
67943
+ // Material Design icons by Google.
67944
+ // Apache license version 2.0.
67945
+ /* eslint-disable prettier/prettier */
67946
+ DThemeDarkAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
67947
+ "<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
67948
+ "</g>");
67949
+ DThemeDarkAtlas.add("button_process_fail", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
67950
+ "<path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" fill=\"#fff\" />" +
67951
+ "</g>");
67952
+ /* eslint-enable prettier/prettier */
67953
+ var newProcessingTexture = function () {
67954
+ var resolution = (window.devicePixelRatio || 1) * 2;
67955
+ var size = 24 * resolution;
67956
+ return toSvgTexture("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "px\" height=\"").concat(size, "px\" viewBox=\"0 -960 960 960\">") +
67957
+ "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
67958
+ "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
67959
+ " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
67960
+ "6T480-80Z\" fill=\"#fff\"/>" +
67961
+ "</svg>", resolution);
67962
+ };
67963
+ var processingTexture;
67964
+ var imageSource = function (state) {
67965
+ if (state.isProcessing) {
67966
+ return (processingTexture !== null && processingTexture !== void 0 ? processingTexture : (processingTexture = newProcessingTexture()));
67967
+ }
67968
+ else if (state.isSucceeded) {
67969
+ return DThemeDarkAtlas.mappings.button_process_success;
67970
+ }
67971
+ else {
67972
+ return DThemeDarkAtlas.mappings.button_process_fail;
67973
+ }
67974
+ };
67975
+ var imageRotation = function (state) {
67976
+ var value = state.valueOf(DBaseState.PROCESSING);
67977
+ if (value != null) {
67978
+ return value * Math.PI * 0.02;
67979
+ }
67980
+ return 0;
67981
+ };
67982
+ var DThemeDarkIndicatorProcess = /** @class */ (function () {
67983
+ function DThemeDarkIndicatorProcess() {
67984
+ }
67985
+ DThemeDarkIndicatorProcess.prototype.getProcessDoneDelay = function () {
67986
+ return 400;
67987
+ };
67988
+ DThemeDarkIndicatorProcess.prototype.getProcessCloseDelay = function () {
67989
+ return 3000;
67990
+ };
67991
+ DThemeDarkIndicatorProcess.prototype.isProcessTextEnabled = function () {
67992
+ return false;
67993
+ };
67994
+ DThemeDarkIndicatorProcess.prototype.isProcessImageEnabled = function () {
67995
+ return true;
67996
+ };
67997
+ DThemeDarkIndicatorProcess.prototype.getProcessImageIndex = function () {
67998
+ return 0;
67999
+ };
68000
+ DThemeDarkIndicatorProcess.prototype.newProcessImageSource = function () {
68001
+ return imageSource;
68002
+ };
68003
+ DThemeDarkIndicatorProcess.prototype.newProcessImageRotation = function () {
68004
+ return imageRotation;
68005
+ };
68006
+ return DThemeDarkIndicatorProcess;
68007
+ }());
68008
+
68009
+ /*
68010
+ * Copyright (C) 2019 Toshiba Corporation
68011
+ * SPDX-License-Identifier: Apache-2.0
68012
+ */
68013
+ var DThemeDarkEnUsIndicatorProcessing = /** @class */ (function (_super) {
68014
+ __extends(DThemeDarkEnUsIndicatorProcessing, _super);
68015
+ function DThemeDarkEnUsIndicatorProcessing() {
68016
+ return _super !== null && _super.apply(this, arguments) || this;
68017
+ }
68018
+ DThemeDarkEnUsIndicatorProcessing.prototype.newProcessTextValue = function () {
68019
+ return dThemeDarkEnUsDialogProcessingMessage;
68020
+ };
68021
+ return DThemeDarkEnUsIndicatorProcessing;
68022
+ }(DThemeDarkIndicatorProcess));
68023
+
68024
+ /*
68025
+ * Copyright (C) 2019 Toshiba Corporation
68026
+ * SPDX-License-Identifier: Apache-2.0
68027
+ */
68028
+ var loadThemeDarkEnUsIndicatorProcessing = function () {
68029
+ DThemeDark.set("DIndicatorProcessing", DThemeDarkEnUsIndicatorProcessing);
68030
+ };
68031
+
67364
68032
  /*
67365
68033
  * Copyright (C) 2019 Toshiba Corporation
67366
68034
  * SPDX-License-Identifier: Apache-2.0
@@ -67380,6 +68048,7 @@ var loadThemeDarkEnUsAll = function () {
67380
68048
  loadThemeDarkExpandable();
67381
68049
  loadThemeDarkHtmlElement();
67382
68050
  loadThemeDarkImage();
68051
+ loadThemeDarkEnUsIndicatorProcessing();
67383
68052
  loadThemeDarkEnUsInputAll();
67384
68053
  loadThemeDarkLayout();
67385
68054
  loadThemeDarkEnUsLink();
@@ -67920,7 +68589,7 @@ var loadThemeDarkJaJpDialogMessage = function () {
67920
68589
  * Copyright (C) 2019 Toshiba Corporation
67921
68590
  * SPDX-License-Identifier: Apache-2.0
67922
68591
  */
67923
- var message = function (state) {
68592
+ var dThemeDarkJaJpDialogProcessingMessage = function (state) {
67924
68593
  if (state.isSucceeded) {
67925
68594
  return "正常に処理されました";
67926
68595
  }
@@ -67945,7 +68614,7 @@ var DThemeDarkJaJpDialogProcessing = /** @class */ (function (_super) {
67945
68614
  };
67946
68615
  };
67947
68616
  DThemeDarkJaJpDialogProcessing.prototype.getMessage = function () {
67948
- return message;
68617
+ return dThemeDarkJaJpDialogProcessingMessage;
67949
68618
  };
67950
68619
  return DThemeDarkJaJpDialogProcessing;
67951
68620
  }(DThemeDarkDialogProcessing));
@@ -68202,6 +68871,29 @@ var loadThemeDarkJaJpTable = function () {
68202
68871
  loadThemeDarkMenu();
68203
68872
  };
68204
68873
 
68874
+ /*
68875
+ * Copyright (C) 2019 Toshiba Corporation
68876
+ * SPDX-License-Identifier: Apache-2.0
68877
+ */
68878
+ var DThemeDarkJaJpIndicatorProcessing = /** @class */ (function (_super) {
68879
+ __extends(DThemeDarkJaJpIndicatorProcessing, _super);
68880
+ function DThemeDarkJaJpIndicatorProcessing() {
68881
+ return _super !== null && _super.apply(this, arguments) || this;
68882
+ }
68883
+ DThemeDarkJaJpIndicatorProcessing.prototype.newProcessTextValue = function () {
68884
+ return dThemeDarkJaJpDialogProcessingMessage;
68885
+ };
68886
+ return DThemeDarkJaJpIndicatorProcessing;
68887
+ }(DThemeDarkIndicatorProcess));
68888
+
68889
+ /*
68890
+ * Copyright (C) 2019 Toshiba Corporation
68891
+ * SPDX-License-Identifier: Apache-2.0
68892
+ */
68893
+ var loadThemeDarkJaJpIndicatorProcessing = function () {
68894
+ DThemeDark.set("DIndicatorProcessing", DThemeDarkJaJpIndicatorProcessing);
68895
+ };
68896
+
68205
68897
  /*
68206
68898
  * Copyright (C) 2019 Toshiba Corporation
68207
68899
  * SPDX-License-Identifier: Apache-2.0
@@ -68221,6 +68913,7 @@ var loadThemeDarkJaJpAll = function () {
68221
68913
  loadThemeDarkExpandable();
68222
68914
  loadThemeDarkHtmlElement();
68223
68915
  loadThemeDarkImage();
68916
+ loadThemeDarkJaJpIndicatorProcessing();
68224
68917
  loadThemeDarkJaJpInputAll();
68225
68918
  loadThemeDarkLayout();
68226
68919
  loadThemeDarkJaJpLink();
@@ -68820,16 +69513,6 @@ var toMerged = function (one, other) {
68820
69513
  }
68821
69514
  };
68822
69515
 
68823
- /*
68824
- * Copyright (C) 2019 Toshiba Corporation
68825
- * SPDX-License-Identifier: Apache-2.0
68826
- */
68827
- var toSvgTexture = function (svg, resolution) {
68828
- return pixi_js.Texture.from(toSvgUrl(svg), {
68829
- resolution: resolution
68830
- });
68831
- };
68832
-
68833
69516
  /*
68834
69517
  * Copyright (C) 2019 Toshiba Corporation
68835
69518
  * SPDX-License-Identifier: Apache-2.0
@@ -73506,35 +74189,13 @@ var DButtonColor = /** @class */ (function (_super) {
73506
74189
  this.onColorChange();
73507
74190
  this.emit("change", newValue, oldValue, this);
73508
74191
  };
73509
- DButtonColor.prototype.toImageTintOptions = function (tint) {
73510
- var _this = this;
73511
- var color = function () { return _this._textValueComputed.color; };
73512
- if (tint) {
73513
- return {
73514
- color: tint.color || color,
73515
- alpha: tint.alpha
73516
- };
73517
- }
73518
- return {
73519
- color: color
73520
- };
73521
- };
73522
- DButtonColor.prototype.toImageOptions = function (theme, options) {
73523
- if (options) {
73524
- return {
73525
- source: options.source,
73526
- tint: this.toImageTintOptions(options.tint),
73527
- align: options.align,
73528
- margin: options.margin
73529
- };
73530
- }
73531
- return {
73532
- tint: this.toImageTintOptions()
73533
- };
73534
- };
73535
74192
  DButtonColor.prototype.onColorChange = function () {
73536
- if (this._images[0].updateTint()) {
73537
- DApplications.update(this);
74193
+ var image = this.image.get(0);
74194
+ if (image != null) {
74195
+ var value = this._textValueComputed;
74196
+ if (value != null) {
74197
+ image.tint.color = value.color;
74198
+ }
73538
74199
  }
73539
74200
  this.updateTextForcibly();
73540
74201
  };
@@ -86094,10 +86755,11 @@ var DDialogProcessing = /** @class */ (function (_super) {
86094
86755
  var _this = _super.call(this, options) || this;
86095
86756
  _this._isDone = true;
86096
86757
  _this._startTime = 0;
86758
+ var theme = _this.theme;
86097
86759
  var delay = options === null || options === void 0 ? void 0 : options.delay;
86098
- _this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : _this.theme.getDoneDelay();
86760
+ _this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : theme.getDoneDelay();
86099
86761
  var delayClose = delay === null || delay === void 0 ? void 0 : delay.close;
86100
- _this._delayClose = delayClose !== undefined ? delayClose : _this.theme.getCloseDelay();
86762
+ _this._delayClose = delayClose !== undefined ? delayClose : theme.getCloseDelay();
86101
86763
  _this._messageText = _this.message.text;
86102
86764
  return _this;
86103
86765
  }
@@ -86393,6 +87055,219 @@ var DExpandable = /** @class */ (function (_super) {
86393
87055
  return DExpandable;
86394
87056
  }(DLayoutVertical));
86395
87057
 
87058
+ var STATE_INITIAL = 0;
87059
+ var STATE_STARTED = 1;
87060
+ var STATE_RESOLVED = 2;
87061
+ var STATE_REJECTED = 3;
87062
+ var DIndicatorProcessing = /** @class */ (function () {
87063
+ function DIndicatorProcessing(parent, options) {
87064
+ var _a, _b, _c, _d, _e, _f, _g;
87065
+ this._parent = parent;
87066
+ this._state = STATE_INITIAL;
87067
+ this._startTime = 0;
87068
+ // Delay
87069
+ var theme = this.theme;
87070
+ var delay = options === null || options === void 0 ? void 0 : options.delay;
87071
+ this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : theme.getProcessDoneDelay();
87072
+ var delayClose = delay === null || delay === void 0 ? void 0 : delay.close;
87073
+ this._delayClose = delayClose !== undefined ? delayClose : theme.getProcessCloseDelay();
87074
+ // Text
87075
+ var text = options === null || options === void 0 ? void 0 : options.text;
87076
+ this._isTextEnabled = (_b = text === null || text === void 0 ? void 0 : text.enabled) !== null && _b !== void 0 ? _b : theme.isProcessTextEnabled();
87077
+ this._textValue = (_c = text === null || text === void 0 ? void 0 : text.value) !== null && _c !== void 0 ? _c : theme.newProcessTextValue();
87078
+ // Image
87079
+ var image = options === null || options === void 0 ? void 0 : options.image;
87080
+ this._isImageEnabled = (_d = image === null || image === void 0 ? void 0 : image.enabled) !== null && _d !== void 0 ? _d : theme.isProcessImageEnabled();
87081
+ this._imageIndex = (_e = image === null || image === void 0 ? void 0 : image.index) !== null && _e !== void 0 ? _e : theme.getProcessImageIndex();
87082
+ this._imageSource = (_f = image === null || image === void 0 ? void 0 : image.source) !== null && _f !== void 0 ? _f : theme.newProcessImageSource();
87083
+ this._imageRotation = (_g = image === null || image === void 0 ? void 0 : image.rotation) !== null && _g !== void 0 ? _g : theme.newProcessImageRotation();
87084
+ // State
87085
+ this._wasReadOnly = false;
87086
+ }
87087
+ DIndicatorProcessing.prototype.start = function () {
87088
+ var state = this._state;
87089
+ if (state === STATE_INITIAL) {
87090
+ this._state = STATE_STARTED;
87091
+ this.onBegin();
87092
+ }
87093
+ else if (state === STATE_RESOLVED || state === STATE_REJECTED) {
87094
+ this._state = STATE_STARTED;
87095
+ this.onEnd();
87096
+ this.onBegin();
87097
+ }
87098
+ return this;
87099
+ };
87100
+ DIndicatorProcessing.prototype.onBegin = function () {
87101
+ this._startTime = Date.now();
87102
+ var timeoutId = this._timeoutId;
87103
+ if (timeoutId != null) {
87104
+ clearTimeout(timeoutId);
87105
+ }
87106
+ var closeTimeoutId = this._closeTimeoutId;
87107
+ if (closeTimeoutId != null) {
87108
+ clearTimeout(closeTimeoutId);
87109
+ }
87110
+ var parent = this._parent;
87111
+ var state = parent.state;
87112
+ state.lock();
87113
+ state.ticker.remove(DBaseState.PROCESSING).add(DBaseState.PROCESSING, 32);
87114
+ state.removeAll(DBaseState.SUCCEEDED, DBaseState.FAILED);
87115
+ this._wasReadOnly = state.isReadOnly;
87116
+ if (!this._wasReadOnly) {
87117
+ state.add(DBaseState.READ_ONLY);
87118
+ }
87119
+ state.unlock();
87120
+ if (this._isTextEnabled) {
87121
+ this._textValueBackup = parent.text;
87122
+ var textValue = this._textValue;
87123
+ if (textValue !== undefined) {
87124
+ parent.text = textValue;
87125
+ }
87126
+ }
87127
+ if (this._isImageEnabled) {
87128
+ var image = parent.image.get(this._imageIndex);
87129
+ if (image != null) {
87130
+ this._imageSourceBackup = image.source;
87131
+ this._imageRotationBackup = image.rotation;
87132
+ var imageSource = this._imageSource;
87133
+ if (imageSource !== undefined) {
87134
+ image.source = imageSource;
87135
+ }
87136
+ var imageRotation = this._imageRotation;
87137
+ if (imageRotation !== undefined) {
87138
+ image.rotation = imageRotation;
87139
+ }
87140
+ }
87141
+ }
87142
+ };
87143
+ DIndicatorProcessing.prototype.end = function () {
87144
+ var state = this._state;
87145
+ if (state === STATE_STARTED || state === STATE_RESOLVED || state === STATE_REJECTED) {
87146
+ this._state = STATE_INITIAL;
87147
+ this.onEnd();
87148
+ }
87149
+ return this;
87150
+ };
87151
+ DIndicatorProcessing.prototype.onEnd = function () {
87152
+ var timeoutId = this._timeoutId;
87153
+ if (timeoutId != null) {
87154
+ clearTimeout(timeoutId);
87155
+ }
87156
+ var closeTimeoutId = this._closeTimeoutId;
87157
+ if (closeTimeoutId != null) {
87158
+ clearTimeout(closeTimeoutId);
87159
+ }
87160
+ var parent = this._parent;
87161
+ var state = parent.state;
87162
+ state.lock();
87163
+ state.ticker.remove(DBaseState.PROCESSING);
87164
+ state.removeAll(DBaseState.SUCCEEDED, DBaseState.FAILED);
87165
+ if (!this._wasReadOnly) {
87166
+ state.remove(DBaseState.READ_ONLY);
87167
+ }
87168
+ state.unlock();
87169
+ if (this._isTextEnabled) {
87170
+ parent.text = this._textValueBackup;
87171
+ }
87172
+ if (this._isImageEnabled) {
87173
+ var image = parent.image.get(this._imageIndex);
87174
+ if (image != null) {
87175
+ image.source = this._imageSourceBackup;
87176
+ image.rotation = this._imageRotationBackup;
87177
+ }
87178
+ }
87179
+ };
87180
+ DIndicatorProcessing.prototype.resolve = function (message) {
87181
+ var _this = this;
87182
+ if (this._state === STATE_STARTED) {
87183
+ this._state = STATE_RESOLVED;
87184
+ var elapsedTime = Date.now() - this._startTime;
87185
+ var delay = this._delayDone - elapsedTime;
87186
+ if (0 < delay) {
87187
+ this._timeoutId = window.setTimeout(function () {
87188
+ _this._timeoutId = undefined;
87189
+ _this.onResolved(message);
87190
+ }, delay);
87191
+ }
87192
+ else {
87193
+ this.onResolved(message);
87194
+ }
87195
+ }
87196
+ };
87197
+ DIndicatorProcessing.prototype.onResolved = function (message) {
87198
+ var parent = this._parent;
87199
+ if (this._isTextEnabled && message != null) {
87200
+ parent.text = message;
87201
+ }
87202
+ var state = parent.state;
87203
+ state.lock();
87204
+ state.ticker.remove(DBaseState.PROCESSING);
87205
+ state.add(DBaseState.SUCCEEDED);
87206
+ state.remove(DBaseState.FAILED);
87207
+ if (!this._wasReadOnly) {
87208
+ state.remove(DBaseState.READ_ONLY);
87209
+ }
87210
+ state.unlock();
87211
+ this.onDone(this._delayClose);
87212
+ };
87213
+ DIndicatorProcessing.prototype.reject = function (message) {
87214
+ var _this = this;
87215
+ if (this._state === STATE_STARTED) {
87216
+ this._state = STATE_REJECTED;
87217
+ var elapsedTime = Date.now() - this._startTime;
87218
+ var delay = this._delayDone - elapsedTime;
87219
+ if (0 < delay) {
87220
+ this._timeoutId = window.setTimeout(function () {
87221
+ _this._timeoutId = undefined;
87222
+ _this.onRejected(message);
87223
+ }, delay);
87224
+ }
87225
+ else {
87226
+ this.onRejected(message);
87227
+ }
87228
+ }
87229
+ };
87230
+ DIndicatorProcessing.prototype.onRejected = function (message) {
87231
+ var parent = this._parent;
87232
+ if (this._isTextEnabled && message != null) {
87233
+ parent.text = message;
87234
+ }
87235
+ var state = parent.state;
87236
+ state.lock();
87237
+ state.ticker.remove(DBaseState.PROCESSING);
87238
+ state.add(DBaseState.FAILED);
87239
+ state.remove(DBaseState.SUCCEEDED);
87240
+ if (!this._wasReadOnly) {
87241
+ state.remove(DBaseState.READ_ONLY);
87242
+ }
87243
+ state.unlock();
87244
+ this.onDone(this._delayClose);
87245
+ };
87246
+ DIndicatorProcessing.prototype.onDone = function (delay) {
87247
+ var _this = this;
87248
+ if (delay != null) {
87249
+ this._closeTimeoutId = window.setTimeout(function () {
87250
+ _this._closeTimeoutId = undefined;
87251
+ _this.end();
87252
+ }, delay);
87253
+ }
87254
+ else {
87255
+ this.end();
87256
+ }
87257
+ };
87258
+ DIndicatorProcessing.prototype.getType = function () {
87259
+ return "DIndicatorProcessing";
87260
+ };
87261
+ Object.defineProperty(DIndicatorProcessing.prototype, "theme", {
87262
+ get: function () {
87263
+ return DThemes.get(this.getType());
87264
+ },
87265
+ enumerable: false,
87266
+ configurable: true
87267
+ });
87268
+ return DIndicatorProcessing;
87269
+ }());
87270
+
86396
87271
  /*
86397
87272
  * Copyright (C) 2019 Toshiba Corporation
86398
87273
  * SPDX-License-Identifier: Apache-2.0
@@ -94203,12 +95078,17 @@ var DTableHeaderCell = /** @class */ (function (_super) {
94203
95078
  DTableHeaderCell.prototype.isCheckClicked = function (e) {
94204
95079
  if (e instanceof pixi_js.InteractionEvent && this._check.isEnabled) {
94205
95080
  if (this.isSortable) {
94206
- var image = this._images[1];
94207
- if (image && image.image != null) {
95081
+ var image = this.image.get(1);
95082
+ if (image) {
94208
95083
  var position = this.toClickPosition(e);
94209
- var bound = image.bound;
94210
- var margin = image.margin.horizontal;
94211
- return bound.left - margin <= position && position <= bound.right + margin;
95084
+ var object = image.object;
95085
+ if (object != null) {
95086
+ var bound = object.getLocalBounds();
95087
+ var margin = image.margin.horizontal;
95088
+ var x = object.x;
95089
+ return (x + bound.left - margin <= position &&
95090
+ position <= x + bound.right + margin);
95091
+ }
94212
95092
  }
94213
95093
  }
94214
95094
  else {
@@ -96953,9 +97833,12 @@ exports.DHtmlElement = DHtmlElement;
96953
97833
  exports.DHtmlElementState = DHtmlElementState;
96954
97834
  exports.DImage = DImage;
96955
97835
  exports.DImageBase = DImageBase;
97836
+ exports.DImageBaseThemeWrapperOther = DImageBaseThemeWrapperOther;
96956
97837
  exports.DImageBaseThemeWrapperSecondary = DImageBaseThemeWrapperSecondary;
96957
97838
  exports.DImageBaseThemeWrapperTertiary = DImageBaseThemeWrapperTertiary;
96958
- exports.DImagePiece = DImagePiece;
97839
+ exports.DImagePieceAlignImpl = DImagePieceAlignImpl;
97840
+ exports.DImagePieceContainerImpl = DImagePieceContainerImpl;
97841
+ exports.DImagePieceImpl = DImagePieceImpl;
96959
97842
  exports.DImagePieceLayouter = DImagePieceLayouter;
96960
97843
  exports.DImagePieceLayouterPart = DImagePieceLayouterPart;
96961
97844
  exports.DImagePieceLayouterPartBottom = DImagePieceLayouterPartBottom;
@@ -96965,6 +97848,9 @@ exports.DImagePieceLayouterPartLeft = DImagePieceLayouterPartLeft;
96965
97848
  exports.DImagePieceLayouterPartMiddle = DImagePieceLayouterPartMiddle;
96966
97849
  exports.DImagePieceLayouterPartRight = DImagePieceLayouterPartRight;
96967
97850
  exports.DImagePieceLayouterPartTop = DImagePieceLayouterPartTop;
97851
+ exports.DImagePieceMarginImpl = DImagePieceMarginImpl;
97852
+ exports.DImagePieceTintImpl = DImagePieceTintImpl;
97853
+ exports.DIndicatorProcessing = DIndicatorProcessing;
96968
97854
  exports.DInput = DInput;
96969
97855
  exports.DInputAndLabel = DInputAndLabel;
96970
97856
  exports.DInputBoolean = DInputBoolean;
@@ -97276,6 +98162,7 @@ exports.DThemeDarkEnUsDialogMessage = DThemeDarkEnUsDialogMessage;
97276
98162
  exports.DThemeDarkEnUsDialogProcessing = DThemeDarkEnUsDialogProcessing;
97277
98163
  exports.DThemeDarkEnUsDialogSaveAs = DThemeDarkEnUsDialogSaveAs;
97278
98164
  exports.DThemeDarkEnUsDialogSelect = DThemeDarkEnUsDialogSelect;
98165
+ exports.DThemeDarkEnUsIndicatorProcessing = DThemeDarkEnUsIndicatorProcessing;
97279
98166
  exports.DThemeDarkEnUsInputBooleanButtonOff = DThemeDarkEnUsInputBooleanButtonOff;
97280
98167
  exports.DThemeDarkEnUsInputBooleanButtonOn = DThemeDarkEnUsInputBooleanButtonOn;
97281
98168
  exports.DThemeDarkEnUsLink = DThemeDarkEnUsLink;
@@ -97293,6 +98180,7 @@ exports.DThemeDarkFont = DThemeDarkFont;
97293
98180
  exports.DThemeDarkHtmlElement = DThemeDarkHtmlElement;
97294
98181
  exports.DThemeDarkImage = DThemeDarkImage;
97295
98182
  exports.DThemeDarkImageBase = DThemeDarkImageBase;
98183
+ exports.DThemeDarkIndicatorProcess = DThemeDarkIndicatorProcess;
97296
98184
  exports.DThemeDarkInput = DThemeDarkInput;
97297
98185
  exports.DThemeDarkInputAndLabel = DThemeDarkInputAndLabel;
97298
98186
  exports.DThemeDarkInputBoolean = DThemeDarkInputBoolean;
@@ -97315,6 +98203,7 @@ exports.DThemeDarkJaJpDialogMessage = DThemeDarkJaJpDialogMessage;
97315
98203
  exports.DThemeDarkJaJpDialogProcessing = DThemeDarkJaJpDialogProcessing;
97316
98204
  exports.DThemeDarkJaJpDialogSaveAs = DThemeDarkJaJpDialogSaveAs;
97317
98205
  exports.DThemeDarkJaJpDialogSelect = DThemeDarkJaJpDialogSelect;
98206
+ exports.DThemeDarkJaJpIndicatorProcessing = DThemeDarkJaJpIndicatorProcessing;
97318
98207
  exports.DThemeDarkJaJpInputBooleanButtonOff = DThemeDarkJaJpInputBooleanButtonOff;
97319
98208
  exports.DThemeDarkJaJpInputBooleanButtonOn = DThemeDarkJaJpInputBooleanButtonOn;
97320
98209
  exports.DThemeDarkJaJpLink = DThemeDarkJaJpLink;
@@ -97544,6 +98433,7 @@ exports.DThemeWhiteEnUsDialogMessage = DThemeWhiteEnUsDialogMessage;
97544
98433
  exports.DThemeWhiteEnUsDialogProcessing = DThemeWhiteEnUsDialogProcessing;
97545
98434
  exports.DThemeWhiteEnUsDialogSaveAs = DThemeWhiteEnUsDialogSaveAs;
97546
98435
  exports.DThemeWhiteEnUsDialogSelect = DThemeWhiteEnUsDialogSelect;
98436
+ exports.DThemeWhiteEnUsIndicatorProcessing = DThemeWhiteEnUsIndicatorProcessing;
97547
98437
  exports.DThemeWhiteEnUsInputBooleanButtonOff = DThemeWhiteEnUsInputBooleanButtonOff;
97548
98438
  exports.DThemeWhiteEnUsInputBooleanButtonOn = DThemeWhiteEnUsInputBooleanButtonOn;
97549
98439
  exports.DThemeWhiteEnUsLink = DThemeWhiteEnUsLink;
@@ -97561,6 +98451,7 @@ exports.DThemeWhiteFont = DThemeWhiteFont;
97561
98451
  exports.DThemeWhiteHtmlElement = DThemeWhiteHtmlElement;
97562
98452
  exports.DThemeWhiteImage = DThemeWhiteImage;
97563
98453
  exports.DThemeWhiteImageBase = DThemeWhiteImageBase;
98454
+ exports.DThemeWhiteIndicatorProcess = DThemeWhiteIndicatorProcess;
97564
98455
  exports.DThemeWhiteInput = DThemeWhiteInput;
97565
98456
  exports.DThemeWhiteInputAndLabel = DThemeWhiteInputAndLabel;
97566
98457
  exports.DThemeWhiteInputBoolean = DThemeWhiteInputBoolean;
@@ -97583,6 +98474,7 @@ exports.DThemeWhiteJaJpDialogMessage = DThemeWhiteJaJpDialogMessage;
97583
98474
  exports.DThemeWhiteJaJpDialogProcessing = DThemeWhiteJaJpDialogProcessing;
97584
98475
  exports.DThemeWhiteJaJpDialogSaveAs = DThemeWhiteJaJpDialogSaveAs;
97585
98476
  exports.DThemeWhiteJaJpDialogSelect = DThemeWhiteJaJpDialogSelect;
98477
+ exports.DThemeWhiteJaJpIndicatorProcessing = DThemeWhiteJaJpIndicatorProcessing;
97586
98478
  exports.DThemeWhiteJaJpInputBooleanButtonOff = DThemeWhiteJaJpInputBooleanButtonOff;
97587
98479
  exports.DThemeWhiteJaJpInputBooleanButtonOn = DThemeWhiteJaJpInputBooleanButtonOn;
97588
98480
  exports.DThemeWhiteJaJpLink = DThemeWhiteJaJpLink;
@@ -98203,6 +99095,10 @@ exports.createRectangleUploaded = createRectangleUploaded;
98203
99095
  exports.createSemicircleUploaded = createSemicircleUploaded;
98204
99096
  exports.createTriangleRoundedUploaded = createTriangleRoundedUploaded;
98205
99097
  exports.createTriangleUploaded = createTriangleUploaded;
99098
+ exports.dThemeDarkEnUsDialogProcessingMessage = dThemeDarkEnUsDialogProcessingMessage;
99099
+ exports.dThemeDarkJaJpDialogProcessingMessage = dThemeDarkJaJpDialogProcessingMessage;
99100
+ exports.dThemeWhiteEnUsDialogProcessingMessage = dThemeWhiteEnUsDialogProcessingMessage;
99101
+ exports.dThemeWhiteJaJpDialogProcessingMessage = dThemeWhiteJaJpDialogProcessingMessage;
98206
99102
  exports.deserialize = deserialize;
98207
99103
  exports.deserializeActionValue = deserializeActionValue;
98208
99104
  exports.deserializeAll = deserializeAll;
@@ -98329,6 +99225,7 @@ exports.loadThemeDarkEnUsDialogProcessing = loadThemeDarkEnUsDialogProcessing;
98329
99225
  exports.loadThemeDarkEnUsDialogSaveAs = loadThemeDarkEnUsDialogSaveAs;
98330
99226
  exports.loadThemeDarkEnUsDialogSelect = loadThemeDarkEnUsDialogSelect;
98331
99227
  exports.loadThemeDarkEnUsDialogTime = loadThemeDarkEnUsDialogTime;
99228
+ exports.loadThemeDarkEnUsIndicatorProcessing = loadThemeDarkEnUsIndicatorProcessing;
98332
99229
  exports.loadThemeDarkEnUsInputAll = loadThemeDarkEnUsInputAll;
98333
99230
  exports.loadThemeDarkEnUsInputBoolean = loadThemeDarkEnUsInputBoolean;
98334
99231
  exports.loadThemeDarkEnUsLink = loadThemeDarkEnUsLink;
@@ -98374,6 +99271,7 @@ exports.loadThemeDarkJaJpDialogProcessing = loadThemeDarkJaJpDialogProcessing;
98374
99271
  exports.loadThemeDarkJaJpDialogSaveAs = loadThemeDarkJaJpDialogSaveAs;
98375
99272
  exports.loadThemeDarkJaJpDialogSelect = loadThemeDarkJaJpDialogSelect;
98376
99273
  exports.loadThemeDarkJaJpDialogTime = loadThemeDarkJaJpDialogTime;
99274
+ exports.loadThemeDarkJaJpIndicatorProcessing = loadThemeDarkJaJpIndicatorProcessing;
98377
99275
  exports.loadThemeDarkJaJpInputAll = loadThemeDarkJaJpInputAll;
98378
99276
  exports.loadThemeDarkJaJpInputBoolean = loadThemeDarkJaJpInputBoolean;
98379
99277
  exports.loadThemeDarkJaJpLink = loadThemeDarkJaJpLink;
@@ -98448,6 +99346,7 @@ exports.loadThemeWhiteEnUsDialogProcessing = loadThemeWhiteEnUsDialogProcessing;
98448
99346
  exports.loadThemeWhiteEnUsDialogSaveAs = loadThemeWhiteEnUsDialogSaveAs;
98449
99347
  exports.loadThemeWhiteEnUsDialogSelect = loadThemeWhiteEnUsDialogSelect;
98450
99348
  exports.loadThemeWhiteEnUsDialogTime = loadThemeWhiteEnUsDialogTime;
99349
+ exports.loadThemeWhiteEnUsIndicatorProcessing = loadThemeWhiteEnUsIndicatorProcessing;
98451
99350
  exports.loadThemeWhiteEnUsInputAll = loadThemeWhiteEnUsInputAll;
98452
99351
  exports.loadThemeWhiteEnUsInputBoolean = loadThemeWhiteEnUsInputBoolean;
98453
99352
  exports.loadThemeWhiteEnUsLink = loadThemeWhiteEnUsLink;
@@ -98493,6 +99392,7 @@ exports.loadThemeWhiteJaJpDialogProcessing = loadThemeWhiteJaJpDialogProcessing;
98493
99392
  exports.loadThemeWhiteJaJpDialogSaveAs = loadThemeWhiteJaJpDialogSaveAs;
98494
99393
  exports.loadThemeWhiteJaJpDialogSelect = loadThemeWhiteJaJpDialogSelect;
98495
99394
  exports.loadThemeWhiteJaJpDialogTime = loadThemeWhiteJaJpDialogTime;
99395
+ exports.loadThemeWhiteJaJpIndicatorProcessing = loadThemeWhiteJaJpIndicatorProcessing;
98496
99396
  exports.loadThemeWhiteJaJpInputAll = loadThemeWhiteJaJpInputAll;
98497
99397
  exports.loadThemeWhiteJaJpInputBoolean = loadThemeWhiteJaJpInputBoolean;
98498
99398
  exports.loadThemeWhiteJaJpLink = loadThemeWhiteJaJpLink;