yuyeon 0.0.0 → 0.0.3
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
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<svg
|
|
3
|
-
class="icon-checkbox"
|
|
4
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
5
|
-
width="24"
|
|
6
|
-
height="24"
|
|
7
|
-
>
|
|
8
|
-
<path
|
|
9
|
-
class="icon-checkbox__border-path"
|
|
10
|
-
d="M 15.525 21.825 H 8.325 C 4.851 21.825 2.025 18.999 2.025 15.525 V 8.325 C 2.025 4.851 4.851 2.025 8.325 2.025 H 15.525 C 18.999 2.025 21.825 4.851 21.825 8.325 V 15.525 C 21.825 18.999 18.999 21.825 15.525 21.825 Z"
|
|
11
|
-
/>
|
|
12
|
-
<path
|
|
13
|
-
class="icon-checkbox__checkmark-path"
|
|
14
|
-
fill="none"
|
|
15
|
-
d="M5.73,11.91 11.1,16.28 17.79,7.59"
|
|
16
|
-
></path>
|
|
17
|
-
</svg>
|
|
18
|
-
</template>
|
|
19
|
-
|
|
20
|
-
<script>
|
|
21
|
-
export default {
|
|
22
|
-
name: 'IconCheckbox',
|
|
23
|
-
};
|
|
24
|
-
</script>
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
- Created by yeonyu at 2021-09-23
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div class="y-checkbox" :class="classes">
|
|
7
|
-
<slot name="prepend"></slot>
|
|
8
|
-
<div class="y-checkbox__slot">
|
|
9
|
-
<y-input-checkbox
|
|
10
|
-
@click.stop="onClick"
|
|
11
|
-
:id="counterId"
|
|
12
|
-
:value="innerValue"
|
|
13
|
-
:icon="computedIcon"
|
|
14
|
-
@focus="onFocus"
|
|
15
|
-
@blur="onBlur"
|
|
16
|
-
:color="color"
|
|
17
|
-
:disabled="disabled"
|
|
18
|
-
:readonly="readonly"
|
|
19
|
-
>
|
|
20
|
-
<template v-if="$slots.icon" #icon="{ checked }">
|
|
21
|
-
<slot name="icon" :checked="checked"></slot>
|
|
22
|
-
</template>
|
|
23
|
-
</y-input-checkbox>
|
|
24
|
-
<label @click.stop="" class="y-checkbox__label" :for="inputId">
|
|
25
|
-
<slot name="label">{{ label }}</slot>
|
|
26
|
-
</label>
|
|
27
|
-
</div>
|
|
28
|
-
<slot name="append"></slot>
|
|
29
|
-
</div>
|
|
30
|
-
</template>
|
|
31
|
-
|
|
32
|
-
<script lang="ts">
|
|
33
|
-
import { defineComponent, PropType } from 'vue';
|
|
34
|
-
import YInputCheckbox from './YInputCheckbox.vue';
|
|
35
|
-
|
|
36
|
-
import './y-checkbox.scss';
|
|
37
|
-
|
|
38
|
-
export default defineComponent({
|
|
39
|
-
name: 'y-checkbox',
|
|
40
|
-
components: { YInputCheckbox },
|
|
41
|
-
created() {
|
|
42
|
-
this.counterId = this.$yeonyui.getComponentCounter().toString();
|
|
43
|
-
this.innerValue = this.inputValue;
|
|
44
|
-
},
|
|
45
|
-
model: {
|
|
46
|
-
prop: 'inputValue',
|
|
47
|
-
event: 'change',
|
|
48
|
-
},
|
|
49
|
-
props: {
|
|
50
|
-
label: String as PropType<string>,
|
|
51
|
-
reverse: Boolean as PropType<boolean>,
|
|
52
|
-
icon: {
|
|
53
|
-
type: [Object, String] as PropType<
|
|
54
|
-
{ checked?: string; unchecked?: string } | string
|
|
55
|
-
>,
|
|
56
|
-
},
|
|
57
|
-
color: {
|
|
58
|
-
type: String as PropType<string>,
|
|
59
|
-
default: () => 'primary',
|
|
60
|
-
},
|
|
61
|
-
disabled: Boolean as PropType<boolean>,
|
|
62
|
-
readonly: Boolean as PropType<boolean>,
|
|
63
|
-
},
|
|
64
|
-
data() {
|
|
65
|
-
return {
|
|
66
|
-
innerValue: false,
|
|
67
|
-
focused: false,
|
|
68
|
-
counterId: '',
|
|
69
|
-
};
|
|
70
|
-
},
|
|
71
|
-
computed: {
|
|
72
|
-
classes(): Record<string, boolean> {
|
|
73
|
-
const { reverse, focused, disabled, readonly } = this;
|
|
74
|
-
return {
|
|
75
|
-
'y-checkbox--reverse': reverse,
|
|
76
|
-
'y-checkbox--focused': focused,
|
|
77
|
-
'y-checkbox--disabled': disabled,
|
|
78
|
-
'y-checkbox--readonly': readonly,
|
|
79
|
-
};
|
|
80
|
-
},
|
|
81
|
-
computedIcon(): string | undefined {
|
|
82
|
-
if (typeof this.icon === 'string') {
|
|
83
|
-
return this.icon;
|
|
84
|
-
}
|
|
85
|
-
return undefined;
|
|
86
|
-
},
|
|
87
|
-
inputId() {
|
|
88
|
-
const id = this.counterId;
|
|
89
|
-
return `input-${id}`;
|
|
90
|
-
},
|
|
91
|
-
},
|
|
92
|
-
methods: {
|
|
93
|
-
onFocus(e: FocusEvent) {
|
|
94
|
-
this.focused = true;
|
|
95
|
-
this.$emit('focus', e);
|
|
96
|
-
},
|
|
97
|
-
onBlur(e: FocusEvent) {
|
|
98
|
-
this.focused = false;
|
|
99
|
-
this.$emit('blur', e);
|
|
100
|
-
},
|
|
101
|
-
onClick(e: MouseEvent) {
|
|
102
|
-
if (this.disabled || this.readonly) return;
|
|
103
|
-
this.innerValue = !this.innerValue;
|
|
104
|
-
this.$emit('change', this.innerValue, e);
|
|
105
|
-
},
|
|
106
|
-
},
|
|
107
|
-
watch: {
|
|
108
|
-
inputValue(neo: boolean) {
|
|
109
|
-
this.innerValue = neo;
|
|
110
|
-
},
|
|
111
|
-
},
|
|
112
|
-
});
|
|
113
|
-
</script>
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
<!--
|
|
2
|
-
- Created by yeonyu at 2021-09-23
|
|
3
|
-
-->
|
|
4
|
-
|
|
5
|
-
<template>
|
|
6
|
-
<div @click="onClick" class="y-input y-input--checkbox" :class="classes">
|
|
7
|
-
<input
|
|
8
|
-
:id="inputId"
|
|
9
|
-
:aria-checked="checked"
|
|
10
|
-
role="checkbox"
|
|
11
|
-
type="checkbox"
|
|
12
|
-
:checked="checked"
|
|
13
|
-
@focus="onFocus"
|
|
14
|
-
@blur="onBlur"
|
|
15
|
-
:disabled="disabled"
|
|
16
|
-
:readonly="readonly"
|
|
17
|
-
/>
|
|
18
|
-
<slot name="icon" :checked="checked">
|
|
19
|
-
<component :is="iconComponent" v-if="iconComponent"></component>
|
|
20
|
-
<icon-checkbox v-else></icon-checkbox>
|
|
21
|
-
</slot>
|
|
22
|
-
</div>
|
|
23
|
-
</template>
|
|
24
|
-
|
|
25
|
-
<script lang="ts">
|
|
26
|
-
import { defineComponent, PropType } from 'vue';
|
|
27
|
-
import IconCheckbox from './IconCheckbox.vue';
|
|
28
|
-
|
|
29
|
-
import './y-input-checkbox.scss';
|
|
30
|
-
|
|
31
|
-
export default defineComponent({
|
|
32
|
-
name: 'y-input-checkbox',
|
|
33
|
-
components: { IconCheckbox },
|
|
34
|
-
props: {
|
|
35
|
-
id: String as PropType<string>,
|
|
36
|
-
value: Boolean as PropType<boolean>,
|
|
37
|
-
icon: String as PropType<string>,
|
|
38
|
-
color: {
|
|
39
|
-
type: String as PropType<string>,
|
|
40
|
-
default: () => 'primary',
|
|
41
|
-
},
|
|
42
|
-
disabled: Boolean as PropType<boolean>,
|
|
43
|
-
readonly: Boolean as PropType<boolean>,
|
|
44
|
-
},
|
|
45
|
-
data() {
|
|
46
|
-
return {
|
|
47
|
-
counterId: '',
|
|
48
|
-
checked: false,
|
|
49
|
-
focused: false,
|
|
50
|
-
};
|
|
51
|
-
},
|
|
52
|
-
computed: {
|
|
53
|
-
coloredClass() {
|
|
54
|
-
if (this.color.startsWith('#')) {
|
|
55
|
-
return undefined;
|
|
56
|
-
}
|
|
57
|
-
return `color--${this.color}`;
|
|
58
|
-
},
|
|
59
|
-
classes() {
|
|
60
|
-
const ret: Record<string, boolean> = {
|
|
61
|
-
'y-input--active': this.checked,
|
|
62
|
-
'y-input--focused': this.focused,
|
|
63
|
-
};
|
|
64
|
-
if (this.coloredClass) {
|
|
65
|
-
ret[this.coloredClass] = true;
|
|
66
|
-
}
|
|
67
|
-
return ret;
|
|
68
|
-
},
|
|
69
|
-
inputId() {
|
|
70
|
-
let id = this.counterId;
|
|
71
|
-
if (this.id) {
|
|
72
|
-
id = this.id;
|
|
73
|
-
}
|
|
74
|
-
return `input-${id}`;
|
|
75
|
-
},
|
|
76
|
-
iconComponent() {
|
|
77
|
-
if (this.icon) {
|
|
78
|
-
if (this.$yeonyui.icons[this.icon]) {
|
|
79
|
-
return this.$yeonyui.icons[this.icon];
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
return null;
|
|
83
|
-
},
|
|
84
|
-
},
|
|
85
|
-
methods: {
|
|
86
|
-
onFocus(e: FocusEvent) {
|
|
87
|
-
this.focused = true;
|
|
88
|
-
this.$emit('focus', e);
|
|
89
|
-
},
|
|
90
|
-
onBlur(e: FocusEvent) {
|
|
91
|
-
this.focused = false;
|
|
92
|
-
this.$emit('blur', e);
|
|
93
|
-
},
|
|
94
|
-
onClick(event: MouseEvent) {
|
|
95
|
-
this.$emit('click', event);
|
|
96
|
-
},
|
|
97
|
-
},
|
|
98
|
-
watch: {
|
|
99
|
-
value(neo: boolean) {
|
|
100
|
-
this.checked = neo;
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
created() {
|
|
104
|
-
this.checked = this.value;
|
|
105
|
-
this.counterId = this.$yeonyui.getComponentCounter().toString();
|
|
106
|
-
},
|
|
107
|
-
});
|
|
108
|
-
</script>
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<y-layer v-model="active" content-tag-dialog scrim>
|
|
3
|
-
<slot name="activator"></slot>
|
|
4
|
-
<slot></slot>
|
|
5
|
-
</y-layer>
|
|
6
|
-
</template>
|
|
7
|
-
|
|
8
|
-
<script lang="ts">
|
|
9
|
-
import { computed, defineComponent, PropType, provide } from 'vue';
|
|
10
|
-
import { YLayer } from '../layer';
|
|
11
|
-
import { YCard } from '../card';
|
|
12
|
-
|
|
13
|
-
import './y-dialog.scss';
|
|
14
|
-
|
|
15
|
-
export default defineComponent({
|
|
16
|
-
name: 'YDialog',
|
|
17
|
-
components: {
|
|
18
|
-
YLayer,
|
|
19
|
-
YCard,
|
|
20
|
-
},
|
|
21
|
-
props: {
|
|
22
|
-
modelValue: {
|
|
23
|
-
type: Boolean as PropType<boolean>,
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
emits: {
|
|
27
|
-
'update:modelValue': (value: boolean) => true,
|
|
28
|
-
},
|
|
29
|
-
setup(props: any, { emit }) {
|
|
30
|
-
const active = computed({
|
|
31
|
-
get: () => {
|
|
32
|
-
return props.modelValue;
|
|
33
|
-
},
|
|
34
|
-
set: (v: boolean) => {
|
|
35
|
-
emit('update:modelValue', v);
|
|
36
|
-
},
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
provide('poly', 'y-dialog');
|
|
40
|
-
|
|
41
|
-
return {
|
|
42
|
-
active,
|
|
43
|
-
};
|
|
44
|
-
},
|
|
45
|
-
});
|
|
46
|
-
</script>
|
|
@@ -1,214 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Created by yeonyu 2022.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import { YInput } from '../input';
|
|
6
|
-
import { VNode, defineComponent, h } from 'vue';
|
|
7
|
-
|
|
8
|
-
import './index.scss';
|
|
9
|
-
import { getSlot } from '../../util/vue-component';
|
|
10
|
-
import IconClearable from '../icons/icon-clearable';
|
|
11
|
-
|
|
12
|
-
const NAME = 'y-field-input';
|
|
13
|
-
|
|
14
|
-
export default defineComponent({
|
|
15
|
-
extends: YInput,
|
|
16
|
-
name: NAME,
|
|
17
|
-
inheritAttrs: false,
|
|
18
|
-
props: {
|
|
19
|
-
clearable: Boolean,
|
|
20
|
-
inputAlign: String,
|
|
21
|
-
displayText: [String, Function],
|
|
22
|
-
whenInputValid: [Boolean, Number],
|
|
23
|
-
tabindex: {
|
|
24
|
-
type: String,
|
|
25
|
-
default: '0',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
mounted() {
|
|
29
|
-
this.displayValue = this.inValue as string;
|
|
30
|
-
},
|
|
31
|
-
data() {
|
|
32
|
-
return {
|
|
33
|
-
displayValue: '' as string,
|
|
34
|
-
};
|
|
35
|
-
},
|
|
36
|
-
computed: {
|
|
37
|
-
fieldInputClasses(): Record<string, any> {
|
|
38
|
-
return {
|
|
39
|
-
...this.classes,
|
|
40
|
-
[NAME]: true,
|
|
41
|
-
};
|
|
42
|
-
},
|
|
43
|
-
inputType(): string {
|
|
44
|
-
const attr = (this.$attrs.type as string) || 'text';
|
|
45
|
-
return attr;
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
methods: {
|
|
49
|
-
getClasses() {
|
|
50
|
-
return {
|
|
51
|
-
...YInput.methods?.getClasses(),
|
|
52
|
-
...this.fieldInputClasses,
|
|
53
|
-
};
|
|
54
|
-
},
|
|
55
|
-
createInput(): VNode {
|
|
56
|
-
const { readonly, placeholder, disabled } = this;
|
|
57
|
-
return h('input', {
|
|
58
|
-
'.value': this.displayValue,
|
|
59
|
-
'.id': this.attrId,
|
|
60
|
-
'.type': this.inputType,
|
|
61
|
-
readonly: readonly || this.loading || this.formLoading,
|
|
62
|
-
'.placeholder': placeholder,
|
|
63
|
-
'.disabled': disabled,
|
|
64
|
-
'^tabindex': this.tabindex || '0',
|
|
65
|
-
autocomplete: this.$attrs.autocomplete,
|
|
66
|
-
maxlength: this.$attrs.maxlength,
|
|
67
|
-
onInput: this.onInput,
|
|
68
|
-
onFocus: this.onFocus,
|
|
69
|
-
onBlur: this.onBlur,
|
|
70
|
-
onChange: this.onChange,
|
|
71
|
-
onKeydown: this.onKeydown,
|
|
72
|
-
onKeyup: this.onKeyup,
|
|
73
|
-
style: {
|
|
74
|
-
textAlign: this.inputAlign,
|
|
75
|
-
},
|
|
76
|
-
ref: 'input',
|
|
77
|
-
});
|
|
78
|
-
},
|
|
79
|
-
createDefaultChildren(): (VNode | undefined)[] {
|
|
80
|
-
return [
|
|
81
|
-
YInput.methods!.createLabel.call(this),
|
|
82
|
-
this.createInput.call(this),
|
|
83
|
-
];
|
|
84
|
-
},
|
|
85
|
-
createDefault(): VNode {
|
|
86
|
-
return h(
|
|
87
|
-
'div',
|
|
88
|
-
{
|
|
89
|
-
class: `${NAME}__field`,
|
|
90
|
-
'data-id': this.attrId,
|
|
91
|
-
ref: 'field',
|
|
92
|
-
},
|
|
93
|
-
this.createDefaultChildren(),
|
|
94
|
-
);
|
|
95
|
-
},
|
|
96
|
-
createClearAppend(): VNode {
|
|
97
|
-
return h('div', { class: 'y-input__append y-input__append--clear' }, [
|
|
98
|
-
h(
|
|
99
|
-
'button',
|
|
100
|
-
{
|
|
101
|
-
class: `${NAME}__clear`,
|
|
102
|
-
onClick: this.onClickClear,
|
|
103
|
-
onKeydown: this.onKeydownClear,
|
|
104
|
-
'^tabindex': '2',
|
|
105
|
-
},
|
|
106
|
-
[h(IconClearable)],
|
|
107
|
-
),
|
|
108
|
-
]);
|
|
109
|
-
},
|
|
110
|
-
createAppend(): VNode[] {
|
|
111
|
-
const appends = [];
|
|
112
|
-
if (this.clearable && this.inValue) {
|
|
113
|
-
appends.push(this.createClearAppend());
|
|
114
|
-
}
|
|
115
|
-
const slot = getSlot(this, 'append');
|
|
116
|
-
if (slot) {
|
|
117
|
-
appends.push(h('div', { class: 'y-input__append' }, slot));
|
|
118
|
-
}
|
|
119
|
-
return appends;
|
|
120
|
-
},
|
|
121
|
-
//
|
|
122
|
-
onClick(event: MouseEvent) {
|
|
123
|
-
(this.$refs.input as HTMLElement).focus();
|
|
124
|
-
this.$emit('click', event);
|
|
125
|
-
},
|
|
126
|
-
onFocus(event: FocusEvent) {
|
|
127
|
-
if (this) {
|
|
128
|
-
this.isFocused = true;
|
|
129
|
-
this.displayValue = this.inValue as string;
|
|
130
|
-
this.$emit('focus', event);
|
|
131
|
-
}
|
|
132
|
-
},
|
|
133
|
-
onBlur(event: FocusEvent) {
|
|
134
|
-
this.isFocused = false;
|
|
135
|
-
this.invokeValidators();
|
|
136
|
-
this.$emit('blur', event);
|
|
137
|
-
this.changeDisplay();
|
|
138
|
-
},
|
|
139
|
-
onInput(event: InputEvent) {
|
|
140
|
-
const target = event.target as HTMLInputElement | null;
|
|
141
|
-
this.inValue = target?.value;
|
|
142
|
-
this.displayValue = target?.value as string;
|
|
143
|
-
if (this.whenInputValid) {
|
|
144
|
-
this.invokeValidators();
|
|
145
|
-
}
|
|
146
|
-
this.$emit('update:modelValue', this.inValue);
|
|
147
|
-
},
|
|
148
|
-
onChange(event: Event) {
|
|
149
|
-
YInput.methods?.onChange.call(this, event);
|
|
150
|
-
this.$emit('change', this.inValue);
|
|
151
|
-
},
|
|
152
|
-
onKeydown(event: KeyboardEvent) {
|
|
153
|
-
this.$emit('keydown', event);
|
|
154
|
-
},
|
|
155
|
-
onKeyup(event: KeyboardEvent) {
|
|
156
|
-
this.$emit('keyup', event);
|
|
157
|
-
},
|
|
158
|
-
//
|
|
159
|
-
clear() {
|
|
160
|
-
this.inValue = '';
|
|
161
|
-
this.$emit('update:modelValue', this.inValue);
|
|
162
|
-
},
|
|
163
|
-
onClickClear(event: MouseEvent) {
|
|
164
|
-
this.clear();
|
|
165
|
-
},
|
|
166
|
-
onKeydownClear(event: KeyboardEvent) {
|
|
167
|
-
if (event.code === 'Space' || event.code === 'Enter') {
|
|
168
|
-
this.clear();
|
|
169
|
-
}
|
|
170
|
-
},
|
|
171
|
-
//
|
|
172
|
-
/**
|
|
173
|
-
* @public
|
|
174
|
-
*/
|
|
175
|
-
focus() {
|
|
176
|
-
(this.$refs.input as HTMLInputElement).focus();
|
|
177
|
-
},
|
|
178
|
-
/**
|
|
179
|
-
* @public
|
|
180
|
-
*/
|
|
181
|
-
select() {
|
|
182
|
-
(this.$refs.input as HTMLInputElement).select();
|
|
183
|
-
},
|
|
184
|
-
//
|
|
185
|
-
changeDisplay() {
|
|
186
|
-
const { displayText } = this;
|
|
187
|
-
if (displayText !== undefined) {
|
|
188
|
-
let text = this.inValue;
|
|
189
|
-
if (typeof displayText === 'string') {
|
|
190
|
-
text = displayText;
|
|
191
|
-
}
|
|
192
|
-
if (displayText && typeof displayText === 'function') {
|
|
193
|
-
text = (displayText as any).call(this, text);
|
|
194
|
-
}
|
|
195
|
-
this.$nextTick(() => {
|
|
196
|
-
this.displayValue = text as string;
|
|
197
|
-
});
|
|
198
|
-
}
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
watch: {
|
|
202
|
-
modelValue(neo: any) {
|
|
203
|
-
this.inValue = neo;
|
|
204
|
-
this.displayValue = neo;
|
|
205
|
-
},
|
|
206
|
-
inValue(neo: string) {
|
|
207
|
-
if (!this.isFocused) {
|
|
208
|
-
this.changeDisplay();
|
|
209
|
-
} else {
|
|
210
|
-
this.displayValue = neo;
|
|
211
|
-
}
|
|
212
|
-
},
|
|
213
|
-
},
|
|
214
|
-
});
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Created by yeonyu 2022.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
defineComponent,
|
|
7
|
-
PropType,
|
|
8
|
-
VNode,
|
|
9
|
-
h,
|
|
10
|
-
ComponentPublicInstance,
|
|
11
|
-
withKeys,
|
|
12
|
-
} from 'vue';
|
|
13
|
-
//
|
|
14
|
-
import RebindAttrs from '../../mixins/rebind-attrs';
|
|
15
|
-
|
|
16
|
-
const NAME = 'y-form';
|
|
17
|
-
const rootTags = ['form', 'div', 'section', 'article'];
|
|
18
|
-
|
|
19
|
-
export default defineComponent({
|
|
20
|
-
name: NAME,
|
|
21
|
-
inheritAttrs: false,
|
|
22
|
-
mixins: [RebindAttrs],
|
|
23
|
-
provide() {
|
|
24
|
-
return {
|
|
25
|
-
form$: this,
|
|
26
|
-
};
|
|
27
|
-
},
|
|
28
|
-
props: {
|
|
29
|
-
tag: {
|
|
30
|
-
type: String as PropType<string>,
|
|
31
|
-
default: 'form',
|
|
32
|
-
validator(value: string) {
|
|
33
|
-
return rootTags.includes(value);
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
loading: Boolean,
|
|
37
|
-
},
|
|
38
|
-
data() {
|
|
39
|
-
return {
|
|
40
|
-
inputs: {} as Record<string, ComponentPublicInstance>,
|
|
41
|
-
formData: {} as any,
|
|
42
|
-
};
|
|
43
|
-
},
|
|
44
|
-
methods: {
|
|
45
|
-
register(component: any) {
|
|
46
|
-
const { iid, name } = component;
|
|
47
|
-
// TODO: vue3 에서 $on 제거됨에 따라 트리거 따로 만들어야 함
|
|
48
|
-
this.inputs[iid] = component;
|
|
49
|
-
},
|
|
50
|
-
unregister(component: any) {
|
|
51
|
-
delete this.inputs[component.iid];
|
|
52
|
-
},
|
|
53
|
-
validate(): boolean {
|
|
54
|
-
let flag = true;
|
|
55
|
-
Object.values(this.inputs).forEach((input: any) => {
|
|
56
|
-
const valid = input?.invokeValidators.call(input);
|
|
57
|
-
flag = flag && valid;
|
|
58
|
-
});
|
|
59
|
-
return flag;
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
computed: {
|
|
63
|
-
attrs() {
|
|
64
|
-
return {
|
|
65
|
-
...this.attrs_$,
|
|
66
|
-
};
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
render(): VNode {
|
|
70
|
-
const { tag }: any = this;
|
|
71
|
-
// this.attrs_$
|
|
72
|
-
return h(
|
|
73
|
-
tag,
|
|
74
|
-
{
|
|
75
|
-
class: NAME,
|
|
76
|
-
'.novalidate': true,
|
|
77
|
-
onSubmit: (e: Event) => {
|
|
78
|
-
e.preventDefault();
|
|
79
|
-
this.$emit('submit', e, this.formData);
|
|
80
|
-
},
|
|
81
|
-
onKeydown: withKeys(
|
|
82
|
-
(e: Event) => {
|
|
83
|
-
e.preventDefault();
|
|
84
|
-
e.stopImmediatePropagation();
|
|
85
|
-
this.$emit('keydown.enter', e);
|
|
86
|
-
},
|
|
87
|
-
['enter'],
|
|
88
|
-
),
|
|
89
|
-
},
|
|
90
|
-
this.$slots.default?.(),
|
|
91
|
-
);
|
|
92
|
-
},
|
|
93
|
-
});
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { defineComponent, h, VNode } from 'vue';
|
|
2
|
-
|
|
3
|
-
export default defineComponent({
|
|
4
|
-
name: 'icon-clearable',
|
|
5
|
-
template: `<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="m8 1.5c-3.5839 0-6.5 2.9161-6.5 6.5 0 3.5839 2.9161 6.5 6.5 6.5 3.5839 0 6.5-2.9161 6.5-6.5 0-3.5839-2.9161-6.5-6.5-6.5zm-2 4a.5.5 0 01.35352.14648l1.6465 1.6465 1.6465-1.6465a.5.5 0 01.35352-.14648.5.5 0 01.35352.14648.5.5 0 010 .70703l-1.6465 1.6465 1.6465 1.6465a.5.5 0 010 .70703.5.5 0 01-.70703 0l-1.6465-1.6465-1.6465 1.6465a.5.5 0 01-.70703 0 .5.5 0 010-.70703l1.6465-1.6465-1.6465-1.6465a.5.5 0 010-.70703.5.5 0 01.35352-.14648z" fill="currentColor" stroke-miterlimit="10" /></svg>`,
|
|
6
|
-
});
|
package/src/components/index.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from './button';
|
|
2
|
-
export * from './input';
|
|
3
|
-
export * from './field-input';
|
|
4
|
-
export * from './form';
|
|
5
|
-
export * from './progress-bar';
|
|
6
|
-
export * from './card';
|
|
7
|
-
export * from './chip';
|
|
8
|
-
export * from './layer';
|
|
9
|
-
export * from './dialog';
|
|
10
|
-
|
|
11
|
-
import YLottiePlayer from './lottie-player';
|
|
12
|
-
import YRingSpinner from './ring-spinner/y-ring-spinner.vue';
|
|
13
|
-
|
|
14
|
-
export {
|
|
15
|
-
YRingSpinner,
|
|
16
|
-
YLottiePlayer,
|
|
17
|
-
};
|