sprintify-ui 0.6.81 → 0.6.83
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/sprintify-ui.es.js +15301 -15194
- package/dist/style.css +1 -1
- package/dist/types/components/BaseActionItem.vue.d.ts +31 -0
- package/dist/types/components/BaseActionItemButton.vue.d.ts +32 -0
- package/dist/types/components/BaseAddressForm.vue.d.ts +92 -0
- package/dist/types/components/BaseAlert.vue.d.ts +61 -0
- package/dist/types/{src/components → components}/BaseApp.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseAppDialogs.vue.d.ts +2 -2
- package/dist/types/components/BaseAppNotifications.vue.d.ts +2 -0
- package/dist/types/{src/components → components}/BaseAutocomplete.vue.d.ts +18 -18
- package/dist/types/{src/components → components}/BaseAutocompleteDrawer.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseAutocompleteFetch.vue.d.ts +13 -13
- package/dist/types/{src/components → components}/BaseAvatar.vue.d.ts +5 -5
- package/dist/types/{src/components → components}/BaseAvatarGroup.vue.d.ts +2 -2
- package/dist/types/components/BaseBadge.vue.d.ts +60 -0
- package/dist/types/{src/components → components}/BaseBelongsTo.vue.d.ts +8 -8
- package/dist/types/{src/components → components}/BaseBelongsToFetch.vue.d.ts +8 -8
- package/dist/types/components/BaseBoolean.vue.d.ts +15 -0
- package/dist/types/{src/components → components}/BaseBreadcrumbs.vue.d.ts +1 -1
- package/dist/types/components/BaseButton.vue.d.ts +95 -0
- package/dist/types/{src/components → components}/BaseButtonGroup.vue.d.ts +7 -7
- package/dist/types/{src/components → components}/BaseCalendar.vue.d.ts +19 -19
- package/dist/types/{src/components → components}/BaseCard.vue.d.ts +1 -1
- package/dist/types/components/BaseCardRow.vue.d.ts +42 -0
- package/dist/types/{src/components → components}/BaseCharacterCounter.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseClipboard.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseColor.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseContainer.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseCounter.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseCropper.vue.d.ts +25 -42
- package/dist/types/components/BaseCropperModal.vue.d.ts +27 -0
- package/dist/types/{src/components → components}/BaseDataIterator.vue.d.ts +1 -1
- package/dist/types/components/BaseDataIteratorSectionBox.vue.d.ts +23 -0
- package/dist/types/components/BaseDataIteratorSectionButton.vue.d.ts +23 -0
- package/dist/types/{src/components → components}/BaseDataIteratorSectionColumns.vue.d.ts +245 -191
- package/dist/types/components/BaseDataIteratorSectionModal.vue.d.ts +29 -0
- package/dist/types/{src/components → components}/BaseDataTable.vue.d.ts +7 -7
- package/dist/types/components/BaseDataTableRowAction.vue.d.ts +35 -0
- package/dist/types/{src/components → components}/BaseDataTableTemplate.vue.d.ts +19 -25
- package/dist/types/components/BaseDatePicker.vue.d.ts +99 -0
- package/dist/types/{src/components → components}/BaseDateSelect.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseDescriptionList.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseDescriptionListItem.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseDialog.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseDisplayRelativeTime.vue.d.ts +2 -2
- package/dist/types/components/BaseDraggable.vue.d.ts +36 -0
- package/dist/types/{src/components → components}/BaseDropdown.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseDropdownAutocomplete.vue.d.ts +8 -8
- package/dist/types/{src/components → components}/BaseField.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseFieldI18n.vue.d.ts +5 -5
- package/dist/types/components/BaseFilePicker.vue.d.ts +69 -0
- package/dist/types/components/BaseFilePickerCrop.vue.d.ts +62 -0
- package/dist/types/components/BaseFileUploader.vue.d.ts +122 -0
- package/dist/types/{src/components → components}/BaseForm.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseGantt.vue.d.ts +141 -120
- package/dist/types/{src/components → components}/BaseHasMany.vue.d.ts +2 -2
- package/dist/types/components/BaseHeader.vue.d.ts +78 -0
- package/dist/types/components/BaseIconPicker.vue.d.ts +43 -0
- package/dist/types/{src/components → components}/BaseInput.vue.d.ts +15 -15
- package/dist/types/{src/components → components}/BaseInputError.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseInputLabel.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseInputPercent.vue.d.ts +8 -8
- package/dist/types/components/BaseJsonReader.vue.d.ts +40 -0
- package/dist/types/{src/components → components}/BaseLayoutNotificationDropdown.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseLayoutNotificationItem.vue.d.ts +1 -1
- package/dist/types/components/BaseLayoutNotificationItemContent.vue.d.ts +18 -0
- package/dist/types/{src/components → components}/BaseLayoutSidebar.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseLayoutSidebarConfigurable.vue.d.ts +3 -3
- package/dist/types/components/BaseLayoutStacked.vue.d.ts +59 -0
- package/dist/types/{src/components → components}/BaseLayoutStackedConfigurable.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseLoadingCover.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseMediaGallery.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseMediaGalleryItem.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseMediaItem.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseMediaLibrary.vue.d.ts +10 -10
- package/dist/types/{src/components → components}/BaseMediaList.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseMediaListItem.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseMediaPictures.vue.d.ts +4 -4
- package/dist/types/{src/components → components}/BaseMediaPicturesItem.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseMediaPreview.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseMenu.vue.d.ts +5 -5
- package/dist/types/{src/components → components}/BaseMenuItem.vue.d.ts +6 -6
- package/dist/types/{src/components → components}/BaseModalCenter.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseModalSide.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseNavbar.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseNavbarItem.vue.d.ts +11 -2
- package/dist/types/{src/components → components}/BaseNavbarItemContent.vue.d.ts +5 -5
- package/dist/types/{src/components → components}/BaseNavbarSideItem.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseNavbarSideItemContent.vue.d.ts +5 -5
- package/dist/types/{src/components → components}/BasePagination.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BasePanel.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BasePassword.vue.d.ts +5 -5
- package/dist/types/{src/components → components}/BaseProgressCircle.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseRadioGroup.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseReadMore.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseRichText.vue.d.ts +7 -7
- package/dist/types/{src/components → components}/BaseScrollColumn.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseSelect.vue.d.ts +5 -5
- package/dist/types/{src/components → components}/BaseShortcut.vue.d.ts +5 -5
- package/dist/types/components/BaseSideNavigation.vue.d.ts +36 -0
- package/dist/types/components/BaseSideNavigationItem.vue.d.ts +46 -0
- package/dist/types/{src/components → components}/BaseSkeleton.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseStatistic.vue.d.ts +2 -2
- package/dist/types/{src/components → components}/BaseStepper.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseStepperItem.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseSwitch.vue.d.ts +8 -8
- package/dist/types/{src/components → components}/BaseSystemAlert.vue.d.ts +4 -4
- package/dist/types/components/BaseTabItem.vue.d.ts +46 -0
- package/dist/types/components/BaseTable.vue.d.ts +58 -0
- package/dist/types/{src/components → components}/BaseTableBody.vue.d.ts +1 -1
- package/dist/types/components/BaseTableCell.vue.d.ts +68 -0
- package/dist/types/{src/components → components}/BaseTableColumn.vue.d.ts +9 -9
- package/dist/types/components/BaseTableHead.vue.d.ts +36 -0
- package/dist/types/components/BaseTableHeader.vue.d.ts +47 -0
- package/dist/types/components/BaseTableRow.vue.d.ts +66 -0
- package/dist/types/components/BaseTabs.vue.d.ts +36 -0
- package/dist/types/{src/components → components}/BaseTagAutocomplete.vue.d.ts +13 -13
- package/dist/types/{src/components → components}/BaseTagAutocompleteFetch.vue.d.ts +5 -5
- package/dist/types/{src/components → components}/BaseTextarea.vue.d.ts +7 -7
- package/dist/types/{src/components → components}/BaseTextareaAutoresize.vue.d.ts +8 -8
- package/dist/types/{src/components → components}/BaseTimePicker.vue.d.ts +3 -3
- package/dist/types/{src/components → components}/BaseTimeline.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/BaseTimelineItem.vue.d.ts +1 -1
- package/dist/types/components/BaseToast.vue.d.ts +17 -0
- package/dist/types/components/BaseTooltip.vue.d.ts +47 -0
- package/dist/types/{src/components → components}/BaseUniqueCode.vue.d.ts +1 -1
- package/dist/types/{src/components → components}/SlotComponent.d.ts +1 -1
- package/dist/types/{src/services → services}/gantt/format.d.ts +4 -4
- package/dist/types/{src/services → services}/gantt/timescale.d.ts +2 -2
- package/dist/types/stories/PageInputSizes.vue.d.ts +2 -0
- package/dist/types/stories/PageShow.vue.d.ts +2 -0
- package/dist/types/svg/BaseEmptyState.vue.d.ts +2 -0
- package/dist/types/svg/BaseSpinnerLarge.vue.d.ts +2 -0
- package/dist/types/svg/BaseSpinnerSmall.vue.d.ts +2 -0
- package/dist/types/{src/types → types}/index.d.ts +1 -0
- package/package.json +58 -58
- package/src/assets/base-json-reader.css +32 -0
- package/src/assets/main.css +1 -0
- package/src/components/BaseActionItem.vue +2 -1
- package/src/components/BaseDataTableTemplate.vue +36 -44
- package/src/components/BaseJsonReader.stories.js +128 -0
- package/src/components/BaseJsonReader.vue +199 -0
- package/src/components/BaseLayoutNotificationItem.vue +1 -1
- package/src/components/BaseNavbarItem.vue +25 -2
- package/src/components/BaseScrollColumn.vue +0 -2
- package/src/components/BaseTimePicker.vue +0 -3
- package/src/types/index.ts +1 -0
- package/dist/types/src/components/BaseActionItem.vue.d.ts +0 -32
- package/dist/types/src/components/BaseActionItemButton.vue.d.ts +0 -25
- package/dist/types/src/components/BaseAddressForm.vue.d.ts +0 -121
- package/dist/types/src/components/BaseAlert.vue.d.ts +0 -68
- package/dist/types/src/components/BaseAppNotifications.vue.d.ts +0 -2
- package/dist/types/src/components/BaseBadge.vue.d.ts +0 -69
- package/dist/types/src/components/BaseBoolean.vue.d.ts +0 -10
- package/dist/types/src/components/BaseButton.vue.d.ts +0 -120
- package/dist/types/src/components/BaseCardRow.vue.d.ts +0 -33
- package/dist/types/src/components/BaseCropperModal.vue.d.ts +0 -28
- package/dist/types/src/components/BaseDataIteratorSectionBox.vue.d.ts +0 -20
- package/dist/types/src/components/BaseDataIteratorSectionButton.vue.d.ts +0 -25
- package/dist/types/src/components/BaseDataIteratorSectionModal.vue.d.ts +0 -32
- package/dist/types/src/components/BaseDataTableRowAction.vue.d.ts +0 -32
- package/dist/types/src/components/BaseDatePicker.vue.d.ts +0 -136
- package/dist/types/src/components/BaseDraggable.vue.d.ts +0 -51
- package/dist/types/src/components/BaseFilePicker.vue.d.ts +0 -74
- package/dist/types/src/components/BaseFilePickerCrop.vue.d.ts +0 -65
- package/dist/types/src/components/BaseFileUploader.vue.d.ts +0 -147
- package/dist/types/src/components/BaseHeader.vue.d.ts +0 -93
- package/dist/types/src/components/BaseIconPicker.vue.d.ts +0 -36
- package/dist/types/src/components/BaseLayoutNotificationItemContent.vue.d.ts +0 -21
- package/dist/types/src/components/BaseLayoutStacked.vue.d.ts +0 -56
- package/dist/types/src/components/BaseSideNavigation.vue.d.ts +0 -21
- package/dist/types/src/components/BaseSideNavigationItem.vue.d.ts +0 -41
- package/dist/types/src/components/BaseTabItem.vue.d.ts +0 -41
- package/dist/types/src/components/BaseTable.vue.d.ts +0 -59
- package/dist/types/src/components/BaseTableCell.vue.d.ts +0 -77
- package/dist/types/src/components/BaseTableHead.vue.d.ts +0 -21
- package/dist/types/src/components/BaseTableHeader.vue.d.ts +0 -40
- package/dist/types/src/components/BaseTableRow.vue.d.ts +0 -67
- package/dist/types/src/components/BaseTabs.vue.d.ts +0 -21
- package/dist/types/src/components/BaseToast.vue.d.ts +0 -20
- package/dist/types/src/components/BaseTooltip.vue.d.ts +0 -40
- package/dist/types/src/stories/PageInputSizes.vue.d.ts +0 -2
- package/dist/types/src/stories/PageShow.vue.d.ts +0 -2
- package/dist/types/src/svg/BaseEmptyState.vue.d.ts +0 -2
- package/dist/types/src/svg/BaseSpinnerLarge.vue.d.ts +0 -2
- package/dist/types/src/svg/BaseSpinnerSmall.vue.d.ts +0 -2
- /package/dist/types/{src/components → components}/index.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/breakpoints.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/clickOutside.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/field.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/hasOptions.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/inputSize.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/mediaQuery.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/modal.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/paginatedData.d.ts +0 -0
- /package/dist/types/{src/composables → composables}/tooltip.d.ts +0 -0
- /package/dist/types/{src/constants → constants}/MyConstants.d.ts +0 -0
- /package/dist/types/{src/constants → constants}/index.d.ts +0 -0
- /package/dist/types/{src/i18n → i18n}/index.d.ts +0 -0
- /package/dist/types/{src/index.d.ts → index.d.ts} +0 -0
- /package/dist/types/{src/services → services}/gantt/types.d.ts +0 -0
- /package/dist/types/{src/services → services}/table/classes.d.ts +0 -0
- /package/dist/types/{src/services → services}/table/types.d.ts +0 -0
- /package/dist/types/{src/stores → stores}/dialogs.d.ts +0 -0
- /package/dist/types/{src/stores → stores}/i18n.d.ts +0 -0
- /package/dist/types/{src/stores → stores}/notifications.d.ts +0 -0
- /package/dist/types/{src/stores → stores}/systemAlerts.d.ts +0 -0
- /package/dist/types/{src/types → types}/CalendarEvent.d.ts +0 -0
- /package/dist/types/{src/types → types}/Color.d.ts +0 -0
- /package/dist/types/{src/types → types}/Country.d.ts +0 -0
- /package/dist/types/{src/types → types}/ImagePickerResult.d.ts +0 -0
- /package/dist/types/{src/types → types}/Media.d.ts +0 -0
- /package/dist/types/{src/types → types}/Notification.d.ts +0 -0
- /package/dist/types/{src/types → types}/Region.d.ts +0 -0
- /package/dist/types/{src/types → types}/Status.d.ts +0 -0
- /package/dist/types/{src/types → types}/StepperItem.d.ts +0 -0
- /package/dist/types/{src/types → types}/TimelineItem.d.ts +0 -0
- /package/dist/types/{src/types → types}/UploadedFile.d.ts +0 -0
- /package/dist/types/{src/types → types}/User.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/blob.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/colors.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/cropper/avatar.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/cropper/cover.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/cropper/presetInterface.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/cropper/presets.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/fileSizeFormat.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/fileValidations.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/getApiData.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/index.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/resizeImageFromURI.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/scrollPreventer.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/sizes.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/slots.d.ts +0 -0
- /package/dist/types/{src/utils → utils}/toHumanList.d.ts +0 -0
|
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
14
14
|
};
|
|
15
15
|
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
16
16
|
"update:modelValue": (...args: any[]) => void;
|
|
17
|
-
}, string, import("vue").
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
modelValue: {
|
|
19
19
|
required: true;
|
|
20
20
|
type: PropType<string | number | null>;
|
|
@@ -19,7 +19,7 @@ declare const _default: DefineComponent<{
|
|
|
19
19
|
type: StringConstructor;
|
|
20
20
|
default: string;
|
|
21
21
|
};
|
|
22
|
-
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").
|
|
22
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
23
|
component: {
|
|
24
24
|
type: ObjectConstructor;
|
|
25
25
|
required: true;
|
|
@@ -6,8 +6,8 @@ export declare class Format {
|
|
|
6
6
|
constructor(config: FormatConfig);
|
|
7
7
|
handle(): {
|
|
8
8
|
rows: GanttRowFormatted[];
|
|
9
|
-
min: DateTime
|
|
10
|
-
max: DateTime
|
|
9
|
+
min: DateTime<true> | DateTime<false>;
|
|
10
|
+
max: DateTime<true> | DateTime<false>;
|
|
11
11
|
millisecondToPixel: number;
|
|
12
12
|
height: number;
|
|
13
13
|
width: number;
|
|
@@ -19,7 +19,7 @@ export declare class Format {
|
|
|
19
19
|
formatGanttRow(row: GanttRow): GanttRowFormatted;
|
|
20
20
|
formatGanttItem(item: GanttItem): GanttItemFormatted;
|
|
21
21
|
getMinMax(rowsFormatted: GanttRowFormatted[]): {
|
|
22
|
-
min: DateTime
|
|
23
|
-
max: DateTime
|
|
22
|
+
min: DateTime<true> | DateTime<false>;
|
|
23
|
+
max: DateTime<true> | DateTime<false>;
|
|
24
24
|
};
|
|
25
25
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sprintify-ui",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.83",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"build": "rimraf dist && vue-tsc && vite build",
|
|
6
6
|
"build-fast": "rimraf dist && vite build",
|
|
@@ -38,90 +38,90 @@
|
|
|
38
38
|
"vue-router": "^4.0.0"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@floating-ui/vue": "^1.0.
|
|
42
|
-
"@fullcalendar/core": "^6.1.
|
|
43
|
-
"@fullcalendar/daygrid": "^6.1.
|
|
44
|
-
"@fullcalendar/interaction": "^6.1.
|
|
45
|
-
"@fullcalendar/list": "^6.1.
|
|
46
|
-
"@fullcalendar/multimonth": "^6.1.
|
|
47
|
-
"@fullcalendar/timegrid": "^6.1.
|
|
48
|
-
"@fullcalendar/vue3": "^6.1.
|
|
49
|
-
"@headlessui/vue": "^1.7.
|
|
50
|
-
"color2k": "^2.0.
|
|
51
|
-
"tailwind-merge": "^1.
|
|
41
|
+
"@floating-ui/vue": "^1.0.6",
|
|
42
|
+
"@fullcalendar/core": "^6.1.11",
|
|
43
|
+
"@fullcalendar/daygrid": "^6.1.11",
|
|
44
|
+
"@fullcalendar/interaction": "^6.1.11",
|
|
45
|
+
"@fullcalendar/list": "^6.1.11",
|
|
46
|
+
"@fullcalendar/multimonth": "^6.1.11",
|
|
47
|
+
"@fullcalendar/timegrid": "^6.1.11",
|
|
48
|
+
"@fullcalendar/vue3": "^6.1.11",
|
|
49
|
+
"@headlessui/vue": "^1.7.19",
|
|
50
|
+
"color2k": "^2.0.3",
|
|
51
|
+
"tailwind-merge": "^1.14.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
|
-
"@babel/core": "^7.
|
|
55
|
-
"@commitlint/cli": "^17.
|
|
56
|
-
"@commitlint/config-conventional": "^17.
|
|
57
|
-
"@iconify/vue": "^4.1.
|
|
54
|
+
"@babel/core": "^7.24.0",
|
|
55
|
+
"@commitlint/cli": "^17.8.1",
|
|
56
|
+
"@commitlint/config-conventional": "^17.8.1",
|
|
57
|
+
"@iconify/vue": "^4.1.1",
|
|
58
58
|
"@storybook/addon-actions": "^7.2.1",
|
|
59
|
-
"@storybook/addon-essentials": "^7.
|
|
60
|
-
"@storybook/addon-interactions": "^7.
|
|
61
|
-
"@storybook/addon-links": "^7.
|
|
59
|
+
"@storybook/addon-essentials": "^7.6.17",
|
|
60
|
+
"@storybook/addon-interactions": "^7.6.17",
|
|
61
|
+
"@storybook/addon-links": "^7.6.17",
|
|
62
62
|
"@storybook/manager-api": "^7.2.1",
|
|
63
|
-
"@storybook/testing-library": "^0.2.
|
|
63
|
+
"@storybook/testing-library": "^0.2.2",
|
|
64
64
|
"@storybook/theming": "^7.2.1",
|
|
65
65
|
"@storybook/vue3": "^7.2.1",
|
|
66
|
-
"@storybook/vue3-vite": "^7.
|
|
66
|
+
"@storybook/vue3-vite": "^7.6.17",
|
|
67
67
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
|
68
|
-
"@tailwindcss/forms": "^0.5.
|
|
69
|
-
"@tailwindcss/typography": "^0.5.
|
|
70
|
-
"@types/croppie": "^2.6.
|
|
71
|
-
"@types/google.maps": "^3.
|
|
72
|
-
"@types/humanize-duration": "^3.27.
|
|
73
|
-
"@types/luxon": "^3.2
|
|
68
|
+
"@tailwindcss/forms": "^0.5.7",
|
|
69
|
+
"@tailwindcss/typography": "^0.5.10",
|
|
70
|
+
"@types/croppie": "^2.6.4",
|
|
71
|
+
"@types/google.maps": "^3.55.4",
|
|
72
|
+
"@types/humanize-duration": "^3.27.4",
|
|
73
|
+
"@types/luxon": "^3.4.2",
|
|
74
74
|
"@types/object-hash": "^2.2.1",
|
|
75
|
-
"@types/qs": "^6.9.
|
|
76
|
-
"@types/scroll-lock": "^2.1.
|
|
77
|
-
"@types/sortablejs": "^1.15.
|
|
78
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
79
|
-
"@typescript-eslint/parser": "^
|
|
80
|
-
"@vitejs/plugin-vue": "^4.
|
|
81
|
-
"@vue/eslint-config-typescript": "^
|
|
82
|
-
"@vueup/vue-quill": "^1.
|
|
83
|
-
"@vueuse/core": "^10.0
|
|
84
|
-
"autoprefixer": "^10.4.
|
|
75
|
+
"@types/qs": "^6.9.12",
|
|
76
|
+
"@types/scroll-lock": "^2.1.3",
|
|
77
|
+
"@types/sortablejs": "^1.15.8",
|
|
78
|
+
"@typescript-eslint/eslint-plugin": "^7.3.0",
|
|
79
|
+
"@typescript-eslint/parser": "^7.3.0",
|
|
80
|
+
"@vitejs/plugin-vue": "^4.6.2",
|
|
81
|
+
"@vue/eslint-config-typescript": "^13.0.0",
|
|
82
|
+
"@vueup/vue-quill": "^1.2.0",
|
|
83
|
+
"@vueuse/core": "^10.9.0",
|
|
84
|
+
"autoprefixer": "^10.4.18",
|
|
85
85
|
"axios": "^0.26.1",
|
|
86
86
|
"babel-loader": "^8.3.0",
|
|
87
87
|
"croppie": "^2.6.5",
|
|
88
88
|
"cz-conventional-changelog": "^3.3.0",
|
|
89
|
-
"eslint": "^8.
|
|
90
|
-
"eslint-plugin-import": "^2.
|
|
91
|
-
"eslint-plugin-storybook": "^0.6.
|
|
92
|
-
"eslint-plugin-vue": "^9.
|
|
93
|
-
"eslint-plugin-vue-scoped-css": "^2.
|
|
89
|
+
"eslint": "^8.57.0",
|
|
90
|
+
"eslint-plugin-import": "^2.29.1",
|
|
91
|
+
"eslint-plugin-storybook": "^0.6.15",
|
|
92
|
+
"eslint-plugin-vue": "^9.23.0",
|
|
93
|
+
"eslint-plugin-vue-scoped-css": "^2.7.2",
|
|
94
94
|
"flatpickr": "^4.6.13",
|
|
95
|
-
"humanize-duration": "^3.
|
|
95
|
+
"humanize-duration": "^3.31.0",
|
|
96
96
|
"husky": "^8.0.3",
|
|
97
97
|
"lodash": "^4.17.21",
|
|
98
|
-
"luxon": "^3.
|
|
99
|
-
"maska": "^2.1.
|
|
98
|
+
"luxon": "^3.4.4",
|
|
99
|
+
"maska": "^2.1.11",
|
|
100
100
|
"object-hash": "^3.0.0",
|
|
101
|
-
"object-to-formdata": "^4.
|
|
102
|
-
"pinia": "^2.
|
|
103
|
-
"postcss": "^8.4.
|
|
101
|
+
"object-to-formdata": "^4.5.1",
|
|
102
|
+
"pinia": "^2.1.7",
|
|
103
|
+
"postcss": "^8.4.36",
|
|
104
104
|
"postcss-import": "^15.1.0",
|
|
105
|
-
"qs": "^6.
|
|
105
|
+
"qs": "^6.12.0",
|
|
106
106
|
"react": "^18.2.0",
|
|
107
107
|
"react-dom": "^18.2.0",
|
|
108
108
|
"relative-deps": "^1.0.7",
|
|
109
109
|
"rimraf": "^3.0.2",
|
|
110
110
|
"rollup-plugin-analyzer": "^4.0.0",
|
|
111
111
|
"scroll-lock": "^2.1.5",
|
|
112
|
-
"sortablejs": "^1.15.
|
|
112
|
+
"sortablejs": "^1.15.2",
|
|
113
113
|
"standard-version": "^9.5.0",
|
|
114
|
-
"storybook": "^7.
|
|
115
|
-
"storybook-addon-mock": "^4.
|
|
116
|
-
"tailwindcss": "^3.
|
|
117
|
-
"typescript": "^4.
|
|
114
|
+
"storybook": "^7.6.17",
|
|
115
|
+
"storybook-addon-mock": "^4.3.0",
|
|
116
|
+
"tailwindcss": "^3.4.1",
|
|
117
|
+
"typescript": "^5.4.2",
|
|
118
118
|
"unplugin-auto-import": "^0.12.2",
|
|
119
|
-
"vite": "^4.
|
|
119
|
+
"vite": "^4.5.2",
|
|
120
120
|
"vitepress": "^0.21.6",
|
|
121
121
|
"vue": "^3.2.47",
|
|
122
|
-
"vue-loader": "^17.
|
|
123
|
-
"vue-router": "^4.
|
|
124
|
-
"vue-tsc": "^
|
|
122
|
+
"vue-loader": "^17.4.2",
|
|
123
|
+
"vue-router": "^4.3.0",
|
|
124
|
+
"vue-tsc": "^2.0.6"
|
|
125
125
|
},
|
|
126
126
|
"files": [
|
|
127
127
|
"src",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
.base-json-reader {
|
|
2
|
+
ul {
|
|
3
|
+
list-style-type: disc !important;
|
|
4
|
+
padding-left: 20px !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
li {
|
|
8
|
+
margin-bottom: 5px !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.chevron {
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.heroicons--chevron-right-16-solid,
|
|
16
|
+
.heroicons--chevron-down-16-solid {
|
|
17
|
+
display: inline-block;
|
|
18
|
+
background-color: currentColor;
|
|
19
|
+
-webkit-mask-image: var(--svg);
|
|
20
|
+
mask-image: var(--svg);
|
|
21
|
+
-webkit-mask-repeat: no-repeat;
|
|
22
|
+
mask-repeat: no-repeat;
|
|
23
|
+
-webkit-mask-size: 100% 100%;
|
|
24
|
+
mask-size: 100% 100%;
|
|
25
|
+
}
|
|
26
|
+
.heroicons--chevron-right-16-solid {
|
|
27
|
+
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M6.22 4.22a.75.75 0 0 1 1.06 0l3.25 3.25a.75.75 0 0 1 0 1.06l-3.25 3.25a.75.75 0 0 1-1.06-1.06L8.94 8L6.22 5.28a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
28
|
+
}
|
|
29
|
+
.heroicons--chevron-down-16-solid {
|
|
30
|
+
--svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M4.22 6.22a.75.75 0 0 1 1.06 0L8 8.94l2.72-2.72a.75.75 0 1 1 1.06 1.06l-3.25 3.25a.75.75 0 0 1-1.06 0L4.22 7.28a.75.75 0 0 1 0-1.06' clip-rule='evenodd'/%3E%3C/svg%3E");
|
|
31
|
+
}
|
|
32
|
+
}
|
package/src/assets/main.css
CHANGED
|
@@ -68,8 +68,9 @@ const closeMenu = inject('closeMenu', () => {
|
|
|
68
68
|
const emit = defineEmits(['click']);
|
|
69
69
|
|
|
70
70
|
type asyncFunc = () => Promise<void>;
|
|
71
|
+
type func = () => void;
|
|
71
72
|
|
|
72
|
-
async function onClick(func: asyncFunc | null = null) {
|
|
73
|
+
async function onClick(func: func | asyncFunc | null = null) {
|
|
73
74
|
if (func) {
|
|
74
75
|
await func();
|
|
75
76
|
}
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
<tbody class="bg-white">
|
|
126
126
|
<template
|
|
127
127
|
v-for="(row, index) in data"
|
|
128
|
-
:key="
|
|
128
|
+
:key="getRowKey(row)"
|
|
129
129
|
>
|
|
130
130
|
<tr class="item-row">
|
|
131
131
|
<td
|
|
@@ -220,7 +220,7 @@
|
|
|
220
220
|
<transition :name="detailTransition">
|
|
221
221
|
<tr
|
|
222
222
|
v-if="isActiveDetailRow(row)"
|
|
223
|
-
:key="
|
|
223
|
+
:key="getRowKey(row) + 'detail'"
|
|
224
224
|
>
|
|
225
225
|
<td
|
|
226
226
|
:colspan="columnCount"
|
|
@@ -272,27 +272,26 @@
|
|
|
272
272
|
</div>
|
|
273
273
|
</template>
|
|
274
274
|
|
|
275
|
-
<script lang="ts">
|
|
276
|
-
export default {
|
|
277
|
-
name: 'BaseDataTableTemplate',
|
|
278
|
-
inheritAttrs: false,
|
|
279
|
-
};
|
|
280
|
-
</script>
|
|
281
|
-
|
|
282
275
|
<script lang="ts" setup>
|
|
283
|
-
import { PropType, ref } from 'vue';
|
|
276
|
+
import { PropType, StyleValue, ref } from 'vue';
|
|
284
277
|
import { BaseTableColumn, Row } from '@/types';
|
|
285
278
|
import SlotComponent from './SlotComponent';
|
|
286
279
|
import { useResizeObserver, useScroll } from '@vueuse/core';
|
|
287
280
|
import { debounce, isArray } from 'lodash';
|
|
288
281
|
import BaseSpinnerLarge from '../svg/BaseSpinnerLarge.vue';
|
|
289
282
|
import { Size } from '@/utils/sizes';
|
|
283
|
+
import objectHash from 'object-hash';
|
|
290
284
|
|
|
291
285
|
const checkboxStyle =
|
|
292
286
|
'disabled:bg-slate-100 group-hover:shadow-md disabled:border-slate-300 disabled:cursor-not-allowed duration-300 cursor-pointer focus:ring-blue-300 border border-slate-300 shadow h-[18px] w-[18px] rounded';
|
|
293
287
|
const DETAIL_ROW_WIDTH = 36;
|
|
294
288
|
const CHECK_ROW_WIDTH = 36;
|
|
295
289
|
|
|
290
|
+
defineOptions({
|
|
291
|
+
name: 'BaseDataTableTemplate',
|
|
292
|
+
inheritAttrs: false,
|
|
293
|
+
});
|
|
294
|
+
|
|
296
295
|
provide('table', getCurrentInstance());
|
|
297
296
|
|
|
298
297
|
const props = defineProps({
|
|
@@ -356,11 +355,6 @@ const props = defineProps({
|
|
|
356
355
|
type: Function,
|
|
357
356
|
default: () => true,
|
|
358
357
|
},
|
|
359
|
-
/** Use a unique key of your data Object when use detailed or opened detailed. (id recommended) */
|
|
360
|
-
rowKey: {
|
|
361
|
-
type: String,
|
|
362
|
-
default: 'id',
|
|
363
|
-
},
|
|
364
358
|
/* Transition name to use when toggling row details. */
|
|
365
359
|
detailTransition: {
|
|
366
360
|
type: String,
|
|
@@ -388,7 +382,7 @@ const emit = defineEmits([
|
|
|
388
382
|
'cell-click',
|
|
389
383
|
]);
|
|
390
384
|
|
|
391
|
-
const visibleDetailRows = ref<
|
|
385
|
+
const visibleDetailRows = ref<string[]>([]);
|
|
392
386
|
// eslint-disable-next-line vue/no-setup-props-destructure
|
|
393
387
|
const newCheckedRows = ref<Row[]>([...props.checkedRows]);
|
|
394
388
|
const lastCheckedRowIndex = ref<number | null>(null);
|
|
@@ -521,10 +515,13 @@ function sort(column: BaseTableColumn, updatingData = false, event = null) {
|
|
|
521
515
|
* Check if the row is checked (is added to the array).
|
|
522
516
|
*/
|
|
523
517
|
function isRowChecked(row: Row): boolean {
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
518
|
+
const found = newCheckedRows.value.find((r) => {
|
|
519
|
+
const key1 = getRowKey(r);
|
|
520
|
+
const key2 = getRowKey(row);
|
|
521
|
+
return key1 == key2
|
|
522
|
+
});
|
|
523
|
+
|
|
524
|
+
return found !== undefined;
|
|
528
525
|
}
|
|
529
526
|
|
|
530
527
|
/**
|
|
@@ -555,9 +552,13 @@ const isAllChecked = computed(() => {
|
|
|
555
552
|
});
|
|
556
553
|
|
|
557
554
|
function getCheckedRowIndex(row: Row) {
|
|
558
|
-
|
|
559
|
-
(r)
|
|
560
|
-
|
|
555
|
+
const foundIndex = newCheckedRows.value.findIndex((r) => {
|
|
556
|
+
const key1 = getRowKey(r);
|
|
557
|
+
const key2 = getRowKey(row);
|
|
558
|
+
return key1 == key2
|
|
559
|
+
});
|
|
560
|
+
|
|
561
|
+
return foundIndex;
|
|
561
562
|
}
|
|
562
563
|
|
|
563
564
|
/**
|
|
@@ -668,36 +669,27 @@ function toggleDetails(row: Row) {
|
|
|
668
669
|
}
|
|
669
670
|
|
|
670
671
|
function openDetailRow(row: Row) {
|
|
671
|
-
const
|
|
672
|
-
visibleDetailRows.value.push(
|
|
672
|
+
const key = getRowKey(row);
|
|
673
|
+
visibleDetailRows.value.push(key);
|
|
673
674
|
}
|
|
674
675
|
|
|
675
676
|
function closeDetailRow(row: Row) {
|
|
676
|
-
const
|
|
677
|
-
const i = visibleDetailRows.value.indexOf(
|
|
677
|
+
const key = getRowKey(row);
|
|
678
|
+
const i = visibleDetailRows.value.indexOf(key);
|
|
678
679
|
if (i >= 0) {
|
|
679
680
|
visibleDetailRows.value.splice(i, 1);
|
|
680
681
|
}
|
|
681
682
|
}
|
|
682
683
|
|
|
683
684
|
function isVisibleDetailRow(row: Row) {
|
|
684
|
-
const
|
|
685
|
-
return visibleDetailRows.value.indexOf(
|
|
685
|
+
const key = getRowKey(row);
|
|
686
|
+
return visibleDetailRows.value.indexOf(key) >= 0;
|
|
686
687
|
}
|
|
687
688
|
|
|
688
689
|
function isActiveDetailRow(row: Row) {
|
|
689
690
|
return props.detailed && isVisibleDetailRow(row);
|
|
690
691
|
}
|
|
691
692
|
|
|
692
|
-
/**
|
|
693
|
-
* When the rowKey is defined we use the object[rowKey] as index.
|
|
694
|
-
* If not, use the object reference by default.
|
|
695
|
-
*/
|
|
696
|
-
function getDetailedIndex(row: Row) {
|
|
697
|
-
const key = props.rowKey;
|
|
698
|
-
return !key.length || !row ? row : row[key];
|
|
699
|
-
}
|
|
700
|
-
|
|
701
693
|
/**
|
|
702
694
|
* Update sort state
|
|
703
695
|
*/
|
|
@@ -759,7 +751,7 @@ function removeColumn(column: BaseTableColumn) {
|
|
|
759
751
|
|
|
760
752
|
const borderClasses = 'border-b border-slate-200';
|
|
761
753
|
|
|
762
|
-
function borderBottomClasses(index: number, row:
|
|
754
|
+
function borderBottomClasses(index: number, row: Row): string {
|
|
763
755
|
if (index < props.data.length - 1) {
|
|
764
756
|
return borderClasses;
|
|
765
757
|
}
|
|
@@ -795,7 +787,7 @@ function nextSequence() {
|
|
|
795
787
|
return sequence.value++;
|
|
796
788
|
}
|
|
797
789
|
|
|
798
|
-
function
|
|
790
|
+
function getRowKey(row: Row): string {
|
|
799
791
|
if (row.id) {
|
|
800
792
|
return row.id;
|
|
801
793
|
}
|
|
@@ -805,7 +797,7 @@ function getRowIndex(row: Row, index: number): string {
|
|
|
805
797
|
if (row.uuid) {
|
|
806
798
|
return row.uuid;
|
|
807
799
|
}
|
|
808
|
-
return
|
|
800
|
+
return objectHash(row);
|
|
809
801
|
}
|
|
810
802
|
|
|
811
803
|
// Sticky styles
|
|
@@ -825,7 +817,7 @@ function zIndex(th: boolean) {
|
|
|
825
817
|
return 1;
|
|
826
818
|
}
|
|
827
819
|
|
|
828
|
-
function detailsStyles(th: boolean):
|
|
820
|
+
function detailsStyles(th: boolean): StyleValue {
|
|
829
821
|
if (props.detailed) {
|
|
830
822
|
return {
|
|
831
823
|
zIndex: zIndex(th) + 1,
|
|
@@ -839,7 +831,7 @@ function detailsStyles(th: boolean): any {
|
|
|
839
831
|
return {};
|
|
840
832
|
}
|
|
841
833
|
|
|
842
|
-
function checkStyles(th: boolean):
|
|
834
|
+
function checkStyles(th: boolean): StyleValue {
|
|
843
835
|
if (props.checkable) {
|
|
844
836
|
return {
|
|
845
837
|
zIndex: zIndex(th) + 1,
|
|
@@ -853,7 +845,7 @@ function checkStyles(th: boolean): any {
|
|
|
853
845
|
return {};
|
|
854
846
|
}
|
|
855
847
|
|
|
856
|
-
function firstColStyles(th: boolean):
|
|
848
|
+
function firstColStyles(th: boolean): StyleValue {
|
|
857
849
|
let left = 0;
|
|
858
850
|
if (props.checkable) {
|
|
859
851
|
left += CHECK_ROW_WIDTH;
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
import BaseJsonReader from './BaseJsonReader.vue';
|
|
2
|
+
import ShowValue from '@/../.storybook/components/ShowValue.vue';
|
|
3
|
+
|
|
4
|
+
const sizes = ['xs', 'sm', 'md'];
|
|
5
|
+
|
|
6
|
+
export default {
|
|
7
|
+
title: 'Components/BaseJsonReader',
|
|
8
|
+
component: BaseJsonReader,
|
|
9
|
+
argTypes: {
|
|
10
|
+
size: {
|
|
11
|
+
control: { type: 'select' },
|
|
12
|
+
options: sizes,
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
const Template = (args) => ({
|
|
18
|
+
components: { BaseJsonReader, ShowValue },
|
|
19
|
+
setup() {
|
|
20
|
+
const object = {
|
|
21
|
+
"user": {
|
|
22
|
+
"name": "John Doe",
|
|
23
|
+
"email": "john@witify.io",
|
|
24
|
+
"permissions": [
|
|
25
|
+
"read",
|
|
26
|
+
"create",
|
|
27
|
+
"delete"
|
|
28
|
+
],
|
|
29
|
+
comments: [
|
|
30
|
+
{
|
|
31
|
+
comment: "First comment",
|
|
32
|
+
replies: [
|
|
33
|
+
{
|
|
34
|
+
comment: "sub-comment 1 for comment 1",
|
|
35
|
+
replies: [
|
|
36
|
+
{
|
|
37
|
+
comment: "sub-sub-comment 1",
|
|
38
|
+
replies: [
|
|
39
|
+
{
|
|
40
|
+
comment: "sub-sub-sub-comment 1",
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
comment: {
|
|
44
|
+
name: "sub-sub-sub-comment 2",
|
|
45
|
+
desc: "test desc"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
comment: {
|
|
50
|
+
name: "sub-sub-sub-comment 3",
|
|
51
|
+
desc: "test desc2"
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
],
|
|
55
|
+
},
|
|
56
|
+
{ comment: "sub-sub-comment 2" },
|
|
57
|
+
],
|
|
58
|
+
},
|
|
59
|
+
{ comment: "sub-comment 2 for comment 1" },
|
|
60
|
+
],
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
{
|
|
64
|
+
comment: "Second comment",
|
|
65
|
+
replies: [
|
|
66
|
+
{
|
|
67
|
+
comment: "sub-comment 1 for comment 2",
|
|
68
|
+
replies: [
|
|
69
|
+
{ comment: "sub-sub-comment 1" },
|
|
70
|
+
{ comment: "sub-sub-comment 2" },
|
|
71
|
+
],
|
|
72
|
+
},
|
|
73
|
+
{ comment: "sub-comment 2 for comment 2" },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
"category": {
|
|
78
|
+
"id": 1,
|
|
79
|
+
"name": "Other"
|
|
80
|
+
},
|
|
81
|
+
"tags": {
|
|
82
|
+
"id": [
|
|
83
|
+
"create",
|
|
84
|
+
"delete"
|
|
85
|
+
],
|
|
86
|
+
"name": {
|
|
87
|
+
"id": {
|
|
88
|
+
"read": {
|
|
89
|
+
"id": {
|
|
90
|
+
"create": {
|
|
91
|
+
"id": {
|
|
92
|
+
"delete": {
|
|
93
|
+
"id": {
|
|
94
|
+
"update": {
|
|
95
|
+
"id": {
|
|
96
|
+
"name": "Read"
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"name": "Read"
|
|
107
|
+
},
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
"foo": "bar",
|
|
111
|
+
};
|
|
112
|
+
|
|
113
|
+
const value = ref(object);
|
|
114
|
+
return { value, args };
|
|
115
|
+
},
|
|
116
|
+
template: `
|
|
117
|
+
<BaseJsonReader v-model="value" v-bind="args">
|
|
118
|
+
</BaseJsonReader>
|
|
119
|
+
<ShowValue :value="value" />
|
|
120
|
+
`,
|
|
121
|
+
});
|
|
122
|
+
|
|
123
|
+
export const Demo = Template.bind({});
|
|
124
|
+
|
|
125
|
+
export const VariantCollapse = Template.bind({});
|
|
126
|
+
VariantCollapse.args = {
|
|
127
|
+
variant: 'collapse',
|
|
128
|
+
};
|