@rebilly/revel 5.10.4 → 5.12.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [5.12.0](https://github.com/Rebilly/rebilly/compare/revel-v5.11.0...revel-v5.12.0) (2023-10-03)
2
+
3
+
4
+ ### Features
5
+
6
+ * **revel:** Support kebab-cased tab names ([#1646](https://github.com/Rebilly/rebilly/issues/1646)) ([df6b53a](https://github.com/Rebilly/rebilly/commit/df6b53ab6162464a57fc669a5b54e48f0e024d4d))
7
+
8
+ ## [5.11.0](https://github.com/Rebilly/rebilly/compare/revel-v5.10.4...revel-v5.11.0) (2023-09-28)
9
+
10
+
11
+ ### Features
12
+
13
+ * **revel:** add min and max feature for month picker ([#1582](https://github.com/Rebilly/rebilly/issues/1582)) ([6f25f1b](https://github.com/Rebilly/rebilly/commit/6f25f1b0201584b52528847112c62d2418db381c))
14
+
1
15
  ## [5.10.4](https://github.com/Rebilly/rebilly/compare/revel-v5.10.3...revel-v5.10.4) (2023-09-26)
2
16
 
3
17
 
@@ -0,0 +1 @@
1
+ export declare function capitalizeFirstLetter(str: string): string;
@@ -1,6 +1,8 @@
1
+ import { capitalizeFirstLetter } from './capitalize-first-letter';
1
2
  import { debounce } from './debounce';
2
3
  import { deepClone } from './deep-clone';
3
4
  import { formatDate } from './format-date';
4
- import { kebabCase } from './kebab-case';
5
+ import { isKebabCase } from './is-kebab-case';
5
6
  import { isObject } from './is-object';
6
- export { debounce, deepClone, formatDate, kebabCase, isObject };
7
+ import { kebabCase } from './kebab-case';
8
+ export { capitalizeFirstLetter, debounce, deepClone, formatDate, isKebabCase, isObject, kebabCase, };
@@ -0,0 +1 @@
1
+ export declare function isKebabCase(str: string): boolean;
@@ -7,7 +7,6 @@ interface Month {
7
7
  }
8
8
  interface State {
9
9
  months: string[];
10
- selectedDate: Nullable<Month>;
11
10
  }
12
11
  declare const _default: import("vue").DefineComponent<{
13
12
  /**
@@ -54,14 +53,32 @@ declare const _default: import("vue").DefineComponent<{
54
53
  default: string;
55
54
  validator: (pos: string) => boolean;
56
55
  };
56
+ /**
57
+ * Minimum month and year
58
+ */
59
+ minValue: {
60
+ type: PropType<Month>;
61
+ default: () => {};
62
+ };
63
+ /**
64
+ * Maximum month and year
65
+ */
66
+ maxValue: {
67
+ type: PropType<Month>;
68
+ default: () => {};
69
+ };
57
70
  }, unknown, State, {
58
71
  selectedDateLabel(): string;
72
+ isYearDecrementDisabled(): boolean | 0;
73
+ isYearIncrementDisabled(): boolean | 0;
59
74
  }, {
60
75
  selectMonth(monthIndex: number): void;
61
76
  changeYear(value: number): void;
62
77
  populateInput(date: Month): void;
63
78
  onClear(): void;
64
79
  togglePopper(): void;
80
+ isMonthSelected(monthIndex: number): boolean;
81
+ isMonthDisabled(monthIndex: number): boolean;
65
82
  }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "clear" | "month-change" | "year-change")[], "update:modelValue" | "clear" | "month-change" | "year-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
66
83
  /**
67
84
  * Label for the month picker
@@ -107,6 +124,20 @@ declare const _default: import("vue").DefineComponent<{
107
124
  default: string;
108
125
  validator: (pos: string) => boolean;
109
126
  };
127
+ /**
128
+ * Minimum month and year
129
+ */
130
+ minValue: {
131
+ type: PropType<Month>;
132
+ default: () => {};
133
+ };
134
+ /**
135
+ * Maximum month and year
136
+ */
137
+ maxValue: {
138
+ type: PropType<Month>;
139
+ default: () => {};
140
+ };
110
141
  }>> & {
111
142
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
112
143
  onClear?: ((...args: any[]) => any) | undefined;
@@ -118,5 +149,7 @@ declare const _default: import("vue").DefineComponent<{
118
149
  placeholder: string;
119
150
  position: Position;
120
151
  clearable: boolean;
152
+ minValue: Month;
153
+ maxValue: Month;
121
154
  }>;
122
155
  export default _default;
@@ -3487,6 +3487,7 @@ declare const _default: import("vue").DefineComponent<{
3487
3487
  } | undefined;
3488
3488
  }[];
3489
3489
  }, {
3490
+ getTabName(tab: Tab, index: number): string;
3490
3491
  selectTab({ name, value, to }: Tab, index?: Nullable<number>): void;
3491
3492
  getRouteTab(): {
3492
3493
  tabId: string;