@globalbrain/sefirot 4.19.1 → 4.21.0

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.
Files changed (63) hide show
  1. package/lib/components/SActionListItem.vue +2 -2
  2. package/lib/components/SActionMenu.vue +15 -15
  3. package/lib/components/SAvatarStack.vue +2 -2
  4. package/lib/components/SButton.vue +1 -1
  5. package/lib/components/SControlActionBarButton.vue +5 -5
  6. package/lib/components/SControlActionBarClose.vue +1 -1
  7. package/lib/components/SControlActionBarCollapse.vue +2 -2
  8. package/lib/components/SControlActionMenu.vue +15 -15
  9. package/lib/components/SControlButton.vue +14 -14
  10. package/lib/components/SControlInputSearch.vue +1 -1
  11. package/lib/components/SControlPagination.vue +6 -4
  12. package/lib/components/SDesc.vue +2 -2
  13. package/lib/components/SDescItem.vue +1 -1
  14. package/lib/components/SDropdown.vue +1 -1
  15. package/lib/components/SDropdownSectionFilter.vue +1 -1
  16. package/lib/components/SErrorBoundary.vue +1 -1
  17. package/lib/components/SFragment.vue +1 -1
  18. package/lib/components/SInputCheckbox.vue +8 -8
  19. package/lib/components/SInputCheckboxes.vue +8 -8
  20. package/lib/components/SInputDate.vue +11 -11
  21. package/lib/components/SInputDropdown.vue +9 -9
  22. package/lib/components/SInputFile.vue +11 -11
  23. package/lib/components/SInputFileUpload.vue +12 -12
  24. package/lib/components/SInputHMS.vue +12 -12
  25. package/lib/components/SInputImage.vue +11 -11
  26. package/lib/components/SInputNumber.vue +19 -19
  27. package/lib/components/SInputRadio.vue +9 -9
  28. package/lib/components/SInputRadios.vue +9 -9
  29. package/lib/components/SInputSegments.vue +9 -9
  30. package/lib/components/SInputSelect.vue +1 -1
  31. package/lib/components/SInputSwitch.vue +9 -9
  32. package/lib/components/SInputSwitches.vue +10 -10
  33. package/lib/components/SInputText.vue +15 -15
  34. package/lib/components/SInputTextarea.vue +16 -16
  35. package/lib/components/SInputYMD.vue +12 -12
  36. package/lib/components/SLink.vue +3 -3
  37. package/lib/components/SLocalNav.vue +2 -2
  38. package/lib/components/SLocalNavAvatar.vue +1 -1
  39. package/lib/components/SLoginPagePasswordDialog.vue +1 -1
  40. package/lib/components/SM.vue +1 -1
  41. package/lib/components/SMFade.vue +1 -1
  42. package/lib/components/SPagination.vue +9 -15
  43. package/lib/components/STable.vue +2 -2
  44. package/lib/components/STableCell.vue +9 -9
  45. package/lib/components/STableCellAvatar.vue +1 -1
  46. package/lib/components/STableCellAvatars.vue +1 -1
  47. package/lib/components/STableCellIndicator.vue +1 -1
  48. package/lib/components/STableCellState.vue +1 -1
  49. package/lib/components/STableHeader.vue +1 -1
  50. package/lib/components/STableHeaderActionItem.vue +3 -3
  51. package/lib/components/STooltip.vue +1 -1
  52. package/lib/support/Day.ts +4 -0
  53. package/lib/validation/rules/after.ts +16 -0
  54. package/lib/validation/rules/afterOrEqual.ts +16 -0
  55. package/lib/validation/rules/before.ts +16 -0
  56. package/lib/validation/rules/beforeOrEqual.ts +16 -0
  57. package/lib/validation/rules/index.ts +4 -0
  58. package/lib/validation/validators/after.ts +9 -0
  59. package/lib/validation/validators/afterOrEqual.ts +9 -0
  60. package/lib/validation/validators/before.ts +8 -0
  61. package/lib/validation/validators/beforeOrEqual.ts +9 -0
  62. package/lib/validation/validators/index.ts +4 -0
  63. package/package.json +1 -1
@@ -0,0 +1,8 @@
1
+ import { type Day, isDay } from '../../support/Day'
2
+
3
+ export function before(value: unknown, date: Day): boolean {
4
+ if (!isDay(value) || !isDay(date)) {
5
+ return false
6
+ }
7
+ return value.isBefore(date)
8
+ }
@@ -0,0 +1,9 @@
1
+ import { type Day, isDay } from '../../support/Day'
2
+
3
+ export function beforeOrEqual(value: unknown, date: Day): boolean {
4
+ if (!isDay(value) || !isDay(date)) {
5
+ return false
6
+ }
7
+
8
+ return value.isBefore(date) || value.isSame(date)
9
+ }
@@ -1,3 +1,7 @@
1
+ export * from './after'
2
+ export * from './afterOrEqual'
3
+ export * from './before'
4
+ export * from './beforeOrEqual'
1
5
  export * from './checked'
2
6
  export * from './decimal'
3
7
  export * from './email'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
3
  "type": "module",
4
- "version": "4.19.1",
4
+ "version": "4.21.0",
5
5
  "packageManager": "pnpm@9.15.4",
6
6
  "description": "Vue Components for Global Brain Design System.",
7
7
  "author": "Kia Ishii <ka.ishii@globalbrains.com>",