yuyeon 0.0.0 → 0.0.2
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/style.css +1 -0
- package/dist/yuyeon.mjs +3607 -0
- package/dist/yuyeon.umd.js +1 -0
- package/lib/components/app/YApp.mjs +30 -0
- package/lib/components/app/YApp.mjs.map +1 -0
- package/lib/components/app/YApp.scss +14 -0
- package/lib/components/app/index.mjs +2 -0
- package/lib/components/app/index.mjs.map +1 -0
- package/lib/components/bench/YBench.mjs +44 -0
- package/lib/components/bench/YBench.mjs.map +1 -0
- package/lib/components/bench/index.mjs +2 -0
- package/lib/components/bench/index.mjs.map +1 -0
- package/lib/components/button/YButton.mjs +138 -0
- package/lib/components/button/YButton.mjs.map +1 -0
- package/{src/components/button/y-btn.scss → lib/components/button/YButton.scss} +67 -29
- package/lib/components/button/index.mjs +2 -0
- package/lib/components/button/index.mjs.map +1 -0
- package/lib/components/card/YCard.mjs +18 -0
- package/lib/components/card/YCard.mjs.map +1 -0
- package/lib/components/card/YCardBody.mjs +10 -0
- package/lib/components/card/YCardBody.mjs.map +1 -0
- package/lib/components/card/YCardFooter.mjs +10 -0
- package/lib/components/card/YCardFooter.mjs.map +1 -0
- package/lib/components/card/YCardHeader.mjs +10 -0
- package/lib/components/card/YCardHeader.mjs.map +1 -0
- package/lib/components/card/index.mjs +6 -0
- package/lib/components/card/index.mjs.map +1 -0
- package/lib/components/checkbox/YCheckbox.mjs +154 -0
- package/lib/components/checkbox/YCheckbox.mjs.map +1 -0
- package/lib/components/checkbox/YInputCheckbox.mjs +113 -0
- package/lib/components/checkbox/YInputCheckbox.mjs.map +1 -0
- package/{src/components/checkbox/y-input-checkbox.scss → lib/components/checkbox/YInputCheckbox.scss} +19 -19
- package/lib/components/checkbox/index.mjs +5 -0
- package/lib/components/checkbox/index.mjs.map +1 -0
- package/{src/components/chip/y-chip.vue → lib/components/chip/YChip.mjs} +26 -27
- package/lib/components/chip/YChip.mjs.map +1 -0
- package/{src/components/chip/y-chip.scss → lib/components/chip/YChip.scss} +0 -4
- package/lib/components/chip/index.mjs +3 -0
- package/lib/components/chip/index.mjs.map +1 -0
- package/lib/components/dialog/YDialog.mjs +97 -0
- package/lib/components/dialog/YDialog.mjs.map +1 -0
- package/lib/components/dialog/index.mjs +2 -0
- package/lib/components/dialog/index.mjs.map +1 -0
- package/lib/components/field-input/YFieldInput.mjs +218 -0
- package/lib/components/field-input/YFieldInput.mjs.map +1 -0
- package/{src/components/field-input/y-field-input.scss → lib/components/field-input/YFieldInput.scss} +2 -4
- package/lib/components/field-input/index.mjs +2 -0
- package/lib/components/field-input/index.mjs.map +1 -0
- package/lib/components/form/YForm.mjs +79 -0
- package/lib/components/form/YForm.mjs.map +1 -0
- package/lib/components/form/index.mjs +4 -0
- package/lib/components/form/index.mjs.map +1 -0
- package/lib/components/icons/YIconCheckbox.mjs +21 -0
- package/lib/components/icons/YIconCheckbox.mjs.map +1 -0
- package/lib/components/icons/YIconClear.mjs +16 -0
- package/lib/components/icons/YIconClear.mjs.map +1 -0
- package/lib/components/icons/YIconExpand.mjs +20 -0
- package/lib/components/icons/YIconExpand.mjs.map +1 -0
- package/lib/components/icons/index.mjs +4 -0
- package/lib/components/icons/index.mjs.map +1 -0
- package/lib/components/index.mjs +24 -0
- package/lib/components/index.mjs.map +1 -0
- package/lib/components/input/YInput.mjs +346 -0
- package/lib/components/input/YInput.mjs.map +1 -0
- package/{src/components/input/y-input.scss → lib/components/input/YInput.scss} +12 -4
- package/lib/components/input/index.mjs +2 -0
- package/lib/components/input/index.mjs.map +1 -0
- package/lib/components/input/index.scss +2 -0
- package/lib/components/layer/YLayer.mjs +193 -0
- package/lib/components/layer/YLayer.mjs.map +1 -0
- package/lib/components/layer/index.mjs +2 -0
- package/lib/components/layer/index.mjs.map +1 -0
- package/lib/components/layer/scroll-strategies.mjs +132 -0
- package/lib/components/layer/scroll-strategies.mjs.map +1 -0
- package/lib/components/list/YList.mjs +16 -0
- package/lib/components/list/YList.mjs.map +1 -0
- package/lib/components/list/YList.scss +3 -0
- package/lib/components/list/YListItem.mjs +37 -0
- package/lib/components/list/YListItem.mjs.map +1 -0
- package/lib/components/list/YListItem.scss +59 -0
- package/lib/components/list/index.mjs +3 -0
- package/lib/components/list/index.mjs.map +1 -0
- package/lib/components/loading/YSpinnerRing.mjs +25 -0
- package/lib/components/loading/YSpinnerRing.mjs.map +1 -0
- package/{src/components/ring-spinner/y-ring-spinner.scss → lib/components/loading/YSpinnerRing.scss} +3 -3
- package/lib/components/loading/index.mjs +2 -0
- package/lib/components/loading/index.mjs.map +1 -0
- package/lib/components/menu/YMenu.mjs +239 -0
- package/lib/components/menu/YMenu.mjs.map +1 -0
- package/lib/components/menu/YMenu.scss +7 -0
- package/lib/components/menu/index.mjs +2 -0
- package/lib/components/menu/index.mjs.map +1 -0
- package/lib/components/navigation/YNavigation.mjs +17 -0
- package/lib/components/navigation/YNavigation.mjs.map +1 -0
- package/lib/components/navigation/index.mjs +2 -0
- package/lib/components/navigation/index.mjs.map +1 -0
- package/lib/components/pagination/YPagination.mjs +61 -0
- package/lib/components/pagination/YPagination.mjs.map +1 -0
- package/lib/components/pagination/YPagination.scss +5 -0
- package/lib/components/pagination/index.mjs +2 -0
- package/lib/components/pagination/index.mjs.map +1 -0
- package/lib/components/panel/YDividePanel.mjs +89 -0
- package/lib/components/panel/YDividePanel.mjs.map +1 -0
- package/lib/components/panel/YDividePanel.scss +43 -0
- package/lib/components/panel/index.mjs +2 -0
- package/lib/components/panel/index.mjs.map +1 -0
- package/lib/components/plate/YPlate.mjs +27 -0
- package/lib/components/plate/YPlate.mjs.map +1 -0
- package/lib/components/plate/YPlate.scss +9 -0
- package/lib/components/plate/index.mjs +2 -0
- package/lib/components/plate/index.mjs.map +1 -0
- package/lib/components/progress-bar/YProgressBar.mjs +110 -0
- package/lib/components/progress-bar/YProgressBar.mjs.map +1 -0
- package/lib/components/progress-bar/YProgressBar.scss +40 -0
- package/lib/components/progress-bar/index.mjs +2 -0
- package/lib/components/progress-bar/index.mjs.map +1 -0
- package/lib/components/snackbar/YSnackbar.mjs +187 -0
- package/lib/components/snackbar/YSnackbar.mjs.map +1 -0
- package/lib/components/snackbar/YSnackbar.scss +38 -0
- package/lib/components/snackbar/index.mjs +2 -0
- package/lib/components/snackbar/index.mjs.map +1 -0
- package/lib/components/switch/YSwitch.mjs +228 -0
- package/lib/components/switch/YSwitch.mjs.map +1 -0
- package/{src/components/switch/y-switch.scss → lib/components/switch/YSwitch.scss} +18 -26
- package/lib/components/switch/index.mjs +2 -0
- package/lib/components/switch/index.mjs.map +1 -0
- package/lib/components/table/YDataTable.mjs +46 -0
- package/lib/components/table/YDataTable.mjs.map +1 -0
- package/lib/components/table/YDataTableBody.mjs +12 -0
- package/lib/components/table/YDataTableBody.mjs.map +1 -0
- package/lib/components/table/YDataTableCell.mjs +55 -0
- package/lib/components/table/YDataTableCell.mjs.map +1 -0
- package/lib/components/table/YDataTableControl.mjs +37 -0
- package/lib/components/table/YDataTableControl.mjs.map +1 -0
- package/lib/components/table/YDataTableControl.scss +6 -0
- package/lib/components/table/YDataTableHead.mjs +12 -0
- package/lib/components/table/YDataTableHead.mjs.map +1 -0
- package/lib/components/table/YDataTableLayer.mjs +14 -0
- package/lib/components/table/YDataTableLayer.mjs.map +1 -0
- package/lib/components/table/YDataTableRow.mjs +12 -0
- package/lib/components/table/YDataTableRow.mjs.map +1 -0
- package/lib/components/table/YDataTableServer.mjs +54 -0
- package/lib/components/table/YDataTableServer.mjs.map +1 -0
- package/lib/components/table/YTable.mjs +53 -0
- package/lib/components/table/YTable.mjs.map +1 -0
- package/lib/components/table/YTable.scss +61 -0
- package/lib/components/table/index.mjs +4 -0
- package/lib/components/table/index.mjs.map +1 -0
- package/lib/components/table/pagination.mjs +21 -0
- package/lib/components/table/pagination.mjs.map +1 -0
- package/lib/components/text-highlighter/YTextHighlighter.mjs +94 -0
- package/lib/components/text-highlighter/YTextHighlighter.mjs.map +1 -0
- package/lib/components/text-highlighter/index.mjs +3 -0
- package/lib/components/text-highlighter/index.mjs.map +1 -0
- package/lib/components/tooltip/YTooltip.mjs +209 -0
- package/lib/components/tooltip/YTooltip.mjs.map +1 -0
- package/lib/components/tooltip/YTooltip.scss +19 -0
- package/lib/components/tooltip/index.mjs +2 -0
- package/lib/components/tooltip/index.mjs.map +1 -0
- package/lib/components/transitions/expand-transition.mjs +88 -0
- package/lib/components/transitions/expand-transition.mjs.map +1 -0
- package/lib/components/transitions/index.mjs +4 -0
- package/lib/components/transitions/index.mjs.map +1 -0
- package/lib/components/tree-view/YTreeView.mjs +92 -0
- package/lib/components/tree-view/YTreeView.mjs.map +1 -0
- package/lib/components/tree-view/YTreeView.scss +46 -0
- package/lib/components/tree-view/YTreeViewNode.mjs +122 -0
- package/lib/components/tree-view/YTreeViewNode.mjs.map +1 -0
- package/lib/components/tree-view/index.mjs +3 -0
- package/lib/components/tree-view/index.mjs.map +1 -0
- package/lib/composables/collections.mjs +2 -0
- package/lib/composables/collections.mjs.map +1 -0
- package/lib/composables/communication.mjs +46 -0
- package/lib/composables/communication.mjs.map +1 -0
- package/lib/composables/component.mjs +8 -0
- package/lib/composables/component.mjs.map +1 -0
- package/{src/composables/layer-group.ts → lib/composables/layer-group.mjs} +8 -10
- package/lib/composables/layer-group.mjs.map +1 -0
- package/lib/composables/layout.mjs +13 -0
- package/lib/composables/layout.mjs.map +1 -0
- package/lib/composables/levitation.mjs +135 -0
- package/lib/composables/levitation.mjs.map +1 -0
- package/{src/composables/progress.ts → lib/composables/progress.mjs} +6 -5
- package/lib/composables/progress.mjs.map +1 -0
- package/lib/composables/resize-observer.mjs +34 -0
- package/lib/composables/resize-observer.mjs.map +1 -0
- package/lib/composables/scope.mjs +27 -0
- package/lib/composables/scope.mjs.map +1 -0
- package/lib/composables/theme/index.mjs +49 -0
- package/lib/composables/theme/index.mjs.map +1 -0
- package/lib/composables/theme/setting.mjs +46 -0
- package/lib/composables/theme/setting.mjs.map +1 -0
- package/lib/composables/timing.mjs +77 -0
- package/lib/composables/timing.mjs.map +1 -0
- package/lib/composables/transition.mjs +50 -0
- package/lib/composables/transition.mjs.map +1 -0
- package/lib/directives/complement-click/index.mjs +78 -0
- package/lib/directives/complement-click/index.mjs.map +1 -0
- package/{src/directives/plate-wave/index.ts → lib/directives/plate-wave/index.mjs} +25 -42
- package/lib/directives/plate-wave/index.mjs.map +1 -0
- package/{src → lib}/directives/plate-wave/plate-wave.scss +1 -1
- package/lib/directives/theme-class.mjs +24 -0
- package/lib/directives/theme-class.mjs.map +1 -0
- package/lib/etc/index.mjs +6 -0
- package/lib/etc/index.mjs.map +1 -0
- package/lib/index.mjs +55 -0
- package/lib/index.mjs.map +1 -0
- package/{src/mixins/di.ts → lib/mixins/di.mjs} +7 -8
- package/lib/mixins/di.mjs.map +1 -0
- package/{src/mixins/rebind-attrs.ts → lib/mixins/rebind-attrs.mjs} +9 -8
- package/lib/mixins/rebind-attrs.mjs.map +1 -0
- package/{src/styles/palette.scss → lib/styles/_palette.scss} +0 -4
- package/lib/styles/base.scss +95 -0
- package/lib/styles/settings/_variables.scss +14 -0
- package/lib/styles/settings/provided.scss +35 -0
- package/lib/styles/theme/dark.scss +21 -0
- package/{src → lib}/styles/theme/index.scss +0 -3
- package/lib/styles/theme/light.scss +21 -0
- package/lib/util/FrameScheduler.mjs +29 -0
- package/lib/util/FrameScheduler.mjs.map +1 -0
- package/lib/util/Rect.mjs +27 -0
- package/lib/util/Rect.mjs.map +1 -0
- package/lib/util/common.mjs +66 -0
- package/lib/util/common.mjs.map +1 -0
- package/lib/util/dom.mjs +8 -0
- package/lib/util/dom.mjs.map +1 -0
- package/lib/util/scroll.mjs +28 -0
- package/lib/util/scroll.mjs.map +1 -0
- package/lib/util/string.mjs +33 -0
- package/lib/util/string.mjs.map +1 -0
- package/lib/util/ui.mjs +83 -0
- package/lib/util/ui.mjs.map +1 -0
- package/lib/util/validation.mjs +5 -0
- package/lib/util/validation.mjs.map +1 -0
- package/lib/util/vue-component.mjs +64 -0
- package/lib/util/vue-component.mjs.map +1 -0
- package/package.json +62 -22
- package/types/components/app/YApp.d.ts +7 -0
- package/types/components/app/index.d.ts +1 -0
- package/types/components/button/YButton.d.ts +122 -0
- package/types/components/button/index.d.ts +1 -0
- package/types/components/card/YCard.d.ts +11 -0
- package/types/components/card/YCardBody.d.ts +2 -0
- package/types/components/card/YCardFooter.d.ts +2 -0
- package/types/components/card/YCardHeader.d.ts +2 -0
- package/types/components/card/index.d.ts +5 -0
- package/types/components/checkbox/YCheckbox.d.ts +46 -0
- package/types/components/checkbox/YInputCheckbox.d.ts +42 -0
- package/types/components/checkbox/index.d.ts +4 -0
- package/types/components/chip/YChip.d.ts +34 -0
- package/types/components/chip/index.d.ts +2 -0
- package/types/components/dialog/YDialog.d.ts +120 -0
- package/types/components/dialog/index.d.ts +1 -0
- package/types/components/field-input/YFieldInput.d.ts +118 -0
- package/types/components/field-input/index.d.ts +1 -0
- package/types/components/form/YForm.d.ts +32 -0
- package/types/components/form/index.d.ts +3 -0
- package/types/components/icons/YIconCheckbox.d.ts +1 -0
- package/types/components/icons/YIconClear.d.ts +1 -0
- package/types/components/icons/YIconExpand.d.ts +1 -0
- package/types/components/icons/index.d.ts +3 -0
- package/types/components/index.d.ts +23 -0
- package/types/components/input/YInput.d.ts +166 -0
- package/types/components/input/index.d.ts +1 -0
- package/types/components/layer/YLayer.d.ts +99 -0
- package/types/components/layer/index.d.ts +1 -0
- package/types/components/list/YList.d.ts +2 -0
- package/types/components/list/YListItem.d.ts +28 -0
- package/types/components/list/index.d.ts +2 -0
- package/types/components/loading/YSpinnerRing.d.ts +1 -0
- package/types/components/loading/index.d.ts +1 -0
- package/types/components/menu/YMenu.d.ts +236 -0
- package/types/components/menu/index.d.ts +1 -0
- package/types/components/pagination/YPagination.d.ts +106 -0
- package/types/components/pagination/index.d.ts +1 -0
- package/types/components/panel/YDividePanel.d.ts +3 -0
- package/types/components/panel/index.d.ts +1 -0
- package/types/components/plate/YPlate.d.ts +10 -0
- package/types/components/plate/index.d.ts +1 -0
- package/types/components/progress-bar/YProgressBar.d.ts +59 -0
- package/types/components/progress-bar/index.d.ts +1 -0
- package/types/components/snackbar/YSnackbar.d.ts +77 -0
- package/types/components/snackbar/index.d.ts +1 -0
- package/types/components/switch/YSwitch.d.ts +106 -0
- package/types/components/switch/index.d.ts +1 -0
- package/types/components/table/YDataTable.d.ts +63 -0
- package/types/components/table/YDataTableBody.d.ts +2 -0
- package/types/components/table/YDataTableControl.d.ts +2 -0
- package/types/components/table/YDataTableHead.d.ts +2 -0
- package/types/components/table/YDataTableLayer.d.ts +2 -0
- package/types/components/table/YDataTableServer.d.ts +82 -0
- package/types/components/table/YTable.d.ts +32 -0
- package/types/components/table/index.d.ts +3 -0
- package/types/components/table/pagination.d.ts +38 -0
- package/types/components/tooltip/YTooltip.d.ts +188 -0
- package/types/components/tooltip/index.d.ts +1 -0
- package/types/components/transitions/expand-transition.d.ts +16 -0
- package/types/components/transitions/index.d.ts +32 -0
- package/types/components/tree-view/YTreeView.d.ts +37 -0
- package/types/components/tree-view/YTreeViewNode.d.ts +51 -0
- package/types/components/tree-view/index.d.ts +2 -0
- package/types/composables/communication.d.ts +1 -0
- package/types/composables/component.d.ts +2 -0
- package/types/composables/layer-group.d.ts +5 -0
- package/types/composables/progress.d.ts +3 -0
- package/types/composables/resize-observer.d.ts +14 -0
- package/types/composables/scope.d.ts +2 -0
- package/types/composables/theme/index.d.ts +15 -0
- package/types/composables/theme/setting.d.ts +12 -0
- package/types/composables/timing.d.ts +15 -0
- package/types/composables/transition.d.ts +21 -0
- package/types/directives/complement-click/index.d.ts +25 -0
- package/types/directives/plate-wave/index.d.ts +13 -0
- package/types/directives/theme-class.d.ts +3 -0
- package/types/etc/index.d.ts +1 -0
- package/types/globals.d.ts +11 -0
- package/types/index.d.ts +9 -0
- package/types/mixins/di.d.ts +2 -0
- package/types/mixins/rebind-attrs.d.ts +5 -0
- package/types/shims.d.ts +71 -0
- package/types/util/common.d.ts +8 -0
- package/types/util/dom.d.ts +1 -0
- package/types/util/string.d.ts +3 -0
- package/types/util/ui.d.ts +9 -0
- package/types/util/vue-component.d.ts +33 -0
- package/types/vite-env.d.ts +1 -0
- package/src/components/button/index.ts +0 -3
- package/src/components/button/y-btn.ts +0 -104
- package/src/components/card/index.ts +0 -6
- package/src/components/card/y-card-body.ts +0 -8
- package/src/components/card/y-card-footer.ts +0 -8
- package/src/components/card/y-card-header.ts +0 -8
- package/src/components/card/y-card.ts +0 -16
- package/src/components/checkbox/IconCheckbox.vue +0 -24
- package/src/components/checkbox/YCheckbox.vue +0 -113
- package/src/components/checkbox/YInputCheckbox.vue +0 -108
- package/src/components/checkbox/index.ts +0 -8
- package/src/components/chip/index.ts +0 -3
- package/src/components/dialog/index.ts +0 -3
- package/src/components/dialog/y-dialog.vue +0 -46
- package/src/components/field-input/index.scss +0 -5
- package/src/components/field-input/index.ts +0 -11
- package/src/components/field-input/y-field-input.ts +0 -214
- package/src/components/form/index.ts +0 -9
- package/src/components/form/y-form.ts +0 -93
- package/src/components/icons/icon-clearable.ts +0 -6
- package/src/components/index.ts +0 -17
- package/src/components/input/index.scss +0 -5
- package/src/components/input/index.ts +0 -9
- package/src/components/input/y-input.ts +0 -368
- package/src/components/layer/index.ts +0 -3
- package/src/components/layer/y-layer.vue +0 -146
- package/src/components/lottie-player.ts +0 -41
- package/src/components/progress-bar/index.ts +0 -3
- package/src/components/progress-bar/y-progress-bar.vue +0 -144
- package/src/components/ring-spinner/y-ring-spinner.vue +0 -31
- package/src/components/switch/YSwitch.vue +0 -217
- package/src/components/switch/index.scss +0 -5
- package/src/components/switch/index.ts +0 -11
- package/src/components/text-highlighter/index.scss +0 -5
- package/src/components/text-highlighter/index.ts +0 -3
- package/src/components/text-highlighter/y-text-highlighter.ts +0 -89
- package/src/composables/lazy.ts +0 -30
- package/src/composables/theme.ts +0 -25
- package/src/directives/complement-click/index.ts +0 -123
- package/src/directives/theme-class.ts +0 -14
- package/src/file-extension.d.ts +0 -14
- package/src/index.ts +0 -21
- package/src/styles/base.scss +0 -28
- package/src/styles/theme/dark.scss +0 -35
- package/src/styles/theme/light.scss +0 -32
- package/src/util/common.ts +0 -59
- package/src/util/date-time.ts +0 -41
- package/src/util/dom.ts +0 -6
- package/src/util/string.ts +0 -9
- package/src/util/ui.ts +0 -39
- package/src/util/validation.ts +0 -9
- package/src/util/vue-component.ts +0 -18
- /package/{src/components/card/y-card.scss → lib/components/card/YCard.scss} +0 -0
- /package/{src/components/checkbox/y-checkbox.scss → lib/components/checkbox/YCheckbox.scss} +0 -0
- /package/{src/components/dialog/y-dialog.scss → lib/components/dialog/YDialog.scss} +0 -0
- /package/{src/components/layer/y-layer.scss → lib/components/layer/YLayer.scss} +0 -0
- /package/{src/components/text-highlighter/y-text-highlighter.scss → lib/components/text-highlighter/YTextHighlighter.scss} +0 -0
- /package/{src/styles/variables.scss → lib/styles/_variables.scss} +0 -0
- /package/{src → lib}/styles/util/helper.scss +0 -0
- /package/{src → lib}/styles/util/theme.scss +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './YTooltip';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare function createExpandTransition(isHorizon?: boolean): import("vue").DefineComponent<{
|
|
3
|
+
disabled: {
|
|
4
|
+
type: PropType<boolean>;
|
|
5
|
+
default: boolean;
|
|
6
|
+
};
|
|
7
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
10
|
+
disabled: {
|
|
11
|
+
type: PropType<boolean>;
|
|
12
|
+
default: boolean;
|
|
13
|
+
};
|
|
14
|
+
}>>, {
|
|
15
|
+
disabled: boolean;
|
|
16
|
+
}, {}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const YExpandVTransition: import("vue").DefineComponent<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: import("vue").PropType<boolean>;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
9
|
+
disabled: {
|
|
10
|
+
type: import("vue").PropType<boolean>;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const YExpandHTransition: import("vue").DefineComponent<{
|
|
17
|
+
disabled: {
|
|
18
|
+
type: import("vue").PropType<boolean>;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
24
|
+
disabled: {
|
|
25
|
+
type: import("vue").PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}>>, {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export type YExpandVTransition = InstanceType<typeof YExpandVTransition>;
|
|
32
|
+
export type YExpandHTransition = InstanceType<typeof YExpandHTransition>;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
type NodeKey = string | number;
|
|
3
|
+
export declare const YTreeView: import("vue").DefineComponent<{
|
|
4
|
+
items: {
|
|
5
|
+
type: PropType<any[]>;
|
|
6
|
+
default: () => never[];
|
|
7
|
+
};
|
|
8
|
+
itemKey: {
|
|
9
|
+
type: PropType<string>;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
childrenKey: {
|
|
13
|
+
type: PropType<string>;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
}, {
|
|
17
|
+
nodes: import("vue").Ref<Record<NodeKey, any>>;
|
|
18
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
19
|
+
items: {
|
|
20
|
+
type: PropType<any[]>;
|
|
21
|
+
default: () => never[];
|
|
22
|
+
};
|
|
23
|
+
itemKey: {
|
|
24
|
+
type: PropType<string>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
childrenKey: {
|
|
28
|
+
type: PropType<string>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
}>>, {
|
|
32
|
+
itemKey: string;
|
|
33
|
+
childrenKey: string;
|
|
34
|
+
items: any[];
|
|
35
|
+
}, {}>;
|
|
36
|
+
export type YTreeView = InstanceType<typeof YTreeView>;
|
|
37
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export declare const YTreeViewNode: import("vue").DefineComponent<{
|
|
3
|
+
item: {
|
|
4
|
+
type: PropType<any>;
|
|
5
|
+
};
|
|
6
|
+
itemKey: {
|
|
7
|
+
type: PropType<string>;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
textKey: {
|
|
11
|
+
type: PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
childrenKey: {
|
|
15
|
+
type: PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
level: {
|
|
19
|
+
type: PropType<number>;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
}, {
|
|
23
|
+
treeView: any;
|
|
24
|
+
myKey: import("vue").ComputedRef<any>;
|
|
25
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
item: {
|
|
27
|
+
type: PropType<any>;
|
|
28
|
+
};
|
|
29
|
+
itemKey: {
|
|
30
|
+
type: PropType<string>;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
textKey: {
|
|
34
|
+
type: PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
};
|
|
37
|
+
childrenKey: {
|
|
38
|
+
type: PropType<string>;
|
|
39
|
+
default: string;
|
|
40
|
+
};
|
|
41
|
+
level: {
|
|
42
|
+
type: PropType<number>;
|
|
43
|
+
default: number;
|
|
44
|
+
};
|
|
45
|
+
}>>, {
|
|
46
|
+
itemKey: string;
|
|
47
|
+
textKey: string;
|
|
48
|
+
childrenKey: string;
|
|
49
|
+
level: number;
|
|
50
|
+
}, {}>;
|
|
51
|
+
export type YTreeNode = InstanceType<typeof YTreeViewNode>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function useModelDuplex(props: any, prop?: string, defaultValue?: any, getIn?: (value?: any) => any, setOut?: (value: any) => any): import("vue").WritableComputedRef<any>;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export declare function useResizeObserver(callback?: ResizeObserverCallback): {
|
|
2
|
+
resizeObservedRef: import("vue").Ref<HTMLElement | undefined>;
|
|
3
|
+
contentRect: Readonly<import("vue").Ref<{
|
|
4
|
+
readonly bottom: number;
|
|
5
|
+
readonly height: number;
|
|
6
|
+
readonly left: number;
|
|
7
|
+
readonly right: number;
|
|
8
|
+
readonly top: number;
|
|
9
|
+
readonly width: number;
|
|
10
|
+
readonly x: number;
|
|
11
|
+
readonly y: number;
|
|
12
|
+
readonly toJSON: () => any;
|
|
13
|
+
} | undefined>>;
|
|
14
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import type { ThemeOptions } from "./setting";
|
|
3
|
+
export declare const Y_THEME_PREFIX = "y-theme";
|
|
4
|
+
export declare const YUYEON_THEME_KEY: unique symbol;
|
|
5
|
+
export declare function createThemeModule(options: ThemeOptions): {
|
|
6
|
+
install: (app: App) => void;
|
|
7
|
+
init: (yuyeon: any) => void;
|
|
8
|
+
scope: import("vue").EffectScope;
|
|
9
|
+
instance: {
|
|
10
|
+
scheme: any;
|
|
11
|
+
theme: [string, string];
|
|
12
|
+
themes: any;
|
|
13
|
+
mode: any;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const ThemeScheme: {
|
|
2
|
+
readonly light: "light";
|
|
3
|
+
readonly dark: "dark";
|
|
4
|
+
};
|
|
5
|
+
export interface ThemeOptions {
|
|
6
|
+
mode: 'manual';
|
|
7
|
+
scheme: keyof typeof ThemeScheme | 'normal';
|
|
8
|
+
theme: string | [string, string];
|
|
9
|
+
themes: any;
|
|
10
|
+
}
|
|
11
|
+
export declare const defaultThemesValues: any;
|
|
12
|
+
export declare function configureOptions(options?: ThemeOptions): any;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare function useLazy(eager: boolean, updated: Ref<any>): {
|
|
3
|
+
entered: Ref<boolean>;
|
|
4
|
+
lazyValue: import("vue").ComputedRef<any>;
|
|
5
|
+
onAfterUpdate: () => void;
|
|
6
|
+
};
|
|
7
|
+
export declare function useTimer(cb: () => void, duration?: number, options?: {
|
|
8
|
+
tickDuration: number;
|
|
9
|
+
}): {
|
|
10
|
+
start: () => void;
|
|
11
|
+
stop: () => void;
|
|
12
|
+
reset: () => void;
|
|
13
|
+
drift: Ref<number>;
|
|
14
|
+
isWork: Ref<boolean>;
|
|
15
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Component, FunctionalComponent, PropType, TransitionProps } from 'vue';
|
|
2
|
+
export declare const polyTransitionPropOptions: {
|
|
3
|
+
transition: {
|
|
4
|
+
type: PropType<string | (TransitionProps & {
|
|
5
|
+
is?: Component | undefined;
|
|
6
|
+
})>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
};
|
|
10
|
+
export declare function usePolyTransition(props: {
|
|
11
|
+
transition: any;
|
|
12
|
+
}): {
|
|
13
|
+
polyTransitionBindProps: import("vue").ComputedRef<{
|
|
14
|
+
is: any;
|
|
15
|
+
transitionProps: any;
|
|
16
|
+
}>;
|
|
17
|
+
};
|
|
18
|
+
export declare const PolyTransition: FunctionalComponent<TransitionProps & {
|
|
19
|
+
is: string | Component;
|
|
20
|
+
transitionProps: TransitionProps;
|
|
21
|
+
}>;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { DirectiveBinding } from 'vue';
|
|
2
|
+
interface ComplementClickDirectiveElementImplanted {
|
|
3
|
+
onClick: EventListener;
|
|
4
|
+
onMousedown: EventListener;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
interface Element {
|
|
8
|
+
_complementClick?: Record<number, ComplementClickDirectiveElementImplanted | undefined> & {
|
|
9
|
+
lastMousedownWasOutside: boolean;
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export interface ComplementClickBindingOptions {
|
|
14
|
+
handler: (mouseEvent: MouseEvent) => void;
|
|
15
|
+
determine?: (event: Event) => boolean;
|
|
16
|
+
include?: () => HTMLElement[];
|
|
17
|
+
}
|
|
18
|
+
export interface ComplementClickBinding extends DirectiveBinding {
|
|
19
|
+
value: ((mouseEvent: MouseEvent) => void) | ComplementClickBindingOptions;
|
|
20
|
+
}
|
|
21
|
+
export declare const ComplementClick: {
|
|
22
|
+
mounted(element: HTMLElement, binding: ComplementClickBinding): void;
|
|
23
|
+
unmounted(element: HTMLElement, binding: ComplementClickBinding): void;
|
|
24
|
+
};
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { DirectiveBinding } from 'vue';
|
|
2
|
+
export interface PlateWaveBinding extends Omit<DirectiveBinding, 'modifiers' | 'value'> {
|
|
3
|
+
value?: boolean;
|
|
4
|
+
modifiers: {
|
|
5
|
+
stop?: boolean;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export declare const PlateWave: {
|
|
9
|
+
mounted(el: HTMLElement, binding: PlateWaveBinding): void;
|
|
10
|
+
updated(el: HTMLElement, binding: PlateWaveBinding): void;
|
|
11
|
+
unmount(el: HTMLElement): void;
|
|
12
|
+
};
|
|
13
|
+
export default PlateWave;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const YUYEON_LOGO = ",--. ,--.,--.,--.,--. ,--.,---. ,---. ,--,--, \n \\ ' / | || | \\ ' /| .-. :| .-. || \\ \n \\ ' ' '' ' \\ ' \\ --.' '-' '| || | \n.-' / `----' .-' / `----' `---' `--''--' \n`---' `---' ";
|
package/types/index.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {}, {
|
|
2
|
+
attrs_$: any;
|
|
3
|
+
listeners_$: any;
|
|
4
|
+
}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
5
|
+
export default _default;
|
package/types/shims.d.ts
ADDED
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import * as vue from 'vue';
|
|
2
|
+
import {
|
|
3
|
+
YApp,
|
|
4
|
+
YButton,
|
|
5
|
+
YCard,
|
|
6
|
+
YCardBody,
|
|
7
|
+
YCardFooter,
|
|
8
|
+
YCardHeader,
|
|
9
|
+
YCheckbox,
|
|
10
|
+
YChip,
|
|
11
|
+
YDataTable,
|
|
12
|
+
YDataTableServer,
|
|
13
|
+
YDialog,
|
|
14
|
+
YDividePanel,
|
|
15
|
+
YExpandHTransition,
|
|
16
|
+
YExpandVTransition,
|
|
17
|
+
YFieldInput,
|
|
18
|
+
YForm,
|
|
19
|
+
YInput,
|
|
20
|
+
YInputCheckbox,
|
|
21
|
+
YLayer,
|
|
22
|
+
YList,
|
|
23
|
+
YListItem,
|
|
24
|
+
YMenu,
|
|
25
|
+
YPagination,
|
|
26
|
+
YProgressBar,
|
|
27
|
+
YSnackbar,
|
|
28
|
+
YSpinnerRing,
|
|
29
|
+
YSwitch,
|
|
30
|
+
YTable,
|
|
31
|
+
YTooltip,
|
|
32
|
+
YTreeView,
|
|
33
|
+
YTreeViewNode,
|
|
34
|
+
} from 'yuyeon/types/components';
|
|
35
|
+
|
|
36
|
+
declare module '@vue/runtime-core' {
|
|
37
|
+
export interface GlobalComponents {
|
|
38
|
+
// @define-components
|
|
39
|
+
YApp: typeof YApp;
|
|
40
|
+
YButton: typeof YButton;
|
|
41
|
+
YChip: typeof YChip;
|
|
42
|
+
YInput: typeof YInput;
|
|
43
|
+
YFieldInput: typeof YFieldInput;
|
|
44
|
+
YForm: typeof YForm;
|
|
45
|
+
YCard: typeof YCard;
|
|
46
|
+
YCardBody: typeof YCardBody;
|
|
47
|
+
YCardHeader: typeof YCardHeader;
|
|
48
|
+
YCardFooter: typeof YCardFooter;
|
|
49
|
+
YDialog: typeof YDialog;
|
|
50
|
+
YLayer: typeof YLayer;
|
|
51
|
+
YSnackbar: typeof YSnackbar;
|
|
52
|
+
YProgressBar: typeof YProgressBar;
|
|
53
|
+
YSpinnerRing: typeof YSpinnerRing;
|
|
54
|
+
YTooltip: typeof YTooltip;
|
|
55
|
+
YExpandVTransition: typeof YExpandVTransition;
|
|
56
|
+
YExpandHTransition: typeof YExpandHTransition;
|
|
57
|
+
YDividePanel: typeof YDividePanel;
|
|
58
|
+
YList: typeof YList;
|
|
59
|
+
YListItem: typeof YListItem;
|
|
60
|
+
YTreeView: typeof YTreeView;
|
|
61
|
+
YTreeViewNode: typeof YTreeViewNode;
|
|
62
|
+
YDataTable: typeof YDataTable;
|
|
63
|
+
YTable: typeof YTable;
|
|
64
|
+
YDataTableServer: typeof YDataTableServer;
|
|
65
|
+
YMenu: typeof YMenu;
|
|
66
|
+
YPagination: typeof YPagination;
|
|
67
|
+
YInputCheckbox: typeof YInputCheckbox;
|
|
68
|
+
YCheckbox: typeof YCheckbox;
|
|
69
|
+
YSwitch: typeof YSwitch;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare function hasOwnProperty(object: any, property: string): boolean;
|
|
2
|
+
export declare function getNestedValue(obj: any, path: (string | number)[], fallback?: any): any;
|
|
3
|
+
export declare function mergeDeep(source?: Record<string, any>, overwrite?: Record<string, any>, arrayFn?: (source: unknown[], overwrite: unknown[]) => unknown[]): {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
};
|
|
6
|
+
export declare function getObjectValueByPath(obj: any, path: string, fallback?: any): any;
|
|
7
|
+
export declare function randomCharOne(str: string): string;
|
|
8
|
+
export declare function clamp(value: number, min?: number, max?: number): number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function documentRoot(domNode: Node): null | HTMLDocument | ShadowRoot;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare function colorHexToRgb(color: string): number[] | undefined;
|
|
2
|
+
export declare function textColorIsLight(r: number, g: number, b: number): boolean;
|
|
3
|
+
export declare const RGBA_REGEX: RegExp;
|
|
4
|
+
export declare const HEX_COLOR_REGEX: RegExp;
|
|
5
|
+
export declare function isColorValue(value: string): boolean;
|
|
6
|
+
export declare function toStyleSizeValue(size: number | string | null | undefined, unit?: string): string | undefined;
|
|
7
|
+
export declare function getBoundingPureRect(el: HTMLElement): DOMRect;
|
|
8
|
+
export declare function pixelRound(val: number): number;
|
|
9
|
+
export declare function pixelCeil(val: number): number;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import type { IfAny } from '@vue/shared';
|
|
2
|
+
import type { ComponentObjectPropsOptions, ComponentPublicInstance, Prop, PropType, VNode } from 'vue';
|
|
3
|
+
export declare function getSlot(vm: ComponentPublicInstance | any, name?: string, data?: any | (() => any), optional?: boolean): VNode[] | undefined;
|
|
4
|
+
export declare function getUid(): number | undefined;
|
|
5
|
+
export declare function bindClasses(classes: string | string[] | Record<string, any> | undefined): Record<string, boolean>;
|
|
6
|
+
export declare function getHtmlElement<N extends object | undefined>(node: N): Exclude<N, ComponentPublicInstance> | HTMLElement;
|
|
7
|
+
export declare function propsFactory<PropsOptions extends ComponentObjectPropsOptions>(props: PropsOptions, source: string): <Defaults extends PartialKeys<PropsOptions> = {}>(defaults?: Defaults | undefined) => OverwrittenPropOptions<PropsOptions, Defaults>;
|
|
8
|
+
type OverwrittenPropOptions<T extends ComponentObjectPropsOptions, D extends PartialKeys<T>> = {
|
|
9
|
+
[P in keyof T]-?: unknown extends D[P] ? T[P] : T[P] extends Record<string, unknown> ? Omit<T[P], 'type' | 'default'> & {
|
|
10
|
+
type: FollowPropType<Pick<T[P], 'type'>, T[P], D[P]>;
|
|
11
|
+
default: MergeDefault<T[P], D[P]>;
|
|
12
|
+
} : {
|
|
13
|
+
type: PropType<MergeDefault<P, D>>;
|
|
14
|
+
default: MergeDefault<T[P], D[P]>;
|
|
15
|
+
};
|
|
16
|
+
};
|
|
17
|
+
type MergeDefault<T, D> = unknown extends D ? InferPropType<T> : NonNullable<InferPropType<T>> | D;
|
|
18
|
+
type FollowPropType<T, P, D> = [T] extends [PropType<unknown>] ? T : PropType<MergeDefault<P, D>>;
|
|
19
|
+
type PartialKeys<T> = {
|
|
20
|
+
[P in keyof T]?: unknown;
|
|
21
|
+
};
|
|
22
|
+
type InferPropType<T> = [T] extends [null] ? any : [T] extends [{
|
|
23
|
+
type: null | true;
|
|
24
|
+
}] ? any : [T] extends [ObjectConstructor | {
|
|
25
|
+
type: ObjectConstructor;
|
|
26
|
+
}] ? Record<string, any> : [T] extends [BooleanConstructor | {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
}] ? boolean : [T] extends [DateConstructor | {
|
|
29
|
+
type: DateConstructor;
|
|
30
|
+
}] ? Date : [T] extends [(infer U)[] | {
|
|
31
|
+
type: (infer U)[];
|
|
32
|
+
}] ? U extends DateConstructor ? Date | InferPropType<U> : InferPropType<U> : [T] extends [Prop<infer V, infer D>] ? unknown extends V ? IfAny<V, V, D> : V : T;
|
|
33
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/// <reference types="vite/client" />
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h, VNodeArrayChildren, withDirectives } from 'vue';
|
|
2
|
-
import { getSlot } from "../../util/vue-component";
|
|
3
|
-
import { PlateWave } from "../../directives/plate-wave";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Style
|
|
7
|
-
*/
|
|
8
|
-
import './y-btn.scss';
|
|
9
|
-
import YRingSpinner from '../ring-spinner/y-ring-spinner.vue';
|
|
10
|
-
import { isColorValue } from '../../util/ui';
|
|
11
|
-
|
|
12
|
-
const NAME = 'y-btn';
|
|
13
|
-
|
|
14
|
-
export default defineComponent({
|
|
15
|
-
name: NAME,
|
|
16
|
-
directives: {
|
|
17
|
-
PlateWave,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
loading: Boolean,
|
|
21
|
-
outlined: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: false,
|
|
24
|
-
},
|
|
25
|
-
rounded: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: false,
|
|
28
|
-
},
|
|
29
|
-
filled: {
|
|
30
|
-
type: Boolean,
|
|
31
|
-
default: false,
|
|
32
|
-
},
|
|
33
|
-
disabled: {
|
|
34
|
-
type: Boolean,
|
|
35
|
-
},
|
|
36
|
-
text: {
|
|
37
|
-
type: Boolean,
|
|
38
|
-
},
|
|
39
|
-
color: {
|
|
40
|
-
type: String,
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
computed: {
|
|
44
|
-
classes() {
|
|
45
|
-
return {
|
|
46
|
-
[`${NAME}--outlined`]: this.outlined,
|
|
47
|
-
[`${NAME}--loading`]: this.loading,
|
|
48
|
-
[`${NAME}--rounded`]: this.rounded,
|
|
49
|
-
[`${NAME}--filled`]: this.filled,
|
|
50
|
-
[`${NAME}--disabled`]: this.disabled,
|
|
51
|
-
[`${NAME}--text`]: this.text,
|
|
52
|
-
};
|
|
53
|
-
},
|
|
54
|
-
styles(): Record<string, any> {
|
|
55
|
-
let { color } = this;
|
|
56
|
-
if (color && !isColorValue(color)) {
|
|
57
|
-
color = `var(--y-palette--${color})`;
|
|
58
|
-
}
|
|
59
|
-
return {
|
|
60
|
-
[`--y-btn__color`]: color,
|
|
61
|
-
};
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
methods: {
|
|
65
|
-
createContent() {
|
|
66
|
-
const defaultSlot = getSlot(this, 'default');
|
|
67
|
-
const children: VNodeArrayChildren = [];
|
|
68
|
-
if (this.loading) {
|
|
69
|
-
children.push(h(YRingSpinner));
|
|
70
|
-
}
|
|
71
|
-
children.push(defaultSlot);
|
|
72
|
-
return h('span', { class: 'y-btn__content' }, children);
|
|
73
|
-
},
|
|
74
|
-
getClasses() {
|
|
75
|
-
return this.classes;
|
|
76
|
-
},
|
|
77
|
-
/// Events
|
|
78
|
-
onClick(e: MouseEvent) {
|
|
79
|
-
e.preventDefault();
|
|
80
|
-
if (this.loading) {
|
|
81
|
-
return;
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
render() {
|
|
86
|
-
const { onClick, styles } = this;
|
|
87
|
-
return withDirectives(
|
|
88
|
-
h(
|
|
89
|
-
'button',
|
|
90
|
-
{
|
|
91
|
-
class: {
|
|
92
|
-
...this.getClasses(),
|
|
93
|
-
[`${NAME}`]: true,
|
|
94
|
-
},
|
|
95
|
-
style: styles,
|
|
96
|
-
onClick,
|
|
97
|
-
'^disabled': this.disabled ? true : undefined,
|
|
98
|
-
},
|
|
99
|
-
this.createContent(),
|
|
100
|
-
),
|
|
101
|
-
[[PlateWave, true]],
|
|
102
|
-
);
|
|
103
|
-
},
|
|
104
|
-
});
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h, VNode } from 'vue';
|
|
2
|
-
|
|
3
|
-
import './y-card.scss';
|
|
4
|
-
|
|
5
|
-
export default defineComponent({
|
|
6
|
-
name: 'y-card',
|
|
7
|
-
render(): VNode {
|
|
8
|
-
return h(
|
|
9
|
-
'div',
|
|
10
|
-
{
|
|
11
|
-
class: ['y-card'],
|
|
12
|
-
},
|
|
13
|
-
this.$slots.default?.call(this),
|
|
14
|
-
);
|
|
15
|
-
},
|
|
16
|
-
});
|