From 7e5e111e64316dac9f7fd8c0b43ee7a71b3cb61f Mon Sep 17 00:00:00 2001 From: adrien charrier Date: Thu, 19 Sep 2024 10:42:13 +0200 Subject: [PATCH] refactor: Erase old DatePicke --- .../src/patterns/DatePicker/DatePicker.vue | 1061 +++++------------ .../WarningMixin.ts | 0 .../src/patterns/DatePicker/config.ts | 21 +- .../src/patterns/DatePicker/locales.ts | 3 - .../patterns/DatePicker/mixins/birthdate.ts | 35 - .../patterns/DatePicker/mixins/dateLogic.ts | 239 ---- .../patterns/DatePicker/mixins/errorProp.ts | 21 - .../patterns/DatePicker/mixins/maskValue.ts | 27 - .../DatePicker/mixins/tests/errorProp.spec.ts | 43 - .../DatePicker/tests/DatePicker.spec.ts | 794 ------------ .../tests/DatePickerField.spec.ts | 2 +- .../DatePickerField.spec.ts.snap | 0 .../DatePickerField/DatePickerField.vue | 472 -------- .../src/patterns/DatePickerField/config.ts | 17 - .../src/patterns/DatePickerField/index.ts | 1 - 15 files changed, 333 insertions(+), 2403 deletions(-) rename packages/synapse-bridge/src/patterns/{DatePickerField => DatePicker}/WarningMixin.ts (100%) delete mode 100644 packages/synapse-bridge/src/patterns/DatePicker/locales.ts delete mode 100644 packages/synapse-bridge/src/patterns/DatePicker/mixins/birthdate.ts delete mode 100644 packages/synapse-bridge/src/patterns/DatePicker/mixins/dateLogic.ts delete mode 100644 packages/synapse-bridge/src/patterns/DatePicker/mixins/errorProp.ts delete mode 100644 packages/synapse-bridge/src/patterns/DatePicker/mixins/maskValue.ts delete mode 100644 packages/synapse-bridge/src/patterns/DatePicker/mixins/tests/errorProp.spec.ts delete mode 100644 packages/synapse-bridge/src/patterns/DatePicker/tests/DatePicker.spec.ts rename packages/synapse-bridge/src/patterns/{DatePickerField => DatePicker}/tests/DatePickerField.spec.ts (98%) rename packages/synapse-bridge/src/patterns/{DatePickerField => DatePicker}/tests/__snapshots__/DatePickerField.spec.ts.snap (100%) delete mode 100644 packages/synapse-bridge/src/patterns/DatePickerField/DatePickerField.vue delete mode 100644 packages/synapse-bridge/src/patterns/DatePickerField/config.ts delete mode 100644 packages/synapse-bridge/src/patterns/DatePickerField/index.ts diff --git a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue index ac7a717000..88b5cfa415 100644 --- a/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue +++ b/packages/synapse-bridge/src/patterns/DatePicker/DatePicker.vue @@ -1,124 +1,39 @@ +