@wcardinal/wcardinal-ui 0.399.0 → 0.400.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/wcardinal/ui/d-image-piece-layouter-part-center.js +2 -2
  2. package/dist/wcardinal/ui/d-image-piece-layouter-part-center.js.map +1 -1
  3. package/dist/wcardinal/ui/d-image-piece-layouter-part.js +1 -0
  4. package/dist/wcardinal/ui/d-image-piece-layouter-part.js.map +1 -1
  5. package/dist/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.js +13 -7
  6. package/dist/wcardinal/ui/theme/dark/d-theme-dark-indicator-processing.js.map +1 -1
  7. package/dist/wcardinal/ui/theme/white/d-theme-white-indicator-processing.js +13 -7
  8. package/dist/wcardinal/ui/theme/white/d-theme-white-indicator-processing.js.map +1 -1
  9. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js +1 -1
  10. package/dist/wcardinal/ui/util/util-svg-atlas-builder.js.map +1 -1
  11. package/dist/wcardinal-ui-theme-dark-en-us.js +15 -8
  12. package/dist/wcardinal-ui-theme-dark-en-us.min.js +2 -2
  13. package/dist/wcardinal-ui-theme-dark-en-us.min.js.map +1 -1
  14. package/dist/wcardinal-ui-theme-dark-ja-jp.js +15 -8
  15. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js +2 -2
  16. package/dist/wcardinal-ui-theme-dark-ja-jp.min.js.map +1 -1
  17. package/dist/wcardinal-ui-theme-dark.js +15 -8
  18. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  19. package/dist/wcardinal-ui-theme-white-en-us.js +15 -8
  20. package/dist/wcardinal-ui-theme-white-en-us.min.js +2 -2
  21. package/dist/wcardinal-ui-theme-white-en-us.min.js.map +1 -1
  22. package/dist/wcardinal-ui-theme-white-ja-jp.js +15 -8
  23. package/dist/wcardinal-ui-theme-white-ja-jp.min.js +2 -2
  24. package/dist/wcardinal-ui-theme-white-ja-jp.min.js.map +1 -1
  25. package/dist/wcardinal-ui-theme-white.js +15 -8
  26. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  27. package/dist/wcardinal-ui.cjs.js +39 -28
  28. package/dist/wcardinal-ui.js +5 -4
  29. package/dist/wcardinal-ui.min.js +2 -2
  30. package/dist/wcardinal-ui.min.js.map +1 -1
  31. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.399.0
2
+ Winter Cardinal UI v0.400.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -27699,6 +27699,7 @@ var DImagePieceLayouterPart = /** @class */ (function () {
27699
27699
  }
27700
27700
  DImagePieceLayouterPart.prototype.clear = function () {
27701
27701
  this._pieces.length = 0;
27702
+ this._bounds.length = 0;
27702
27703
  this._size = 0;
27703
27704
  this._margin = 0;
27704
27705
  this._text = undefined;
@@ -27761,8 +27762,8 @@ var DImagePieceLayouterPartCenter = /** @class */ (function (_super) {
27761
27762
  return _super !== null && _super.apply(this, arguments) || this;
27762
27763
  }
27763
27764
  DImagePieceLayouterPartCenter.prototype.add = function (image, bound, margin) {
27764
- var pieces = this._pieces;
27765
- pieces.push(image);
27765
+ this._pieces.push(image);
27766
+ this._bounds.push(bound);
27766
27767
  this._size = Math.max(this.size, bound.width);
27767
27768
  };
27768
27769
  DImagePieceLayouterPartCenter.prototype.execute = function (pleft, pright, width) {
@@ -47258,7 +47259,7 @@ var UtilSvgAtlasBuilder = /** @class */ (function () {
47258
47259
  var attrViewBox = "viewBox=\"0 0 ".concat(width * ratio, " ").concat(height * ratio, "\"");
47259
47260
  var attrXmlns = "xmlns=\"http://www.w3.org/2000/svg\"";
47260
47261
  var url = toSvgUrl("<svg ".concat(attrWidth, " ").concat(attrHeight, " ").concat(attrViewBox, " ").concat(attrXmlns, ">").concat(this._svg, "</svg>"));
47261
- var scaleMode = (_c = options === null || options === void 0 ? void 0 : options.scaling) !== null && _c !== void 0 ? _c : pixi_js.SCALE_MODES.LINEAR;
47262
+ var scaleMode = (_c = options === null || options === void 0 ? void 0 : options.scaling) !== null && _c !== void 0 ? _c : pixi_js.SCALE_MODES.NEAREST;
47262
47263
  var baseTexture = pixi_js.BaseTexture.from(url, {
47263
47264
  resolution: resolution,
47264
47265
  scaleMode: scaleMode
@@ -57421,6 +57422,16 @@ var loadThemeWhiteEnUsTable = function () {
57421
57422
  loadThemeWhiteMenu();
57422
57423
  };
57423
57424
 
57425
+ /*
57426
+ * Copyright (C) 2019 Toshiba Corporation
57427
+ * SPDX-License-Identifier: Apache-2.0
57428
+ */
57429
+ var toSvgTexture = function (svg, resolution) {
57430
+ return pixi_js.Texture.from(toSvgUrl(svg), {
57431
+ resolution: resolution
57432
+ });
57433
+ };
57434
+
57424
57435
  /*
57425
57436
  * Copyright (C) 2019 Toshiba Corporation
57426
57437
  * SPDX-License-Identifier: Apache-2.0
@@ -57428,12 +57439,6 @@ var loadThemeWhiteEnUsTable = function () {
57428
57439
  // Material Design icons by Google.
57429
57440
  // Apache license version 2.0.
57430
57441
  /* eslint-disable prettier/prettier */
57431
- DThemeWhiteAtlas.add("button_process_processing", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
57432
- "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
57433
- "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
57434
- " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
57435
- "6T480-80Z\" fill=\"#fff\"/>" +
57436
- "</g>");
57437
57442
  DThemeWhiteAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
57438
57443
  "<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
57439
57444
  "</g>");
@@ -57441,9 +57446,20 @@ DThemeWhiteAtlas.add("button_process_fail", 24, 24, "<g transform=\"scale(0.025,
57441
57446
  "<path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" fill=\"#fff\" />" +
57442
57447
  "</g>");
57443
57448
  /* eslint-enable prettier/prettier */
57449
+ var newProcessingTexture$1 = function () {
57450
+ var resolution = (window.devicePixelRatio || 1) * 2;
57451
+ var size = 24 * resolution;
57452
+ return toSvgTexture("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "px\" height=\"").concat(size, "px\" viewBox=\"0 -960 960 960\">") +
57453
+ "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
57454
+ "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
57455
+ " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
57456
+ "6T480-80Z\" fill=\"#fff\"/>" +
57457
+ "</svg>", resolution);
57458
+ };
57459
+ var processingTexture$1;
57444
57460
  var imageSource$1 = function (state) {
57445
57461
  if (state.isProcessing) {
57446
- return DThemeWhiteAtlas.mappings.button_process_processing;
57462
+ return (processingTexture$1 !== null && processingTexture$1 !== void 0 ? processingTexture$1 : (processingTexture$1 = newProcessingTexture$1()));
57447
57463
  }
57448
57464
  else if (state.isSucceeded) {
57449
57465
  return DThemeWhiteAtlas.mappings.button_process_success;
@@ -67927,12 +67943,6 @@ var loadThemeDarkEnUsTable = function () {
67927
67943
  // Material Design icons by Google.
67928
67944
  // Apache license version 2.0.
67929
67945
  /* eslint-disable prettier/prettier */
67930
- DThemeDarkAtlas.add("button_process_processing", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
67931
- "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
67932
- "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
67933
- " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
67934
- "6T480-80Z\" fill=\"#fff\"/>" +
67935
- "</g>");
67936
67946
  DThemeDarkAtlas.add("button_process_success", 24, 24, "<g transform=\"scale(0.025,0.025) translate(0,960)\">" +
67937
67947
  "<path d=\"M382-240 154-468l57-57 171 171 367-367 57 57-424 424Z\" fill=\"#fff\" />" +
67938
67948
  "</g>");
@@ -67940,9 +67950,20 @@ DThemeDarkAtlas.add("button_process_fail", 24, 24, "<g transform=\"scale(0.025,0
67940
67950
  "<path d=\"m256-200-56-56 224-224-224-224 56-56 224 224 224-224 56 56-224 224 224 224-56 56-224-224-224 224Z\" fill=\"#fff\" />" +
67941
67951
  "</g>");
67942
67952
  /* eslint-enable prettier/prettier */
67953
+ var newProcessingTexture = function () {
67954
+ var resolution = (window.devicePixelRatio || 1) * 2;
67955
+ var size = 24 * resolution;
67956
+ return toSvgTexture("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"".concat(size, "px\" height=\"").concat(size, "px\" viewBox=\"0 -960 960 960\">") +
67957
+ "<path d=\"M480-80q-82 0-155-31.5t-127.5-86Q143-252 111.5-325T80-480q0-83 31.5-155.5t86-127Q252-817 325-848.5T" +
67958
+ "480-880q17 0 28.5 11.5T520-840q0 17-11.5 28.5T480-800q-133 0-226.5 93.5T160-480q0 133 93.5 226.5T480-160q133" +
67959
+ " 0 226.5-93.5T800-480q0-17 11.5-28.5T840-520q17 0 28.5 11.5T880-480q0 82-31.5 155t-86 127.5q-54.5 54.5-127 8" +
67960
+ "6T480-80Z\" fill=\"#fff\"/>" +
67961
+ "</svg>", resolution);
67962
+ };
67963
+ var processingTexture;
67943
67964
  var imageSource = function (state) {
67944
67965
  if (state.isProcessing) {
67945
- return DThemeDarkAtlas.mappings.button_process_processing;
67966
+ return (processingTexture !== null && processingTexture !== void 0 ? processingTexture : (processingTexture = newProcessingTexture()));
67946
67967
  }
67947
67968
  else if (state.isSucceeded) {
67948
67969
  return DThemeDarkAtlas.mappings.button_process_success;
@@ -69492,16 +69513,6 @@ var toMerged = function (one, other) {
69492
69513
  }
69493
69514
  };
69494
69515
 
69495
- /*
69496
- * Copyright (C) 2019 Toshiba Corporation
69497
- * SPDX-License-Identifier: Apache-2.0
69498
- */
69499
- var toSvgTexture = function (svg, resolution) {
69500
- return pixi_js.Texture.from(toSvgUrl(svg), {
69501
- resolution: resolution
69502
- });
69503
- };
69504
-
69505
69516
  /*
69506
69517
  * Copyright (C) 2019 Toshiba Corporation
69507
69518
  * SPDX-License-Identifier: Apache-2.0
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.399.0
2
+ Winter Cardinal UI v0.400.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -27696,6 +27696,7 @@
27696
27696
  }
27697
27697
  DImagePieceLayouterPart.prototype.clear = function () {
27698
27698
  this._pieces.length = 0;
27699
+ this._bounds.length = 0;
27699
27700
  this._size = 0;
27700
27701
  this._margin = 0;
27701
27702
  this._text = undefined;
@@ -27758,8 +27759,8 @@
27758
27759
  return _super !== null && _super.apply(this, arguments) || this;
27759
27760
  }
27760
27761
  DImagePieceLayouterPartCenter.prototype.add = function (image, bound, margin) {
27761
- var pieces = this._pieces;
27762
- pieces.push(image);
27762
+ this._pieces.push(image);
27763
+ this._bounds.push(bound);
27763
27764
  this._size = Math.max(this.size, bound.width);
27764
27765
  };
27765
27766
  DImagePieceLayouterPartCenter.prototype.execute = function (pleft, pright, width) {
@@ -47863,7 +47864,7 @@
47863
47864
  var attrViewBox = "viewBox=\"0 0 ".concat(width * ratio, " ").concat(height * ratio, "\"");
47864
47865
  var attrXmlns = "xmlns=\"http://www.w3.org/2000/svg\"";
47865
47866
  var url = toSvgUrl("<svg ".concat(attrWidth, " ").concat(attrHeight, " ").concat(attrViewBox, " ").concat(attrXmlns, ">").concat(this._svg, "</svg>"));
47866
- var scaleMode = (_c = options === null || options === void 0 ? void 0 : options.scaling) !== null && _c !== void 0 ? _c : pixi_js.SCALE_MODES.LINEAR;
47867
+ var scaleMode = (_c = options === null || options === void 0 ? void 0 : options.scaling) !== null && _c !== void 0 ? _c : pixi_js.SCALE_MODES.NEAREST;
47867
47868
  var baseTexture = pixi_js.BaseTexture.from(url, {
47868
47869
  resolution: resolution,
47869
47870
  scaleMode: scaleMode