@codemonster-ru/vueforge 0.54.0 → 0.55.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/README.md CHANGED
@@ -27,6 +27,7 @@ import {
27
27
  DefaultTheme,
28
28
  Button,
29
29
  Input,
30
+ InlineEdit,
30
31
  SearchInput,
31
32
  PasswordInput,
32
33
  OtpInput,
@@ -88,6 +89,7 @@ app.use(VueForge, {
88
89
  <FormField label="Name" hint="Required field">
89
90
  <Input v-model="name" placeholder="Your name" />
90
91
  </FormField>
92
+ <InlineEdit v-model="name" placeholder="No name" />
91
93
  <SearchInput v-model="query" placeholder="Search components" clearable />
92
94
  <PasswordInput v-model="password" placeholder="Enter password" show-strength />
93
95
  <OtpInput v-model="otp" :length="6" />
@@ -202,6 +204,7 @@ app.use(VueForge, {
202
204
  - ToastContainer
203
205
  - Alert
204
206
  - Input
207
+ - InlineEdit
205
208
  - SearchInput
206
209
  - PasswordInput
207
210
  - OtpInput
@@ -251,6 +254,7 @@ app.use(VueForge, {
251
254
  Input / Search / Password / Textarea (quick API):
252
255
 
253
256
  - `Input`: single-line control, supports `v-model`, `size`, `variant`, `disabled`, `readonly`.
257
+ - `InlineEdit`: inline value editing with view/edit states, save/cancel actions, and text/number modes.
254
258
  - `SearchInput`: search-focused control with `debounce`, `clearable`, `loading`, `size`, and `variant`.
255
259
  - `PasswordInput`: password control, supports visibility toggle, strength meter, CapsLock hint, `size`, and `variant`.
256
260
  - `OtpInput`: one-time code control, supports fixed length, paste handling, numeric/alphanumeric modes, `size`, and `variant`.
@@ -260,7 +264,7 @@ Input / Search / Password / Textarea (quick API):
260
264
  - `Textarea`: multi-line control, same as Input plus `rows`.
261
265
  - `TagInput`: token/tag control, supports `v-model` (array), suggestions, custom tags, `maxTags`, `clearable`, `size`, `variant`.
262
266
  - `FilterChips`: compact chip-based filter toggles with single/multiple selection modes and optional clear action.
263
- - `SearchInput`, `OtpInput`, `ColorPicker`, `MaskedInput`, `Checkbox`, `Select`, `Autocomplete`, `MultiSelect`, `TagInput`, `DatePicker`, `Calendar`, `DateRangePicker`, `DateTimePicker`, `Pagination`, `DataTable`, `SegmentedControl`, and `TreeSelect` also support `variant: 'filled' | 'outlined'`.
267
+ - `SearchInput`, `InlineEdit`, `OtpInput`, `ColorPicker`, `MaskedInput`, `Checkbox`, `Select`, `Autocomplete`, `MultiSelect`, `TagInput`, `DatePicker`, `Calendar`, `DateRangePicker`, `DateTimePicker`, `Pagination`, `DataTable`, `SegmentedControl`, and `TreeSelect` also support `variant: 'filled' | 'outlined'`.
264
268
 
265
269
  ## FormField
266
270
 
@@ -291,6 +295,53 @@ Example:
291
295
  </FormField>
292
296
  ```
293
297
 
298
+ ## InlineEdit
299
+
300
+ Props:
301
+
302
+ - `modelValue?: string | number | null` (v-model)
303
+ - `type?: 'text' | 'number'` (default `text`)
304
+ - `placeholder?: string`
305
+ - `disabled?: boolean`
306
+ - `readonly?: boolean`
307
+ - `size?: 'small' | 'normal' | 'large'` (default `normal`)
308
+ - `variant?: 'filled' | 'outlined'` (default `filled`)
309
+ - `editLabel?: string` (default `Edit`)
310
+ - `saveLabel?: string` (default `Save`)
311
+ - `cancelLabel?: string` (default `Cancel`)
312
+
313
+ Events:
314
+
315
+ - `update:modelValue`
316
+ - `save`
317
+ - `cancel`
318
+ - `start`
319
+ - `end`
320
+ - `focus`
321
+ - `blur`
322
+
323
+ Example:
324
+
325
+ ```vue
326
+ <InlineEdit v-model="projectName" placeholder="No project name" />
327
+ <InlineEdit v-model="budget" type="number" variant="outlined" />
328
+ ```
329
+
330
+ ### InlineEdit tokens
331
+
332
+ Component tokens (override via `theme.overrides.components.inlineEdit`):
333
+
334
+ - `gap`, `fontSize`, `padding`
335
+ - `borderRadius`, `borderColor`
336
+ - `backgroundColor`, `textColor`, `placeholderColor`
337
+ - `focusBorderColor`, `focusRingShadow`, `hoverBorderColor`, `disabledOpacity`
338
+ - `actionsGap`
339
+ - `buttonPadding`, `buttonRadius`, `buttonBorderColor`
340
+ - `buttonBackgroundColor`, `buttonTextColor`, `buttonHoverBackgroundColor`
341
+ - `cancelButtonBackgroundColor`, `cancelButtonTextColor`, `cancelButtonBorderColor`
342
+ - `small.fontSize`, `small.padding`, `small.buttonPadding`
343
+ - `large.fontSize`, `large.padding`, `large.buttonPadding`
344
+
294
345
  Note: default filled backgrounds for Input/Select/Textarea use `controls.backgroundColor` (defaults to `bgSoftColor`). Set it to `bgColor` to disable soft backgrounds.
295
346
 
296
347
  ## Autocomplete
@@ -2220,7 +2271,7 @@ VueForge exposes design tokens as CSS variables generated from the theme preset.
2220
2271
  Typed tokens:
2221
2272
 
2222
2273
  - `ThemeTokens`/`ThemeOptions`/`ThemePreset` are exported for type-safe theming in TS.
2223
- - `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/searchInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/select/autocomplete/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/badge/chip/filterChips/avatar/datatable/slider/stepper/rating/tree/treeselect/virtualScroller).
2274
+ - `components.*` accepts component-specific tokens (typed keys: button/card/checkbox/radio/tabs/accordion/toast/alert/input/inlineEdit/searchInput/passwordInput/otpInput/colorPicker/maskedInput/numberInput/formField/textarea/link/breadcrumbs/menu/modal/confirmDialog/drawer/popover/dropdown/contextMenu/commandPalette/select/autocomplete/multiselect/taginput/datepicker/calendar/daterangepicker/timepicker/datetimepicker/pagination/switch/segmentedControl/tooltip/skeleton/progress/badge/chip/filterChips/avatar/datatable/slider/stepper/rating/tree/treeselect/virtualScroller).
2224
2275
 
2225
2276
  Default core values (from `DefaultTheme`):
2226
2277