@wcardinal/wcardinal-ui 0.287.0 → 0.289.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.
- package/dist/types/wcardinal/ui/d-chart-axis-base-tick-container.d.ts +2 -2
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js +2 -2
- package/dist/wcardinal/ui/d-chart-axis-base-tick-container.js.map +1 -1
- package/dist/wcardinal/ui/util/util-keyboard-event.js +70 -36
- package/dist/wcardinal/ui/util/util-keyboard-event.js.map +1 -1
- package/dist/wcardinal-ui-theme-dark.js +1 -1
- package/dist/wcardinal-ui-theme-dark.min.js +1 -1
- package/dist/wcardinal-ui-theme-white.js +1 -1
- package/dist/wcardinal-ui-theme-white.min.js +1 -1
- package/dist/wcardinal-ui.cjs.js +73 -39
- package/dist/wcardinal-ui.js +73 -39
- package/dist/wcardinal-ui.min.js +2 -2
- package/dist/wcardinal-ui.min.js.map +1 -1
- package/package.json +1 -1
package/dist/wcardinal-ui.cjs.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.289.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -12631,63 +12631,72 @@ var setShortcutKeyAndWhich = function (shortcut) {
|
|
|
12631
12631
|
shortcut.key = key.toUpperCase();
|
|
12632
12632
|
}
|
|
12633
12633
|
var code = key.charCodeAt(0);
|
|
12634
|
-
|
|
12635
|
-
// a ... z
|
|
12636
|
-
shortcut.which = code - 32;
|
|
12637
|
-
}
|
|
12638
|
-
else {
|
|
12639
|
-
shortcut.which = code;
|
|
12640
|
-
}
|
|
12634
|
+
shortcut.which = 97 <= code && code <= 122 ? code - 32 : code;
|
|
12641
12635
|
}
|
|
12642
12636
|
else {
|
|
12643
12637
|
switch (key) {
|
|
12644
|
-
case "
|
|
12638
|
+
case "enter":
|
|
12639
|
+
shortcut.key = "Enter";
|
|
12645
12640
|
shortcut.which = 13;
|
|
12646
12641
|
break;
|
|
12647
|
-
case "
|
|
12642
|
+
case "space":
|
|
12648
12643
|
shortcut.key = " ";
|
|
12649
12644
|
shortcut.which = 32;
|
|
12650
12645
|
break;
|
|
12651
|
-
case "
|
|
12646
|
+
case "escape":
|
|
12647
|
+
shortcut.key = "Escape";
|
|
12652
12648
|
shortcut.which = 27;
|
|
12653
12649
|
break;
|
|
12654
|
-
case "
|
|
12650
|
+
case "f1":
|
|
12651
|
+
shortcut.key = "F1";
|
|
12655
12652
|
shortcut.which = 112;
|
|
12656
12653
|
break;
|
|
12657
|
-
case "
|
|
12654
|
+
case "f2":
|
|
12655
|
+
shortcut.key = "F2";
|
|
12658
12656
|
shortcut.which = 113;
|
|
12659
12657
|
break;
|
|
12660
|
-
case "
|
|
12658
|
+
case "f3":
|
|
12659
|
+
shortcut.key = "F3";
|
|
12661
12660
|
shortcut.which = 114;
|
|
12662
12661
|
break;
|
|
12663
|
-
case "
|
|
12662
|
+
case "f4":
|
|
12663
|
+
shortcut.key = "F4";
|
|
12664
12664
|
shortcut.which = 115;
|
|
12665
12665
|
break;
|
|
12666
|
-
case "
|
|
12666
|
+
case "f5":
|
|
12667
|
+
shortcut.key = "F5";
|
|
12667
12668
|
shortcut.which = 116;
|
|
12668
12669
|
break;
|
|
12669
|
-
case "
|
|
12670
|
+
case "f6":
|
|
12671
|
+
shortcut.key = "F6";
|
|
12670
12672
|
shortcut.which = 117;
|
|
12671
12673
|
break;
|
|
12672
|
-
case "
|
|
12674
|
+
case "f7":
|
|
12675
|
+
shortcut.key = "F7";
|
|
12673
12676
|
shortcut.which = 118;
|
|
12674
12677
|
break;
|
|
12675
|
-
case "
|
|
12678
|
+
case "f8":
|
|
12679
|
+
shortcut.key = "F8";
|
|
12676
12680
|
shortcut.which = 119;
|
|
12677
12681
|
break;
|
|
12678
|
-
case "
|
|
12682
|
+
case "f9":
|
|
12683
|
+
shortcut.key = "F9";
|
|
12679
12684
|
shortcut.which = 120;
|
|
12680
12685
|
break;
|
|
12681
|
-
case "
|
|
12686
|
+
case "f10":
|
|
12687
|
+
shortcut.key = "F10";
|
|
12682
12688
|
shortcut.which = 121;
|
|
12683
12689
|
break;
|
|
12684
|
-
case "
|
|
12690
|
+
case "f11":
|
|
12691
|
+
shortcut.key = "F11";
|
|
12685
12692
|
shortcut.which = 122;
|
|
12686
12693
|
break;
|
|
12687
|
-
case "
|
|
12694
|
+
case "f12":
|
|
12695
|
+
shortcut.key = "F12";
|
|
12688
12696
|
shortcut.which = 123;
|
|
12689
12697
|
break;
|
|
12690
|
-
case "
|
|
12698
|
+
case "capslock":
|
|
12699
|
+
shortcut.key = "CapsLock";
|
|
12691
12700
|
if (shortcut.shift) {
|
|
12692
12701
|
shortcut.which = 20;
|
|
12693
12702
|
}
|
|
@@ -12695,45 +12704,70 @@ var setShortcutKeyAndWhich = function (shortcut) {
|
|
|
12695
12704
|
shortcut.which = 240;
|
|
12696
12705
|
}
|
|
12697
12706
|
break;
|
|
12698
|
-
case "
|
|
12707
|
+
case "arrowup":
|
|
12708
|
+
shortcut.key = "ArrowUp";
|
|
12699
12709
|
shortcut.which = 38;
|
|
12700
12710
|
break;
|
|
12701
|
-
case "
|
|
12711
|
+
case "arrowdown":
|
|
12712
|
+
shortcut.key = "ArrowDown";
|
|
12702
12713
|
shortcut.which = 40;
|
|
12703
12714
|
break;
|
|
12704
|
-
case "
|
|
12715
|
+
case "arrowleft":
|
|
12716
|
+
shortcut.key = "ArrowLeft";
|
|
12705
12717
|
shortcut.which = 37;
|
|
12706
12718
|
break;
|
|
12707
|
-
case "
|
|
12719
|
+
case "arrowright":
|
|
12720
|
+
shortcut.key = "ArrowRight";
|
|
12708
12721
|
shortcut.which = 39;
|
|
12709
12722
|
break;
|
|
12710
|
-
case "
|
|
12723
|
+
case "insert":
|
|
12724
|
+
shortcut.key = "Insert";
|
|
12711
12725
|
shortcut.which = 45;
|
|
12712
12726
|
break;
|
|
12713
|
-
case "
|
|
12727
|
+
case "delete":
|
|
12728
|
+
shortcut.key = "Delete";
|
|
12714
12729
|
shortcut.which = 46;
|
|
12715
12730
|
break;
|
|
12716
|
-
case "
|
|
12731
|
+
case "pageup":
|
|
12732
|
+
shortcut.key = "PageUp";
|
|
12717
12733
|
shortcut.which = 33;
|
|
12718
12734
|
break;
|
|
12719
|
-
case "
|
|
12735
|
+
case "pagedown":
|
|
12736
|
+
shortcut.key = "PageDown";
|
|
12720
12737
|
shortcut.which = 34;
|
|
12721
12738
|
break;
|
|
12722
|
-
case "
|
|
12739
|
+
case "backspace":
|
|
12740
|
+
shortcut.key = "Backspace";
|
|
12723
12741
|
shortcut.which = 8;
|
|
12724
12742
|
break;
|
|
12725
|
-
case "
|
|
12743
|
+
case "colon":
|
|
12744
|
+
shortcut.key = ":";
|
|
12745
|
+
shortcut.which = 186;
|
|
12746
|
+
break;
|
|
12747
|
+
case "semicolon":
|
|
12748
|
+
shortcut.key = ";";
|
|
12726
12749
|
shortcut.which = 187;
|
|
12727
12750
|
break;
|
|
12728
|
-
case "
|
|
12751
|
+
case "pause":
|
|
12752
|
+
shortcut.key = "Pause";
|
|
12729
12753
|
shortcut.which = 19;
|
|
12730
12754
|
break;
|
|
12731
|
-
case "
|
|
12755
|
+
case "scrolllock":
|
|
12756
|
+
shortcut.key = "ScrollLock";
|
|
12732
12757
|
shortcut.which = 145;
|
|
12733
12758
|
break;
|
|
12734
|
-
case "
|
|
12759
|
+
case "tab":
|
|
12760
|
+
shortcut.key = "Tab";
|
|
12735
12761
|
shortcut.which = 9;
|
|
12736
12762
|
break;
|
|
12763
|
+
case "plus":
|
|
12764
|
+
shortcut.key = "+";
|
|
12765
|
+
shortcut.which = 187;
|
|
12766
|
+
break;
|
|
12767
|
+
case "minus":
|
|
12768
|
+
shortcut.key = "-";
|
|
12769
|
+
shortcut.which = 189;
|
|
12770
|
+
break;
|
|
12737
12771
|
}
|
|
12738
12772
|
}
|
|
12739
12773
|
return shortcut;
|
|
@@ -73231,7 +73265,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73231
73265
|
majorShape.transform.position.set(majotTickPositionX, shapePositionY);
|
|
73232
73266
|
majorShape.text.value = majorFormatter.format(majorTickPosition, majorTickStep);
|
|
73233
73267
|
majorShape.allowUploadedUpdate();
|
|
73234
|
-
if (gridlineShapes) {
|
|
73268
|
+
if (i < gridlineShapes.length) {
|
|
73235
73269
|
var gridlineShape = gridlineShapes[i];
|
|
73236
73270
|
gridlineShape.disallowUploadedUpdate();
|
|
73237
73271
|
gridlineShape.visible = true;
|
|
@@ -73293,7 +73327,7 @@ var DChartAxisBaseTickContainer = /** @class */ (function () {
|
|
|
73293
73327
|
majorShape.transform.position.set(shapePositionX, majotTickPositionY);
|
|
73294
73328
|
majorShape.text.value = majorFormatter.format(majorTickPosition, majorTickStep);
|
|
73295
73329
|
majorShape.allowUploadedUpdate();
|
|
73296
|
-
if (gridlineShapes) {
|
|
73330
|
+
if (i < gridlineShapes.length) {
|
|
73297
73331
|
var gridlineShape = gridlineShapes[i];
|
|
73298
73332
|
gridlineShape.disallowUploadedUpdate();
|
|
73299
73333
|
gridlineShape.visible = true;
|
package/dist/wcardinal-ui.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
Winter Cardinal UI v0.
|
|
2
|
+
Winter Cardinal UI v0.289.0
|
|
3
3
|
Copyright (C) 2019 Toshiba Corporation
|
|
4
4
|
SPDX-License-Identifier: Apache-2.0
|
|
5
5
|
|
|
@@ -12628,63 +12628,72 @@
|
|
|
12628
12628
|
shortcut.key = key.toUpperCase();
|
|
12629
12629
|
}
|
|
12630
12630
|
var code = key.charCodeAt(0);
|
|
12631
|
-
|
|
12632
|
-
// a ... z
|
|
12633
|
-
shortcut.which = code - 32;
|
|
12634
|
-
}
|
|
12635
|
-
else {
|
|
12636
|
-
shortcut.which = code;
|
|
12637
|
-
}
|
|
12631
|
+
shortcut.which = 97 <= code && code <= 122 ? code - 32 : code;
|
|
12638
12632
|
}
|
|
12639
12633
|
else {
|
|
12640
12634
|
switch (key) {
|
|
12641
|
-
case "
|
|
12635
|
+
case "enter":
|
|
12636
|
+
shortcut.key = "Enter";
|
|
12642
12637
|
shortcut.which = 13;
|
|
12643
12638
|
break;
|
|
12644
|
-
case "
|
|
12639
|
+
case "space":
|
|
12645
12640
|
shortcut.key = " ";
|
|
12646
12641
|
shortcut.which = 32;
|
|
12647
12642
|
break;
|
|
12648
|
-
case "
|
|
12643
|
+
case "escape":
|
|
12644
|
+
shortcut.key = "Escape";
|
|
12649
12645
|
shortcut.which = 27;
|
|
12650
12646
|
break;
|
|
12651
|
-
case "
|
|
12647
|
+
case "f1":
|
|
12648
|
+
shortcut.key = "F1";
|
|
12652
12649
|
shortcut.which = 112;
|
|
12653
12650
|
break;
|
|
12654
|
-
case "
|
|
12651
|
+
case "f2":
|
|
12652
|
+
shortcut.key = "F2";
|
|
12655
12653
|
shortcut.which = 113;
|
|
12656
12654
|
break;
|
|
12657
|
-
case "
|
|
12655
|
+
case "f3":
|
|
12656
|
+
shortcut.key = "F3";
|
|
12658
12657
|
shortcut.which = 114;
|
|
12659
12658
|
break;
|
|
12660
|
-
case "
|
|
12659
|
+
case "f4":
|
|
12660
|
+
shortcut.key = "F4";
|
|
12661
12661
|
shortcut.which = 115;
|
|
12662
12662
|
break;
|
|
12663
|
-
case "
|
|
12663
|
+
case "f5":
|
|
12664
|
+
shortcut.key = "F5";
|
|
12664
12665
|
shortcut.which = 116;
|
|
12665
12666
|
break;
|
|
12666
|
-
case "
|
|
12667
|
+
case "f6":
|
|
12668
|
+
shortcut.key = "F6";
|
|
12667
12669
|
shortcut.which = 117;
|
|
12668
12670
|
break;
|
|
12669
|
-
case "
|
|
12671
|
+
case "f7":
|
|
12672
|
+
shortcut.key = "F7";
|
|
12670
12673
|
shortcut.which = 118;
|
|
12671
12674
|
break;
|
|
12672
|
-
case "
|
|
12675
|
+
case "f8":
|
|
12676
|
+
shortcut.key = "F8";
|
|
12673
12677
|
shortcut.which = 119;
|
|
12674
12678
|
break;
|
|
12675
|
-
case "
|
|
12679
|
+
case "f9":
|
|
12680
|
+
shortcut.key = "F9";
|
|
12676
12681
|
shortcut.which = 120;
|
|
12677
12682
|
break;
|
|
12678
|
-
case "
|
|
12683
|
+
case "f10":
|
|
12684
|
+
shortcut.key = "F10";
|
|
12679
12685
|
shortcut.which = 121;
|
|
12680
12686
|
break;
|
|
12681
|
-
case "
|
|
12687
|
+
case "f11":
|
|
12688
|
+
shortcut.key = "F11";
|
|
12682
12689
|
shortcut.which = 122;
|
|
12683
12690
|
break;
|
|
12684
|
-
case "
|
|
12691
|
+
case "f12":
|
|
12692
|
+
shortcut.key = "F12";
|
|
12685
12693
|
shortcut.which = 123;
|
|
12686
12694
|
break;
|
|
12687
|
-
case "
|
|
12695
|
+
case "capslock":
|
|
12696
|
+
shortcut.key = "CapsLock";
|
|
12688
12697
|
if (shortcut.shift) {
|
|
12689
12698
|
shortcut.which = 20;
|
|
12690
12699
|
}
|
|
@@ -12692,45 +12701,70 @@
|
|
|
12692
12701
|
shortcut.which = 240;
|
|
12693
12702
|
}
|
|
12694
12703
|
break;
|
|
12695
|
-
case "
|
|
12704
|
+
case "arrowup":
|
|
12705
|
+
shortcut.key = "ArrowUp";
|
|
12696
12706
|
shortcut.which = 38;
|
|
12697
12707
|
break;
|
|
12698
|
-
case "
|
|
12708
|
+
case "arrowdown":
|
|
12709
|
+
shortcut.key = "ArrowDown";
|
|
12699
12710
|
shortcut.which = 40;
|
|
12700
12711
|
break;
|
|
12701
|
-
case "
|
|
12712
|
+
case "arrowleft":
|
|
12713
|
+
shortcut.key = "ArrowLeft";
|
|
12702
12714
|
shortcut.which = 37;
|
|
12703
12715
|
break;
|
|
12704
|
-
case "
|
|
12716
|
+
case "arrowright":
|
|
12717
|
+
shortcut.key = "ArrowRight";
|
|
12705
12718
|
shortcut.which = 39;
|
|
12706
12719
|
break;
|
|
12707
|
-
case "
|
|
12720
|
+
case "insert":
|
|
12721
|
+
shortcut.key = "Insert";
|
|
12708
12722
|
shortcut.which = 45;
|
|
12709
12723
|
break;
|
|
12710
|
-
case "
|
|
12724
|
+
case "delete":
|
|
12725
|
+
shortcut.key = "Delete";
|
|
12711
12726
|
shortcut.which = 46;
|
|
12712
12727
|
break;
|
|
12713
|
-
case "
|
|
12728
|
+
case "pageup":
|
|
12729
|
+
shortcut.key = "PageUp";
|
|
12714
12730
|
shortcut.which = 33;
|
|
12715
12731
|
break;
|
|
12716
|
-
case "
|
|
12732
|
+
case "pagedown":
|
|
12733
|
+
shortcut.key = "PageDown";
|
|
12717
12734
|
shortcut.which = 34;
|
|
12718
12735
|
break;
|
|
12719
|
-
case "
|
|
12736
|
+
case "backspace":
|
|
12737
|
+
shortcut.key = "Backspace";
|
|
12720
12738
|
shortcut.which = 8;
|
|
12721
12739
|
break;
|
|
12722
|
-
case "
|
|
12740
|
+
case "colon":
|
|
12741
|
+
shortcut.key = ":";
|
|
12742
|
+
shortcut.which = 186;
|
|
12743
|
+
break;
|
|
12744
|
+
case "semicolon":
|
|
12745
|
+
shortcut.key = ";";
|
|
12723
12746
|
shortcut.which = 187;
|
|
12724
12747
|
break;
|
|
12725
|
-
case "
|
|
12748
|
+
case "pause":
|
|
12749
|
+
shortcut.key = "Pause";
|
|
12726
12750
|
shortcut.which = 19;
|
|
12727
12751
|
break;
|
|
12728
|
-
case "
|
|
12752
|
+
case "scrolllock":
|
|
12753
|
+
shortcut.key = "ScrollLock";
|
|
12729
12754
|
shortcut.which = 145;
|
|
12730
12755
|
break;
|
|
12731
|
-
case "
|
|
12756
|
+
case "tab":
|
|
12757
|
+
shortcut.key = "Tab";
|
|
12732
12758
|
shortcut.which = 9;
|
|
12733
12759
|
break;
|
|
12760
|
+
case "plus":
|
|
12761
|
+
shortcut.key = "+";
|
|
12762
|
+
shortcut.which = 187;
|
|
12763
|
+
break;
|
|
12764
|
+
case "minus":
|
|
12765
|
+
shortcut.key = "-";
|
|
12766
|
+
shortcut.which = 189;
|
|
12767
|
+
break;
|
|
12734
12768
|
}
|
|
12735
12769
|
}
|
|
12736
12770
|
return shortcut;
|
|
@@ -54957,7 +54991,7 @@
|
|
|
54957
54991
|
majorShape.transform.position.set(majotTickPositionX, shapePositionY);
|
|
54958
54992
|
majorShape.text.value = majorFormatter.format(majorTickPosition, majorTickStep);
|
|
54959
54993
|
majorShape.allowUploadedUpdate();
|
|
54960
|
-
if (gridlineShapes) {
|
|
54994
|
+
if (i < gridlineShapes.length) {
|
|
54961
54995
|
var gridlineShape = gridlineShapes[i];
|
|
54962
54996
|
gridlineShape.disallowUploadedUpdate();
|
|
54963
54997
|
gridlineShape.visible = true;
|
|
@@ -55019,7 +55053,7 @@
|
|
|
55019
55053
|
majorShape.transform.position.set(shapePositionX, majotTickPositionY);
|
|
55020
55054
|
majorShape.text.value = majorFormatter.format(majorTickPosition, majorTickStep);
|
|
55021
55055
|
majorShape.allowUploadedUpdate();
|
|
55022
|
-
if (gridlineShapes) {
|
|
55056
|
+
if (i < gridlineShapes.length) {
|
|
55023
55057
|
var gridlineShape = gridlineShapes[i];
|
|
55024
55058
|
gridlineShape.disallowUploadedUpdate();
|
|
55025
55059
|
gridlineShape.visible = true;
|