vueless 0.0.535 → 0.0.537
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/package.json +1 -1
- package/types.ts +7 -0
- package/ui.button/UButton.vue +1 -1
- package/ui.button/types.ts +1 -1
- package/ui.button-link/ULink.vue +1 -1
- package/ui.button-link/types.ts +1 -1
- package/ui.button-toggle/UToggle.vue +1 -1
- package/ui.button-toggle/types.ts +1 -1
- package/ui.button-toggle-item/UToggleItem.vue +1 -1
- package/ui.button-toggle-item/types.ts +1 -1
- package/ui.container-accordion/UAccordion.vue +1 -1
- package/ui.container-accordion/types.ts +1 -1
- package/ui.container-card/UCard.vue +1 -1
- package/ui.container-card/types.ts +1 -1
- package/ui.container-col/UCol.vue +1 -1
- package/ui.container-col/types.ts +1 -1
- package/ui.container-divider/UDivider.vue +1 -1
- package/ui.container-divider/types.ts +1 -1
- package/ui.container-group/UGroup.vue +1 -1
- package/ui.container-group/types.ts +1 -1
- package/ui.container-modal/UModal.vue +1 -1
- package/ui.container-modal/types.ts +1 -1
- package/ui.container-modal-confirm/UModalConfirm.vue +1 -1
- package/ui.container-modal-confirm/types.ts +1 -1
- package/ui.container-page/UPage.vue +1 -1
- package/ui.container-page/types.ts +1 -1
- package/ui.container-row/URow.vue +1 -1
- package/ui.container-row/types.ts +1 -1
- package/ui.data-table/UTable.vue +6 -6
- package/ui.data-table/config.ts +5 -4
- package/ui.data-table/useAttrs.ts +3 -2
- package/ui.form-checkbox/UCheckbox.vue +82 -187
- package/ui.form-checkbox/storybook/Docs.mdx +2 -2
- package/ui.form-checkbox/storybook/{stories.js → stories.ts} +14 -6
- package/ui.form-checkbox/types.ts +106 -0
- package/ui.form-checkbox/useAttrs.ts +35 -0
- package/ui.form-checkbox-group/UCheckboxGroup.vue +63 -137
- package/ui.form-checkbox-group/storybook/Docs.mdx +2 -2
- package/ui.form-checkbox-group/storybook/{stories.js → stories.ts} +19 -6
- package/ui.form-checkbox-group/types.ts +83 -0
- package/ui.form-checkbox-group/useAttrs.ts +18 -0
- package/ui.form-checkbox-multi-state/UCheckboxMultiState.vue +34 -97
- package/ui.form-checkbox-multi-state/storybook/Docs.mdx +2 -2
- package/ui.form-checkbox-multi-state/storybook/{stories.js → stories.ts} +16 -5
- package/ui.form-checkbox-multi-state/types.ts +71 -0
- package/ui.form-checkbox-multi-state/useAttrs.ts +41 -0
- package/ui.form-select/config.js +3 -3
- package/ui.image-avatar/UAvatar.vue +1 -1
- package/ui.image-avatar/types.ts +1 -1
- package/ui.image-icon/UIcon.vue +1 -1
- package/ui.image-icon/types.ts +1 -1
- package/ui.loader/ULoader.vue +1 -1
- package/ui.loader/types.ts +1 -1
- package/ui.loader-overlay/ULoaderOverlay.vue +1 -1
- package/ui.loader-overlay/types.ts +1 -1
- package/ui.loader-progress/ULoaderProgress.vue +1 -1
- package/ui.loader-progress/types.ts +1 -1
- package/ui.navigation-pagination/UPagination.vue +1 -1
- package/ui.navigation-pagination/types.ts +1 -1
- package/ui.navigation-progress/StepperProgress.vue +1 -1
- package/ui.navigation-progress/UProgress.vue +1 -1
- package/ui.navigation-progress/types.ts +2 -2
- package/ui.navigation-tab/UTab.vue +1 -1
- package/ui.navigation-tab/types.ts +1 -1
- package/ui.navigation-tabs/UTabs.vue +1 -1
- package/ui.navigation-tabs/types.ts +1 -1
- package/ui.other-dot/UDot.vue +1 -1
- package/ui.other-dot/types.ts +1 -1
- package/ui.text-alert/UAlert.vue +1 -1
- package/ui.text-alert/types.ts +1 -1
- package/ui.text-badge/UBadge.vue +1 -1
- package/ui.text-badge/types.ts +1 -1
- package/ui.text-block/UText.vue +1 -1
- package/ui.text-block/types.ts +1 -1
- package/ui.text-empty/UEmpty.vue +1 -1
- package/ui.text-empty/types.ts +1 -1
- package/ui.text-file/UFile.vue +1 -1
- package/ui.text-file/types.ts +1 -1
- package/ui.text-files/UFiles.vue +1 -1
- package/ui.text-files/types.ts +1 -1
- package/ui.text-header/UHeader.vue +1 -1
- package/ui.text-header/types.ts +1 -1
- package/ui.text-money/UMoney.vue +1 -1
- package/ui.text-money/types.ts +1 -1
- package/ui.text-notify/UNotify.vue +1 -1
- package/ui.text-notify/types.ts +1 -1
- package/web-types.json +147 -184
- package/ui.form-checkbox/useAttrs.js +0 -23
- package/ui.form-checkbox-group/useAttrs.js +0 -15
- package/ui.form-checkbox-multi-state/useAttrs.js +0 -28
- /package/ui.form-checkbox/{config.js → config.ts} +0 -0
- /package/ui.form-checkbox/{constants.js → constants.ts} +0 -0
- /package/ui.form-checkbox-group/{config.js → config.ts} +0 -0
- /package/ui.form-checkbox-group/{constants.js → constants.ts} +0 -0
- /package/ui.form-checkbox-multi-state/{config.js → config.ts} +0 -0
- /package/ui.form-checkbox-multi-state/{constants.js → constants.ts} +0 -0
package/package.json
CHANGED
package/types.ts
CHANGED
|
@@ -41,6 +41,9 @@ import UTabConfig from "./ui.navigation-tab/config.ts";
|
|
|
41
41
|
import UTabsConfig from "./ui.navigation-tabs/config.ts";
|
|
42
42
|
import UAvatarConfig from "./ui.image-avatar/config.ts";
|
|
43
43
|
import UIconConfig from "./ui.image-icon/config.ts";
|
|
44
|
+
import UCheckboxConfig from "./ui.form-checkbox/config.ts";
|
|
45
|
+
import UCheckboxGroupConfig from "./ui.form-checkbox-group/config.ts";
|
|
46
|
+
import UCheckboxMultiStateConfig from "./ui.form-checkbox-multi-state/config.ts";
|
|
44
47
|
|
|
45
48
|
import type { ComputedRef, MaybeRef, Ref } from "vue";
|
|
46
49
|
import type { Props } from "tippy.js";
|
|
@@ -152,6 +155,7 @@ export interface Config extends ThemeConfig {
|
|
|
152
155
|
}
|
|
153
156
|
|
|
154
157
|
export type UnknownObject = Record<string, unknown>;
|
|
158
|
+
export type UnknownArray = Array<unknown>;
|
|
155
159
|
export type ComponentNames = keyof Components; // keys union
|
|
156
160
|
export type Strategies = "merge" | "replace" | "override";
|
|
157
161
|
export type Gray = "gray";
|
|
@@ -217,6 +221,9 @@ export interface Components {
|
|
|
217
221
|
UTabs?: Partial<typeof UTabsConfig>;
|
|
218
222
|
UAvatar?: Partial<typeof UAvatarConfig>;
|
|
219
223
|
UIcon?: Partial<typeof UIconConfig>;
|
|
224
|
+
UCheckbox?: Partial<typeof UCheckboxConfig>;
|
|
225
|
+
UCheckboxGroup?: Partial<typeof UCheckboxGroupConfig>;
|
|
226
|
+
UCheckboxMultiState?: Partial<typeof UCheckboxMultiStateConfig>;
|
|
220
227
|
}
|
|
221
228
|
|
|
222
229
|
export interface Directives {
|
package/ui.button/UButton.vue
CHANGED
package/ui.button/types.ts
CHANGED
package/ui.button-link/ULink.vue
CHANGED
package/ui.button-link/types.ts
CHANGED
package/ui.data-table/UTable.vue
CHANGED
|
@@ -205,14 +205,14 @@ const {
|
|
|
205
205
|
bodyRowDateDividerAttrs,
|
|
206
206
|
headerCellBaseAttrs,
|
|
207
207
|
headerCellCheckboxAttrs,
|
|
208
|
-
|
|
208
|
+
headerActionsCheckboxAttrs,
|
|
209
209
|
stickyHeaderCheckboxAttrs,
|
|
210
210
|
headerCheckboxAttrs,
|
|
211
211
|
headerCounterAttrs,
|
|
212
212
|
bodyEmptyStateAttrs,
|
|
213
213
|
bodyDateDividerAttrs,
|
|
214
214
|
bodyCellDateDividerAttrs,
|
|
215
|
-
|
|
215
|
+
headerActionsCounterAttrs,
|
|
216
216
|
stickyHeaderCounterAttrs,
|
|
217
217
|
stickyHeaderLoaderAttrs,
|
|
218
218
|
tableAttrs,
|
|
@@ -496,14 +496,14 @@ defineExpose({
|
|
|
496
496
|
v-model="selectAll"
|
|
497
497
|
size="md"
|
|
498
498
|
:partial="!isSelectedAllRows"
|
|
499
|
-
v-bind="
|
|
499
|
+
v-bind="headerActionsCheckboxAttrs"
|
|
500
500
|
:data-test="`${dataTest}-select-all`"
|
|
501
501
|
/>
|
|
502
502
|
</div>
|
|
503
503
|
|
|
504
504
|
<div
|
|
505
505
|
v-if="selectedRows.length"
|
|
506
|
-
v-bind="
|
|
506
|
+
v-bind="headerActionsCounterAttrs"
|
|
507
507
|
v-text="selectedRows.length"
|
|
508
508
|
/>
|
|
509
509
|
|
|
@@ -529,14 +529,14 @@ defineExpose({
|
|
|
529
529
|
v-model="selectAll"
|
|
530
530
|
size="md"
|
|
531
531
|
:partial="!isSelectedAllRows"
|
|
532
|
-
v-bind="
|
|
532
|
+
v-bind="headerActionsCheckboxAttrs"
|
|
533
533
|
:data-test="`${dataTest}-select-all`"
|
|
534
534
|
/>
|
|
535
535
|
</div>
|
|
536
536
|
|
|
537
537
|
<div
|
|
538
538
|
v-if="selectedRows.length"
|
|
539
|
-
v-bind="
|
|
539
|
+
v-bind="headerActionsCounterAttrs"
|
|
540
540
|
v-text="selectedRows.length"
|
|
541
541
|
/>
|
|
542
542
|
|
package/ui.data-table/config.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default /*tw*/ {
|
|
2
2
|
wrapper: "relative w-full overflow-auto",
|
|
3
3
|
headerCounterBase: "mr-1.5 pr-1.5 font-medium text-sm text-gray-900",
|
|
4
|
-
stickyHeader: "fixed top-0 flex items-center z-30 overflow-hidden rounded-none
|
|
4
|
+
stickyHeader: "fixed top-0 flex items-center z-30 overflow-hidden border rounded-none",
|
|
5
5
|
stickyHeaderRow: "border-gray-200 bg-white",
|
|
6
6
|
stickyHeaderCell: "flex-none whitespace-nowrap",
|
|
7
7
|
stickyHeaderCheckbox: "{UCheckbox}",
|
|
@@ -14,9 +14,10 @@ export default /*tw*/ {
|
|
|
14
14
|
},
|
|
15
15
|
},
|
|
16
16
|
stickyHeaderLoader: "{ULoaderProgress}",
|
|
17
|
-
stickyHeaderActions: "rounded-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
stickyHeaderActions: "rounded-none",
|
|
18
|
+
headerActions: "rounded-t-dynamic border-blue-200 bg-blue-50",
|
|
19
|
+
headerActionsCheckbox: "{UCheckbox}",
|
|
20
|
+
headerActionsCounter: "-ml-1.5",
|
|
20
21
|
tableWrapper: "border border-gray-200 rounded-dynamic bg-white",
|
|
21
22
|
table: "min-w-full border-none text-sm w-full table-auto",
|
|
22
23
|
header: "border-b border-gray-200",
|
|
@@ -25,6 +25,7 @@ export default function useAttrs(
|
|
|
25
25
|
|
|
26
26
|
const extendingKeys = [
|
|
27
27
|
"headerCounterBase",
|
|
28
|
+
"headerActions",
|
|
28
29
|
"stickyHeaderActions",
|
|
29
30
|
"stickyHeaderRow",
|
|
30
31
|
"stickyFooter",
|
|
@@ -42,7 +43,7 @@ export default function useAttrs(
|
|
|
42
43
|
const classes = [];
|
|
43
44
|
|
|
44
45
|
if (isShownActionsHeader.value) {
|
|
45
|
-
classes.push(extendingKeysClasses.
|
|
46
|
+
classes.push(extendingKeysClasses.headerActions.value);
|
|
46
47
|
}
|
|
47
48
|
|
|
48
49
|
if (isShownActionsHeader.value && isHeaderSticky.value) {
|
|
@@ -65,7 +66,7 @@ export default function useAttrs(
|
|
|
65
66
|
stickyHeaderCounter: {
|
|
66
67
|
base: computed(() => [extendingKeysClasses.headerCounterBase.value]),
|
|
67
68
|
},
|
|
68
|
-
|
|
69
|
+
headerActionsCounter: {
|
|
69
70
|
base: computed(() => [extendingKeysClasses.headerCounterBase.value]),
|
|
70
71
|
},
|
|
71
72
|
headerCellCheckbox: {
|