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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/dialog/index.ts"],"sourcesContent":["export * from './YDialog';\n\n"],"mappings":""}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { computed, defineComponent, getCurrentInstance, h, nextTick, ref, toRef, watch } from 'vue';
|
|
2
|
+
import { YIconClear } from "../icons/YIconClear.mjs";
|
|
3
|
+
import { YInput, YInputProps } from "../input/index.mjs";
|
|
4
|
+
import "./YFieldInput.scss";
|
|
5
|
+
const NAME = 'y-field-input';
|
|
6
|
+
export const YFieldInput = defineComponent({
|
|
7
|
+
name: 'YFieldInput',
|
|
8
|
+
props: {
|
|
9
|
+
...YInputProps,
|
|
10
|
+
clearable: Boolean,
|
|
11
|
+
inputAlign: String,
|
|
12
|
+
displayText: [String, Function],
|
|
13
|
+
whenInputValid: [Boolean, Number],
|
|
14
|
+
tabindex: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: '0'
|
|
17
|
+
},
|
|
18
|
+
type: {
|
|
19
|
+
type: String,
|
|
20
|
+
default: 'text'
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
emits: ['update:modelValue', 'input', 'change', 'click', 'mousedown', 'mouseup', 'keydown', 'keyup', 'focus', 'blur'],
|
|
24
|
+
setup(props, _ref) {
|
|
25
|
+
let {
|
|
26
|
+
attrs,
|
|
27
|
+
expose,
|
|
28
|
+
emit,
|
|
29
|
+
slots
|
|
30
|
+
} = _ref;
|
|
31
|
+
const yInputRef = ref();
|
|
32
|
+
const inputRef = ref();
|
|
33
|
+
const isFocused = ref(false);
|
|
34
|
+
const inValue = ref('');
|
|
35
|
+
const displayValue = ref('');
|
|
36
|
+
const inputType = toRef(props, 'type');
|
|
37
|
+
const classes = computed(() => {
|
|
38
|
+
return {
|
|
39
|
+
...(yInputRef.value?.classes || {}),
|
|
40
|
+
'y-input--focused': isFocused.value,
|
|
41
|
+
[NAME]: true
|
|
42
|
+
};
|
|
43
|
+
});
|
|
44
|
+
const invokeValidators = () => {
|
|
45
|
+
//
|
|
46
|
+
};
|
|
47
|
+
function onClick(event) {
|
|
48
|
+
inputRef.value?.focus();
|
|
49
|
+
emit('click', event);
|
|
50
|
+
}
|
|
51
|
+
function onFocus(event) {
|
|
52
|
+
isFocused.value = true;
|
|
53
|
+
displayValue.value = inValue.value;
|
|
54
|
+
emit('focus', event);
|
|
55
|
+
}
|
|
56
|
+
function onBlur(event) {
|
|
57
|
+
isFocused.value = false;
|
|
58
|
+
invokeValidators();
|
|
59
|
+
emit('blur', event);
|
|
60
|
+
changeDisplay();
|
|
61
|
+
}
|
|
62
|
+
function onInput(event) {
|
|
63
|
+
emit('input', event);
|
|
64
|
+
const target = event.target;
|
|
65
|
+
inValue.value = target?.value;
|
|
66
|
+
displayValue.value = target?.value;
|
|
67
|
+
if (props.whenInputValid) {
|
|
68
|
+
invokeValidators();
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
function onChange(event) {
|
|
72
|
+
emit('change', inValue.value);
|
|
73
|
+
}
|
|
74
|
+
function onKeydown(event) {
|
|
75
|
+
emit('keydown', event);
|
|
76
|
+
}
|
|
77
|
+
function onKeyup(event) {
|
|
78
|
+
emit('keyup', event);
|
|
79
|
+
}
|
|
80
|
+
function onClickClear(event) {
|
|
81
|
+
clear();
|
|
82
|
+
}
|
|
83
|
+
function onKeydownClear(event) {
|
|
84
|
+
if (event.code === 'Space' || event.code === 'Enter') {
|
|
85
|
+
clear();
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function focus() {
|
|
89
|
+
inputRef.value?.focus();
|
|
90
|
+
}
|
|
91
|
+
function select() {
|
|
92
|
+
inputRef.value?.select();
|
|
93
|
+
}
|
|
94
|
+
function clear() {
|
|
95
|
+
inValue.value = '';
|
|
96
|
+
displayValue.value = '';
|
|
97
|
+
emit('update:modelValue', inValue.value);
|
|
98
|
+
}
|
|
99
|
+
function changeDisplay() {
|
|
100
|
+
const vm = getCurrentInstance();
|
|
101
|
+
const {
|
|
102
|
+
displayText
|
|
103
|
+
} = props;
|
|
104
|
+
if (displayText !== undefined) {
|
|
105
|
+
let text = inValue.value;
|
|
106
|
+
if (typeof displayText === 'string') {
|
|
107
|
+
text = displayText;
|
|
108
|
+
}
|
|
109
|
+
if (displayText && typeof displayText === 'function') {
|
|
110
|
+
text = displayText.call(vm, text);
|
|
111
|
+
}
|
|
112
|
+
nextTick(() => {
|
|
113
|
+
displayValue.value = text;
|
|
114
|
+
});
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
watch(() => props.modelValue, neo => {
|
|
118
|
+
inValue.value = neo;
|
|
119
|
+
displayValue.value = neo;
|
|
120
|
+
}, {
|
|
121
|
+
immediate: true
|
|
122
|
+
});
|
|
123
|
+
watch(inValue, neo => {
|
|
124
|
+
if (!isFocused.value) {
|
|
125
|
+
changeDisplay();
|
|
126
|
+
} else {
|
|
127
|
+
displayValue.value = neo;
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
expose({
|
|
131
|
+
focus,
|
|
132
|
+
select,
|
|
133
|
+
clear,
|
|
134
|
+
inputRef
|
|
135
|
+
});
|
|
136
|
+
const yInputProps = () => {
|
|
137
|
+
const ret = {};
|
|
138
|
+
for (const propKey in YInputProps) {
|
|
139
|
+
ret[propKey] = props[propKey];
|
|
140
|
+
}
|
|
141
|
+
return ret;
|
|
142
|
+
};
|
|
143
|
+
function onUpdateModel(value) {
|
|
144
|
+
emit('update:modelValue', value);
|
|
145
|
+
}
|
|
146
|
+
return () => h(YInput, {
|
|
147
|
+
class: classes.value,
|
|
148
|
+
ref: yInputRef,
|
|
149
|
+
...yInputProps(),
|
|
150
|
+
modelValue: inValue.value,
|
|
151
|
+
'onUpdate:modelValue': onUpdateModel,
|
|
152
|
+
onClick
|
|
153
|
+
}, {
|
|
154
|
+
prepend: slots.prepend ? function () {
|
|
155
|
+
const prepends = [];
|
|
156
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
157
|
+
args[_key] = arguments[_key];
|
|
158
|
+
}
|
|
159
|
+
const slot = slots.prepend?.(...args);
|
|
160
|
+
if (slot) {
|
|
161
|
+
prepends.push(slot);
|
|
162
|
+
} else {
|
|
163
|
+
return undefined;
|
|
164
|
+
}
|
|
165
|
+
return prepends;
|
|
166
|
+
} : undefined,
|
|
167
|
+
default: defaultProps => h('div', {
|
|
168
|
+
class: `${NAME}__field`,
|
|
169
|
+
'data-id': defaultProps.attrId,
|
|
170
|
+
ref: 'field'
|
|
171
|
+
}, [YInput.methods.createLabel.call(yInputRef), h('input', {
|
|
172
|
+
'.value': displayValue.value,
|
|
173
|
+
'.id': defaultProps.attrId,
|
|
174
|
+
'^type': inputType.value,
|
|
175
|
+
readonly: props.readonly || props.loading || defaultProps.formLoading,
|
|
176
|
+
'.placeholder': props.placeholder,
|
|
177
|
+
'.disabled': props.disabled,
|
|
178
|
+
'^tabindex': props.tabindex || '0',
|
|
179
|
+
autocomplete: attrs.autocomplete,
|
|
180
|
+
maxlength: attrs.maxlength,
|
|
181
|
+
onInput,
|
|
182
|
+
onFocus,
|
|
183
|
+
onBlur,
|
|
184
|
+
onChange,
|
|
185
|
+
onKeydown,
|
|
186
|
+
onKeyup,
|
|
187
|
+
style: {
|
|
188
|
+
textAlign: props.inputAlign
|
|
189
|
+
},
|
|
190
|
+
ref: inputRef
|
|
191
|
+
})]),
|
|
192
|
+
append: () => {
|
|
193
|
+
const appends = [];
|
|
194
|
+
if (props.clearable && inValue.value) {
|
|
195
|
+
appends.push(h('div', {
|
|
196
|
+
class: 'y-input__append y-input__append--clear'
|
|
197
|
+
}, [h('button', {
|
|
198
|
+
class: `${NAME}__clear`,
|
|
199
|
+
onClick: onClickClear,
|
|
200
|
+
onKeydown: onKeydownClear,
|
|
201
|
+
'^tabindex': '2'
|
|
202
|
+
}, [h(YIconClear)])]));
|
|
203
|
+
}
|
|
204
|
+
const slot = slots.append;
|
|
205
|
+
if (slot) {
|
|
206
|
+
appends.push(h('div', {
|
|
207
|
+
class: 'y-input__append'
|
|
208
|
+
}, slot()));
|
|
209
|
+
}
|
|
210
|
+
return appends;
|
|
211
|
+
},
|
|
212
|
+
'helper-text': () => {
|
|
213
|
+
return slots['helper-text']?.();
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
});
|
|
218
|
+
//# sourceMappingURL=YFieldInput.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YFieldInput.mjs","names":["computed","defineComponent","getCurrentInstance","h","nextTick","ref","toRef","watch","YIconClear","YInput","YInputProps","NAME","YFieldInput","name","props","clearable","Boolean","inputAlign","String","displayText","Function","whenInputValid","Number","tabindex","type","default","emits","setup","_ref","attrs","expose","emit","slots","yInputRef","inputRef","isFocused","inValue","displayValue","inputType","classes","value","invokeValidators","onClick","event","focus","onFocus","onBlur","changeDisplay","onInput","target","onChange","onKeydown","onKeyup","onClickClear","clear","onKeydownClear","code","select","vm","undefined","text","call","modelValue","neo","immediate","yInputProps","ret","propKey","onUpdateModel","class","prepend","prepends","_len","arguments","length","args","Array","_key","slot","push","defaultProps","attrId","methods","createLabel","readonly","loading","formLoading","placeholder","disabled","autocomplete","maxlength","style","textAlign","append","appends","helper-text"],"sources":["../../../src/components/field-input/YFieldInput.ts"],"sourcesContent":["import {\n PropType,\n computed,\n defineComponent,\n getCurrentInstance,\n h,\n nextTick,\n ref,\n toRef,\n watch,\n} from 'vue';\n\nimport { YIconClear } from '../icons/YIconClear';\nimport { YInput, YInputProps } from '../input';\n\nimport './YFieldInput.scss';\n\nconst NAME = 'y-field-input';\n\nexport const YFieldInput = defineComponent({\n name: 'YFieldInput',\n props: {\n ...YInputProps,\n clearable: Boolean as PropType<boolean>,\n inputAlign: String as PropType<string>,\n displayText: [String, Function] as PropType<\n string | ((value: any) => string)\n >,\n whenInputValid: [Boolean, Number] as PropType<boolean | number>,\n tabindex: {\n type: String as PropType<string>,\n default: '0',\n },\n type: {\n type: String as PropType<string>,\n default: 'text',\n },\n },\n emits: [\n 'update:modelValue',\n 'input',\n 'change',\n 'click',\n 'mousedown',\n 'mouseup',\n 'keydown',\n 'keyup',\n 'focus',\n 'blur',\n ],\n setup(props, { attrs, expose, emit, slots }) {\n const yInputRef = ref<YInput>();\n const inputRef = ref<HTMLInputElement>();\n const isFocused = ref(false);\n const inValue = ref<any>('');\n const displayValue = ref('');\n const inputType = toRef(props, 'type');\n\n const classes = computed(() => {\n return {\n ...(yInputRef.value?.classes || {}),\n 'y-input--focused': isFocused.value,\n [NAME]: true,\n };\n });\n\n const invokeValidators = () => {\n //\n };\n\n function onClick(event: MouseEvent) {\n inputRef.value?.focus();\n emit('click', event);\n }\n\n function onFocus(event: FocusEvent) {\n isFocused.value = true;\n displayValue.value = inValue.value as string;\n emit('focus', event);\n }\n\n function onBlur(event: FocusEvent) {\n isFocused.value = false;\n invokeValidators();\n emit('blur', event);\n changeDisplay();\n }\n\n function onInput(event: InputEvent) {\n emit('input', event);\n const target = event.target as HTMLInputElement | null;\n inValue.value = target?.value;\n displayValue.value = target?.value as string;\n if (props.whenInputValid) {\n invokeValidators();\n }\n }\n\n function onChange(event: Event) {\n emit('change', inValue.value);\n }\n\n function onKeydown(event: KeyboardEvent) {\n emit('keydown', event);\n }\n\n function onKeyup(event: KeyboardEvent) {\n emit('keyup', event);\n }\n\n function onClickClear(event: MouseEvent) {\n clear();\n }\n\n function onKeydownClear(event: KeyboardEvent) {\n if (event.code === 'Space' || event.code === 'Enter') {\n clear();\n }\n }\n\n function focus() {\n inputRef.value?.focus();\n }\n\n function select() {\n inputRef.value?.select();\n }\n\n function clear() {\n inValue.value = '';\n displayValue.value = '';\n emit('update:modelValue', inValue.value);\n }\n\n function changeDisplay() {\n const vm = getCurrentInstance();\n const { displayText } = props;\n if (displayText !== undefined) {\n let text = inValue.value;\n if (typeof displayText === 'string') {\n text = displayText;\n }\n if (displayText && typeof displayText === 'function') {\n text = (displayText as any).call(vm, text);\n }\n nextTick(() => {\n displayValue.value = text as string;\n });\n }\n }\n\n watch(\n () => props.modelValue,\n (neo: any) => {\n inValue.value = neo;\n displayValue.value = neo;\n },\n {\n immediate: true,\n },\n );\n\n watch(inValue, (neo: string) => {\n if (!isFocused.value) {\n changeDisplay();\n } else {\n displayValue.value = neo;\n }\n });\n\n expose({\n focus,\n select,\n clear,\n inputRef,\n });\n\n const yInputProps = () => {\n const ret: Record<string, any> = {};\n for (const propKey in YInputProps) {\n ret[propKey] = props[propKey as keyof typeof props];\n }\n return ret;\n };\n\n function onUpdateModel(value: any) {\n emit('update:modelValue', value);\n }\n\n return () =>\n h(\n YInput,\n {\n class: classes.value,\n ref: yInputRef,\n ...yInputProps(),\n modelValue: inValue.value,\n 'onUpdate:modelValue': onUpdateModel,\n onClick,\n },\n {\n prepend: slots.prepend\n ? (...args: any[]) => {\n const prepends = [];\n const slot = slots.prepend?.(...args);\n if (slot) {\n prepends.push(slot);\n } else {\n return undefined;\n }\n return prepends;\n }\n : undefined,\n default: (defaultProps: any) =>\n h(\n 'div',\n {\n class: `${NAME}__field`,\n 'data-id': defaultProps.attrId,\n ref: 'field',\n },\n [\n YInput.methods!.createLabel.call(yInputRef),\n h('input', {\n '.value': displayValue.value,\n '.id': defaultProps.attrId,\n '^type': inputType.value,\n readonly:\n props.readonly || props.loading || defaultProps.formLoading,\n '.placeholder': props.placeholder,\n '.disabled': props.disabled,\n '^tabindex': props.tabindex || '0',\n autocomplete: attrs.autocomplete,\n maxlength: attrs.maxlength,\n onInput,\n onFocus,\n onBlur,\n onChange,\n onKeydown,\n onKeyup,\n style: {\n textAlign: props.inputAlign,\n },\n ref: inputRef,\n }),\n ],\n ),\n append: () => {\n const appends = [];\n if (props.clearable && inValue.value) {\n appends.push(\n h('div', { class: 'y-input__append y-input__append--clear' }, [\n h(\n 'button',\n {\n class: `${NAME}__clear`,\n onClick: onClickClear,\n onKeydown: onKeydownClear,\n '^tabindex': '2',\n },\n [h(YIconClear)],\n ),\n ]),\n );\n }\n const slot = slots.append;\n if (slot) {\n appends.push(h('div', { class: 'y-input__append' }, slot()));\n }\n return appends;\n },\n 'helper-text': () => {\n return slots['helper-text']?.();\n },\n },\n );\n },\n});\n\nexport type YFieldInput = InstanceType<typeof YFieldInput>;\n"],"mappings":"AAAA,SAEEA,QAAQ,EACRC,eAAe,EACfC,kBAAkB,EAClBC,CAAC,EACDC,QAAQ,EACRC,GAAG,EACHC,KAAK,EACLC,KAAK,QACA,KAAK;AAAC,SAEJC,UAAU;AAAA,SACVC,MAAM,EAAEC,WAAW;AAE5B;AAEA,MAAMC,IAAI,GAAG,eAAe;AAE5B,OAAO,MAAMC,WAAW,GAAGX,eAAe,CAAC;EACzCY,IAAI,EAAE,aAAa;EACnBC,KAAK,EAAE;IACL,GAAGJ,WAAW;IACdK,SAAS,EAAEC,OAA4B;IACvCC,UAAU,EAAEC,MAA0B;IACtCC,WAAW,EAAE,CAACD,MAAM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CAAC,CAACK,UAAU,CAAC,CAChB,CAAC,CACF,CACH,CAAC;QACH;QACA,MAAMsE,IAAI,GAAG9C,KAAK,CAAC6D,MAAM;QACzB,IAAIf,IAAI,EAAE;UACRgB,OAAO,CAACf,IAAI,CAAC5E,CAAC,CAAC,KAAK,EAAE;YAAEkE,KAAK,EAAE;UAAkB,CAAC,EAAES,IAAI,CAAC,CAAC,CAAC,CAAC;QAC9D;QACA,OAAOgB,OAAO;MAChB,CAAC;MACD,aAAa,EAAEC,CAAA,KAAM;QACnB,OAAO/D,KAAK,CAAC,aAAa,CAAC,GAAG,CAAC;MACjC;IACF,CACF,CAAC;EACL;AACF,CAAC,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* Created by yeonyu 2022.
|
|
3
|
-
*/
|
|
4
1
|
@use '../../styles/util/theme';
|
|
5
2
|
@use '../../styles/util/helper';
|
|
6
3
|
@use '../../styles/variables';
|
|
@@ -38,7 +35,8 @@
|
|
|
38
35
|
|
|
39
36
|
.y-input__prepend + &__field {
|
|
40
37
|
> input {
|
|
41
|
-
padding-left:
|
|
38
|
+
padding-left: 4px;
|
|
39
|
+
padding-right: 4px;
|
|
42
40
|
}
|
|
43
41
|
}
|
|
44
42
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/field-input/index.ts"],"sourcesContent":["\nexport * from './YFieldInput';\n"],"mappings":""}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
//
|
|
2
|
+
import { defineComponent, h, withKeys } from 'vue';
|
|
3
|
+
import RebindAttrs from "../../mixins/rebind-attrs.mjs";
|
|
4
|
+
const NAME = 'y-form';
|
|
5
|
+
const rootTags = ['form', 'div', 'section', 'article'];
|
|
6
|
+
export default defineComponent({
|
|
7
|
+
name: NAME,
|
|
8
|
+
inheritAttrs: false,
|
|
9
|
+
mixins: [RebindAttrs],
|
|
10
|
+
provide() {
|
|
11
|
+
return {
|
|
12
|
+
form$: this
|
|
13
|
+
};
|
|
14
|
+
},
|
|
15
|
+
props: {
|
|
16
|
+
tag: {
|
|
17
|
+
type: String,
|
|
18
|
+
default: 'form',
|
|
19
|
+
validator(value) {
|
|
20
|
+
return rootTags.includes(value);
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
loading: Boolean
|
|
24
|
+
},
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
inputs: {},
|
|
28
|
+
formData: {}
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
methods: {
|
|
32
|
+
register(component) {
|
|
33
|
+
const {
|
|
34
|
+
iid,
|
|
35
|
+
name
|
|
36
|
+
} = component;
|
|
37
|
+
// TODO: vue3 에서 $on 제거됨에 따라 트리거 따로 만들어야 함
|
|
38
|
+
this.inputs[iid] = component;
|
|
39
|
+
},
|
|
40
|
+
unregister(component) {
|
|
41
|
+
delete this.inputs[component.iid];
|
|
42
|
+
},
|
|
43
|
+
validate() {
|
|
44
|
+
let flag = true;
|
|
45
|
+
Object.values(this.inputs).forEach(input => {
|
|
46
|
+
const valid = input?.invokeValidators.call(input);
|
|
47
|
+
flag = flag && valid;
|
|
48
|
+
});
|
|
49
|
+
return flag;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
computed: {
|
|
53
|
+
attrs() {
|
|
54
|
+
return {
|
|
55
|
+
...this.attrs_$
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
render() {
|
|
60
|
+
const {
|
|
61
|
+
tag
|
|
62
|
+
} = this;
|
|
63
|
+
// this.attrs_$
|
|
64
|
+
return h(tag, {
|
|
65
|
+
class: NAME,
|
|
66
|
+
'.novalidate': true,
|
|
67
|
+
onSubmit: e => {
|
|
68
|
+
e.preventDefault();
|
|
69
|
+
this.$emit('submit', e, this.formData);
|
|
70
|
+
},
|
|
71
|
+
onKeydown: withKeys(e => {
|
|
72
|
+
e.preventDefault();
|
|
73
|
+
e.stopImmediatePropagation();
|
|
74
|
+
this.$emit('keydown.enter', e);
|
|
75
|
+
}, ['enter'])
|
|
76
|
+
}, this.$slots.default?.());
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=YForm.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YForm.mjs","names":["defineComponent","h","withKeys","RebindAttrs","NAME","rootTags","name","inheritAttrs","mixins","provide","form$","props","tag","type","String","default","validator","value","includes","loading","Boolean","data","inputs","formData","methods","register","component","iid","unregister","validate","flag","Object","values","forEach","input","valid","invokeValidators","call","computed","attrs","attrs_$","render","class","onSubmit","e","preventDefault","$emit","onKeydown","stopImmediatePropagation","$slots"],"sources":["../../../src/components/form/YForm.ts"],"sourcesContent":["\n//\nimport {\n ComponentPublicInstance,\n PropType,\n VNode,\n defineComponent,\n h,\n withKeys,\n} from 'vue';\n\nimport RebindAttrs from '../../mixins/rebind-attrs';\n\nconst NAME = 'y-form';\nconst rootTags = ['form', 'div', 'section', 'article'];\n\nexport default defineComponent({\n name: NAME,\n inheritAttrs: false,\n mixins: [RebindAttrs],\n provide() {\n return {\n form$: this,\n };\n },\n props: {\n tag: {\n type: String as PropType<string>,\n default: 'form',\n validator(value: string) {\n return rootTags.includes(value);\n },\n },\n loading: Boolean,\n },\n data() {\n return {\n inputs: {} as Record<string, ComponentPublicInstance>,\n formData: {} as any,\n };\n },\n methods: {\n register(component: any) {\n const { iid, name } = component;\n // TODO: vue3 에서 $on 제거됨에 따라 트리거 따로 만들어야 함\n this.inputs[iid] = component;\n },\n unregister(component: any) {\n delete this.inputs[component.iid];\n },\n validate(): boolean {\n let flag = true;\n Object.values(this.inputs).forEach((input: any) => {\n const valid = input?.invokeValidators.call(input);\n flag = flag && valid;\n });\n return flag;\n },\n },\n computed: {\n attrs() {\n return {\n ...this.attrs_$,\n };\n },\n },\n render(): VNode {\n const { tag }: any = this;\n // this.attrs_$\n return h(\n tag,\n {\n class: NAME,\n '.novalidate': true,\n onSubmit: (e: Event) => {\n e.preventDefault();\n this.$emit('submit', e, this.formData);\n },\n onKeydown: withKeys(\n (e: Event) => {\n e.preventDefault();\n e.stopImmediatePropagation();\n this.$emit('keydown.enter', e);\n },\n ['enter'],\n ),\n },\n this.$slots.default?.(),\n );\n },\n});\n"],"mappings":"AACA;AACA,SAIEA,eAAe,EACfC,CAAC,EACDC,QAAQ,QACH,KAAK;AAAC,OAENC,WAAW;AAElB,MAAMC,IAAI,GAAG,QAAQ;AACrB,MAAMC,QAAQ,GAAG,CAAC,MAAM,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,CAAC;AAEtD,eAAeL,eAAe,CAAC;EAC7BM,IAAI,EAAEF,IAAI;EACVG,YAAY,EAAE,KAAK;EACnBC,MAAM,EAAE,CAACL,WAAW,CAAC;EACrBM,OAAOA,CAAA,EAAG;IACR,OAAO;MACLC,KAAK,EAAE;IACT,CAAC;EACH,CAAC;EACDC,KAAK,EAAE;IACLC,GAAG,EAAE;MACHC,IAAI,EAAEC,MAA0B;MAChCC,OAAO,EAAE,MAAM;MACfC,SAASA,CAACC,KAAa,EAAE;QACvB,OAAOZ,QAAQ,CAACa,QAAQ,CAACD,KAAK,CAAC;MACjC;IACF,CAAC;IACDE,OAAO,EAAEC;EACX,CAAC;EACDC,IAAIA,CAAA,EAAG;IACL,OAAO;MACLC,MAAM,EAAE,CAAC,CAA4C;MACrDC,QAAQ,EAAE,CAAC;IACb,CAAC;EACH,CAAC;EACDC,OAAO,EAAE;IACPC,QAAQA,CAACC,SAAc,EAAE;MACvB,MAAM;QAAEC,GAAG;QAAErB;MAAK,CAAC,GAAGoB,SAAS;MAC/B;MACA,IAAI,CAACJ,MAAM,CAACK,GAAG,CAAC,GAAGD,SAAS;IAC9B,CAAC;IACDE,UAAUA,CAACF,SAAc,EAAE;MACzB,OAAO,IAAI,CAACJ,MAAM,CAACI,SAAS,CAACC,GAAG,CAAC;IACnC,CAAC;IACDE,QAAQA,CAAA,EAAY;MAClB,IAAIC,IAAI,GAAG,IAAI;MACfC,MAAM,CAACC,MAAM,CAAC,IAAI,CAACV,MAAM,CAAC,CAACW,OAAO,CAAEC,KAAU,IAAK;QACjD,MAAMC,KAAK,GAAGD,KAAK,EAAEE,gBAAgB,CAACC,IAAI,CAACH,KAAK,CAAC;QACjDJ,IAAI,GAAGA,IAAI,IAAIK,KAAK;MACtB,CAAC,CAAC;MACF,OAAOL,IAAI;IACb;EACF,CAAC;EACDQ,QAAQ,EAAE;IACRC,KAAKA,CAAA,EAAG;MACN,OAAO;QACL,GAAG,IAAI,CAACC;MACV,CAAC;IACH;EACF,CAAC;EACDC,MAAMA,CAAA,EAAU;IACd,MAAM;MAAE7B;IAAS,CAAC,GAAG,IAAI;IACzB;IACA,OAAOX,CAAC,CACNW,GAAG,EACH;MACE8B,KAAK,EAAEtC,IAAI;MACX,aAAa,EAAE,IAAI;MACnBuC,QAAQ,EAAGC,CAAQ,IAAK;QACtBA,CAAC,CAACC,cAAc,CAAC,CAAC;QAClB,IAAI,CAACC,KAAK,CAAC,QAAQ,EAAEF,CAAC,EAAE,IAAI,CAACrB,QAAQ,CAAC;MACxC,CAAC;MACDwB,SAAS,EAAE7C,QAAQ,CAChB0C,CAAQ,IAAK;QACZA,CAAC,CAACC,cAAc,CAAC,CAAC;QAClBD,CAAC,CAACI,wBAAwB,CAAC,CAAC;QAC5B,IAAI,CAACF,KAAK,CAAC,eAAe,EAAEF,CAAC,CAAC;MAChC,CAAC,EACD,CAAC,OAAO,CACV;IACF,CAAC,EACD,IAAI,CAACK,MAAM,CAAClC,OAAO,GAAG,CACxB,CAAC;EACH;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["YForm"],"sources":["../../../src/components/form/index.ts"],"sourcesContent":["\nimport YForm from './YForm';\n\nexport { YForm };\n\nexport default YForm;\n"],"mappings":"OACOA,KAAK;AAEZ,SAASA,KAAK;AAEd,eAAeA,KAAK"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { defineComponent } from 'vue';
|
|
3
|
+
export const YIconCheckbox = defineComponent({
|
|
4
|
+
name: 'YIconCheckbox',
|
|
5
|
+
render() {
|
|
6
|
+
return _createVNode("svg", {
|
|
7
|
+
"class": "y-icon-checkbox",
|
|
8
|
+
"xmlns": "http://www.w3.org/2000/svg",
|
|
9
|
+
"width": "24",
|
|
10
|
+
"height": "24"
|
|
11
|
+
}, [_createVNode("path", {
|
|
12
|
+
"class": "y-icon-checkbox__border-path",
|
|
13
|
+
"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"
|
|
14
|
+
}, null), _createVNode("path", {
|
|
15
|
+
"class": "y-icon-checkbox__checkmark-path",
|
|
16
|
+
"fill": "none",
|
|
17
|
+
"d": "M5.73,11.91 11.1,16.28 17.79,7.59"
|
|
18
|
+
}, null)]);
|
|
19
|
+
}
|
|
20
|
+
});
|
|
21
|
+
//# sourceMappingURL=YIconCheckbox.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YIconCheckbox.mjs","names":["defineComponent","YIconCheckbox","name","render","_createVNode"],"sources":["../../../src/components/icons/YIconCheckbox.tsx"],"sourcesContent":["import { defineComponent } from 'vue';\n\nexport const YIconCheckbox = defineComponent({\n name: 'YIconCheckbox',\n render() {\n return (\n <svg\n class=\"y-icon-checkbox\"\n xmlns=\"http://www.w3.org/2000/svg\"\n width=\"24\"\n height=\"24\"\n >\n <path\n class=\"y-icon-checkbox__border-path\"\n 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\"\n />\n <path\n class=\"y-icon-checkbox__checkmark-path\"\n fill=\"none\"\n d=\"M5.73,11.91 11.1,16.28 17.79,7.59\"\n ></path>\n </svg>\n );\n },\n});\n"],"mappings":";AAAA,SAASA,eAAe,QAAQ,KAAK;AAErC,OAAO,MAAMC,aAAa,GAAGD,eAAe,CAAC;EAC3CE,IAAI,EAAE,eAAe;EACrBC,MAAMA,CAAA,EAAG;IACP,OAAAC,YAAA;MAAA,SAEU,iBAAiB;MAAA,SACjB,4BAA4B;MAAA,SAC5B,IAAI;MAAA,UACH;IAAI,IAAAA,YAAA;MAAA,SAGH,8BAA8B;MAAA,KAClC;IAAyN,UAAAA,YAAA;MAAA,SAGrN,iCAAiC;MAAA,QAClC,MAAM;MAAA,KACT;IAAmC;EAI7C;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { defineComponent } from 'vue';
|
|
3
|
+
export const YIconClear = defineComponent({
|
|
4
|
+
name: 'YIconClear',
|
|
5
|
+
setup() {
|
|
6
|
+
return () => _createVNode("svg", {
|
|
7
|
+
"viewBox": "0 0 16 16",
|
|
8
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
9
|
+
}, [_createVNode("path", {
|
|
10
|
+
"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",
|
|
11
|
+
"fill": "currentColor",
|
|
12
|
+
"stroke-miterlimit": "10"
|
|
13
|
+
}, null)]);
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
//# sourceMappingURL=YIconClear.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YIconClear.mjs","names":["defineComponent","YIconClear","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconClear.tsx"],"sourcesContent":["import { defineComponent } from 'vue';\r\n\r\nexport const YIconClear = defineComponent({\r\n name: 'YIconClear',\r\n setup() {\r\n return () => <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>\r\n }\r\n});\r\n"],"mappings":";AAAA,SAASA,eAAe,QAAQ,KAAK;AAErC,OAAO,MAAMC,UAAU,GAAGD,eAAe,CAAC;EACxCE,IAAI,EAAE,YAAY;EAClBC,KAAKA,CAAA,EAAG;IACN,OAAO,MAAAC,YAAA;MAAA,WAAmB,WAAW;MAAA,SAAO;IAA4B,IAAAA,YAAA;MAAA,KAAS,sbAAsb;MAAA,QAAM,cAAc;MAAA,qBAAmB;IAAI,UAAS;EAC7jB;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createVNode as _createVNode } from "vue";
|
|
2
|
+
import { defineComponent } from 'vue';
|
|
3
|
+
export const YIconExpand = defineComponent({
|
|
4
|
+
name: 'YIconExpand',
|
|
5
|
+
setup() {
|
|
6
|
+
return () => _createVNode("svg", {
|
|
7
|
+
"version": "1.1",
|
|
8
|
+
"viewBox": "0 0 32 32",
|
|
9
|
+
"xmlns": "http://www.w3.org/2000/svg"
|
|
10
|
+
}, [_createVNode("path", {
|
|
11
|
+
"d": "m9.6086 5.7953 13.557 10.269-13.557 10.141",
|
|
12
|
+
"fill": "none",
|
|
13
|
+
"stroke": "currentColor",
|
|
14
|
+
"stroke-linecap": "round",
|
|
15
|
+
"stroke-linejoin": "round",
|
|
16
|
+
"stroke-width": "4.1024"
|
|
17
|
+
}, null)]);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=YIconExpand.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"YIconExpand.mjs","names":["defineComponent","YIconExpand","name","setup","_createVNode"],"sources":["../../../src/components/icons/YIconExpand.tsx"],"sourcesContent":["import { defineComponent } from 'vue';\r\n\r\nexport const YIconExpand = defineComponent({\r\n name: 'YIconExpand',\r\n setup() {\r\n return () => (\r\n <svg version=\"1.1\" viewBox=\"0 0 32 32\" xmlns=\"http://www.w3.org/2000/svg\">\r\n <path\r\n d=\"m9.6086 5.7953 13.557 10.269-13.557 10.141\"\r\n fill=\"none\"\r\n stroke=\"currentColor\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n stroke-width=\"4.1024\"\r\n />\r\n </svg>\r\n );\r\n },\r\n});\r\n"],"mappings":";AAAA,SAASA,eAAe,QAAQ,KAAK;AAErC,OAAO,MAAMC,WAAW,GAAGD,eAAe,CAAC;EACzCE,IAAI,EAAE,aAAa;EACnBC,KAAKA,CAAA,EAAG;IACN,OAAO,MAAAC,YAAA;MAAA,WACQ,KAAK;MAAA,WAAS,WAAW;MAAA,SAAO;IAA4B,IAAAA,YAAA;MAAA,KAEnE,4CAA4C;MAAA,QACzC,MAAM;MAAA,UACJ,cAAc;MAAA,kBACN,OAAO;MAAA,mBACN,OAAO;MAAA,gBACV;IAAQ,UAG1B;EACH;AACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../../src/components/icons/index.ts"],"sourcesContent":["export * from './YIconExpand';\nexport * from './YIconClear';\nexport * from './YIconCheckbox';\n"],"mappings":""}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export * from "./app/index.mjs";
|
|
2
|
+
export * from "./button/index.mjs";
|
|
3
|
+
export * from "./input/index.mjs";
|
|
4
|
+
export * from "./field-input/index.mjs";
|
|
5
|
+
export * from "./form/index.mjs";
|
|
6
|
+
export * from "./progress-bar/index.mjs";
|
|
7
|
+
export * from "./card/index.mjs";
|
|
8
|
+
export * from "./chip/index.mjs";
|
|
9
|
+
export * from "./switch/index.mjs";
|
|
10
|
+
export * from "./layer/index.mjs";
|
|
11
|
+
export * from "./dialog/index.mjs";
|
|
12
|
+
export * from "./snackbar/index.mjs";
|
|
13
|
+
export * from "./tooltip/index.mjs";
|
|
14
|
+
export * from "./transitions/index.mjs";
|
|
15
|
+
export * from "./panel/index.mjs";
|
|
16
|
+
export * from "./tree-view/index.mjs";
|
|
17
|
+
export * from "./list/index.mjs";
|
|
18
|
+
export * from "./icons/index.mjs";
|
|
19
|
+
export * from "./table/index.mjs";
|
|
20
|
+
export * from "./menu/index.mjs";
|
|
21
|
+
export * from "./checkbox/index.mjs";
|
|
22
|
+
export * from "./pagination/index.mjs";
|
|
23
|
+
export * from "./loading/index.mjs";
|
|
24
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","names":[],"sources":["../../src/components/index.ts"],"sourcesContent":["export * from './app';\nexport * from './button';\nexport * from './input';\nexport * from './field-input';\nexport * from './form';\nexport * from './progress-bar';\nexport * from './card';\nexport * from './chip';\nexport * from './switch';\nexport * from './layer';\nexport * from './dialog';\nexport * from './snackbar';\nexport * from './tooltip';\nexport * from './transitions';\nexport * from './panel';\nexport * from './tree-view';\nexport * from './list';\nexport * from './icons';\nexport * from './table';\nexport * from './menu';\nexport * from './checkbox';\nexport * from './pagination';\nexport * from './loading';\n"],"mappings":""}
|