@toife/vue 3.1.6 → 3.2.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/README.md +1 -52
- package/dist/components/action/action.composable.d.ts +44 -0
- package/dist/components/action/action.vue.d.ts +16 -0
- package/dist/components/action/index.d.ts +2 -0
- package/dist/components/app/app.vue.d.ts +11 -0
- package/dist/components/app/index.d.ts +1 -0
- package/dist/components/avatar/avatar.vue.d.ts +8 -0
- package/dist/components/avatar/index.d.ts +1 -0
- package/dist/components/button/button.vue.d.ts +9 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/cable/cable.vue.d.ts +6 -0
- package/dist/components/cable/index.d.ts +1 -0
- package/dist/components/card/card/card.vue.d.ts +7 -0
- package/dist/components/card/card/index.d.ts +1 -0
- package/dist/components/card/card-body/card-body.vue.d.ts +2 -0
- package/dist/components/card/card-body/index.d.ts +1 -0
- package/dist/components/card/card-footer/card-footer.vue.d.ts +2 -0
- package/dist/components/card/card-footer/index.d.ts +1 -0
- package/dist/components/card/card-header/card-header.vue.d.ts +2 -0
- package/dist/components/card/card-header/index.d.ts +1 -0
- package/dist/components/card/index.d.ts +4 -0
- package/dist/components/checkbox/checkbox.vue.d.ts +18 -0
- package/dist/components/checkbox/index.d.ts +1 -0
- package/dist/components/collapse/collapse.vue.d.ts +12 -0
- package/dist/components/collapse/index.d.ts +1 -0
- package/dist/components/container/container.vue.d.ts +2 -0
- package/dist/components/container/index.d.ts +1 -0
- package/dist/components/decision-modal/decision-modal.composable.d.ts +46 -0
- package/dist/components/decision-modal/decision-modal.vue.d.ts +16 -0
- package/dist/components/decision-modal/index.d.ts +2 -0
- package/dist/components/divider/divider.vue.d.ts +5 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/dropdown/dropdown.vue.d.ts +20 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/field/field.vue.d.ts +30 -0
- package/dist/components/field/index.d.ts +1 -0
- package/dist/components/form-group/form-group.vue.d.ts +5 -0
- package/dist/components/form-group/index.d.ts +1 -0
- package/dist/components/gesture-indicator/gesture-indicator.vue.d.ts +6 -0
- package/dist/components/gesture-indicator/index.d.ts +1 -0
- package/dist/components/image/image.vue.d.ts +3 -0
- package/dist/components/image/index.d.ts +1 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components/layout/flex/flex.vue.d.ts +5 -0
- package/dist/components/layout/flex/index.d.ts +1 -0
- package/dist/components/layout/flex-item/flex-item.vue.d.ts +5 -0
- package/dist/components/layout/flex-item/index.d.ts +1 -0
- package/dist/components/layout/grid/grid.vue.d.ts +5 -0
- package/dist/components/layout/grid/index.d.ts +1 -0
- package/dist/components/layout/grid-item/grid-item.vue.d.ts +5 -0
- package/dist/components/layout/grid-item/index.d.ts +1 -0
- package/dist/components/layout/index.d.ts +4 -0
- package/dist/components/modal/index.d.ts +1 -0
- package/dist/components/modal/modal.vue.d.ts +17 -0
- package/dist/components/page/index.d.ts +1 -0
- package/dist/components/page/page.vue.d.ts +2 -0
- package/dist/components/present/index.d.ts +2 -0
- package/dist/components/present/present.composable.d.ts +5 -0
- package/dist/components/present/present.vue.d.ts +18 -0
- package/dist/components/radio/index.d.ts +2 -0
- package/dist/components/radio/radio/index.d.ts +1 -0
- package/dist/components/radio/radio/radio.vue.d.ts +7 -0
- package/dist/components/radio/radio-group/index.d.ts +1 -0
- package/dist/components/radio/radio-group/radio-group.vue.d.ts +13 -0
- package/dist/components/refresher/index.d.ts +1 -0
- package/dist/components/refresher/refresher.vue.d.ts +12 -0
- package/dist/components/route/index.d.ts +5 -0
- package/dist/components/route/route-navigator/index.d.ts +1 -0
- package/dist/components/route/route-navigator/route-navigator.vue.d.ts +11 -0
- package/dist/components/route/route-outlet/index.d.ts +1 -0
- package/dist/components/route/route-outlet/route-outlet.vue.d.ts +5 -0
- package/dist/components/route/route-provider/index.d.ts +1 -0
- package/dist/components/route/route-provider/route-provider.vue.d.ts +3 -0
- package/dist/components/route/route-wrapper/index.d.ts +2 -0
- package/dist/components/route/route-wrapper/route-wrapper.composable.d.ts +6 -0
- package/dist/components/route/route-wrapper/route-wrapper.vue.d.ts +5 -0
- package/dist/components/route/route.util.d.ts +3 -0
- package/dist/components/segmented-field/index.d.ts +1 -0
- package/dist/components/segmented-field/segmented-field.vue.d.ts +28 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/select/select.vue.d.ts +19 -0
- package/dist/components/skeleton/index.d.ts +1 -0
- package/dist/components/skeleton/skeleton.vue.d.ts +6 -0
- package/dist/components/slide-range/index.d.ts +1 -0
- package/dist/components/slide-range/slide-range.vue.d.ts +18 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/switch/switch.vue.d.ts +13 -0
- package/dist/components/tabs/index.d.ts +2 -0
- package/dist/components/tabs/tab/index.d.ts +1 -0
- package/dist/components/tabs/tab/tab.vue.d.ts +5 -0
- package/dist/components/tabs/tabs/index.d.ts +1 -0
- package/dist/components/tabs/tabs/tabs.vue.d.ts +14 -0
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/tag.vue.d.ts +6 -0
- package/dist/components/toast/index.d.ts +3 -0
- package/dist/components/toast/toast/index.d.ts +1 -0
- package/dist/components/toast/toast/toast.vue.d.ts +5 -0
- package/dist/components/toast/toast-content/index.d.ts +1 -0
- package/dist/components/toast/toast-content/toast-content.vue.d.ts +11 -0
- package/dist/components/toast/toast.composable.d.ts +22 -0
- package/dist/components/toolbar/index.d.ts +1 -0
- package/dist/components/toolbar/toolbar.vue.d.ts +7 -0
- package/dist/factory.d.ts +38 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.es.js +3498 -0
- package/dist/index.umd.js +1 -0
- package/dist/shared/provider-state.d.ts +5 -0
- package/dist/styles/action.css +1 -0
- package/dist/styles/app.css +1 -0
- package/dist/styles/avatar.css +1 -0
- package/dist/styles/button.css +1 -0
- package/dist/styles/cable.css +1 -0
- package/dist/styles/card-body.css +1 -0
- package/dist/styles/card-footer.css +1 -0
- package/dist/styles/card-header.css +1 -0
- package/dist/styles/card.css +1 -0
- package/dist/styles/checkbox.css +1 -0
- package/dist/styles/collapse.css +1 -0
- package/dist/styles/container.css +1 -0
- package/dist/styles/decision-modal.css +1 -0
- package/dist/styles/divider.css +1 -0
- package/dist/styles/dropdown.css +1 -0
- package/dist/styles/field.css +1 -0
- package/dist/styles/flex-item.css +1 -0
- package/dist/styles/flex.css +1 -0
- package/dist/styles/form-group.css +1 -0
- package/dist/styles/gesture-indicator.css +1 -0
- package/dist/styles/grid-item.css +1 -0
- package/dist/styles/grid.css +1 -0
- package/dist/styles/index.css +40 -0
- package/dist/styles/modal.css +1 -0
- package/dist/styles/page.css +1 -0
- package/dist/styles/present.css +1 -0
- package/dist/styles/radio-group.css +1 -0
- package/dist/styles/radio.css +1 -0
- package/dist/styles/refresher.css +1 -0
- package/dist/styles/route-navigator.css +1 -0
- package/dist/styles/segmented-field.css +1 -0
- package/dist/styles/select.css +1 -0
- package/dist/styles/skeleton.css +1 -0
- package/dist/styles/slide-range.css +1 -0
- package/dist/styles/switch.css +1 -0
- package/dist/styles/tab.css +1 -0
- package/dist/styles/tabs.css +1 -0
- package/dist/styles/tag.css +1 -0
- package/dist/styles/toast-content.css +1 -0
- package/dist/styles/toast.css +1 -0
- package/dist/styles/toolbar.css +1 -0
- package/dist/types.d.ts +4 -0
- package/package.json +23 -13
- package/src/components/action/action.composable.ts +0 -32
- package/src/components/action/action.html +0 -25
- package/src/components/action/action.scss +0 -106
- package/src/components/action/action.type.ts +0 -44
- package/src/components/action/action.vue +0 -72
- package/src/components/action/index.ts +0 -9
- package/src/components/app/app.constants.ts +0 -1
- package/src/components/app/app.html +0 -24
- package/src/components/app/app.scss +0 -27
- package/src/components/app/app.type.ts +0 -30
- package/src/components/app/app.vue +0 -46
- package/src/components/app/index.ts +0 -3
- package/src/components/avatar/avatar.html +0 -3
- package/src/components/avatar/avatar.scss +0 -45
- package/src/components/avatar/avatar.type.ts +0 -8
- package/src/components/avatar/avatar.vue +0 -44
- package/src/components/avatar/index.ts +0 -2
- package/src/components/button/button.html +0 -6
- package/src/components/button/button.scss +0 -124
- package/src/components/button/button.type.ts +0 -14
- package/src/components/button/button.vue +0 -61
- package/src/components/button/index.ts +0 -2
- package/src/components/cable/cable.constants.ts +0 -1
- package/src/components/cable/cable.html +0 -3
- package/src/components/cable/cable.scss +0 -37
- package/src/components/cable/cable.type.ts +0 -11
- package/src/components/cable/cable.vue +0 -33
- package/src/components/cable/index.ts +0 -3
- package/src/components/card/card/card.constants.ts +0 -1
- package/src/components/card/card/card.html +0 -3
- package/src/components/card/card/card.scss +0 -37
- package/src/components/card/card/card.type.ts +0 -14
- package/src/components/card/card/card.vue +0 -62
- package/src/components/card/card/index.ts +0 -3
- package/src/components/card/card-body/card-body.html +0 -3
- package/src/components/card/card-body/card-body.scss +0 -23
- package/src/components/card/card-body/card-body.vue +0 -9
- package/src/components/card/card-body/index.ts +0 -1
- package/src/components/card/card-footer/card-footer.html +0 -3
- package/src/components/card/card-footer/card-footer.scss +0 -32
- package/src/components/card/card-footer/card-footer.vue +0 -25
- package/src/components/card/card-footer/index.ts +0 -1
- package/src/components/card/card-header/card-header.html +0 -3
- package/src/components/card/card-header/card-header.scss +0 -32
- package/src/components/card/card-header/card-header.vue +0 -25
- package/src/components/card/card-header/index.ts +0 -1
- package/src/components/card/index.ts +0 -4
- package/src/components/checkbox/checkbox.html +0 -12
- package/src/components/checkbox/checkbox.scss +0 -150
- package/src/components/checkbox/checkbox.type.ts +0 -19
- package/src/components/checkbox/checkbox.vue +0 -80
- package/src/components/checkbox/index.ts +0 -2
- package/src/components/collapse/collapse.html +0 -16
- package/src/components/collapse/collapse.scss +0 -56
- package/src/components/collapse/collapse.type.ts +0 -11
- package/src/components/collapse/collapse.vue +0 -127
- package/src/components/collapse/index.ts +0 -2
- package/src/components/container/container.html +0 -1
- package/src/components/container/container.scss +0 -10
- package/src/components/container/container.vue +0 -10
- package/src/components/container/index.ts +0 -1
- package/src/components/decision-modal/decision-modal.composable.ts +0 -33
- package/src/components/decision-modal/decision-modal.html +0 -29
- package/src/components/decision-modal/decision-modal.scss +0 -144
- package/src/components/decision-modal/decision-modal.type.ts +0 -35
- package/src/components/decision-modal/decision-modal.vue +0 -96
- package/src/components/decision-modal/index.ts +0 -9
- package/src/components/divider/divider.html +0 -1
- package/src/components/divider/divider.scss +0 -29
- package/src/components/divider/divider.type.ts +0 -6
- package/src/components/divider/divider.vue +0 -31
- package/src/components/divider/index.ts +0 -2
- package/src/components/dropdown/dropdown.html +0 -6
- package/src/components/dropdown/dropdown.scss +0 -71
- package/src/components/dropdown/dropdown.type.ts +0 -22
- package/src/components/dropdown/dropdown.vue +0 -111
- package/src/components/dropdown/index.ts +0 -2
- package/src/components/field/field.html +0 -31
- package/src/components/field/field.scss +0 -184
- package/src/components/field/field.type.ts +0 -43
- package/src/components/field/field.vue +0 -123
- package/src/components/field/index.ts +0 -2
- package/src/components/form-group/form-group.html +0 -3
- package/src/components/form-group/form-group.scss +0 -91
- package/src/components/form-group/form-group.type.ts +0 -5
- package/src/components/form-group/form-group.vue +0 -21
- package/src/components/form-group/index.ts +0 -2
- package/src/components/gesture-indicator/gesture-indicator.html +0 -1
- package/src/components/gesture-indicator/gesture-indicator.scss +0 -47
- package/src/components/gesture-indicator/gesture-indicator.type.ts +0 -5
- package/src/components/gesture-indicator/gesture-indicator.vue +0 -31
- package/src/components/gesture-indicator/index.ts +0 -1
- package/src/components/image/image.html +0 -1
- package/src/components/image/image.type.ts +0 -5
- package/src/components/image/image.vue +0 -29
- package/src/components/image/index.ts +0 -2
- package/src/components/index.ts +0 -31
- package/src/components/layout/flex/flex.html +0 -1
- package/src/components/layout/flex/flex.scss +0 -57
- package/src/components/layout/flex/flex.type.ts +0 -15
- package/src/components/layout/flex/flex.vue +0 -34
- package/src/components/layout/flex/index.ts +0 -2
- package/src/components/layout/flex-item/flex-item.html +0 -1
- package/src/components/layout/flex-item/flex-item.scss +0 -48
- package/src/components/layout/flex-item/flex-item.type.ts +0 -11
- package/src/components/layout/flex-item/flex-item.vue +0 -27
- package/src/components/layout/flex-item/index.ts +0 -2
- package/src/components/layout/grid/grid.html +0 -1
- package/src/components/layout/grid/grid.scss +0 -51
- package/src/components/layout/grid/grid.type.ts +0 -12
- package/src/components/layout/grid/grid.vue +0 -32
- package/src/components/layout/grid/index.ts +0 -2
- package/src/components/layout/grid-item/grid-item.html +0 -1
- package/src/components/layout/grid-item/grid-item.scss +0 -49
- package/src/components/layout/grid-item/grid-item.type.ts +0 -14
- package/src/components/layout/grid-item/grid-item.vue +0 -27
- package/src/components/layout/grid-item/index.ts +0 -2
- package/src/components/layout/index.ts +0 -4
- package/src/components/modal/index.ts +0 -2
- package/src/components/modal/modal.html +0 -20
- package/src/components/modal/modal.scss +0 -80
- package/src/components/modal/modal.type.ts +0 -21
- package/src/components/modal/modal.vue +0 -251
- package/src/components/page/index.ts +0 -1
- package/src/components/page/page.html +0 -3
- package/src/components/page/page.scss +0 -17
- package/src/components/page/page.vue +0 -10
- package/src/components/present/index.ts +0 -3
- package/src/components/present/present.composable.ts +0 -22
- package/src/components/present/present.html +0 -9
- package/src/components/present/present.scss +0 -81
- package/src/components/present/present.type.ts +0 -26
- package/src/components/present/present.vue +0 -198
- package/src/components/radio/index.ts +0 -2
- package/src/components/radio/radio/index.ts +0 -2
- package/src/components/radio/radio/radio.html +0 -11
- package/src/components/radio/radio/radio.scss +0 -142
- package/src/components/radio/radio/radio.type.ts +0 -13
- package/src/components/radio/radio/radio.vue +0 -87
- package/src/components/radio/radio-group/index.ts +0 -7
- package/src/components/radio/radio-group/radio-group.constants.ts +0 -1
- package/src/components/radio/radio-group/radio-group.html +0 -3
- package/src/components/radio/radio-group/radio-group.scss +0 -16
- package/src/components/radio/radio-group/radio-group.type.ts +0 -28
- package/src/components/radio/radio-group/radio-group.vue +0 -57
- package/src/components/refresher/index.ts +0 -2
- package/src/components/refresher/refresher.html +0 -3
- package/src/components/refresher/refresher.scss +0 -18
- package/src/components/refresher/refresher.type.ts +0 -16
- package/src/components/refresher/refresher.vue +0 -123
- package/src/components/route/index.ts +0 -5
- package/src/components/route/route-navigator/index.ts +0 -2
- package/src/components/route/route-navigator/route-navigator.html +0 -19
- package/src/components/route/route-navigator/route-navigator.scss +0 -127
- package/src/components/route/route-navigator/route-navigator.type.ts +0 -36
- package/src/components/route/route-navigator/route-navigator.vue +0 -275
- package/src/components/route/route-outlet/index.ts +0 -1
- package/src/components/route/route-outlet/route-outlet.html +0 -1
- package/src/components/route/route-outlet/route-outlet.vue +0 -39
- package/src/components/route/route-provider/index.ts +0 -3
- package/src/components/route/route-provider/route-provider.constant.ts +0 -1
- package/src/components/route/route-provider/route-provider.html +0 -1
- package/src/components/route/route-provider/route-provider.type.ts +0 -10
- package/src/components/route/route-provider/route-provider.vue +0 -20
- package/src/components/route/route-wrapper/index.ts +0 -3
- package/src/components/route/route-wrapper/route-wrapper.composable.ts +0 -49
- package/src/components/route/route-wrapper/route-wrapper.html +0 -3
- package/src/components/route/route-wrapper/route-wrapper.type.ts +0 -3
- package/src/components/route/route-wrapper/route-wrapper.vue +0 -45
- package/src/components/route/route.type.ts +0 -7
- package/src/components/route/route.util.ts +0 -9
- package/src/components/segmented-field/index.ts +0 -7
- package/src/components/segmented-field/segmented-field.html +0 -17
- package/src/components/segmented-field/segmented-field.scss +0 -53
- package/src/components/segmented-field/segmented-field.type.ts +0 -29
- package/src/components/segmented-field/segmented-field.vue +0 -145
- package/src/components/select/index.ts +0 -2
- package/src/components/select/select.html +0 -29
- package/src/components/select/select.scss +0 -129
- package/src/components/select/select.type.ts +0 -45
- package/src/components/select/select.vue +0 -119
- package/src/components/skeleton/index.ts +0 -2
- package/src/components/skeleton/skeleton.html +0 -1
- package/src/components/skeleton/skeleton.scss +0 -52
- package/src/components/skeleton/skeleton.type.ts +0 -7
- package/src/components/skeleton/skeleton.vue +0 -38
- package/src/components/slide-range/index.ts +0 -2
- package/src/components/slide-range/slide-range.html +0 -19
- package/src/components/slide-range/slide-range.scss +0 -164
- package/src/components/slide-range/slide-range.type.ts +0 -16
- package/src/components/slide-range/slide-range.vue +0 -230
- package/src/components/switch/index.ts +0 -2
- package/src/components/switch/switch.html +0 -14
- package/src/components/switch/switch.scss +0 -128
- package/src/components/switch/switch.type.ts +0 -17
- package/src/components/switch/switch.vue +0 -97
- package/src/components/tabs/index.ts +0 -2
- package/src/components/tabs/tab/index.ts +0 -2
- package/src/components/tabs/tab/tab.html +0 -5
- package/src/components/tabs/tab/tab.scss +0 -13
- package/src/components/tabs/tab/tab.type.ts +0 -5
- package/src/components/tabs/tab/tab.vue +0 -40
- package/src/components/tabs/tabs/index.ts +0 -10
- package/src/components/tabs/tabs/tabs.constants.ts +0 -1
- package/src/components/tabs/tabs/tabs.html +0 -3
- package/src/components/tabs/tabs/tabs.scss +0 -337
- package/src/components/tabs/tabs/tabs.type.ts +0 -38
- package/src/components/tabs/tabs/tabs.vue +0 -177
- package/src/components/toast/index.ts +0 -4
- package/src/components/toast/toast/index.ts +0 -1
- package/src/components/toast/toast/toast.html +0 -9
- package/src/components/toast/toast/toast.scss +0 -61
- package/src/components/toast/toast/toast.vue +0 -34
- package/src/components/toast/toast-content/index.ts +0 -1
- package/src/components/toast/toast-content/toast-content.html +0 -1
- package/src/components/toast/toast-content/toast-content.scss +0 -42
- package/src/components/toast/toast-content/toast-content.vue +0 -53
- package/src/components/toast/toast.composable.ts +0 -22
- package/src/components/toast/toast.type.ts +0 -25
- package/src/components/toolbar/index.ts +0 -2
- package/src/components/toolbar/toolbar.html +0 -3
- package/src/components/toolbar/toolbar.scss +0 -64
- package/src/components/toolbar/toolbar.type.ts +0 -7
- package/src/components/toolbar/toolbar.vue +0 -41
- package/src/env.d.ts +0 -7
- package/src/factory.ts +0 -152
- package/src/index.ts +0 -4
- package/src/type.ts +0 -4
- package/src/utils/element.md +0 -33
- package/src/utils/element.ts +0 -22
- package/src/utils/events.md +0 -29
- package/src/utils/events.ts +0 -18
- package/src/utils/index.ts +0 -3
- package/src/utils/style/index.ts +0 -57
- package/src/utils/style.md +0 -49
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
@use "@toife/sass-layer" as sass;
|
|
2
|
-
|
|
3
|
-
// Class name
|
|
4
|
-
$field: sass.fn-naming-prefix("field");
|
|
5
|
-
$field-content: sass.fn-naming-prefix("field-content");
|
|
6
|
-
$field-input: sass.fn-naming-prefix("field-input");
|
|
7
|
-
$field-message: sass.fn-naming-prefix("field-message");
|
|
8
|
-
$field-help: sass.fn-naming-prefix("field-help");
|
|
9
|
-
|
|
10
|
-
// Property name - layer: field
|
|
11
|
-
$field-border-color: sass.fn-naming-var("field", "border-color");
|
|
12
|
-
$field-border-color-focus: sass.fn-naming-var("field", "border-color", "focus");
|
|
13
|
-
$field-border-color-hover: sass.fn-naming-var("field", "border-color", "hover");
|
|
14
|
-
$field-border-color-active: sass.fn-naming-var("field", "border-color", "active");
|
|
15
|
-
$field-border-color-disabled: sass.fn-naming-var("field", "border-color", "disabled");
|
|
16
|
-
$field-background-color: sass.fn-naming-var("field", "background-color");
|
|
17
|
-
$field-color: sass.fn-naming-var("field", "color");
|
|
18
|
-
$field-placeholder-color: sass.fn-naming-var("field", "placeholder-color");
|
|
19
|
-
$field-help-color: sass.fn-naming-var("field", "help-color");
|
|
20
|
-
$field-line: sass.fn-naming-var("field", "line");
|
|
21
|
-
$field-max-line: sass.fn-naming-var("field", "max-line");
|
|
22
|
-
|
|
23
|
-
$radius-ratio: sass.fn-naming-var("radius-ratio");
|
|
24
|
-
$radius-size: sass.fn-naming-var("radius-size");
|
|
25
|
-
$border-width: sass.fn-naming-var("stroke", "width");
|
|
26
|
-
|
|
27
|
-
$spacing-x: sass.fn-naming-var("spacing", "x");
|
|
28
|
-
$spacing-y: sass.fn-naming-var("spacing", "y");
|
|
29
|
-
|
|
30
|
-
$size-font-size: sass.fn-naming-var("font-size");
|
|
31
|
-
$size-control-block-size: sass.fn-naming-var("control-block-size");
|
|
32
|
-
$size-coefficient-x: sass.fn-naming-var("coefficient-x");
|
|
33
|
-
$size-coefficient-y: sass.fn-naming-var("coefficient-y");
|
|
34
|
-
$size-line-height: sass.fn-naming-var("line-height");
|
|
35
|
-
|
|
36
|
-
$transition-duration: sass.fn-naming-var("duration");
|
|
37
|
-
|
|
38
|
-
$direction-text-align: sass.fn-naming-var("text-align");
|
|
39
|
-
$direction-justify-content: sass.fn-naming-var("justify-content");
|
|
40
|
-
|
|
41
|
-
.#{$field} {
|
|
42
|
-
width: 100%;
|
|
43
|
-
box-shadow: none !important;
|
|
44
|
-
|
|
45
|
-
// Field
|
|
46
|
-
.#{$field-content} {
|
|
47
|
-
transition:
|
|
48
|
-
box-shadow #{$transition-duration} ease,
|
|
49
|
-
border-color #{$transition-duration} ease,
|
|
50
|
-
background-color #{$transition-duration} ease,
|
|
51
|
-
color #{$transition-duration} ease,
|
|
52
|
-
border-radius #{$transition-duration} ease;
|
|
53
|
-
border-color: rgba(#{$field-border-color});
|
|
54
|
-
border-radius: calc(min(#{$size-control-block-size}, #{$radius-size}) * #{$radius-ratio});
|
|
55
|
-
border-width: #{$border-width};
|
|
56
|
-
border-style: solid;
|
|
57
|
-
overflow: hidden;
|
|
58
|
-
line-height: 0;
|
|
59
|
-
height: fit-content;
|
|
60
|
-
position: relative;
|
|
61
|
-
display: flex;
|
|
62
|
-
justify-content: center;
|
|
63
|
-
align-items: center;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
// Native password <input> (single node, not wrapped).
|
|
67
|
-
input.#{$field-input} {
|
|
68
|
-
padding: calc(#{$spacing-y} * #{$size-coefficient-y})
|
|
69
|
-
calc(#{$spacing-x} * #{$size-coefficient-x});
|
|
70
|
-
position: relative;
|
|
71
|
-
background-color: transparent;
|
|
72
|
-
z-index: 2;
|
|
73
|
-
min-height: calc(#{$field-line} * #{$size-control-block-size} - 2 * #{$border-width});
|
|
74
|
-
max-height: calc(#{$field-max-line} * #{$size-control-block-size} - 2 * #{$border-width});
|
|
75
|
-
box-sizing: border-box;
|
|
76
|
-
width: 100%;
|
|
77
|
-
flex: 1;
|
|
78
|
-
color: rgba(#{$field-color});
|
|
79
|
-
caret-color: rgba(#{$field-color});
|
|
80
|
-
border: none;
|
|
81
|
-
-webkit-user-select: text;
|
|
82
|
-
user-select: text;
|
|
83
|
-
font-size: #{$size-font-size};
|
|
84
|
-
line-height: #{$size-line-height};
|
|
85
|
-
overflow: auto;
|
|
86
|
-
transition:
|
|
87
|
-
box-shadow #{$transition-duration} ease,
|
|
88
|
-
border-color #{$transition-duration} ease,
|
|
89
|
-
background-color #{$transition-duration} ease,
|
|
90
|
-
color #{$transition-duration} ease,
|
|
91
|
-
border-radius #{$transition-duration} ease;
|
|
92
|
-
|
|
93
|
-
// Firefox
|
|
94
|
-
-moz-appearance: textfield;
|
|
95
|
-
appearance: textfield;
|
|
96
|
-
|
|
97
|
-
// Chrome, Edge, Safari
|
|
98
|
-
&::-webkit-outer-spin-button,
|
|
99
|
-
&::-webkit-inner-spin-button {
|
|
100
|
-
-webkit-appearance: none;
|
|
101
|
-
margin: 0;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
&:focus,
|
|
105
|
-
&:active,
|
|
106
|
-
&:hover {
|
|
107
|
-
outline: none;
|
|
108
|
-
border: none;
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&::placeholder {
|
|
112
|
-
color: rgba(#{$field-placeholder-color});
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
// Message
|
|
117
|
-
.#{$field-message} {
|
|
118
|
-
color: rgba(#{$field-background-color});
|
|
119
|
-
font-size: 0.9em;
|
|
120
|
-
line-height: 1.5;
|
|
121
|
-
transition:
|
|
122
|
-
box-shadow #{$transition-duration} ease,
|
|
123
|
-
border-color #{$transition-duration} ease,
|
|
124
|
-
background-color #{$transition-duration} ease,
|
|
125
|
-
color #{$transition-duration} ease,
|
|
126
|
-
border-radius #{$transition-duration} ease;
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
// Help
|
|
130
|
-
.#{$field-help} {
|
|
131
|
-
color: rgba(#{$field-help-color});
|
|
132
|
-
font-size: 0.8em;
|
|
133
|
-
line-height: 1.5;
|
|
134
|
-
transition:
|
|
135
|
-
box-shadow #{$transition-duration} ease,
|
|
136
|
-
border-color #{$transition-duration} ease,
|
|
137
|
-
background-color #{$transition-duration} ease,
|
|
138
|
-
color #{$transition-duration} ease,
|
|
139
|
-
border-radius #{$transition-duration} ease;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
&.focus {
|
|
143
|
-
.#{$field-content} {
|
|
144
|
-
border-color: rgba(#{$field-border-color-focus});
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
&.shadow {
|
|
148
|
-
.#{$field-content} {
|
|
149
|
-
box-shadow: 0 0 0 0.25rem rgba(#{$field-border-color-focus}, 0.25);
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
&:not(.shadow) {
|
|
154
|
-
.#{$field-content} {
|
|
155
|
-
box-shadow: 0 0 0 calc(#{$border-width} * 1.5) rgba(#{$field-border-color-focus});
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
&.hover {
|
|
161
|
-
.#{$field-content} {
|
|
162
|
-
border-color: rgba(#{$field-border-color-hover});
|
|
163
|
-
}
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
&.disabled {
|
|
167
|
-
opacity: 0.5;
|
|
168
|
-
cursor: not-allowed;
|
|
169
|
-
input.#{$field-input} {
|
|
170
|
-
cursor: not-allowed;
|
|
171
|
-
-webkit-user-select: none;
|
|
172
|
-
user-select: none;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
.#{$field-content} {
|
|
176
|
-
border-color: rgba(#{$field-border-color-disabled});
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
// Direction
|
|
181
|
-
input.#{$field-input} {
|
|
182
|
-
text-align: #{$direction-text-align};
|
|
183
|
-
}
|
|
184
|
-
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type { AppDirection } from "../app";
|
|
2
|
-
|
|
3
|
-
export type FieldVariant = "outline" | "fill" | "underline";
|
|
4
|
-
export type FieldSize = string;
|
|
5
|
-
export type FieldType = "text" | "number" | "email" | "password" | "tel" | "url" | "paragraph";
|
|
6
|
-
|
|
7
|
-
// Type definitions
|
|
8
|
-
export type FieldProps = {
|
|
9
|
-
// Wrapper
|
|
10
|
-
modelValue?: string | number;
|
|
11
|
-
name?: string;
|
|
12
|
-
variant?: FieldVariant;
|
|
13
|
-
role?: string;
|
|
14
|
-
shape?: string;
|
|
15
|
-
size?: FieldSize;
|
|
16
|
-
shadow?: boolean;
|
|
17
|
-
direction?: AppDirection;
|
|
18
|
-
|
|
19
|
-
// Input
|
|
20
|
-
id?: string;
|
|
21
|
-
value?: string | number;
|
|
22
|
-
placeholder?: string;
|
|
23
|
-
disabled?: boolean;
|
|
24
|
-
readonly?: boolean;
|
|
25
|
-
autocomplete?: string;
|
|
26
|
-
maxLength?: number | string;
|
|
27
|
-
tabindex?: number | string;
|
|
28
|
-
type?: FieldType;
|
|
29
|
-
line?: number | string;
|
|
30
|
-
maxLine?: number | string;
|
|
31
|
-
|
|
32
|
-
// Support
|
|
33
|
-
message?: string;
|
|
34
|
-
help?: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export type FieldEmit = {
|
|
38
|
-
(e: "update:modelValue", value: string): void;
|
|
39
|
-
(e: "focus", ev: FocusEvent): void;
|
|
40
|
-
(e: "blur", ev: FocusEvent): void;
|
|
41
|
-
(e: "input", ev: Event): void;
|
|
42
|
-
(e: "beforeinput", ev: Event): void;
|
|
43
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
<style lang="scss" src="./field.scss" scoped></style>
|
|
2
|
-
<template src="./field.html"></template>
|
|
3
|
-
<script lang="ts" setup>
|
|
4
|
-
import { computed, inject, nextTick, onMounted, ref, watch } from "vue";
|
|
5
|
-
import type { FieldProps, FieldEmit } from "./field.type";
|
|
6
|
-
import { cssProperty, cssPrefix } from "../../utils";
|
|
7
|
-
import { type AppProviderState, APP_PROVIDER_STATE_KEY } from "../app";
|
|
8
|
-
|
|
9
|
-
// Component setup (props, emits, injects)
|
|
10
|
-
// ----------------------------------------------------------------------------
|
|
11
|
-
const props = withDefaults(defineProps<FieldProps>(), {
|
|
12
|
-
modelValue: "",
|
|
13
|
-
type: "text",
|
|
14
|
-
size: "standard",
|
|
15
|
-
role: undefined,
|
|
16
|
-
shape: undefined,
|
|
17
|
-
disabled: false,
|
|
18
|
-
readonly: false,
|
|
19
|
-
message: "",
|
|
20
|
-
help: "",
|
|
21
|
-
variant: "outline",
|
|
22
|
-
placeholder: "",
|
|
23
|
-
shadow: undefined,
|
|
24
|
-
direction: undefined,
|
|
25
|
-
line: 1,
|
|
26
|
-
maxLine: 1,
|
|
27
|
-
});
|
|
28
|
-
const emit = defineEmits<FieldEmit>();
|
|
29
|
-
const appState = inject<AppProviderState>(APP_PROVIDER_STATE_KEY);
|
|
30
|
-
|
|
31
|
-
// Reactive state
|
|
32
|
-
// ----------------------------------------------------------------------------
|
|
33
|
-
const isFocus = ref(false);
|
|
34
|
-
const caret = ref(0);
|
|
35
|
-
const content = ref("");
|
|
36
|
-
|
|
37
|
-
// Computed properties
|
|
38
|
-
// ----------------------------------------------------------------------------
|
|
39
|
-
const fieldAttrs = computed(() => {
|
|
40
|
-
const role = props.role || appState?.role?.value || "";
|
|
41
|
-
const shape = props.shape || appState?.shape?.value || "";
|
|
42
|
-
const shadow = (props?.shadow !== undefined ? props.shadow : appState?.shadow?.value) ?? false;
|
|
43
|
-
const direction = props.direction || appState?.direction?.value || "left";
|
|
44
|
-
|
|
45
|
-
return {
|
|
46
|
-
class: [
|
|
47
|
-
cssPrefix(["layer", "field"]),
|
|
48
|
-
cssPrefix(["role", role]),
|
|
49
|
-
cssPrefix(["shape", shape]),
|
|
50
|
-
cssPrefix("field"),
|
|
51
|
-
cssPrefix(["size", props.size]),
|
|
52
|
-
cssPrefix(["direction", direction]),
|
|
53
|
-
props.variant,
|
|
54
|
-
props.type,
|
|
55
|
-
{
|
|
56
|
-
disabled: props.disabled,
|
|
57
|
-
focus: isFocus.value,
|
|
58
|
-
shadow,
|
|
59
|
-
readonly: props.readonly,
|
|
60
|
-
},
|
|
61
|
-
],
|
|
62
|
-
style: {
|
|
63
|
-
[cssProperty(["field", "line"])]: props.line,
|
|
64
|
-
[cssProperty(["field", "max-line"])]: props.maxLine || props.line,
|
|
65
|
-
},
|
|
66
|
-
};
|
|
67
|
-
});
|
|
68
|
-
|
|
69
|
-
const rawContent = computed(() => {
|
|
70
|
-
return props.modelValue ?? props.value ?? "";
|
|
71
|
-
});
|
|
72
|
-
|
|
73
|
-
const fieldContentAttrs = computed(() => ({
|
|
74
|
-
class: [cssPrefix("field-content")],
|
|
75
|
-
}));
|
|
76
|
-
|
|
77
|
-
const fieldInputAttrs = computed(() => ({
|
|
78
|
-
class: [cssPrefix("field-input")],
|
|
79
|
-
name: props.name,
|
|
80
|
-
id: props.id,
|
|
81
|
-
placeholder: props.placeholder,
|
|
82
|
-
autocomplete: props.autocomplete,
|
|
83
|
-
type: props.type,
|
|
84
|
-
readonly: props.readonly,
|
|
85
|
-
disabled: props.disabled,
|
|
86
|
-
}));
|
|
87
|
-
|
|
88
|
-
const fieldMessageAttrs = computed(() => ({
|
|
89
|
-
class: [cssPrefix("field-message")],
|
|
90
|
-
}));
|
|
91
|
-
|
|
92
|
-
const fieldHelpAttrs = computed(() => ({
|
|
93
|
-
class: [cssPrefix("field-help")],
|
|
94
|
-
}));
|
|
95
|
-
|
|
96
|
-
// Methods
|
|
97
|
-
// ----------------------------------------------------------------------------
|
|
98
|
-
const onFocus = (ev: FocusEvent) => {
|
|
99
|
-
if (props.disabled) return;
|
|
100
|
-
isFocus.value = true;
|
|
101
|
-
emit("focus", ev);
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
const onBlur = (ev: FocusEvent) => {
|
|
105
|
-
if (props.disabled) return;
|
|
106
|
-
isFocus.value = false;
|
|
107
|
-
emit("blur", ev);
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
watch(
|
|
111
|
-
() => rawContent.value,
|
|
112
|
-
(value) => {
|
|
113
|
-
content.value = value.toString();
|
|
114
|
-
}
|
|
115
|
-
);
|
|
116
|
-
|
|
117
|
-
watch(
|
|
118
|
-
() => content.value,
|
|
119
|
-
(value) => {
|
|
120
|
-
emit("update:modelValue", value.toString());
|
|
121
|
-
}
|
|
122
|
-
);
|
|
123
|
-
</script>
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
@use "@toife/sass-layer" as sass;
|
|
2
|
-
|
|
3
|
-
// Classes
|
|
4
|
-
$form-group: sass.fn-naming-prefix("form-group");
|
|
5
|
-
$button: sass.fn-naming-prefix("button");
|
|
6
|
-
$field: sass.fn-naming-prefix("field");
|
|
7
|
-
$field-content: sass.fn-naming-prefix("field-content");
|
|
8
|
-
|
|
9
|
-
.#{$form-group} {
|
|
10
|
-
display: flex;
|
|
11
|
-
|
|
12
|
-
> :deep(*) {
|
|
13
|
-
flex: 1;
|
|
14
|
-
|
|
15
|
-
&.focus {
|
|
16
|
-
z-index: 2;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.horizontal {
|
|
21
|
-
flex-direction: row;
|
|
22
|
-
|
|
23
|
-
:deep(.#{$button}) {
|
|
24
|
-
&:not(:last-child):not(:first-child) {
|
|
25
|
-
border-radius: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&:first-child:not(:last-child) {
|
|
29
|
-
border-top-right-radius: 0;
|
|
30
|
-
border-bottom-right-radius: 0;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
&:last-child:not(:first-child) {
|
|
34
|
-
border-top-left-radius: 0;
|
|
35
|
-
border-bottom-left-radius: 0;
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
:deep(.#{$field}) {
|
|
40
|
-
&:not(:last-child):not(:first-child) .#{$field-content} {
|
|
41
|
-
border-radius: 0;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&:first-child:not(:last-child) .#{$field-content} {
|
|
45
|
-
border-top-right-radius: 0;
|
|
46
|
-
border-bottom-right-radius: 0;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
&:last-child:not(:first-child) .#{$field-content} {
|
|
50
|
-
border-top-left-radius: 0;
|
|
51
|
-
border-bottom-left-radius: 0;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
&.vertical {
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
|
|
59
|
-
:deep(.#{$button}) {
|
|
60
|
-
&:not(:last-child):not(:first-child) {
|
|
61
|
-
border-radius: 0;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
&:first-child:not(:last-child) {
|
|
65
|
-
border-bottom-left-radius: 0;
|
|
66
|
-
border-bottom-right-radius: 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
&:last-child:not(:first-child) {
|
|
70
|
-
border-top-left-radius: 0;
|
|
71
|
-
border-top-right-radius: 0;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
:deep(.#{$field}) {
|
|
76
|
-
&:not(:last-child):not(:first-child) .#{$field-content} {
|
|
77
|
-
border-radius: 0;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:first-child:not(:last-child) .#{$field-content} {
|
|
81
|
-
border-bottom-left-radius: 0;
|
|
82
|
-
border-bottom-right-radius: 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
&:last-child:not(:first-child) .#{$field-content} {
|
|
86
|
-
border-top-left-radius: 0;
|
|
87
|
-
border-top-right-radius: 0;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
<style lang="scss" src="./form-group.scss" scoped></style>
|
|
2
|
-
<template src="./form-group.html"></template>
|
|
3
|
-
<script lang="ts" setup>
|
|
4
|
-
import { cssPrefix } from "../../utils";
|
|
5
|
-
import { computed } from "vue";
|
|
6
|
-
import { type FormGroupProps } from "./form-group.type";
|
|
7
|
-
|
|
8
|
-
// Component setup (props, emits, injects)
|
|
9
|
-
// ----------------------------------------------------------------------------
|
|
10
|
-
const props = withDefaults(defineProps<FormGroupProps>(), {
|
|
11
|
-
direction: "horizontal",
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
// Computed properties
|
|
15
|
-
// ----------------------------------------------------------------------------
|
|
16
|
-
const formGroupAttrs = computed(() => {
|
|
17
|
-
return {
|
|
18
|
-
class: [cssPrefix("form-group"), props.direction],
|
|
19
|
-
};
|
|
20
|
-
});
|
|
21
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div v-bind="gestureIndicatorAttrs"></div>
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
@use "@toife/sass-layer" as sass;
|
|
2
|
-
|
|
3
|
-
// Class name
|
|
4
|
-
$gesture-indicator: sass.fn-naming-prefix("gesture-indicator");
|
|
5
|
-
|
|
6
|
-
// Property name - layer: gesture-indicator
|
|
7
|
-
$gesture-indicator-border-color: sass.fn-naming-var("gesture-indicator", "border-color");
|
|
8
|
-
$radius-ratio: sass.fn-naming-var("radius-ratio");
|
|
9
|
-
$radius-size: sass.fn-naming-var("radius-size");
|
|
10
|
-
$transition-duration: sass.fn-naming-var("duration");
|
|
11
|
-
|
|
12
|
-
.#{$gesture-indicator} {
|
|
13
|
-
background-color: rgba(#{$gesture-indicator-border-color});
|
|
14
|
-
transition:
|
|
15
|
-
box-shadow #{$transition-duration} ease,
|
|
16
|
-
border-color #{$transition-duration} ease,
|
|
17
|
-
background-color #{$transition-duration} ease,
|
|
18
|
-
color #{$transition-duration} ease,
|
|
19
|
-
border-radius #{$transition-duration} ease;
|
|
20
|
-
position: absolute;
|
|
21
|
-
border-radius: calc(min(40px, #{$radius-size}) * #{$radius-ratio});
|
|
22
|
-
z-index: 99;
|
|
23
|
-
|
|
24
|
-
&.bottom {
|
|
25
|
-
width: 40px;
|
|
26
|
-
height: 4px;
|
|
27
|
-
top: 5px;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
&.top {
|
|
31
|
-
width: 40px;
|
|
32
|
-
height: 4px;
|
|
33
|
-
bottom: 5px;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
&.left {
|
|
37
|
-
height: 40px;
|
|
38
|
-
width: 4px;
|
|
39
|
-
right: 5px;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
&.right {
|
|
43
|
-
height: 40px;
|
|
44
|
-
width: 4px;
|
|
45
|
-
left: 5px;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
<style lang="scss" src="./gesture-indicator.scss" scoped></style>
|
|
2
|
-
<template src="./gesture-indicator.html"></template>
|
|
3
|
-
<script lang="ts" setup>
|
|
4
|
-
import { cssPrefix } from "../../utils";
|
|
5
|
-
import { type GestureIndicatorProps } from "./gesture-indicator.type";
|
|
6
|
-
import { computed, inject } from "vue";
|
|
7
|
-
import { type AppProviderState, APP_PROVIDER_STATE_KEY } from "../app";
|
|
8
|
-
|
|
9
|
-
// Component setup (props, emits, injects)
|
|
10
|
-
// ----------------------------------------------------------------------------
|
|
11
|
-
const props = withDefaults(defineProps<GestureIndicatorProps>(), {
|
|
12
|
-
placement: "bottom",
|
|
13
|
-
role: undefined,
|
|
14
|
-
});
|
|
15
|
-
const appState = inject<AppProviderState>(APP_PROVIDER_STATE_KEY);
|
|
16
|
-
|
|
17
|
-
// Computed properties
|
|
18
|
-
// ----------------------------------------------------------------------------
|
|
19
|
-
const gestureIndicatorAttrs = computed(() => {
|
|
20
|
-
const role = props.role || appState?.role.value || "";
|
|
21
|
-
|
|
22
|
-
return {
|
|
23
|
-
class: [
|
|
24
|
-
cssPrefix(["layer", "gesture-indicator"]),
|
|
25
|
-
cssPrefix(["role", role]),
|
|
26
|
-
cssPrefix("gesture-indicator"),
|
|
27
|
-
props.placement,
|
|
28
|
-
],
|
|
29
|
-
};
|
|
30
|
-
});
|
|
31
|
-
</script>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as GestureIndicator } from "./gesture-indicator.vue";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<img @error="handleError" :src="dataSrc" />
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
<template src="./image.html"></template>
|
|
2
|
-
<script setup lang="ts">
|
|
3
|
-
import { ref, watch } from "vue";
|
|
4
|
-
import { type ImageProps } from "./image.type";
|
|
5
|
-
|
|
6
|
-
// Component setup (props, emits, injects)
|
|
7
|
-
// ----------------------------------------------------------------------------
|
|
8
|
-
const props = defineProps<ImageProps>();
|
|
9
|
-
|
|
10
|
-
// Reactive state
|
|
11
|
-
// ----------------------------------------------------------------------------
|
|
12
|
-
// Initialize from src to avoid an empty src flash before mount
|
|
13
|
-
const dataSrc = ref<string>(props.src ?? "");
|
|
14
|
-
|
|
15
|
-
// Methods
|
|
16
|
-
// ----------------------------------------------------------------------------
|
|
17
|
-
const handleError = () => {
|
|
18
|
-
if (props.defaultSrc) {
|
|
19
|
-
dataSrc.value = props.defaultSrc;
|
|
20
|
-
}
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
watch(
|
|
24
|
-
() => props.src,
|
|
25
|
-
(newVal) => {
|
|
26
|
-
dataSrc.value = newVal ?? "";
|
|
27
|
-
}
|
|
28
|
-
);
|
|
29
|
-
</script>
|
package/src/components/index.ts
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export * from "./app";
|
|
2
|
-
export * from "./present";
|
|
3
|
-
export * from "./modal";
|
|
4
|
-
export * from "./gesture-indicator";
|
|
5
|
-
export * from "./layout";
|
|
6
|
-
export * from "./button";
|
|
7
|
-
export * from "./cable";
|
|
8
|
-
export * from "./toolbar";
|
|
9
|
-
export * from "./skeleton";
|
|
10
|
-
export * from "./tabs";
|
|
11
|
-
export * from "./switch";
|
|
12
|
-
export * from "./checkbox";
|
|
13
|
-
export * from "./radio";
|
|
14
|
-
export * from "./card";
|
|
15
|
-
export * from "./toast";
|
|
16
|
-
export * from "./avatar";
|
|
17
|
-
export * from "./divider";
|
|
18
|
-
export * from "./image";
|
|
19
|
-
export * from "./action";
|
|
20
|
-
export * from "./decision-modal";
|
|
21
|
-
export * from "./field";
|
|
22
|
-
export * from "./segmented-field";
|
|
23
|
-
export * from "./container";
|
|
24
|
-
export * from "./refresher";
|
|
25
|
-
export * from "./route";
|
|
26
|
-
export * from "./page";
|
|
27
|
-
export * from "./collapse";
|
|
28
|
-
export * from "./form-group";
|
|
29
|
-
export * from "./dropdown";
|
|
30
|
-
export * from "./select";
|
|
31
|
-
export * from "./slide-range";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<div v-bind="flexAttrs"><slot /></div>
|