@wpic/ui 0.6.6 → 0.6.7

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
@@ -85,3 +85,7 @@ Import `@wpic/ui/style.css` alongside the components. No host Tailwind source sc
85
85
  ### Verification
86
86
 
87
87
  Run `npm run build` followed by `npm run test:semantic`. The browser tests use Google Chrome (`npx playwright install chrome` if needed). Open `/test-ui/semantic.html` with `npm run test:ui` for the standalone package showcase.
88
+
89
+ ## 0.6.7
90
+ - WModal: optional draggable, non-modal floating windows, bounded pointer/keyboard movement, focus restoration, localized close/move labels.
91
+ - Popovers inside modals inherit the overlay layer so selects and calendars remain visible.
package/COMPONENTS.md CHANGED
@@ -697,3 +697,8 @@ For a shorter metric card, use `compact`. Use `changePosition="label"` to align
697
697
  ### Localization options (0.6.6)
698
698
 
699
699
  WTable accepts `labels` (`loading`, `results`, `of`, `item`, `items`, `previous`, `next`) and `loadingSpinner=false` for plain loading text. Existing `emptyText` and `searchPlaceholder` remain available. WSelect accepts `searchPlaceholder`, `selectAllLabel`, `clearLabel` and `noResultsLabel`; WFilterBar forwards `selectLabels` to its selects. WDateRangePicker accepts `locale`, `applyLabel`, `previousMonthLabel`, `nextMonthLabel` in addition to translated `presets`, `ariaLabel`, `clearLabel` and `placeholder`.
700
+
701
+ WModal accepts `draggable` and `:modal="false"` for floating tools. Drag the title,
702
+ use arrow keys on its move handle (Shift for larger steps), or Home to recenter.
703
+ Pass `closeLabel` and `moveLabel` for localization. Close with Escape or the close
704
+ button. Use `v-if` to open/close; the parent can retain form values across openings.
@@ -5,20 +5,29 @@ type __VLS_Props = {
5
5
  zIndex?: string;
6
6
  hideClose?: boolean;
7
7
  noPadding?: boolean;
8
+ draggable?: boolean;
9
+ modal?: boolean;
10
+ closeLabel?: string;
11
+ moveLabel?: string;
8
12
  };
9
- declare var __VLS_5: {}, __VLS_11: {}, __VLS_13: {};
13
+ declare var __VLS_9: {}, __VLS_15: {}, __VLS_17: {};
10
14
  type __VLS_Slots = {} & {
11
- header?: (props: typeof __VLS_5) => any;
15
+ header?: (props: typeof __VLS_9) => any;
12
16
  } & {
13
- default?: (props: typeof __VLS_11) => any;
17
+ default?: (props: typeof __VLS_15) => any;
14
18
  } & {
15
- footer?: (props: typeof __VLS_13) => any;
19
+ footer?: (props: typeof __VLS_17) => any;
16
20
  };
17
21
  declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
18
22
  close: () => any;
19
23
  }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
20
24
  onClose?: (() => any) | undefined;
21
- }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
25
+ }>, {
26
+ closeLabel: string;
27
+ draggable: boolean;
28
+ modal: boolean;
29
+ moveLabel: string;
30
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
22
31
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
23
32
  export default _default;
24
33
  type __VLS_WithSlots<T, S> = T & {