Commit Graph

6 Commits

Author SHA1 Message Date
Cody Jackson c77ee88b01 Adding `emits` to all rancher-components to fix linting rules 2024-12-04 09:04:19 -07:00
Phillip Rak 346b03c1b6 Add `requireDirty` prop to `useLabeledFormElement`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-07-29 10:23:08 -07:00
Phillip Rak 2c3346f481 Emit validation state when rules contain a value
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-07-29 10:23:07 -07:00
Phillip Rak de4ce97060 Expose focused through composable
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-01-05 09:51:45 -07:00
Phillip Rak 823f5bc295 Add prop definitions to `useLabeledFormElement`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-01-05 09:11:25 -07:00
Phillip Rak fcbd73d24b Replace `Vue.extend` with `defineComponent` in `LabeledInput.vue`
Rewrote `compact-input.ts` and `labeled-form-element.ts` mixins as composables to address TypeScript issues when using mixins with `defineComponent`. The new composables are written to adhere to the conventions and best practices [^1] as best as possible, taking into consideration what's available to us in Vue 2.7.14.

Moving to composables positions us for a smoother Vue 3 migration.

[^1]: https://vuejs.org/guide/reusability/composables.html#conventions-and-best-practices

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-01-05 09:11:25 -07:00