@wcardinal/wcardinal-ui 0.154.0 → 0.155.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 (213) hide show
  1. package/dist/types/wcardinal/ui/d-application-layer-options.d.ts +3 -4
  2. package/dist/types/wcardinal/ui/d-base-background.d.ts +2 -4
  3. package/dist/types/wcardinal/ui/d-base-border.d.ts +2 -4
  4. package/dist/types/wcardinal/ui/d-base-corner.d.ts +1 -3
  5. package/dist/types/wcardinal/ui/d-base-outline.d.ts +2 -4
  6. package/dist/types/wcardinal/ui/d-base-padding.d.ts +2 -4
  7. package/dist/types/wcardinal/ui/d-chart-series-base-coordinate-container.d.ts +1 -2
  8. package/dist/types/wcardinal/ui/d-color-gradient-point-observable.d.ts +2 -4
  9. package/dist/types/wcardinal/ui/d-diagram-canvas-data-map.d.ts +1 -3
  10. package/dist/types/wcardinal/ui/d-diagram-canvas-id-map.d.ts +1 -3
  11. package/dist/types/wcardinal/ui/d-dynamic-text-geometry.d.ts +2 -3
  12. package/dist/types/wcardinal/ui/d-dynamic-text-measure.d.ts +2 -3
  13. package/dist/types/wcardinal/ui/d-dynamic-text.d.ts +8 -8
  14. package/dist/types/wcardinal/ui/d-input-and-label.d.ts +4 -5
  15. package/dist/types/wcardinal/ui/d-on-options.d.ts +1 -3
  16. package/dist/types/wcardinal/ui/d-pagination-button-last.d.ts +8 -0
  17. package/dist/types/wcardinal/ui/d-pagination-button-next.d.ts +8 -0
  18. package/dist/types/wcardinal/ui/d-pagination-button-page.d.ts +8 -0
  19. package/dist/types/wcardinal/ui/d-pagination-button-previous.d.ts +8 -0
  20. package/dist/types/wcardinal/ui/d-pagination-button-top.d.ts +8 -0
  21. package/dist/types/wcardinal/ui/d-pagination-dots.d.ts +8 -0
  22. package/dist/types/wcardinal/ui/d-pagination-page.d.ts +8 -0
  23. package/dist/types/wcardinal/ui/d-pagination.d.ts +137 -44
  24. package/dist/types/wcardinal/ui/d-picker-color-gradient-view.d.ts +4 -5
  25. package/dist/types/wcardinal/ui/d-scalar-expression.d.ts +68 -66
  26. package/dist/types/wcardinal/ui/d-table-data-list-filter.d.ts +1 -2
  27. package/dist/types/wcardinal/ui/d-table-data-list-selection.d.ts +1 -3
  28. package/dist/types/wcardinal/ui/d-table-data-selection.d.ts +1 -3
  29. package/dist/types/wcardinal/ui/d-table-data-tree-filter.d.ts +1 -2
  30. package/dist/types/wcardinal/ui/d-table-data-tree-selection-impl.d.ts +1 -3
  31. package/dist/types/wcardinal/ui/index.d.ts +11 -3
  32. package/dist/types/wcardinal/ui/shape/action/e-shape-action-runtimes.d.ts +4 -5
  33. package/dist/types/wcardinal/ui/shape/action/e-shape-action-value-change-color.d.ts +5 -6
  34. package/dist/types/wcardinal/ui/shape/e-shape-capabilities.d.ts +1 -3
  35. package/dist/types/wcardinal/ui/shape/e-shape-connector-edge-acceptor-impl.d.ts +1 -2
  36. package/dist/types/wcardinal/ui/shape/e-shape-deserializers.d.ts +2 -6
  37. package/dist/types/wcardinal/ui/shape/e-shape-runtimes.d.ts +2 -3
  38. package/dist/types/wcardinal/ui/shape/e-shape-text.d.ts +1 -3
  39. package/dist/types/wcardinal/ui/shape/e-shape-uploadeds.d.ts +1 -3
  40. package/dist/types/wcardinal/ui/shape/variant/create-line-of-any-uploaded.d.ts +1 -2
  41. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.d.ts +8 -0
  42. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.d.ts +8 -0
  43. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.d.ts +9 -0
  44. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.d.ts +8 -0
  45. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.d.ts +8 -0
  46. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.d.ts +10 -0
  47. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.d.ts +13 -0
  48. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination.d.ts +2 -1
  49. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark.d.ts +2 -9
  50. package/dist/types/wcardinal/ui/theme/dark/index.d.ts +7 -3
  51. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.d.ts +8 -0
  52. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.d.ts +8 -0
  53. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.d.ts +9 -0
  54. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.d.ts +8 -0
  55. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.d.ts +8 -0
  56. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dots.d.ts +10 -0
  57. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-page.d.ts +13 -0
  58. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination.d.ts +2 -1
  59. package/dist/types/wcardinal/ui/theme/white/d-theme-white.d.ts +2 -9
  60. package/dist/types/wcardinal/ui/theme/white/index.d.ts +7 -3
  61. package/dist/types/wcardinal/ui/util/dynamic-atlas.d.ts +2 -6
  62. package/dist/types/wcardinal/ui/util/dynamic-font-atlas-characters.d.ts +1 -3
  63. package/dist/types/wcardinal/ui/util/dynamic-sdf-font-atlases.d.ts +1 -3
  64. package/dist/types/wcardinal/ui/util/format-node/{format-noder-d.d.ts → format-node-rd.d.ts} +0 -0
  65. package/dist/types/wcardinal/ui/util/format-node/index.d.ts +31 -0
  66. package/dist/types/wcardinal/ui/util/index.d.ts +5 -0
  67. package/dist/types/wcardinal/ui/util/util-name.d.ts +1 -3
  68. package/dist/types/wcardinal/ui/util/util-svg-atlas-builder.d.ts +4 -12
  69. package/dist/wcardinal/ui/d-application-layer-options.js.map +1 -1
  70. package/dist/wcardinal/ui/d-base-background.js.map +1 -1
  71. package/dist/wcardinal/ui/d-base-border.js.map +1 -1
  72. package/dist/wcardinal/ui/d-base-corner.js.map +1 -1
  73. package/dist/wcardinal/ui/d-base-outline.js.map +1 -1
  74. package/dist/wcardinal/ui/d-base-padding.js.map +1 -1
  75. package/dist/wcardinal/ui/d-chart-series-base-coordinate-container.js.map +1 -1
  76. package/dist/wcardinal/ui/d-color-gradient-point-observable.js.map +1 -1
  77. package/dist/wcardinal/ui/d-diagram-canvas-data-map.js.map +1 -1
  78. package/dist/wcardinal/ui/d-diagram-canvas-id-map.js.map +1 -1
  79. package/dist/wcardinal/ui/d-diagram.js.map +1 -1
  80. package/dist/wcardinal/ui/d-dynamic-text-geometry.js.map +1 -1
  81. package/dist/wcardinal/ui/d-dynamic-text-measure.js.map +1 -1
  82. package/dist/wcardinal/ui/d-dynamic-text.js.map +1 -1
  83. package/dist/wcardinal/ui/d-input-and-label.js.map +1 -1
  84. package/dist/wcardinal/ui/d-on-options.js.map +1 -1
  85. package/dist/wcardinal/ui/d-pagination-button-last.js +18 -0
  86. package/dist/wcardinal/ui/d-pagination-button-last.js.map +1 -0
  87. package/dist/wcardinal/ui/d-pagination-button-next.js +18 -0
  88. package/dist/wcardinal/ui/d-pagination-button-next.js.map +1 -0
  89. package/dist/wcardinal/ui/d-pagination-button-page.js +18 -0
  90. package/dist/wcardinal/ui/d-pagination-button-page.js.map +1 -0
  91. package/dist/wcardinal/ui/d-pagination-button-previous.js +18 -0
  92. package/dist/wcardinal/ui/d-pagination-button-previous.js.map +1 -0
  93. package/dist/wcardinal/ui/d-pagination-button-top.js +18 -0
  94. package/dist/wcardinal/ui/d-pagination-button-top.js.map +1 -0
  95. package/dist/wcardinal/ui/d-pagination-dots.js +18 -0
  96. package/dist/wcardinal/ui/d-pagination-dots.js.map +1 -0
  97. package/dist/wcardinal/ui/d-pagination-page.js +18 -0
  98. package/dist/wcardinal/ui/d-pagination-page.js.map +1 -0
  99. package/dist/wcardinal/ui/d-pagination.js +455 -212
  100. package/dist/wcardinal/ui/d-pagination.js.map +1 -1
  101. package/dist/wcardinal/ui/d-picker-color-gradient-view.js.map +1 -1
  102. package/dist/wcardinal/ui/d-scalar-expression.js +107 -79
  103. package/dist/wcardinal/ui/d-scalar-expression.js.map +1 -1
  104. package/dist/wcardinal/ui/d-table-data-list-filter.js.map +1 -1
  105. package/dist/wcardinal/ui/d-table-data-list-selection.js.map +1 -1
  106. package/dist/wcardinal/ui/d-table-data-selection.js.map +1 -1
  107. package/dist/wcardinal/ui/d-table-data-tree-filter.js.map +1 -1
  108. package/dist/wcardinal/ui/d-table-data-tree-selection-impl.js.map +1 -1
  109. package/dist/wcardinal/ui/index.js +11 -3
  110. package/dist/wcardinal/ui/index.js.map +1 -1
  111. package/dist/wcardinal/ui/shape/action/e-shape-action-runtimes.js.map +1 -1
  112. package/dist/wcardinal/ui/shape/action/e-shape-action-value-change-color.js.map +1 -1
  113. package/dist/wcardinal/ui/shape/e-shape-capabilities.js.map +1 -1
  114. package/dist/wcardinal/ui/shape/e-shape-connector-edge-acceptor-impl.js.map +1 -1
  115. package/dist/wcardinal/ui/shape/e-shape-deserializers.js.map +1 -1
  116. package/dist/wcardinal/ui/shape/e-shape-runtimes.js.map +1 -1
  117. package/dist/wcardinal/ui/shape/e-shape-text.js.map +1 -1
  118. package/dist/wcardinal/ui/shape/e-shape-uploadeds.js.map +1 -1
  119. package/dist/wcardinal/ui/shape/variant/create-line-of-any-uploaded.js.map +1 -1
  120. package/dist/wcardinal/ui/shape/variant/to-image-element.js.map +1 -1
  121. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.js +28 -0
  122. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-last.js.map +1 -0
  123. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.js +27 -0
  124. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-next.js.map +1 -0
  125. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.js +24 -0
  126. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-page.js.map +1 -0
  127. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.js +27 -0
  128. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-previous.js.map +1 -0
  129. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.js +28 -0
  130. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-button-top.js.map +1 -0
  131. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js +36 -0
  132. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots.js.map +1 -0
  133. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js +35 -0
  134. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-page.js.map +1 -0
  135. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination.js +5 -2
  136. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination.js.map +1 -1
  137. package/dist/wcardinal/ui/theme/dark/d-theme-dark.js.map +1 -1
  138. package/dist/wcardinal/ui/theme/dark/index.js +7 -3
  139. package/dist/wcardinal/ui/theme/dark/index.js.map +1 -1
  140. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-pagination.js +14 -6
  141. package/dist/wcardinal/ui/theme/dark/load/load-theme-dark-pagination.js.map +1 -1
  142. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.js +28 -0
  143. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-last.js.map +1 -0
  144. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.js +27 -0
  145. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-next.js.map +1 -0
  146. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.js +24 -0
  147. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-page.js.map +1 -0
  148. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.js +27 -0
  149. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-previous.js.map +1 -0
  150. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.js +28 -0
  151. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-button-top.js.map +1 -0
  152. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js +36 -0
  153. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots.js.map +1 -0
  154. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js +35 -0
  155. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-page.js.map +1 -0
  156. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination.js +5 -2
  157. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination.js.map +1 -1
  158. package/dist/wcardinal/ui/theme/white/d-theme-white.js.map +1 -1
  159. package/dist/wcardinal/ui/theme/white/index.js +7 -3
  160. package/dist/wcardinal/ui/theme/white/index.js.map +1 -1
  161. package/dist/wcardinal/ui/theme/white/load/load-theme-white-pagination.js +14 -6
  162. package/dist/wcardinal/ui/theme/white/load/load-theme-white-pagination.js.map +1 -1
  163. package/dist/wcardinal/ui/util/dynamic-atlas.js.map +1 -1
  164. package/dist/wcardinal/ui/util/dynamic-font-atlas-characters.js.map +1 -1
  165. package/dist/wcardinal/ui/util/dynamic-sdf-font-atlases.js.map +1 -1
  166. package/dist/wcardinal/ui/util/format-node/{format-noder-d.js → format-node-rd.js} +1 -1
  167. package/dist/wcardinal/ui/util/format-node/{format-noder-d.js.map → format-node-rd.js.map} +1 -1
  168. package/dist/wcardinal/ui/util/format-node/index.js +36 -0
  169. package/dist/wcardinal/ui/util/format-node/index.js.map +1 -0
  170. package/dist/wcardinal/ui/util/index.js +5 -0
  171. package/dist/wcardinal/ui/util/index.js.map +1 -1
  172. package/dist/wcardinal/ui/util/number-formatter-impl.js +1 -1
  173. package/dist/wcardinal/ui/util/number-formatter-impl.js.map +1 -1
  174. package/dist/wcardinal/ui/util/util-name.js.map +1 -1
  175. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
  176. package/dist/wcardinal-ui-theme-dark.js +163 -39
  177. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  178. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  179. package/dist/wcardinal-ui-theme-white.js +163 -39
  180. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  181. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  182. package/dist/wcardinal-ui.cjs.js +999 -446
  183. package/dist/wcardinal-ui.js +675 -370
  184. package/dist/wcardinal-ui.min.js +2 -2
  185. package/dist/wcardinal-ui.min.js.map +1 -1
  186. package/package.json +3 -3
  187. package/dist/types/wcardinal/ui/d-pagination-dots-button.d.ts +0 -8
  188. package/dist/types/wcardinal/ui/d-pagination-dynamic-buttons.d.ts +0 -21
  189. package/dist/types/wcardinal/ui/d-pagination-navigation-button.d.ts +0 -8
  190. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.d.ts +0 -9
  191. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.d.ts +0 -6
  192. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.d.ts +0 -4
  193. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.d.ts +0 -9
  194. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.d.ts +0 -6
  195. package/dist/types/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.d.ts +0 -4
  196. package/dist/wcardinal/ui/d-pagination-dots-button.js +0 -18
  197. package/dist/wcardinal/ui/d-pagination-dots-button.js.map +0 -1
  198. package/dist/wcardinal/ui/d-pagination-dynamic-buttons.js +0 -81
  199. package/dist/wcardinal/ui/d-pagination-dynamic-buttons.js.map +0 -1
  200. package/dist/wcardinal/ui/d-pagination-navigation-button.js +0 -18
  201. package/dist/wcardinal/ui/d-pagination-navigation-button.js.map +0 -1
  202. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.js +0 -24
  203. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dots-button.js.map +0 -1
  204. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.js +0 -18
  205. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-dynamic-buttons.js.map +0 -1
  206. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.js +0 -32
  207. package/dist/wcardinal/ui/theme/dark/d-theme-dark-pagination-navigation-button.js.map +0 -1
  208. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.js +0 -24
  209. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dots-button.js.map +0 -1
  210. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.js +0 -18
  211. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-dynamic-buttons.js.map +0 -1
  212. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.js +0 -32
  213. package/dist/wcardinal/ui/theme/white/d-theme-white-pagination-navigation-button.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.154.0
2
+ Winter Cardinal UI v0.155.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -11262,48 +11262,30 @@ var DLayoutClearType = {
11262
11262
  * Copyright (C) 2019 Toshiba Corporation
11263
11263
  * SPDX-License-Identifier: Apache-2.0
11264
11264
  */
11265
- var NodeType;
11266
- (function (NodeType) {
11265
+ var DScalarExpressionNodeType = {
11267
11266
  // Parensesis
11268
- NodeType[NodeType["OPEN"] = 0] = "OPEN";
11269
- NodeType[NodeType["CLOSE"] = 1] = "CLOSE";
11270
- NodeType[NodeType["PARENSESIS"] = 2] = "PARENSESIS";
11267
+ OPEN: 0,
11268
+ CLOSE: 1,
11269
+ PARENSESIS: 2,
11271
11270
  // Operations
11272
- NodeType[NodeType["ADD_OR_PLUS"] = 3] = "ADD_OR_PLUS";
11273
- NodeType[NodeType["SUB_OR_MINUS"] = 4] = "SUB_OR_MINUS";
11274
- NodeType[NodeType["PLUS"] = 5] = "PLUS";
11275
- NodeType[NodeType["MINUS"] = 6] = "MINUS";
11276
- NodeType[NodeType["ADD"] = 7] = "ADD";
11277
- NodeType[NodeType["SUB"] = 8] = "SUB";
11278
- NodeType[NodeType["MUL"] = 9] = "MUL";
11279
- NodeType[NodeType["DIV"] = 10] = "DIV";
11271
+ ADD_OR_PLUS: 3,
11272
+ SUB_OR_MINUS: 4,
11273
+ PLUS: 5,
11274
+ MINUS: 6,
11275
+ ADD: 7,
11276
+ SUB: 8,
11277
+ MUL: 9,
11278
+ DIV: 10,
11280
11279
  // Functions
11281
- NodeType[NodeType["MIN"] = 11] = "MIN";
11282
- NodeType[NodeType["MAX"] = 12] = "MAX";
11283
- NodeType[NodeType["COMMA"] = 13] = "COMMA";
11280
+ MIN: 11,
11281
+ MAX: 12,
11282
+ COMMA: 13,
11284
11283
  // Literals
11285
- NodeType[NodeType["PARENT"] = 14] = "PARENT";
11286
- NodeType[NodeType["SELF"] = 15] = "SELF";
11287
- NodeType[NodeType["PADDING"] = 16] = "PADDING";
11288
- NodeType[NodeType["CURRENT"] = 17] = "CURRENT";
11289
- NodeType[NodeType["NUMBER"] = 18] = "NUMBER";
11290
- })(NodeType || (NodeType = {}));
11291
- var TOKEN_MAPPING_OPERATOR = {
11292
- "+": 3 /* ADD_OR_PLUS */,
11293
- "-": 4 /* SUB_OR_MINUS */,
11294
- "*": 9 /* MUL */,
11295
- "/": 10 /* DIV */,
11296
- "(": 0 /* OPEN */,
11297
- ")": 1 /* CLOSE */,
11298
- ",": 13 /* COMMA */,
11299
- min: 11 /* MIN */,
11300
- max: 12 /* MAX */
11301
- };
11302
- var TOKEN_MAPPING_LITERAL = {
11303
- "%": 14 /* PARENT */,
11304
- s: 15 /* SELF */,
11305
- p: 16 /* PADDING */,
11306
- c: 17 /* CURRENT */
11284
+ PARENT: 14,
11285
+ SELF: 15,
11286
+ PADDING: 16,
11287
+ CURRENT: 17,
11288
+ NUMBER: 18
11307
11289
  };
11308
11290
  /**
11309
11291
  * Parser and evaluator of the scalar expressions like `100% - 50s`.
@@ -11343,8 +11325,8 @@ var DScalarExpression = /** @class */ (function () {
11343
11325
  i = this.toParensesis(nodes, i);
11344
11326
  } while (i < nodes.length);
11345
11327
  this.toUnary(nodes);
11346
- this.toArithmetic(nodes, 9 /* MUL */, 10 /* DIV */);
11347
- this.toArithmetic(nodes, 7 /* ADD */, 8 /* SUB */);
11328
+ this.toArithmetic(nodes, DScalarExpressionNodeType.MUL, DScalarExpressionNodeType.DIV);
11329
+ this.toArithmetic(nodes, DScalarExpressionNodeType.ADD, DScalarExpressionNodeType.SUB);
11348
11330
  if (nodes.length === 1) {
11349
11331
  var node = nodes[0];
11350
11332
  if (!isNumber(node)) {
@@ -11358,24 +11340,25 @@ var DScalarExpression = /** @class */ (function () {
11358
11340
  var ito = nodes.length;
11359
11341
  for (var i = ifrom; i < ito; ++i) {
11360
11342
  var inode = nodes[i];
11361
- if (inode === 0 /* OPEN */) {
11343
+ if (inode === DScalarExpressionNodeType.OPEN) {
11362
11344
  var istart = i;
11363
- var nodeType = 2 /* PARENSESIS */;
11345
+ var nodeType = DScalarExpressionNodeType.PARENSESIS;
11364
11346
  if (0 < i) {
11365
11347
  var nodeTypePrev = nodes[i - 1];
11366
- if (nodeTypePrev === 11 /* MIN */ || nodeTypePrev === 12 /* MAX */) {
11348
+ if (nodeTypePrev === DScalarExpressionNodeType.MIN ||
11349
+ nodeTypePrev === DScalarExpressionNodeType.MAX) {
11367
11350
  istart -= 1;
11368
11351
  nodeType = nodeTypePrev;
11369
11352
  }
11370
11353
  }
11371
11354
  for (var j = i + 1; j < ito; ++j) {
11372
11355
  var jnode = nodes[j];
11373
- if (jnode === 1 /* CLOSE */) {
11356
+ if (jnode === DScalarExpressionNodeType.CLOSE) {
11374
11357
  nodes[istart] = [nodeType, this.toComma(nodes, i + 1, j)];
11375
11358
  nodes.splice(istart + 1, j - istart);
11376
11359
  return istart + 1;
11377
11360
  }
11378
- else if (jnode === 0 /* OPEN */) {
11361
+ else if (jnode === DScalarExpressionNodeType.OPEN) {
11379
11362
  j = this.toParensesis(nodes, j) - 1;
11380
11363
  ito = nodes.length;
11381
11364
  }
@@ -11388,7 +11371,7 @@ var DScalarExpression = /** @class */ (function () {
11388
11371
  DScalarExpression.prototype.toCommaOf = function (nodes, ifrom, ito) {
11389
11372
  var l = ito - ifrom;
11390
11373
  if (l <= 0) {
11391
- return [18 /* NUMBER */, 0];
11374
+ return [DScalarExpressionNodeType.NUMBER, 0];
11392
11375
  }
11393
11376
  else if (l <= 1) {
11394
11377
  return nodes[ifrom];
@@ -11398,7 +11381,7 @@ var DScalarExpression = /** @class */ (function () {
11398
11381
  for (var j = ifrom; j < ito; ++j) {
11399
11382
  operand.push(nodes[j]);
11400
11383
  }
11401
- return [2 /* PARENSESIS */, operand];
11384
+ return [DScalarExpressionNodeType.PARENSESIS, operand];
11402
11385
  }
11403
11386
  };
11404
11387
  DScalarExpression.prototype.toComma = function (nodes, ifrom, ito) {
@@ -11406,7 +11389,7 @@ var DScalarExpression = /** @class */ (function () {
11406
11389
  var iprev = ifrom;
11407
11390
  for (var i = ifrom; i < ito; ++i) {
11408
11391
  var node = nodes[i];
11409
- if (node === 13 /* COMMA */) {
11392
+ if (node === DScalarExpressionNodeType.COMMA) {
11410
11393
  result = result || [];
11411
11394
  result.push(this.toCommaOf(nodes, iprev, i));
11412
11395
  iprev = i + 1;
@@ -11428,9 +11411,9 @@ var DScalarExpression = /** @class */ (function () {
11428
11411
  };
11429
11412
  DScalarExpression.prototype.toUnaryNode = function (node) {
11430
11413
  if (!isNumber(node)) {
11431
- if (node[0] === 2 /* PARENSESIS */ ||
11432
- node[0] === 11 /* MIN */ ||
11433
- node[0] === 12 /* MAX */) {
11414
+ if (node[0] === DScalarExpressionNodeType.PARENSESIS ||
11415
+ node[0] === DScalarExpressionNodeType.MIN ||
11416
+ node[0] === DScalarExpressionNodeType.MAX) {
11434
11417
  this.toUnary(node[1]);
11435
11418
  }
11436
11419
  }
@@ -11438,11 +11421,14 @@ var DScalarExpression = /** @class */ (function () {
11438
11421
  DScalarExpression.prototype.toUnary = function (nodes) {
11439
11422
  for (var i = 0, imax = nodes.length; i < imax; ++i) {
11440
11423
  var node = nodes[i];
11441
- if (node === 3 /* ADD_OR_PLUS */ || node === 4 /* SUB_OR_MINUS */) {
11424
+ if (node === DScalarExpressionNodeType.ADD_OR_PLUS ||
11425
+ node === DScalarExpressionNodeType.SUB_OR_MINUS) {
11442
11426
  if (i <= 0 || isNumber(nodes[i - 1])) {
11443
11427
  if (i + 1 < imax && !isNumber(nodes[i + 1])) {
11444
11428
  var operand = nodes.splice(i + 1, 1)[0];
11445
- var type = node === 3 /* ADD_OR_PLUS */ ? 5 /* PLUS */ : 6 /* MINUS */;
11429
+ var type = node === DScalarExpressionNodeType.ADD_OR_PLUS
11430
+ ? DScalarExpressionNodeType.PLUS
11431
+ : DScalarExpressionNodeType.MINUS;
11446
11432
  nodes[i] = [type, operand];
11447
11433
  imax = nodes.length;
11448
11434
  this.toUnaryNode(operand);
@@ -11452,7 +11438,9 @@ var DScalarExpression = /** @class */ (function () {
11452
11438
  }
11453
11439
  }
11454
11440
  else {
11455
- var type = node === 3 /* ADD_OR_PLUS */ ? 7 /* ADD */ : 8 /* SUB */;
11441
+ var type = node === DScalarExpressionNodeType.ADD_OR_PLUS
11442
+ ? DScalarExpressionNodeType.ADD
11443
+ : DScalarExpressionNodeType.SUB;
11456
11444
  nodes[i] = type;
11457
11445
  }
11458
11446
  }
@@ -11464,18 +11452,19 @@ var DScalarExpression = /** @class */ (function () {
11464
11452
  };
11465
11453
  DScalarExpression.prototype.toArithmeticNode = function (node, operatorA, operatorB) {
11466
11454
  if (!isNumber(node)) {
11467
- if (node[0] === 2 /* PARENSESIS */ ||
11468
- node[0] === 11 /* MIN */ ||
11469
- node[0] === 12 /* MAX */) {
11455
+ if (node[0] === DScalarExpressionNodeType.PARENSESIS ||
11456
+ node[0] === DScalarExpressionNodeType.MIN ||
11457
+ node[0] === DScalarExpressionNodeType.MAX) {
11470
11458
  this.toArithmetic(node[1], operatorA, operatorB);
11471
11459
  }
11472
- else if (node[0] === 5 /* PLUS */ || node[0] === 6 /* MINUS */) {
11460
+ else if (node[0] === DScalarExpressionNodeType.PLUS ||
11461
+ node[0] === DScalarExpressionNodeType.MINUS) {
11473
11462
  this.toArithmeticNode(node[1], operatorA, operatorB);
11474
11463
  }
11475
- else if (node[0] === 7 /* ADD */ ||
11476
- node[0] === 8 /* SUB */ ||
11477
- node[0] === 9 /* MUL */ ||
11478
- node[0] === 10 /* DIV */) {
11464
+ else if (node[0] === DScalarExpressionNodeType.ADD ||
11465
+ node[0] === DScalarExpressionNodeType.SUB ||
11466
+ node[0] === DScalarExpressionNodeType.MUL ||
11467
+ node[0] === DScalarExpressionNodeType.DIV) {
11479
11468
  this.toArithmeticNode(node[1], operatorA, operatorB);
11480
11469
  this.toArithmeticNode(node[2], operatorA, operatorB);
11481
11470
  }
@@ -11512,7 +11501,7 @@ var DScalarExpression = /** @class */ (function () {
11512
11501
  var matched = DScalarExpression.TOKEN_REGEX.exec(expression);
11513
11502
  if (matched != null) {
11514
11503
  var token = matched[0];
11515
- var tokenTypeOperator = TOKEN_MAPPING_OPERATOR[token];
11504
+ var tokenTypeOperator = this.toTokenOperator(token);
11516
11505
  if (tokenTypeOperator != null) {
11517
11506
  tokens.push(tokenTypeOperator);
11518
11507
  }
@@ -11521,12 +11510,12 @@ var DScalarExpression = /** @class */ (function () {
11521
11510
  if (parsedToken !== parsedToken) {
11522
11511
  throw new Error("Unexpected token '" + token + "' at " + matched.index + " in '" + expression + "'");
11523
11512
  }
11524
- var tokenTypeLiteral = TOKEN_MAPPING_LITERAL[token[token.length - 1]];
11513
+ var tokenTypeLiteral = this.toTokenLiteral(token);
11525
11514
  if (tokenTypeLiteral != null) {
11526
11515
  tokens.push([tokenTypeLiteral, parsedToken * 0.01]);
11527
11516
  }
11528
11517
  else {
11529
- tokens.push([18 /* NUMBER */, parsedToken]);
11518
+ tokens.push([DScalarExpressionNodeType.NUMBER, parsedToken]);
11530
11519
  }
11531
11520
  }
11532
11521
  }
@@ -11536,31 +11525,70 @@ var DScalarExpression = /** @class */ (function () {
11536
11525
  }
11537
11526
  return tokens;
11538
11527
  };
11528
+ DScalarExpression.prototype.toTokenOperator = function (token) {
11529
+ switch (token) {
11530
+ case "+":
11531
+ return DScalarExpressionNodeType.ADD_OR_PLUS;
11532
+ case "-":
11533
+ return DScalarExpressionNodeType.SUB_OR_MINUS;
11534
+ case "*":
11535
+ return DScalarExpressionNodeType.MUL;
11536
+ case "/":
11537
+ return DScalarExpressionNodeType.DIV;
11538
+ case "(":
11539
+ return DScalarExpressionNodeType.OPEN;
11540
+ case ")":
11541
+ return DScalarExpressionNodeType.CLOSE;
11542
+ case ",":
11543
+ return DScalarExpressionNodeType.COMMA;
11544
+ case "min":
11545
+ return DScalarExpressionNodeType.MIN;
11546
+ case "max":
11547
+ return DScalarExpressionNodeType.MAX;
11548
+ }
11549
+ return null;
11550
+ };
11551
+ DScalarExpression.prototype.toTokenLiteral = function (token) {
11552
+ var tokenLength = token.length;
11553
+ if (0 < tokenLength) {
11554
+ switch (token[tokenLength - 1]) {
11555
+ case "%":
11556
+ return DScalarExpressionNodeType.PARENT;
11557
+ case "s":
11558
+ return DScalarExpressionNodeType.SELF;
11559
+ case "p":
11560
+ return DScalarExpressionNodeType.PADDING;
11561
+ case "c":
11562
+ return DScalarExpressionNodeType.CURRENT;
11563
+ }
11564
+ }
11565
+ return null;
11566
+ };
11539
11567
  DScalarExpression.prototype.evaluate = function (node, parent, self, padding, current) {
11540
11568
  switch (node[0]) {
11541
- case 2 /* PARENSESIS */:
11569
+ case DScalarExpressionNodeType.PARENSESIS:
11542
11570
  var nodes = node[1];
11543
11571
  return this.evaluate(nodes[nodes.length - 1], parent, self, padding, current);
11544
11572
  // Unary operators
11545
- case 5 /* PLUS */:
11573
+ case DScalarExpressionNodeType.PLUS:
11546
11574
  return +this.evaluate(node[1], parent, self, padding, current);
11547
- case 6 /* MINUS */:
11575
+ case DScalarExpressionNodeType.MINUS:
11548
11576
  return -this.evaluate(node[1], parent, self, padding, current);
11549
11577
  // Four arithmetic operators
11550
- case 7 /* ADD */:
11578
+ case DScalarExpressionNodeType.ADD:
11551
11579
  return (this.evaluate(node[1], parent, self, padding, current) +
11552
11580
  this.evaluate(node[2], parent, self, padding, current));
11553
- case 8 /* SUB */:
11581
+ case DScalarExpressionNodeType.SUB:
11554
11582
  return (this.evaluate(node[1], parent, self, padding, current) -
11555
11583
  this.evaluate(node[2], parent, self, padding, current));
11556
- case 9 /* MUL */:
11584
+ case DScalarExpressionNodeType.MUL:
11557
11585
  return (this.evaluate(node[1], parent, self, padding, current) *
11558
11586
  this.evaluate(node[2], parent, self, padding, current));
11559
- case 10 /* DIV */:
11587
+ case DScalarExpressionNodeType.DIV:
11560
11588
  return (this.evaluate(node[1], parent, self, padding, current) /
11561
11589
  this.evaluate(node[2], parent, self, padding, current));
11562
11590
  // Functions
11563
- case 11 /* MIN */:
11591
+ case DScalarExpressionNodeType.MIN:
11564
11592
  if (0 < node[1].length) {
11565
11593
  var args = node[1];
11566
11594
  var result = this.evaluate(args[0], parent, self, padding, current);
@@ -11570,7 +11598,7 @@ var DScalarExpression = /** @class */ (function () {
11570
11598
  return result;
11571
11599
  }
11572
11600
  return 0;
11573
- case 12 /* MAX */:
11601
+ case DScalarExpressionNodeType.MAX:
11574
11602
  if (0 < node[1].length) {
11575
11603
  var args = node[1];
11576
11604
  var result = this.evaluate(args[0], parent, self, padding, current);
@@ -11581,15 +11609,15 @@ var DScalarExpression = /** @class */ (function () {
11581
11609
  }
11582
11610
  return 0;
11583
11611
  // Literals
11584
- case 14 /* PARENT */:
11612
+ case DScalarExpressionNodeType.PARENT:
11585
11613
  return node[1] * parent;
11586
- case 15 /* SELF */:
11614
+ case DScalarExpressionNodeType.SELF:
11587
11615
  return node[1] * self;
11588
- case 16 /* PADDING */:
11616
+ case DScalarExpressionNodeType.PADDING:
11589
11617
  return node[1] * padding;
11590
- case 17 /* CURRENT */:
11618
+ case DScalarExpressionNodeType.CURRENT:
11591
11619
  return node[1] * current;
11592
- case 18 /* NUMBER */:
11620
+ case DScalarExpressionNodeType.NUMBER:
11593
11621
  return node[1];
11594
11622
  }
11595
11623
  return 0;
@@ -48231,8 +48259,11 @@ var DThemeWhitePagination = /** @class */ (function (_super) {
48231
48259
  DThemeWhitePagination.prototype.getWidth = function () {
48232
48260
  return "auto";
48233
48261
  };
48234
- DThemeWhitePagination.prototype.getButtonWidth = function () {
48235
- return 30;
48262
+ DThemeWhitePagination.prototype.getMargin = function () {
48263
+ return 10;
48264
+ };
48265
+ DThemeWhitePagination.prototype.getButtonSpace = function () {
48266
+ return 10;
48236
48267
  };
48237
48268
  return DThemeWhitePagination;
48238
48269
  }(DThemeWhiteLayoutHorizontal));
@@ -48241,75 +48272,192 @@ var DThemeWhitePagination = /** @class */ (function (_super) {
48241
48272
  * Copyright (C) 2019 Toshiba Corporation
48242
48273
  * SPDX-License-Identifier: Apache-2.0
48243
48274
  */
48244
- var DThemeWhitePaginationDotsButton = /** @class */ (function (_super) {
48245
- __extends(DThemeWhitePaginationDotsButton, _super);
48246
- function DThemeWhitePaginationDotsButton() {
48275
+ /* eslint-disable prettier/prettier */
48276
+ DThemeWhiteAtlas.add("pagination_dots", 21, 21, "<g>" +
48277
+ "<circle cx=\"2\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
48278
+ "<circle cx=\"10.5\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
48279
+ "<circle cx=\"19\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
48280
+ "</g>");
48281
+ /* eslint-enable prettier/prettier */
48282
+ var DThemeWhitePaginationDots = /** @class */ (function (_super) {
48283
+ __extends(DThemeWhitePaginationDots, _super);
48284
+ function DThemeWhitePaginationDots() {
48247
48285
  return _super !== null && _super.apply(this, arguments) || this;
48248
48286
  }
48249
- DThemeWhitePaginationDotsButton.prototype.getBackgroundColor = function (state) {
48250
- return null;
48287
+ DThemeWhitePaginationDots.prototype.getWidth = function () {
48288
+ return 30;
48251
48289
  };
48252
- DThemeWhitePaginationDotsButton.prototype.getBorderColor = function (state) {
48253
- return null;
48290
+ DThemeWhitePaginationDots.prototype.getHeight = function () {
48291
+ return 30;
48292
+ };
48293
+ DThemeWhitePaginationDots.prototype.newState = function (state) {
48294
+ _super.prototype.newState.call(this, state);
48295
+ state.isFocusable = false;
48254
48296
  };
48255
- DThemeWhitePaginationDotsButton.prototype.newTextValue = function () {
48256
- return "...";
48297
+ DThemeWhitePaginationDots.prototype.getImageSource = function (state) {
48298
+ return DThemeWhiteAtlas.mappings.pagination_dots;
48257
48299
  };
48258
- return DThemeWhitePaginationDotsButton;
48300
+ return DThemeWhitePaginationDots;
48301
+ }(DThemeWhiteImageBase));
48302
+
48303
+ /*
48304
+ * Copyright (C) 2019 Toshiba Corporation
48305
+ * SPDX-License-Identifier: Apache-2.0
48306
+ */
48307
+ /* eslint-disable prettier/prettier */
48308
+ DThemeWhiteAtlas.add("pagination_button_last", 21, 21, "<g>" +
48309
+ "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
48310
+ "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
48311
+ "</g>");
48312
+ /* eslint-enable prettier/prettier */
48313
+ var DThemeWhitePaginationButtonLast = /** @class */ (function (_super) {
48314
+ __extends(DThemeWhitePaginationButtonLast, _super);
48315
+ function DThemeWhitePaginationButtonLast() {
48316
+ return _super !== null && _super.apply(this, arguments) || this;
48317
+ }
48318
+ DThemeWhitePaginationButtonLast.prototype.getWidth = function () {
48319
+ return 30;
48320
+ };
48321
+ DThemeWhitePaginationButtonLast.prototype.getImageSource = function (state) {
48322
+ return DThemeWhiteAtlas.mappings.pagination_button_last;
48323
+ };
48324
+ return DThemeWhitePaginationButtonLast;
48259
48325
  }(DThemeWhiteButtonAmbient));
48260
48326
 
48261
48327
  /*
48262
48328
  * Copyright (C) 2019 Toshiba Corporation
48263
48329
  * SPDX-License-Identifier: Apache-2.0
48264
48330
  */
48265
- var DThemeWhitePaginationDynamicButtons = /** @class */ (function (_super) {
48266
- __extends(DThemeWhitePaginationDynamicButtons, _super);
48267
- function DThemeWhitePaginationDynamicButtons() {
48331
+ /* eslint-disable prettier/prettier */
48332
+ DThemeWhiteAtlas.add("pagination_button_next", 21, 21, "<g>" +
48333
+ "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"7 15 13 10 7 5\"></polyline>" +
48334
+ "</g>");
48335
+ /* eslint-enable prettier/prettier */
48336
+ var DThemeWhitePaginationButtonNext = /** @class */ (function (_super) {
48337
+ __extends(DThemeWhitePaginationButtonNext, _super);
48338
+ function DThemeWhitePaginationButtonNext() {
48268
48339
  return _super !== null && _super.apply(this, arguments) || this;
48269
48340
  }
48270
- DThemeWhitePaginationDynamicButtons.prototype.getWidth = function () {
48271
- return "auto";
48341
+ DThemeWhitePaginationButtonNext.prototype.getWidth = function () {
48342
+ return 30;
48272
48343
  };
48273
- return DThemeWhitePaginationDynamicButtons;
48274
- }(DThemeWhiteLayoutHorizontal));
48344
+ DThemeWhitePaginationButtonNext.prototype.getImageSource = function (state) {
48345
+ return DThemeWhiteAtlas.mappings.pagination_button_next;
48346
+ };
48347
+ return DThemeWhitePaginationButtonNext;
48348
+ }(DThemeWhiteButtonAmbient));
48349
+
48350
+ /*
48351
+ * Copyright (C) 2019 Toshiba Corporation
48352
+ * SPDX-License-Identifier: Apache-2.0
48353
+ */
48354
+ var DThemeWhitePaginationButtonPage = /** @class */ (function (_super) {
48355
+ __extends(DThemeWhitePaginationButtonPage, _super);
48356
+ function DThemeWhitePaginationButtonPage() {
48357
+ return _super !== null && _super.apply(this, arguments) || this;
48358
+ }
48359
+ DThemeWhitePaginationButtonPage.prototype.getWidth = function () {
48360
+ return 30;
48361
+ };
48362
+ DThemeWhitePaginationButtonPage.prototype.newTextValue = function () {
48363
+ return 0;
48364
+ };
48365
+ DThemeWhitePaginationButtonPage.prototype.getTextStyleClipping = function () {
48366
+ return false;
48367
+ };
48368
+ return DThemeWhitePaginationButtonPage;
48369
+ }(DThemeWhiteButtonAmbient));
48275
48370
 
48276
48371
  /*
48277
48372
  * Copyright (C) 2019 Toshiba Corporation
48278
48373
  * SPDX-License-Identifier: Apache-2.0
48279
48374
  */
48280
48375
  /* eslint-disable prettier/prettier */
48281
- DThemeWhiteAtlas.add("pagination_navigation_button_previous", 21, 21, "<g>" +
48376
+ DThemeWhiteAtlas.add("pagination_button_previous", 21, 21, "<g>" +
48282
48377
  "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"13 15 7 10 13 5\"></polyline>" +
48283
48378
  "</g>");
48284
- DThemeWhiteAtlas.add("pagination_navigation_button_next", 21, 21, "<g>" +
48285
- "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"7 15 13 10 7 5\"></polyline>" +
48286
- "</g>");
48287
- DThemeWhiteAtlas.add("pagination_navigation_button_go_first", 21, 21, "<g>" +
48379
+ /* eslint-enable prettier/prettier */
48380
+ var DThemeWhitePaginationButtonPrevious = /** @class */ (function (_super) {
48381
+ __extends(DThemeWhitePaginationButtonPrevious, _super);
48382
+ function DThemeWhitePaginationButtonPrevious() {
48383
+ return _super !== null && _super.apply(this, arguments) || this;
48384
+ }
48385
+ DThemeWhitePaginationButtonPrevious.prototype.getWidth = function () {
48386
+ return 30;
48387
+ };
48388
+ DThemeWhitePaginationButtonPrevious.prototype.getImageSource = function (state) {
48389
+ return DThemeWhiteAtlas.mappings.pagination_button_previous;
48390
+ };
48391
+ return DThemeWhitePaginationButtonPrevious;
48392
+ }(DThemeWhiteButtonAmbient));
48393
+
48394
+ /*
48395
+ * Copyright (C) 2019 Toshiba Corporation
48396
+ * SPDX-License-Identifier: Apache-2.0
48397
+ */
48398
+ /* eslint-disable prettier/prettier */
48399
+ DThemeWhiteAtlas.add("pagination_button_top", 21, 21, "<g>" +
48288
48400
  "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"11 15 5 10 11 5\"></polyline>" +
48289
48401
  "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"15 15 9 10 15 5\"></polyline>" +
48290
48402
  "</g>");
48291
- DThemeWhiteAtlas.add("pagination_navigation_button_go_last", 21, 21, "<g>" +
48292
- "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
48293
- "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
48294
- "</g>");
48295
48403
  /* eslint-enable prettier/prettier */
48296
- var DThemeWhitePaginationNavigationButton = /** @class */ (function (_super) {
48297
- __extends(DThemeWhitePaginationNavigationButton, _super);
48298
- function DThemeWhitePaginationNavigationButton() {
48404
+ var DThemeWhitePaginationButtonTop = /** @class */ (function (_super) {
48405
+ __extends(DThemeWhitePaginationButtonTop, _super);
48406
+ function DThemeWhitePaginationButtonTop() {
48299
48407
  return _super !== null && _super.apply(this, arguments) || this;
48300
48408
  }
48301
- return DThemeWhitePaginationNavigationButton;
48409
+ DThemeWhitePaginationButtonTop.prototype.getWidth = function () {
48410
+ return 30;
48411
+ };
48412
+ DThemeWhitePaginationButtonTop.prototype.getImageSource = function (state) {
48413
+ return DThemeWhiteAtlas.mappings.pagination_button_top;
48414
+ };
48415
+ return DThemeWhitePaginationButtonTop;
48302
48416
  }(DThemeWhiteButtonAmbient));
48303
48417
 
48418
+ /*
48419
+ * Copyright (C) 2019 Toshiba Corporation
48420
+ * SPDX-License-Identifier: Apache-2.0
48421
+ */
48422
+ var DThemeWhitePaginationPage = /** @class */ (function (_super) {
48423
+ __extends(DThemeWhitePaginationPage, _super);
48424
+ function DThemeWhitePaginationPage() {
48425
+ return _super !== null && _super.apply(this, arguments) || this;
48426
+ }
48427
+ DThemeWhitePaginationPage.prototype.getBackgroundColor = function (state) {
48428
+ return DThemeWhiteConstants.HIGHLIGHT_COLOR;
48429
+ };
48430
+ DThemeWhitePaginationPage.prototype.getColor = function (state) {
48431
+ return DThemeWhiteConstants.ACTIVE_COLOR;
48432
+ };
48433
+ DThemeWhitePaginationPage.prototype.getWidth = function () {
48434
+ return 30;
48435
+ };
48436
+ DThemeWhitePaginationPage.prototype.getHeight = function () {
48437
+ return 30;
48438
+ };
48439
+ DThemeWhitePaginationPage.prototype.getTextStyleClipping = function () {
48440
+ return false;
48441
+ };
48442
+ DThemeWhitePaginationPage.prototype.getTextAlignHorizontal = function () {
48443
+ return DAlignHorizontal.CENTER;
48444
+ };
48445
+ return DThemeWhitePaginationPage;
48446
+ }(DThemeWhiteImageBase));
48447
+
48304
48448
  /*
48305
48449
  * Copyright (C) 2019 Toshiba Corporation
48306
48450
  * SPDX-License-Identifier: Apache-2.0
48307
48451
  */
48308
48452
  var loadThemeWhitePagination = function () {
48309
48453
  DThemeWhite.set("DPagination", DThemeWhitePagination);
48310
- DThemeWhite.set("DPaginationNavigationButton", DThemeWhitePaginationNavigationButton);
48311
- DThemeWhite.set("DPaginationDynamicButtons", DThemeWhitePaginationDynamicButtons);
48312
- DThemeWhite.set("DPaginationDotsButton", DThemeWhitePaginationDotsButton);
48454
+ DThemeWhite.set("DPaginationPage", DThemeWhitePaginationPage);
48455
+ DThemeWhite.set("DPaginationDots", DThemeWhitePaginationDots);
48456
+ DThemeWhite.set("DPaginationButtonLast", DThemeWhitePaginationButtonLast);
48457
+ DThemeWhite.set("DPaginationButtonNext", DThemeWhitePaginationButtonNext);
48458
+ DThemeWhite.set("DPaginationButtonPage", DThemeWhitePaginationButtonPage);
48459
+ DThemeWhite.set("DPaginationButtonPrevious", DThemeWhitePaginationButtonPrevious);
48460
+ DThemeWhite.set("DPaginationButtonTop", DThemeWhitePaginationButtonTop);
48313
48461
  };
48314
48462
 
48315
48463
  /*
@@ -56717,8 +56865,11 @@ var DThemeDarkPagination = /** @class */ (function (_super) {
56717
56865
  DThemeDarkPagination.prototype.getWidth = function () {
56718
56866
  return "auto";
56719
56867
  };
56720
- DThemeDarkPagination.prototype.getButtonWidth = function () {
56721
- return 30;
56868
+ DThemeDarkPagination.prototype.getMargin = function () {
56869
+ return 10;
56870
+ };
56871
+ DThemeDarkPagination.prototype.getButtonSpace = function () {
56872
+ return 10;
56722
56873
  };
56723
56874
  return DThemeDarkPagination;
56724
56875
  }(DThemeDarkLayoutHorizontal));
@@ -56727,75 +56878,192 @@ var DThemeDarkPagination = /** @class */ (function (_super) {
56727
56878
  * Copyright (C) 2019 Toshiba Corporation
56728
56879
  * SPDX-License-Identifier: Apache-2.0
56729
56880
  */
56730
- var DThemeDarkPaginationDotsButton = /** @class */ (function (_super) {
56731
- __extends(DThemeDarkPaginationDotsButton, _super);
56732
- function DThemeDarkPaginationDotsButton() {
56881
+ /* eslint-disable prettier/prettier */
56882
+ DThemeDarkAtlas.add("pagination_dots", 21, 21, "<g>" +
56883
+ "<circle cx=\"2\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
56884
+ "<circle cx=\"10.5\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
56885
+ "<circle cx=\"19\" cy=\"15\" r=\"1.1\" fill=\"#fff\" stroke=\"none\" />" +
56886
+ "</g>");
56887
+ /* eslint-enable prettier/prettier */
56888
+ var DThemeDarkPaginationDots = /** @class */ (function (_super) {
56889
+ __extends(DThemeDarkPaginationDots, _super);
56890
+ function DThemeDarkPaginationDots() {
56733
56891
  return _super !== null && _super.apply(this, arguments) || this;
56734
56892
  }
56735
- DThemeDarkPaginationDotsButton.prototype.getBackgroundColor = function (state) {
56736
- return null;
56893
+ DThemeDarkPaginationDots.prototype.getWidth = function () {
56894
+ return 30;
56737
56895
  };
56738
- DThemeDarkPaginationDotsButton.prototype.getBorderColor = function (state) {
56739
- return null;
56896
+ DThemeDarkPaginationDots.prototype.getHeight = function () {
56897
+ return 30;
56898
+ };
56899
+ DThemeDarkPaginationDots.prototype.newState = function (state) {
56900
+ _super.prototype.newState.call(this, state);
56901
+ state.isFocusable = false;
56902
+ };
56903
+ DThemeDarkPaginationDots.prototype.getImageSource = function (state) {
56904
+ return DThemeDarkAtlas.mappings.pagination_dots;
56905
+ };
56906
+ return DThemeDarkPaginationDots;
56907
+ }(DThemeDarkImageBase));
56908
+
56909
+ /*
56910
+ * Copyright (C) 2019 Toshiba Corporation
56911
+ * SPDX-License-Identifier: Apache-2.0
56912
+ */
56913
+ /* eslint-disable prettier/prettier */
56914
+ DThemeDarkAtlas.add("pagination_button_last", 21, 21, "<g>" +
56915
+ "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
56916
+ "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
56917
+ "</g>");
56918
+ /* eslint-enable prettier/prettier */
56919
+ var DThemeDarkPaginationButtonLast = /** @class */ (function (_super) {
56920
+ __extends(DThemeDarkPaginationButtonLast, _super);
56921
+ function DThemeDarkPaginationButtonLast() {
56922
+ return _super !== null && _super.apply(this, arguments) || this;
56923
+ }
56924
+ DThemeDarkPaginationButtonLast.prototype.getWidth = function () {
56925
+ return 30;
56740
56926
  };
56741
- DThemeDarkPaginationDotsButton.prototype.newTextValue = function () {
56742
- return "...";
56927
+ DThemeDarkPaginationButtonLast.prototype.getImageSource = function (state) {
56928
+ return DThemeDarkAtlas.mappings.pagination_button_last;
56743
56929
  };
56744
- return DThemeDarkPaginationDotsButton;
56930
+ return DThemeDarkPaginationButtonLast;
56745
56931
  }(DThemeDarkButtonAmbient));
56746
56932
 
56747
56933
  /*
56748
56934
  * Copyright (C) 2019 Toshiba Corporation
56749
56935
  * SPDX-License-Identifier: Apache-2.0
56750
56936
  */
56751
- var DThemeDarkPaginationDynamicButtons = /** @class */ (function (_super) {
56752
- __extends(DThemeDarkPaginationDynamicButtons, _super);
56753
- function DThemeDarkPaginationDynamicButtons() {
56937
+ /* eslint-disable prettier/prettier */
56938
+ DThemeDarkAtlas.add("pagination_button_next", 21, 21, "<g>" +
56939
+ "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"7 15 13 10 7 5\"></polyline>" +
56940
+ "</g>");
56941
+ /* eslint-enable prettier/prettier */
56942
+ var DThemeDarkPaginationButtonNext = /** @class */ (function (_super) {
56943
+ __extends(DThemeDarkPaginationButtonNext, _super);
56944
+ function DThemeDarkPaginationButtonNext() {
56754
56945
  return _super !== null && _super.apply(this, arguments) || this;
56755
56946
  }
56756
- DThemeDarkPaginationDynamicButtons.prototype.getWidth = function () {
56757
- return "auto";
56947
+ DThemeDarkPaginationButtonNext.prototype.getWidth = function () {
56948
+ return 30;
56758
56949
  };
56759
- return DThemeDarkPaginationDynamicButtons;
56760
- }(DThemeDarkLayoutHorizontal));
56950
+ DThemeDarkPaginationButtonNext.prototype.getImageSource = function (state) {
56951
+ return DThemeDarkAtlas.mappings.pagination_button_next;
56952
+ };
56953
+ return DThemeDarkPaginationButtonNext;
56954
+ }(DThemeDarkButtonAmbient));
56955
+
56956
+ /*
56957
+ * Copyright (C) 2019 Toshiba Corporation
56958
+ * SPDX-License-Identifier: Apache-2.0
56959
+ */
56960
+ var DThemeDarkPaginationButtonPage = /** @class */ (function (_super) {
56961
+ __extends(DThemeDarkPaginationButtonPage, _super);
56962
+ function DThemeDarkPaginationButtonPage() {
56963
+ return _super !== null && _super.apply(this, arguments) || this;
56964
+ }
56965
+ DThemeDarkPaginationButtonPage.prototype.getWidth = function () {
56966
+ return 30;
56967
+ };
56968
+ DThemeDarkPaginationButtonPage.prototype.newTextValue = function () {
56969
+ return 0;
56970
+ };
56971
+ DThemeDarkPaginationButtonPage.prototype.getTextStyleClipping = function () {
56972
+ return false;
56973
+ };
56974
+ return DThemeDarkPaginationButtonPage;
56975
+ }(DThemeDarkButtonAmbient));
56761
56976
 
56762
56977
  /*
56763
56978
  * Copyright (C) 2019 Toshiba Corporation
56764
56979
  * SPDX-License-Identifier: Apache-2.0
56765
56980
  */
56766
56981
  /* eslint-disable prettier/prettier */
56767
- DThemeDarkAtlas.add("pagination_navigation_button_previous", 21, 21, "<g>" +
56982
+ DThemeDarkAtlas.add("pagination_button_previous", 21, 21, "<g>" +
56768
56983
  "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"13 15 7 10 13 5\"></polyline>" +
56769
56984
  "</g>");
56770
- DThemeDarkAtlas.add("pagination_navigation_button_next", 21, 21, "<g>" +
56771
- "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"7 15 13 10 7 5\"></polyline>" +
56772
- "</g>");
56773
- DThemeDarkAtlas.add("pagination_navigation_button_go_first", 21, 21, "<g>" +
56985
+ /* eslint-enable prettier/prettier */
56986
+ var DThemeDarkPaginationButtonPrevious = /** @class */ (function (_super) {
56987
+ __extends(DThemeDarkPaginationButtonPrevious, _super);
56988
+ function DThemeDarkPaginationButtonPrevious() {
56989
+ return _super !== null && _super.apply(this, arguments) || this;
56990
+ }
56991
+ DThemeDarkPaginationButtonPrevious.prototype.getWidth = function () {
56992
+ return 30;
56993
+ };
56994
+ DThemeDarkPaginationButtonPrevious.prototype.getImageSource = function (state) {
56995
+ return DThemeDarkAtlas.mappings.pagination_button_previous;
56996
+ };
56997
+ return DThemeDarkPaginationButtonPrevious;
56998
+ }(DThemeDarkButtonAmbient));
56999
+
57000
+ /*
57001
+ * Copyright (C) 2019 Toshiba Corporation
57002
+ * SPDX-License-Identifier: Apache-2.0
57003
+ */
57004
+ /* eslint-disable prettier/prettier */
57005
+ DThemeDarkAtlas.add("pagination_button_top", 21, 21, "<g>" +
56774
57006
  "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"11 15 5 10 11 5\"></polyline>" +
56775
57007
  "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"15 15 9 10 15 5\"></polyline>" +
56776
57008
  "</g>");
56777
- DThemeDarkAtlas.add("pagination_navigation_button_go_last", 21, 21, "<g>" +
56778
- "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"9 15 15 10 9 5\"></polyline>" +
56779
- "<polyline fill=\"none\" stroke=\"#fff\" stroke-width=\"1\" points=\"5 15 11 10 5 5\"></polyline>" +
56780
- "</g>");
56781
57009
  /* eslint-enable prettier/prettier */
56782
- var DThemeDarkPaginationNavigationButton = /** @class */ (function (_super) {
56783
- __extends(DThemeDarkPaginationNavigationButton, _super);
56784
- function DThemeDarkPaginationNavigationButton() {
57010
+ var DThemeDarkPaginationButtonTop = /** @class */ (function (_super) {
57011
+ __extends(DThemeDarkPaginationButtonTop, _super);
57012
+ function DThemeDarkPaginationButtonTop() {
56785
57013
  return _super !== null && _super.apply(this, arguments) || this;
56786
57014
  }
56787
- return DThemeDarkPaginationNavigationButton;
57015
+ DThemeDarkPaginationButtonTop.prototype.getWidth = function () {
57016
+ return 30;
57017
+ };
57018
+ DThemeDarkPaginationButtonTop.prototype.getImageSource = function (state) {
57019
+ return DThemeDarkAtlas.mappings.pagination_button_top;
57020
+ };
57021
+ return DThemeDarkPaginationButtonTop;
56788
57022
  }(DThemeDarkButtonAmbient));
56789
57023
 
57024
+ /*
57025
+ * Copyright (C) 2019 Toshiba Corporation
57026
+ * SPDX-License-Identifier: Apache-2.0
57027
+ */
57028
+ var DThemeDarkPaginationPage = /** @class */ (function (_super) {
57029
+ __extends(DThemeDarkPaginationPage, _super);
57030
+ function DThemeDarkPaginationPage() {
57031
+ return _super !== null && _super.apply(this, arguments) || this;
57032
+ }
57033
+ DThemeDarkPaginationPage.prototype.getBackgroundColor = function (state) {
57034
+ return DThemeDarkConstants.HIGHLIGHT_COLOR;
57035
+ };
57036
+ DThemeDarkPaginationPage.prototype.getColor = function (state) {
57037
+ return DThemeDarkConstants.ACTIVE_COLOR;
57038
+ };
57039
+ DThemeDarkPaginationPage.prototype.getWidth = function () {
57040
+ return 30;
57041
+ };
57042
+ DThemeDarkPaginationPage.prototype.getHeight = function () {
57043
+ return 30;
57044
+ };
57045
+ DThemeDarkPaginationPage.prototype.getTextStyleClipping = function () {
57046
+ return false;
57047
+ };
57048
+ DThemeDarkPaginationPage.prototype.getTextAlignHorizontal = function () {
57049
+ return DAlignHorizontal.CENTER;
57050
+ };
57051
+ return DThemeDarkPaginationPage;
57052
+ }(DThemeDarkImageBase));
57053
+
56790
57054
  /*
56791
57055
  * Copyright (C) 2019 Toshiba Corporation
56792
57056
  * SPDX-License-Identifier: Apache-2.0
56793
57057
  */
56794
57058
  var loadThemeDarkPagination = function () {
56795
57059
  DThemeDark.set("DPagination", DThemeDarkPagination);
56796
- DThemeDark.set("DPaginationNavigationButton", DThemeDarkPaginationNavigationButton);
56797
- DThemeDark.set("DPaginationDynamicButtons", DThemeDarkPaginationDynamicButtons);
56798
- DThemeDark.set("DPaginationDotsButton", DThemeDarkPaginationDotsButton);
57060
+ DThemeDark.set("DPaginationPage", DThemeDarkPaginationPage);
57061
+ DThemeDark.set("DPaginationDots", DThemeDarkPaginationDots);
57062
+ DThemeDark.set("DPaginationButtonLast", DThemeDarkPaginationButtonLast);
57063
+ DThemeDark.set("DPaginationButtonNext", DThemeDarkPaginationButtonNext);
57064
+ DThemeDark.set("DPaginationButtonPage", DThemeDarkPaginationButtonPage);
57065
+ DThemeDark.set("DPaginationButtonPrevious", DThemeDarkPaginationButtonPrevious);
57066
+ DThemeDark.set("DPaginationButtonTop", DThemeDarkPaginationButtonTop);
56799
57067
  };
56800
57068
 
56801
57069
  /*
@@ -75990,370 +76258,607 @@ var DNotification = /** @class */ (function (_super) {
75990
76258
  * Copyright (C) 2019 Toshiba Corporation
75991
76259
  * SPDX-License-Identifier: Apache-2.0
75992
76260
  */
75993
- var DPaginationDotsButton = /** @class */ (function (_super) {
75994
- __extends(DPaginationDotsButton, _super);
75995
- function DPaginationDotsButton() {
76261
+ var DPaginationButtonLast = /** @class */ (function (_super) {
76262
+ __extends(DPaginationButtonLast, _super);
76263
+ function DPaginationButtonLast() {
75996
76264
  return _super !== null && _super.apply(this, arguments) || this;
75997
76265
  }
75998
- DPaginationDotsButton.prototype.getType = function () {
75999
- return "DPaginationDotsButton";
76266
+ DPaginationButtonLast.prototype.getType = function () {
76267
+ return "DPaginationButtonLast";
76000
76268
  };
76001
- return DPaginationDotsButton;
76269
+ return DPaginationButtonLast;
76002
76270
  }(DButtonAmbient));
76003
76271
 
76004
76272
  /*
76005
76273
  * Copyright (C) 2019 Toshiba Corporation
76006
76274
  * SPDX-License-Identifier: Apache-2.0
76007
76275
  */
76008
- var DPaginationDynamicButtons = /** @class */ (function (_super) {
76009
- __extends(DPaginationDynamicButtons, _super);
76010
- function DPaginationDynamicButtons() {
76276
+ var DPaginationButtonNext = /** @class */ (function (_super) {
76277
+ __extends(DPaginationButtonNext, _super);
76278
+ function DPaginationButtonNext() {
76011
76279
  return _super !== null && _super.apply(this, arguments) || this;
76012
76280
  }
76013
- DPaginationDynamicButtons.prototype.init = function (options) {
76014
- _super.prototype.init.call(this, options);
76015
- this._dotsBtnLeft = new DPaginationDotsButton({
76016
- width: options.button.width,
76017
- visible: !!options.button.dotsLeft
76018
- });
76019
- this._dotsBtnRight = new DPaginationDotsButton({
76020
- width: options.button.width,
76021
- visible: !!options.button.dotsRight
76022
- });
76023
- this.addChild(this._dotsBtnLeft);
76024
- this.addChild(this._dotsBtnRight);
76281
+ DPaginationButtonNext.prototype.getType = function () {
76282
+ return "DPaginationButtonNext";
76025
76283
  };
76026
- DPaginationDynamicButtons.prototype.update = function (options) {
76027
- var _this = this;
76028
- if (options.start == null || options.end == null) {
76029
- return;
76030
- }
76031
- var btnsCount = options.end - options.start + 1 > 0 ? options.end - options.start + 1 : 0;
76032
- var pageButtons = this.children.slice(1, this.children.length - 1);
76033
- if (pageButtons.length < btnsCount) {
76034
- for (var i = pageButtons.length; i < btnsCount; i++) {
76035
- var btn = new DButton({
76036
- width: options.button.width
76037
- });
76038
- this.addChildAt(btn, this.children.length - 1);
76039
- btn.on("active", function (clickedBtn) {
76040
- _this.emit("active", clickedBtn);
76041
- });
76042
- }
76043
- // re-new "pageButtons" after add new buttons
76044
- pageButtons = this.children.slice(1, this.children.length - 1);
76045
- }
76046
- else if (pageButtons.length > btnsCount) {
76047
- for (var i = btnsCount; i < pageButtons.length; i++) {
76048
- pageButtons[i].hide();
76049
- }
76050
- }
76051
- // update button text and active state
76052
- for (var i = 0; i < btnsCount; i++) {
76053
- var btn = pageButtons[i];
76054
- btn.text = options.start + i + 1;
76055
- btn.state.isActive = options.start + i === options.selected;
76056
- if (btn.isHidden()) {
76057
- btn.show();
76058
- }
76059
- }
76060
- // update visible state of dots buttons
76061
- if (options.button.dotsLeft) {
76062
- this._dotsBtnLeft.show();
76063
- }
76064
- else {
76065
- this._dotsBtnLeft.hide();
76066
- }
76067
- if (options.button.dotsRight) {
76068
- this._dotsBtnRight.show();
76069
- }
76070
- else {
76071
- this._dotsBtnRight.hide();
76072
- }
76284
+ return DPaginationButtonNext;
76285
+ }(DButtonAmbient));
76286
+
76287
+ /*
76288
+ * Copyright (C) 2019 Toshiba Corporation
76289
+ * SPDX-License-Identifier: Apache-2.0
76290
+ */
76291
+ var DPaginationButtonPage = /** @class */ (function (_super) {
76292
+ __extends(DPaginationButtonPage, _super);
76293
+ function DPaginationButtonPage() {
76294
+ return _super !== null && _super.apply(this, arguments) || this;
76295
+ }
76296
+ DPaginationButtonPage.prototype.getType = function () {
76297
+ return "DPaginationButtonPage";
76073
76298
  };
76074
- DPaginationDynamicButtons.prototype.getType = function () {
76075
- return "DPaginationDynamicButtons";
76299
+ return DPaginationButtonPage;
76300
+ }(DButtonAmbient));
76301
+
76302
+ /*
76303
+ * Copyright (C) 2019 Toshiba Corporation
76304
+ * SPDX-License-Identifier: Apache-2.0
76305
+ */
76306
+ var DPaginationButtonPrevious = /** @class */ (function (_super) {
76307
+ __extends(DPaginationButtonPrevious, _super);
76308
+ function DPaginationButtonPrevious() {
76309
+ return _super !== null && _super.apply(this, arguments) || this;
76310
+ }
76311
+ DPaginationButtonPrevious.prototype.getType = function () {
76312
+ return "DPaginationButtonPrevious";
76076
76313
  };
76077
- return DPaginationDynamicButtons;
76078
- }(DLayoutHorizontal));
76314
+ return DPaginationButtonPrevious;
76315
+ }(DButtonAmbient));
76079
76316
 
76080
76317
  /*
76081
76318
  * Copyright (C) 2019 Toshiba Corporation
76082
76319
  * SPDX-License-Identifier: Apache-2.0
76083
76320
  */
76084
- var DPaginationNavigationButton = /** @class */ (function (_super) {
76085
- __extends(DPaginationNavigationButton, _super);
76086
- function DPaginationNavigationButton() {
76321
+ var DPaginationButtonTop = /** @class */ (function (_super) {
76322
+ __extends(DPaginationButtonTop, _super);
76323
+ function DPaginationButtonTop() {
76087
76324
  return _super !== null && _super.apply(this, arguments) || this;
76088
76325
  }
76089
- DPaginationNavigationButton.prototype.getType = function () {
76090
- return "DPaginationNavigationButton";
76326
+ DPaginationButtonTop.prototype.getType = function () {
76327
+ return "DPaginationButtonTop";
76091
76328
  };
76092
- return DPaginationNavigationButton;
76329
+ return DPaginationButtonTop;
76093
76330
  }(DButtonAmbient));
76094
76331
 
76332
+ /*
76333
+ * Copyright (C) 2019 Toshiba Corporation
76334
+ * SPDX-License-Identifier: Apache-2.0
76335
+ */
76336
+ var DPaginationDots = /** @class */ (function (_super) {
76337
+ __extends(DPaginationDots, _super);
76338
+ function DPaginationDots() {
76339
+ return _super !== null && _super.apply(this, arguments) || this;
76340
+ }
76341
+ DPaginationDots.prototype.getType = function () {
76342
+ return "DPaginationDots";
76343
+ };
76344
+ return DPaginationDots;
76345
+ }(DImageBase));
76346
+
76347
+ /*
76348
+ * Copyright (C) 2019 Toshiba Corporation
76349
+ * SPDX-License-Identifier: Apache-2.0
76350
+ */
76351
+ var DPaginationPage = /** @class */ (function (_super) {
76352
+ __extends(DPaginationPage, _super);
76353
+ function DPaginationPage() {
76354
+ return _super !== null && _super.apply(this, arguments) || this;
76355
+ }
76356
+ DPaginationPage.prototype.getType = function () {
76357
+ return "DPaginationPage";
76358
+ };
76359
+ return DPaginationPage;
76360
+ }(DImageBase));
76361
+
76095
76362
  /*
76096
76363
  * Copyright (C) 2019 Toshiba Corporation
76097
76364
  * SPDX-License-Identifier: Apache-2.0
76098
76365
  */
76099
76366
  var DPagination = /** @class */ (function (_super) {
76100
76367
  __extends(DPagination, _super);
76101
- function DPagination() {
76102
- return _super !== null && _super.apply(this, arguments) || this;
76368
+ function DPagination(options) {
76369
+ var _a, _b, _c, _d;
76370
+ var _this = _super.call(this, options) || this;
76371
+ if (options != null) {
76372
+ _this._size = (_b = (_a = options.size) !== null && _a !== void 0 ? _a : options.total) !== null && _b !== void 0 ? _b : 10;
76373
+ _this._value = (_d = (_c = options.value) !== null && _c !== void 0 ? _c : options.selected) !== null && _d !== void 0 ? _d : 0;
76374
+ }
76375
+ else {
76376
+ _this._size = 10;
76377
+ _this._value = 0;
76378
+ }
76379
+ var buttonTop = _this.buttonTop;
76380
+ var buttonPrevious = _this.buttonPrevious;
76381
+ if (buttonTop != null) {
76382
+ _this.addChild(buttonTop);
76383
+ }
76384
+ if (buttonPrevious != null) {
76385
+ _this.addChild(buttonPrevious);
76386
+ }
76387
+ if (buttonTop != null || buttonPrevious != null) {
76388
+ _this.addChild(_this.newSpace());
76389
+ }
76390
+ var buttonPages0 = _this.buttonPages0;
76391
+ var buttonPages0Length = buttonPages0.length;
76392
+ _this.addChild(buttonPages0[buttonPages0Length - 1]);
76393
+ _this.addChild(_this.dots0);
76394
+ for (var i = buttonPages0Length - 2; 0 <= i; --i) {
76395
+ _this.addChild(buttonPages0[i]);
76396
+ }
76397
+ _this.addChild(_this.page);
76398
+ var buttonPages1 = _this.buttonPages1;
76399
+ var buttonPages1Length = buttonPages1.length;
76400
+ for (var i = 0, imax = buttonPages1Length - 1; i < imax; ++i) {
76401
+ _this.addChild(buttonPages1[i]);
76402
+ }
76403
+ _this.addChild(_this.dots1);
76404
+ _this.addChild(buttonPages1[buttonPages1Length - 1]);
76405
+ var buttonNext = _this.buttonNext;
76406
+ var buttonLast = _this.buttonLast;
76407
+ if (buttonNext != null || buttonLast != null) {
76408
+ _this.addChild(_this.newSpace());
76409
+ }
76410
+ if (buttonNext != null) {
76411
+ _this.addChild(buttonNext);
76412
+ }
76413
+ if (buttonLast != null) {
76414
+ _this.addChild(buttonLast);
76415
+ }
76416
+ _this.update();
76417
+ return _this;
76103
76418
  }
76104
- DPagination.prototype.init = function (options) {
76105
- var _this = this;
76106
- var _a;
76107
- _super.prototype.init.call(this, options);
76108
- this.DEFAULT_SELECTED = 0; // set default selected index page is page 0
76109
- // get total pages
76110
- this._total = options.total;
76111
- // get selected page
76112
- this._selected = (_a = options.selected) !== null && _a !== void 0 ? _a : this.DEFAULT_SELECTED;
76113
- // get button options
76114
- var button = options.button;
76115
- this._buttonOptions = {
76116
- first: !!(button === null || button === void 0 ? void 0 : button.first),
76117
- last: !!(button === null || button === void 0 ? void 0 : button.last),
76118
- width: button === null || button === void 0 ? void 0 : button.width
76119
- };
76120
- this.initButtons(this.getButtonWidth());
76121
- this.listenButtonClicked();
76122
- this.on("resize", function () {
76123
- _this._numberPageButtonVisible = _this.toNumberVisible();
76124
- _this.update();
76419
+ DPagination.prototype.newSpace = function () {
76420
+ var _a, _b, _c;
76421
+ return new DLayoutSpace({
76422
+ width: (_c = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.space) !== null && _c !== void 0 ? _c : this.theme.getButtonSpace()
76125
76423
  });
76126
76424
  };
76425
+ Object.defineProperty(DPagination.prototype, "value", {
76426
+ /**
76427
+ * Returns a value that is an index of a current page.
76428
+ *
76429
+ * @returns a value that is an index of a selected page.
76430
+ */
76431
+ get: function () {
76432
+ return this._value;
76433
+ },
76434
+ /**
76435
+ * Sets a value that is an index of a current page.
76436
+ *
76437
+ * @param value a value that is an index of a page
76438
+ */
76439
+ set: function (value) {
76440
+ if (0 <= value && value < this._size && this._value !== value) {
76441
+ this._value = value;
76442
+ this.update();
76443
+ }
76444
+ },
76445
+ enumerable: false,
76446
+ configurable: true
76447
+ });
76127
76448
  Object.defineProperty(DPagination.prototype, "selected", {
76128
76449
  /**
76129
- * Get selected page.
76450
+ * Returns an index of the selected page.
76130
76451
  *
76131
- * @returns index of selected page.
76452
+ * @returns an index of the selected page.
76453
+ * @deprecated in favor of {@link value}.
76132
76454
  */
76133
76455
  get: function () {
76134
- return this._selected;
76456
+ return this.value;
76135
76457
  },
76136
76458
  /**
76137
- * Set selected page.
76459
+ * Selects a page.
76138
76460
  *
76139
- * @param selected page's index want to select.
76461
+ * @param index an index of a page
76462
+ * @deprecated in favor of {@link #value}.
76140
76463
  */
76141
- set: function (selected) {
76142
- if (selected < 0 || selected >= this._total || !Number.isInteger(selected)) {
76143
- selected = this.DEFAULT_SELECTED;
76464
+ set: function (index) {
76465
+ this.value = index;
76466
+ },
76467
+ enumerable: false,
76468
+ configurable: true
76469
+ });
76470
+ Object.defineProperty(DPagination.prototype, "size", {
76471
+ /**
76472
+ * Returns a number of total pages.
76473
+ *
76474
+ * @returns a number of total pages.
76475
+ */
76476
+ get: function () {
76477
+ return this._size;
76478
+ },
76479
+ /**
76480
+ * Sets a number of total pages.
76481
+ *
76482
+ * @param size a number of pages
76483
+ */
76484
+ set: function (size) {
76485
+ if (0 <= size && this._size !== size) {
76486
+ this._size = size;
76487
+ if (size === 0) {
76488
+ this._value = -1;
76489
+ }
76490
+ else {
76491
+ this._value = Math.max(0, Math.min(this._size - 1, this._value));
76492
+ }
76493
+ this.update();
76144
76494
  }
76145
- this._selected = selected;
76146
- this.update();
76147
76495
  },
76148
76496
  enumerable: false,
76149
76497
  configurable: true
76150
76498
  });
76151
76499
  Object.defineProperty(DPagination.prototype, "total", {
76152
76500
  /**
76153
- * Get total pages.
76501
+ * Returns a number of total pages.
76154
76502
  *
76155
- * @returns number of total pages.
76503
+ * @returns a number of total pages.
76504
+ * @deprecated in favor of {@link size}
76156
76505
  */
76157
76506
  get: function () {
76158
- return this._total;
76507
+ return this.size;
76159
76508
  },
76160
76509
  /**
76161
- * Set total page.
76510
+ * Sets a number of total pages.
76162
76511
  *
76163
- * @param total number of page want to present in pagination.
76512
+ * @param total a number of pages
76513
+ * @deprecated in favor of {@link size}
76164
76514
  */
76165
76515
  set: function (total) {
76166
- if (total >= 0 && Number.isInteger(total)) {
76167
- this._total = total;
76168
- this._numberPageButtonVisible = this.toNumberVisible();
76169
- this.selected = this._selected;
76170
- this._lastPageBtn.text = this._total;
76171
- this.update();
76516
+ this.size = total;
76517
+ },
76518
+ enumerable: false,
76519
+ configurable: true
76520
+ });
76521
+ Object.defineProperty(DPagination.prototype, "dots0", {
76522
+ get: function () {
76523
+ var result = this._dots0;
76524
+ if (result == null) {
76525
+ result = this.newDots();
76526
+ this._dots0 = result;
76172
76527
  }
76528
+ return result;
76173
76529
  },
76174
76530
  enumerable: false,
76175
76531
  configurable: true
76176
76532
  });
76177
- DPagination.prototype.initButtons = function (width) {
76178
- this._previousBtn = new DPaginationNavigationButton({
76179
- width: width,
76180
- image: {
76181
- source: DThemes.getInstance().getAtlas().mappings
76182
- .pagination_navigation_button_previous
76533
+ Object.defineProperty(DPagination.prototype, "dots1", {
76534
+ get: function () {
76535
+ var result = this._dots1;
76536
+ if (result == null) {
76537
+ result = this.newDots();
76538
+ this._dots1 = result;
76183
76539
  }
76184
- });
76185
- this._nextBtn = new DPaginationNavigationButton({
76186
- width: width,
76187
- image: {
76188
- source: DThemes.getInstance().getAtlas().mappings.pagination_navigation_button_next
76540
+ return result;
76541
+ },
76542
+ enumerable: false,
76543
+ configurable: true
76544
+ });
76545
+ DPagination.prototype.newDots = function () {
76546
+ return new DPaginationDots();
76547
+ };
76548
+ Object.defineProperty(DPagination.prototype, "buttonLast", {
76549
+ get: function () {
76550
+ var result = this._buttonLast;
76551
+ if (result === undefined) {
76552
+ result = this.newButtonLast();
76553
+ this._buttonLast = result;
76189
76554
  }
76190
- });
76191
- this._goFirstBtn = new DPaginationNavigationButton({
76192
- width: width,
76193
- image: {
76194
- source: DThemes.getInstance().getAtlas().mappings
76195
- .pagination_navigation_button_go_first
76196
- },
76197
- visible: this._buttonOptions.first
76198
- });
76199
- this._goLastBtn = new DPaginationNavigationButton({
76200
- width: width,
76201
- image: {
76202
- source: DThemes.getInstance().getAtlas().mappings
76203
- .pagination_navigation_button_go_last
76204
- },
76205
- visible: this._buttonOptions.last
76206
- });
76207
- this._dynamicPageBtns = new DPaginationDynamicButtons({
76208
- button: {
76209
- width: width
76555
+ return result;
76556
+ },
76557
+ enumerable: false,
76558
+ configurable: true
76559
+ });
76560
+ DPagination.prototype.newButtonLast = function () {
76561
+ var _this = this;
76562
+ var _a, _b;
76563
+ var last = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.last;
76564
+ if (last !== null && last !== false && last !== undefined) {
76565
+ var result = new DPaginationButtonLast(last !== true ? last : undefined);
76566
+ result.on("active", function () {
76567
+ _this.onButtonLastActive();
76568
+ });
76569
+ return result;
76570
+ }
76571
+ return null;
76572
+ };
76573
+ DPagination.prototype.onButtonLastActive = function () {
76574
+ this.moveTo(this._size - 1);
76575
+ };
76576
+ DPagination.prototype.moveTo = function (index) {
76577
+ if (0 <= index && index < this._size && this._value !== index) {
76578
+ var oldIndex = this._value;
76579
+ this._value = index;
76580
+ this.emit("change", index, oldIndex, this);
76581
+ this.update();
76582
+ }
76583
+ };
76584
+ Object.defineProperty(DPagination.prototype, "buttonNext", {
76585
+ get: function () {
76586
+ var result = this._buttonNext;
76587
+ if (result === undefined) {
76588
+ result = this.newButtonNext();
76589
+ this._buttonNext = result;
76210
76590
  }
76211
- });
76212
- this._firstPageBtn = new DButton({
76213
- width: width,
76214
- text: {
76215
- value: 1
76591
+ return result;
76592
+ },
76593
+ enumerable: false,
76594
+ configurable: true
76595
+ });
76596
+ DPagination.prototype.newButtonNext = function () {
76597
+ var _this = this;
76598
+ var _a, _b;
76599
+ var next = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.next;
76600
+ if (next !== null && next !== false) {
76601
+ var result = new DPaginationButtonNext(next !== true ? next : undefined);
76602
+ result.on("active", function () {
76603
+ _this.onButtonNextActive();
76604
+ });
76605
+ return result;
76606
+ }
76607
+ return null;
76608
+ };
76609
+ DPagination.prototype.onButtonNextActive = function () {
76610
+ this.moveTo(this._value + 1);
76611
+ };
76612
+ Object.defineProperty(DPagination.prototype, "buttonPrevious", {
76613
+ get: function () {
76614
+ var result = this._buttonPrevious;
76615
+ if (result === undefined) {
76616
+ result = this.newButtonPrevious();
76617
+ this._buttonPrevious = result;
76216
76618
  }
76217
- });
76218
- this._lastPageBtn = new DButton({
76219
- width: width,
76220
- text: {
76221
- value: this._total
76619
+ return result;
76620
+ },
76621
+ enumerable: false,
76622
+ configurable: true
76623
+ });
76624
+ DPagination.prototype.newButtonPrevious = function () {
76625
+ var _this = this;
76626
+ var _a, _b;
76627
+ var previous = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.previous;
76628
+ if (previous !== null && previous !== false) {
76629
+ var result = new DPaginationButtonPrevious(previous !== true ? previous : undefined);
76630
+ result.on("active", function () {
76631
+ _this.onButtonPreviousActive();
76632
+ });
76633
+ return result;
76634
+ }
76635
+ return null;
76636
+ };
76637
+ DPagination.prototype.onButtonPreviousActive = function () {
76638
+ this.moveTo(this._value - 1);
76639
+ };
76640
+ Object.defineProperty(DPagination.prototype, "buttonTop", {
76641
+ get: function () {
76642
+ var result = this._buttonTop;
76643
+ if (result === undefined) {
76644
+ result = this.newButtonTop();
76645
+ this._buttonTop = result;
76222
76646
  }
76223
- });
76224
- this.addChild(this._goFirstBtn);
76225
- this.addChild(this._previousBtn);
76226
- this.addChild(this._firstPageBtn);
76227
- this.addChild(this._dynamicPageBtns);
76228
- this.addChild(this._lastPageBtn);
76229
- this.addChild(this._nextBtn);
76230
- this.addChild(this._goLastBtn);
76231
- };
76232
- DPagination.prototype.listenButtonClicked = function () {
76647
+ return result;
76648
+ },
76649
+ enumerable: false,
76650
+ configurable: true
76651
+ });
76652
+ DPagination.prototype.newButtonTop = function () {
76233
76653
  var _this = this;
76234
- this._firstPageBtn.on("active", function (btn) {
76235
- _this.onClickPageButton(btn);
76236
- });
76237
- this._lastPageBtn.on("active", function (btn) {
76238
- _this.onClickPageButton(btn);
76239
- });
76240
- this._dynamicPageBtns.on("active", function (btn) {
76241
- _this.onClickPageButton(btn);
76242
- });
76243
- this._goFirstBtn.on("active", function (btn) {
76244
- _this.selected = _this.DEFAULT_SELECTED;
76245
- });
76246
- this._goLastBtn.on("active", function (btn) {
76247
- _this.selected = _this._total - 1;
76654
+ var _a, _b;
76655
+ var top = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.top;
76656
+ if (top !== null && top !== false && top !== undefined) {
76657
+ var result = new DPaginationButtonTop(top !== true ? top : undefined);
76658
+ result.on("active", function () {
76659
+ _this.onButtonTopActive();
76660
+ });
76661
+ return result;
76662
+ }
76663
+ return null;
76664
+ };
76665
+ DPagination.prototype.onButtonTopActive = function () {
76666
+ this.moveTo(0);
76667
+ };
76668
+ DPagination.prototype.newButtonPage = function () {
76669
+ var _this = this;
76670
+ var _a, _b;
76671
+ var result = new DPaginationButtonPage((_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.button) === null || _b === void 0 ? void 0 : _b.page);
76672
+ result.on("active", function () {
76673
+ _this.onButtonPageActive(result);
76248
76674
  });
76249
- this._nextBtn.on("active", function (btn) {
76250
- if (_this.selected !== _this._total + 1) {
76251
- _this.selected = _this._selected + 1;
76675
+ return result;
76676
+ };
76677
+ Object.defineProperty(DPagination.prototype, "buttonPages0", {
76678
+ get: function () {
76679
+ var result = this._buttonPages0;
76680
+ if (result == null) {
76681
+ result = this.newButtonPages0();
76682
+ this._buttonPages0 = result;
76252
76683
  }
76253
- });
76254
- this._previousBtn.on("active", function (btn) {
76255
- if (_this._selected !== 0) {
76256
- _this.selected = _this._selected - 1;
76684
+ return result;
76685
+ },
76686
+ enumerable: false,
76687
+ configurable: true
76688
+ });
76689
+ DPagination.prototype.newButtonPages0 = function () {
76690
+ return [
76691
+ this.newButtonPage(),
76692
+ this.newButtonPage(),
76693
+ this.newButtonPage(),
76694
+ this.newButtonPage()
76695
+ ];
76696
+ };
76697
+ Object.defineProperty(DPagination.prototype, "buttonPages1", {
76698
+ get: function () {
76699
+ var result = this._buttonPages1;
76700
+ if (result == null) {
76701
+ result = this.newButtonPages1();
76702
+ this._buttonPages1 = result;
76257
76703
  }
76258
- });
76704
+ return result;
76705
+ },
76706
+ enumerable: false,
76707
+ configurable: true
76708
+ });
76709
+ DPagination.prototype.newButtonPages1 = function () {
76710
+ return [
76711
+ this.newButtonPage(),
76712
+ this.newButtonPage(),
76713
+ this.newButtonPage(),
76714
+ this.newButtonPage()
76715
+ ];
76259
76716
  };
76260
- DPagination.prototype.update = function () {
76261
- var startDynamic;
76262
- var endDynamic;
76263
- var dotsLeft;
76264
- var dotsRight;
76265
- var numberButtonsInLeft = 0;
76266
- var numberButtonsInRight = 0;
76267
- this.updateStaticButtons();
76268
- // Number displayed buttons from first button to selected button when select center button of all buttons.
76269
- // Not including selected button.
76270
- var numberButtonsFirstToCenter = Math.ceil((this._numberPageButtonVisible - 1) * 0.5);
76271
- var numberButtonsCenterToEnd = Math.floor((this._numberPageButtonVisible - 1) * 0.5);
76272
- if (this._selected < numberButtonsFirstToCenter) {
76273
- numberButtonsInLeft = this._selected;
76274
- numberButtonsInRight = this._numberPageButtonVisible - numberButtonsInLeft - 1;
76275
- }
76276
- else if (this._selected + numberButtonsCenterToEnd > this._total - 1) {
76277
- numberButtonsInRight = this._total - 1 - this.selected;
76278
- numberButtonsInLeft = this._numberPageButtonVisible - numberButtonsInRight - 1;
76279
- }
76280
- else {
76281
- numberButtonsInLeft = numberButtonsFirstToCenter;
76282
- numberButtonsInRight = numberButtonsCenterToEnd;
76283
- }
76284
- if (this._selected <= numberButtonsInLeft) {
76285
- startDynamic = 1;
76286
- dotsLeft = false;
76287
- }
76288
- else {
76289
- startDynamic = this._selected - numberButtonsInLeft + 2;
76290
- dotsLeft = true;
76291
- }
76292
- if (this._selected + numberButtonsInRight >= this._total - 1) {
76293
- endDynamic = this._total - 2;
76294
- dotsRight = false;
76295
- }
76296
- else {
76297
- endDynamic = this._selected + numberButtonsInRight - 2;
76298
- dotsRight = true;
76299
- }
76300
- this._dynamicPageBtns.update({
76301
- start: startDynamic,
76302
- end: endDynamic,
76303
- selected: this._selected,
76304
- button: {
76305
- width: this.getButtonWidth(),
76306
- dotsLeft: dotsLeft,
76307
- dotsRight: dotsRight
76717
+ Object.defineProperty(DPagination.prototype, "page", {
76718
+ get: function () {
76719
+ var result = this._page;
76720
+ if (result == null) {
76721
+ result = this.newPage();
76722
+ this._page = result;
76308
76723
  }
76309
- });
76724
+ return result;
76725
+ },
76726
+ enumerable: false,
76727
+ configurable: true
76728
+ });
76729
+ DPagination.prototype.newPage = function () {
76730
+ var _a;
76731
+ return new DPaginationPage((_a = this._options) === null || _a === void 0 ? void 0 : _a.page);
76310
76732
  };
76311
- DPagination.prototype.updateStaticButtons = function () {
76312
- if (this._total > 0) {
76313
- this._firstPageBtn.show();
76314
- }
76315
- else {
76316
- this._firstPageBtn.hide();
76733
+ DPagination.prototype.onButtonPageActive = function (button) {
76734
+ var text = button.text;
76735
+ if (isNumber(text)) {
76736
+ this.moveTo(text - 1);
76737
+ if (button.state.isFocused) {
76738
+ button.state.isHovered = false;
76739
+ this.page.focus();
76740
+ }
76317
76741
  }
76318
- if (this._total > 1) {
76319
- this._lastPageBtn.show();
76742
+ };
76743
+ DPagination.prototype.update = function () {
76744
+ var size = this._size;
76745
+ var value = this._value;
76746
+ if (size <= 0) {
76747
+ var buttonTop = this.buttonTop;
76748
+ if (buttonTop != null) {
76749
+ buttonTop.state.isEnabled = false;
76750
+ }
76751
+ var buttonPrevious = this.buttonPrevious;
76752
+ if (buttonPrevious != null) {
76753
+ buttonPrevious.state.isEnabled = false;
76754
+ }
76755
+ this.dots0.hide();
76756
+ var buttonPages0 = this.buttonPages0;
76757
+ for (var i = 0, imax = buttonPages0.length; i < imax; ++i) {
76758
+ buttonPages0[i].hide();
76759
+ }
76760
+ this.page.hide();
76761
+ var buttonPages1 = this.buttonPages1;
76762
+ for (var i = 0, imax = buttonPages1.length; i < imax; ++i) {
76763
+ buttonPages1[i].hide();
76764
+ }
76765
+ this.dots1.hide();
76766
+ var buttonNext = this.buttonNext;
76767
+ if (buttonNext != null) {
76768
+ buttonNext.state.isEnabled = false;
76769
+ }
76770
+ var buttonLast = this.buttonLast;
76771
+ if (buttonLast) {
76772
+ buttonLast.state.isEnabled = false;
76773
+ }
76320
76774
  }
76321
76775
  else {
76322
- this._lastPageBtn.hide();
76323
- }
76324
- var isFirst = this._selected === this.DEFAULT_SELECTED;
76325
- var isLast = this._selected === this._total - 1 || this._total === 0;
76326
- this._firstPageBtn.state.isActive = isFirst;
76327
- this._lastPageBtn.state.isActive = isLast;
76328
- this._goFirstBtn.state.isDisabled = isFirst;
76329
- this._previousBtn.state.isDisabled = isFirst;
76330
- this._nextBtn.state.isDisabled = isLast;
76331
- this._goLastBtn.state.isDisabled = isLast;
76332
- };
76333
- DPagination.prototype.getButtonWidth = function () {
76334
- return this._buttonOptions.width ? this._buttonOptions.width : this.theme.getButtonWidth();
76335
- };
76336
- DPagination.prototype.toNumberVisible = function () {
76337
- var numberNavigationBtn = 2; // 2 buttons always displayed are "next" and "previous" button
76338
- if (this._buttonOptions.first) {
76339
- numberNavigationBtn++;
76340
- }
76341
- if (this._buttonOptions.last) {
76342
- numberNavigationBtn++;
76343
- }
76344
- var widthOfNavigationBtns = numberNavigationBtn * (this.getButtonWidth() + this._margin.horizontal * 2);
76345
- var widthOfPageBtns = this.width - widthOfNavigationBtns;
76346
- var numberVisible = Math.floor(widthOfPageBtns / (this.getButtonWidth() + this._margin.horizontal * 2));
76347
- /* set numberVisible is 5, if it less than 5
76348
- If total pages less than numberVisible, set numberVisible equal total pages
76349
- **/
76350
- return Math.min(this._total, Math.max(numberVisible, 5));
76351
- };
76352
- DPagination.prototype.onClickPageButton = function (btn) {
76353
- var btnIndex = Number(btn.text) - 1;
76354
- if (this._selected !== btnIndex) {
76355
- this._selected = btnIndex;
76356
- this.update();
76776
+ var from = value - 2;
76777
+ var to = value + 2;
76778
+ if (from < 0) {
76779
+ to = to - from;
76780
+ from = 0;
76781
+ }
76782
+ else if (size <= to) {
76783
+ var delta = to - size + 1;
76784
+ to -= delta;
76785
+ from -= delta;
76786
+ }
76787
+ var top_1 = false;
76788
+ if (0 < from) {
76789
+ top_1 = true;
76790
+ from = Math.min(from + 1, value);
76791
+ }
76792
+ var last = false;
76793
+ if (to < size - 1) {
76794
+ last = true;
76795
+ to = Math.max(to - 1, value);
76796
+ }
76797
+ var buttonTop = this.buttonTop;
76798
+ if (buttonTop != null) {
76799
+ buttonTop.state.isEnabled = 0 < value;
76800
+ }
76801
+ var buttonPrevious = this.buttonPrevious;
76802
+ if (buttonPrevious != null) {
76803
+ buttonPrevious.state.isEnabled = 0 < value;
76804
+ }
76805
+ if (top_1) {
76806
+ this.dots0.show();
76807
+ }
76808
+ else {
76809
+ this.dots0.hide();
76810
+ }
76811
+ var buttonPages0 = this.buttonPages0;
76812
+ for (var i = 0, imax = buttonPages0.length; i < imax; ++i) {
76813
+ var index = value - i - 1;
76814
+ var buttonPage = buttonPages0[i];
76815
+ if (from <= index && index <= to) {
76816
+ buttonPage.text = index + 1;
76817
+ buttonPage.show();
76818
+ }
76819
+ else {
76820
+ if (top_1 && i === imax - 1) {
76821
+ buttonPage.text = 1;
76822
+ buttonPage.show();
76823
+ }
76824
+ else {
76825
+ buttonPage.hide();
76826
+ }
76827
+ }
76828
+ }
76829
+ this.page.text = value + 1;
76830
+ var buttonPages1 = this.buttonPages1;
76831
+ for (var i = 0, imax = buttonPages1.length; i < imax; ++i) {
76832
+ var index = value + i + 1;
76833
+ var buttonPage = buttonPages1[i];
76834
+ if (from <= index && index <= to) {
76835
+ buttonPage.text = index + 1;
76836
+ buttonPage.show();
76837
+ }
76838
+ else {
76839
+ if (last && i === imax - 1) {
76840
+ buttonPage.text = size;
76841
+ buttonPage.show();
76842
+ }
76843
+ else {
76844
+ buttonPage.hide();
76845
+ }
76846
+ }
76847
+ }
76848
+ if (last) {
76849
+ this.dots1.show();
76850
+ }
76851
+ else {
76852
+ this.dots1.hide();
76853
+ }
76854
+ var buttonNext = this.buttonNext;
76855
+ if (buttonNext != null) {
76856
+ buttonNext.state.isEnabled = value < size - 1;
76857
+ }
76858
+ var buttonLast = this.buttonLast;
76859
+ if (buttonLast != null) {
76860
+ buttonLast.state.isEnabled = value < size - 1;
76861
+ }
76357
76862
  }
76358
76863
  };
76359
76864
  DPagination.prototype.getType = function () {
@@ -84567,6 +85072,7 @@ exports.DDialogSaveAs = DDialogSaveAs;
84567
85072
  exports.DDialogSelect = DDialogSelect;
84568
85073
  exports.DDialogSelectList = DDialogSelectList;
84569
85074
  exports.DDialogSelectListItem = DDialogSelectListItem;
85075
+ exports.DDialogSelectListItemUpdater = DDialogSelectListItemUpdater;
84570
85076
  exports.DDialogSelectSearh = DDialogSelectSearh;
84571
85077
  exports.DDialogState = DDialogState;
84572
85078
  exports.DDialogTime = DDialogTime;
@@ -84698,10 +85204,15 @@ exports.DNoteSmallNoItemsFound = DNoteSmallNoItemsFound;
84698
85204
  exports.DNoteSmallSearching = DNoteSmallSearching;
84699
85205
  exports.DNotification = DNotification;
84700
85206
  exports.DPagination = DPagination;
84701
- exports.DPaginationDotsButton = DPaginationDotsButton;
84702
- exports.DPaginationDynamicButtons = DPaginationDynamicButtons;
84703
- exports.DPaginationNavigationButton = DPaginationNavigationButton;
85207
+ exports.DPaginationButtonLast = DPaginationButtonLast;
85208
+ exports.DPaginationButtonNext = DPaginationButtonNext;
85209
+ exports.DPaginationButtonPage = DPaginationButtonPage;
85210
+ exports.DPaginationButtonPrevious = DPaginationButtonPrevious;
85211
+ exports.DPaginationButtonTop = DPaginationButtonTop;
85212
+ exports.DPaginationDots = DPaginationDots;
85213
+ exports.DPaginationPage = DPaginationPage;
84704
85214
  exports.DPane = DPane;
85215
+ exports.DPaneScrollBar = DPaneScrollBar;
84705
85216
  exports.DPickerColor = DPickerColor;
84706
85217
  exports.DPickerColorAndAlpha = DPickerColorAndAlpha;
84707
85218
  exports.DPickerColorGradient = DPickerColorGradient;
@@ -84730,6 +85241,7 @@ exports.DPickerTimeBounds = DPickerTimeBounds;
84730
85241
  exports.DPickerTimeRange = DPickerTimeRange;
84731
85242
  exports.DPickerTimes = DPickerTimes;
84732
85243
  exports.DScalarExpression = DScalarExpression;
85244
+ exports.DScalarExpressionNodeType = DScalarExpressionNodeType;
84733
85245
  exports.DScalarFunctions = DScalarFunctions;
84734
85246
  exports.DScrollBar = DScrollBar;
84735
85247
  exports.DScrollBarHorizontal = DScrollBarHorizontal;
@@ -84797,6 +85309,7 @@ exports.DTableHeader = DTableHeader;
84797
85309
  exports.DTableHeaderCell = DTableHeaderCell;
84798
85310
  exports.DTableHeaderCellCheck = DTableHeaderCellCheck;
84799
85311
  exports.DTableRow = DTableRow;
85312
+ exports.DTableScrollBar = DTableScrollBar;
84800
85313
  exports.DTableState = DTableState;
84801
85314
  exports.DText = DText;
84802
85315
  exports.DTextBase = DTextBase;
@@ -84939,9 +85452,13 @@ exports.DThemeDarkNoteSmallError = DThemeDarkNoteSmallError;
84939
85452
  exports.DThemeDarkNoteSmallNoItemsFound = DThemeDarkNoteSmallNoItemsFound;
84940
85453
  exports.DThemeDarkNoteSmallSearching = DThemeDarkNoteSmallSearching;
84941
85454
  exports.DThemeDarkPagination = DThemeDarkPagination;
84942
- exports.DThemeDarkPaginationDotsButton = DThemeDarkPaginationDotsButton;
84943
- exports.DThemeDarkPaginationDynamicButtons = DThemeDarkPaginationDynamicButtons;
84944
- exports.DThemeDarkPaginationNavigationButton = DThemeDarkPaginationNavigationButton;
85455
+ exports.DThemeDarkPaginationButtonLast = DThemeDarkPaginationButtonLast;
85456
+ exports.DThemeDarkPaginationButtonNext = DThemeDarkPaginationButtonNext;
85457
+ exports.DThemeDarkPaginationButtonPage = DThemeDarkPaginationButtonPage;
85458
+ exports.DThemeDarkPaginationButtonPrevious = DThemeDarkPaginationButtonPrevious;
85459
+ exports.DThemeDarkPaginationButtonTop = DThemeDarkPaginationButtonTop;
85460
+ exports.DThemeDarkPaginationDots = DThemeDarkPaginationDots;
85461
+ exports.DThemeDarkPaginationPage = DThemeDarkPaginationPage;
84945
85462
  exports.DThemeDarkPane = DThemeDarkPane;
84946
85463
  exports.DThemeDarkPickerColor = DThemeDarkPickerColor;
84947
85464
  exports.DThemeDarkPickerColorGradient = DThemeDarkPickerColorGradient;
@@ -85138,9 +85655,13 @@ exports.DThemeWhiteNoteSmallError = DThemeWhiteNoteSmallError;
85138
85655
  exports.DThemeWhiteNoteSmallNoItemsFound = DThemeWhiteNoteSmallNoItemsFound;
85139
85656
  exports.DThemeWhiteNoteSmallSearching = DThemeWhiteNoteSmallSearching;
85140
85657
  exports.DThemeWhitePagination = DThemeWhitePagination;
85141
- exports.DThemeWhitePaginationDotsButton = DThemeWhitePaginationDotsButton;
85142
- exports.DThemeWhitePaginationDynamicButtons = DThemeWhitePaginationDynamicButtons;
85143
- exports.DThemeWhitePaginationNavigationButton = DThemeWhitePaginationNavigationButton;
85658
+ exports.DThemeWhitePaginationButtonLast = DThemeWhitePaginationButtonLast;
85659
+ exports.DThemeWhitePaginationButtonNext = DThemeWhitePaginationButtonNext;
85660
+ exports.DThemeWhitePaginationButtonPage = DThemeWhitePaginationButtonPage;
85661
+ exports.DThemeWhitePaginationButtonPrevious = DThemeWhitePaginationButtonPrevious;
85662
+ exports.DThemeWhitePaginationButtonTop = DThemeWhitePaginationButtonTop;
85663
+ exports.DThemeWhitePaginationDots = DThemeWhitePaginationDots;
85664
+ exports.DThemeWhitePaginationPage = DThemeWhitePaginationPage;
85144
85665
  exports.DThemeWhitePane = DThemeWhitePane;
85145
85666
  exports.DThemeWhitePickerColor = DThemeWhitePickerColor;
85146
85667
  exports.DThemeWhitePickerColorGradient = DThemeWhitePickerColorGradient;
@@ -85225,6 +85746,7 @@ exports.DynamicAtlasItemWhite = DynamicAtlasItemWhite;
85225
85746
  exports.DynamicFontAtlas = DynamicFontAtlas;
85226
85747
  exports.DynamicFontAtlasCharacter = DynamicFontAtlasCharacter;
85227
85748
  exports.DynamicFontAtlasCharacterOrigin = DynamicFontAtlasCharacterOrigin;
85749
+ exports.DynamicFontAtlasCharacterType = DynamicFontAtlasCharacterType;
85228
85750
  exports.DynamicFontAtlasFont = DynamicFontAtlasFont;
85229
85751
  exports.DynamicFontAtlases = DynamicFontAtlases;
85230
85752
  exports.DynamicSDFFontAtlas = DynamicSDFFontAtlas;
@@ -85476,6 +85998,36 @@ exports.EThemeDarkShape = EThemeDarkShape;
85476
85998
  exports.EThemeDarkShapeActionValue = EThemeDarkShapeActionValue;
85477
85999
  exports.EThemeWhiteShape = EThemeWhiteShape;
85478
86000
  exports.EThemeWhiteShapeActionValue = EThemeWhiteShapeActionValue;
86001
+ exports.FormatNodeA = FormatNodeA;
86002
+ exports.FormatNodeD = FormatNodeD;
86003
+ exports.FormatNodeH = FormatNodeH;
86004
+ exports.FormatNodeM = FormatNodeM;
86005
+ exports.FormatNodeP = FormatNodeP;
86006
+ exports.FormatNodePadding = FormatNodePadding;
86007
+ exports.FormatNodeParenthesis = FormatNodeParenthesis;
86008
+ exports.FormatNodePlus = FormatNodePlus;
86009
+ exports.FormatNodePrecision = FormatNodePrecision;
86010
+ exports.FormatNodeRP = FormatNodeRP;
86011
+ exports.FormatNodeSpace = FormatNodeSpace;
86012
+ exports.FormatNodeString = FormatNodeString;
86013
+ exports.FormatNodeY = FormatNodeY;
86014
+ exports.FormatNodea = FormatNodea;
86015
+ exports.FormatNoded = FormatNoded;
86016
+ exports.FormatNodee = FormatNodee;
86017
+ exports.FormatNodef = FormatNodef;
86018
+ exports.FormatNodefsi = FormatNodefsi;
86019
+ exports.FormatNodeg = FormatNodeg;
86020
+ exports.FormatNodeh = FormatNodeh;
86021
+ exports.FormatNodem = FormatNodem;
86022
+ exports.FormatNodemi = FormatNodemi;
86023
+ exports.FormatNodep = FormatNodep;
86024
+ exports.FormatNoderd = FormatNoderd;
86025
+ exports.FormatNoderp = FormatNoderp;
86026
+ exports.FormatNodes = FormatNodes;
86027
+ exports.FormatNodesdt = FormatNodesdt;
86028
+ exports.FormatNodessi = FormatNodessi;
86029
+ exports.FormatNodey = FormatNodey;
86030
+ exports.FormatNodez = FormatNodez;
85479
86031
  exports.IMAGE_SDF_INDEX_COUNT = IMAGE_SDF_INDEX_COUNT;
85480
86032
  exports.IMAGE_SDF_VERTEX_COUNT = IMAGE_SDF_VERTEX_COUNT;
85481
86033
  exports.IMAGE_SDF_WORLD_SIZE = IMAGE_SDF_WORLD_SIZE;
@@ -85499,6 +86051,7 @@ exports.TRIANGLE_WORLD_SIZE = TRIANGLE_WORLD_SIZE;
85499
86051
  exports.UtilAlpha = UtilAlpha;
85500
86052
  exports.UtilAttach = UtilAttach;
85501
86053
  exports.UtilAttachAlign = UtilAttachAlign;
86054
+ exports.UtilCharacterIterator = UtilCharacterIterator;
85502
86055
  exports.UtilClickOutside = UtilClickOutside;
85503
86056
  exports.UtilClipboard = UtilClipboard;
85504
86057
  exports.UtilExtract = UtilExtract;