satis 2.1.20 → 2.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 75bb4d079d8749d5a4a09818abc3d32bc113a6053f57b1457832461115a0cbbf
4
- data.tar.gz: a6b3a0ecb3e696058fbd8f5963a31d34980e781b07bd399480732046ee89e620
3
+ metadata.gz: 36b712311d2eaf6c93a92f4b60fefb288d99078f9e926645e57df166936df3c9
4
+ data.tar.gz: 774450f2777448dabf4368b5e43874c8c42a02a51dfc7bd04a3849b28e0e7506
5
5
  SHA512:
6
- metadata.gz: a8cb4db65d76cbc6688425004e355c593e34bb2e034dcb2c297e7b647cdf594759439eb360cd442945896d27281aa9eaf4e81a8211bd7becdd370c142921dd9b
7
- data.tar.gz: 398590b2d41f81d54218ef937354b73d6072d7f78f6e7d99f2c66f35a62f4c7febfe549852fb3c7027348329c8b2648d6965f40167de3588b54e3044c06650e3
6
+ metadata.gz: e233bfc0e3049d01fcd288975615b97d1e9dc6671c07cb47bd7a4703507af450d071704fb81e2ded5dcc25e63f703a2b8c2e3f38508b77abaf273c65ded39552
7
+ data.tar.gz: d8fca55a4d32fc4855d589264f2b7cdae89fec7b382d2f84fa98fa4eef0571f631de9c3fd4644f67cf15e15f26b8438c253f1e9480e1b32eb5340ac8c59466fd
@@ -1,8 +1,235 @@
1
- // tippy-min
2
- .tippy-box[data-animation=fade][data-state=hidden]{opacity:0}[data-tippy-root]{max-width:calc(100vw - 10px)}.tippy-box{position:relative;background-color:#333;color:#fff;border-radius:4px;font-size:14px;line-height:1.4;white-space:normal;outline:0;transition-property:transform,visibility,opacity}.tippy-box[data-placement^=top]>.tippy-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-arrow:before{bottom:-7px;left:0;border-width:8px 8px 0;border-top-color:initial;transform-origin:center top}.tippy-box[data-placement^=bottom]>.tippy-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:before{top:-7px;left:0;border-width:0 8px 8px;border-bottom-color:initial;transform-origin:center bottom}.tippy-box[data-placement^=left]>.tippy-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-arrow:before{border-width:8px 0 8px 8px;border-left-color:initial;right:-7px;transform-origin:center left}.tippy-box[data-placement^=right]>.tippy-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-arrow:before{left:-7px;border-width:8px 8px 8px 0;border-right-color:initial;transform-origin:center right}.tippy-box[data-inertia][data-state=visible]{transition-timing-function:cubic-bezier(.54,1.5,.38,1.11)}.tippy-arrow{width:16px;height:16px;color:#333}.tippy-arrow:before{content:"";position:absolute;border-color:transparent;border-style:solid}.tippy-content{position:relative;padding:5px 9px;z-index:1}
3
- // svg-arrow
4
- .tippy-box[data-placement^=top]>.tippy-svg-arrow{bottom:0}.tippy-box[data-placement^=top]>.tippy-svg-arrow:after,.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg{top:16px;transform:rotate(180deg)}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow{top:0}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg{bottom:16px}.tippy-box[data-placement^=left]>.tippy-svg-arrow{right:0}.tippy-box[data-placement^=left]>.tippy-svg-arrow:after,.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg{transform:rotate(90deg);top:calc(50% - 3px);left:11px}.tippy-box[data-placement^=right]>.tippy-svg-arrow{left:0}.tippy-box[data-placement^=right]>.tippy-svg-arrow:after,.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg{transform:rotate(-90deg);top:calc(50% - 3px);right:11px}.tippy-svg-arrow{width:16px;height:16px;fill:#333;text-align:initial}.tippy-svg-arrow,.tippy-svg-arrow>svg{position:absolute}
5
- // backdrop
6
- .tippy-box[data-placement^=top]>.tippy-backdrop{transform-origin:0 25%;border-radius:40% 40% 0 0}.tippy-box[data-placement^=top]>.tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-55%)}.tippy-box[data-placement^=top]>.tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%,-45%)}.tippy-box[data-placement^=bottom]>.tippy-backdrop{transform-origin:0 -50%;border-radius:0 0 30% 30%}.tippy-box[data-placement^=bottom]>.tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-45%)}.tippy-box[data-placement^=bottom]>.tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-50%)}.tippy-box[data-placement^=left]>.tippy-backdrop{transform-origin:50% 0;border-radius:50% 0 0 50%}.tippy-box[data-placement^=left]>.tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-box[data-placement^=left]>.tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-75%,-50%)}.tippy-box[data-placement^=right]>.tippy-backdrop{transform-origin:-50% 0;border-radius:0 50% 50% 0}.tippy-box[data-placement^=right]>.tippy-backdrop[data-state=visible]{transform:scale(1) translate(-50%,-50%)}.tippy-box[data-placement^=right]>.tippy-backdrop[data-state=hidden]{transform:scale(.2) translate(-25%,-50%)}.tippy-box[data-animatefill]{background-color:transparent!important}.tippy-backdrop{position:absolute;background-color:#333;border-radius:50%;width:calc(110% + 32px);left:50%;top:50%;z-index:-1;transition:all cubic-bezier(.46,.1,.52,.98);-webkit-backface-visibility:hidden;backface-visibility:hidden}.tippy-backdrop[data-state=hidden]{opacity:0}.tippy-backdrop:after{content:"";float:left;padding-top:100%}.tippy-backdrop+.tippy-content{transition-property:opacity;will-change:opacity}.tippy-backdrop+.tippy-content[data-state=hidden]{opacity:0}
7
- // border
8
- .tippy-box{border:1px transparent}.tippy-box[data-placement^=top]>.tippy-arrow:after{border-top-color:inherit;border-width:8px 8px 0;bottom:-8px;left:0}.tippy-box[data-placement^=bottom]>.tippy-arrow:after{border-bottom-color:inherit;border-width:0 8px 8px;top:-8px;left:0}.tippy-box[data-placement^=left]>.tippy-arrow:after{border-left-color:inherit;border-width:8px 0 8px 8px;right:-8px;top:0}.tippy-box[data-placement^=right]>.tippy-arrow:after{border-width:8px 8px 8px 0;left:-8px;top:0;border-right-color:inherit}.tippy-box[data-placement^=top]>.tippy-svg-arrow>svg:first-child:not(:last-child){top:17px}.tippy-box[data-placement^=bottom]>.tippy-svg-arrow>svg:first-child:not(:last-child){bottom:17px}.tippy-box[data-placement^=left]>.tippy-svg-arrow>svg:first-child:not(:last-child){left:12px}.tippy-box[data-placement^=right]>.tippy-svg-arrow>svg:first-child:not(:last-child){right:12px}.tippy-arrow{border-color:inherit}.tippy-arrow:after{content:"";z-index:-1;position:absolute;border-color:transparent;border-style:solid}
1
+ .tippy-box[data-animation="fade"][data-state="hidden"] {
2
+ opacity: 0;
3
+ }
4
+ [data-tippy-root] {
5
+ max-width: calc(100vw - 10px);
6
+ }
7
+ .tippy-box {
8
+ position: relative;
9
+ background-color: #333;
10
+ color: #fff;
11
+ border-radius: 4px;
12
+ font-size: 14px;
13
+ line-height: 1.4;
14
+ white-space: normal;
15
+ outline: 0;
16
+ transition-property: transform, visibility, opacity;
17
+ }
18
+ .tippy-box[data-placement^="top"] > .tippy-arrow {
19
+ bottom: 0;
20
+ }
21
+ .tippy-box[data-placement^="top"] > .tippy-arrow:before {
22
+ bottom: -7px;
23
+ left: 0;
24
+ border-width: 8px 8px 0;
25
+ border-top-color: initial;
26
+ transform-origin: center top;
27
+ }
28
+ .tippy-box[data-placement^="bottom"] > .tippy-arrow {
29
+ top: 0;
30
+ }
31
+ .tippy-box[data-placement^="bottom"] > .tippy-arrow:before {
32
+ top: -7px;
33
+ left: 0;
34
+ border-width: 0 8px 8px;
35
+ border-bottom-color: initial;
36
+ transform-origin: center bottom;
37
+ }
38
+ .tippy-box[data-placement^="left"] > .tippy-arrow {
39
+ right: 0;
40
+ }
41
+ .tippy-box[data-placement^="left"] > .tippy-arrow:before {
42
+ border-width: 8px 0 8px 8px;
43
+ border-left-color: initial;
44
+ right: -7px;
45
+ transform-origin: center left;
46
+ }
47
+ .tippy-box[data-placement^="right"] > .tippy-arrow {
48
+ left: 0;
49
+ }
50
+ .tippy-box[data-placement^="right"] > .tippy-arrow:before {
51
+ left: -7px;
52
+ border-width: 8px 8px 8px 0;
53
+ border-right-color: initial;
54
+ transform-origin: center right;
55
+ }
56
+ .tippy-box[data-inertia][data-state="visible"] {
57
+ transition-timing-function: cubic-bezier(0.54, 1.5, 0.38, 1.11);
58
+ }
59
+ .tippy-arrow {
60
+ width: 16px;
61
+ height: 16px;
62
+ color: #333;
63
+ }
64
+ .tippy-arrow:before {
65
+ content: "";
66
+ position: absolute;
67
+ border-color: transparent;
68
+ border-style: solid;
69
+ }
70
+ .tippy-content {
71
+ position: relative;
72
+ padding: 5px 9px;
73
+ z-index: 1;
74
+ }
75
+ .tippy-box[data-placement^="top"] > .tippy-svg-arrow {
76
+ bottom: 0;
77
+ }
78
+ .tippy-box[data-placement^="top"] > .tippy-svg-arrow:after,
79
+ .tippy-box[data-placement^="top"] > .tippy-svg-arrow > svg {
80
+ top: 16px;
81
+ transform: rotate(180deg);
82
+ }
83
+ .tippy-box[data-placement^="bottom"] > .tippy-svg-arrow {
84
+ top: 0;
85
+ }
86
+ .tippy-box[data-placement^="bottom"] > .tippy-svg-arrow > svg {
87
+ bottom: 16px;
88
+ }
89
+ .tippy-box[data-placement^="left"] > .tippy-svg-arrow {
90
+ right: 0;
91
+ }
92
+ .tippy-box[data-placement^="left"] > .tippy-svg-arrow:after,
93
+ .tippy-box[data-placement^="left"] > .tippy-svg-arrow > svg {
94
+ transform: rotate(90deg);
95
+ top: calc(50% - 3px);
96
+ left: 11px;
97
+ }
98
+ .tippy-box[data-placement^="right"] > .tippy-svg-arrow {
99
+ left: 0;
100
+ }
101
+ .tippy-box[data-placement^="right"] > .tippy-svg-arrow:after,
102
+ .tippy-box[data-placement^="right"] > .tippy-svg-arrow > svg {
103
+ transform: rotate(-90deg);
104
+ top: calc(50% - 3px);
105
+ right: 11px;
106
+ }
107
+ .tippy-svg-arrow {
108
+ width: 16px;
109
+ height: 16px;
110
+ fill: #333;
111
+ text-align: initial;
112
+ }
113
+ .tippy-svg-arrow,
114
+ .tippy-svg-arrow > svg {
115
+ position: absolute;
116
+ }
117
+ .tippy-box[data-placement^="top"] > .tippy-backdrop {
118
+ transform-origin: 0 25%;
119
+ border-radius: 40% 40% 0 0;
120
+ }
121
+ .tippy-box[data-placement^="top"] > .tippy-backdrop[data-state="visible"] {
122
+ transform: scale(1) translate(-50%, -55%);
123
+ }
124
+ .tippy-box[data-placement^="top"] > .tippy-backdrop[data-state="hidden"] {
125
+ transform: scale(0.2) translate(-50%, -45%);
126
+ }
127
+ .tippy-box[data-placement^="bottom"] > .tippy-backdrop {
128
+ transform-origin: 0 -50%;
129
+ border-radius: 0 0 30% 30%;
130
+ }
131
+ .tippy-box[data-placement^="bottom"] > .tippy-backdrop[data-state="visible"] {
132
+ transform: scale(1) translate(-50%, -45%);
133
+ }
134
+ .tippy-box[data-placement^="bottom"] > .tippy-backdrop[data-state="hidden"] {
135
+ transform: scale(0.2) translate(-50%);
136
+ }
137
+ .tippy-box[data-placement^="left"] > .tippy-backdrop {
138
+ transform-origin: 50% 0;
139
+ border-radius: 50% 0 0 50%;
140
+ }
141
+ .tippy-box[data-placement^="left"] > .tippy-backdrop[data-state="visible"] {
142
+ transform: scale(1) translate(-50%, -50%);
143
+ }
144
+ .tippy-box[data-placement^="left"] > .tippy-backdrop[data-state="hidden"] {
145
+ transform: scale(0.2) translate(-75%, -50%);
146
+ }
147
+ .tippy-box[data-placement^="right"] > .tippy-backdrop {
148
+ transform-origin: -50% 0;
149
+ border-radius: 0 50% 50% 0;
150
+ }
151
+ .tippy-box[data-placement^="right"] > .tippy-backdrop[data-state="visible"] {
152
+ transform: scale(1) translate(-50%, -50%);
153
+ }
154
+ .tippy-box[data-placement^="right"] > .tippy-backdrop[data-state="hidden"] {
155
+ transform: scale(0.2) translate(-25%, -50%);
156
+ }
157
+ .tippy-box[data-animatefill] {
158
+ background-color: transparent !important;
159
+ }
160
+ .tippy-backdrop {
161
+ position: absolute;
162
+ background-color: #333;
163
+ border-radius: 50%;
164
+ width: calc(110% + 32px);
165
+ left: 50%;
166
+ top: 50%;
167
+ z-index: -1;
168
+ transition: all cubic-bezier(0.46, 0.1, 0.52, 0.98);
169
+ -webkit-backface-visibility: hidden;
170
+ backface-visibility: hidden;
171
+ }
172
+ .tippy-backdrop[data-state="hidden"] {
173
+ opacity: 0;
174
+ }
175
+ .tippy-backdrop:after {
176
+ content: "";
177
+ float: left;
178
+ padding-top: 100%;
179
+ }
180
+ .tippy-backdrop + .tippy-content {
181
+ transition-property: opacity;
182
+ will-change: opacity;
183
+ }
184
+ .tippy-backdrop + .tippy-content[data-state="hidden"] {
185
+ opacity: 0;
186
+ }
187
+ .tippy-box {
188
+ border: 1px transparent;
189
+ }
190
+ .tippy-box[data-placement^="top"] > .tippy-arrow:after {
191
+ border-top-color: inherit;
192
+ border-width: 8px 8px 0;
193
+ bottom: -8px;
194
+ left: 0;
195
+ }
196
+ .tippy-box[data-placement^="bottom"] > .tippy-arrow:after {
197
+ border-bottom-color: inherit;
198
+ border-width: 0 8px 8px;
199
+ top: -8px;
200
+ left: 0;
201
+ }
202
+ .tippy-box[data-placement^="left"] > .tippy-arrow:after {
203
+ border-left-color: inherit;
204
+ border-width: 8px 0 8px 8px;
205
+ right: -8px;
206
+ top: 0;
207
+ }
208
+ .tippy-box[data-placement^="right"] > .tippy-arrow:after {
209
+ border-width: 8px 8px 8px 0;
210
+ left: -8px;
211
+ top: 0;
212
+ border-right-color: inherit;
213
+ }
214
+ .tippy-box[data-placement^="top"] > .tippy-svg-arrow > svg:first-child:not(:last-child) {
215
+ top: 17px;
216
+ }
217
+ .tippy-box[data-placement^="bottom"] > .tippy-svg-arrow > svg:first-child:not(:last-child) {
218
+ bottom: 17px;
219
+ }
220
+ .tippy-box[data-placement^="left"] > .tippy-svg-arrow > svg:first-child:not(:last-child) {
221
+ left: 12px;
222
+ }
223
+ .tippy-box[data-placement^="right"] > .tippy-svg-arrow > svg:first-child:not(:last-child) {
224
+ right: 12px;
225
+ }
226
+ .tippy-arrow {
227
+ border-color: inherit;
228
+ }
229
+ .tippy-arrow:after {
230
+ content: "";
231
+ z-index: -1;
232
+ position: absolute;
233
+ border-color: transparent;
234
+ border-style: solid;
235
+ }
@@ -43,7 +43,7 @@ export default class extends ApplicationController {
43
43
  * Make sure that the toggle happens after the event bubble so any listeners are able to
44
44
  * process before we overwrite the template nodes that are possibly updated and reinsert new nodes.
45
45
  */
46
- setTimeout(()=>{
46
+ setTimeout(() => {
47
47
  this.toggle(this.currentValue)
48
48
  })
49
49
  }
@@ -57,8 +57,10 @@ export default class extends ApplicationController {
57
57
 
58
58
  this.insertionTarget.childNodes.forEach(iNode => {
59
59
  if (iNode.getAttribute("data-toggleable-node-id") == targetNodeId) {
60
- child.outerHTML = iNode.outerHTML
61
- iNode.remove()
60
+ if (child.parentElement) {
61
+ child.outerHTML = iNode.outerHTML
62
+ iNode.remove()
63
+ }
62
64
  }
63
65
  })
64
66
  })
@@ -70,7 +72,7 @@ export default class extends ApplicationController {
70
72
  // Reinsert elements
71
73
  this.toggleableTargets.forEach((element) => {
72
74
  if (element.getAttribute("data-toggle-value") == value || (element.getAttribute("data-toggle-not-value") != null && element.getAttribute("data-toggle-not-value") != value)) {
73
- element.content.childNodes.forEach(node => this.setUniqueId(node))
75
+ element.content.childNodes.forEach(node => this.setUniqueId(node))
74
76
 
75
77
  let toggleContent = document.importNode(element.content, true)
76
78
  toggleContent.childNodes.forEach((child) => {
@@ -91,8 +93,8 @@ export default class extends ApplicationController {
91
93
  }
92
94
  }
93
95
 
94
- setUniqueId(node) {
95
- if(node.getAttribute("data-toggleable-node-id")) return;
96
+ setUniqueId(node) {
97
+ if (node.getAttribute("data-toggleable-node-id")) return;
96
98
  const dateString = Date.now().toString(36);
97
99
  const randomness = Math.random().toString(36).substring(2);
98
100
  node.setAttribute("data-toggleable-node-id", dateString + randomness)
data/lib/satis/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Satis
2
- VERSION = "2.1.20"
2
+ VERSION = "2.1.22"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: satis
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.20
4
+ version: 2.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom de Grunt
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-06-20 00:00:00.000000000 Z
11
+ date: 2024-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser