@frollo/frollo-web-ui 5.0.3 → 5.0.4
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/cjs/index.js +11296 -1047
- package/esm/es.date.to-string-1ffba857.js +23 -0
- package/esm/fw-accordion.js +1 -1
- package/esm/fw-animations.js +2 -2
- package/esm/fw-bar-chart.js +2 -2
- package/esm/{fw-button-b7a12ae1.js → fw-button-99dba2bc.js} +1 -1
- package/esm/fw-button.js +3 -3
- package/esm/fw-date-picker.js +10336 -0
- package/esm/fw-drawer.js +3 -3
- package/esm/{fw-dropdown-765dbbba.js → fw-dropdown-b476e015.js} +1 -1
- package/esm/fw-dropdown.js +2 -2
- package/esm/{fw-image-660d3e75.js → fw-image-ae643123.js} +1 -1
- package/esm/fw-image.js +2 -2
- package/esm/{fw-input-7d25de48.js → fw-input-fdc8fe1b.js} +1 -1
- package/esm/fw-input.js +2 -2
- package/esm/{fw-loading-spinner-3fda633e.js → fw-loading-spinner-cc1ca2fa.js} +1 -1
- package/esm/fw-modal.js +3 -3
- package/esm/fw-navigation-menu.js +3 -3
- package/esm/fw-provider-list.js +10 -9
- package/esm/fw-sidebar-menu.js +3 -3
- package/esm/{fw-table-row-d390fe77.js → fw-table-row-e8520a1d.js} +2 -2
- package/esm/fw-table.js +3 -3
- package/esm/{fw-tag-9ef5331a.js → fw-tag-a8a83c0a.js} +3 -3
- package/esm/fw-tag.js +5 -5
- package/esm/fw-toast.js +1 -1
- package/esm/fw-transactions-card.js +2 -2
- package/esm/get-root-colours-865a52ba.js +37 -0
- package/esm/{index-04d3cb23.js → index-0a63f2c3.js} +130 -102
- package/esm/{index-8c78a422.js → index-6423a6ab.js} +38 -33
- package/esm/{index-c15f5641.js → index-be5b4afa.js} +2 -6
- package/esm/index.js +64 -66
- package/frollo-web-ui.esm.js +11390 -1011
- package/icons/calendar-day.svg +3 -0
- package/icons/calendar.svg +3 -0
- package/icons/index.ts +5 -1
- package/index.d.ts +196 -4
- package/package.json +3 -1
- package/types/components/fw-date-picker/fw-date-picker.vue.d.ts +177 -0
- package/types/components/fw-date-picker/index.d.ts +2 -0
- package/types/components/fw-date-picker/index.types.d.ts +16 -0
- package/types/components/index.d.ts +1 -0
- package/types/components/index.types.d.ts +1 -0
- package/types/helpers/get-root-colours.d.ts +8 -0
- package/types/icons/index.d.ts +3 -1
- package/web-components/index.js +11538 -1155
- package/esm/get-root-colours-e2a1cb28.js +0 -21
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 25 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M5 12.375C5 11.3391 5.83953 10.5 6.875 10.5H10.625C11.6609 10.5 12.5 11.3391 12.5 12.375V16.125C12.5 17.1609 11.6609 18 10.625 18H6.875C5.83953 18 5 17.1609 5 16.125V12.375ZM6.5 12.375V16.125C6.5 16.3312 6.66781 16.5 6.875 16.5H10.625C10.8313 16.5 11 16.3312 11 16.125V12.375C11 12.1687 10.8313 12 10.625 12H6.875C6.66781 12 6.5 12.1687 6.5 12.375ZM8 3H17V0.75C17 0.335812 17.3375 0 17.75 0C18.1625 0 18.5 0.335812 18.5 0.75V3H20C21.6547 3 23 4.34297 23 6V21C23 22.6547 21.6547 24 20 24H5C3.34297 24 2 22.6547 2 21V6C2 4.34297 3.34297 3 5 3H6.5V0.75C6.5 0.335812 6.8375 0 7.25 0C7.6625 0 8 0.335812 8 0.75V3ZM3.5 21C3.5 21.8297 4.17172 22.5 5 22.5H20C20.8297 22.5 21.5 21.8297 21.5 21V9H3.5V21ZM3.5 6V7.5H21.5V6C21.5 5.17031 20.8297 4.5 20 4.5H5C4.17172 4.5 3.5 5.17031 3.5 6Z" />
|
|
3
|
+
</svg>
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
<svg viewBox="0 0 30 30" fill="currentColor" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
+
<path d="M9.75 3C10.1625 3 10.5 3.33581 10.5 3.75V6H19.5V3.75C19.5 3.33581 19.8375 3 20.25 3C20.6625 3 21 3.33581 21 3.75V6H22.5C24.1547 6 25.5 7.34297 25.5 9V24C25.5 25.6547 24.1547 27 22.5 27H7.5C5.84297 27 4.5 25.6547 4.5 24V9C4.5 7.34297 5.84297 6 7.5 6H9V3.75C9 3.33581 9.3375 3 9.75 3ZM24 12H19.125V15.375H24V12ZM24 16.875H19.125V20.625H24V16.875ZM24 22.125H19.125V25.5H22.5C23.3297 25.5 24 24.8297 24 24V22.125ZM17.625 20.625V16.875H12.375V20.625H17.625ZM12.375 25.5H17.625V22.125H12.375V25.5ZM10.875 20.625V16.875H6V20.625H10.875ZM6 22.125V24C6 24.8297 6.67172 25.5 7.5 25.5H10.875V22.125H6ZM6 15.375H10.875V12H6V15.375ZM12.375 15.375H17.625V12H12.375V15.375ZM22.5 7.5H7.5C6.67172 7.5 6 8.17031 6 9V10.5H24V9C24 8.17031 23.3297 7.5 22.5 7.5Z" />
|
|
3
|
+
</svg>
|
package/icons/index.ts
CHANGED
|
@@ -35,6 +35,8 @@ import ArrowDownSvg from './arrow-down.svg';
|
|
|
35
35
|
import SearchSvg from './search.svg';
|
|
36
36
|
import XMarkSvg from './xmark.svg';
|
|
37
37
|
import PenSvg from './pen.svg';
|
|
38
|
+
import CalendarSvg from './calendar.svg';
|
|
39
|
+
import CalendarDaySvg from './calendar-day.svg';
|
|
38
40
|
|
|
39
41
|
export {
|
|
40
42
|
ViewSvg,
|
|
@@ -73,5 +75,7 @@ export {
|
|
|
73
75
|
ArrowDownSvg,
|
|
74
76
|
SearchSvg,
|
|
75
77
|
XMarkSvg,
|
|
76
|
-
PenSvg
|
|
78
|
+
PenSvg,
|
|
79
|
+
CalendarSvg,
|
|
80
|
+
CalendarDaySvg
|
|
77
81
|
};
|
package/index.d.ts
CHANGED
|
@@ -1248,7 +1248,24 @@ declare interface FwProviderListProps {
|
|
|
1248
1248
|
tableHeaderName?: string;
|
|
1249
1249
|
}
|
|
1250
1250
|
|
|
1251
|
-
declare
|
|
1251
|
+
declare interface FwDatePickerProps {
|
|
1252
|
+
modelValue: string | {
|
|
1253
|
+
start: string;
|
|
1254
|
+
end: string;
|
|
1255
|
+
} | Date;
|
|
1256
|
+
name: string;
|
|
1257
|
+
label?: string;
|
|
1258
|
+
placeholder?: string;
|
|
1259
|
+
isRange?: boolean;
|
|
1260
|
+
startLabel?: string;
|
|
1261
|
+
endLabel?: string;
|
|
1262
|
+
startPlaceholder?: string;
|
|
1263
|
+
endPlaceholder?: string;
|
|
1264
|
+
tabindex?: string;
|
|
1265
|
+
rounded?: boolean;
|
|
1266
|
+
}
|
|
1267
|
+
|
|
1268
|
+
declare const __default__$5: vue.DefineComponent<{
|
|
1252
1269
|
/**
|
|
1253
1270
|
* The size of the tag. Accepts: 'xs', 'sm' & 'md'
|
|
1254
1271
|
*/
|
|
@@ -1316,7 +1333,7 @@ declare const __default__$4: vue.DefineComponent<{
|
|
|
1316
1333
|
dismissable: boolean;
|
|
1317
1334
|
}>;
|
|
1318
1335
|
|
|
1319
|
-
declare const __default__$
|
|
1336
|
+
declare const __default__$4: vue.DefineComponent<{
|
|
1320
1337
|
items: {
|
|
1321
1338
|
type: PropType<FwTableItem[]>;
|
|
1322
1339
|
required: true;
|
|
@@ -1388,7 +1405,7 @@ declare const _default$c: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentO
|
|
|
1388
1405
|
|
|
1389
1406
|
declare const _default$b: vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, vue.EmitsOptions, string, vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{}>>, {}>;
|
|
1390
1407
|
|
|
1391
|
-
declare const __default__$
|
|
1408
|
+
declare const __default__$3: vue.DefineComponent<{
|
|
1392
1409
|
/**
|
|
1393
1410
|
* The header title of the accordion
|
|
1394
1411
|
*/
|
|
@@ -2123,6 +2140,181 @@ declare const _default$1: vue.DefineComponent<{
|
|
|
2123
2140
|
tableHeaderName: string;
|
|
2124
2141
|
}>;
|
|
2125
2142
|
|
|
2143
|
+
declare const __default__$2: vue.DefineComponent<{
|
|
2144
|
+
/**
|
|
2145
|
+
* The date-picker v-model
|
|
2146
|
+
*/
|
|
2147
|
+
modelValue: {
|
|
2148
|
+
type: PropType<string | Date | {
|
|
2149
|
+
start: string;
|
|
2150
|
+
end: string;
|
|
2151
|
+
}>;
|
|
2152
|
+
};
|
|
2153
|
+
/**
|
|
2154
|
+
* The name of the input field. Must be unique per form.
|
|
2155
|
+
*/
|
|
2156
|
+
name: {
|
|
2157
|
+
type: StringConstructor;
|
|
2158
|
+
required: true;
|
|
2159
|
+
};
|
|
2160
|
+
/**
|
|
2161
|
+
* Label for the input. Also renders to an aria-label attribute
|
|
2162
|
+
*/
|
|
2163
|
+
label: {
|
|
2164
|
+
type: StringConstructor;
|
|
2165
|
+
};
|
|
2166
|
+
/**
|
|
2167
|
+
* The placeholder text of the input
|
|
2168
|
+
*/
|
|
2169
|
+
placeholder: {
|
|
2170
|
+
type: StringConstructor;
|
|
2171
|
+
};
|
|
2172
|
+
/**
|
|
2173
|
+
* The placeholder text of the starting range input
|
|
2174
|
+
*/
|
|
2175
|
+
startPlaceholder: {
|
|
2176
|
+
type: StringConstructor;
|
|
2177
|
+
};
|
|
2178
|
+
/**
|
|
2179
|
+
* The placeholder text of the ending range input
|
|
2180
|
+
*/
|
|
2181
|
+
endPlaceholder: {
|
|
2182
|
+
type: StringConstructor;
|
|
2183
|
+
};
|
|
2184
|
+
/**
|
|
2185
|
+
* Whether to enable the date range inputs
|
|
2186
|
+
*/
|
|
2187
|
+
isRange: {
|
|
2188
|
+
type: BooleanConstructor;
|
|
2189
|
+
default: boolean;
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2192
|
+
* Start input label when is-range
|
|
2193
|
+
*/
|
|
2194
|
+
startLabel: {
|
|
2195
|
+
type: StringConstructor;
|
|
2196
|
+
};
|
|
2197
|
+
/**
|
|
2198
|
+
* End input label when is-range
|
|
2199
|
+
*/
|
|
2200
|
+
endLabel: {
|
|
2201
|
+
type: StringConstructor;
|
|
2202
|
+
};
|
|
2203
|
+
/**
|
|
2204
|
+
* The logical tab order of the input.
|
|
2205
|
+
* Defaults to 0
|
|
2206
|
+
*/
|
|
2207
|
+
tabindex: {
|
|
2208
|
+
type: StringConstructor;
|
|
2209
|
+
default: string;
|
|
2210
|
+
};
|
|
2211
|
+
/**
|
|
2212
|
+
* Whether the input is rounded.
|
|
2213
|
+
* Defaults to false
|
|
2214
|
+
*/
|
|
2215
|
+
rounded: {
|
|
2216
|
+
type: BooleanConstructor;
|
|
2217
|
+
default: boolean;
|
|
2218
|
+
};
|
|
2219
|
+
}, {
|
|
2220
|
+
uuid: string;
|
|
2221
|
+
inputBaseClass: vue.Ref<string>;
|
|
2222
|
+
dateModel: vue.WritableComputedRef<string | Date | {
|
|
2223
|
+
start: string;
|
|
2224
|
+
end: string;
|
|
2225
|
+
} | undefined>;
|
|
2226
|
+
primaryFade5: string;
|
|
2227
|
+
primaryFade10: string;
|
|
2228
|
+
primaryFade20: string;
|
|
2229
|
+
primaryFade30: string;
|
|
2230
|
+
primaryFade40: string;
|
|
2231
|
+
primaryFade50: string;
|
|
2232
|
+
primaryFade70: string;
|
|
2233
|
+
primaryFade80: string;
|
|
2234
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.VNodeProps & vue.AllowedComponentProps & vue.ComponentCustomProps, Readonly<vue.ExtractPropTypes<{
|
|
2235
|
+
/**
|
|
2236
|
+
* The date-picker v-model
|
|
2237
|
+
*/
|
|
2238
|
+
modelValue: {
|
|
2239
|
+
type: PropType<string | Date | {
|
|
2240
|
+
start: string;
|
|
2241
|
+
end: string;
|
|
2242
|
+
}>;
|
|
2243
|
+
};
|
|
2244
|
+
/**
|
|
2245
|
+
* The name of the input field. Must be unique per form.
|
|
2246
|
+
*/
|
|
2247
|
+
name: {
|
|
2248
|
+
type: StringConstructor;
|
|
2249
|
+
required: true;
|
|
2250
|
+
};
|
|
2251
|
+
/**
|
|
2252
|
+
* Label for the input. Also renders to an aria-label attribute
|
|
2253
|
+
*/
|
|
2254
|
+
label: {
|
|
2255
|
+
type: StringConstructor;
|
|
2256
|
+
};
|
|
2257
|
+
/**
|
|
2258
|
+
* The placeholder text of the input
|
|
2259
|
+
*/
|
|
2260
|
+
placeholder: {
|
|
2261
|
+
type: StringConstructor;
|
|
2262
|
+
};
|
|
2263
|
+
/**
|
|
2264
|
+
* The placeholder text of the starting range input
|
|
2265
|
+
*/
|
|
2266
|
+
startPlaceholder: {
|
|
2267
|
+
type: StringConstructor;
|
|
2268
|
+
};
|
|
2269
|
+
/**
|
|
2270
|
+
* The placeholder text of the ending range input
|
|
2271
|
+
*/
|
|
2272
|
+
endPlaceholder: {
|
|
2273
|
+
type: StringConstructor;
|
|
2274
|
+
};
|
|
2275
|
+
/**
|
|
2276
|
+
* Whether to enable the date range inputs
|
|
2277
|
+
*/
|
|
2278
|
+
isRange: {
|
|
2279
|
+
type: BooleanConstructor;
|
|
2280
|
+
default: boolean;
|
|
2281
|
+
};
|
|
2282
|
+
/**
|
|
2283
|
+
* Start input label when is-range
|
|
2284
|
+
*/
|
|
2285
|
+
startLabel: {
|
|
2286
|
+
type: StringConstructor;
|
|
2287
|
+
};
|
|
2288
|
+
/**
|
|
2289
|
+
* End input label when is-range
|
|
2290
|
+
*/
|
|
2291
|
+
endLabel: {
|
|
2292
|
+
type: StringConstructor;
|
|
2293
|
+
};
|
|
2294
|
+
/**
|
|
2295
|
+
* The logical tab order of the input.
|
|
2296
|
+
* Defaults to 0
|
|
2297
|
+
*/
|
|
2298
|
+
tabindex: {
|
|
2299
|
+
type: StringConstructor;
|
|
2300
|
+
default: string;
|
|
2301
|
+
};
|
|
2302
|
+
/**
|
|
2303
|
+
* Whether the input is rounded.
|
|
2304
|
+
* Defaults to false
|
|
2305
|
+
*/
|
|
2306
|
+
rounded: {
|
|
2307
|
+
type: BooleanConstructor;
|
|
2308
|
+
default: boolean;
|
|
2309
|
+
};
|
|
2310
|
+
}>> & {
|
|
2311
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2312
|
+
}, {
|
|
2313
|
+
isRange: boolean;
|
|
2314
|
+
tabindex: string;
|
|
2315
|
+
rounded: boolean;
|
|
2316
|
+
}>;
|
|
2317
|
+
|
|
2126
2318
|
declare const __default__$1: vue.DefineComponent<{
|
|
2127
2319
|
/**
|
|
2128
2320
|
* The animation-iteration-count CSS property of the pulse animation.
|
|
@@ -2195,4 +2387,4 @@ declare const install: Exclude<Plugin['install'], undefined>;
|
|
|
2195
2387
|
|
|
2196
2388
|
declare module '@frollo/frollo-web-ui/icons' { }
|
|
2197
2389
|
|
|
2198
|
-
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, __default__$
|
|
2390
|
+
export { ButtonAnimation, ButtonDefinition, ButtonDefinitionList, ButtonSize, ButtonSizes, ButtonTypeAttribute, ButtonVariantName, __default__$3 as FwAccordion, FwAccordionProps, _default$4 as FwBarChart, FwBarChartProps, FwBarGraphData, _default$i as FwButton, FwButtonProps, _default$j as FwCard, FwCardProps, _default$l as FwCheckbox, FwCheckboxProps, __default__$2 as FwDatePicker, FwDatePickerProps, _default$2 as FwDrawer, FwDrawerProps, _default$k as FwDropdown, FwDropdownOption, FwDropdownProps, __default__$1 as FwEmailPulse, _default$a as FwImage, FwImageProps, _default$m as FwInput, FwInputProps, FwInputType, _default$9 as FwLoadingBar, _default$8 as FwLoadingCard, _default as FwLoadingSpinner, _default$7 as FwLoadingTable, _default$e as FwModal, FwModalProps, _default$h as FwNavigationMenu, _default$d as FwProgressBar, _default$1 as FwProviderList, FwProviderListProps, _default$3 as FwSidebarMenu, FwSidebarMenuItem, __default__ as FwSuccessPulse, _default$f as FwTab, __default__$4 as FwTable, FwTableFormatFunction, _default$c as FwTableHead, FwTableItem, FwTableItemOptions, FwTableProps, _default$b as FwTableRow, FwTableSort, _default$g as FwTabs, __default__$5 as FwTag, FwTagProps, _default$6 as FwToast, FwToastProps, _default$5 as FwTransactionsCard, FwTransactionsCardProps, ModalServiceProps, NavMenuItem, ProgressBarStep, TagDefinition, TagDefinitionList, TagSize, TagSizes, TagVariantName, ToastPosition, ToastServiceProps, ToastType, ToastTypes, install as default, modalService, toastService };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@frollo/frollo-web-ui",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.4",
|
|
4
4
|
"description": "Frollo's UI library for components, utilities and configs",
|
|
5
5
|
"exports": {
|
|
6
6
|
"./icons": "./icons/index.ts",
|
|
@@ -35,6 +35,7 @@
|
|
|
35
35
|
"@babel/core": "^7.17.5",
|
|
36
36
|
"@babel/plugin-proposal-private-property-in-object": "^7.21.11",
|
|
37
37
|
"@geometricpanda/storybook-addon-iframe": "^0.2.1",
|
|
38
|
+
"@popperjs/core": "^2.11.8",
|
|
38
39
|
"@rollup/plugin-alias": "^3.1.9",
|
|
39
40
|
"@rollup/plugin-babel": "^5.3.0",
|
|
40
41
|
"@rollup/plugin-commonjs": "^21.0.1",
|
|
@@ -84,6 +85,7 @@
|
|
|
84
85
|
"tailwindcss": "^3.0.23",
|
|
85
86
|
"ts-jest": "^28.0.5",
|
|
86
87
|
"typescript": "^4.7.4",
|
|
88
|
+
"v-calendar": "^3.1.2",
|
|
87
89
|
"vee-validate": "^4.5.9",
|
|
88
90
|
"vue-chartjs": "^5.2.0",
|
|
89
91
|
"vue-loader": "^16.8.3",
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import 'v-calendar/style.css';
|
|
3
|
+
declare const __default__: import("vue").DefineComponent<{
|
|
4
|
+
/**
|
|
5
|
+
* The date-picker v-model
|
|
6
|
+
*/
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: PropType<string | Date | {
|
|
9
|
+
start: string;
|
|
10
|
+
end: string;
|
|
11
|
+
}>;
|
|
12
|
+
};
|
|
13
|
+
/**
|
|
14
|
+
* The name of the input field. Must be unique per form.
|
|
15
|
+
*/
|
|
16
|
+
name: {
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
required: true;
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* Label for the input. Also renders to an aria-label attribute
|
|
22
|
+
*/
|
|
23
|
+
label: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* The placeholder text of the input
|
|
28
|
+
*/
|
|
29
|
+
placeholder: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* The placeholder text of the starting range input
|
|
34
|
+
*/
|
|
35
|
+
startPlaceholder: {
|
|
36
|
+
type: StringConstructor;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The placeholder text of the ending range input
|
|
40
|
+
*/
|
|
41
|
+
endPlaceholder: {
|
|
42
|
+
type: StringConstructor;
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* Whether to enable the date range inputs
|
|
46
|
+
*/
|
|
47
|
+
isRange: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
/**
|
|
52
|
+
* Start input label when is-range
|
|
53
|
+
*/
|
|
54
|
+
startLabel: {
|
|
55
|
+
type: StringConstructor;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* End input label when is-range
|
|
59
|
+
*/
|
|
60
|
+
endLabel: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* The logical tab order of the input.
|
|
65
|
+
* Defaults to 0
|
|
66
|
+
*/
|
|
67
|
+
tabindex: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* Whether the input is rounded.
|
|
73
|
+
* Defaults to false
|
|
74
|
+
*/
|
|
75
|
+
rounded: {
|
|
76
|
+
type: BooleanConstructor;
|
|
77
|
+
default: boolean;
|
|
78
|
+
};
|
|
79
|
+
}, {
|
|
80
|
+
uuid: string;
|
|
81
|
+
inputBaseClass: import("vue").Ref<string>;
|
|
82
|
+
dateModel: import("vue").WritableComputedRef<string | Date | {
|
|
83
|
+
start: string;
|
|
84
|
+
end: string;
|
|
85
|
+
} | undefined>;
|
|
86
|
+
primaryFade5: string;
|
|
87
|
+
primaryFade10: string;
|
|
88
|
+
primaryFade20: string;
|
|
89
|
+
primaryFade30: string;
|
|
90
|
+
primaryFade40: string;
|
|
91
|
+
primaryFade50: string;
|
|
92
|
+
primaryFade70: string;
|
|
93
|
+
primaryFade80: string;
|
|
94
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
95
|
+
/**
|
|
96
|
+
* The date-picker v-model
|
|
97
|
+
*/
|
|
98
|
+
modelValue: {
|
|
99
|
+
type: PropType<string | Date | {
|
|
100
|
+
start: string;
|
|
101
|
+
end: string;
|
|
102
|
+
}>;
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* The name of the input field. Must be unique per form.
|
|
106
|
+
*/
|
|
107
|
+
name: {
|
|
108
|
+
type: StringConstructor;
|
|
109
|
+
required: true;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* Label for the input. Also renders to an aria-label attribute
|
|
113
|
+
*/
|
|
114
|
+
label: {
|
|
115
|
+
type: StringConstructor;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* The placeholder text of the input
|
|
119
|
+
*/
|
|
120
|
+
placeholder: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
};
|
|
123
|
+
/**
|
|
124
|
+
* The placeholder text of the starting range input
|
|
125
|
+
*/
|
|
126
|
+
startPlaceholder: {
|
|
127
|
+
type: StringConstructor;
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* The placeholder text of the ending range input
|
|
131
|
+
*/
|
|
132
|
+
endPlaceholder: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* Whether to enable the date range inputs
|
|
137
|
+
*/
|
|
138
|
+
isRange: {
|
|
139
|
+
type: BooleanConstructor;
|
|
140
|
+
default: boolean;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* Start input label when is-range
|
|
144
|
+
*/
|
|
145
|
+
startLabel: {
|
|
146
|
+
type: StringConstructor;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* End input label when is-range
|
|
150
|
+
*/
|
|
151
|
+
endLabel: {
|
|
152
|
+
type: StringConstructor;
|
|
153
|
+
};
|
|
154
|
+
/**
|
|
155
|
+
* The logical tab order of the input.
|
|
156
|
+
* Defaults to 0
|
|
157
|
+
*/
|
|
158
|
+
tabindex: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Whether the input is rounded.
|
|
164
|
+
* Defaults to false
|
|
165
|
+
*/
|
|
166
|
+
rounded: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
}>> & {
|
|
171
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
172
|
+
}, {
|
|
173
|
+
isRange: boolean;
|
|
174
|
+
tabindex: string;
|
|
175
|
+
rounded: boolean;
|
|
176
|
+
}>;
|
|
177
|
+
export default __default__;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export declare interface FwDatePickerProps {
|
|
2
|
+
modelValue: string | {
|
|
3
|
+
start: string;
|
|
4
|
+
end: string;
|
|
5
|
+
} | Date;
|
|
6
|
+
name: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
placeholder?: string;
|
|
9
|
+
isRange?: boolean;
|
|
10
|
+
startLabel?: string;
|
|
11
|
+
endLabel?: string;
|
|
12
|
+
startPlaceholder?: string;
|
|
13
|
+
endPlaceholder?: string;
|
|
14
|
+
tabindex?: string;
|
|
15
|
+
rounded?: boolean;
|
|
16
|
+
}
|
|
@@ -16,3 +16,4 @@ export * from '../components/fw-bar-chart/index.types';
|
|
|
16
16
|
export * from '../components/fw-sidebar-menu/index.types';
|
|
17
17
|
export * from '../components/fw-drawer/index.types';
|
|
18
18
|
export * from '../components/fw-provider-list/index.types';
|
|
19
|
+
export * from '../components/fw-date-picker/index.types';
|
|
@@ -5,5 +5,13 @@ export declare const useColours: () => {
|
|
|
5
5
|
fontFamily: string;
|
|
6
6
|
colorBody: string;
|
|
7
7
|
primaryFade5: string;
|
|
8
|
+
primaryFade10: string;
|
|
9
|
+
primaryFade20: string;
|
|
10
|
+
primaryFade30: string;
|
|
8
11
|
primaryFade40: string;
|
|
12
|
+
primaryFade50: string;
|
|
13
|
+
primaryFade60: string;
|
|
14
|
+
primaryFade70: string;
|
|
15
|
+
primaryFade80: string;
|
|
16
|
+
primaryFade90: string;
|
|
9
17
|
};
|
package/types/icons/index.d.ts
CHANGED
|
@@ -35,4 +35,6 @@ import ArrowDownSvg from './arrow-down.svg';
|
|
|
35
35
|
import SearchSvg from './search.svg';
|
|
36
36
|
import XMarkSvg from './xmark.svg';
|
|
37
37
|
import PenSvg from './pen.svg';
|
|
38
|
-
|
|
38
|
+
import CalendarSvg from './calendar.svg';
|
|
39
|
+
import CalendarDaySvg from './calendar-day.svg';
|
|
40
|
+
export { ViewSvg, GenerateSvg, ManageSvg, NotFoundSvg, EmailFilledSvg, AlertSvg, LockSvg, EyeSvg, EyeCrossedSvg, DownloadSvg, IdCardSvg, InfoCircleSvg, FileExclamationSvg, HourglassClockSvg, EnvelopeSvg, CheckSvg, ChevronUpSvg, ChevronDownSvg, ChevronRightSvg, ChevronLeftSvg, ErrorFilledSvg, LightBulbSvg, LandmarkSvg, CoinsSvg, CaretDownSvg, SortLightSvg, PlusSvg, UserSvg, LoadingSvg, BullseyeSvg, SolidCheckSvg, SolidXMarkSvg, ArrowSortSvg, ArrowDownSvg, SearchSvg, XMarkSvg, PenSvg, CalendarSvg, CalendarDaySvg };
|