@wcardinal/wcardinal-ui 0.397.0 → 0.399.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 (202) 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 +6 -3
  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 +1 -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 +68 -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 +68 -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/util/util-svg-atlas-builder.js +1 -1
  181. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
  182. package/dist/wcardinal-ui-theme-dark-en-us.js +105 -3
  183. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  184. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  185. package/dist/wcardinal-ui-theme-dark-ja-jp.js +105 -3
  186. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  187. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  188. package/dist/wcardinal-ui-theme-dark.js +105 -3
  189. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  190. package/dist/wcardinal-ui-theme-white-en-us.js +105 -3
  191. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  192. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  193. package/dist/wcardinal-ui-theme-white-ja-jp.js +105 -3
  194. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  195. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  196. package/dist/wcardinal-ui-theme-white.js +105 -3
  197. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  198. package/dist/wcardinal-ui.cjs.js +1391 -502
  199. package/dist/wcardinal-ui.js +1125 -494
  200. package/dist/wcardinal-ui.min.js +2 -2
  201. package/dist/wcardinal-ui.min.js.map +1 -1
  202. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.397.0
2
+ Winter Cardinal UI v0.399.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,299 +27690,10 @@ 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
  }
@@ -27956,12 +27703,6 @@ var DImagePieceLayouterPart = /** @class */ (function () {
27956
27703
  this._margin = 0;
27957
27704
  this._text = undefined;
27958
27705
  };
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
27706
  DImagePieceLayouterPart.prototype.set = function (text) {
27966
27707
  this._text = text;
27967
27708
  };
@@ -27980,23 +27721,34 @@ var DImagePieceLayouterPartBottom = /** @class */ (function (_super) {
27980
27721
  function DImagePieceLayouterPartBottom() {
27981
27722
  return _super !== null && _super.apply(this, arguments) || this;
27982
27723
  }
27724
+ DImagePieceLayouterPartBottom.prototype.add = function (image, bound, margin) {
27725
+ this._pieces.push(image);
27726
+ this._bounds.push(bound);
27727
+ this._size += margin + bound.height;
27728
+ this._margin = margin;
27729
+ };
27983
27730
  DImagePieceLayouterPartBottom.prototype.execute = function (pbottom, height) {
27984
27731
  var pieces = this._pieces;
27732
+ var bounds = this._bounds;
27985
27733
  var y = height - pbottom;
27986
27734
  if (this._text !== undefined) {
27987
27735
  var margin = 0;
27988
27736
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
27989
27737
  var piece = pieces[i];
27990
- y -= margin + piece.bound.height;
27991
- piece.image.y = y;
27738
+ var bound = bounds[i];
27739
+ var object = piece.object;
27740
+ y -= margin + bound.height;
27741
+ object.y = y - bound.y;
27992
27742
  margin = piece.margin.horizontal;
27993
27743
  }
27994
27744
  }
27995
27745
  else {
27996
27746
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
27997
27747
  var piece = pieces[i];
27998
- y -= piece.margin.horizontal + piece.bound.height;
27999
- piece.image.y = y;
27748
+ var bound = bounds[i];
27749
+ var object = piece.object;
27750
+ y -= piece.margin.horizontal + bound.height;
27751
+ object.y = y - bound.y;
28000
27752
  }
28001
27753
  }
28002
27754
  };
@@ -28008,17 +27760,20 @@ var DImagePieceLayouterPartCenter = /** @class */ (function (_super) {
28008
27760
  function DImagePieceLayouterPartCenter() {
28009
27761
  return _super !== null && _super.apply(this, arguments) || this;
28010
27762
  }
28011
- DImagePieceLayouterPartCenter.prototype.add = function (image, size, margin) {
27763
+ DImagePieceLayouterPartCenter.prototype.add = function (image, bound, margin) {
28012
27764
  var pieces = this._pieces;
28013
27765
  pieces.push(image);
28014
- this._size = Math.max(this.size, size);
27766
+ this._size = Math.max(this.size, bound.width);
28015
27767
  };
28016
27768
  DImagePieceLayouterPartCenter.prototype.execute = function (pleft, pright, width) {
28017
27769
  var c = pleft + (width - pleft - pright) * 0.5;
28018
27770
  var pieces = this._pieces;
27771
+ var bounds = this._bounds;
28019
27772
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28020
27773
  var piece = pieces[i];
28021
- piece.image.x = c - piece.bound.width * 0.5;
27774
+ var bound = bounds[i];
27775
+ var object = piece.object;
27776
+ object.x = c - bound.x - bound.width * 0.5;
28022
27777
  }
28023
27778
  };
28024
27779
  return DImagePieceLayouterPartCenter;
@@ -28029,22 +27784,33 @@ var DImagePieceLayouterPartLeft = /** @class */ (function (_super) {
28029
27784
  function DImagePieceLayouterPartLeft() {
28030
27785
  return _super !== null && _super.apply(this, arguments) || this;
28031
27786
  }
27787
+ DImagePieceLayouterPartLeft.prototype.add = function (image, bound, margin) {
27788
+ this._pieces.push(image);
27789
+ this._bounds.push(bound);
27790
+ this._size += margin + bound.width;
27791
+ this._margin = margin;
27792
+ };
28032
27793
  DImagePieceLayouterPartLeft.prototype.execute = function (pleft) {
28033
27794
  var pieces = this._pieces;
27795
+ var bounds = this._bounds;
28034
27796
  var x = pleft;
28035
27797
  if (this._text !== undefined) {
28036
27798
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28037
27799
  var piece = pieces[i];
28038
- piece.image.x = x;
28039
- x += piece.bound.width + piece.margin.horizontal;
27800
+ var bound = bounds[i];
27801
+ var object = piece.object;
27802
+ object.x = x - bound.x;
27803
+ x += bound.width + piece.margin.horizontal;
28040
27804
  }
28041
27805
  }
28042
27806
  else {
28043
27807
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28044
27808
  var piece = pieces[i];
27809
+ var bound = bounds[i];
27810
+ var object = piece.object;
28045
27811
  x += piece.margin.horizontal;
28046
- piece.image.x = x;
28047
- x += piece.bound.width;
27812
+ object.x = x - bound.x;
27813
+ x += bound.width;
28048
27814
  }
28049
27815
  }
28050
27816
  };
@@ -28056,17 +27822,20 @@ var DImagePieceLayouterPartMiddle = /** @class */ (function (_super) {
28056
27822
  function DImagePieceLayouterPartMiddle() {
28057
27823
  return _super !== null && _super.apply(this, arguments) || this;
28058
27824
  }
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);
27825
+ DImagePieceLayouterPartMiddle.prototype.add = function (image, bound, margin) {
27826
+ this._pieces.push(image);
27827
+ this._bounds.push(bound);
27828
+ this._size = Math.max(this.size, bound.height);
28063
27829
  };
28064
27830
  DImagePieceLayouterPartMiddle.prototype.execute = function (ptop, pbottom, height) {
28065
27831
  var c = ptop + (height - ptop - pbottom) * 0.5;
28066
27832
  var pieces = this._pieces;
27833
+ var bounds = this._bounds;
28067
27834
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28068
27835
  var piece = pieces[i];
28069
- piece.image.y = c - piece.bound.height * 0.5;
27836
+ var bound = bounds[i];
27837
+ var object = piece.object;
27838
+ object.y = c - bound.y - bound.height * 0.5;
28070
27839
  }
28071
27840
  };
28072
27841
  return DImagePieceLayouterPartMiddle;
@@ -28077,23 +27846,34 @@ var DImagePieceLayouterPartRight = /** @class */ (function (_super) {
28077
27846
  function DImagePieceLayouterPartRight() {
28078
27847
  return _super !== null && _super.apply(this, arguments) || this;
28079
27848
  }
27849
+ DImagePieceLayouterPartRight.prototype.add = function (image, bound, margin) {
27850
+ this._pieces.push(image);
27851
+ this._bounds.push(bound);
27852
+ this._size += margin + bound.width;
27853
+ this._margin = margin;
27854
+ };
28080
27855
  DImagePieceLayouterPartRight.prototype.execute = function (pright, width) {
28081
27856
  var pieces = this._pieces;
27857
+ var bounds = this._bounds;
28082
27858
  var x = width - pright;
28083
27859
  if (this._text !== undefined) {
28084
27860
  var margin = 0;
28085
27861
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28086
27862
  var piece = pieces[i];
28087
- x -= margin + piece.bound.width;
28088
- piece.image.x = x;
27863
+ var bound = bounds[i];
27864
+ var object = piece.object;
27865
+ x -= margin + bound.width;
27866
+ object.x = x - bound.x;
28089
27867
  margin = piece.margin.horizontal;
28090
27868
  }
28091
27869
  }
28092
27870
  else {
28093
27871
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28094
27872
  var piece = pieces[i];
28095
- x -= piece.margin.horizontal + piece.bound.width;
28096
- piece.image.x = x;
27873
+ var bound = bounds[i];
27874
+ var object = piece.object;
27875
+ x -= piece.margin.horizontal + bound.width;
27876
+ object.x = x - bound.x;
28097
27877
  }
28098
27878
  }
28099
27879
  };
@@ -28105,24 +27885,35 @@ var DImagePieceLayouterPartTop = /** @class */ (function (_super) {
28105
27885
  function DImagePieceLayouterPartTop() {
28106
27886
  return _super !== null && _super.apply(this, arguments) || this;
28107
27887
  }
27888
+ DImagePieceLayouterPartTop.prototype.add = function (image, bound, margin) {
27889
+ this._pieces.push(image);
27890
+ this._bounds.push(bound);
27891
+ this._size += margin + bound.height;
27892
+ this._margin = margin;
27893
+ };
28108
27894
  DImagePieceLayouterPartTop.prototype.execute = function (ptop) {
28109
27895
  var pieces = this._pieces;
27896
+ var bounds = this._bounds;
28110
27897
  var y = ptop;
28111
27898
  if (this._text !== undefined) {
28112
27899
  var margin = 0;
28113
27900
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28114
27901
  var piece = pieces[i];
28115
- piece.image.y = margin + y;
28116
- y += piece.bound.height;
27902
+ var bound = bounds[i];
27903
+ var object = piece.object;
27904
+ object.y = margin + y - bound.y;
27905
+ y += bound.height;
28117
27906
  margin = piece.margin.vertical;
28118
27907
  }
28119
27908
  }
28120
27909
  else {
28121
27910
  for (var i = 0, imax = pieces.length; i < imax; ++i) {
28122
27911
  var piece = pieces[i];
27912
+ var bound = bounds[i];
27913
+ var object = piece.object;
28123
27914
  y += piece.margin.vertical;
28124
- piece.image.y = y;
28125
- y += piece.bound.height;
27915
+ object.y = y - bound.y;
27916
+ y += bound.height;
28126
27917
  }
28127
27918
  }
28128
27919
  };
@@ -28148,35 +27939,31 @@ var DImagePieceLayouterPartContainer = /** @class */ (function () {
28148
27939
  this.text = undefined;
28149
27940
  };
28150
27941
  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) {
27942
+ var object = image.object;
27943
+ if (object != null) {
27944
+ var bound = object.getLocalBounds();
27945
+ var margin = image.margin;
27946
+ var align = image.align;
27947
+ switch (align.horizontal) {
28161
27948
  case DAlignHorizontal.LEFT:
28162
- this.left.add(image, imageBoundWidth, imageMarginHorizontal);
27949
+ this.left.add(image, bound, margin.horizontal);
28163
27950
  break;
28164
27951
  case DAlignHorizontal.CENTER:
28165
- this.center.add(image, imageBoundWidth, imageMarginHorizontal);
27952
+ this.center.add(image, bound, margin.horizontal);
28166
27953
  break;
28167
27954
  case DAlignHorizontal.RIGHT:
28168
- this.right.add(image, imageBoundWidth, imageMarginHorizontal);
27955
+ this.right.add(image, bound, margin.horizontal);
28169
27956
  break;
28170
27957
  }
28171
- switch (imageAlign.vertical) {
27958
+ switch (align.vertical) {
28172
27959
  case DAlignVertical.TOP:
28173
- this.top.add(image, imageBoundHeight, imageMarginVertical);
27960
+ this.top.add(image, bound, margin.vertical);
28174
27961
  break;
28175
27962
  case DAlignVertical.MIDDLE:
28176
- this.middle.add(image, imageBoundHeight, imageMarginVertical);
27963
+ this.middle.add(image, bound, margin.vertical);
28177
27964
  break;
28178
27965
  case DAlignVertical.BOTTOM:
28179
- this.bottom.add(image, imageBoundHeight, imageMarginVertical);
27966
+ this.bottom.add(image, bound, margin.vertical);
28180
27967
  break;
28181
27968
  }
28182
27969
  }
@@ -28322,8 +28109,8 @@ var DImagePieceLayouter = /** @class */ (function () {
28322
28109
  this.border.clear();
28323
28110
  };
28324
28111
  DImagePieceLayouter.prototype.add = function (image) {
28325
- var imageImage = image.image;
28326
- if (imageImage) {
28112
+ var object = image.object;
28113
+ if (object) {
28327
28114
  switch (image.align.with) {
28328
28115
  case DAlignWith.TEXT:
28329
28116
  this.text.add(image);
@@ -29823,12 +29610,20 @@ var DTextBase = /** @class */ (function (_super) {
29823
29610
  DApplications.update(this);
29824
29611
  }
29825
29612
  }
29826
- else {
29613
+ else if (text.text !== formatted) {
29827
29614
  text.text = formatted;
29828
29615
  this.toDirty();
29829
29616
  DApplications.update(this);
29830
29617
  }
29831
29618
  }
29619
+ else {
29620
+ var text = this._text;
29621
+ if (text != null && text.text !== "") {
29622
+ text.text = "";
29623
+ this.toDirty();
29624
+ DApplications.update(this);
29625
+ }
29626
+ }
29832
29627
  };
29833
29628
  DTextBase.prototype.newText = function () {
29834
29629
  return new DDynamicText(this._textStyle);
@@ -29990,16 +29785,670 @@ var DTextBase = /** @class */ (function (_super) {
29990
29785
  return DTextBase;
29991
29786
  }(DBase));
29992
29787
 
29788
+ var DImageBaseThemeWrapperOther = /** @class */ (function () {
29789
+ function DImageBaseThemeWrapperOther(theme) {
29790
+ this._theme = theme;
29791
+ }
29792
+ DImageBaseThemeWrapperOther.prototype.getImageAlignHorizontal = function () {
29793
+ return this._theme.getImageAlignHorizontal();
29794
+ };
29795
+ DImageBaseThemeWrapperOther.prototype.getImageAlignVertical = function () {
29796
+ return this._theme.getImageAlignVertical();
29797
+ };
29798
+ DImageBaseThemeWrapperOther.prototype.getImageAlignWith = function () {
29799
+ return this._theme.getImageAlignWith();
29800
+ };
29801
+ DImageBaseThemeWrapperOther.prototype.getImageMarginHorizontal = function () {
29802
+ return this._theme.getImageMarginHorizontal();
29803
+ };
29804
+ DImageBaseThemeWrapperOther.prototype.getImageMarginVertial = function () {
29805
+ return this._theme.getImageMarginVertial();
29806
+ };
29807
+ DImageBaseThemeWrapperOther.prototype.getImageTintColor = function (state) {
29808
+ return this._theme.getImageTintColor(state);
29809
+ };
29810
+ DImageBaseThemeWrapperOther.prototype.getImageTintAlpha = function (state) {
29811
+ return this._theme.getImageTintAlpha(state);
29812
+ };
29813
+ DImageBaseThemeWrapperOther.prototype.getImageRotation = function (state) {
29814
+ return this._theme.getImageRotation(state);
29815
+ };
29816
+ DImageBaseThemeWrapperOther.prototype.getImageSource = function (state) {
29817
+ return null;
29818
+ };
29819
+ return DImageBaseThemeWrapperOther;
29820
+ }());
29821
+
29822
+ var DImageBaseThemeWrapperSecondary = /** @class */ (function () {
29823
+ function DImageBaseThemeWrapperSecondary(theme) {
29824
+ this._theme = theme;
29825
+ }
29826
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignHorizontal = function () {
29827
+ return this._theme.getSecondaryImageAlignHorizontal();
29828
+ };
29829
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignVertical = function () {
29830
+ return this._theme.getSecondaryImageAlignVertical();
29831
+ };
29832
+ DImageBaseThemeWrapperSecondary.prototype.getImageAlignWith = function () {
29833
+ return this._theme.getSecondaryImageAlignWith();
29834
+ };
29835
+ DImageBaseThemeWrapperSecondary.prototype.getImageMarginHorizontal = function () {
29836
+ return this._theme.getSecondaryImageMarginHorizontal();
29837
+ };
29838
+ DImageBaseThemeWrapperSecondary.prototype.getImageMarginVertial = function () {
29839
+ return this._theme.getSecondaryImageMarginVertial();
29840
+ };
29841
+ DImageBaseThemeWrapperSecondary.prototype.getImageTintColor = function (state) {
29842
+ return this._theme.getSecondaryImageTintColor(state);
29843
+ };
29844
+ DImageBaseThemeWrapperSecondary.prototype.getImageTintAlpha = function (state) {
29845
+ return this._theme.getSecondaryImageTintAlpha(state);
29846
+ };
29847
+ DImageBaseThemeWrapperSecondary.prototype.getImageRotation = function (state) {
29848
+ return this._theme.getSecondaryImageRotation(state);
29849
+ };
29850
+ DImageBaseThemeWrapperSecondary.prototype.getImageSource = function (state) {
29851
+ var _a, _b, _c;
29852
+ return (_c = (_b = (_a = this._theme).getSecondaryImageSource) === null || _b === void 0 ? void 0 : _b.call(_a, state)) !== null && _c !== void 0 ? _c : null;
29853
+ };
29854
+ return DImageBaseThemeWrapperSecondary;
29855
+ }());
29856
+
29857
+ var DImageBaseThemeWrapperTertiary = /** @class */ (function () {
29858
+ function DImageBaseThemeWrapperTertiary(theme) {
29859
+ this._theme = theme;
29860
+ }
29861
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignHorizontal = function () {
29862
+ return this._theme.getTertiaryImageAlignHorizontal();
29863
+ };
29864
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignVertical = function () {
29865
+ return this._theme.getTertiaryImageAlignVertical();
29866
+ };
29867
+ DImageBaseThemeWrapperTertiary.prototype.getImageAlignWith = function () {
29868
+ return this._theme.getTertiaryImageAlignWith();
29869
+ };
29870
+ DImageBaseThemeWrapperTertiary.prototype.getImageMarginHorizontal = function () {
29871
+ return this._theme.getTertiaryImageMarginHorizontal();
29872
+ };
29873
+ DImageBaseThemeWrapperTertiary.prototype.getImageMarginVertial = function () {
29874
+ return this._theme.getTertiaryImageMarginVertial();
29875
+ };
29876
+ DImageBaseThemeWrapperTertiary.prototype.getImageTintColor = function (state) {
29877
+ return this._theme.getTertiaryImageTintColor(state);
29878
+ };
29879
+ DImageBaseThemeWrapperTertiary.prototype.getImageTintAlpha = function (state) {
29880
+ return this._theme.getTertiaryImageTintAlpha(state);
29881
+ };
29882
+ DImageBaseThemeWrapperTertiary.prototype.getImageRotation = function (state) {
29883
+ return this._theme.getTertiaryImageRotation(state);
29884
+ };
29885
+ DImageBaseThemeWrapperTertiary.prototype.getImageSource = function (state) {
29886
+ var _a, _b, _c;
29887
+ return (_c = (_b = (_a = this._theme).getTertiaryImageSource) === null || _b === void 0 ? void 0 : _b.call(_a, state)) !== null && _c !== void 0 ? _c : null;
29888
+ };
29889
+ return DImageBaseThemeWrapperTertiary;
29890
+ }());
29891
+
29892
+ var DImagePieceTintImpl = /** @class */ (function () {
29893
+ function DImagePieceTintImpl(parent, theme, options) {
29894
+ this._parent = parent;
29895
+ if (options != null) {
29896
+ this._color = options.color;
29897
+ this._alpha = options.alpha;
29898
+ }
29899
+ this._theme = theme;
29900
+ }
29901
+ Object.defineProperty(DImagePieceTintImpl.prototype, "color", {
29902
+ get: function () {
29903
+ return this._color;
29904
+ },
29905
+ set: function (color) {
29906
+ if (this._color !== color) {
29907
+ this._color = color;
29908
+ this.onChange();
29909
+ }
29910
+ },
29911
+ enumerable: false,
29912
+ configurable: true
29913
+ });
29914
+ DImagePieceTintImpl.prototype.getColor = function (state) {
29915
+ var color = this._color;
29916
+ if (color !== undefined) {
29917
+ if (isFunction(color)) {
29918
+ var result = color(state);
29919
+ if (result !== undefined) {
29920
+ return result;
29921
+ }
29922
+ }
29923
+ else {
29924
+ return color;
29925
+ }
29926
+ }
29927
+ return this._theme.getImageTintColor(state);
29928
+ };
29929
+ Object.defineProperty(DImagePieceTintImpl.prototype, "alpha", {
29930
+ get: function () {
29931
+ return this._alpha;
29932
+ },
29933
+ set: function (alpha) {
29934
+ if (this._alpha !== alpha) {
29935
+ this._alpha = alpha;
29936
+ this.onChange();
29937
+ }
29938
+ },
29939
+ enumerable: false,
29940
+ configurable: true
29941
+ });
29942
+ DImagePieceTintImpl.prototype.getAlpha = function (state) {
29943
+ var alpha = this._alpha;
29944
+ if (alpha !== undefined) {
29945
+ if (isFunction(alpha)) {
29946
+ var result = alpha(state);
29947
+ if (result !== undefined) {
29948
+ return result;
29949
+ }
29950
+ }
29951
+ else {
29952
+ return alpha;
29953
+ }
29954
+ }
29955
+ return this._theme.getImageTintAlpha(state);
29956
+ };
29957
+ DImagePieceTintImpl.prototype.set = function (color, alpha) {
29958
+ var isChanged = false;
29959
+ if (color != null && this._color !== color) {
29960
+ this._color = color;
29961
+ isChanged = true;
29962
+ }
29963
+ if (alpha != null && this._alpha !== alpha) {
29964
+ this._alpha = alpha;
29965
+ isChanged = true;
29966
+ }
29967
+ if (isChanged) {
29968
+ this.onChange();
29969
+ }
29970
+ return this;
29971
+ };
29972
+ DImagePieceTintImpl.prototype.onChange = function () {
29973
+ this._parent.updateTint();
29974
+ DApplications.update(this._parent);
29975
+ };
29976
+ return DImagePieceTintImpl;
29977
+ }());
29978
+
29979
+ var DImagePieceMarginImpl = /** @class */ (function () {
29980
+ function DImagePieceMarginImpl(parent, theme, options) {
29981
+ var _a, _b;
29982
+ this._parent = parent;
29983
+ this._vertical = (_a = options === null || options === void 0 ? void 0 : options.vertical) !== null && _a !== void 0 ? _a : theme.getImageMarginVertial();
29984
+ this._horizontal = (_b = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _b !== void 0 ? _b : theme.getImageMarginHorizontal();
29985
+ }
29986
+ Object.defineProperty(DImagePieceMarginImpl.prototype, "vertical", {
29987
+ get: function () {
29988
+ return this._vertical;
29989
+ },
29990
+ set: function (vertical) {
29991
+ if (this._vertical !== vertical) {
29992
+ this._vertical = vertical;
29993
+ this.onChange();
29994
+ }
29995
+ },
29996
+ enumerable: false,
29997
+ configurable: true
29998
+ });
29999
+ Object.defineProperty(DImagePieceMarginImpl.prototype, "horizontal", {
30000
+ get: function () {
30001
+ return this._horizontal;
30002
+ },
30003
+ set: function (horizontal) {
30004
+ if (this._horizontal !== horizontal) {
30005
+ this._horizontal = horizontal;
30006
+ this.onChange();
30007
+ }
30008
+ },
30009
+ enumerable: false,
30010
+ configurable: true
30011
+ });
30012
+ DImagePieceMarginImpl.prototype.set = function (vertical, horizontal) {
30013
+ var isChanged = false;
30014
+ if (vertical != null && this._vertical !== vertical) {
30015
+ this._vertical = vertical;
30016
+ isChanged = true;
30017
+ }
30018
+ if (horizontal != null && this._horizontal !== horizontal) {
30019
+ this._horizontal = horizontal;
30020
+ isChanged = true;
30021
+ }
30022
+ if (isChanged) {
30023
+ this.onChange();
30024
+ }
30025
+ return this;
30026
+ };
30027
+ DImagePieceMarginImpl.prototype.onChange = function () {
30028
+ this._parent.onUpdate();
30029
+ };
30030
+ return DImagePieceMarginImpl;
30031
+ }());
30032
+
30033
+ var DImagePieceAlignImpl = /** @class */ (function () {
30034
+ function DImagePieceAlignImpl(parent, theme, options) {
30035
+ var _a, _b, _c;
30036
+ this._parent = parent;
30037
+ this._with = toEnum((_a = options === null || options === void 0 ? void 0 : options.with) !== null && _a !== void 0 ? _a : theme.getImageAlignWith(), DAlignWith);
30038
+ this._vertical = toEnum((_b = options === null || options === void 0 ? void 0 : options.vertical) !== null && _b !== void 0 ? _b : theme.getImageAlignVertical(), DAlignVertical);
30039
+ this._horizontal = toEnum((_c = options === null || options === void 0 ? void 0 : options.horizontal) !== null && _c !== void 0 ? _c : theme.getImageAlignHorizontal(), DAlignHorizontal);
30040
+ }
30041
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "with", {
30042
+ get: function () {
30043
+ return this._with;
30044
+ },
30045
+ set: function (w) {
30046
+ w = toEnum(w, DAlignWith);
30047
+ if (this._with !== w) {
30048
+ this._with = w;
30049
+ this.onChange();
30050
+ }
30051
+ },
30052
+ enumerable: false,
30053
+ configurable: true
30054
+ });
30055
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "vertical", {
30056
+ get: function () {
30057
+ return this._vertical;
30058
+ },
30059
+ set: function (vertical) {
30060
+ vertical = toEnum(vertical, DAlignVertical);
30061
+ if (this._vertical !== vertical) {
30062
+ this._vertical = vertical;
30063
+ this.onChange();
30064
+ }
30065
+ },
30066
+ enumerable: false,
30067
+ configurable: true
30068
+ });
30069
+ Object.defineProperty(DImagePieceAlignImpl.prototype, "horizontal", {
30070
+ get: function () {
30071
+ return this._horizontal;
30072
+ },
30073
+ set: function (horizontal) {
30074
+ horizontal = toEnum(horizontal, DAlignHorizontal);
30075
+ if (this._horizontal !== horizontal) {
30076
+ this._horizontal = horizontal;
30077
+ this.onChange();
30078
+ }
30079
+ },
30080
+ enumerable: false,
30081
+ configurable: true
30082
+ });
30083
+ DImagePieceAlignImpl.prototype.set = function (w, vertical, horizontal) {
30084
+ var isChanged = false;
30085
+ if (w != null) {
30086
+ w = toEnum(w, DAlignWith);
30087
+ if (this._with !== w) {
30088
+ this._with = w;
30089
+ isChanged = true;
30090
+ }
30091
+ }
30092
+ if (vertical != null) {
30093
+ vertical = toEnum(vertical, DAlignVertical);
30094
+ if (this._vertical !== vertical) {
30095
+ this._vertical = vertical;
30096
+ isChanged = true;
30097
+ }
30098
+ }
30099
+ if (horizontal != null) {
30100
+ horizontal = toEnum(horizontal, DAlignHorizontal);
30101
+ if (this._horizontal !== horizontal) {
30102
+ this._horizontal = horizontal;
30103
+ isChanged = true;
30104
+ }
30105
+ }
30106
+ if (isChanged) {
30107
+ this.onChange();
30108
+ }
30109
+ return this;
30110
+ };
30111
+ DImagePieceAlignImpl.prototype.onChange = function () {
30112
+ this._parent.onUpdate();
30113
+ };
30114
+ return DImagePieceAlignImpl;
30115
+ }());
30116
+
30117
+ var DImagePieceImpl = /** @class */ (function () {
30118
+ function DImagePieceImpl(parent, theme, options) {
30119
+ var _this = this;
30120
+ this._parent = parent;
30121
+ this._theme = theme;
30122
+ this._object = null;
30123
+ this._align = new DImagePieceAlignImpl(this, theme, options === null || options === void 0 ? void 0 : options.align);
30124
+ this._margin = new DImagePieceMarginImpl(this, theme, options === null || options === void 0 ? void 0 : options.margin);
30125
+ this._tint = new DImagePieceTintImpl(this, theme, options === null || options === void 0 ? void 0 : options.tint);
30126
+ this._rotation = options === null || options === void 0 ? void 0 : options.rotation;
30127
+ this._source = options === null || options === void 0 ? void 0 : options.source;
30128
+ this._computed = null;
30129
+ this._onUpdateBound = function () {
30130
+ _this.onUpdate();
30131
+ };
30132
+ }
30133
+ Object.defineProperty(DImagePieceImpl.prototype, "object", {
30134
+ get: function () {
30135
+ return this._object;
30136
+ },
30137
+ enumerable: false,
30138
+ configurable: true
30139
+ });
30140
+ Object.defineProperty(DImagePieceImpl.prototype, "align", {
30141
+ get: function () {
30142
+ return this._align;
30143
+ },
30144
+ enumerable: false,
30145
+ configurable: true
30146
+ });
30147
+ Object.defineProperty(DImagePieceImpl.prototype, "margin", {
30148
+ get: function () {
30149
+ return this._margin;
30150
+ },
30151
+ enumerable: false,
30152
+ configurable: true
30153
+ });
30154
+ Object.defineProperty(DImagePieceImpl.prototype, "tint", {
30155
+ get: function () {
30156
+ return this._tint;
30157
+ },
30158
+ enumerable: false,
30159
+ configurable: true
30160
+ });
30161
+ Object.defineProperty(DImagePieceImpl.prototype, "source", {
30162
+ get: function () {
30163
+ return this._source;
30164
+ },
30165
+ set: function (source) {
30166
+ if (this._source !== source) {
30167
+ this._source = source;
30168
+ if (this.updateSource()) {
30169
+ this.onUpdate();
30170
+ }
30171
+ }
30172
+ },
30173
+ enumerable: false,
30174
+ configurable: true
30175
+ });
30176
+ Object.defineProperty(DImagePieceImpl.prototype, "rotation", {
30177
+ get: function () {
30178
+ return this._rotation;
30179
+ },
30180
+ set: function (rotation) {
30181
+ if (this._rotation !== rotation) {
30182
+ this._rotation = rotation;
30183
+ if (this.updateRotation()) {
30184
+ DApplications.update(this._parent);
30185
+ }
30186
+ }
30187
+ },
30188
+ enumerable: false,
30189
+ configurable: true
30190
+ });
30191
+ DImagePieceImpl.prototype.computeSource = function () {
30192
+ var source = this._source;
30193
+ if (source !== undefined) {
30194
+ if (isFunction(source)) {
30195
+ var result = source(this._parent.state);
30196
+ if (result !== undefined) {
30197
+ return result;
30198
+ }
30199
+ }
30200
+ else {
30201
+ return source;
30202
+ }
30203
+ }
30204
+ return this._theme.getImageSource(this._parent.state);
30205
+ };
30206
+ DImagePieceImpl.prototype.onStateChange = function (newState, oldState) {
30207
+ this.updateTint();
30208
+ this.updateRotation();
30209
+ };
30210
+ DImagePieceImpl.prototype.isTintAware = function (target) {
30211
+ return target != null && "tint" in target;
30212
+ };
30213
+ /**
30214
+ * Updates the tint.
30215
+ *
30216
+ * @returns True if the tint is changed.
30217
+ */
30218
+ DImagePieceImpl.prototype.updateTint = function () {
30219
+ var object = this._object;
30220
+ if (object) {
30221
+ if (this.isTintAware(object)) {
30222
+ var state = this._parent.state;
30223
+ var color = this._tint.getColor(state);
30224
+ if (color != null) {
30225
+ var result = false;
30226
+ if (object.tint !== color) {
30227
+ object.tint = color;
30228
+ result = true;
30229
+ }
30230
+ var alpha = this._tint.getAlpha(state);
30231
+ if (object.alpha !== alpha) {
30232
+ object.alpha = alpha;
30233
+ result = true;
30234
+ }
30235
+ return result;
30236
+ }
30237
+ }
30238
+ }
30239
+ return false;
30240
+ };
30241
+ DImagePieceImpl.prototype.toRotation = function (theme, state) {
30242
+ var rotation = this._rotation;
30243
+ if (rotation != null) {
30244
+ if (isFunction(rotation)) {
30245
+ var result = rotation(state);
30246
+ if (result !== undefined) {
30247
+ return result;
30248
+ }
30249
+ }
30250
+ else {
30251
+ return rotation;
30252
+ }
30253
+ }
30254
+ return theme.getImageRotation(state);
30255
+ };
30256
+ DImagePieceImpl.prototype.updateRotation = function () {
30257
+ var object = this._object;
30258
+ if (object) {
30259
+ var theme = this._theme;
30260
+ var state = this._parent.state;
30261
+ var rotation = this.toRotation(theme, state);
30262
+ if (rotation != null) {
30263
+ var transform = object.transform;
30264
+ if (transform.rotation !== rotation) {
30265
+ transform.rotation = rotation;
30266
+ return true;
30267
+ }
30268
+ }
30269
+ }
30270
+ return false;
30271
+ };
30272
+ /**
30273
+ * Updates the computed source.
30274
+ *
30275
+ * @returns True if the computed source is changed
30276
+ */
30277
+ DImagePieceImpl.prototype.updateSource = function () {
30278
+ var newComputed = this.computeSource();
30279
+ var oldComputed = this._computed;
30280
+ if (newComputed !== oldComputed) {
30281
+ this._computed = newComputed;
30282
+ var parent_1 = this._parent;
30283
+ var oldObject = this._object;
30284
+ var onUpdateBound = this._onUpdateBound;
30285
+ if (newComputed instanceof pixi_js.Texture) {
30286
+ if (oldComputed instanceof pixi_js.Texture) {
30287
+ oldComputed.off("update", onUpdateBound);
30288
+ if (oldObject instanceof pixi_js.Sprite) {
30289
+ oldObject.texture = newComputed;
30290
+ newComputed.on("update", onUpdateBound);
30291
+ }
30292
+ }
30293
+ else {
30294
+ if (oldObject != null) {
30295
+ parent_1.removeChild(oldObject);
30296
+ }
30297
+ var newObject = new pixi_js.Sprite(newComputed);
30298
+ newObject.anchor.set(0.5, 0.5);
30299
+ var overflowMask = parent_1.getOverflowMask();
30300
+ if (overflowMask) {
30301
+ newObject.mask = overflowMask;
30302
+ }
30303
+ newComputed.on("update", onUpdateBound);
30304
+ parent_1.addChild(newObject);
30305
+ this._object = newObject;
30306
+ }
30307
+ }
30308
+ else {
30309
+ if (oldComputed instanceof pixi_js.Texture) {
30310
+ oldComputed.off("update", onUpdateBound);
30311
+ if (oldObject != null) {
30312
+ parent_1.removeChild(oldObject);
30313
+ oldObject.destroy();
30314
+ }
30315
+ }
30316
+ else if (oldObject != null) {
30317
+ parent_1.removeChild(oldObject);
30318
+ }
30319
+ if (newComputed != null) {
30320
+ var overflowMask = parent_1.getOverflowMask();
30321
+ if (overflowMask) {
30322
+ newComputed.mask = overflowMask;
30323
+ }
30324
+ parent_1.addChild(newComputed);
30325
+ }
30326
+ this._object = newComputed;
30327
+ }
30328
+ return true;
30329
+ }
30330
+ return false;
30331
+ };
30332
+ DImagePieceImpl.prototype.isRefitable = function (target) {
30333
+ return target != null && target === this._object;
30334
+ };
30335
+ DImagePieceImpl.prototype.destroy = function () {
30336
+ this.source = null;
30337
+ };
30338
+ DImagePieceImpl.prototype.onUpdate = function () {
30339
+ this._parent.toDirty();
30340
+ DApplications.update(this._parent);
30341
+ };
30342
+ return DImagePieceImpl;
30343
+ }());
30344
+
30345
+ var DImagePieceContainerImpl = /** @class */ (function () {
30346
+ function DImagePieceContainerImpl(parent, theme, options) {
30347
+ this._parent = parent;
30348
+ this._theme = theme;
30349
+ var pieces = [];
30350
+ this._pieces = pieces;
30351
+ if (options != null) {
30352
+ var images = options.images;
30353
+ if (images != null) {
30354
+ pieces.push(this.newImage(theme, 0 < images.length ? images[0] : undefined));
30355
+ if (theme.getSecondaryImageSource != null || 1 < images.length) {
30356
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme), images[1]));
30357
+ }
30358
+ if (theme.getTertiaryImageSource != null || 2 < images.length) {
30359
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme), images[2]));
30360
+ }
30361
+ if (3 < images.length) {
30362
+ var other = new DImageBaseThemeWrapperOther(theme);
30363
+ for (var i = 3, imax = images.length; i < imax; ++i) {
30364
+ pieces.push(this.newImage(other, images[i]));
30365
+ }
30366
+ }
30367
+ }
30368
+ else {
30369
+ pieces.push(this.newImage(theme, options.image));
30370
+ if (theme.getSecondaryImageSource != null) {
30371
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30372
+ }
30373
+ if (theme.getTertiaryImageSource != null) {
30374
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30375
+ }
30376
+ }
30377
+ }
30378
+ else {
30379
+ pieces.push(this.newImage(theme));
30380
+ if (theme.getSecondaryImageSource != null) {
30381
+ pieces.push(this.newImage(new DImageBaseThemeWrapperSecondary(theme)));
30382
+ }
30383
+ if (theme.getTertiaryImageSource != null) {
30384
+ pieces.push(this.newImage(new DImageBaseThemeWrapperTertiary(theme)));
30385
+ }
30386
+ }
30387
+ }
30388
+ DImagePieceContainerImpl.prototype.newImage = function (theme, options) {
30389
+ return new DImagePieceImpl(this._parent, theme, options);
30390
+ };
30391
+ DImagePieceContainerImpl.prototype.onStateChange = function (newState, oldState) {
30392
+ var pieces = this._pieces;
30393
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30394
+ pieces[i].onStateChange(newState, oldState);
30395
+ }
30396
+ };
30397
+ DImagePieceContainerImpl.prototype.isRefitable = function (target) {
30398
+ var pieces = this._pieces;
30399
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30400
+ if (pieces[i].isRefitable(target)) {
30401
+ return true;
30402
+ }
30403
+ }
30404
+ return false;
30405
+ };
30406
+ DImagePieceContainerImpl.prototype.updateTextAndImage = function (layouter) {
30407
+ var pieces = this._pieces;
30408
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30409
+ var piece = pieces[i];
30410
+ piece.updateSource();
30411
+ piece.updateTint();
30412
+ piece.updateRotation();
30413
+ layouter.add(piece);
30414
+ }
30415
+ };
30416
+ DImagePieceContainerImpl.prototype.add = function (options) {
30417
+ var result = this.newImage(this._theme, options);
30418
+ this._pieces.push(result);
30419
+ return result;
30420
+ };
30421
+ DImagePieceContainerImpl.prototype.get = function (index) {
30422
+ var pieces = this._pieces;
30423
+ if (0 <= index && index < pieces.length) {
30424
+ return pieces[index];
30425
+ }
30426
+ return null;
30427
+ };
30428
+ DImagePieceContainerImpl.prototype.remove = function (index) {
30429
+ var pieces = this._pieces;
30430
+ if (0 <= index && index < pieces.length) {
30431
+ pieces[index].destroy();
30432
+ return true;
30433
+ }
30434
+ return false;
30435
+ };
30436
+ DImagePieceContainerImpl.prototype.size = function () {
30437
+ return this._pieces.length;
30438
+ };
30439
+ DImagePieceContainerImpl.prototype.destroy = function () {
30440
+ var pieces = this._pieces;
30441
+ for (var i = 0, imax = pieces.length; i < imax; ++i) {
30442
+ pieces[i].destroy();
30443
+ }
30444
+ };
30445
+ return DImagePieceContainerImpl;
30446
+ }());
30447
+
29993
30448
  /*
29994
30449
  * Copyright (C) 2019 Toshiba Corporation
29995
30450
  * SPDX-License-Identifier: Apache-2.0
29996
30451
  */
29997
- var hasSecondaryImageSource = function (theme) {
29998
- return !!theme.getSecondaryImageSource;
29999
- };
30000
- var hasTertiaryImageSource = function (theme) {
30001
- return !!theme.getTertiaryImageSource;
30002
- };
30003
30452
  /**
30004
30453
  * A base class for UI classes with an image support.
30005
30454
  * See {@link DImageBaseEvents} for event details.
@@ -30010,44 +30459,33 @@ var DImageBase = /** @class */ (function (_super) {
30010
30459
  return _super !== null && _super.apply(this, arguments) || this;
30011
30460
  }
30012
30461
  DImageBase.prototype.init = function (options) {
30013
- this._images = this.newImages(this.theme, options);
30462
+ this.getImage();
30014
30463
  _super.prototype.init.call(this, options);
30015
30464
  };
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
30465
  Object.defineProperty(DImageBase.prototype, "image", {
30034
30466
  get: function () {
30035
- return this._images[0].source;
30467
+ var _a;
30468
+ return ((_a = this._image) !== null && _a !== void 0 ? _a : (this._image = this.newImage()));
30036
30469
  },
30037
30470
  set: function (imageSource) {
30038
- var image = this._images[0];
30039
- image.source = imageSource;
30040
- image.updateSource();
30471
+ var image = this.image.get(0);
30472
+ if (image != null) {
30473
+ image.source = imageSource;
30474
+ }
30041
30475
  },
30042
30476
  enumerable: false,
30043
30477
  configurable: true
30044
30478
  });
30479
+ DImageBase.prototype.getImage = function () {
30480
+ var _a;
30481
+ return ((_a = this._image) !== null && _a !== void 0 ? _a : (this._image = this.newImage()));
30482
+ };
30483
+ DImageBase.prototype.newImage = function () {
30484
+ return new DImagePieceContainerImpl(this, this.theme, this.options);
30485
+ };
30045
30486
  DImageBase.prototype.onStateChange = function (newState, oldState) {
30046
30487
  _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
- }
30488
+ this.getImage().onStateChange(newState, oldState);
30051
30489
  };
30052
30490
  DImageBase.prototype.updateText = function () {
30053
30491
  this.updateTextValue();
@@ -30055,15 +30493,8 @@ var DImageBase = /** @class */ (function (_super) {
30055
30493
  };
30056
30494
  DImageBase.prototype.updateTextAndImage = function () {
30057
30495
  var _a;
30058
- var images = this._images;
30059
30496
  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
- }
30497
+ this.getImage().updateTextAndImage(layouter);
30067
30498
  var text = this._text;
30068
30499
  if (text != null) {
30069
30500
  this.updateTextColor(text);
@@ -30080,11 +30511,8 @@ var DImageBase = /** @class */ (function (_super) {
30080
30511
  if (_super.prototype.isRefitable.call(this, target)) {
30081
30512
  return true;
30082
30513
  }
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
- }
30514
+ if (this.getImage().isRefitable(target)) {
30515
+ return true;
30088
30516
  }
30089
30517
  return false;
30090
30518
  };
@@ -30092,9 +30520,9 @@ var DImageBase = /** @class */ (function (_super) {
30092
30520
  return "DImageBase";
30093
30521
  };
30094
30522
  DImageBase.prototype.destroy = function () {
30095
- var images = this._images;
30096
- for (var i = 0, imax = images.length; i < imax; ++i) {
30097
- images[i].destroy();
30523
+ var image = this._image;
30524
+ if (image != null) {
30525
+ image.destroy();
30098
30526
  }
30099
30527
  _super.prototype.destroy.call(this);
30100
30528
  };
@@ -46830,7 +47258,7 @@ var UtilSvgAtlasBuilder = /** @class */ (function () {
46830
47258
  var attrViewBox = "viewBox=\"0 0 ".concat(width * ratio, " ").concat(height * ratio, "\"");
46831
47259
  var attrXmlns = "xmlns=\"http://www.w3.org/2000/svg\"";
46832
47260
  var url = toSvgUrl("<svg ".concat(attrWidth, " ").concat(attrHeight, " ").concat(attrViewBox, " ").concat(attrXmlns, ">").concat(this._svg, "</svg>"));
46833
- var scaleMode = (_c = options === null || options === void 0 ? void 0 : options.scaling) !== null && _c !== void 0 ? _c : pixi_js.SCALE_MODES.NEAREST;
47261
+ var scaleMode = (_c = options === null || options === void 0 ? void 0 : options.scaling) !== null && _c !== void 0 ? _c : pixi_js.SCALE_MODES.LINEAR;
46834
47262
  var baseTexture = pixi_js.BaseTexture.from(url, {
46835
47263
  resolution: resolution,
46836
47264
  scaleMode: scaleMode
@@ -47291,6 +47719,9 @@ var DThemeWhiteImageBase = /** @class */ (function (_super) {
47291
47719
  DThemeWhiteImageBase.prototype.getImageTintAlpha = function (state) {
47292
47720
  return this.getAlpha(state);
47293
47721
  };
47722
+ DThemeWhiteImageBase.prototype.getImageRotation = function (state) {
47723
+ return 0;
47724
+ };
47294
47725
  DThemeWhiteImageBase.prototype.getImageSource = function (state) {
47295
47726
  return null;
47296
47727
  };
@@ -47315,6 +47746,9 @@ var DThemeWhiteImageBase = /** @class */ (function (_super) {
47315
47746
  DThemeWhiteImageBase.prototype.getSecondaryImageTintAlpha = function (state) {
47316
47747
  return this.getImageTintAlpha(state);
47317
47748
  };
47749
+ DThemeWhiteImageBase.prototype.getSecondaryImageRotation = function (state) {
47750
+ return this.getImageRotation(state);
47751
+ };
47318
47752
  DThemeWhiteImageBase.prototype.getTertiaryImageAlignHorizontal = function () {
47319
47753
  return this.getImageAlignHorizontal();
47320
47754
  };
@@ -47336,6 +47770,9 @@ var DThemeWhiteImageBase = /** @class */ (function (_super) {
47336
47770
  DThemeWhiteImageBase.prototype.getTertiaryImageTintAlpha = function (state) {
47337
47771
  return this.getImageTintAlpha(state);
47338
47772
  };
47773
+ DThemeWhiteImageBase.prototype.getTertiaryImageRotation = function (state) {
47774
+ return this.getImageRotation(state);
47775
+ };
47339
47776
  return DThemeWhiteImageBase;
47340
47777
  }(DThemeWhiteTextBase));
47341
47778
 
@@ -55078,7 +55515,7 @@ var DThemeWhiteDialogProcessing = /** @class */ (function (_super) {
55078
55515
  * Copyright (C) 2019 Toshiba Corporation
55079
55516
  * SPDX-License-Identifier: Apache-2.0
55080
55517
  */
55081
- var message$3 = function (state) {
55518
+ var dThemeWhiteEnUsDialogProcessingMessage = function (state) {
55082
55519
  if (state.isSucceeded) {
55083
55520
  return "Processed successfully";
55084
55521
  }
@@ -55103,7 +55540,7 @@ var DThemeWhiteEnUsDialogProcessing = /** @class */ (function (_super) {
55103
55540
  };
55104
55541
  };
55105
55542
  DThemeWhiteEnUsDialogProcessing.prototype.getMessage = function () {
55106
- return message$3;
55543
+ return dThemeWhiteEnUsDialogProcessingMessage;
55107
55544
  };
55108
55545
  return DThemeWhiteEnUsDialogProcessing;
55109
55546
  }(DThemeWhiteDialogProcessing));
@@ -56984,6 +57421,94 @@ var loadThemeWhiteEnUsTable = function () {
56984
57421
  loadThemeWhiteMenu();
56985
57422
  };
56986
57423
 
57424
+ /*
57425
+ * Copyright (C) 2019 Toshiba Corporation
57426
+ * SPDX-License-Identifier: Apache-2.0
57427
+ */
57428
+ // Material Design icons by Google.
57429
+ // Apache license version 2.0.
57430
+ /* eslint-disable prettier/prettier */
57431
+ DThemeWhiteAtlas.add("button_process_processing", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
57432
+ "<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" +
57433
+ "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" +
57434
+ " 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" +
57435
+ "6T480-80Z\" fill=\"#fff\"/>" +
57436
+ "</g>");
57437
+ DThemeWhiteAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
57438
+ "<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
57439
+ "</g>");
57440
+ DThemeWhiteAtlas.add("button_process_fail", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
57441
+ "<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\" />" +
57442
+ "</g>");
57443
+ /* eslint-enable prettier/prettier */
57444
+ var imageSource$1 = function (state) {
57445
+ if (state.isProcessing) {
57446
+ return DThemeWhiteAtlas.mappings.button_process_processing;
57447
+ }
57448
+ else if (state.isSucceeded) {
57449
+ return DThemeWhiteAtlas.mappings.button_process_success;
57450
+ }
57451
+ else {
57452
+ return DThemeWhiteAtlas.mappings.button_process_fail;
57453
+ }
57454
+ };
57455
+ var imageRotation$1 = function (state) {
57456
+ var value = state.valueOf(DBaseState.PROCESSING);
57457
+ if (value != null) {
57458
+ return value * Math.PI * 0.02;
57459
+ }
57460
+ return 0;
57461
+ };
57462
+ var DThemeWhiteIndicatorProcess = /** @class */ (function () {
57463
+ function DThemeWhiteIndicatorProcess() {
57464
+ }
57465
+ DThemeWhiteIndicatorProcess.prototype.getProcessDoneDelay = function () {
57466
+ return 400;
57467
+ };
57468
+ DThemeWhiteIndicatorProcess.prototype.getProcessCloseDelay = function () {
57469
+ return 3000;
57470
+ };
57471
+ DThemeWhiteIndicatorProcess.prototype.isProcessTextEnabled = function () {
57472
+ return false;
57473
+ };
57474
+ DThemeWhiteIndicatorProcess.prototype.isProcessImageEnabled = function () {
57475
+ return true;
57476
+ };
57477
+ DThemeWhiteIndicatorProcess.prototype.getProcessImageIndex = function () {
57478
+ return 0;
57479
+ };
57480
+ DThemeWhiteIndicatorProcess.prototype.newProcessImageSource = function () {
57481
+ return imageSource$1;
57482
+ };
57483
+ DThemeWhiteIndicatorProcess.prototype.newProcessImageRotation = function () {
57484
+ return imageRotation$1;
57485
+ };
57486
+ return DThemeWhiteIndicatorProcess;
57487
+ }());
57488
+
57489
+ /*
57490
+ * Copyright (C) 2019 Toshiba Corporation
57491
+ * SPDX-License-Identifier: Apache-2.0
57492
+ */
57493
+ var DThemeWhiteEnUsIndicatorProcessing = /** @class */ (function (_super) {
57494
+ __extends(DThemeWhiteEnUsIndicatorProcessing, _super);
57495
+ function DThemeWhiteEnUsIndicatorProcessing() {
57496
+ return _super !== null && _super.apply(this, arguments) || this;
57497
+ }
57498
+ DThemeWhiteEnUsIndicatorProcessing.prototype.newProcessTextValue = function () {
57499
+ return dThemeWhiteEnUsDialogProcessingMessage;
57500
+ };
57501
+ return DThemeWhiteEnUsIndicatorProcessing;
57502
+ }(DThemeWhiteIndicatorProcess));
57503
+
57504
+ /*
57505
+ * Copyright (C) 2019 Toshiba Corporation
57506
+ * SPDX-License-Identifier: Apache-2.0
57507
+ */
57508
+ var loadThemeWhiteEnUsIndicatorProcessing = function () {
57509
+ DThemeWhite.set("DIndicatorProcessing", DThemeWhiteEnUsIndicatorProcessing);
57510
+ };
57511
+
56987
57512
  /*
56988
57513
  * Copyright (C) 2019 Toshiba Corporation
56989
57514
  * SPDX-License-Identifier: Apache-2.0
@@ -57003,6 +57528,7 @@ var loadThemeWhiteEnUsAll = function () {
57003
57528
  loadThemeWhiteExpandable();
57004
57529
  loadThemeWhiteHtmlElement();
57005
57530
  loadThemeWhiteImage();
57531
+ loadThemeWhiteEnUsIndicatorProcessing();
57006
57532
  loadThemeWhiteEnUsInputAll();
57007
57533
  loadThemeWhiteLayout();
57008
57534
  loadThemeWhiteEnUsLink();
@@ -57543,7 +58069,7 @@ var loadThemeWhiteJaJpDialogMessage = function () {
57543
58069
  * Copyright (C) 2019 Toshiba Corporation
57544
58070
  * SPDX-License-Identifier: Apache-2.0
57545
58071
  */
57546
- var message$2 = function (state) {
58072
+ var dThemeWhiteJaJpDialogProcessingMessage = function (state) {
57547
58073
  if (state.isSucceeded) {
57548
58074
  return "正常に処理されました";
57549
58075
  }
@@ -57568,7 +58094,7 @@ var DThemeWhiteJaJpDialogProcessing = /** @class */ (function (_super) {
57568
58094
  };
57569
58095
  };
57570
58096
  DThemeWhiteJaJpDialogProcessing.prototype.getMessage = function () {
57571
- return message$2;
58097
+ return dThemeWhiteJaJpDialogProcessingMessage;
57572
58098
  };
57573
58099
  return DThemeWhiteJaJpDialogProcessing;
57574
58100
  }(DThemeWhiteDialogProcessing));
@@ -57825,6 +58351,29 @@ var loadThemeWhiteJaJpTable = function () {
57825
58351
  loadThemeWhiteMenu();
57826
58352
  };
57827
58353
 
58354
+ /*
58355
+ * Copyright (C) 2019 Toshiba Corporation
58356
+ * SPDX-License-Identifier: Apache-2.0
58357
+ */
58358
+ var DThemeWhiteJaJpIndicatorProcessing = /** @class */ (function (_super) {
58359
+ __extends(DThemeWhiteJaJpIndicatorProcessing, _super);
58360
+ function DThemeWhiteJaJpIndicatorProcessing() {
58361
+ return _super !== null && _super.apply(this, arguments) || this;
58362
+ }
58363
+ DThemeWhiteJaJpIndicatorProcessing.prototype.newProcessTextValue = function () {
58364
+ return dThemeWhiteJaJpDialogProcessingMessage;
58365
+ };
58366
+ return DThemeWhiteJaJpIndicatorProcessing;
58367
+ }(DThemeWhiteIndicatorProcess));
58368
+
58369
+ /*
58370
+ * Copyright (C) 2019 Toshiba Corporation
58371
+ * SPDX-License-Identifier: Apache-2.0
58372
+ */
58373
+ var loadThemeWhiteJaJpIndicatorProcessing = function () {
58374
+ DThemeWhite.set("DIndicatorProcessing", DThemeWhiteJaJpIndicatorProcessing);
58375
+ };
58376
+
57828
58377
  /*
57829
58378
  * Copyright (C) 2019 Toshiba Corporation
57830
58379
  * SPDX-License-Identifier: Apache-2.0
@@ -57844,6 +58393,7 @@ var loadThemeWhiteJaJpAll = function () {
57844
58393
  loadThemeWhiteExpandable();
57845
58394
  loadThemeWhiteHtmlElement();
57846
58395
  loadThemeWhiteImage();
58396
+ loadThemeWhiteJaJpIndicatorProcessing();
57847
58397
  loadThemeWhiteJaJpInputAll();
57848
58398
  loadThemeWhiteLayout();
57849
58399
  loadThemeWhiteJaJpLink();
@@ -58276,6 +58826,9 @@ var DThemeDarkImageBase = /** @class */ (function (_super) {
58276
58826
  DThemeDarkImageBase.prototype.getImageTintAlpha = function (state) {
58277
58827
  return this.getAlpha(state);
58278
58828
  };
58829
+ DThemeDarkImageBase.prototype.getImageRotation = function (state) {
58830
+ return 0;
58831
+ };
58279
58832
  DThemeDarkImageBase.prototype.getImageSource = function (state) {
58280
58833
  return null;
58281
58834
  };
@@ -58300,6 +58853,9 @@ var DThemeDarkImageBase = /** @class */ (function (_super) {
58300
58853
  DThemeDarkImageBase.prototype.getSecondaryImageTintAlpha = function (state) {
58301
58854
  return this.getImageTintAlpha(state);
58302
58855
  };
58856
+ DThemeDarkImageBase.prototype.getSecondaryImageRotation = function (state) {
58857
+ return this.getImageRotation(state);
58858
+ };
58303
58859
  DThemeDarkImageBase.prototype.getTertiaryImageAlignHorizontal = function () {
58304
58860
  return this.getImageAlignHorizontal();
58305
58861
  };
@@ -58321,6 +58877,9 @@ var DThemeDarkImageBase = /** @class */ (function (_super) {
58321
58877
  DThemeDarkImageBase.prototype.getTertiaryImageTintAlpha = function (state) {
58322
58878
  return this.getImageTintAlpha(state);
58323
58879
  };
58880
+ DThemeDarkImageBase.prototype.getTertiaryImageRotation = function (state) {
58881
+ return this.getImageRotation(state);
58882
+ };
58324
58883
  return DThemeDarkImageBase;
58325
58884
  }(DThemeDarkTextBase));
58326
58885
 
@@ -65458,7 +66017,7 @@ var DThemeDarkDialogProcessing = /** @class */ (function (_super) {
65458
66017
  * Copyright (C) 2019 Toshiba Corporation
65459
66018
  * SPDX-License-Identifier: Apache-2.0
65460
66019
  */
65461
- var message$1 = function (state) {
66020
+ var dThemeDarkEnUsDialogProcessingMessage = function (state) {
65462
66021
  if (state.isSucceeded) {
65463
66022
  return "Processed successfully";
65464
66023
  }
@@ -65483,7 +66042,7 @@ var DThemeDarkEnUsDialogProcessing = /** @class */ (function (_super) {
65483
66042
  };
65484
66043
  };
65485
66044
  DThemeDarkEnUsDialogProcessing.prototype.getMessage = function () {
65486
- return message$1;
66045
+ return dThemeDarkEnUsDialogProcessingMessage;
65487
66046
  };
65488
66047
  return DThemeDarkEnUsDialogProcessing;
65489
66048
  }(DThemeDarkDialogProcessing));
@@ -67361,6 +67920,94 @@ var loadThemeDarkEnUsTable = function () {
67361
67920
  loadThemeDarkMenu();
67362
67921
  };
67363
67922
 
67923
+ /*
67924
+ * Copyright (C) 2019 Toshiba Corporation
67925
+ * SPDX-License-Identifier: Apache-2.0
67926
+ */
67927
+ // Material Design icons by Google.
67928
+ // Apache license version 2.0.
67929
+ /* eslint-disable prettier/prettier */
67930
+ DThemeDarkAtlas.add("button_process_processing", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
67931
+ "<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" +
67932
+ "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" +
67933
+ " 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" +
67934
+ "6T480-80Z\" fill=\"#fff\"/>" +
67935
+ "</g>");
67936
+ DThemeDarkAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
67937
+ "<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
67938
+ "</g>");
67939
+ DThemeDarkAtlas.add("button_process_fail", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
67940
+ "<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\" />" +
67941
+ "</g>");
67942
+ /* eslint-enable prettier/prettier */
67943
+ var imageSource = function (state) {
67944
+ if (state.isProcessing) {
67945
+ return DThemeDarkAtlas.mappings.button_process_processing;
67946
+ }
67947
+ else if (state.isSucceeded) {
67948
+ return DThemeDarkAtlas.mappings.button_process_success;
67949
+ }
67950
+ else {
67951
+ return DThemeDarkAtlas.mappings.button_process_fail;
67952
+ }
67953
+ };
67954
+ var imageRotation = function (state) {
67955
+ var value = state.valueOf(DBaseState.PROCESSING);
67956
+ if (value != null) {
67957
+ return value * Math.PI * 0.02;
67958
+ }
67959
+ return 0;
67960
+ };
67961
+ var DThemeDarkIndicatorProcess = /** @class */ (function () {
67962
+ function DThemeDarkIndicatorProcess() {
67963
+ }
67964
+ DThemeDarkIndicatorProcess.prototype.getProcessDoneDelay = function () {
67965
+ return 400;
67966
+ };
67967
+ DThemeDarkIndicatorProcess.prototype.getProcessCloseDelay = function () {
67968
+ return 3000;
67969
+ };
67970
+ DThemeDarkIndicatorProcess.prototype.isProcessTextEnabled = function () {
67971
+ return false;
67972
+ };
67973
+ DThemeDarkIndicatorProcess.prototype.isProcessImageEnabled = function () {
67974
+ return true;
67975
+ };
67976
+ DThemeDarkIndicatorProcess.prototype.getProcessImageIndex = function () {
67977
+ return 0;
67978
+ };
67979
+ DThemeDarkIndicatorProcess.prototype.newProcessImageSource = function () {
67980
+ return imageSource;
67981
+ };
67982
+ DThemeDarkIndicatorProcess.prototype.newProcessImageRotation = function () {
67983
+ return imageRotation;
67984
+ };
67985
+ return DThemeDarkIndicatorProcess;
67986
+ }());
67987
+
67988
+ /*
67989
+ * Copyright (C) 2019 Toshiba Corporation
67990
+ * SPDX-License-Identifier: Apache-2.0
67991
+ */
67992
+ var DThemeDarkEnUsIndicatorProcessing = /** @class */ (function (_super) {
67993
+ __extends(DThemeDarkEnUsIndicatorProcessing, _super);
67994
+ function DThemeDarkEnUsIndicatorProcessing() {
67995
+ return _super !== null && _super.apply(this, arguments) || this;
67996
+ }
67997
+ DThemeDarkEnUsIndicatorProcessing.prototype.newProcessTextValue = function () {
67998
+ return dThemeDarkEnUsDialogProcessingMessage;
67999
+ };
68000
+ return DThemeDarkEnUsIndicatorProcessing;
68001
+ }(DThemeDarkIndicatorProcess));
68002
+
68003
+ /*
68004
+ * Copyright (C) 2019 Toshiba Corporation
68005
+ * SPDX-License-Identifier: Apache-2.0
68006
+ */
68007
+ var loadThemeDarkEnUsIndicatorProcessing = function () {
68008
+ DThemeDark.set("DIndicatorProcessing", DThemeDarkEnUsIndicatorProcessing);
68009
+ };
68010
+
67364
68011
  /*
67365
68012
  * Copyright (C) 2019 Toshiba Corporation
67366
68013
  * SPDX-License-Identifier: Apache-2.0
@@ -67380,6 +68027,7 @@ var loadThemeDarkEnUsAll = function () {
67380
68027
  loadThemeDarkExpandable();
67381
68028
  loadThemeDarkHtmlElement();
67382
68029
  loadThemeDarkImage();
68030
+ loadThemeDarkEnUsIndicatorProcessing();
67383
68031
  loadThemeDarkEnUsInputAll();
67384
68032
  loadThemeDarkLayout();
67385
68033
  loadThemeDarkEnUsLink();
@@ -67920,7 +68568,7 @@ var loadThemeDarkJaJpDialogMessage = function () {
67920
68568
  * Copyright (C) 2019 Toshiba Corporation
67921
68569
  * SPDX-License-Identifier: Apache-2.0
67922
68570
  */
67923
- var message = function (state) {
68571
+ var dThemeDarkJaJpDialogProcessingMessage = function (state) {
67924
68572
  if (state.isSucceeded) {
67925
68573
  return "正常に処理されました";
67926
68574
  }
@@ -67945,7 +68593,7 @@ var DThemeDarkJaJpDialogProcessing = /** @class */ (function (_super) {
67945
68593
  };
67946
68594
  };
67947
68595
  DThemeDarkJaJpDialogProcessing.prototype.getMessage = function () {
67948
- return message;
68596
+ return dThemeDarkJaJpDialogProcessingMessage;
67949
68597
  };
67950
68598
  return DThemeDarkJaJpDialogProcessing;
67951
68599
  }(DThemeDarkDialogProcessing));
@@ -68202,6 +68850,29 @@ var loadThemeDarkJaJpTable = function () {
68202
68850
  loadThemeDarkMenu();
68203
68851
  };
68204
68852
 
68853
+ /*
68854
+ * Copyright (C) 2019 Toshiba Corporation
68855
+ * SPDX-License-Identifier: Apache-2.0
68856
+ */
68857
+ var DThemeDarkJaJpIndicatorProcessing = /** @class */ (function (_super) {
68858
+ __extends(DThemeDarkJaJpIndicatorProcessing, _super);
68859
+ function DThemeDarkJaJpIndicatorProcessing() {
68860
+ return _super !== null && _super.apply(this, arguments) || this;
68861
+ }
68862
+ DThemeDarkJaJpIndicatorProcessing.prototype.newProcessTextValue = function () {
68863
+ return dThemeDarkJaJpDialogProcessingMessage;
68864
+ };
68865
+ return DThemeDarkJaJpIndicatorProcessing;
68866
+ }(DThemeDarkIndicatorProcess));
68867
+
68868
+ /*
68869
+ * Copyright (C) 2019 Toshiba Corporation
68870
+ * SPDX-License-Identifier: Apache-2.0
68871
+ */
68872
+ var loadThemeDarkJaJpIndicatorProcessing = function () {
68873
+ DThemeDark.set("DIndicatorProcessing", DThemeDarkJaJpIndicatorProcessing);
68874
+ };
68875
+
68205
68876
  /*
68206
68877
  * Copyright (C) 2019 Toshiba Corporation
68207
68878
  * SPDX-License-Identifier: Apache-2.0
@@ -68221,6 +68892,7 @@ var loadThemeDarkJaJpAll = function () {
68221
68892
  loadThemeDarkExpandable();
68222
68893
  loadThemeDarkHtmlElement();
68223
68894
  loadThemeDarkImage();
68895
+ loadThemeDarkJaJpIndicatorProcessing();
68224
68896
  loadThemeDarkJaJpInputAll();
68225
68897
  loadThemeDarkLayout();
68226
68898
  loadThemeDarkJaJpLink();
@@ -73506,35 +74178,13 @@ var DButtonColor = /** @class */ (function (_super) {
73506
74178
  this.onColorChange();
73507
74179
  this.emit("change", newValue, oldValue, this);
73508
74180
  };
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
74181
  DButtonColor.prototype.onColorChange = function () {
73536
- if (this._images[0].updateTint()) {
73537
- DApplications.update(this);
74182
+ var image = this.image.get(0);
74183
+ if (image != null) {
74184
+ var value = this._textValueComputed;
74185
+ if (value != null) {
74186
+ image.tint.color = value.color;
74187
+ }
73538
74188
  }
73539
74189
  this.updateTextForcibly();
73540
74190
  };
@@ -86094,10 +86744,11 @@ var DDialogProcessing = /** @class */ (function (_super) {
86094
86744
  var _this = _super.call(this, options) || this;
86095
86745
  _this._isDone = true;
86096
86746
  _this._startTime = 0;
86747
+ var theme = _this.theme;
86097
86748
  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();
86749
+ _this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : theme.getDoneDelay();
86099
86750
  var delayClose = delay === null || delay === void 0 ? void 0 : delay.close;
86100
- _this._delayClose = delayClose !== undefined ? delayClose : _this.theme.getCloseDelay();
86751
+ _this._delayClose = delayClose !== undefined ? delayClose : theme.getCloseDelay();
86101
86752
  _this._messageText = _this.message.text;
86102
86753
  return _this;
86103
86754
  }
@@ -86393,6 +87044,219 @@ var DExpandable = /** @class */ (function (_super) {
86393
87044
  return DExpandable;
86394
87045
  }(DLayoutVertical));
86395
87046
 
87047
+ var STATE_INITIAL = 0;
87048
+ var STATE_STARTED = 1;
87049
+ var STATE_RESOLVED = 2;
87050
+ var STATE_REJECTED = 3;
87051
+ var DIndicatorProcessing = /** @class */ (function () {
87052
+ function DIndicatorProcessing(parent, options) {
87053
+ var _a, _b, _c, _d, _e, _f, _g;
87054
+ this._parent = parent;
87055
+ this._state = STATE_INITIAL;
87056
+ this._startTime = 0;
87057
+ // Delay
87058
+ var theme = this.theme;
87059
+ var delay = options === null || options === void 0 ? void 0 : options.delay;
87060
+ this._delayDone = (_a = delay === null || delay === void 0 ? void 0 : delay.done) !== null && _a !== void 0 ? _a : theme.getProcessDoneDelay();
87061
+ var delayClose = delay === null || delay === void 0 ? void 0 : delay.close;
87062
+ this._delayClose = delayClose !== undefined ? delayClose : theme.getProcessCloseDelay();
87063
+ // Text
87064
+ var text = options === null || options === void 0 ? void 0 : options.text;
87065
+ this._isTextEnabled = (_b = text === null || text === void 0 ? void 0 : text.enabled) !== null && _b !== void 0 ? _b : theme.isProcessTextEnabled();
87066
+ this._textValue = (_c = text === null || text === void 0 ? void 0 : text.value) !== null && _c !== void 0 ? _c : theme.newProcessTextValue();
87067
+ // Image
87068
+ var image = options === null || options === void 0 ? void 0 : options.image;
87069
+ this._isImageEnabled = (_d = image === null || image === void 0 ? void 0 : image.enabled) !== null && _d !== void 0 ? _d : theme.isProcessImageEnabled();
87070
+ this._imageIndex = (_e = image === null || image === void 0 ? void 0 : image.index) !== null && _e !== void 0 ? _e : theme.getProcessImageIndex();
87071
+ this._imageSource = (_f = image === null || image === void 0 ? void 0 : image.source) !== null && _f !== void 0 ? _f : theme.newProcessImageSource();
87072
+ this._imageRotation = (_g = image === null || image === void 0 ? void 0 : image.rotation) !== null && _g !== void 0 ? _g : theme.newProcessImageRotation();
87073
+ // State
87074
+ this._wasReadOnly = false;
87075
+ }
87076
+ DIndicatorProcessing.prototype.start = function () {
87077
+ var state = this._state;
87078
+ if (state === STATE_INITIAL) {
87079
+ this._state = STATE_STARTED;
87080
+ this.onBegin();
87081
+ }
87082
+ else if (state === STATE_RESOLVED || state === STATE_REJECTED) {
87083
+ this._state = STATE_STARTED;
87084
+ this.onEnd();
87085
+ this.onBegin();
87086
+ }
87087
+ return this;
87088
+ };
87089
+ DIndicatorProcessing.prototype.onBegin = function () {
87090
+ this._startTime = Date.now();
87091
+ var timeoutId = this._timeoutId;
87092
+ if (timeoutId != null) {
87093
+ clearTimeout(timeoutId);
87094
+ }
87095
+ var closeTimeoutId = this._closeTimeoutId;
87096
+ if (closeTimeoutId != null) {
87097
+ clearTimeout(closeTimeoutId);
87098
+ }
87099
+ var parent = this._parent;
87100
+ var state = parent.state;
87101
+ state.lock();
87102
+ state.ticker.remove(DBaseState.PROCESSING).add(DBaseState.PROCESSING, 32);
87103
+ state.removeAll(DBaseState.SUCCEEDED, DBaseState.FAILED);
87104
+ this._wasReadOnly = state.isReadOnly;
87105
+ if (!this._wasReadOnly) {
87106
+ state.add(DBaseState.READ_ONLY);
87107
+ }
87108
+ state.unlock();
87109
+ if (this._isTextEnabled) {
87110
+ this._textValueBackup = parent.text;
87111
+ var textValue = this._textValue;
87112
+ if (textValue !== undefined) {
87113
+ parent.text = textValue;
87114
+ }
87115
+ }
87116
+ if (this._isImageEnabled) {
87117
+ var image = parent.image.get(this._imageIndex);
87118
+ if (image != null) {
87119
+ this._imageSourceBackup = image.source;
87120
+ this._imageRotationBackup = image.rotation;
87121
+ var imageSource = this._imageSource;
87122
+ if (imageSource !== undefined) {
87123
+ image.source = imageSource;
87124
+ }
87125
+ var imageRotation = this._imageRotation;
87126
+ if (imageRotation !== undefined) {
87127
+ image.rotation = imageRotation;
87128
+ }
87129
+ }
87130
+ }
87131
+ };
87132
+ DIndicatorProcessing.prototype.end = function () {
87133
+ var state = this._state;
87134
+ if (state === STATE_STARTED || state === STATE_RESOLVED || state === STATE_REJECTED) {
87135
+ this._state = STATE_INITIAL;
87136
+ this.onEnd();
87137
+ }
87138
+ return this;
87139
+ };
87140
+ DIndicatorProcessing.prototype.onEnd = function () {
87141
+ var timeoutId = this._timeoutId;
87142
+ if (timeoutId != null) {
87143
+ clearTimeout(timeoutId);
87144
+ }
87145
+ var closeTimeoutId = this._closeTimeoutId;
87146
+ if (closeTimeoutId != null) {
87147
+ clearTimeout(closeTimeoutId);
87148
+ }
87149
+ var parent = this._parent;
87150
+ var state = parent.state;
87151
+ state.lock();
87152
+ state.ticker.remove(DBaseState.PROCESSING);
87153
+ state.removeAll(DBaseState.SUCCEEDED, DBaseState.FAILED);
87154
+ if (!this._wasReadOnly) {
87155
+ state.remove(DBaseState.READ_ONLY);
87156
+ }
87157
+ state.unlock();
87158
+ if (this._isTextEnabled) {
87159
+ parent.text = this._textValueBackup;
87160
+ }
87161
+ if (this._isImageEnabled) {
87162
+ var image = parent.image.get(this._imageIndex);
87163
+ if (image != null) {
87164
+ image.source = this._imageSourceBackup;
87165
+ image.rotation = this._imageRotationBackup;
87166
+ }
87167
+ }
87168
+ };
87169
+ DIndicatorProcessing.prototype.resolve = function (message) {
87170
+ var _this = this;
87171
+ if (this._state === STATE_STARTED) {
87172
+ this._state = STATE_RESOLVED;
87173
+ var elapsedTime = Date.now() - this._startTime;
87174
+ var delay = this._delayDone - elapsedTime;
87175
+ if (0 < delay) {
87176
+ this._timeoutId = window.setTimeout(function () {
87177
+ _this._timeoutId = undefined;
87178
+ _this.onResolved(message);
87179
+ }, delay);
87180
+ }
87181
+ else {
87182
+ this.onResolved(message);
87183
+ }
87184
+ }
87185
+ };
87186
+ DIndicatorProcessing.prototype.onResolved = function (message) {
87187
+ var parent = this._parent;
87188
+ if (this._isTextEnabled && message != null) {
87189
+ parent.text = message;
87190
+ }
87191
+ var state = parent.state;
87192
+ state.lock();
87193
+ state.ticker.remove(DBaseState.PROCESSING);
87194
+ state.add(DBaseState.SUCCEEDED);
87195
+ state.remove(DBaseState.FAILED);
87196
+ if (!this._wasReadOnly) {
87197
+ state.remove(DBaseState.READ_ONLY);
87198
+ }
87199
+ state.unlock();
87200
+ this.onDone(this._delayClose);
87201
+ };
87202
+ DIndicatorProcessing.prototype.reject = function (message) {
87203
+ var _this = this;
87204
+ if (this._state === STATE_STARTED) {
87205
+ this._state = STATE_REJECTED;
87206
+ var elapsedTime = Date.now() - this._startTime;
87207
+ var delay = this._delayDone - elapsedTime;
87208
+ if (0 < delay) {
87209
+ this._timeoutId = window.setTimeout(function () {
87210
+ _this._timeoutId = undefined;
87211
+ _this.onRejected(message);
87212
+ }, delay);
87213
+ }
87214
+ else {
87215
+ this.onRejected(message);
87216
+ }
87217
+ }
87218
+ };
87219
+ DIndicatorProcessing.prototype.onRejected = function (message) {
87220
+ var parent = this._parent;
87221
+ if (this._isTextEnabled && message != null) {
87222
+ parent.text = message;
87223
+ }
87224
+ var state = parent.state;
87225
+ state.lock();
87226
+ state.ticker.remove(DBaseState.PROCESSING);
87227
+ state.add(DBaseState.FAILED);
87228
+ state.remove(DBaseState.SUCCEEDED);
87229
+ if (!this._wasReadOnly) {
87230
+ state.remove(DBaseState.READ_ONLY);
87231
+ }
87232
+ state.unlock();
87233
+ this.onDone(this._delayClose);
87234
+ };
87235
+ DIndicatorProcessing.prototype.onDone = function (delay) {
87236
+ var _this = this;
87237
+ if (delay != null) {
87238
+ this._closeTimeoutId = window.setTimeout(function () {
87239
+ _this._closeTimeoutId = undefined;
87240
+ _this.end();
87241
+ }, delay);
87242
+ }
87243
+ else {
87244
+ this.end();
87245
+ }
87246
+ };
87247
+ DIndicatorProcessing.prototype.getType = function () {
87248
+ return "DIndicatorProcessing";
87249
+ };
87250
+ Object.defineProperty(DIndicatorProcessing.prototype, "theme", {
87251
+ get: function () {
87252
+ return DThemes.get(this.getType());
87253
+ },
87254
+ enumerable: false,
87255
+ configurable: true
87256
+ });
87257
+ return DIndicatorProcessing;
87258
+ }());
87259
+
86396
87260
  /*
86397
87261
  * Copyright (C) 2019 Toshiba Corporation
86398
87262
  * SPDX-License-Identifier: Apache-2.0
@@ -94203,12 +95067,17 @@ var DTableHeaderCell = /** @class */ (function (_super) {
94203
95067
  DTableHeaderCell.prototype.isCheckClicked = function (e) {
94204
95068
  if (e instanceof pixi_js.InteractionEvent && this._check.isEnabled) {
94205
95069
  if (this.isSortable) {
94206
- var image = this._images[1];
94207
- if (image && image.image != null) {
95070
+ var image = this.image.get(1);
95071
+ if (image) {
94208
95072
  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;
95073
+ var object = image.object;
95074
+ if (object != null) {
95075
+ var bound = object.getLocalBounds();
95076
+ var margin = image.margin.horizontal;
95077
+ var x = object.x;
95078
+ return (x + bound.left - margin <= position &&
95079
+ position <= x + bound.right + margin);
95080
+ }
94212
95081
  }
94213
95082
  }
94214
95083
  else {
@@ -96953,9 +97822,12 @@ exports.DHtmlElement = DHtmlElement;
96953
97822
  exports.DHtmlElementState = DHtmlElementState;
96954
97823
  exports.DImage = DImage;
96955
97824
  exports.DImageBase = DImageBase;
97825
+ exports.DImageBaseThemeWrapperOther = DImageBaseThemeWrapperOther;
96956
97826
  exports.DImageBaseThemeWrapperSecondary = DImageBaseThemeWrapperSecondary;
96957
97827
  exports.DImageBaseThemeWrapperTertiary = DImageBaseThemeWrapperTertiary;
96958
- exports.DImagePiece = DImagePiece;
97828
+ exports.DImagePieceAlignImpl = DImagePieceAlignImpl;
97829
+ exports.DImagePieceContainerImpl = DImagePieceContainerImpl;
97830
+ exports.DImagePieceImpl = DImagePieceImpl;
96959
97831
  exports.DImagePieceLayouter = DImagePieceLayouter;
96960
97832
  exports.DImagePieceLayouterPart = DImagePieceLayouterPart;
96961
97833
  exports.DImagePieceLayouterPartBottom = DImagePieceLayouterPartBottom;
@@ -96965,6 +97837,9 @@ exports.DImagePieceLayouterPartLeft = DImagePieceLayouterPartLeft;
96965
97837
  exports.DImagePieceLayouterPartMiddle = DImagePieceLayouterPartMiddle;
96966
97838
  exports.DImagePieceLayouterPartRight = DImagePieceLayouterPartRight;
96967
97839
  exports.DImagePieceLayouterPartTop = DImagePieceLayouterPartTop;
97840
+ exports.DImagePieceMarginImpl = DImagePieceMarginImpl;
97841
+ exports.DImagePieceTintImpl = DImagePieceTintImpl;
97842
+ exports.DIndicatorProcessing = DIndicatorProcessing;
96968
97843
  exports.DInput = DInput;
96969
97844
  exports.DInputAndLabel = DInputAndLabel;
96970
97845
  exports.DInputBoolean = DInputBoolean;
@@ -97276,6 +98151,7 @@ exports.DThemeDarkEnUsDialogMessage = DThemeDarkEnUsDialogMessage;
97276
98151
  exports.DThemeDarkEnUsDialogProcessing = DThemeDarkEnUsDialogProcessing;
97277
98152
  exports.DThemeDarkEnUsDialogSaveAs = DThemeDarkEnUsDialogSaveAs;
97278
98153
  exports.DThemeDarkEnUsDialogSelect = DThemeDarkEnUsDialogSelect;
98154
+ exports.DThemeDarkEnUsIndicatorProcessing = DThemeDarkEnUsIndicatorProcessing;
97279
98155
  exports.DThemeDarkEnUsInputBooleanButtonOff = DThemeDarkEnUsInputBooleanButtonOff;
97280
98156
  exports.DThemeDarkEnUsInputBooleanButtonOn = DThemeDarkEnUsInputBooleanButtonOn;
97281
98157
  exports.DThemeDarkEnUsLink = DThemeDarkEnUsLink;
@@ -97293,6 +98169,7 @@ exports.DThemeDarkFont = DThemeDarkFont;
97293
98169
  exports.DThemeDarkHtmlElement = DThemeDarkHtmlElement;
97294
98170
  exports.DThemeDarkImage = DThemeDarkImage;
97295
98171
  exports.DThemeDarkImageBase = DThemeDarkImageBase;
98172
+ exports.DThemeDarkIndicatorProcess = DThemeDarkIndicatorProcess;
97296
98173
  exports.DThemeDarkInput = DThemeDarkInput;
97297
98174
  exports.DThemeDarkInputAndLabel = DThemeDarkInputAndLabel;
97298
98175
  exports.DThemeDarkInputBoolean = DThemeDarkInputBoolean;
@@ -97315,6 +98192,7 @@ exports.DThemeDarkJaJpDialogMessage = DThemeDarkJaJpDialogMessage;
97315
98192
  exports.DThemeDarkJaJpDialogProcessing = DThemeDarkJaJpDialogProcessing;
97316
98193
  exports.DThemeDarkJaJpDialogSaveAs = DThemeDarkJaJpDialogSaveAs;
97317
98194
  exports.DThemeDarkJaJpDialogSelect = DThemeDarkJaJpDialogSelect;
98195
+ exports.DThemeDarkJaJpIndicatorProcessing = DThemeDarkJaJpIndicatorProcessing;
97318
98196
  exports.DThemeDarkJaJpInputBooleanButtonOff = DThemeDarkJaJpInputBooleanButtonOff;
97319
98197
  exports.DThemeDarkJaJpInputBooleanButtonOn = DThemeDarkJaJpInputBooleanButtonOn;
97320
98198
  exports.DThemeDarkJaJpLink = DThemeDarkJaJpLink;
@@ -97544,6 +98422,7 @@ exports.DThemeWhiteEnUsDialogMessage = DThemeWhiteEnUsDialogMessage;
97544
98422
  exports.DThemeWhiteEnUsDialogProcessing = DThemeWhiteEnUsDialogProcessing;
97545
98423
  exports.DThemeWhiteEnUsDialogSaveAs = DThemeWhiteEnUsDialogSaveAs;
97546
98424
  exports.DThemeWhiteEnUsDialogSelect = DThemeWhiteEnUsDialogSelect;
98425
+ exports.DThemeWhiteEnUsIndicatorProcessing = DThemeWhiteEnUsIndicatorProcessing;
97547
98426
  exports.DThemeWhiteEnUsInputBooleanButtonOff = DThemeWhiteEnUsInputBooleanButtonOff;
97548
98427
  exports.DThemeWhiteEnUsInputBooleanButtonOn = DThemeWhiteEnUsInputBooleanButtonOn;
97549
98428
  exports.DThemeWhiteEnUsLink = DThemeWhiteEnUsLink;
@@ -97561,6 +98440,7 @@ exports.DThemeWhiteFont = DThemeWhiteFont;
97561
98440
  exports.DThemeWhiteHtmlElement = DThemeWhiteHtmlElement;
97562
98441
  exports.DThemeWhiteImage = DThemeWhiteImage;
97563
98442
  exports.DThemeWhiteImageBase = DThemeWhiteImageBase;
98443
+ exports.DThemeWhiteIndicatorProcess = DThemeWhiteIndicatorProcess;
97564
98444
  exports.DThemeWhiteInput = DThemeWhiteInput;
97565
98445
  exports.DThemeWhiteInputAndLabel = DThemeWhiteInputAndLabel;
97566
98446
  exports.DThemeWhiteInputBoolean = DThemeWhiteInputBoolean;
@@ -97583,6 +98463,7 @@ exports.DThemeWhiteJaJpDialogMessage = DThemeWhiteJaJpDialogMessage;
97583
98463
  exports.DThemeWhiteJaJpDialogProcessing = DThemeWhiteJaJpDialogProcessing;
97584
98464
  exports.DThemeWhiteJaJpDialogSaveAs = DThemeWhiteJaJpDialogSaveAs;
97585
98465
  exports.DThemeWhiteJaJpDialogSelect = DThemeWhiteJaJpDialogSelect;
98466
+ exports.DThemeWhiteJaJpIndicatorProcessing = DThemeWhiteJaJpIndicatorProcessing;
97586
98467
  exports.DThemeWhiteJaJpInputBooleanButtonOff = DThemeWhiteJaJpInputBooleanButtonOff;
97587
98468
  exports.DThemeWhiteJaJpInputBooleanButtonOn = DThemeWhiteJaJpInputBooleanButtonOn;
97588
98469
  exports.DThemeWhiteJaJpLink = DThemeWhiteJaJpLink;
@@ -98203,6 +99084,10 @@ exports.createRectangleUploaded = createRectangleUploaded;
98203
99084
  exports.createSemicircleUploaded = createSemicircleUploaded;
98204
99085
  exports.createTriangleRoundedUploaded = createTriangleRoundedUploaded;
98205
99086
  exports.createTriangleUploaded = createTriangleUploaded;
99087
+ exports.dThemeDarkEnUsDialogProcessingMessage = dThemeDarkEnUsDialogProcessingMessage;
99088
+ exports.dThemeDarkJaJpDialogProcessingMessage = dThemeDarkJaJpDialogProcessingMessage;
99089
+ exports.dThemeWhiteEnUsDialogProcessingMessage = dThemeWhiteEnUsDialogProcessingMessage;
99090
+ exports.dThemeWhiteJaJpDialogProcessingMessage = dThemeWhiteJaJpDialogProcessingMessage;
98206
99091
  exports.deserialize = deserialize;
98207
99092
  exports.deserializeActionValue = deserializeActionValue;
98208
99093
  exports.deserializeAll = deserializeAll;
@@ -98329,6 +99214,7 @@ exports.loadThemeDarkEnUsDialogProcessing = loadThemeDarkEnUsDialogProcessing;
98329
99214
  exports.loadThemeDarkEnUsDialogSaveAs = loadThemeDarkEnUsDialogSaveAs;
98330
99215
  exports.loadThemeDarkEnUsDialogSelect = loadThemeDarkEnUsDialogSelect;
98331
99216
  exports.loadThemeDarkEnUsDialogTime = loadThemeDarkEnUsDialogTime;
99217
+ exports.loadThemeDarkEnUsIndicatorProcessing = loadThemeDarkEnUsIndicatorProcessing;
98332
99218
  exports.loadThemeDarkEnUsInputAll = loadThemeDarkEnUsInputAll;
98333
99219
  exports.loadThemeDarkEnUsInputBoolean = loadThemeDarkEnUsInputBoolean;
98334
99220
  exports.loadThemeDarkEnUsLink = loadThemeDarkEnUsLink;
@@ -98374,6 +99260,7 @@ exports.loadThemeDarkJaJpDialogProcessing = loadThemeDarkJaJpDialogProcessing;
98374
99260
  exports.loadThemeDarkJaJpDialogSaveAs = loadThemeDarkJaJpDialogSaveAs;
98375
99261
  exports.loadThemeDarkJaJpDialogSelect = loadThemeDarkJaJpDialogSelect;
98376
99262
  exports.loadThemeDarkJaJpDialogTime = loadThemeDarkJaJpDialogTime;
99263
+ exports.loadThemeDarkJaJpIndicatorProcessing = loadThemeDarkJaJpIndicatorProcessing;
98377
99264
  exports.loadThemeDarkJaJpInputAll = loadThemeDarkJaJpInputAll;
98378
99265
  exports.loadThemeDarkJaJpInputBoolean = loadThemeDarkJaJpInputBoolean;
98379
99266
  exports.loadThemeDarkJaJpLink = loadThemeDarkJaJpLink;
@@ -98448,6 +99335,7 @@ exports.loadThemeWhiteEnUsDialogProcessing = loadThemeWhiteEnUsDialogProcessing;
98448
99335
  exports.loadThemeWhiteEnUsDialogSaveAs = loadThemeWhiteEnUsDialogSaveAs;
98449
99336
  exports.loadThemeWhiteEnUsDialogSelect = loadThemeWhiteEnUsDialogSelect;
98450
99337
  exports.loadThemeWhiteEnUsDialogTime = loadThemeWhiteEnUsDialogTime;
99338
+ exports.loadThemeWhiteEnUsIndicatorProcessing = loadThemeWhiteEnUsIndicatorProcessing;
98451
99339
  exports.loadThemeWhiteEnUsInputAll = loadThemeWhiteEnUsInputAll;
98452
99340
  exports.loadThemeWhiteEnUsInputBoolean = loadThemeWhiteEnUsInputBoolean;
98453
99341
  exports.loadThemeWhiteEnUsLink = loadThemeWhiteEnUsLink;
@@ -98493,6 +99381,7 @@ exports.loadThemeWhiteJaJpDialogProcessing = loadThemeWhiteJaJpDialogProcessing;
98493
99381
  exports.loadThemeWhiteJaJpDialogSaveAs = loadThemeWhiteJaJpDialogSaveAs;
98494
99382
  exports.loadThemeWhiteJaJpDialogSelect = loadThemeWhiteJaJpDialogSelect;
98495
99383
  exports.loadThemeWhiteJaJpDialogTime = loadThemeWhiteJaJpDialogTime;
99384
+ exports.loadThemeWhiteJaJpIndicatorProcessing = loadThemeWhiteJaJpIndicatorProcessing;
98496
99385
  exports.loadThemeWhiteJaJpInputAll = loadThemeWhiteJaJpInputAll;
98497
99386
  exports.loadThemeWhiteJaJpInputBoolean = loadThemeWhiteJaJpInputBoolean;
98498
99387
  exports.loadThemeWhiteJaJpLink = loadThemeWhiteJaJpLink;