From 20eb53a16d75d32dc78284d097152e60a771d039 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 30 Oct 2024 18:46:11 -0400 Subject: [PATCH 1/4] modified datePicker to work correctly with 12am --- packages/primevue/src/datepicker/DatePicker.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index e0adcb0cd..8bac791e9 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -998,7 +998,7 @@ export default { this.pm = currentHour > 11; if (currentHour >= 12) currentHour = currentHour == 12 ? 12 : currentHour - 12; - else currentHour = currentHour == 0 ? 12 : currentHour; + else currentHour = currentHour == 0 ? 0 : currentHour; } this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour; @@ -2925,6 +2925,9 @@ export default { return yearPickerValues; }, formattedCurrentHour() { + if (this.currentHour == 0) { + return this.currentHour + 12; + } return this.currentHour < 10 ? '0' + this.currentHour : this.currentHour; }, formattedCurrentMinute() { From 4f9b65ffaa52738e1fdfe715cf20f00cb379a159 Mon Sep 17 00:00:00 2001 From: alex Date: Wed, 30 Oct 2024 18:54:16 -0400 Subject: [PATCH 2/4] simplified no longer necessary else statement --- packages/primevue/src/datepicker/DatePicker.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index 8bac791e9..756344470 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -998,7 +998,6 @@ export default { this.pm = currentHour > 11; if (currentHour >= 12) currentHour = currentHour == 12 ? 12 : currentHour - 12; - else currentHour = currentHour == 0 ? 0 : currentHour; } this.currentHour = Math.floor(currentHour / this.stepHour) * this.stepHour; @@ -1586,6 +1585,7 @@ export default { newHour = newHour <= 0 ? 12 + newHour : newHour; } + 1; if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) { this.currentHour = newHour; From 594d470691964698ddbc94dfdca0814b7fc14be4 Mon Sep 17 00:00:00 2001 From: Alex Grimes <66704965+Alex-Grimes@users.noreply.github.com> Date: Thu, 31 Oct 2024 08:35:44 -0400 Subject: [PATCH 3/4] removed accidental 1 from line 1588 --- packages/primevue/src/datepicker/DatePicker.vue | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/primevue/src/datepicker/DatePicker.vue b/packages/primevue/src/datepicker/DatePicker.vue index 756344470..78eae56a0 100755 --- a/packages/primevue/src/datepicker/DatePicker.vue +++ b/packages/primevue/src/datepicker/DatePicker.vue @@ -1585,7 +1585,6 @@ export default { newHour = newHour <= 0 ? 12 + newHour : newHour; } - 1; if (this.validateTime(newHour, this.currentMinute, this.currentSecond, newPM)) { this.currentHour = newHour; From b2b21ca9dde1d31aaf19d8e3aa1f0372916d4af1 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 12 Nov 2024 12:18:07 +0300 Subject: [PATCH 4/4] Use a custom field to enter tokens --- .../assets/styles/layout/_designer.scss | 22 +++++++ .../showcase/assets/styles/layout/layout.scss | 1 + .../components/layout/AppDesigner.vue | 6 +- .../layout/designer/DesignColorPalette.vue | 4 +- .../layout/designer/DesignTokenField.vue | 39 ++++++++++++ .../designer/primitive/DesignColors.vue | 22 +++++++ .../designer/semantic/DesignFormField.vue | 42 +++++-------- .../designer/semantic/DesignGeneral.vue | 5 +- .../layout/designer/semantic/DesignList.vue | 21 +++---- .../designer/semantic/DesignNavigation.vue | 24 +++----- .../designer/semantic/DesignOverlay.vue | 27 +++------ .../semantic/colorscheme/DesignCSCommon.vue | 59 +++++++------------ .../colorscheme/DesignCSFormField.vue | 57 ++++++------------ .../semantic/colorscheme/DesignCSList.vue | 30 ++++------ .../colorscheme/DesignCSNavigation.vue | 39 ++++-------- .../semantic/colorscheme/DesignCSOverlay.vue | 27 +++------ 16 files changed, 200 insertions(+), 225 deletions(-) create mode 100644 apps/showcase/assets/styles/layout/_designer.scss create mode 100644 apps/showcase/components/layout/designer/DesignTokenField.vue diff --git a/apps/showcase/assets/styles/layout/_designer.scss b/apps/showcase/assets/styles/layout/_designer.scss new file mode 100644 index 000000000..460ff1a51 --- /dev/null +++ b/apps/showcase/assets/styles/layout/_designer.scss @@ -0,0 +1,22 @@ +.designer { + [type='color'] { + margin-top: -4px; + border: 0 none; + padding: 0; + -webkit-appearance: none; + -moz-appearance: none; + appearance: none; + width: 28px; + height: 28px; + background-color: transparent; + border: none; + cursor: pointer; + } + + [type='color']::-webkit-color-swatch { + border-radius: 4px; + width: 24px; + height: 24px; + border: 0 none; + } +} \ No newline at end of file diff --git a/apps/showcase/assets/styles/layout/layout.scss b/apps/showcase/assets/styles/layout/layout.scss index eb9938455..d15826645 100644 --- a/apps/showcase/assets/styles/layout/layout.scss +++ b/apps/showcase/assets/styles/layout/layout.scss @@ -5,6 +5,7 @@ @import './_core'; @import './_glow'; @import './_topbar'; +@import './_designer'; @import './_sidebar'; @import './_content'; @import './_news'; diff --git a/apps/showcase/components/layout/AppDesigner.vue b/apps/showcase/components/layout/AppDesigner.vue index 87e948308..931600def 100644 --- a/apps/showcase/components/layout/AppDesigner.vue +++ b/apps/showcase/components/layout/AppDesigner.vue @@ -1,5 +1,5 @@