@wcardinal/wcardinal-ui 0.359.0 → 0.362.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 (39) hide show
  1. package/dist/types/wcardinal/ui/d-diagram-editor.d.ts +13 -1
  2. package/dist/types/wcardinal/ui/d-dialog-select.d.ts +10 -10
  3. package/dist/types/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.d.ts +1 -0
  4. package/dist/types/wcardinal/ui/theme/white/d-theme-white-diagram-editor.d.ts +1 -0
  5. package/dist/types/wcardinal/ui/util/index.d.ts +1 -0
  6. package/dist/types/wcardinal/ui/util/to-label-with.d.ts +1 -0
  7. package/dist/wcardinal/ui/d-diagram-canvas-editor.js +1 -0
  8. package/dist/wcardinal/ui/d-diagram-canvas-editor.js.map +1 -1
  9. package/dist/wcardinal/ui/d-diagram-editor.js +10 -5
  10. package/dist/wcardinal/ui/d-diagram-editor.js.map +1 -1
  11. package/dist/wcardinal/ui/d-dialog-select.js +28 -14
  12. package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
  13. package/dist/wcardinal/ui/d-select.js +4 -10
  14. package/dist/wcardinal/ui/d-select.js.map +1 -1
  15. package/dist/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.js +3 -0
  16. package/dist/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.js.map +1 -1
  17. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js +2 -2
  18. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js.map +1 -1
  19. package/dist/wcardinal/ui/theme/white/d-theme-white-diagram-editor.js +3 -0
  20. package/dist/wcardinal/ui/theme/white/d-theme-white-diagram-editor.js.map +1 -1
  21. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js +2 -2
  22. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js.map +1 -1
  23. package/dist/wcardinal/ui/util/index.js +1 -0
  24. package/dist/wcardinal/ui/util/index.js.map +1 -1
  25. package/dist/wcardinal/ui/util/to-label-with.js +27 -0
  26. package/dist/wcardinal/ui/util/to-label-with.js.map +1 -0
  27. package/dist/wcardinal/ui/util/to-label.js +2 -20
  28. package/dist/wcardinal/ui/util/to-label.js.map +1 -1
  29. package/dist/wcardinal-ui-theme-dark.js +7 -2
  30. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  31. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  32. package/dist/wcardinal-ui-theme-white.js +7 -2
  33. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  34. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  35. package/dist/wcardinal-ui.cjs.js +62 -34
  36. package/dist/wcardinal-ui.js +54 -32
  37. package/dist/wcardinal-ui.min.js +2 -2
  38. package/dist/wcardinal-ui.min.js.map +1 -1
  39. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-dark-diagram-editor.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;IAA6C,2CAAqB;IAAlE;;IAoCA,CAAC;IAnCA,2CAAS,GAAT;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,oDAAkB,GAAlB;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,kDAAgB,GAAhB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAa,GAAb;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,mDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,mDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,iDAAe,GAAf;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,qDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,qDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IACF,8BAAC;AAAD,CAAC,AApCD,CAA6C,qBAAqB,GAoCjE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DThemeDiagramEditor } from \"../../d-diagram-editor\";\nimport { DThemeDarkDiagramBase } from \"./d-theme-dark-diagram-base\";\n\nexport class DThemeDarkDiagramEditor extends DThemeDarkDiagramBase implements DThemeDiagramEditor {\n\tisAmbient(): boolean {\n\t\treturn false;\n\t}\n\n\tisThumbnailEnabled(): boolean {\n\t\treturn false;\n\t}\n\n\tgetThumbnailSize(): number | null {\n\t\treturn null;\n\t}\n\n\tisSnapEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tgetSnapGridSize(): number {\n\t\treturn 10;\n\t}\n\n\tisSnapTargetVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapTargetEnabled(): boolean {\n\t\treturn true;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-dark-diagram-editor.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-diagram-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AAEpE;IAA6C,2CAAqB;IAAlE;;IAwCA,CAAC;IAvCA,2CAAS,GAAT;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,oDAAkB,GAAlB;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,kDAAgB,GAAhB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAa,GAAb;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,mDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,mDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,iDAAe,GAAf;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,qDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,qDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,mDAAiB,GAAjB;QACC,OAAO,YAAY,CAAC;IACrB,CAAC;IACF,8BAAC;AAAD,CAAC,AAxCD,CAA6C,qBAAqB,GAwCjE","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DThemeDiagramEditor } from \"../../d-diagram-editor\";\nimport { DThemeDarkDiagramBase } from \"./d-theme-dark-diagram-base\";\n\nexport class DThemeDarkDiagramEditor extends DThemeDarkDiagramBase implements DThemeDiagramEditor {\n\tisAmbient(): boolean {\n\t\treturn false;\n\t}\n\n\tisThumbnailEnabled(): boolean {\n\t\treturn false;\n\t}\n\n\tgetThumbnailSize(): number | null {\n\t\treturn null;\n\t}\n\n\tisSnapEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tgetSnapGridSize(): number {\n\t\treturn 10;\n\t}\n\n\tisSnapTargetVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapTargetEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tgetBaseLayerLabel(): string {\n\t\treturn \"Base Layer\";\n\t}\n}\n"]}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { __extends } from "tslib";
6
6
  import { toId } from "../../util/to-id";
7
- import { toLabel } from "../../util/to-label";
7
+ import { toLabelWith } from "../../util/to-label-with";
8
8
  import { DThemeDarkDialogLayered } from "./d-theme-dark-dialog-layered";
9
9
  var DThemeDarkDialogSelect = /** @class */ (function (_super) {
10
10
  __extends(DThemeDarkDialogSelect, _super);
@@ -24,7 +24,7 @@ var DThemeDarkDialogSelect = /** @class */ (function (_super) {
24
24
  return toId(category);
25
25
  };
26
26
  DThemeDarkDialogSelect.prototype.toCategoryLabel = function (category) {
27
- return toLabel(category);
27
+ return toLabelWith(category, "All");
28
28
  };
29
29
  return DThemeDarkDialogSelect;
30
30
  }(DThemeDarkDialogLayered));
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-dark-dialog-select.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE;IACS,0CAAuB;IADhC;;IAuBA,CAAC;IAnBA,yCAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,0CAAS,GAAT;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,6CAAY,GAAZ,UAAa,QAAiB;QAC7B,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;IAED,gDAAe,GAAf,UAAgB,QAAiB;QAChC,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACF,6BAAC;AAAD,CAAC,AAvBD,CACS,uBAAuB,GAsB/B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DDialogLayeredFooterOptions } from \"../../d-dialog-layered-footer\";\nimport { DThemeDialogSelect } from \"../../d-dialog-select\";\nimport { toId } from \"../../util/to-id\";\nimport { toLabel } from \"../../util/to-label\";\nimport { DThemeDarkDialogLayered } from \"./d-theme-dark-dialog-layered\";\n\nexport class DThemeDarkDialogSelect<VALUE>\n\textends DThemeDarkDialogLayered\n\timplements DThemeDialogSelect<VALUE>\n{\n\tgetWidth(): DCoordinateSize {\n\t\treturn 480;\n\t}\n\n\tgetFooter(): DDialogLayeredFooterOptions | undefined | null {\n\t\treturn null;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn 19;\n\t}\n\n\ttoCategoryId(category: unknown): unknown {\n\t\treturn toId(category);\n\t}\n\n\ttoCategoryLabel(category: unknown): string {\n\t\treturn toLabel(category);\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-dark-dialog-select.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,+BAA+B,CAAC;AAExE;IACS,0CAAuB;IADhC;;IAuBA,CAAC;IAnBA,yCAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,0CAAS,GAAT;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,+CAAc,GAAd;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,6CAAY,GAAZ,UAAa,QAAiB;QAC7B,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;IAED,gDAAe,GAAf,UAAgB,QAAiB;QAChC,OAAO,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACrC,CAAC;IACF,6BAAC;AAAD,CAAC,AAvBD,CACS,uBAAuB,GAsB/B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DDialogLayeredFooterOptions } from \"../../d-dialog-layered-footer\";\nimport { DThemeDialogSelect } from \"../../d-dialog-select\";\nimport { toId } from \"../../util/to-id\";\nimport { toLabelWith } from \"../../util/to-label-with\";\nimport { DThemeDarkDialogLayered } from \"./d-theme-dark-dialog-layered\";\n\nexport class DThemeDarkDialogSelect<VALUE>\n\textends DThemeDarkDialogLayered\n\timplements DThemeDialogSelect<VALUE>\n{\n\tgetWidth(): DCoordinateSize {\n\t\treturn 480;\n\t}\n\n\tgetFooter(): DDialogLayeredFooterOptions | undefined | null {\n\t\treturn null;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn 19;\n\t}\n\n\ttoCategoryId(category: unknown): unknown {\n\t\treturn toId(category);\n\t}\n\n\ttoCategoryLabel(category: unknown): string {\n\t\treturn toLabelWith(category, \"All\");\n\t}\n}\n"]}
@@ -36,6 +36,9 @@ var DThemeWhiteDiagramEditor = /** @class */ (function (_super) {
36
36
  DThemeWhiteDiagramEditor.prototype.isSnapTargetEnabled = function () {
37
37
  return true;
38
38
  };
39
+ DThemeWhiteDiagramEditor.prototype.getBaseLayerLabel = function () {
40
+ return "Base Layer";
41
+ };
39
42
  return DThemeWhiteDiagramEditor;
40
43
  }(DThemeWhiteDiagramBase));
41
44
  export { DThemeWhiteDiagramEditor };
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-diagram-editor.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-diagram-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE;IACS,4CAAsB;IAD/B;;IAuCA,CAAC;IAnCA,4CAAS,GAAT;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,qDAAkB,GAAlB;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,mDAAgB,GAAhB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,gDAAa,GAAb;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,oDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,oDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,kDAAe,GAAf;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,sDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,sDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IACF,+BAAC;AAAD,CAAC,AAvCD,CACS,sBAAsB,GAsC9B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DThemeDiagramEditor } from \"../../d-diagram-editor\";\nimport { DThemeWhiteDiagramBase } from \"./d-theme-white-diagram-base\";\n\nexport class DThemeWhiteDiagramEditor\n\textends DThemeWhiteDiagramBase\n\timplements DThemeDiagramEditor\n{\n\tisAmbient(): boolean {\n\t\treturn false;\n\t}\n\n\tisThumbnailEnabled(): boolean {\n\t\treturn false;\n\t}\n\n\tgetThumbnailSize(): number | null {\n\t\treturn null;\n\t}\n\n\tisSnapEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tgetSnapGridSize(): number {\n\t\treturn 10;\n\t}\n\n\tisSnapTargetVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapTargetEnabled(): boolean {\n\t\treturn true;\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-diagram-editor.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-diagram-editor.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAGH,OAAO,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAC;AAEtE;IACS,4CAAsB;IAD/B;;IA2CA,CAAC;IAvCA,4CAAS,GAAT;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,qDAAkB,GAAlB;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED,mDAAgB,GAAhB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,gDAAa,GAAb;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,oDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,oDAAiB,GAAjB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,kDAAe,GAAf;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,sDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,sDAAmB,GAAnB;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,oDAAiB,GAAjB;QACC,OAAO,YAAY,CAAC;IACrB,CAAC;IACF,+BAAC;AAAD,CAAC,AA3CD,CACS,sBAAsB,GA0C9B","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DThemeDiagramEditor } from \"../../d-diagram-editor\";\nimport { DThemeWhiteDiagramBase } from \"./d-theme-white-diagram-base\";\n\nexport class DThemeWhiteDiagramEditor\n\textends DThemeWhiteDiagramBase\n\timplements DThemeDiagramEditor\n{\n\tisAmbient(): boolean {\n\t\treturn false;\n\t}\n\n\tisThumbnailEnabled(): boolean {\n\t\treturn false;\n\t}\n\n\tgetThumbnailSize(): number | null {\n\t\treturn null;\n\t}\n\n\tisSnapEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapGridEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tgetSnapGridSize(): number {\n\t\treturn 10;\n\t}\n\n\tisSnapTargetVisible(): boolean {\n\t\treturn true;\n\t}\n\n\tisSnapTargetEnabled(): boolean {\n\t\treturn true;\n\t}\n\n\tgetBaseLayerLabel(): string {\n\t\treturn \"Base Layer\";\n\t}\n}\n"]}
@@ -4,7 +4,7 @@
4
4
  */
5
5
  import { __extends } from "tslib";
6
6
  import { toId } from "../../util/to-id";
7
- import { toLabel } from "../../util/to-label";
7
+ import { toLabelWith } from "../../util/to-label-with";
8
8
  import { DThemeWhiteDialogLayered } from "./d-theme-white-dialog-layered";
9
9
  var DThemeWhiteDialogSelect = /** @class */ (function (_super) {
10
10
  __extends(DThemeWhiteDialogSelect, _super);
@@ -24,7 +24,7 @@ var DThemeWhiteDialogSelect = /** @class */ (function (_super) {
24
24
  return toId(category);
25
25
  };
26
26
  DThemeWhiteDialogSelect.prototype.toCategoryLabel = function (category) {
27
- return toLabel(category);
27
+ return toLabelWith(category, "All");
28
28
  };
29
29
  return DThemeWhiteDialogSelect;
30
30
  }(DThemeWhiteDialogLayered));
@@ -1 +1 @@
1
- {"version":3,"file":"d-theme-white-dialog-select.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-dialog-select.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAC9C,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;IACS,2CAAwB;IADjC;;IAuBA,CAAC;IAnBA,0CAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,2CAAS,GAAT;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,gDAAc,GAAd;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,8CAAY,GAAZ,UAAa,QAAiB;QAC7B,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;IAED,iDAAe,GAAf,UAAgB,QAAiB;QAChC,OAAO,OAAO,CAAC,QAAQ,CAAC,CAAC;IAC1B,CAAC;IACF,8BAAC;AAAD,CAAC,AAvBD,CACS,wBAAwB,GAsBhC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DDialogLayeredFooterOptions } from \"../../d-dialog-layered-footer\";\nimport { DThemeDialogSelect } from \"../../d-dialog-select\";\nimport { toId } from \"../../util/to-id\";\nimport { toLabel } from \"../../util/to-label\";\nimport { DThemeWhiteDialogLayered } from \"./d-theme-white-dialog-layered\";\n\nexport class DThemeWhiteDialogSelect<VALUE>\n\textends DThemeWhiteDialogLayered\n\timplements DThemeDialogSelect<VALUE>\n{\n\tgetWidth(): DCoordinateSize {\n\t\treturn 480;\n\t}\n\n\tgetFooter(): DDialogLayeredFooterOptions | undefined | null {\n\t\treturn null;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn 19;\n\t}\n\n\ttoCategoryId(category: unknown): unknown {\n\t\treturn toId(category);\n\t}\n\n\ttoCategoryLabel(category: unknown): string {\n\t\treturn toLabel(category);\n\t}\n}\n"]}
1
+ {"version":3,"file":"d-theme-white-dialog-select.js","sourceRoot":"","sources":["../../../../../src/main/typescript/wcardinal/ui/theme/white/d-theme-white-dialog-select.ts"],"names":[],"mappings":"AAAA;;;GAGG;;AAKH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;IACS,2CAAwB;IADjC;;IAuBA,CAAC;IAnBA,0CAAQ,GAAR;QACC,OAAO,GAAG,CAAC;IACZ,CAAC;IAED,2CAAS,GAAT;QACC,OAAO,IAAI,CAAC;IACb,CAAC;IAED,gDAAc,GAAd;QACC,OAAO,EAAE,CAAC;IACX,CAAC;IAED,8CAAY,GAAZ,UAAa,QAAiB;QAC7B,OAAO,IAAI,CAAC,QAAQ,CAAC,CAAC;IACvB,CAAC;IAED,iDAAe,GAAf,UAAgB,QAAiB;QAChC,OAAO,WAAW,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC;IACrC,CAAC;IACF,8BAAC;AAAD,CAAC,AAvBD,CACS,wBAAwB,GAsBhC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { DCoordinateSize } from \"../../d-coordinate\";\nimport { DDialogLayeredFooterOptions } from \"../../d-dialog-layered-footer\";\nimport { DThemeDialogSelect } from \"../../d-dialog-select\";\nimport { toId } from \"../../util/to-id\";\nimport { toLabelWith } from \"../../util/to-label-with\";\nimport { DThemeWhiteDialogLayered } from \"./d-theme-white-dialog-layered\";\n\nexport class DThemeWhiteDialogSelect<VALUE>\n\textends DThemeWhiteDialogLayered\n\timplements DThemeDialogSelect<VALUE>\n{\n\tgetWidth(): DCoordinateSize {\n\t\treturn 480;\n\t}\n\n\tgetFooter(): DDialogLayeredFooterOptions | undefined | null {\n\t\treturn null;\n\t}\n\n\tgetInputMargin(): number {\n\t\treturn 19;\n\t}\n\n\ttoCategoryId(category: unknown): unknown {\n\t\treturn toId(category);\n\t}\n\n\ttoCategoryLabel(category: unknown): string {\n\t\treturn toLabelWith(category, \"All\");\n\t}\n}\n"]}
@@ -37,6 +37,7 @@ export * from "./to-cloned";
37
37
  export * from "./to-enum";
38
38
  export * from "./to-id";
39
39
  export * from "./to-index-of";
40
+ export * from "./to-label-with";
40
41
  export * from "./to-label";
41
42
  export * from "./to-merged";
42
43
  export * from "./to-padded";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./format-node\";\nexport * from \"./deep-partial\";\nexport * from \"./dynamic-atlas-item-empty\";\nexport * from \"./dynamic-atlas-item-font-atlas\";\nexport * from \"./dynamic-atlas-item-image\";\nexport * from \"./dynamic-atlas-item-text\";\nexport * from \"./dynamic-atlas-item-white\";\nexport * from \"./dynamic-atlas-item\";\nexport * from \"./dynamic-atlas\";\nexport * from \"./dynamic-font-atlas-chaaracter-origin\";\nexport * from \"./dynamic-font-atlas-character-type\";\nexport * from \"./dynamic-font-atlas-character\";\nexport * from \"./dynamic-font-atlas-characters\";\nexport * from \"./dynamic-font-atlas-font\";\nexport * from \"./dynamic-font-atlas\";\nexport * from \"./dynamic-font-atlases\";\nexport * from \"./dynamic-sdf-font-atlas\";\nexport * from \"./dynamic-sdf-font-atlases\";\nexport * from \"./dynamic-sdf-font-generator\";\nexport * from \"./is-array\";\nexport * from \"./is-function\";\nexport * from \"./is-nan\";\nexport * from \"./is-number\";\nexport * from \"./is-object\";\nexport * from \"./is-string\";\nexport * from \"./lazy\";\nexport * from \"./number-formatter-function\";\nexport * from \"./number-formatter-impl\";\nexport * from \"./number-formatter\";\nexport * from \"./number-formatters\";\nexport * from \"./to-ceiling-index\";\nexport * from \"./to-cloned\";\nexport * from \"./to-enum\";\nexport * from \"./to-id\";\nexport * from \"./to-index-of\";\nexport * from \"./to-label\";\nexport * from \"./to-merged\";\nexport * from \"./to-padded\";\nexport * from \"./to-string\";\nexport * from \"./to-svg-texture\";\nexport * from \"./to-svg-url\";\nexport * from \"./util-alpha\";\nexport * from \"./util-svg-atlas-builder\";\nexport * from \"./util-attach\";\nexport * from \"./util-character-iterator\";\nexport * from \"./util-click-outside\";\nexport * from \"./util-clipboard\";\nexport * from \"./util-gesture-data\";\nexport * from \"./util-gesture-easing-history\";\nexport * from \"./util-gesture-easing\";\nexport * from \"./util-gesture-mode\";\nexport * from \"./util-gesture-modifier\";\nexport * from \"./util-gesture-modifiers\";\nexport * from \"./util-gesture\";\nexport * from \"./util-extract\";\nexport * from \"./util-extractor-pixels\";\nexport * from \"./util-extractor\";\nexport * from \"./util-file-downloader\";\nexport * from \"./util-file-opener\";\nexport * from \"./util-font\";\nexport * from \"./util-hsv\";\nexport * from \"./util-html-element-clipper-ex-impl\";\nexport * from \"./util-html-element-clipper-ex-rects-impl\";\nexport * from \"./util-html-element-clipper-ex-rects\";\nexport * from \"./util-html-element-clipper-ex\";\nexport * from \"./util-html-element-when\";\nexport * from \"./util-html-element\";\nexport * from \"./util-input-input\";\nexport * from \"./util-input-number\";\nexport * from \"./util-input-text-area\";\nexport * from \"./util-input-text\";\nexport * from \"./util-input\";\nexport * from \"./util-keyboard-event\";\nexport * from \"./util-name\";\nexport * from \"./util-overlay\";\nexport * from \"./util-pointer-event\";\nexport * from \"./util-rgb\";\nexport * from \"./util-rgba\";\nexport * from \"./util-state-blinker\";\nexport * from \"./util-transition\";\nexport * from \"./util-wheel-event\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,YAAY,CAAC;AAC3B,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AACvB,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,eAAe,CAAC;AAC9B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,sCAAsC,CAAC;AACrD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0BAA0B,CAAC;AACzC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nexport * from \"./format-node\";\nexport * from \"./deep-partial\";\nexport * from \"./dynamic-atlas-item-empty\";\nexport * from \"./dynamic-atlas-item-font-atlas\";\nexport * from \"./dynamic-atlas-item-image\";\nexport * from \"./dynamic-atlas-item-text\";\nexport * from \"./dynamic-atlas-item-white\";\nexport * from \"./dynamic-atlas-item\";\nexport * from \"./dynamic-atlas\";\nexport * from \"./dynamic-font-atlas-chaaracter-origin\";\nexport * from \"./dynamic-font-atlas-character-type\";\nexport * from \"./dynamic-font-atlas-character\";\nexport * from \"./dynamic-font-atlas-characters\";\nexport * from \"./dynamic-font-atlas-font\";\nexport * from \"./dynamic-font-atlas\";\nexport * from \"./dynamic-font-atlases\";\nexport * from \"./dynamic-sdf-font-atlas\";\nexport * from \"./dynamic-sdf-font-atlases\";\nexport * from \"./dynamic-sdf-font-generator\";\nexport * from \"./is-array\";\nexport * from \"./is-function\";\nexport * from \"./is-nan\";\nexport * from \"./is-number\";\nexport * from \"./is-object\";\nexport * from \"./is-string\";\nexport * from \"./lazy\";\nexport * from \"./number-formatter-function\";\nexport * from \"./number-formatter-impl\";\nexport * from \"./number-formatter\";\nexport * from \"./number-formatters\";\nexport * from \"./to-ceiling-index\";\nexport * from \"./to-cloned\";\nexport * from \"./to-enum\";\nexport * from \"./to-id\";\nexport * from \"./to-index-of\";\nexport * from \"./to-label-with\";\nexport * from \"./to-label\";\nexport * from \"./to-merged\";\nexport * from \"./to-padded\";\nexport * from \"./to-string\";\nexport * from \"./to-svg-texture\";\nexport * from \"./to-svg-url\";\nexport * from \"./util-alpha\";\nexport * from \"./util-svg-atlas-builder\";\nexport * from \"./util-attach\";\nexport * from \"./util-character-iterator\";\nexport * from \"./util-click-outside\";\nexport * from \"./util-clipboard\";\nexport * from \"./util-gesture-data\";\nexport * from \"./util-gesture-easing-history\";\nexport * from \"./util-gesture-easing\";\nexport * from \"./util-gesture-mode\";\nexport * from \"./util-gesture-modifier\";\nexport * from \"./util-gesture-modifiers\";\nexport * from \"./util-gesture\";\nexport * from \"./util-extract\";\nexport * from \"./util-extractor-pixels\";\nexport * from \"./util-extractor\";\nexport * from \"./util-file-downloader\";\nexport * from \"./util-file-opener\";\nexport * from \"./util-font\";\nexport * from \"./util-hsv\";\nexport * from \"./util-html-element-clipper-ex-impl\";\nexport * from \"./util-html-element-clipper-ex-rects-impl\";\nexport * from \"./util-html-element-clipper-ex-rects\";\nexport * from \"./util-html-element-clipper-ex\";\nexport * from \"./util-html-element-when\";\nexport * from \"./util-html-element\";\nexport * from \"./util-input-input\";\nexport * from \"./util-input-number\";\nexport * from \"./util-input-text-area\";\nexport * from \"./util-input-text\";\nexport * from \"./util-input\";\nexport * from \"./util-keyboard-event\";\nexport * from \"./util-name\";\nexport * from \"./util-overlay\";\nexport * from \"./util-pointer-event\";\nexport * from \"./util-rgb\";\nexport * from \"./util-rgba\";\nexport * from \"./util-state-blinker\";\nexport * from \"./util-transition\";\nexport * from \"./util-wheel-event\";\n"]}
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Copyright (C) 2019 Toshiba Corporation
3
+ * SPDX-License-Identifier: Apache-2.0
4
+ */
5
+ import { isNumber } from "./is-number";
6
+ import { isString } from "./is-string";
7
+ export var toLabelWith = function (target, def) {
8
+ if (target != null) {
9
+ if (isString(target)) {
10
+ return target;
11
+ }
12
+ else if (isNumber(target)) {
13
+ return String(target);
14
+ }
15
+ else if ("name" in target) {
16
+ return target.name;
17
+ }
18
+ else if ("label" in target) {
19
+ return target.label;
20
+ }
21
+ else if ("id" in target) {
22
+ return target.id;
23
+ }
24
+ }
25
+ return def;
26
+ };
27
+ //# sourceMappingURL=to-label-with.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"to-label-with.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/to-label-with.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,CAAC,IAAM,WAAW,GAAG,UAAC,MAAW,EAAE,GAAW;IACnD,IAAI,MAAM,IAAI,IAAI,EAAE;QACnB,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE;YACrB,OAAO,MAAM,CAAC;SACd;aAAM,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;SACtB;aAAM,IAAI,MAAM,IAAI,MAAM,EAAE;YAC5B,OAAO,MAAM,CAAC,IAAI,CAAC;SACnB;aAAM,IAAI,OAAO,IAAI,MAAM,EAAE;YAC7B,OAAO,MAAM,CAAC,KAAK,CAAC;SACpB;aAAM,IAAI,IAAI,IAAI,MAAM,EAAE;YAC1B,OAAO,MAAM,CAAC,EAAE,CAAC;SACjB;KACD;IACD,OAAO,GAAG,CAAC;AACZ,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { isNumber } from \"./is-number\";\nimport { isString } from \"./is-string\";\n\nexport const toLabelWith = (target: any, def: string): string => {\n\tif (target != null) {\n\t\tif (isString(target)) {\n\t\t\treturn target;\n\t\t} else if (isNumber(target)) {\n\t\t\treturn String(target);\n\t\t} else if (\"name\" in target) {\n\t\t\treturn target.name;\n\t\t} else if (\"label\" in target) {\n\t\t\treturn target.label;\n\t\t} else if (\"id\" in target) {\n\t\t\treturn target.id;\n\t\t}\n\t}\n\treturn def;\n};\n"]}
@@ -2,26 +2,8 @@
2
2
  * Copyright (C) 2019 Toshiba Corporation
3
3
  * SPDX-License-Identifier: Apache-2.0
4
4
  */
5
- import { isNumber } from "./is-number";
6
- import { isString } from "./is-string";
5
+ import { toLabelWith } from "./to-label-with";
7
6
  export var toLabel = function (target) {
8
- if (target != null) {
9
- if (isString(target)) {
10
- return target;
11
- }
12
- else if (isNumber(target)) {
13
- return String(target);
14
- }
15
- else if ("name" in target) {
16
- return target.name;
17
- }
18
- else if ("label" in target) {
19
- return target.label;
20
- }
21
- else if ("id" in target) {
22
- return target.id;
23
- }
24
- }
25
- return "";
7
+ return toLabelWith(target, "");
26
8
  };
27
9
  //# sourceMappingURL=to-label.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"to-label.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/to-label.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACvC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAEvC,MAAM,CAAC,IAAM,OAAO,GAAG,UAAC,MAAW;IAClC,IAAI,MAAM,IAAI,IAAI,EAAE;QACnB,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE;YACrB,OAAO,MAAM,CAAC;SACd;aAAM,IAAI,QAAQ,CAAC,MAAM,CAAC,EAAE;YAC5B,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC;SACtB;aAAM,IAAI,MAAM,IAAI,MAAM,EAAE;YAC5B,OAAO,MAAM,CAAC,IAAI,CAAC;SACnB;aAAM,IAAI,OAAO,IAAI,MAAM,EAAE;YAC7B,OAAO,MAAM,CAAC,KAAK,CAAC;SACpB;aAAM,IAAI,IAAI,IAAI,MAAM,EAAE;YAC1B,OAAO,MAAM,CAAC,EAAE,CAAC;SACjB;KACD;IACD,OAAO,EAAE,CAAC;AACX,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { isNumber } from \"./is-number\";\nimport { isString } from \"./is-string\";\n\nexport const toLabel = (target: any): string => {\n\tif (target != null) {\n\t\tif (isString(target)) {\n\t\t\treturn target;\n\t\t} else if (isNumber(target)) {\n\t\t\treturn String(target);\n\t\t} else if (\"name\" in target) {\n\t\t\treturn target.name;\n\t\t} else if (\"label\" in target) {\n\t\t\treturn target.label;\n\t\t} else if (\"id\" in target) {\n\t\t\treturn target.id;\n\t\t}\n\t}\n\treturn \"\";\n};\n"]}
1
+ {"version":3,"file":"to-label.js","sourceRoot":"","sources":["../../../../src/main/typescript/wcardinal/ui/util/to-label.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,MAAM,CAAC,IAAM,OAAO,GAAG,UAAC,MAAW;IAClC,OAAO,WAAW,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;AAChC,CAAC,CAAC","sourcesContent":["/*\n * Copyright (C) 2019 Toshiba Corporation\n * SPDX-License-Identifier: Apache-2.0\n */\n\nimport { toLabelWith } from \"./to-label-with\";\n\nexport const toLabel = (target: any): string => {\n\treturn toLabelWith(target, \"\");\n};\n"]}
@@ -1,5 +1,5 @@
1
1
  /*
2
- Winter Cardinal UI v0.359.0
2
+ Winter Cardinal UI v0.362.0
3
3
  Copyright (C) 2019 Toshiba Corporation
4
4
  SPDX-License-Identifier: Apache-2.0
5
5
 
@@ -2192,6 +2192,8 @@
2192
2192
 
2193
2193
  const toId = wcardinal.ui.toId;
2194
2194
 
2195
+ const toLabelWith = wcardinal.ui.toLabelWith;
2196
+
2195
2197
  /*
2196
2198
  * Copyright (C) 2019 Toshiba Corporation
2197
2199
  * SPDX-License-Identifier: Apache-2.0
@@ -2214,7 +2216,7 @@
2214
2216
  return toId(category);
2215
2217
  };
2216
2218
  DThemeDarkDialogSelect.prototype.toCategoryLabel = function (category) {
2217
- return toLabel(category);
2219
+ return toLabelWith(category, "All");
2218
2220
  };
2219
2221
  return DThemeDarkDialogSelect;
2220
2222
  }(DThemeDarkDialogLayered));
@@ -3767,6 +3769,9 @@
3767
3769
  DThemeDarkDiagramEditor.prototype.isSnapTargetEnabled = function () {
3768
3770
  return true;
3769
3771
  };
3772
+ DThemeDarkDiagramEditor.prototype.getBaseLayerLabel = function () {
3773
+ return "Base Layer";
3774
+ };
3770
3775
  return DThemeDarkDiagramEditor;
3771
3776
  }(DThemeDarkDiagramBase));
3772
3777