@web-atoms/web-controls 2.3.109 → 2.3.111
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/animations/Animations.d.ts.map +1 -1
- package/dist/animations/Animations.js +34 -8
- package/dist/animations/Animations.js.map +1 -1
- package/dist/basic/Form.d.ts +26 -69
- package/dist/basic/Form.d.ts.map +1 -1
- package/dist/basic/Form.js +85 -283
- package/dist/basic/Form.js.map +1 -1
- package/dist/basic/FormField.d.ts +1 -0
- package/dist/basic/FormField.d.ts.map +1 -1
- package/dist/basic/FormField.js +3 -14
- package/dist/basic/FormField.js.map +1 -1
- package/dist/basic/InlinePopup.d.ts +1 -0
- package/dist/basic/InlinePopup.d.ts.map +1 -1
- package/dist/basic/InlinePopup.js +2 -4
- package/dist/basic/InlinePopup.js.map +1 -1
- package/dist/basic/ListRepeater.d.ts +1 -0
- package/dist/basic/ListRepeater.d.ts.map +1 -1
- package/dist/basic/ListRepeater.js +3 -8
- package/dist/basic/ListRepeater.js.map +1 -1
- package/dist/basic/MaskedInput.d.ts +1 -0
- package/dist/basic/MaskedInput.d.ts.map +1 -1
- package/dist/basic/MaskedInput.js +3 -8
- package/dist/basic/MaskedInput.js.map +1 -1
- package/dist/basic/MaskedInputDiv.d.ts +1 -0
- package/dist/basic/MaskedInputDiv.d.ts.map +1 -1
- package/dist/basic/MaskedInputDiv.js +3 -16
- package/dist/basic/MaskedInputDiv.js.map +1 -1
- package/dist/basic/OldForm.d.ts +79 -0
- package/dist/basic/OldForm.d.ts.map +1 -0
- package/dist/basic/OldForm.js +318 -0
- package/dist/basic/OldForm.js.map +1 -0
- package/dist/basic/PasswordBox.d.ts +1 -0
- package/dist/basic/PasswordBox.d.ts.map +1 -1
- package/dist/basic/PasswordBox.js +3 -8
- package/dist/basic/PasswordBox.js.map +1 -1
- package/dist/basic/PinchZoomView.d.ts +1 -0
- package/dist/basic/PinchZoomView.d.ts.map +1 -1
- package/dist/basic/PinchZoomView.js +3 -13
- package/dist/basic/PinchZoomView.js.map +1 -1
- package/dist/basic/PopupButton.d.ts +1 -0
- package/dist/basic/PopupButton.d.ts.map +1 -1
- package/dist/basic/PopupButton.js +3 -13
- package/dist/basic/PopupButton.js.map +1 -1
- package/dist/basic/RadioButtonList.d.ts +1 -0
- package/dist/basic/RadioButtonList.d.ts.map +1 -1
- package/dist/basic/RadioButtonList.js +4 -17
- package/dist/basic/RadioButtonList.js.map +1 -1
- package/dist/basic/Swipe.d.ts +1 -0
- package/dist/basic/Swipe.d.ts.map +1 -1
- package/dist/basic/Swipe.js +3 -9
- package/dist/basic/Swipe.js.map +1 -1
- package/dist/basic/Switch.d.ts +4 -0
- package/dist/basic/Switch.d.ts.map +1 -1
- package/dist/basic/Switch.js +4 -23
- package/dist/basic/Switch.js.map +1 -1
- package/dist/basic/TableRepeater.d.ts.map +1 -1
- package/dist/basic/TableRepeater.js +2 -7
- package/dist/basic/TableRepeater.js.map +1 -1
- package/dist/basic/TimeEditor.d.ts +1 -0
- package/dist/basic/TimeEditor.d.ts.map +1 -1
- package/dist/basic/TimeEditor.js +3 -13
- package/dist/basic/TimeEditor.js.map +1 -1
- package/dist/basic/TitleEditor.d.ts +1 -0
- package/dist/basic/TitleEditor.d.ts.map +1 -1
- package/dist/basic/TitleEditor.js +3 -8
- package/dist/basic/TitleEditor.js.map +1 -1
- package/dist/basic/ToggleButtonBar.d.ts +1 -0
- package/dist/basic/ToggleButtonBar.d.ts.map +1 -1
- package/dist/basic/ToggleButtonBar.js +3 -10
- package/dist/basic/ToggleButtonBar.js.map +1 -1
- package/dist/basic/Tooltip.d.ts +1 -0
- package/dist/basic/Tooltip.d.ts.map +1 -1
- package/dist/basic/Tooltip.js +3 -8
- package/dist/basic/Tooltip.js.map +1 -1
- package/dist/basic/styles/form-field-style.d.ts +2 -0
- package/dist/basic/styles/form-field-style.d.ts.map +1 -0
- package/dist/basic/styles/form-field-style.js +146 -0
- package/dist/basic/styles/form-field-style.js.map +1 -0
- package/dist/basic/styles/inline-popup-style.d.ts +2 -0
- package/dist/basic/styles/inline-popup-style.d.ts.map +1 -0
- package/dist/basic/styles/inline-popup-style.js +28 -0
- package/dist/basic/styles/inline-popup-style.js.map +1 -0
- package/dist/basic/styles/list-repeater-style.d.ts +2 -0
- package/dist/basic/styles/list-repeater-style.d.ts.map +1 -0
- package/dist/basic/styles/list-repeater-style.js +36 -0
- package/dist/basic/styles/list-repeater-style.js.map +1 -0
- package/dist/basic/styles/masked-input-div.d.ts +2 -0
- package/dist/basic/styles/masked-input-div.d.ts.map +1 -0
- package/dist/basic/styles/masked-input-div.js +52 -0
- package/dist/basic/styles/masked-input-div.js.map +1 -0
- package/dist/basic/styles/masked-input-style.d.ts +2 -0
- package/dist/basic/styles/masked-input-style.d.ts.map +1 -0
- package/dist/basic/styles/masked-input-style.js +19 -0
- package/dist/basic/styles/masked-input-style.js.map +1 -0
- package/dist/basic/styles/password-box-style.d.ts +2 -0
- package/dist/basic/styles/password-box-style.d.ts.map +1 -0
- package/dist/basic/styles/password-box-style.js +35 -0
- package/dist/basic/styles/password-box-style.js.map +1 -0
- package/dist/basic/styles/pinch-zoom-view-style.d.ts +2 -0
- package/dist/basic/styles/pinch-zoom-view-style.d.ts.map +1 -0
- package/dist/basic/styles/pinch-zoom-view-style.js +61 -0
- package/dist/basic/styles/pinch-zoom-view-style.js.map +1 -0
- package/dist/basic/styles/popup-button-style.d.ts +2 -0
- package/dist/basic/styles/popup-button-style.d.ts.map +1 -0
- package/dist/basic/styles/popup-button-style.js +40 -0
- package/dist/basic/styles/popup-button-style.js.map +1 -0
- package/dist/basic/styles/radio-button-list-style.d.ts +2 -0
- package/dist/basic/styles/radio-button-list-style.d.ts.map +1 -0
- package/dist/basic/styles/radio-button-list-style.js +44 -0
- package/dist/basic/styles/radio-button-list-style.js.map +1 -0
- package/dist/basic/styles/swipe-style.d.ts +2 -0
- package/dist/basic/styles/swipe-style.d.ts.map +1 -0
- package/dist/basic/styles/swipe-style.js +32 -0
- package/dist/basic/styles/swipe-style.js.map +1 -0
- package/dist/basic/styles/switch-style.d.ts +2 -0
- package/dist/basic/styles/switch-style.d.ts.map +1 -0
- package/dist/basic/styles/switch-style.js +127 -0
- package/dist/basic/styles/switch-style.js.map +1 -0
- package/dist/basic/styles/time-editor-style.d.ts +2 -0
- package/dist/basic/styles/time-editor-style.d.ts.map +1 -0
- package/dist/basic/styles/time-editor-style.js +64 -0
- package/dist/basic/styles/time-editor-style.js.map +1 -0
- package/dist/basic/styles/title-editor-style.d.ts +2 -0
- package/dist/basic/styles/title-editor-style.d.ts.map +1 -0
- package/dist/basic/styles/title-editor-style.js +45 -0
- package/dist/basic/styles/title-editor-style.js.map +1 -0
- package/dist/basic/styles/toggle-button-bar-style.d.ts +2 -0
- package/dist/basic/styles/toggle-button-bar-style.d.ts.map +1 -0
- package/dist/basic/styles/toggle-button-bar-style.js +48 -0
- package/dist/basic/styles/toggle-button-bar-style.js.map +1 -0
- package/dist/basic/styles/toggle-view-style.d.ts +2 -0
- package/dist/basic/styles/toggle-view-style.d.ts.map +1 -0
- package/dist/basic/styles/toggle-view-style.js +91 -0
- package/dist/basic/styles/toggle-view-style.js.map +1 -0
- package/dist/basic/styles/tooltip-style.d.ts +2 -0
- package/dist/basic/styles/tooltip-style.d.ts.map +1 -0
- package/dist/basic/styles/tooltip-style.js +21 -0
- package/dist/basic/styles/tooltip-style.js.map +1 -0
- package/dist/html-editor/InlineHtmlEditor.d.ts.map +1 -1
- package/dist/html-editor/InlineHtmlEditor.js +29 -7
- package/dist/html-editor/InlineHtmlEditor.js.map +1 -1
- package/dist/mobile-app/BottomPopup.d.ts.map +1 -1
- package/dist/mobile-app/BottomPopup.js +76 -14
- package/dist/mobile-app/BottomPopup.js.map +1 -1
- package/dist/mobile-app/MobileApp.d.ts.map +1 -1
- package/dist/mobile-app/MobileApp.js +226 -26
- package/dist/mobile-app/MobileApp.js.map +1 -1
- package/dist/player/AtomVideoPlayer.d.ts.map +1 -1
- package/dist/player/AtomVideoPlayer.js +160 -13
- package/dist/player/AtomVideoPlayer.js.map +1 -1
- package/dist/toggle-view/AtomToggleView.d.ts +1 -0
- package/dist/toggle-view/AtomToggleView.d.ts.map +1 -1
- package/dist/toggle-view/AtomToggleView.js +3 -16
- package/dist/toggle-view/AtomToggleView.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -2
- package/src/animations/Animations.ts +32 -28
- package/src/basic/Form.tsx +89 -381
- package/src/basic/FormField.tsx +1 -117
- package/src/basic/InlinePopup.tsx +1 -16
- package/src/basic/ListRepeater.tsx +1 -26
- package/src/basic/MaskedInput.tsx +2 -17
- package/src/basic/MaskedInputDiv.tsx +2 -41
- package/src/basic/OldForm.tsx +424 -0
- package/src/basic/PasswordBox.tsx +1 -22
- package/src/basic/PinchZoomView.tsx +2 -41
- package/src/basic/PopupButton.tsx +1 -19
- package/src/basic/RadioButtonList.tsx +1 -17
- package/src/basic/Swipe.tsx +1 -21
- package/src/basic/Switch.tsx +2 -83
- package/src/basic/TableRepeater.tsx +0 -3
- package/src/basic/TimeEditor.tsx +2 -40
- package/src/basic/TitleEditor.tsx +1 -28
- package/src/basic/ToggleButtonBar.tsx +1 -30
- package/src/basic/Tooltip.tsx +2 -5
- package/src/basic/styles/form-field-style.ts +136 -0
- package/src/basic/styles/inline-popup-style.ts +19 -0
- package/src/basic/styles/list-repeater-style.ts +25 -0
- package/src/basic/styles/masked-input-div.ts +41 -0
- package/src/basic/styles/masked-input-style.ts +8 -0
- package/src/basic/styles/password-box-style.ts +24 -0
- package/src/basic/styles/pinch-zoom-view-style.ts +50 -0
- package/src/basic/styles/popup-button-style.ts +30 -0
- package/src/basic/styles/radio-button-list-style.ts +34 -0
- package/src/basic/styles/swipe-style.ts +22 -0
- package/src/basic/styles/switch-style.ts +116 -0
- package/src/basic/styles/time-editor-style.ts +53 -0
- package/src/basic/styles/title-editor-style.ts +34 -0
- package/src/basic/styles/toggle-button-bar-style.ts +37 -0
- package/src/basic/styles/toggle-view-style.ts +80 -0
- package/src/basic/styles/tooltip-style.ts +10 -0
- package/src/html-editor/InlineHtmlEditor.tsx +26 -16
- package/src/mobile-app/BottomPopup.tsx +73 -68
- package/src/mobile-app/MobileApp.tsx +227 -174
- package/src/player/AtomVideoPlayer.tsx +157 -141
- package/src/toggle-view/AtomToggleView.tsx +3 -53
- package/dist/basic/Form2.d.ts +0 -27
- package/dist/basic/Form2.d.ts.map +0 -1
- package/dist/basic/Form2.js +0 -120
- package/dist/basic/Form2.js.map +0 -1
- package/dist/basic/FormDialog.d.ts +0 -4
- package/dist/basic/FormDialog.d.ts.map +0 -1
- package/dist/basic/FormDialog.js +0 -32
- package/dist/basic/FormDialog.js.map +0 -1
- package/dist/basic/Input.d.ts +0 -5
- package/dist/basic/Input.d.ts.map +0 -1
- package/dist/basic/Input.js +0 -30
- package/dist/basic/Input.js.map +0 -1
- package/dist/basic/Mix.d.ts +0 -10
- package/dist/basic/Mix.d.ts.map +0 -1
- package/dist/basic/Mix.js +0 -31
- package/dist/basic/Mix.js.map +0 -1
- package/dist/basic/Panel.d.ts +0 -6
- package/dist/basic/Panel.d.ts.map +0 -1
- package/dist/basic/Panel.js +0 -37
- package/dist/basic/Panel.js.map +0 -1
- package/dist/basic/Row.d.ts +0 -15
- package/dist/basic/Row.d.ts.map +0 -1
- package/dist/basic/Row.js +0 -43
- package/dist/basic/Row.js.map +0 -1
- package/dist/switch/AtomSwitch.d.ts +0 -7
- package/dist/switch/AtomSwitch.d.ts.map +0 -1
- package/dist/switch/AtomSwitch.js +0 -42
- package/dist/switch/AtomSwitch.js.map +0 -1
- package/dist/switch/AtomSwitchStyle.d.ts +0 -8
- package/dist/switch/AtomSwitchStyle.d.ts.map +0 -1
- package/dist/switch/AtomSwitchStyle.js +0 -80
- package/dist/switch/AtomSwitchStyle.js.map +0 -1
- package/src/basic/Form2.tsx +0 -121
- package/src/basic/FormDialog.tsx +0 -28
- package/src/basic/Input.tsx +0 -30
- package/src/basic/Mix.tsx +0 -25
- package/src/basic/Panel.tsx +0 -43
- package/src/basic/Row.tsx +0 -49
- package/src/switch/AtomSwitch.tsx +0 -24
- package/src/switch/AtomSwitchStyle.ts +0 -71
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
|
|
3
|
+
styled.css `
|
|
4
|
+
display: grid;
|
|
5
|
+
& > * {
|
|
6
|
+
grid-row: 1;
|
|
7
|
+
grid-column: 1;
|
|
8
|
+
}
|
|
9
|
+
`.installGlobal("[data-swipe]");
|
|
10
|
+
|
|
11
|
+
styled.css `
|
|
12
|
+
& > * {
|
|
13
|
+
align-self: center;
|
|
14
|
+
justify-self: end;
|
|
15
|
+
z-index: 2;
|
|
16
|
+
&:first-child {
|
|
17
|
+
align-self: stretch;
|
|
18
|
+
justify-self: stretch;
|
|
19
|
+
z-index: 10;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
`.installGlobal("[data-swipe=left]");
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
|
|
3
|
+
styled.css `
|
|
4
|
+
|
|
5
|
+
position: relative;
|
|
6
|
+
display: inline-block;
|
|
7
|
+
vertical-align: top;
|
|
8
|
+
min-width: 70px;
|
|
9
|
+
height: 30px;
|
|
10
|
+
padding: 3px;
|
|
11
|
+
margin: 0px;
|
|
12
|
+
background: linear-gradient(to bottom, #eeeeee, #FFFFFF 25px);
|
|
13
|
+
background-image: -webkit-linear-gradient(top, #eeeeee, #FFFFFF 25px);
|
|
14
|
+
border-radius: 18px;
|
|
15
|
+
box-shadow: inset 0 -1px white, inset 0 1px 1px rgba(0, 0, 0, 0.05);
|
|
16
|
+
cursor: pointer;
|
|
17
|
+
box-sizing: content-box;
|
|
18
|
+
|
|
19
|
+
& > .switch-input {
|
|
20
|
+
position: absolute;
|
|
21
|
+
top: 0px;
|
|
22
|
+
left: 0px;
|
|
23
|
+
opacity: 0;
|
|
24
|
+
box-sizing: content-box;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
& > .switch-label {
|
|
28
|
+
position: relative;
|
|
29
|
+
display: block;
|
|
30
|
+
height: inherit;
|
|
31
|
+
background-color: #eceeef;
|
|
32
|
+
border-radius: inherit;
|
|
33
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12), inset 0 0 2px rgba(0, 0, 0, 0.15);
|
|
34
|
+
box-sizing: content-box;
|
|
35
|
+
transition: all 0.3s ease;
|
|
36
|
+
|
|
37
|
+
&:before, &:after {
|
|
38
|
+
position: absolute;
|
|
39
|
+
top: 50%;
|
|
40
|
+
margin-top: -.5em;
|
|
41
|
+
line-height: 1;
|
|
42
|
+
webkit-transition: inherit;
|
|
43
|
+
transition: inherit;
|
|
44
|
+
box-sizing: content-box;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:before {
|
|
48
|
+
content: attr(data-off);
|
|
49
|
+
right: 11px;
|
|
50
|
+
color: #aaaaaa;
|
|
51
|
+
text-shadow: 0 1px rgba(255, 255, 255, 0.5);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&:after {
|
|
55
|
+
content: attr(data-on);
|
|
56
|
+
left: 11px;
|
|
57
|
+
color: #FFFFFF;
|
|
58
|
+
text-shadow: 0 1px rgba(0, 0, 0, 0.2);
|
|
59
|
+
opacity: 0;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& > .switch-input:checked {
|
|
64
|
+
|
|
65
|
+
& ~ .switch-label {
|
|
66
|
+
background-color: #E1B42B;
|
|
67
|
+
box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.15), inset 0 0 3px rgba(0, 0, 0, 0.2);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& ~ .switch-label:before {
|
|
71
|
+
opacity: 0;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
& ~ .switch-label:after {
|
|
75
|
+
opacity: 1;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
& ~ .switch-handle {
|
|
79
|
+
left: 44px;
|
|
80
|
+
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
& > .switch-handle {
|
|
86
|
+
position: absolute;
|
|
87
|
+
top: 4px;
|
|
88
|
+
left: 4px;
|
|
89
|
+
width: 28px;
|
|
90
|
+
height: 28px;
|
|
91
|
+
background: linear-gradient(to bottom, #FFFFFF 40%, #f0f0f0);
|
|
92
|
+
border-radius: 100%;
|
|
93
|
+
box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.2);
|
|
94
|
+
transition: all 0.3s ease;
|
|
95
|
+
&:before {
|
|
96
|
+
content: "";
|
|
97
|
+
position: absolute;
|
|
98
|
+
top: 50%;
|
|
99
|
+
left: 50%;
|
|
100
|
+
width: 12px;
|
|
101
|
+
height: 12px;
|
|
102
|
+
background: linear-gradient(to bottom, #eeeeee, #FFFFFF);
|
|
103
|
+
border-radius: 6px;
|
|
104
|
+
box-shadow: inset 0 1px rgba(0, 0, 0, 0.02);
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
& > .switch-input:checked ~ .switch-handle {
|
|
109
|
+
left: 44px;
|
|
110
|
+
box-shadow: -1px 1px 5px rgba(0, 0, 0, 0.2);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
& > .switch-label, .switch-handle {
|
|
114
|
+
transition: All 0.3s ease;
|
|
115
|
+
}
|
|
116
|
+
`.installGlobal("[data-ui-switch=ui-switch]");
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
|
|
3
|
+
styled.css `
|
|
4
|
+
|
|
5
|
+
padding-left: 5px;
|
|
6
|
+
grid-row: 2;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: row;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: start;
|
|
11
|
+
gap: 0;
|
|
12
|
+
|
|
13
|
+
& > [data-element=hour] {
|
|
14
|
+
margin-left: 5px;
|
|
15
|
+
margin-right: 5px;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
& > [data-element=minute] {
|
|
19
|
+
margin-left: 5px;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
& > [data-element=pm] {
|
|
23
|
+
margin-right: 5px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
& > button {
|
|
27
|
+
border-radius: 9999px;
|
|
28
|
+
outline: none;
|
|
29
|
+
border: none;
|
|
30
|
+
background-color: transparent;
|
|
31
|
+
|
|
32
|
+
&[data-selected=true] {
|
|
33
|
+
background-color: var(--accent-color, blue);
|
|
34
|
+
color: var(--accent-text-color, white);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[data-element=am] {
|
|
38
|
+
border-top-right-radius: 0;
|
|
39
|
+
border-bottom-right-radius: 0;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[data-element=pm] {
|
|
43
|
+
border-top-left-radius: 0;
|
|
44
|
+
border-bottom-left-radius: 0;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
& > select {
|
|
49
|
+
border: none;
|
|
50
|
+
outline: none;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
`.installGlobal("[data-time-editor]");
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
|
|
3
|
+
styled.css `
|
|
4
|
+
display: inline-grid;
|
|
5
|
+
grid-template-rows: 1fr auto;
|
|
6
|
+
grid-template-columns: 1fr 40px;
|
|
7
|
+
column-gap: 5px;
|
|
8
|
+
|
|
9
|
+
& > input {
|
|
10
|
+
grid-row: 1 / span 2;
|
|
11
|
+
grid-column: 1;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
& > i {
|
|
15
|
+
grid-row: 1;
|
|
16
|
+
grid-column: 1;
|
|
17
|
+
font-size: smaller;
|
|
18
|
+
padding-left: 5px;
|
|
19
|
+
padding-right: 5px;
|
|
20
|
+
align-self: stretch;
|
|
21
|
+
justify-self: stretch;
|
|
22
|
+
text-align: center;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
& > span {
|
|
26
|
+
grid-row: 2;
|
|
27
|
+
grid-column: 2;
|
|
28
|
+
font-size: xx-small;
|
|
29
|
+
align-self: stretch;
|
|
30
|
+
justify-self: stretch;
|
|
31
|
+
text-align: center;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
`.installGlobal("[data-title-editor=title-editor]");
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
|
|
3
|
+
styled.css `
|
|
4
|
+
|
|
5
|
+
display: inline-grid;
|
|
6
|
+
grid-auto-flow: column;
|
|
7
|
+
align-content: center;
|
|
8
|
+
justify-items: stretch;
|
|
9
|
+
text-align: center;
|
|
10
|
+
border-style: solid;
|
|
11
|
+
border-width: 1px;
|
|
12
|
+
border-color: #d3d3d3;
|
|
13
|
+
border-radius: 9999px;
|
|
14
|
+
|
|
15
|
+
& > [data-item-type=toggle-button] {
|
|
16
|
+
padding: 5px;
|
|
17
|
+
background-color: #ffffff;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
&:first-child {
|
|
21
|
+
padding-left: 10px;
|
|
22
|
+
border-top-left-radius: 9999px;
|
|
23
|
+
border-bottom-left-radius: 9999px;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
&:last-child {
|
|
27
|
+
border-top-right-radius: 9999px;
|
|
28
|
+
border-bottom-right-radius: 9999px;
|
|
29
|
+
padding-right: 10px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
&[data-selected-item=true] {
|
|
33
|
+
background-color: var(--accent-color, black);
|
|
34
|
+
color: #ffffff;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
`.installGlobal("[data-button-bar=button-bar]");
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
2
|
+
|
|
3
|
+
styled.css `
|
|
4
|
+
flex: 1 1 100%;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: stretch;
|
|
7
|
+
justify-content: space-around;
|
|
8
|
+
gap: 4px;
|
|
9
|
+
display: flex;
|
|
10
|
+
overflow: hidden;
|
|
11
|
+
|
|
12
|
+
& > .toolbar {
|
|
13
|
+
flex-direction: row;
|
|
14
|
+
align-items: center;
|
|
15
|
+
justify-content: space-around;
|
|
16
|
+
display: flex;
|
|
17
|
+
align-self: center;
|
|
18
|
+
|
|
19
|
+
& > .item {
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
align-items: center;
|
|
22
|
+
justify-content: space-around;
|
|
23
|
+
gap: 4px;
|
|
24
|
+
display: inline-flex;
|
|
25
|
+
border: solid 1px lightgray;
|
|
26
|
+
padding: 5px;
|
|
27
|
+
|
|
28
|
+
&:first-child {
|
|
29
|
+
border-top-left-radius: 10px;
|
|
30
|
+
border-bottom-left-radius: 10px;
|
|
31
|
+
border-right: none;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&:last-child {
|
|
35
|
+
border-top-right-radius: 10px;
|
|
36
|
+
border-bottom-right-radius: 10px;
|
|
37
|
+
border-left: none;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&.selected {
|
|
41
|
+
background-color: var(--accent-color, #00008b);
|
|
42
|
+
color: var(--accent-text-color,#ffffff);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
& > label {
|
|
46
|
+
white-space: nowrap;
|
|
47
|
+
margin-bottom: 0px;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
& > .presenter {
|
|
55
|
+
flex: 1 1 100%;
|
|
56
|
+
display: grid;
|
|
57
|
+
grid-template-columns: 1fr;
|
|
58
|
+
grid-template-rows: 1fr;
|
|
59
|
+
overflow: hidden;
|
|
60
|
+
& > * {
|
|
61
|
+
grid-row-start: 1;
|
|
62
|
+
grid-column-start: 1;
|
|
63
|
+
transition: transform 0.3s;
|
|
64
|
+
overflow: auto;
|
|
65
|
+
padding: 5px;
|
|
66
|
+
}
|
|
67
|
+
& > .left {
|
|
68
|
+
transform: translate(-100%, 0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
& > .right {
|
|
72
|
+
transform: translate(100%, 0);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
& > .selected {
|
|
76
|
+
transform: translate(0, 0);
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
`.installGlobal("*[data-wa-toggle-view=wa-toggle-view]");
|
|
@@ -1,29 +1,39 @@
|
|
|
1
1
|
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
2
2
|
import sleep from "@web-atoms/core/dist/core/sleep";
|
|
3
3
|
import { CancelToken } from "@web-atoms/core/dist/core/types";
|
|
4
|
-
import StyleRule from "@web-atoms/core/dist/style/StyleRule";
|
|
5
4
|
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
6
5
|
import { ChildEnumerator, descendentElementIterator } from "@web-atoms/core/dist/web/core/AtomUI";
|
|
7
|
-
import CSS from "@web-atoms/core/dist/web/styles/CSS";
|
|
8
|
-
import RangeEditor, { RangeEditorCommands } from "./RangeEditor";
|
|
9
6
|
|
|
10
7
|
import "@web-atoms/data-styles/data-styles";
|
|
11
8
|
import { showImageDialog } from "./commands/AddImage";
|
|
12
9
|
import { FilesAvailableEventArgs } from "../basic/UploadEvent";
|
|
10
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
13
11
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
12
|
+
styled.css `
|
|
13
|
+
|
|
14
|
+
& > [data-element=toolbar] {
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: center;
|
|
17
|
+
justify-content: space-around;
|
|
18
|
+
gap: 4px;
|
|
19
|
+
display: flex;
|
|
20
|
+
|
|
21
|
+
& > .toolbar {
|
|
22
|
+
flex-direction: row;
|
|
23
|
+
align-items: center;
|
|
24
|
+
justify-content: space-around;
|
|
25
|
+
gap: 4px;
|
|
26
|
+
display: flex;
|
|
27
|
+
|
|
28
|
+
& .command {
|
|
29
|
+
|
|
30
|
+
&.pressed {
|
|
31
|
+
font-weight: bold;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
`.installGlobal("[data-inline-editor=inline-editor]")
|
|
27
37
|
|
|
28
38
|
export default class InlineHtmlEditor extends AtomControl {
|
|
29
39
|
|
|
@@ -2,81 +2,86 @@ import { BindableProperty } from "@web-atoms/core/dist/core/BindableProperty";
|
|
|
2
2
|
import Colors from "@web-atoms/core/dist/core/Colors";
|
|
3
3
|
import { CancelToken } from "@web-atoms/core/dist/core/types";
|
|
4
4
|
import XNode from "@web-atoms/core/dist/core/XNode";
|
|
5
|
-
import StyleRule from "@web-atoms/core/dist/style/StyleRule";
|
|
6
5
|
import { AtomControl } from "@web-atoms/core/dist/web/controls/AtomControl";
|
|
7
6
|
import { ChildEnumerator } from "@web-atoms/core/dist/web/core/AtomUI";
|
|
8
7
|
import PopupService, { IPopupOptions, PopupControl, PopupWindow } from "@web-atoms/core/dist/web/services/PopupService";
|
|
9
|
-
import CSS from "@web-atoms/core/dist/web/styles/CSS";
|
|
10
8
|
export * as zDoNotUse from "../animations/Animations";
|
|
11
9
|
import MobileApp from "./MobileApp";
|
|
10
|
+
import styled from "@web-atoms/core/dist/style/styled";
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
)
|
|
20
|
-
|
|
12
|
+
styled.css `
|
|
13
|
+
position: absolute;
|
|
14
|
+
left: 0;
|
|
15
|
+
top: 0;
|
|
16
|
+
bottom: 0;
|
|
17
|
+
right: 0;
|
|
18
|
+
background-color: rgba(0,0,0,0.3);
|
|
19
|
+
z-index: 500;
|
|
20
|
+
`.installGlobal("*[data-bottom-popup-container]");
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
22
|
+
styled.css `
|
|
23
|
+
position: absolute;
|
|
24
|
+
left: 0px;
|
|
25
|
+
right: 0px;
|
|
26
|
+
bottom: 0px;
|
|
27
|
+
margin-left: 2px;
|
|
28
|
+
margin-right: 2px;
|
|
29
|
+
border-top-left-radius: 5px;
|
|
30
|
+
border-top-right-radius: 5px;
|
|
31
|
+
display: grid;
|
|
32
|
+
grid-template-columns: auto 1fr auto;
|
|
33
|
+
grid-template-rows: auto auto auto;
|
|
34
|
+
background-color: #ffffff;
|
|
35
|
+
|
|
36
|
+
& > [data-element=bar] {
|
|
37
|
+
border-top-left-radius: 5px;
|
|
38
|
+
border-top-right-radius: 5px;
|
|
39
|
+
grid-row: 1;
|
|
40
|
+
grid-column: 1 / span 3;
|
|
41
|
+
background-color: #d3d3d3;
|
|
42
|
+
z-index: 10;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
& > [data-element=icon] {
|
|
46
|
+
grid-row: 1;
|
|
47
|
+
grid-column: 1;
|
|
48
|
+
padding: 5px;
|
|
49
|
+
align-self: center;
|
|
50
|
+
margin-right: 5px;
|
|
51
|
+
z-index: 11;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
& > [data-element=close] {
|
|
55
|
+
grid-row: 1;
|
|
56
|
+
grid-column: 3;
|
|
57
|
+
padding: 5px;
|
|
58
|
+
margin-left: 5px;
|
|
59
|
+
align-self: center;
|
|
60
|
+
z-index: 11;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
& > [data-element=title] {
|
|
64
|
+
grid-row: 1;
|
|
65
|
+
grid-column: 2;
|
|
66
|
+
padding: 5px;
|
|
67
|
+
z-index: 11;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
& > [data-element=content] {
|
|
71
|
+
padding: 5px;
|
|
72
|
+
grid-row: 2;
|
|
73
|
+
grid-column: 1 / span 3;
|
|
74
|
+
z-index: 11;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
& > [data-element=footer] {
|
|
78
|
+
grid-row: 3;
|
|
79
|
+
grid-column: 1 / span 3;
|
|
80
|
+
margin-top: 5px;
|
|
81
|
+
padding: 5px;
|
|
82
|
+
z-index: 11;
|
|
83
|
+
}
|
|
84
|
+
`.installGlobal("*[data-bottom-popup]");
|
|
80
85
|
|
|
81
86
|
export interface IBottomPopupOptions extends IPopupOptions {
|
|
82
87
|
parameters?: {[key: string]: any};
|