@wcardinal/wcardinal-ui 0.358.0 → 0.361.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 (33) hide show
  1. package/dist/types/wcardinal/ui/d-diagram-canvas-base.d.ts +4 -4
  2. package/dist/types/wcardinal/ui/d-diagram-serialized.d.ts +2 -2
  3. package/dist/types/wcardinal/ui/d-dialog-select.d.ts +10 -10
  4. package/dist/types/wcardinal/ui/util/index.d.ts +1 -0
  5. package/dist/types/wcardinal/ui/util/to-label-with.d.ts +1 -0
  6. package/dist/wcardinal/ui/d-diagram-canvas-base.js +2 -2
  7. package/dist/wcardinal/ui/d-diagram-canvas-base.js.map +1 -1
  8. package/dist/wcardinal/ui/d-diagram-serialized.js.map +1 -1
  9. package/dist/wcardinal/ui/d-dialog-select.js +28 -14
  10. package/dist/wcardinal/ui/d-dialog-select.js.map +1 -1
  11. package/dist/wcardinal/ui/d-select.js +4 -10
  12. package/dist/wcardinal/ui/d-select.js.map +1 -1
  13. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js +2 -2
  14. package/dist/wcardinal/ui/theme/dark/d-theme-dark-dialog-select.js.map +1 -1
  15. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js +2 -2
  16. package/dist/wcardinal/ui/theme/white/d-theme-white-dialog-select.js.map +1 -1
  17. package/dist/wcardinal/ui/util/index.js +1 -0
  18. package/dist/wcardinal/ui/util/index.js.map +1 -1
  19. package/dist/wcardinal/ui/util/to-label-with.js +27 -0
  20. package/dist/wcardinal/ui/util/to-label-with.js.map +1 -0
  21. package/dist/wcardinal/ui/util/to-label.js +2 -20
  22. package/dist/wcardinal/ui/util/to-label.js.map +1 -1
  23. package/dist/wcardinal-ui-theme-dark.js +4 -2
  24. package/dist/wcardinal-ui-theme-dark.min.js +2 -2
  25. package/dist/wcardinal-ui-theme-dark.min.js.map +1 -1
  26. package/dist/wcardinal-ui-theme-white.js +4 -2
  27. package/dist/wcardinal-ui-theme-white.min.js +2 -2
  28. package/dist/wcardinal-ui-theme-white.min.js.map +1 -1
  29. package/dist/wcardinal-ui.cjs.js +47 -31
  30. package/dist/wcardinal-ui.js +45 -29
  31. package/dist/wcardinal-ui.min.js +2 -2
  32. package/dist/wcardinal-ui.min.js.map +1 -1
  33. package/package.json +1 -1
@@ -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,C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AAC;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;A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vC,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.358.0
2
+ Winter Cardinal UI v0.361.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));