nuxt-ui-tools 1.22.0 → 1.22.1

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/module.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "configKey": "nuxtUiTools",
6
6
  "docs": "https://ui.nuxt.com/docs/getting-started/installation/nuxt",
7
7
  "name": "nuxt-ui-tools",
8
- "version": "1.22.0",
8
+ "version": "1.22.1",
9
9
  "builder": {
10
10
  "@nuxt/module-builder": "1.0.3",
11
11
  "unbuild": "unknown"
@@ -145,6 +145,19 @@ onBeforeUnmount(() => unregister?.());
145
145
  v-if="status || page.dirtyCheck.value || $slots.actions"
146
146
  :class="mergeFormUiClass('ms-auto -my-1.5 flex items-center gap-2', pageUi?.sectionActions)"
147
147
  >
148
+ <slot name="actions" :section />
149
+ <UButton
150
+ v-if="page.dirtyCheck.value"
151
+ type="button"
152
+ color="neutral"
153
+ variant="ghost"
154
+ size="sm"
155
+ icon="i-lucide-rotate-ccw"
156
+ :label="t('form.page.resetSection')"
157
+ :class="mergeFormUiClass(dirty ? void 0 : 'invisible', pageUi?.sectionReset)"
158
+ :data-form-page-reset="dirty ? '' : void 0"
159
+ @click="page.resetSection(section.key)"
160
+ />
148
161
  <UBadge
149
162
  v-if="status"
150
163
  :color="status.color"
@@ -160,19 +173,6 @@ onBeforeUnmount(() => unregister?.());
160
173
  :data-form-page-status="section.status"
161
174
  :data-form-page-optional="section.status === 'optional' ? '' : void 0"
162
175
  />
163
- <slot name="actions" :section />
164
- <UButton
165
- v-if="page.dirtyCheck.value"
166
- type="button"
167
- color="neutral"
168
- variant="ghost"
169
- size="sm"
170
- icon="i-lucide-rotate-ccw"
171
- :label="t('form.page.resetSection')"
172
- :class="mergeFormUiClass(dirty ? void 0 : 'invisible', pageUi?.sectionReset)"
173
- :data-form-page-reset="dirty ? '' : void 0"
174
- @click="page.resetSection(section.key)"
175
- />
176
176
  </div>
177
177
  </header>
178
178
  <div
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nuxt-ui-tools",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "Nuxt module and runtime toolkit for UI-heavy Nuxt applications",
5
5
  "homepage": "https://github.com/ChronicStone/nuxt-ui-tools#readme",
6
6
  "bugs": "https://github.com/ChronicStone/nuxt-ui-tools/issues",