@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,387 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<article :class="$style.article"
|
|
3
|
-
v-html="computedHtml"
|
|
4
|
-
:style="computedStyle"
|
|
5
|
-
@input="onInput"
|
|
6
|
-
@click="onClick"
|
|
7
|
-
@paste="onPaste" />
|
|
8
|
-
</template>
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
|
|
12
|
-
import {componentMixin} from '../mixin/component';
|
|
13
|
-
import {getSelection, restoreSelection, saveSelection} from "../utils/selection";
|
|
14
|
-
|
|
15
|
-
export default{
|
|
16
|
-
|
|
17
|
-
mixins: [ componentMixin ],
|
|
18
|
-
|
|
19
|
-
props: {
|
|
20
|
-
|
|
21
|
-
htmlText: String
|
|
22
|
-
|
|
23
|
-
},
|
|
24
|
-
|
|
25
|
-
methods: {
|
|
26
|
-
|
|
27
|
-
getSelection(){
|
|
28
|
-
const { text = '', href = '', target = '' } = saveSelection(this.$el)
|
|
29
|
-
return {
|
|
30
|
-
text,
|
|
31
|
-
href,
|
|
32
|
-
target
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
addLink(link){
|
|
37
|
-
|
|
38
|
-
restoreSelection()
|
|
39
|
-
|
|
40
|
-
document.execCommand("insertHTML", false,
|
|
41
|
-
"<a style='font-size:inherit;font-family:inherit;background-color:inherit' " +
|
|
42
|
-
"href=\"" + link.href + "\" " +
|
|
43
|
-
"target=\"" + link.target + "\">" +
|
|
44
|
-
link.text +
|
|
45
|
-
"</a>");
|
|
46
|
-
},
|
|
47
|
-
|
|
48
|
-
onInput(){
|
|
49
|
-
if(this.editMode){
|
|
50
|
-
this.triggerUpdate()
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
|
|
54
|
-
onClick(){
|
|
55
|
-
if(this.editMode){
|
|
56
|
-
let { element } = getSelection(this.$el)
|
|
57
|
-
|
|
58
|
-
const table = this.closest(element, 'table')
|
|
59
|
-
|
|
60
|
-
window.parent.postMessage({
|
|
61
|
-
uid: this.uid,
|
|
62
|
-
type: 'setSubAction',
|
|
63
|
-
value: table ? 'table' : ''
|
|
64
|
-
}, '*')
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
onPaste(e) {
|
|
69
|
-
e.preventDefault()
|
|
70
|
-
let text = (e.clipboardData || window.clipboardData).getData("text");
|
|
71
|
-
const el = document.createElement('div')
|
|
72
|
-
el.innerHTML = text
|
|
73
|
-
text = el.innerText
|
|
74
|
-
document.execCommand("insertText", false, text);
|
|
75
|
-
},
|
|
76
|
-
|
|
77
|
-
triggerUpdate(){
|
|
78
|
-
window.parent.postMessage({
|
|
79
|
-
uid: this.uid,
|
|
80
|
-
type: 'setProp',
|
|
81
|
-
value: {
|
|
82
|
-
htmlText: this.$el.innerHTML
|
|
83
|
-
}
|
|
84
|
-
}, '*')
|
|
85
|
-
},
|
|
86
|
-
|
|
87
|
-
closest(el, selector){
|
|
88
|
-
let parent = el.parentNode
|
|
89
|
-
while(parent){
|
|
90
|
-
if(parent === document) break
|
|
91
|
-
|
|
92
|
-
if(parent.matches(selector)){
|
|
93
|
-
return parent
|
|
94
|
-
}
|
|
95
|
-
parent = parent.parentNode
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
addTableColumn(){
|
|
100
|
-
|
|
101
|
-
let { element } = getSelection(this.$el)
|
|
102
|
-
if(element.nodeType !== 1)
|
|
103
|
-
element = element.parentNode
|
|
104
|
-
const table = this.closest(element, 'table')
|
|
105
|
-
|
|
106
|
-
if(table){
|
|
107
|
-
const thead = table.querySelector('thead')
|
|
108
|
-
const tbody = table.querySelector('tbody')
|
|
109
|
-
const tr = this.closest(element, 'tr')
|
|
110
|
-
const index = Array.from(tr.children).indexOf(element)
|
|
111
|
-
|
|
112
|
-
thead.querySelectorAll('tr').forEach(tr => {
|
|
113
|
-
const th = document.createElement('th')
|
|
114
|
-
th.innerHTML = "<i>insert header...</i>"
|
|
115
|
-
tr.insertBefore(th, tr.children[index + 1])
|
|
116
|
-
})
|
|
117
|
-
|
|
118
|
-
tbody.querySelectorAll('tr').forEach(tr => {
|
|
119
|
-
const td = document.createElement('td')
|
|
120
|
-
td.innerHTML = 'Content'
|
|
121
|
-
tr.insertBefore(td, tr.children[index + 1])
|
|
122
|
-
})
|
|
123
|
-
|
|
124
|
-
this.triggerUpdate()
|
|
125
|
-
}
|
|
126
|
-
},
|
|
127
|
-
|
|
128
|
-
addTableRow(){
|
|
129
|
-
|
|
130
|
-
let { element } = getSelection(this.$el)
|
|
131
|
-
if(element.nodeType !== 1)
|
|
132
|
-
element = element.parentNode
|
|
133
|
-
const table = this.closest(element, 'table')
|
|
134
|
-
|
|
135
|
-
if(table){
|
|
136
|
-
const tbody = table.querySelector('tbody')
|
|
137
|
-
const tr = this.closest(element, 'tr')
|
|
138
|
-
const index = Array.from(tbody.children).indexOf(tr)
|
|
139
|
-
if(index >= 0){
|
|
140
|
-
const nTr = document.createElement('tr')
|
|
141
|
-
for(let i = 0 ; i < tr.children.length ; i++){
|
|
142
|
-
const nTd = document.createElement('td')
|
|
143
|
-
nTd.innerHTML = 'Content'
|
|
144
|
-
nTr.appendChild(nTd)
|
|
145
|
-
}
|
|
146
|
-
tbody.insertBefore(nTr, tbody.children[index + 1])
|
|
147
|
-
this.triggerUpdate()
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
},
|
|
151
|
-
|
|
152
|
-
removeTableRow(){
|
|
153
|
-
|
|
154
|
-
let { element } = getSelection(this.$el)
|
|
155
|
-
if(element.nodeType !== 1)
|
|
156
|
-
element = element.parentNode
|
|
157
|
-
const table = this.closest(element, 'table')
|
|
158
|
-
|
|
159
|
-
if(table){
|
|
160
|
-
const tbody = table.querySelector('tbody')
|
|
161
|
-
const tr = this.closest(element, 'tr')
|
|
162
|
-
if(tr){
|
|
163
|
-
tbody.removeChild(tr)
|
|
164
|
-
this.triggerUpdate()
|
|
165
|
-
}
|
|
166
|
-
}
|
|
167
|
-
},
|
|
168
|
-
|
|
169
|
-
removeTableColumn(){
|
|
170
|
-
|
|
171
|
-
let { element } = getSelection(this.$el)
|
|
172
|
-
if(element.nodeType !== 1)
|
|
173
|
-
element = element.parentNode
|
|
174
|
-
const table = this.closest(element, 'table')
|
|
175
|
-
|
|
176
|
-
if(table) {
|
|
177
|
-
const thead = table.querySelector('thead')
|
|
178
|
-
const tbody = table.querySelector('tbody')
|
|
179
|
-
const tr = this.closest(element, 'tr')
|
|
180
|
-
const index = Array.from(tr.children).indexOf(element)
|
|
181
|
-
|
|
182
|
-
thead.querySelectorAll('tr').forEach(tr => {
|
|
183
|
-
tr.removeChild(tr.children[index])
|
|
184
|
-
})
|
|
185
|
-
|
|
186
|
-
tbody.querySelectorAll('tr').forEach(tr => {
|
|
187
|
-
tr.removeChild(tr.children[index])
|
|
188
|
-
})
|
|
189
|
-
|
|
190
|
-
this.triggerUpdate()
|
|
191
|
-
}
|
|
192
|
-
},
|
|
193
|
-
|
|
194
|
-
insertTable(){
|
|
195
|
-
document.execCommand('insertHTML', false,
|
|
196
|
-
`<table>
|
|
197
|
-
<thead>
|
|
198
|
-
<tr>
|
|
199
|
-
<th>Header</th>
|
|
200
|
-
<th>Header</th>
|
|
201
|
-
</tr>
|
|
202
|
-
</thead>
|
|
203
|
-
<tbody>
|
|
204
|
-
<tr>
|
|
205
|
-
<td>Content</td>
|
|
206
|
-
<td>Content</td>
|
|
207
|
-
</tr>
|
|
208
|
-
</tbody>
|
|
209
|
-
</table>`)
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
},
|
|
213
|
-
|
|
214
|
-
mounted() {
|
|
215
|
-
if(this.editMode){
|
|
216
|
-
window.addEventListener('message', (e) => {
|
|
217
|
-
|
|
218
|
-
const { data, source } = e
|
|
219
|
-
|
|
220
|
-
if(!data || !source) return
|
|
221
|
-
|
|
222
|
-
if(data.uid === this.uid){
|
|
223
|
-
|
|
224
|
-
const { action, type, value } = data.data ?? {}
|
|
225
|
-
|
|
226
|
-
let result
|
|
227
|
-
|
|
228
|
-
switch(action){
|
|
229
|
-
|
|
230
|
-
case 'saveSelection':
|
|
231
|
-
case 'getSelection':
|
|
232
|
-
const sel = saveSelection(this.$el)
|
|
233
|
-
const { text, target, href } = sel
|
|
234
|
-
result = {
|
|
235
|
-
text,
|
|
236
|
-
target,
|
|
237
|
-
href
|
|
238
|
-
}
|
|
239
|
-
break
|
|
240
|
-
|
|
241
|
-
case 'restoreSelection':
|
|
242
|
-
restoreSelection()
|
|
243
|
-
break
|
|
244
|
-
|
|
245
|
-
case 'insertLink':
|
|
246
|
-
restoreSelection()
|
|
247
|
-
|
|
248
|
-
document.execCommand("insertHTML", false,
|
|
249
|
-
"<a style='font-size:inherit;font-family:inherit;background-color:inherit' " +
|
|
250
|
-
"href=\"" + value.href + "\" " +
|
|
251
|
-
"target=\"" + value.target + "\">" +
|
|
252
|
-
value.text +
|
|
253
|
-
"</a>");
|
|
254
|
-
break
|
|
255
|
-
|
|
256
|
-
case 'removeLink':
|
|
257
|
-
const { element } = getSelection(this.$el)
|
|
258
|
-
|
|
259
|
-
let a = element
|
|
260
|
-
while(a && a.tagName !== 'A'){
|
|
261
|
-
a = a.parentNode
|
|
262
|
-
}
|
|
263
|
-
if(a){
|
|
264
|
-
a.parentNode.replaceChild(element, a)
|
|
265
|
-
}
|
|
266
|
-
break
|
|
267
|
-
|
|
268
|
-
case 'insertImage':
|
|
269
|
-
const props = {}
|
|
270
|
-
if(value.width)
|
|
271
|
-
props.width = parseInt(value.width) + 'px'
|
|
272
|
-
if(value.height)
|
|
273
|
-
props.height = parseInt(value.height) + 'px'
|
|
274
|
-
|
|
275
|
-
let propHtml = []
|
|
276
|
-
for(let key in props){
|
|
277
|
-
propHtml.push(`${key}='${props[key]}'`)
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
document.execCommand("insertHTML", false,
|
|
281
|
-
"<img src=\"" + value.url + "\" " + propHtml.join(' ') + "/>");
|
|
282
|
-
break
|
|
283
|
-
|
|
284
|
-
case 'insertTable':
|
|
285
|
-
this.insertTable()
|
|
286
|
-
break
|
|
287
|
-
|
|
288
|
-
case 'removeFormat':
|
|
289
|
-
document.execCommand('removeFormat', false);
|
|
290
|
-
break
|
|
291
|
-
|
|
292
|
-
case 'addTableColumn':
|
|
293
|
-
this.addTableColumn()
|
|
294
|
-
break
|
|
295
|
-
|
|
296
|
-
case 'addTableRow':
|
|
297
|
-
this.addTableRow()
|
|
298
|
-
break
|
|
299
|
-
|
|
300
|
-
case 'removeTableColumn':
|
|
301
|
-
this.removeTableColumn()
|
|
302
|
-
break
|
|
303
|
-
|
|
304
|
-
case 'removeTableRow':
|
|
305
|
-
this.removeTableRow()
|
|
306
|
-
break
|
|
307
|
-
|
|
308
|
-
case 'format':
|
|
309
|
-
switch(type){
|
|
310
|
-
case 'bold':
|
|
311
|
-
case 'italic':
|
|
312
|
-
default:
|
|
313
|
-
document.execCommand(type, false, value);
|
|
314
|
-
break
|
|
315
|
-
}
|
|
316
|
-
this.$el.focus()
|
|
317
|
-
break
|
|
318
|
-
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
source.postMessage(result, '*')
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
})
|
|
325
|
-
|
|
326
|
-
this.$el.setAttribute('contenteditable', 'true')
|
|
327
|
-
}
|
|
328
|
-
},
|
|
329
|
-
|
|
330
|
-
computed: {
|
|
331
|
-
|
|
332
|
-
computedHtml(){
|
|
333
|
-
return this.htmlText
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
},
|
|
337
|
-
|
|
338
|
-
data(){
|
|
339
|
-
return {
|
|
340
|
-
data: {},
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
</script>
|
|
347
|
-
|
|
348
|
-
<style module>
|
|
349
|
-
|
|
350
|
-
.article{
|
|
351
|
-
@apply relative;
|
|
352
|
-
}
|
|
353
|
-
.article *{
|
|
354
|
-
}
|
|
355
|
-
.article[contenteditable]{
|
|
356
|
-
@apply outline-none;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
.article a{
|
|
360
|
-
@apply text-primary underline;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
.article ul li{
|
|
364
|
-
@apply list-disc list-inside;
|
|
365
|
-
}
|
|
366
|
-
.article ol li{
|
|
367
|
-
@apply list-decimal list-inside;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.article font[size='1']{ @apply text-xs; }
|
|
371
|
-
.article font[size='2']{ @apply text-sm; }
|
|
372
|
-
.article font[size='3']{ @apply text-lg; }
|
|
373
|
-
.article font[size='4']{ @apply text-xl; }
|
|
374
|
-
.article font[size='5']{ @apply text-2xl; }
|
|
375
|
-
.article font[size='6']{ @apply text-3xl; }
|
|
376
|
-
.article font[size='7']{ @apply text-4xl; }
|
|
377
|
-
|
|
378
|
-
.article table{
|
|
379
|
-
@apply border-[1px] border-border-200 border-collapse w-full;
|
|
380
|
-
table-layout: fixed;
|
|
381
|
-
}
|
|
382
|
-
.article table th, .article table td{
|
|
383
|
-
@apply border-[1px] border-border-200 p-3 text-left;
|
|
384
|
-
@apply break-words;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
</style>
|
package/src/components/Block.vue
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.comp" :style="computedStyle">
|
|
3
|
-
<component v-for="item in items"
|
|
4
|
-
:is="item.type"
|
|
5
|
-
:="item" />
|
|
6
|
-
</div>
|
|
7
|
-
</template>
|
|
8
|
-
|
|
9
|
-
<script>
|
|
10
|
-
|
|
11
|
-
import {componentMixin} from "../mixin/component";
|
|
12
|
-
|
|
13
|
-
export default{
|
|
14
|
-
|
|
15
|
-
mixins: [ componentMixin ],
|
|
16
|
-
|
|
17
|
-
props:{
|
|
18
|
-
items: Array,
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
</script>
|
|
24
|
-
|
|
25
|
-
<style module>
|
|
26
|
-
|
|
27
|
-
.comp{
|
|
28
|
-
@apply block;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
</style>
|
package/src/components/Box.vue
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div :class="$style.comp">
|
|
3
|
-
<br />
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
|
|
9
|
-
import { componentMixin } from '../mixin/component';
|
|
10
|
-
|
|
11
|
-
export default{
|
|
12
|
-
|
|
13
|
-
mixins: [ componentMixin ],
|
|
14
|
-
|
|
15
|
-
props: {
|
|
16
|
-
|
|
17
|
-
title: {
|
|
18
|
-
type: String,
|
|
19
|
-
default: 'Box'
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
</script>
|
|
27
|
-
|
|
28
|
-
<style module>
|
|
29
|
-
|
|
30
|
-
.comp{
|
|
31
|
-
@apply flex items-center justify-center;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
</style>
|
|
@@ -1,258 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<button :class="compClass" @click="onClick" :style="computedStyle"
|
|
3
|
-
v-tooltip="disabledText" :disabled="isDisabled" :title="isLoading ? 1 : -1">
|
|
4
|
-
<slot>{{ text }}</slot>
|
|
5
|
-
<span v-if="isLoading" :class="$style.spinner">
|
|
6
|
-
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24">
|
|
7
|
-
<circle :class="$style.svgBg" cx="12" cy="12" r="10" stroke-width="4"></circle>
|
|
8
|
-
<path :class="$style.svgHg" d="M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4zm2 5.291A7.962 7.962 0 014 12H0c0 3.042 1.135 5.824 3 7.938l3-2.647z"></path>
|
|
9
|
-
</svg>
|
|
10
|
-
</span>
|
|
11
|
-
</button>
|
|
12
|
-
</template>
|
|
13
|
-
|
|
14
|
-
<script>
|
|
15
|
-
|
|
16
|
-
import {componentMixin} from "../mixin/component";
|
|
17
|
-
|
|
18
|
-
export default{
|
|
19
|
-
|
|
20
|
-
emits: [ 'click', 'disabled-click' ],
|
|
21
|
-
|
|
22
|
-
mixins: [ componentMixin ],
|
|
23
|
-
|
|
24
|
-
props: {
|
|
25
|
-
|
|
26
|
-
variant: {
|
|
27
|
-
type: [ String, Number ],
|
|
28
|
-
default: "primary" // primary|secondary|outline, default:primary
|
|
29
|
-
},
|
|
30
|
-
|
|
31
|
-
state: {
|
|
32
|
-
type: [ String, Number ], // -1:disabled, 1:normal, 2:loading, default: normal,
|
|
33
|
-
default: 1
|
|
34
|
-
},
|
|
35
|
-
|
|
36
|
-
text: String,
|
|
37
|
-
|
|
38
|
-
target: String,
|
|
39
|
-
|
|
40
|
-
targetType: String,
|
|
41
|
-
|
|
42
|
-
disabledText: String
|
|
43
|
-
|
|
44
|
-
},
|
|
45
|
-
|
|
46
|
-
computed: {
|
|
47
|
-
|
|
48
|
-
compClass() {
|
|
49
|
-
|
|
50
|
-
return [
|
|
51
|
-
this.$style.button,
|
|
52
|
-
this.$style['button-' + this.variant],
|
|
53
|
-
this.isDisabled ? `${this.$style['button-disabled'] ?? ''}` + ' ' + `${this.$style['button-' + this.variant + '-disabled'] ?? ''}` : '',
|
|
54
|
-
this.isLoading ? `${this.$style['button-loading'] ?? ''}` + ' ' + `${this.$style['button-' + this.variant + '-loading'] ?? ''}` : ''
|
|
55
|
-
]
|
|
56
|
-
.filter(_ => _)
|
|
57
|
-
.join(' ')
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
isDisabled() {
|
|
61
|
-
return parseInt(this.computedState) !== 1
|
|
62
|
-
},
|
|
63
|
-
|
|
64
|
-
isLoading() {
|
|
65
|
-
return parseInt(this.computedState) === 2
|
|
66
|
-
},
|
|
67
|
-
|
|
68
|
-
computedState() {
|
|
69
|
-
return this._state ?? this.state
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
},
|
|
73
|
-
|
|
74
|
-
data() {
|
|
75
|
-
return {
|
|
76
|
-
_state: null
|
|
77
|
-
}
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
methods: {
|
|
81
|
-
|
|
82
|
-
focus() {
|
|
83
|
-
this.$el.focus()
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
setState(state) {
|
|
87
|
-
this._state = state
|
|
88
|
-
},
|
|
89
|
-
|
|
90
|
-
resetState() {
|
|
91
|
-
this._state = null
|
|
92
|
-
},
|
|
93
|
-
|
|
94
|
-
onClick(e) {
|
|
95
|
-
if ('edit-mode' in this.$route.query) return
|
|
96
|
-
|
|
97
|
-
if (this.isDisabled) {
|
|
98
|
-
this.$emit('disabled-click')
|
|
99
|
-
} else {
|
|
100
|
-
if (this.target) {
|
|
101
|
-
switch (this.targetType) {
|
|
102
|
-
|
|
103
|
-
case 'section':
|
|
104
|
-
this.scrollTo(this.target)
|
|
105
|
-
break
|
|
106
|
-
|
|
107
|
-
default:
|
|
108
|
-
if (this.target.indexOf('://') >= 0) {
|
|
109
|
-
window.location = this.target
|
|
110
|
-
} else {
|
|
111
|
-
this.$router.push(this.target)
|
|
112
|
-
}
|
|
113
|
-
break
|
|
114
|
-
}
|
|
115
|
-
} else {
|
|
116
|
-
this.$emit('click', e)
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
|
|
121
|
-
scrollTo(exp) {
|
|
122
|
-
const el = document.querySelector('._' + exp.substring(0, 4))
|
|
123
|
-
if (el) {
|
|
124
|
-
window.scrollTo({
|
|
125
|
-
top: el.offsetTop - 100,
|
|
126
|
-
behavior: 'smooth'
|
|
127
|
-
});
|
|
128
|
-
}
|
|
129
|
-
},
|
|
130
|
-
|
|
131
|
-
},
|
|
132
|
-
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
</script>
|
|
136
|
-
|
|
137
|
-
<style module>
|
|
138
|
-
|
|
139
|
-
.button{
|
|
140
|
-
@apply p-2 px-8 rounded-lg relative inline-flex flex-row items-center justify-center;
|
|
141
|
-
@apply whitespace-nowrap text-ellipsis overflow-hidden min-h-7;
|
|
142
|
-
@apply border-[1px];
|
|
143
|
-
@apply active:top-[1px] active:left-[1px] disabled:top-0 disabled:left-0;
|
|
144
|
-
@apply cursor-pointer disabled:cursor-not-allowed disabled:text-opacity-60;
|
|
145
|
-
}
|
|
146
|
-
.button:disabled svg{
|
|
147
|
-
@apply opacity-50;
|
|
148
|
-
}
|
|
149
|
-
.button:disabled>*{
|
|
150
|
-
@apply opacity-50;
|
|
151
|
-
}
|
|
152
|
-
.button-loading{
|
|
153
|
-
@apply !text-opacity-0;
|
|
154
|
-
}
|
|
155
|
-
.button-loading>*{
|
|
156
|
-
@apply !opacity-0;
|
|
157
|
-
}
|
|
158
|
-
.button-loading>label{
|
|
159
|
-
@apply hidden;
|
|
160
|
-
}
|
|
161
|
-
.button>label{
|
|
162
|
-
@apply pointer-events-none;
|
|
163
|
-
}
|
|
164
|
-
.spinner{
|
|
165
|
-
@apply absolute top-0 left-0 right-0 bottom-0 flex items-center justify-center;
|
|
166
|
-
}
|
|
167
|
-
.button-loading .spinner{
|
|
168
|
-
@apply !opacity-100;
|
|
169
|
-
}
|
|
170
|
-
.spinner svg{
|
|
171
|
-
@apply !opacity-100;
|
|
172
|
-
@apply fill-text animate-spin w-5 h-5;
|
|
173
|
-
}
|
|
174
|
-
.svgBg{
|
|
175
|
-
@apply !opacity-100;
|
|
176
|
-
@apply stroke-text-50 fill-transparent;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.button-primary{
|
|
180
|
-
@apply border-primary text-white;
|
|
181
|
-
background: var(--primary-500);
|
|
182
|
-
@apply hover:bg-primary-600 hover:border-primary-600 disabled:bg-primary;
|
|
183
|
-
}
|
|
184
|
-
.button-primary *{
|
|
185
|
-
@apply text-white fill-white;
|
|
186
|
-
}
|
|
187
|
-
.button-primary .svgBg{
|
|
188
|
-
@apply !fill-none;
|
|
189
|
-
stroke: #fff;
|
|
190
|
-
stroke-opacity: 25%;
|
|
191
|
-
}
|
|
192
|
-
.button-primary .svgHg {
|
|
193
|
-
fill: #fff;
|
|
194
|
-
fill-opacity: 750%;
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
.button-secondary{
|
|
198
|
-
@apply border-secondary text-white;
|
|
199
|
-
@apply hover:bg-secondary-600 hover:border-secondary-600;
|
|
200
|
-
background: var(--secondary-500);
|
|
201
|
-
}
|
|
202
|
-
.button-secondary .svgBg{
|
|
203
|
-
stroke: #fff;
|
|
204
|
-
stroke-opacity: 25%;
|
|
205
|
-
}
|
|
206
|
-
.button-secondary .svgHg {
|
|
207
|
-
fill: #fff;
|
|
208
|
-
fill-opacity: 75%;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.button-outline{
|
|
212
|
-
@apply border-primary bg-transparent text-primary;
|
|
213
|
-
@apply hover:bg-transparent hover:border-primary-600;
|
|
214
|
-
}
|
|
215
|
-
.button-outline>*{
|
|
216
|
-
@apply text-primary fill-primary;
|
|
217
|
-
}
|
|
218
|
-
.button-outline:disabled>*{
|
|
219
|
-
@apply text-primary-300 fill-primary-300;
|
|
220
|
-
}
|
|
221
|
-
.button-outline .svgBg{
|
|
222
|
-
stroke: rgb(var(--primary-600));
|
|
223
|
-
stroke-opacity: 50%;
|
|
224
|
-
}
|
|
225
|
-
.button-outline .svgHg {
|
|
226
|
-
fill: rgb(var(--primary-500));
|
|
227
|
-
fill-opacity: 100%;
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
.button-minimal{
|
|
231
|
-
@apply border-transparent bg-transparent text-text;
|
|
232
|
-
@apply hover:bg-transparent hover:border-transparent;
|
|
233
|
-
}
|
|
234
|
-
.button-minimal .svgBg{
|
|
235
|
-
stroke: #fff;
|
|
236
|
-
stroke-opacity: 25%;
|
|
237
|
-
}
|
|
238
|
-
.button-minimal .svgHg {
|
|
239
|
-
fill: #fff;
|
|
240
|
-
fill-opacity: 75%;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
.button-red{
|
|
244
|
-
@apply bg-red-500 border-red-500 text-white;
|
|
245
|
-
@apply hover:bg-red-600 hover:border-red-600 disabled:bg-red-600;
|
|
246
|
-
}
|
|
247
|
-
.button-red .svgBg{
|
|
248
|
-
stroke: #fff;
|
|
249
|
-
stroke-opacity: 25%;
|
|
250
|
-
}
|
|
251
|
-
.button-red .svgHg {
|
|
252
|
-
fill: #fff;
|
|
253
|
-
fill-opacity: 75%;
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
</style>
|
|
258
|
-
|