@mixd-id/web-scaffold 0.2.250801010 → 0.2.250801012
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/docs/components/AccountIcon.md +16 -0
- package/docs/components/Ahref.md +35 -0
- package/docs/components/Alert.md +72 -0
- package/docs/components/ArrayList.md +39 -0
- package/docs/components/Article.md +28 -0
- package/docs/components/BarChart.md +81 -0
- package/docs/components/Block.md +23 -0
- package/docs/components/Box.md +15 -0
- package/docs/components/Button.md +68 -0
- package/docs/components/Card.md +67 -0
- package/docs/components/Carousel.md +70 -0
- package/docs/components/Cart.md +20 -0
- package/docs/components/CartIcon.md +29 -0
- package/docs/components/Chart.md +53 -0
- package/docs/components/ChartBar.md +34 -0
- package/docs/components/ChatTyping.md +21 -0
- package/docs/components/Checkbox.md +63 -0
- package/docs/components/CodeEditor.md +25 -0
- package/docs/components/CollapsiblePanel.md +41 -0
- package/docs/components/ColorPicker.md +52 -0
- package/docs/components/Confirm.md +62 -0
- package/docs/components/ContextMenu.md +76 -0
- package/docs/components/ContextMenuItem.md +29 -0
- package/docs/components/CopyToClipboard.md +43 -0
- package/docs/components/Countdown.md +47 -0
- package/docs/components/Datepicker.md +61 -0
- package/docs/components/Datetimepicker.md +57 -0
- package/docs/components/DayTimeRange.md +20 -0
- package/docs/components/Dropdown.md +65 -0
- package/docs/components/ErrorText.md +15 -0
- package/docs/components/FBLogin.md +21 -0
- package/docs/components/Flex.md +44 -0
- package/docs/components/GHeatMaps.md +16 -0
- package/docs/components/GSignIn.md +21 -0
- package/docs/components/Gmaps.md +16 -0
- package/docs/components/GmapsDirection.md +20 -0
- package/docs/components/Grid.md +36 -0
- package/docs/components/HTMLEditor.md +26 -0
- package/docs/components/IconMenu.md +20 -0
- package/docs/components/Image.md +78 -0
- package/docs/components/Link.md +33 -0
- package/docs/components/MultiDropdown.md +46 -0
- package/docs/components/Radio.md +55 -0
- package/docs/components/Slider.md +47 -0
- package/docs/components/Switch.md +43 -0
- package/docs/components/Table.md +31 -0
- package/docs/components/Tabs.md +65 -0
- package/docs/components/Text.md +30 -0
- package/docs/components/Textarea.md +66 -0
- package/docs/components/Textbox.md +97 -0
- package/docs/components/Timepicker.md +62 -0
- package/docs/components/Toast.md +59 -0
- package/docs/components/Uploader.md +51 -0
- package/docs/components/Video.md +54 -0
- package/package.json +65 -2
- package/docs/components/Dashboard.md +0 -56
- package/docs/components/Header2.md +0 -16
- package/log.txt +0 -7
- package/public/assets/dashboard/bar.png +0 -0
- package/public/assets/dashboard/doughnut.png +0 -0
- package/public/assets/dashboard/metric.png +0 -0
- package/public/assets/dashboard/pie.png +0 -0
- package/public/assets/dashboard/polar-area.png +0 -0
- package/public/assets/dashboard/virtual-table.png +0 -0
- package/public/static/dashboard/bar.png +0 -0
- package/public/static/dashboard/doughnut.png +0 -0
- package/public/static/dashboard/metric.png +0 -0
- package/public/static/dashboard/pie.png +0 -0
- package/public/static/dashboard/polar-area.png +0 -0
- package/public/static/dashboard/virtual-table.png +0 -0
- package/src/components/404.vue +0 -61
- package/src/components/AccountIcon.vue +0 -19
- package/src/components/Ahref.vue +0 -200
- package/src/components/Alert.vue +0 -257
- package/src/components/ArrayList.vue +0 -49
- package/src/components/Article.vue +0 -387
- package/src/components/Block.vue +0 -31
- package/src/components/Box.vue +0 -34
- package/src/components/Button.vue +0 -258
- package/src/components/Card.vue +0 -257
- package/src/components/Carousel.vue +0 -364
- package/src/components/Cart.vue +0 -192
- package/src/components/CartIcon.vue +0 -89
- package/src/components/Chart.vue +0 -485
- package/src/components/ChartBar.vue +0 -192
- package/src/components/ChatTyping.vue +0 -69
- package/src/components/Checkbox.vue +0 -200
- package/src/components/Checkout.vue +0 -373
- package/src/components/CheckoutDelivery.vue +0 -267
- package/src/components/CodeEditor.vue +0 -50
- package/src/components/CollapsiblePanel.vue +0 -70
- package/src/components/ColorPicker.vue +0 -165
- package/src/components/ColorPicker2.vue +0 -186
- package/src/components/ColorPicker3.vue +0 -100
- package/src/components/Confirm.vue +0 -180
- package/src/components/ContextMenu.vue +0 -265
- package/src/components/ContextMenuItem.vue +0 -53
- package/src/components/ConversationBuilder.vue +0 -161
- package/src/components/CopyToClipboard.vue +0 -34
- package/src/components/Countdown.vue +0 -264
- package/src/components/DGrid.vue +0 -21
- package/src/components/DGridItem.vue +0 -263
- package/src/components/Dashboard.vue +0 -243
- package/src/components/Dashboard2.vue +0 -118
- package/src/components/DashboardComponentSelector.vue +0 -96
- package/src/components/DashboardConfigs.vue +0 -202
- package/src/components/DataList.vue +0 -92
- package/src/components/Datepicker.vue +0 -399
- package/src/components/DayTimeRange.vue +0 -126
- package/src/components/Dropdown.vue +0 -224
- package/src/components/ErrorText.vue +0 -57
- package/src/components/FBLogin.vue +0 -194
- package/src/components/Feed.vue +0 -118
- package/src/components/Flex.vue +0 -44
- package/src/components/GHeatMaps.vue +0 -317
- package/src/components/GSignIn.vue +0 -166
- package/src/components/Gmaps.vue +0 -251
- package/src/components/GmapsDirection.vue +0 -191
- package/src/components/Grid.vue +0 -35
- package/src/components/HTMLEditor.vue +0 -588
- package/src/components/IconMenu.vue +0 -95
- package/src/components/IconMenu2.vue +0 -89
- package/src/components/IconPlus.vue +0 -89
- package/src/components/Image.vue +0 -263
- package/src/components/Image360.vue +0 -140
- package/src/components/ImageFullScreen.vue +0 -101
- package/src/components/ImagePreview.vue +0 -93
- package/src/components/ImageUploader.vue +0 -114
- package/src/components/ImportModal.vue +0 -260
- package/src/components/Link.vue +0 -95
- package/src/components/List.vue +0 -1381
- package/src/components/ListContextMenu.vue +0 -88
- package/src/components/ListItem.vue +0 -160
- package/src/components/ListPage1.vue +0 -1401
- package/src/components/ListPage1Filter.vue +0 -170
- package/src/components/ListView.vue +0 -961
- package/src/components/ListViewBarSummary.vue +0 -81
- package/src/components/ListViewLineSummary.vue +0 -75
- package/src/components/ListViewLiveBarSummary.vue +0 -52
- package/src/components/ListViewMapSummary.vue +0 -56
- package/src/components/ListViewSettings.vue +0 -514
- package/src/components/ListViewTableSummary.vue +0 -77
- package/src/components/LogViewerItem.vue +0 -116
- package/src/components/MarkdownEdit.vue +0 -128
- package/src/components/MarkdownPreview.vue +0 -102
- package/src/components/MenuItem1.vue +0 -36
- package/src/components/Modal.vue +0 -456
- package/src/components/MultiDropdown.vue +0 -124
- package/src/components/MultilineText.vue +0 -174
- package/src/components/OTPField.vue +0 -139
- package/src/components/ObjectTree.vue +0 -105
- package/src/components/PageBuilder.vue +0 -449
- package/src/components/Paragraph.vue +0 -40
- package/src/components/PresetSelectorFilterItem.vue +0 -203
- package/src/components/Radio.vue +0 -109
- package/src/components/SearchModal.vue +0 -153
- package/src/components/Slider.vue +0 -317
- package/src/components/SplitPane.vue +0 -129
- package/src/components/Svg.vue +0 -33
- package/src/components/SvgEditor.vue +0 -173
- package/src/components/Switch.vue +0 -101
- package/src/components/TabView.vue +0 -105
- package/src/components/Table.vue +0 -56
- package/src/components/TableView.vue +0 -200
- package/src/components/TableViewHead.vue +0 -159
- package/src/components/Tabs.vue +0 -131
- package/src/components/Test.vue +0 -23
- package/src/components/Testimonial.vue +0 -86
- package/src/components/Text.vue +0 -34
- package/src/components/TextBlock.vue +0 -50
- package/src/components/TextEditor.vue +0 -85
- package/src/components/TextWithTag.vue +0 -298
- package/src/components/Textarea.vue +0 -184
- package/src/components/Textbox.vue +0 -216
- package/src/components/Thumbnail.vue +0 -27
- package/src/components/Timepicker.vue +0 -125
- package/src/components/Toast.vue +0 -117
- package/src/components/TreeMenu.vue +0 -122
- package/src/components/TreeView.vue +0 -106
- package/src/components/TreeView2.vue +0 -38
- package/src/components/TreeViewItem.vue +0 -453
- package/src/components/TreeViewItem1.vue +0 -282
- package/src/components/TreeViewItem2.vue +0 -55
- package/src/components/Uploader.vue +0 -45
- package/src/components/Video.vue +0 -119
- package/src/components/VirtualGrid.vue +0 -297
- package/src/components/VirtualScroll.vue +0 -282
- package/src/components/VirtualTable.vue +0 -956
- package/src/components/YoutubeVideo.vue +0 -196
- package/src/configs/dashboard/bar.js +0 -10
- package/src/configs/dashboard/collection-1.js +0 -5
- package/src/configs/dashboard/data-table.js +0 -9
- package/src/configs/dashboard/doughnut.js +0 -7
- package/src/configs/dashboard/gheatmaps.js +0 -9
- package/src/configs/dashboard/grid-2.js +0 -34
- package/src/configs/dashboard/grid-3.js +0 -34
- package/src/configs/dashboard/grid-4.js +0 -34
- package/src/configs/dashboard/grid.js +0 -15
- package/src/configs/dashboard/metric.js +0 -10
- package/src/configs/dashboard/pie.js +0 -7
- package/src/configs/dashboard/polar-area.js +0 -7
- package/src/configs/dashboard/virtual-table.js +0 -9
- package/src/configs/icons-fa.json +0 -12
- package/src/configs/web-page-builder.js +0 -118
- package/src/defs/dashboard-preset.js +0 -22
- package/src/directives/intersect.js +0 -26
- package/src/hooks/device.js +0 -14
- package/src/index.css +0 -3
- package/src/index.js +0 -648
- package/src/middleware/http/trim-string.js +0 -20
- package/src/mixin/component.js +0 -306
- package/src/mixin/ready-state.js +0 -37
- package/src/stores/components.js +0 -36
- package/src/stores/datasource.js +0 -11
- package/src/themes/default/index.js +0 -303
- package/src/utils/dashboard.js +0 -140
- package/src/utils/event-bus.js +0 -8
- package/src/utils/helpers.cjs +0 -635
- package/src/utils/helpers.js +0 -635
- package/src/utils/helpers.mjs +0 -722
- package/src/utils/importer.js +0 -209
- package/src/utils/list.mjs +0 -1509
- package/src/utils/listpage1.js +0 -1507
- package/src/utils/listview.js +0 -1287
- package/src/utils/preset-selector.cjs +0 -1455
- package/src/utils/preset-selector.js +0 -1452
- package/src/utils/preset-selector.mjs +0 -234
- package/src/utils/queue.js +0 -63
- package/src/utils/selection.js +0 -43
- package/src/utils/web.js +0 -50
- package/src/utils/web.mjs +0 -120
- package/src/utils/wss.js +0 -296
- package/src/utils/wss.mjs +0 -285
- package/src/widgets/AhrefSetting.vue +0 -97
- package/src/widgets/ArticleSetting.vue +0 -457
- package/src/widgets/BackgroundColorSetting.vue +0 -153
- package/src/widgets/BackgroundSetting.vue +0 -132
- package/src/widgets/BlockSetting.vue +0 -49
- package/src/widgets/BorderColorSetting.vue +0 -57
- package/src/widgets/BorderSetting.vue +0 -201
- package/src/widgets/BotEditor/BotEditorActions.vue +0 -163
- package/src/widgets/BotEditor/BotEditorSettings.vue +0 -21
- package/src/widgets/BotEditor.vue +0 -248
- package/src/widgets/BoxSetting.vue +0 -53
- package/src/widgets/ButtonSetting.vue +0 -113
- package/src/widgets/CarouselSetting.vue +0 -181
- package/src/widgets/CartSetting.vue +0 -46
- package/src/widgets/CheckoutSetting.vue +0 -46
- package/src/widgets/CollapsiblePanelSetting.vue +0 -46
- package/src/widgets/ColumnSelector.vue +0 -104
- package/src/widgets/ComponentPropertyLabel.vue +0 -35
- package/src/widgets/ComponentPropertySelector.vue +0 -115
- package/src/widgets/ComponentSetting.vue +0 -2220
- package/src/widgets/ComponentSetting2.vue +0 -927
- package/src/widgets/ComponentSetting3.vue +0 -231
- package/src/widgets/ContactForm.vue +0 -193
- package/src/widgets/ContactFormSetting.vue +0 -395
- package/src/widgets/CountdownSetting.vue +0 -76
- package/src/widgets/Dashboard/BarChart.vue +0 -366
- package/src/widgets/Dashboard/BarChartSetting.vue +0 -317
- package/src/widgets/Dashboard/DataTable.vue +0 -125
- package/src/widgets/Dashboard/DataTableSetting.vue +0 -243
- package/src/widgets/Dashboard/DatasourceFilterSharing.vue +0 -93
- package/src/widgets/Dashboard/DatasourcePreview.vue +0 -93
- package/src/widgets/Dashboard/DatasourceSelector.vue +0 -122
- package/src/widgets/Dashboard/Doughnut.vue +0 -199
- package/src/widgets/Dashboard/DoughnutSetting.vue +0 -196
- package/src/widgets/Dashboard/GHeatMapsSetting.vue +0 -108
- package/src/widgets/Dashboard/InteractionEdit.vue +0 -228
- package/src/widgets/Dashboard/Metric.vue +0 -135
- package/src/widgets/Dashboard/MetricSetting.vue +0 -227
- package/src/widgets/Dashboard/Pie.vue +0 -188
- package/src/widgets/Dashboard/PieSetting.vue +0 -247
- package/src/widgets/Dashboard/PolarArea.vue +0 -201
- package/src/widgets/Dashboard/PolarAreaSetting.vue +0 -195
- package/src/widgets/Dashboard/SharingModal.vue +0 -115
- package/src/widgets/Dashboard/ViewSelector.vue +0 -183
- package/src/widgets/Dashboard/VirtualColumnEdit.vue +0 -97
- package/src/widgets/Dashboard/VirtualTableSetting.vue +0 -171
- package/src/widgets/Dashboard0.vue +0 -1856
- package/src/widgets/DataListSetting.vue +0 -102
- package/src/widgets/EffectSetting.vue +0 -94
- package/src/widgets/EmbeddedVideo.vue +0 -60
- package/src/widgets/EmbeddedVideoSetting.vue +0 -50
- package/src/widgets/FAQ.vue +0 -98
- package/src/widgets/FAQSetting.vue +0 -94
- package/src/widgets/FeatureList.vue +0 -131
- package/src/widgets/FeatureListSetting.vue +0 -233
- package/src/widgets/FiltersSetting.vue +0 -88
- package/src/widgets/FlexSetting.vue +0 -174
- package/src/widgets/GridSetting.vue +0 -165
- package/src/widgets/Header.vue +0 -15
- package/src/widgets/Header0.vue +0 -41
- package/src/widgets/Header0Setting.vue +0 -75
- package/src/widgets/Header2.vue +0 -65
- package/src/widgets/Header2Setting.vue +0 -193
- package/src/widgets/HeaderSetting.vue +0 -102
- package/src/widgets/IconList.vue +0 -51
- package/src/widgets/IconListSetting.vue +0 -188
- package/src/widgets/ImageSetting.vue +0 -119
- package/src/widgets/LayoutSetting.vue +0 -251
- package/src/widgets/LinkSetting.vue +0 -209
- package/src/widgets/LinkSettingModal.vue +0 -173
- package/src/widgets/LogViewer.vue +0 -85
- package/src/widgets/MarginPaddingSetting.vue +0 -58
- package/src/widgets/MarginSetting.vue +0 -142
- package/src/widgets/MenuEditor.vue +0 -256
- package/src/widgets/MenuItem1Setting.vue +0 -78
- package/src/widgets/ModalSetting.vue +0 -94
- package/src/widgets/MultiValueSetting.vue +0 -121
- package/src/widgets/MultiValueSetting2.vue +0 -147
- package/src/widgets/OGSettingModal.vue +0 -103
- package/src/widgets/PaddingSetting.vue +0 -142
- package/src/widgets/ParagraphSetting.vue +0 -89
- package/src/widgets/PositionSetting.vue +0 -209
- package/src/widgets/PresetBar.vue +0 -990
- package/src/widgets/PresetBarPivot.vue +0 -198
- package/src/widgets/PresetBarPivotColumnEdit.vue +0 -197
- package/src/widgets/PresetSelector.vue +0 -685
- package/src/widgets/Review.vue +0 -131
- package/src/widgets/ReviewSetting.vue +0 -201
- package/src/widgets/SearchModalSetting.vue +0 -70
- package/src/widgets/Share.vue +0 -164
- package/src/widgets/ShareSetting.vue +0 -99
- package/src/widgets/SizingSetting.vue +0 -306
- package/src/widgets/SpacingSetting.vue +0 -77
- package/src/widgets/StyleSetting.vue +0 -543
- package/src/widgets/StyleSetting2.vue +0 -90
- package/src/widgets/SvgSetting.vue +0 -133
- package/src/widgets/TableSetting.vue +0 -172
- package/src/widgets/TestimonialSetting.vue +0 -161
- package/src/widgets/TextBlockSetting.vue +0 -81
- package/src/widgets/ThumbnailSetting.vue +0 -49
- package/src/widgets/TransitionSetting.vue +0 -64
- package/src/widgets/TypographySetting.vue +0 -334
- package/src/widgets/UserActionBuilder/UserActionCondition.vue +0 -99
- package/src/widgets/UserActionBuilder/UserActionConsole.vue +0 -97
- package/src/widgets/UserActionBuilder/UserActionItem.vue +0 -273
- package/src/widgets/UserActionBuilder/UserActionOutput.vue +0 -152
- package/src/widgets/UserActionBuilder/UserActionOutputDelay.vue +0 -27
- package/src/widgets/UserActionBuilder/UserActionOutputLog.vue +0 -28
- package/src/widgets/UserActionBuilder/UserActionOutputReply.vue +0 -112
- package/src/widgets/UserActionBuilder/UserActionProps.vue +0 -213
- package/src/widgets/UserActionBuilder.vue +0 -314
- package/src/widgets/WebComponentSelector.vue +0 -205
- package/src/widgets/WebDatasourceSelector.vue +0 -153
- package/src/widgets/WebLayoutSelector.vue +0 -147
- package/src/widgets/WebPageBuilder.vue +0 -2161
- package/src/widgets/WebPageBuilder2.vue +0 -1091
- package/src/widgets/WebPageBuilder3.vue +0 -411
- package/src/widgets/WebPageBuilder4/BackgroundColorSetting.vue +0 -54
- package/src/widgets/WebPageBuilder4/BackgroundPositionSetting.vue +0 -75
- package/src/widgets/WebPageBuilder4/BackgroundRepeatSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BackgroundSizeSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BlurSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BorderColorSetting.vue +0 -64
- package/src/widgets/WebPageBuilder4/BorderRadiusSetting.vue +0 -75
- package/src/widgets/WebPageBuilder4/BorderSizeSetting.vue +0 -69
- package/src/widgets/WebPageBuilder4/BorderStyleSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/BoxShadowSetting.vue +0 -73
- package/src/widgets/WebPageBuilder4/ButtonSetting.vue +0 -65
- package/src/widgets/WebPageBuilder4/CarouselSetting.vue +0 -178
- package/src/widgets/WebPageBuilder4/DisplaySetting.vue +0 -76
- package/src/widgets/WebPageBuilder4/FlexAlignSetting.vue +0 -71
- package/src/widgets/WebPageBuilder4/FlexDirectionSetting.vue +0 -70
- package/src/widgets/WebPageBuilder4/FlexJustifySetting.vue +0 -74
- package/src/widgets/WebPageBuilder4/FlexPropertySetting.vue +0 -71
- package/src/widgets/WebPageBuilder4/FlexSetting.vue +0 -96
- package/src/widgets/WebPageBuilder4/FlexWrapSetting.vue +0 -69
- package/src/widgets/WebPageBuilder4/GapSetting.vue +0 -75
- package/src/widgets/WebPageBuilder4/GrayscaleSetting.vue +0 -68
- package/src/widgets/WebPageBuilder4/GridSetting.vue +0 -216
- package/src/widgets/WebPageBuilder4/HeightSetting.vue +0 -98
- package/src/widgets/WebPageBuilder4/ImageSetting.vue +0 -102
- package/src/widgets/WebPageBuilder4/MarginSetting.vue +0 -73
- package/src/widgets/WebPageBuilder4/MaxHeightSetting.vue +0 -82
- package/src/widgets/WebPageBuilder4/MaxWidthSetting.vue +0 -90
- package/src/widgets/WebPageBuilder4/MinHeightSetting.vue +0 -81
- package/src/widgets/WebPageBuilder4/MinWidthSetting.vue +0 -101
- package/src/widgets/WebPageBuilder4/MultiValueSetting.vue +0 -163
- package/src/widgets/WebPageBuilder4/OpacitySetting.vue +0 -77
- package/src/widgets/WebPageBuilder4/OverflowSetting.vue +0 -81
- package/src/widgets/WebPageBuilder4/PaddingSetting.vue +0 -57
- package/src/widgets/WebPageBuilder4/PositionSetting.vue +0 -191
- package/src/widgets/WebPageBuilder4/PropertySetting.vue +0 -176
- package/src/widgets/WebPageBuilder4/TextSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4/TreeView.vue +0 -46
- package/src/widgets/WebPageBuilder4/TreeViewItem.vue +0 -303
- package/src/widgets/WebPageBuilder4/WebPageComponentSelector.vue +0 -141
- package/src/widgets/WebPageBuilder4/WebPagePropertySelector.vue +0 -172
- package/src/widgets/WebPageBuilder4/WidthSetting.vue +0 -105
- package/src/widgets/WebPageBuilder4/ZIndexSetting.vue +0 -72
- package/src/widgets/WebPageBuilder4.vue +0 -798
- package/src/widgets/WebPagePreview.vue +0 -295
- package/src/widgets/WebPageSelector.vue +0 -173
- package/src/widgets/WebTemplateCreator.vue +0 -156
- package/src/widgets/YoutubeVideoSetting.vue +0 -68
- package/tailwind.config.js +0 -481
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.comp">
|
|
3
|
-
|
|
4
|
-
<div class="p-6 py-4 flex flex-col gap-4">
|
|
5
|
-
<div class="flex flex-col gap-1">
|
|
6
|
-
<label class="text-text-400">Title</label>
|
|
7
|
-
<Textbox v-model="item.props.title" maxlength="40" @keyup.enter="$emit('change')" placeholder="Title" />
|
|
8
|
-
<Textarea v-model="item.props.description" rows="3" @blur="$emit('change')" placeholder="Description" />
|
|
9
|
-
</div>
|
|
10
|
-
|
|
11
|
-
<div class="flex flex-col gap-1">
|
|
12
|
-
<label class="text-text-400">Mode</label>
|
|
13
|
-
<Dropdown v-model="item.props.mode" @change="item.props.items = []">
|
|
14
|
-
<option value="">Static</option>
|
|
15
|
-
<option value="dynamic">Dynamic</option>
|
|
16
|
-
</Dropdown>
|
|
17
|
-
<Textbox v-if="item.props.mode === 'dynamic'"
|
|
18
|
-
placeholder="Var" v-model="item.props.src"
|
|
19
|
-
@blur="$emit('change')"
|
|
20
|
-
@keyup.enter="$emit('change')" />
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<div v-if="item.props.mode !== 'dynamic'">
|
|
24
|
-
<div class="flex flex-row gap-4">
|
|
25
|
-
<label class="flex-1 text-text-400">Items</label>
|
|
26
|
-
<button type="button" class="text-primary"
|
|
27
|
-
@click="$refs.imageModal.open({ image:{} })">Add Item</button>
|
|
28
|
-
</div>
|
|
29
|
-
<ListItem :items="item.props.items.filter((_) => _)"
|
|
30
|
-
class="mt-1 border-[1px] border-border-200 bg-base-300 rounded-lg overflow-hidden"
|
|
31
|
-
container-class="divide-y divide-border-50"
|
|
32
|
-
@reorder="(from, to) => { item.props.items.splice(to, 0, item.props.items.splice(from, 1)[0]); $emit('change') }">
|
|
33
|
-
<template v-slot="{ item:image, index }">
|
|
34
|
-
<div class="flex flex-row gap-3 p-2 px-3 items-center rounded-lg">
|
|
35
|
-
<div data-reorder>
|
|
36
|
-
<svg width="14" height="14" class="fill-text-300" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path d="M496 288H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16zm0-128H16c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h480c8.8 0 16-7.2 16-16v-32c0-8.8-7.2-16-16-16z"/></svg>
|
|
37
|
-
</div>
|
|
38
|
-
<div @click="$refs.imageModal.open({ image, idx, index })">
|
|
39
|
-
<Image :src="imageUrl(image)"
|
|
40
|
-
class="w-[32px] aspect-square rounded-md"
|
|
41
|
-
item-class="object-cover" />
|
|
42
|
-
</div>
|
|
43
|
-
<div class="flex-1 flex flex-col leading-4" @click="$refs.imageModal.open({ image, idx, index })">
|
|
44
|
-
<p class="text-ellipsis whitespace-nowrap overflow-hidden">{{ image.title }}</p>
|
|
45
|
-
<p class="text-sm text-ellipsis whitespace-nowrap overflow-hidden">{{ image.description }}</p>
|
|
46
|
-
</div>
|
|
47
|
-
<div>
|
|
48
|
-
<button type="button" @click="confirm('Hapus gambar ini?', '', () => { item.props.items.splice(index, 1); $emit('change') })">
|
|
49
|
-
<svg width="16" height="16" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M207.6 256l107.72-107.72c6.23-6.23 6.23-16.34 0-22.58l-25.03-25.03c-6.23-6.23-16.34-6.23-22.58 0L160 208.4 52.28 100.68c-6.23-6.23-16.34-6.23-22.58 0L4.68 125.7c-6.23 6.23-6.23 16.34 0 22.58L112.4 256 4.68 363.72c-6.23 6.23-6.23 16.34 0 22.58l25.03 25.03c6.23 6.23 16.34 6.23 22.58 0L160 303.6l107.72 107.72c6.23 6.23 16.34 6.23 22.58 0l25.03-25.03c6.23-6.23 6.23-16.34 0-22.58L207.6 256z"/></svg>
|
|
50
|
-
</button>
|
|
51
|
-
</div>
|
|
52
|
-
</div>
|
|
53
|
-
</template>
|
|
54
|
-
</ListItem>
|
|
55
|
-
</div>
|
|
56
|
-
|
|
57
|
-
<div v-else>
|
|
58
|
-
<label class="flex-1 text-text-400">Item</label>
|
|
59
|
-
<div class="mt-1 flex flex-col gap-1">
|
|
60
|
-
<Textbox v-model="itemPropsItem.title" placeholder="Title var"
|
|
61
|
-
@blur="$emit('change')"
|
|
62
|
-
@keyup.enter="$emit('change')"/>
|
|
63
|
-
<Textbox v-model="itemPropsItem.description" placeholder="Description var"
|
|
64
|
-
@blur="$emit('change')"
|
|
65
|
-
@keyup.enter="$emit('change')"/>
|
|
66
|
-
<Textbox v-model="itemPropsItem.imageUrl" placeholder="Image var"
|
|
67
|
-
@blur="$emit('change')"
|
|
68
|
-
@keyup.enter="$emit('change')"/>
|
|
69
|
-
</div>
|
|
70
|
-
</div>
|
|
71
|
-
|
|
72
|
-
<div class="flex flex-row items-center gap-4">
|
|
73
|
-
<label class="flex-1 text-text-400">Columns</label>
|
|
74
|
-
<Dropdown v-for="(_viewType, idx) in viewTypes" class="w-[60px]"
|
|
75
|
-
v-model="containerGridColumn[idx]"
|
|
76
|
-
v-show="_viewType.value === viewType"
|
|
77
|
-
@change="$emit('change')">
|
|
78
|
-
<option :value="`${viewType}grid-cols-1`">1</option>
|
|
79
|
-
<option :value="`${viewType}grid-cols-2`">2</option>
|
|
80
|
-
<option :value="`${viewType}grid-cols-3`">3</option>
|
|
81
|
-
<option :value="`${viewType}grid-cols-4`">4</option>
|
|
82
|
-
<option :value="`${viewType}grid-cols-5`">5</option>
|
|
83
|
-
<option :value="`${viewType}grid-cols-6`">6</option>
|
|
84
|
-
</Dropdown>
|
|
85
|
-
</div>
|
|
86
|
-
|
|
87
|
-
<div class="flex flex-row items-center gap-4">
|
|
88
|
-
<label class="flex-1 text-text-400">Style</label>
|
|
89
|
-
<Dropdown v-for="(_viewType, idx) in viewTypes" class="w-[150px]"
|
|
90
|
-
v-model="itemVariant[idx]"
|
|
91
|
-
v-show="_viewType.value === viewType"
|
|
92
|
-
@change="$emit('change')">
|
|
93
|
-
<option :value="`${viewType}flex-row ${viewType}text-left ${viewType}fl-uO88`">Style 1</option>
|
|
94
|
-
<option :value="`${viewType}flex-col ${viewType}items-center ${viewType}text-center ${viewType}fl-uO89`">Style 2</option>
|
|
95
|
-
</Dropdown>
|
|
96
|
-
</div>
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
<ComponentSetting2 :item="item"
|
|
100
|
-
:view-type="viewType"
|
|
101
|
-
:view-types="viewTypes"
|
|
102
|
-
:view-index="viewIndex"
|
|
103
|
-
defaultDisplay="block"
|
|
104
|
-
@change="$emit('change')" />
|
|
105
|
-
|
|
106
|
-
<Modal ref="imageModal" width="360" height="460">
|
|
107
|
-
<template #head="{ context }">
|
|
108
|
-
<div class="relative p-5">
|
|
109
|
-
<h3>{{ context.index >= 0 ? $t('Add Item') : $t('Edit Item') }}</h3>
|
|
110
|
-
<div class="absolute top-0 right-0 p-2">
|
|
111
|
-
<button type="button" class="p-2" @click="$refs.imageModal.close()">
|
|
112
|
-
<svg width="24" height="24" viewBox="0 0 24 24" class="fill-text-300 hover:fill-red-500" xmlns="http://www.w3.org/2000/svg">
|
|
113
|
-
<path d="M6.53034 5.46965C6.23745 5.17676 5.76257 5.17676 5.46968 5.46965C5.17679 5.76255 5.17679 6.23742 5.46968 6.53031L10.9393 12L5.46967 17.4697C5.17678 17.7626 5.17678 18.2374 5.46967 18.5303C5.76256 18.8232 6.23744 18.8232 6.53033 18.5303L12 13.0606L17.4697 18.5303C17.7626 18.8232 18.2375 18.8232 18.5303 18.5303C18.8232 18.2374 18.8232 17.7626 18.5303 17.4697L13.0607 12L18.5303 6.53032C18.8232 6.23743 18.8232 5.76256 18.5303 5.46966C18.2374 5.17677 17.7626 5.17677 17.4697 5.46966L12 10.9393L6.53034 5.46965Z"/>
|
|
114
|
-
</svg>
|
|
115
|
-
</button>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
</template>
|
|
119
|
-
<template #foot="{ context }">
|
|
120
|
-
<div class="p-5">
|
|
121
|
-
<Button type="button" class="w-full" @click="context.index >= 0 ?
|
|
122
|
-
item.props.items[context.index] = context.image :
|
|
123
|
-
item.props.items.push(context.image);
|
|
124
|
-
$refs.imageModal.close();
|
|
125
|
-
$emit('change')">
|
|
126
|
-
OK
|
|
127
|
-
</Button>
|
|
128
|
-
</div>
|
|
129
|
-
</template>
|
|
130
|
-
<template #default="{ context }">
|
|
131
|
-
<div class="flex-1 flex flex-col gap-4 p-5">
|
|
132
|
-
<div>
|
|
133
|
-
<div class="flex flex-row">
|
|
134
|
-
<label class="flex-1 text-text-400">Gambar</label>
|
|
135
|
-
<button type="button" class="text-primary" @click="$refs.imageUpload.edit()">Ubah</button>
|
|
136
|
-
</div>
|
|
137
|
-
<Image ref="imageUpload" :src="imageUrl(context.image)"
|
|
138
|
-
class="w-[120px] bg-text-50 mt-1 aspect-square"
|
|
139
|
-
:editable="true"
|
|
140
|
-
@click="$refs.imageUpload.edit()"
|
|
141
|
-
@change="(base64, file) => { uploadImage(file).then((res) => context.image.imageUrl = res.name); }"/>
|
|
142
|
-
</div>
|
|
143
|
-
|
|
144
|
-
<div class="flex flex-col gap-1">
|
|
145
|
-
<label class="flex-1 text-text-400">Text</label>
|
|
146
|
-
<Textbox v-model="context.image.title" placeholder="Title" />
|
|
147
|
-
<Textarea v-model="context.image.description" rows="3" placeholder="Description" />
|
|
148
|
-
</div>
|
|
149
|
-
|
|
150
|
-
<div class="flex flex-col gap-1">
|
|
151
|
-
<label class="flex-1 text-text-400">Size</label>
|
|
152
|
-
<Dropdown v-model="context.image.sizeClass" class="w-[100px]">
|
|
153
|
-
<option value="">-</option>
|
|
154
|
-
<option value="w-1">1</option>
|
|
155
|
-
<option value="w-2">2</option>
|
|
156
|
-
<option value="w-3">3</option>
|
|
157
|
-
<option value="w-4">4</option>
|
|
158
|
-
<option value="w-5">5</option>
|
|
159
|
-
<option value="w-6">6</option>
|
|
160
|
-
<option value="w-8">8</option>
|
|
161
|
-
<option value="w-12">12</option>
|
|
162
|
-
<option value="w-16">16</option>
|
|
163
|
-
<option value="w-20">20</option>
|
|
164
|
-
<option value="w-28">28</option>
|
|
165
|
-
<option value="w-32">32</option>
|
|
166
|
-
<option value="w-36">36</option>
|
|
167
|
-
<option value="w-48">48</option>
|
|
168
|
-
</Dropdown>
|
|
169
|
-
</div>
|
|
170
|
-
|
|
171
|
-
</div>
|
|
172
|
-
</template>
|
|
173
|
-
</Modal>
|
|
174
|
-
|
|
175
|
-
</div>
|
|
176
|
-
</template>
|
|
177
|
-
|
|
178
|
-
<script>
|
|
179
|
-
|
|
180
|
-
export default{
|
|
181
|
-
|
|
182
|
-
emits: [ 'change' ],
|
|
183
|
-
|
|
184
|
-
inject: [ 'confirm', 'imageUrl', 'uploadImage' ],
|
|
185
|
-
|
|
186
|
-
props: {
|
|
187
|
-
|
|
188
|
-
item: {
|
|
189
|
-
type: Object,
|
|
190
|
-
required: true
|
|
191
|
-
},
|
|
192
|
-
|
|
193
|
-
viewType: String,
|
|
194
|
-
|
|
195
|
-
viewIndex: Number,
|
|
196
|
-
|
|
197
|
-
viewTypes: Array,
|
|
198
|
-
|
|
199
|
-
},
|
|
200
|
-
|
|
201
|
-
computed: {
|
|
202
|
-
|
|
203
|
-
containerGridColumn(){
|
|
204
|
-
if(!Array.isArray(this.item.props.containerGridColumn))
|
|
205
|
-
this.item.props.containerGridColumn = []
|
|
206
|
-
return this.item.props.containerGridColumn
|
|
207
|
-
},
|
|
208
|
-
|
|
209
|
-
itemVariant(){
|
|
210
|
-
if(!Array.isArray(this.item.props.itemVariant))
|
|
211
|
-
this.item.props.itemVariant = []
|
|
212
|
-
return this.item.props.itemVariant
|
|
213
|
-
},
|
|
214
|
-
|
|
215
|
-
itemPropsItem(){
|
|
216
|
-
if(!this.item.props.item)
|
|
217
|
-
this.item.props.item = {}
|
|
218
|
-
return this.item.props.item
|
|
219
|
-
}
|
|
220
|
-
|
|
221
|
-
}
|
|
222
|
-
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
</script>
|
|
226
|
-
|
|
227
|
-
<style module>
|
|
228
|
-
|
|
229
|
-
.comp{
|
|
230
|
-
@apply flex flex-col divide-y divide-border-50;
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
</style>
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="grid grid-cols-2 gap-4">
|
|
3
|
-
|
|
4
|
-
<div v-if="'blur' in item.props">
|
|
5
|
-
<ComponentPropertyLabel label="Blur"
|
|
6
|
-
:removable="removable"
|
|
7
|
-
@remove="delete item.props.blur" />
|
|
8
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
9
|
-
v-show="viewType === _.value"
|
|
10
|
-
v-model="blur[idx]"
|
|
11
|
-
@change="$emit('change')">
|
|
12
|
-
<option value="">Default</option>
|
|
13
|
-
<option :value="`${viewType}blur-none`">None</option>
|
|
14
|
-
<option :value="`${viewType}blur-sm`">Sm</option>
|
|
15
|
-
<option :value="`${viewType}blur`">Md</option>
|
|
16
|
-
<option :value="`${viewType}blur-lg`">Lg</option>
|
|
17
|
-
<option :value="`${viewType}blur-xl`">Xl</option>
|
|
18
|
-
<option :value="`${viewType}blur-2xl`">2xl</option>
|
|
19
|
-
</Dropdown>
|
|
20
|
-
</div>
|
|
21
|
-
|
|
22
|
-
<div v-if="'grayscale' in item.props">
|
|
23
|
-
<ComponentPropertyLabel label="Grayscale"
|
|
24
|
-
:removable="removable"
|
|
25
|
-
@remove="delete item.props.grayscale" />
|
|
26
|
-
<Dropdown v-for="(_, idx) in viewTypes"
|
|
27
|
-
v-show="viewType === _.value"
|
|
28
|
-
v-model="grayscale[idx]"
|
|
29
|
-
@change="$emit('change')">
|
|
30
|
-
<option value="">Default</option>
|
|
31
|
-
<option :value="`${viewType}grayscale-0`">Not Grayscale</option>
|
|
32
|
-
<option :value="`${viewType}grayscale`">Grayscale</option>
|
|
33
|
-
</Dropdown>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
</div>
|
|
37
|
-
</template>
|
|
38
|
-
|
|
39
|
-
<script>
|
|
40
|
-
|
|
41
|
-
import ComponentPropertyLabel from "./ComponentPropertyLabel.vue";
|
|
42
|
-
import Dropdown from "../components/Dropdown.vue";
|
|
43
|
-
|
|
44
|
-
export default{
|
|
45
|
-
components: {Dropdown, ComponentPropertyLabel},
|
|
46
|
-
|
|
47
|
-
emits: [ 'change' ],
|
|
48
|
-
|
|
49
|
-
inject: [ 'viewTypes', 'initPropValue' ],
|
|
50
|
-
|
|
51
|
-
props: {
|
|
52
|
-
config: Object,
|
|
53
|
-
|
|
54
|
-
item: {
|
|
55
|
-
type: Object,
|
|
56
|
-
required: true
|
|
57
|
-
},
|
|
58
|
-
|
|
59
|
-
removable: Boolean
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
computed: {
|
|
63
|
-
|
|
64
|
-
blur(){
|
|
65
|
-
this.initPropValue(this.item.props, 'blur')
|
|
66
|
-
return this.item.props.blur
|
|
67
|
-
},
|
|
68
|
-
|
|
69
|
-
grayscale(){
|
|
70
|
-
this.initPropValue(this.item.props, 'grayscale')
|
|
71
|
-
return this.item.props.grayscale
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
viewType(){
|
|
75
|
-
return this.config.viewType
|
|
76
|
-
},
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
data(){
|
|
81
|
-
return {
|
|
82
|
-
_config: {},
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
</script>
|
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.comp">
|
|
3
|
-
|
|
4
|
-
<div class="grid grid-cols-2 gap-4 p-6">
|
|
5
|
-
|
|
6
|
-
<div>
|
|
7
|
-
<small class="text-text-400">Direction</small>
|
|
8
|
-
<Dropdown v-model="direction[viewIndex]"
|
|
9
|
-
@change="$emit('change')">
|
|
10
|
-
<option value="">Default</option>
|
|
11
|
-
<option :value="`${viewType}flex-row`">Row</option>
|
|
12
|
-
<option :value="`${viewType}flex-col`">Column</option>
|
|
13
|
-
<option :value="`${viewType}flex-row-reverse`">Row Reverse</option>
|
|
14
|
-
<option :value="`${viewType}flex-col-reverse`">Column Reverse</option>
|
|
15
|
-
</Dropdown>
|
|
16
|
-
</div>
|
|
17
|
-
|
|
18
|
-
<div>
|
|
19
|
-
<small class="text-text-400">Gap</small>
|
|
20
|
-
<Dropdown v-model="gap[viewIndex]"
|
|
21
|
-
class="w-full"
|
|
22
|
-
@change="$emit('change')">
|
|
23
|
-
<option value="">Not Set</option>
|
|
24
|
-
<option :value="`${viewType}gap-0`">0</option>
|
|
25
|
-
<option :value="`${viewType}gap-1`">1</option>
|
|
26
|
-
<option :value="`${viewType}gap-2`">2</option>
|
|
27
|
-
<option :value="`${viewType}gap-3`">3</option>
|
|
28
|
-
<option :value="`${viewType}gap-4`">4</option>
|
|
29
|
-
<option :value="`${viewType}gap-5`">5</option>
|
|
30
|
-
<option :value="`${viewType}gap-6`">6</option>
|
|
31
|
-
<option :value="`${viewType}gap-7`">7</option>
|
|
32
|
-
<option :value="`${viewType}gap-8`">8</option>
|
|
33
|
-
</Dropdown>
|
|
34
|
-
</div>
|
|
35
|
-
|
|
36
|
-
<div>
|
|
37
|
-
<small class="text-text-400">Align</small>
|
|
38
|
-
<Dropdown v-model="flexAlign[viewIndex]"
|
|
39
|
-
class="w-full"
|
|
40
|
-
@change="$emit('change')">
|
|
41
|
-
<option value="">Not Set</option>
|
|
42
|
-
<option :value="`${viewType}items-start`">Start</option>
|
|
43
|
-
<option :value="`${viewType}items-end`">End</option>
|
|
44
|
-
<option :value="`${viewType}items-center`">Center</option>
|
|
45
|
-
<option :value="`${viewType}items-baseline`">Baseline</option>
|
|
46
|
-
<option :value="`${viewType}items-stretch`">Stretch</option>
|
|
47
|
-
</Dropdown>
|
|
48
|
-
</div>
|
|
49
|
-
|
|
50
|
-
<div>
|
|
51
|
-
<small class="text-text-400">Justify</small>
|
|
52
|
-
<Dropdown v-model="flexJustify[viewIndex]"
|
|
53
|
-
class="w-full"
|
|
54
|
-
@change="$emit('change')">
|
|
55
|
-
<option value="">Not Set</option>
|
|
56
|
-
<option :value="`${viewType}justify-normal`">Normal</option>
|
|
57
|
-
<option :value="`${viewType}justify-start`">Start</option>
|
|
58
|
-
<option :value="`${viewType}justify-end`">End</option>
|
|
59
|
-
<option :value="`${viewType}justify-center`">Center</option>
|
|
60
|
-
<option :value="`${viewType}justify-between`">Between</option>
|
|
61
|
-
<option :value="`${viewType}justify-around`">Around</option>
|
|
62
|
-
<option :value="`${viewType}justify-evenly`">Evenly</option>
|
|
63
|
-
<option :value="`${viewType}justify-stretch`">Stretch</option>
|
|
64
|
-
</Dropdown>
|
|
65
|
-
</div>
|
|
66
|
-
|
|
67
|
-
<div>
|
|
68
|
-
<small class="text-text-400">Wrap</small>
|
|
69
|
-
<Dropdown v-model="wrap[viewIndex]"
|
|
70
|
-
class="w-full"
|
|
71
|
-
@change="$emit('change')">
|
|
72
|
-
<option value="">Not Set</option>
|
|
73
|
-
<option :value="`${viewType}flex-wrap`">Wrap</option>
|
|
74
|
-
<option :value="`${viewType}flex-wrap-reverse`">Wrap reverse</option>
|
|
75
|
-
<option :value="`${viewType}flex-nowrap`">No wrap</option>
|
|
76
|
-
</Dropdown>
|
|
77
|
-
</div>
|
|
78
|
-
|
|
79
|
-
</div>
|
|
80
|
-
|
|
81
|
-
<ComponentSetting2 :item="item"
|
|
82
|
-
:excludes="[ 'direction', 'flexAlign', 'flexJustify', 'gap', 'wrap' ]"
|
|
83
|
-
:view-type="viewType"
|
|
84
|
-
:view-types="viewTypes"
|
|
85
|
-
:view-index="viewIndex"
|
|
86
|
-
defaultDisplay="block"
|
|
87
|
-
@change="$emit('change')" />
|
|
88
|
-
|
|
89
|
-
</div>
|
|
90
|
-
</template>
|
|
91
|
-
|
|
92
|
-
<script>
|
|
93
|
-
|
|
94
|
-
export default{
|
|
95
|
-
|
|
96
|
-
emits: [ 'change' ],
|
|
97
|
-
|
|
98
|
-
inject: [ 'store' ],
|
|
99
|
-
|
|
100
|
-
props: {
|
|
101
|
-
|
|
102
|
-
item: {
|
|
103
|
-
type: Object,
|
|
104
|
-
required: true
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
viewType: String,
|
|
108
|
-
|
|
109
|
-
viewIndex: Number,
|
|
110
|
-
|
|
111
|
-
viewTypes: Array,
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
computed: {
|
|
116
|
-
|
|
117
|
-
componentStore(){
|
|
118
|
-
if(this.store && this.store.components){
|
|
119
|
-
if(!this.store.components.compsetting)
|
|
120
|
-
this.store.components.compsetting = {}
|
|
121
|
-
|
|
122
|
-
return this.store.components.compsetting
|
|
123
|
-
}
|
|
124
|
-
return {}
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
direction(){
|
|
128
|
-
if(!Array.isArray(this.item.props.direction))
|
|
129
|
-
this.item.props.direction = [ 'flex-column' ]
|
|
130
|
-
|
|
131
|
-
return this.item.props.direction
|
|
132
|
-
},
|
|
133
|
-
|
|
134
|
-
gap(){
|
|
135
|
-
if(!Array.isArray(this.item.props.gap))
|
|
136
|
-
this.item.props.gap = [ 'gap-2' ]
|
|
137
|
-
|
|
138
|
-
return this.item.props.gap
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
wrap(){
|
|
142
|
-
if(!Array.isArray(this.item.props.wrap))
|
|
143
|
-
this.item.props.wrap = []
|
|
144
|
-
|
|
145
|
-
return this.item.props.wrap
|
|
146
|
-
},
|
|
147
|
-
|
|
148
|
-
flexAlign(){
|
|
149
|
-
if(!Array.isArray(this.item.props.flexAlign))
|
|
150
|
-
this.item.props.flexAlign = []
|
|
151
|
-
|
|
152
|
-
return this.item.props.flexAlign
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
flexJustify(){
|
|
156
|
-
if(!Array.isArray(this.item.props.flexJustify))
|
|
157
|
-
this.item.props.flexJustify = []
|
|
158
|
-
|
|
159
|
-
return this.item.props.flexJustify
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
</script>
|
|
167
|
-
|
|
168
|
-
<style module>
|
|
169
|
-
|
|
170
|
-
.comp{
|
|
171
|
-
@apply flex flex-col divide-y divide-border-50;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
</style>
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.comp">
|
|
3
|
-
|
|
4
|
-
<div class="grid grid-cols-2 gap-4 p-6">
|
|
5
|
-
|
|
6
|
-
<div>
|
|
7
|
-
<small class="text-text-400">Columns</small>
|
|
8
|
-
<Dropdown v-model="columns[viewIndex]">
|
|
9
|
-
<option value="">Default</option>
|
|
10
|
-
<option v-for="i in 12" :value="`${viewTypes[viewIndex].value}grid-cols-${i}`">{{ i }}</option>
|
|
11
|
-
<option :value="`${viewTypes[viewIndex].value}grid-cols-none`">None</option>
|
|
12
|
-
</Dropdown>
|
|
13
|
-
</div>
|
|
14
|
-
|
|
15
|
-
<div>
|
|
16
|
-
<small class="text-text-400">Rows</small>
|
|
17
|
-
<Dropdown v-model="rows[viewIndex]">
|
|
18
|
-
<option value="">Default</option>
|
|
19
|
-
<option v-for="i in 12" :value="`${viewTypes[viewIndex].value}grid-rows-${i}`">{{ i }}</option>
|
|
20
|
-
<option :value="`${viewTypes[viewIndex].value}grid-rows-none`">None</option>
|
|
21
|
-
</Dropdown>
|
|
22
|
-
</div>
|
|
23
|
-
|
|
24
|
-
<div>
|
|
25
|
-
<small class="text-text-400">Gap</small>
|
|
26
|
-
<Dropdown v-model="gap[viewIndex]">
|
|
27
|
-
<option value="">Default</option>
|
|
28
|
-
<option v-for="i in 13" :value="`${viewTypes[viewIndex].value}gap-${i - 1}`">{{ i - 1 }}</option>
|
|
29
|
-
</Dropdown>
|
|
30
|
-
</div>
|
|
31
|
-
|
|
32
|
-
<div>
|
|
33
|
-
<small class="text-text-400">Auto Flow</small>
|
|
34
|
-
<Dropdown v-model="autoFlow[viewIndex]" class="w-full max-w-[300px]">
|
|
35
|
-
<option value="">Default</option>
|
|
36
|
-
<option :value="`${viewTypes[viewIndex].value}grid-flow-row`">Row</option>
|
|
37
|
-
<option :value="`${viewTypes[viewIndex].value}grid-flow-col`">Col</option>
|
|
38
|
-
<option :value="`${viewTypes[viewIndex].value}grid-flow-dense`">Dense</option>
|
|
39
|
-
<option :value="`${viewTypes[viewIndex].value}grid-flow-row-dense`">Row Dense</option>
|
|
40
|
-
<option :value="`${viewTypes[viewIndex].value}grid-flow-col-dense`">Col Dense</option>
|
|
41
|
-
</Dropdown>
|
|
42
|
-
</div>
|
|
43
|
-
|
|
44
|
-
<div class="col-span-2">
|
|
45
|
-
<small class="text-text-400">Align Items</small>
|
|
46
|
-
<Dropdown v-model="alignItems[viewIndex]">
|
|
47
|
-
<option value="">Default</option>
|
|
48
|
-
<option :value="`${viewTypes[viewIndex].value}items-start`">Start</option>
|
|
49
|
-
<option :value="`${viewTypes[viewIndex].value}items-end`">End</option>
|
|
50
|
-
<option :value="`${viewTypes[viewIndex].value}items-center`">Center</option>
|
|
51
|
-
<option :value="`${viewTypes[viewIndex].value}items-baseline`">Baseline</option>
|
|
52
|
-
<option :value="`${viewTypes[viewIndex].value}items-stretch`">Stretch</option>
|
|
53
|
-
</Dropdown>
|
|
54
|
-
</div>
|
|
55
|
-
|
|
56
|
-
<div class="col-span-2">
|
|
57
|
-
<small class="text-text-400">Justify Content</small>
|
|
58
|
-
<Dropdown v-model="justifyContent[viewIndex]">
|
|
59
|
-
<option value="">Default</option>
|
|
60
|
-
<option :value="`${viewTypes[viewIndex].value}justify-normal`">Normal</option>
|
|
61
|
-
<option :value="`${viewTypes[viewIndex].value}justify-start`">Start</option>
|
|
62
|
-
<option :value="`${viewTypes[viewIndex].value}justify-end`">End</option>
|
|
63
|
-
<option :value="`${viewTypes[viewIndex].value}justify-center`">Center</option>
|
|
64
|
-
<option :value="`${viewTypes[viewIndex].value}justify-between`">Between</option>
|
|
65
|
-
<option :value="`${viewTypes[viewIndex].value}justify-around`">Around</option>
|
|
66
|
-
<option :value="`${viewTypes[viewIndex].value}justify-evenly`">Evenly</option>
|
|
67
|
-
<option :value="`${viewTypes[viewIndex].value}justify-stretch`">Stretch</option>
|
|
68
|
-
</Dropdown>
|
|
69
|
-
</div>
|
|
70
|
-
|
|
71
|
-
</div>
|
|
72
|
-
|
|
73
|
-
<ComponentSetting2 :item="item"
|
|
74
|
-
:view-type="viewType"
|
|
75
|
-
:view-types="viewTypes"
|
|
76
|
-
:view-index="viewIndex"
|
|
77
|
-
defaultDisplay="block"
|
|
78
|
-
@change="$emit('change')" />
|
|
79
|
-
|
|
80
|
-
</div>
|
|
81
|
-
</template>
|
|
82
|
-
|
|
83
|
-
<script>
|
|
84
|
-
|
|
85
|
-
import ComponentSetting2 from "./ComponentSetting2.vue";
|
|
86
|
-
|
|
87
|
-
export default{
|
|
88
|
-
components: {ComponentSetting2},
|
|
89
|
-
|
|
90
|
-
emits: [ 'change' ],
|
|
91
|
-
|
|
92
|
-
props: {
|
|
93
|
-
|
|
94
|
-
item: {
|
|
95
|
-
type: Object,
|
|
96
|
-
required: true
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
viewType: String,
|
|
100
|
-
|
|
101
|
-
viewIndex: Number,
|
|
102
|
-
|
|
103
|
-
viewTypes: Array,
|
|
104
|
-
|
|
105
|
-
},
|
|
106
|
-
|
|
107
|
-
methods: {
|
|
108
|
-
|
|
109
|
-
apply(){
|
|
110
|
-
this.$emit('change')
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
computed: {
|
|
116
|
-
|
|
117
|
-
autoFlow(){
|
|
118
|
-
if(!Array.isArray(this.item.props.autoFlow) || this.item.props.autoFlow.length < 1)
|
|
119
|
-
this.item.props.autoFlow = [ '' ]
|
|
120
|
-
return this.item.props.autoFlow
|
|
121
|
-
},
|
|
122
|
-
|
|
123
|
-
columns(){
|
|
124
|
-
if(!Array.isArray(this.item.props.columns) || this.item.props.columns.length < 1)
|
|
125
|
-
this.item.props.columns = [ '' ]
|
|
126
|
-
return this.item.props.columns
|
|
127
|
-
},
|
|
128
|
-
|
|
129
|
-
gap(){
|
|
130
|
-
if(!Array.isArray(this.item.props.gap) || this.item.props.gap.length < 1)
|
|
131
|
-
this.item.props.gap = [ '' ]
|
|
132
|
-
return this.item.props.gap
|
|
133
|
-
},
|
|
134
|
-
|
|
135
|
-
rows(){
|
|
136
|
-
if(!Array.isArray(this.item.props.rows) || this.item.props.rows.length < 1)
|
|
137
|
-
this.item.props.rows = [ '' ]
|
|
138
|
-
return this.item.props.rows
|
|
139
|
-
},
|
|
140
|
-
|
|
141
|
-
alignItems(){
|
|
142
|
-
if(!Array.isArray(this.item.props.alignItems) || this.item.props.alignItems.length < 1)
|
|
143
|
-
this.item.props.alignItems = [ '' ]
|
|
144
|
-
return this.item.props.alignItems
|
|
145
|
-
},
|
|
146
|
-
|
|
147
|
-
justifyContent(){
|
|
148
|
-
if(!Array.isArray(this.item.props.justifyContent) || this.item.props.justifyContent.length < 1)
|
|
149
|
-
this.item.props.justifyContent = [ '' ]
|
|
150
|
-
return this.item.props.justifyContent
|
|
151
|
-
},
|
|
152
|
-
|
|
153
|
-
},
|
|
154
|
-
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
</script>
|
|
158
|
-
|
|
159
|
-
<style module>
|
|
160
|
-
|
|
161
|
-
.comp{
|
|
162
|
-
@apply flex flex-col divide-y divide-border-50;
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
</style>
|