@rebilly/revel 6.23.0 → 6.24.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 (28) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/common/helpers/capitalize-first-letter.d.ts +1 -1
  3. package/dist/common/helpers/format-date.d.ts +0 -1
  4. package/dist/common/helpers/is-kebab-case.d.ts +1 -1
  5. package/dist/common/helpers/is-object.d.ts +1 -2
  6. package/dist/common/helpers/un-camel-case.d.ts +1 -1
  7. package/dist/components/r-avatar/r-avatar.vue.d.ts +0 -1
  8. package/dist/components/r-badge/r-badge.vue.d.ts +1 -1
  9. package/dist/components/r-date-input/r-date-input.vue.d.ts +1 -1
  10. package/dist/components/r-date-input/r-date-range-button-group.vue.d.ts +1 -2
  11. package/dist/components/r-date-input/r-range-calendar.vue.d.ts +1 -1
  12. package/dist/components/r-date-input/types.d.ts +0 -1
  13. package/dist/components/r-input/r-input.vue.d.ts +0 -1
  14. package/dist/components/r-month-picker/r-month-picker.vue.d.ts +0 -1
  15. package/dist/components/r-popper/r-popper.vue.d.ts +0 -1
  16. package/dist/components/r-select/async-extension.d.ts +0 -1
  17. package/dist/components/r-select/r-select.vue.d.ts +1 -1
  18. package/dist/components/r-tabs/r-tab.vue.d.ts +0 -1
  19. package/dist/components/r-tabs/r-tabs.vue.d.ts +0 -1
  20. package/dist/components/r-tabs/types.d.ts +0 -1
  21. package/dist/components/r-toast/default-error-handler.d.ts +1 -1
  22. package/dist/components/r-toast/r-toast.vue.d.ts +0 -1
  23. package/dist/directives/r-click-outside/r-click-outside.d.ts +0 -1
  24. package/dist/directives/r-tooltip/r-tooltip.d.ts +0 -1
  25. package/dist/revel.mjs +8 -2
  26. package/dist/revel.umd.js +1 -1
  27. package/dist/types.d.ts +0 -3
  28. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [6.24.0](https://github.com/Rebilly/rebilly/compare/revel-v6.23.1...revel-v6.24.0) (2024-05-02)
2
+
3
+
4
+ ### Features
5
+
6
+ * **billing portal:** Standalone status web component ([#4864](https://github.com/Rebilly/rebilly/issues/4864)) ([fa72629](https://github.com/Rebilly/rebilly/commit/fa72629e36959fb9354ffefadef6eca38086b1e4))
7
+
8
+ ## [6.23.1](https://github.com/Rebilly/rebilly/compare/revel-v6.23.0...revel-v6.23.1) (2024-05-02)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * **revel:** Helpers / utility type improvements ([#5004](https://github.com/Rebilly/rebilly/issues/5004)) ([9baffcf](https://github.com/Rebilly/rebilly/commit/9baffcfe9666956f019874b8b5c8a15103c7c8a3))
14
+
1
15
  ## [6.23.0](https://github.com/Rebilly/rebilly/compare/revel-v6.22.27...revel-v6.23.0) (2024-04-30)
2
16
 
3
17
 
@@ -1 +1 @@
1
- export declare function capitalizeFirstLetter(str: string): string;
1
+ export declare function capitalizeFirstLetter(input: string): string;
@@ -1,4 +1,3 @@
1
1
  import type { Moment } from 'moment';
2
2
  import { type DateTimeFormatsVariant } from '../datetime-formats';
3
- import type { Voidable } from '../../types';
4
3
  export declare const formatDate: (value: Voidable<Moment | string | Date>, format?: DateTimeFormatsVariant | string, timezone?: string) => string;
@@ -1 +1 @@
1
- export declare function isKebabCase(str: string): boolean;
1
+ export declare function isKebabCase(value: string): boolean;
@@ -1,2 +1 @@
1
- import type { Nullable } from '../../types';
2
- export declare function isObject(value?: Nullable<object>): boolean;
1
+ export declare function isObject(value: unknown): boolean;
@@ -1 +1 @@
1
- export declare function unCamelCase(str: string): string;
1
+ export declare function unCamelCase(value: string): string;
@@ -1,5 +1,4 @@
1
1
  import { type PropType } from 'vue';
2
- import type { Nullable } from '../../types';
3
2
  declare const _default: import("vue").DefineComponent<{
4
3
  /**
5
4
  * Display initials
@@ -14,7 +14,7 @@ declare const _default: import("vue").DefineComponent<{
14
14
  default: boolean;
15
15
  };
16
16
  }, unknown, unknown, {
17
- classes(): Record<string, boolean>;
17
+ classes(): Record<`r-badge-${string}`, boolean>;
18
18
  }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click" | "close")[], "click" | "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
19
19
  /**
20
20
  * Changes background color
@@ -1,6 +1,6 @@
1
1
  import { type PropType } from 'vue';
2
2
  import type { DateRange } from './types';
3
- import type { Optional, ValidationState } from '../../types';
3
+ import type { ValidationState } from '../../types';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  /**
6
6
  * Label for the date picker
@@ -2,7 +2,6 @@ import { type PropType } from 'vue';
2
2
  import type { Moment } from 'moment';
3
3
  import { type CalendarPresetLabel, type CalendarPreset } from './calendar-presets';
4
4
  import type { DateRange } from './types';
5
- import type { Voidable } from '../../types';
6
5
  declare const _default: import("vue").DefineComponent<{
7
6
  modelValue: {
8
7
  type: PropType<string | DateRange>;
@@ -82,7 +81,7 @@ declare const _default: import("vue").DefineComponent<{
82
81
  start: string | Moment | Date;
83
82
  end: string | Moment | Date;
84
83
  isRelative: boolean;
85
- relativeFilterValue: import("../../types").Nullable<string>;
84
+ relativeFilterValue: Nullable<string>;
86
85
  presetName: string;
87
86
  presetLabel: string;
88
87
  } | {
@@ -123,7 +123,7 @@ declare const _default: import("vue").DefineComponent<{
123
123
  start: string | Date;
124
124
  end: string | Date;
125
125
  isRelative: boolean;
126
- relativeFilterValue: import("../../types").Nullable<string>;
126
+ relativeFilterValue: Nullable<string>;
127
127
  } | null;
128
128
  prepareValueDatepicker(): {
129
129
  start: Date;
@@ -1,5 +1,4 @@
1
1
  import type { Moment } from 'moment';
2
- import type { Nullable } from '../../types';
3
2
  export type DateRange<T = Date | string | Moment> = {
4
3
  start: T;
5
4
  end: T;
@@ -1,5 +1,4 @@
1
1
  import { type PropType } from 'vue';
2
- import type { Nullable } from '../../types';
3
2
  declare const _default: import("vue").DefineComponent<{
4
3
  /**
5
4
  * TBD
@@ -1,5 +1,4 @@
1
1
  import { type PropType } from 'vue';
2
- import type { Nullable } from '../../types';
3
2
  type Position = 'bottomStart' | 'bottomEnd' | 'topStart' | 'topEnd';
4
3
  interface Month {
5
4
  monthIndex: Nullable<number>;
@@ -1,5 +1,4 @@
1
1
  import { type PropType } from 'vue';
2
- import type { Nullable } from '../../types';
3
2
  interface State {
4
3
  id: string;
5
4
  hideTimer: Nullable<ReturnType<typeof setTimeout>>;
@@ -1,6 +1,5 @@
1
1
  import type { CreateComponentPublicInstance } from 'vue';
2
2
  import type { Query, Value, CacheItem, Methods, AsyncSearchFn, Options } from './types';
3
- import type { Nullable, Optional } from '../../types';
4
3
  export type CacheValuePrefix = (value: unknown) => string;
5
4
  export interface Config {
6
5
  limit: number;
@@ -1,7 +1,7 @@
1
1
  import type { PropType, StyleValue } from 'vue';
2
2
  import { AsyncExtension, type Config } from './async-extension';
3
3
  import type { Query, OptionItem, Options, AsyncSearchFn, ComplexOptionItem } from './types';
4
- import type { Nullable, ValidationState } from '../../types';
4
+ import type { ValidationState } from '../../types';
5
5
  interface Message {
6
6
  loading: string;
7
7
  more: (count: number) => string;
@@ -1,7 +1,6 @@
1
1
  import { type PropType, type Ref } from 'vue';
2
2
  import type { RouteLocation } from 'vue-router';
3
3
  import type { Tab } from './types';
4
- import type { Optional } from '../../types';
5
4
  declare const _default: import("vue").DefineComponent<{
6
5
  name: {
7
6
  required: true;
@@ -1,6 +1,5 @@
1
1
  import type { RouteLocation } from 'vue-router';
2
2
  import type { Tab } from './types';
3
- import type { Nullable } from '../../types';
4
3
  interface State {
5
4
  tabs: Tab[];
6
5
  }
@@ -1,6 +1,5 @@
1
1
  import type { Ref } from 'vue';
2
2
  import type { RouteLocation } from 'vue-router';
3
- import type { Optional } from '../../types';
4
3
  export interface ReactiveTab {
5
4
  tabId: Ref<string>;
6
5
  tabPanelId: Ref<string>;
@@ -1,4 +1,4 @@
1
- import type { ApiError, Nullable } from '../../types';
1
+ import type { ApiError } from '../../types';
2
2
  export declare class DefaultErrorHandler {
3
3
  static parseError(error: Nullable<ApiError>, defaultMessage?: string): string[];
4
4
  }
@@ -1,5 +1,4 @@
1
1
  import { type PropType, type Component } from 'vue';
2
- import type { Nullable } from '../../types';
3
2
  interface State {
4
3
  isVisible: boolean;
5
4
  timerHandle: Nullable<ReturnType<typeof setTimeout>>;
@@ -1,5 +1,4 @@
1
1
  import type { Directive } from 'vue';
2
- import type { Nullable } from '../../types';
3
2
  interface ClickOutsideTarget extends HTMLElement {
4
3
  clickOutside: Nullable<(event: MouseEvent) => void>;
5
4
  }
@@ -1,6 +1,5 @@
1
1
  import type { Directive } from 'vue';
2
2
  import './r-tooltip.scss';
3
- import type { Nullable } from '../../types';
4
3
  interface ToolTipTarget extends HTMLElement {
5
4
  vTooltipEnter: Nullable<() => void>;
6
5
  vTooltipLeave: Nullable<() => void>;
package/dist/revel.mjs CHANGED
@@ -8890,7 +8890,7 @@ const VB = /* @__PURE__ */ bM(IB);
8890
8890
  function xB(M) {
8891
8891
  return VB(M) === M.toLowerCase();
8892
8892
  }
8893
- function wb(M = null) {
8893
+ function wb(M) {
8894
8894
  return M !== null && typeof M == "object" && !Array.isArray(M);
8895
8895
  }
8896
8896
  function HB(M) {
@@ -9066,7 +9066,13 @@ function ZB(M, b, z, p, o, O) {
9066
9066
  ])
9067
9067
  ], 16);
9068
9068
  }
9069
- const JO = /* @__PURE__ */ s0(YB, [["render", ZB]]), mo = ["gray", "yellow", "green", "accent", "dark-background"], QB = G({
9069
+ const JO = /* @__PURE__ */ s0(YB, [["render", ZB]]), mo = [
9070
+ "gray",
9071
+ "yellow",
9072
+ "green",
9073
+ "accent",
9074
+ "dark-background"
9075
+ ], QB = G({
9070
9076
  name: "RAvatar",
9071
9077
  components: { RIcon: u1, RImg: JO },
9072
9078
  customElement: !0,