domma-cms 1.26.3 → 1.27.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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.27.0] - 2026-10-31
4
+
5
+ - Forms: a form can now make an entrance. Settings > Entrance animation plays any of the show/hide animations - Fade to Bubble pop - on the whole form as a visitor first scrolls to it, with a Speed and a Preview. It plays once (not again on each step of a multi-step form) and never for visitors who prefer reduced motion.
6
+
3
7
  ## [1.26.3] - 2026-10-31
4
8
 
5
9
  - Admin: keep grouped option cards with faint neutral headers, lighter dividers and thin muted accents. Add missing tab icons and wrap tab rows on narrow screens.
package/admin/index.html CHANGED
@@ -90,7 +90,7 @@
90
90
  <script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
91
91
 
92
92
  <!-- Form Logic Engine - needed for conditional logic preview -->
93
- <script src="/public/js/form-logic-engine.js?v=20261031-field-anims"></script>
93
+ <script src="/public/js/form-logic-engine.js?v=20261031-form-entrance-engine"></script>
94
94
 
95
95
  <!-- Admin App (ES module entry) -->
96
96
  <script type="module" src="/admin/js/app.js"></script>
@@ -116,6 +116,9 @@ Subject Prefix: [Contact Form]</code></pre>
116
116
  <p><strong>Speed</strong> sets how long it takes; <em>Default</em> uses each effect's own timing. Click
117
117
  <strong>Preview</strong> to play it on a sample. Visitors who ask their device to reduce motion see the
118
118
  field switch straight away.</p>
119
+ <p>The whole form can make an entrance too: on the <strong>Settings</strong> tab, pick an
120
+ <strong>Entrance animation</strong> (the same list) and a Speed. It plays once, as the visitor scrolls to the
121
+ form.</p>
119
122
 
120
123
  <h3>File uploads</h3>
121
124
  <p>A <strong>File</strong> field is a drop area: visitors drop a file on it, browse for one or paste it, and
@@ -154,6 +154,28 @@
154
154
  <label class="form-label" for="setting-form-class">CSS classes <span data-help-title="CSS classes" data-help="Your own class names, separated by spaces, added to the form element so you can style it in Custom CSS. Each field has its own CSS classes box too, and the submit button has one under Submit Button."></span></label>
155
155
  <input id="setting-form-class" type="text" class="form-input" placeholder="contact-form is-compact" autocomplete="off" spellcheck="false">
156
156
  <p class="form-hint text-muted" style="margin-top:.3rem;font-size:.8rem;">Letters, digits, hyphens and underscores; no dots.</p>
157
+ </div>
158
+ <!-- settings.entrance / entranceDuration - options filled from
159
+ FormLogicEngine.FIELD_TRANSITIONS by form-editor.js. -->
160
+ <div class="row" style="align-items:flex-end">
161
+ <div class="col-6 mb-3">
162
+ <label class="form-label" for="setting-entrance">Entrance animation <span data-help-title="Entrance animation" data-help="How the whole form appears when a visitor scrolls to it - the same animations fields can use when they show and hide, from Fade to Bubble pop. None shows it straight away. Visitors who ask their device to reduce motion always see it straight away."></span></label>
163
+ <select id="setting-entrance" class="form-select"></select>
164
+ </div>
165
+ <div class="col-6 mb-3" id="setting-entrance-speed-group">
166
+ <label class="form-label" for="setting-entrance-duration">Speed <span data-help-title="Entrance speed" data-help="How long the entrance takes. Default uses the animation's own timing."></span></label>
167
+ <select id="setting-entrance-duration" class="form-select">
168
+ <option value="">Default</option>
169
+ <option value="200">Fast (200ms)</option>
170
+ <option value="350">Medium (350ms)</option>
171
+ <option value="600">Slow (600ms)</option>
172
+ <option value="1000">Very slow (1s)</option>
173
+ </select>
174
+ </div>
175
+ <div class="col-12 mb-3" id="setting-entrance-preview-group" style="display:flex;align-items:center;gap:.6rem;">
176
+ <button type="button" id="setting-entrance-preview" class="btn btn-sm btn-ghost">Preview</button>
177
+ <span id="setting-entrance-sample" style="display:inline-block;padding:.35rem .8rem;border:1px solid var(--dm-border);border-radius:var(--dm-radius);font-size:.8rem;background:var(--dm-surface);">Sample form</span>
178
+ </div>
157
179
  </div>
158
180
  </div>
159
181
  </div>