@wcardinal/wcardinal-ui 0.400.0 → 0.402.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 (37) hide show
  1. package/dist/types/wcardinal/ui/theme/white/d-theme-white-indicator-processing.d.ts +1 -1
  2. package/dist/types/wcardinal/ui/util/util-svg-atlas-builder.d.ts +13 -2
  3. package/dist/wcardinal/ui/d-base.js +1 -9
  4. package/dist/wcardinal/ui/d-base.js.map +1 -1
  5. package/dist/wcardinal/ui/d-dynamic-text.js +2 -1
  6. package/dist/wcardinal/ui/d-dynamic-text.js.map +1 -1
  7. package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js +6 -1
  8. package/dist/wcardinal/ui/theme/dark/d-theme-dark-atlas.js.map +1 -1
  9. package/dist/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.js +7 -13
  10. package/dist/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.js.map +1 -1
  11. package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js +6 -1
  12. package/dist/wcardinal/ui/theme/white/d-theme-white-atlas.js.map +1 -1
  13. package/dist/wcardinal/ui/theme/white/d-theme-white-indicator-processing.js +7 -13
  14. package/dist/wcardinal/ui/theme/white/d-theme-white-indicator-processing.js.map +1 -1
  15. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js +14 -9
  16. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
  17. package/dist/wcardinal-ui-theme-dark-en-us.js +15 -18
  18. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  19. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  20. package/dist/wcardinal-ui-theme-dark-ja-jp.js +15 -18
  21. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  22. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  23. package/dist/wcardinal-ui-theme-dark.js +15 -18
  24. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  25. package/dist/wcardinal-ui-theme-white-en-us.js +15 -18
  26. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  27. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  28. package/dist/wcardinal-ui-theme-white-ja-jp.js +15 -18
  29. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  30. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  31. package/dist/wcardinal-ui-theme-white.js +15 -18
  32. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  33. package/dist/wcardinal-ui.cjs.js +51 -55
  34. package/dist/wcardinal-ui.js +17 -19
  35. package/dist/wcardinal-ui.min.js +2 -2
  36. package/dist/wcardinal-ui.min.js.map +1 -1
  37. package/package.json +1 -1
@@ -1,12 +1,12 @@
1
1
  /*
2
- Winter Cardinal UI v0.400.0
2
+ Winter Cardinal UI v0.402.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
6
6
  Material Design icons by Google
7
7
  Apache license version 2.0.
8
8
  */
9
- (function () {
9
+ (function (pixi_js) {
10
10
  'use strict';
11
11
 
12
12
  const UtilSvgAtlasBuilder = wcardinal.ui.UtilSvgAtlasBuilder;
@@ -15,7 +15,11 @@
15
15
  * Copyright (C) 2019 Toshiba Corporation
16
16
  * SPDX-License-Identifier: Apache-2.0
17
17
  */
18
- var DThemeWhiteAtlas = new UtilSvgAtlasBuilder(1024, 1, 3);
18
+ var DThemeWhiteAtlas = new UtilSvgAtlasBuilder({
19
+ width: 1024,
20
+ scaling: pixi_js.SCALE_MODES.LINEAR,
21
+ mipmap: pixi_js.MIPMAP_MODES.OFF
22
+ });
19
23
 
20
24
  /*
21
25
  * Copyright (C) 2019 Toshiba Corporation
@@ -9663,8 +9667,6 @@
9663
9667
  loadThemeWhiteMenu();
9664
9668
  };
9665
9669
 
9666
- const toSvgTexture = wcardinal.ui.toSvgTexture;
9667
-
9668
9670
  /*
9669
9671
  * Copyright (C) 2019 Toshiba Corporation
9670
9672
  * SPDX-License-Identifier: Apache-2.0
@@ -9672,6 +9674,12 @@
9672
9674
  // Material Design icons by Google.
9673
9675
  // Apache license version 2.0.
9674
9676
  /* eslint-disable prettier/prettier */
9677
+ DThemeWhiteAtlas.add("button_process_processing", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
9678
+ "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
9679
+ "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
9680
+ " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
9681
+ "6T480-80Z\" fill=\"#fff\"/>" +
9682
+ "</g>");
9675
9683
  DThemeWhiteAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
9676
9684
  "<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
9677
9685
  "</g>");
@@ -9679,20 +9687,9 @@
9679
9687
  "<path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" fill=\"#fff\" />" +
9680
9688
  "</g>");
9681
9689
  /* eslint-enable prettier/prettier */
9682
- var newProcessingTexture = function () {
9683
- var resolution = (window.devicePixelRatio || 1) * 2;
9684
- var size = 24 * resolution;
9685
- return toSvgTexture("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "px\" height=\"").concat(size, "px\" viewBox=\"0 -960 960 960\">") +
9686
- "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
9687
- "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
9688
- " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
9689
- "6T480-80Z\" fill=\"#fff\"/>" +
9690
- "</svg>", resolution);
9691
- };
9692
- var processingTexture;
9693
9690
  var imageSource = function (state) {
9694
9691
  if (state.isProcessing) {
9695
- return (processingTexture !== null && processingTexture !== void 0 ? processingTexture : (processingTexture = newProcessingTexture()));
9692
+ return DThemeWhiteAtlas.mappings.button_process_processing;
9696
9693
  }
9697
9694
  else if (state.isSucceeded) {
9698
9695
  return DThemeWhiteAtlas.mappings.button_process_success;
@@ -10175,4 +10172,4 @@
10175
10172
  dest[name_1] = src[name_1];
10176
10173
  }
10177
10174
 
10178
- })();
10175
+ })(PIXI);