@wpic/ui 0.9.60 → 0.9.61
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 +4 -0
- package/COMPONENTS.md +7 -3
- package/dist/components/WButton.vue.d.ts +1 -1
- package/dist/components/WDatePicker.vue.d.ts +1 -1
- package/dist/components/WMonthPicker.vue.d.ts +1 -1
- package/dist/components/WPagination.vue.d.ts +7 -0
- package/dist/components/WSplitButton.vue.d.ts +1 -1
- package/dist/components/WTagInput.vue.d.ts +1 -1
- package/dist/wpic-ui.cjs +2 -2
- package/dist/wpic-ui.css +7 -1
- package/dist/wpic-ui.js +25 -14
- package/package.json +1 -1
- package/src/style.css +7 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
- Add `WComboInput`: a free-text `WInput` with a `WOptionPopover` suggestion list, for fields that are historically free text but should offer previously-used values (unlike `WSelect`'s `creatable` mode, typing and blurring always commits — no need to click a "Create …" row).
|
|
4
4
|
- `WOptionPopover` options now select on `mousedown` instead of `click`, so a text input driving the popover doesn't blur-close it before the click registers.
|
|
5
5
|
|
|
6
|
+
## 0.9.61
|
|
7
|
+
|
|
8
|
+
- `WBadge` uses normal-weight labels in light mode instead of semibold labels.
|
|
9
|
+
|
|
6
10
|
## 0.9.48
|
|
7
11
|
|
|
8
12
|
- WDateRangePicker: expose `popoverAutoPlacement` to choose the side with the most available space. Existing placement behavior stays the default.
|
package/COMPONENTS.md
CHANGED
|
@@ -165,7 +165,7 @@ count?: boolean // centered compact counter
|
|
|
165
165
|
theme?: 'auto' | 'light' | 'dark'
|
|
166
166
|
```
|
|
167
167
|
|
|
168
|
-
Light badges have stronger fills and
|
|
168
|
+
Light badges have stronger fills and normal-weight labels. Default badges use `text-xs`, top padding `0.125rem` and bottom padding `2.5px`. `primary` retains its inverted neutral treatment.
|
|
169
169
|
|
|
170
170
|
---
|
|
171
171
|
|
|
@@ -199,7 +199,7 @@ Unlike `ghost`, it does not use an opaque theme surface on hover.
|
|
|
199
199
|
|
|
200
200
|
**Props:**
|
|
201
201
|
```ts
|
|
202
|
-
variant?: 'primary' | 'secondary' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
|
|
202
|
+
variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'text' | 'outline'
|
|
203
203
|
size?: 'xs' | 'sm' | 'md' | 'lg'
|
|
204
204
|
loading?: boolean
|
|
205
205
|
disabled?: boolean
|
|
@@ -425,6 +425,9 @@ anchor: HTMLElement | null
|
|
|
425
425
|
modelValue: number
|
|
426
426
|
total: number
|
|
427
427
|
limit?: number
|
|
428
|
+
disabled?: boolean
|
|
429
|
+
locale?: string
|
|
430
|
+
labels?: { page?: string; previous?: string; next?: string }
|
|
428
431
|
syncUrl?: boolean // default: true; automatically false inside WModal
|
|
429
432
|
queryParam?: string // default: 'page'
|
|
430
433
|
```
|
|
@@ -488,7 +491,7 @@ slot and the menu entries via `options`.
|
|
|
488
491
|
**Props:**
|
|
489
492
|
```ts
|
|
490
493
|
options: WSplitButtonOption[] // { value: string, label: string, icon?: object | Function, disabled?: boolean }
|
|
491
|
-
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
|
|
494
|
+
variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline'
|
|
492
495
|
size?: 'xs' | 'sm' | 'md' | 'lg'
|
|
493
496
|
icon?: object | Function // icon for the primary button
|
|
494
497
|
disabled?: boolean
|
|
@@ -692,6 +695,7 @@ pageSize?: number
|
|
|
692
695
|
searchPlaceholder?: string
|
|
693
696
|
rowClickable?: boolean
|
|
694
697
|
showHeader?: boolean
|
|
698
|
+
showFooter?: boolean
|
|
695
699
|
columnDividers?: boolean // vertical rules between cells, in the row divider colour; default false
|
|
696
700
|
```
|
|
697
701
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
type __VLS_Props = {
|
|
2
|
-
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'text' | 'outline';
|
|
2
|
+
variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'text' | 'outline';
|
|
3
3
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
4
4
|
loading?: boolean;
|
|
5
5
|
disabled?: boolean;
|
|
@@ -33,9 +33,9 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
33
33
|
placeholder: string;
|
|
34
34
|
clearable: boolean;
|
|
35
35
|
clearLabel: string;
|
|
36
|
+
locale: string;
|
|
36
37
|
popoverFlip: boolean;
|
|
37
38
|
ariaLabel: string;
|
|
38
|
-
locale: string;
|
|
39
39
|
weekStartsOn: 0 | 1;
|
|
40
40
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
41
41
|
declare const _default: typeof __VLS_export;
|
|
@@ -17,8 +17,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
17
17
|
disabled: boolean;
|
|
18
18
|
modelValue: string | null;
|
|
19
19
|
placeholder: string;
|
|
20
|
-
ariaLabel: string;
|
|
21
20
|
locale: string;
|
|
21
|
+
ariaLabel: string;
|
|
22
22
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
23
23
|
declare const _default: typeof __VLS_export;
|
|
24
24
|
export default _default;
|
|
@@ -6,7 +6,7 @@ export interface WSplitButtonOption {
|
|
|
6
6
|
}
|
|
7
7
|
type __VLS_Props = {
|
|
8
8
|
options: WSplitButtonOption[];
|
|
9
|
-
variant?: 'primary' | 'secondary' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline';
|
|
9
|
+
variant?: 'primary' | 'secondary' | 'secondary-outline' | 'subtle' | 'destructive' | 'ghost' | 'ghost-transparent' | 'outline';
|
|
10
10
|
size?: 'xs' | 'sm' | 'md' | 'lg';
|
|
11
11
|
icon?: object | Function;
|
|
12
12
|
disabled?: boolean;
|
|
@@ -53,8 +53,8 @@ declare const __VLS_export: import('vue').DefineComponent<__VLS_Props, {}, {}, {
|
|
|
53
53
|
}>, {
|
|
54
54
|
modelValue: WTagItem[];
|
|
55
55
|
placeholder: string;
|
|
56
|
-
creatable: boolean;
|
|
57
56
|
locale: string;
|
|
57
|
+
creatable: boolean;
|
|
58
58
|
locales: string[];
|
|
59
59
|
recentKey: string;
|
|
60
60
|
labelRecent: string;
|