@frollo/frollo-web-ui 8.3.0 → 8.4.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/cjs/index.js
CHANGED
|
@@ -36635,11 +36635,14 @@ styleInject(css_248z$3);__default__$2.render = render$4;
|
|
|
36635
36635
|
__default__$2.__scopeId = "data-v-6df01fae";var script$1 = vue.defineComponent({
|
|
36636
36636
|
name: 'FwPeriodSelector',
|
|
36637
36637
|
emits: [/** Fired on Click */
|
|
36638
|
-
'
|
|
36638
|
+
'update:modelValue'],
|
|
36639
36639
|
components: {
|
|
36640
36640
|
FwButton: script$h
|
|
36641
36641
|
},
|
|
36642
36642
|
props: {
|
|
36643
|
+
modelValue: {
|
|
36644
|
+
type: Number
|
|
36645
|
+
},
|
|
36643
36646
|
/**
|
|
36644
36647
|
* The available periods to be chosen in months.
|
|
36645
36648
|
*/
|
|
@@ -36657,18 +36660,20 @@ __default__$2.__scopeId = "data-v-6df01fae";var script$1 = vue.defineComponent({
|
|
|
36657
36660
|
}
|
|
36658
36661
|
}
|
|
36659
36662
|
},
|
|
36660
|
-
setup: function setup(
|
|
36661
|
-
var selectedPeriod = vue.ref();
|
|
36663
|
+
setup: function setup(props, ctx) {
|
|
36662
36664
|
var generateButtonLabel = function generateButtonLabel(month) {
|
|
36663
36665
|
return month === 1 ? month.toString() + ' month' : month.toString() + ' months';
|
|
36664
36666
|
};
|
|
36665
|
-
var
|
|
36666
|
-
|
|
36667
|
-
|
|
36668
|
-
|
|
36667
|
+
var selectedPeriod = vue.computed({
|
|
36668
|
+
get: function get() {
|
|
36669
|
+
return props.modelValue;
|
|
36670
|
+
},
|
|
36671
|
+
set: function set(period) {
|
|
36672
|
+
ctx.emit('update:modelValue', period);
|
|
36673
|
+
}
|
|
36674
|
+
});
|
|
36669
36675
|
return {
|
|
36670
36676
|
generateButtonLabel: generateButtonLabel,
|
|
36671
|
-
onClick: onClick,
|
|
36672
36677
|
selectedPeriod: selectedPeriod
|
|
36673
36678
|
};
|
|
36674
36679
|
}
|
|
@@ -36684,7 +36689,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36684
36689
|
"class": "hover:!border-button-primary-bg -m-[2px] flex-1",
|
|
36685
36690
|
size: _ctx.size,
|
|
36686
36691
|
onClick: function onClick($event) {
|
|
36687
|
-
return _ctx.
|
|
36692
|
+
return _ctx.selectedPeriod = period;
|
|
36688
36693
|
}
|
|
36689
36694
|
}, {
|
|
36690
36695
|
"default": vue.withCtx(function () {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, renderList, createBlock, withCtx, createTextVNode, toDisplayString } from 'vue';
|
|
2
2
|
import './fw-button.js';
|
|
3
3
|
import { s as script$1 } from './fw-button-LhSQ6Fx_.js';
|
|
4
4
|
import { s as styleInject } from './style-inject.es-tgCJW-Cu.js';
|
|
@@ -9,11 +9,14 @@ import './check--YD4Ts6g.js';
|
|
|
9
9
|
var script = defineComponent({
|
|
10
10
|
name: 'FwPeriodSelector',
|
|
11
11
|
emits: [/** Fired on Click */
|
|
12
|
-
'
|
|
12
|
+
'update:modelValue'],
|
|
13
13
|
components: {
|
|
14
14
|
FwButton: script$1
|
|
15
15
|
},
|
|
16
16
|
props: {
|
|
17
|
+
modelValue: {
|
|
18
|
+
type: Number
|
|
19
|
+
},
|
|
17
20
|
/**
|
|
18
21
|
* The available periods to be chosen in months.
|
|
19
22
|
*/
|
|
@@ -31,18 +34,20 @@ var script = defineComponent({
|
|
|
31
34
|
}
|
|
32
35
|
}
|
|
33
36
|
},
|
|
34
|
-
setup: function setup(
|
|
35
|
-
var selectedPeriod = ref();
|
|
37
|
+
setup: function setup(props, ctx) {
|
|
36
38
|
var generateButtonLabel = function generateButtonLabel(month) {
|
|
37
39
|
return month === 1 ? month.toString() + ' month' : month.toString() + ' months';
|
|
38
40
|
};
|
|
39
|
-
var
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
41
|
+
var selectedPeriod = computed({
|
|
42
|
+
get: function get() {
|
|
43
|
+
return props.modelValue;
|
|
44
|
+
},
|
|
45
|
+
set: function set(period) {
|
|
46
|
+
ctx.emit('update:modelValue', period);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
43
49
|
return {
|
|
44
50
|
generateButtonLabel: generateButtonLabel,
|
|
45
|
-
onClick: onClick,
|
|
46
51
|
selectedPeriod: selectedPeriod
|
|
47
52
|
};
|
|
48
53
|
}
|
|
@@ -60,7 +65,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
60
65
|
"class": "hover:!border-button-primary-bg -m-[2px] flex-1",
|
|
61
66
|
size: _ctx.size,
|
|
62
67
|
onClick: function onClick($event) {
|
|
63
|
-
return _ctx.
|
|
68
|
+
return _ctx.selectedPeriod = period;
|
|
64
69
|
}
|
|
65
70
|
}, {
|
|
66
71
|
"default": withCtx(function () {
|
package/frollo-web-ui.esm.js
CHANGED
|
@@ -37098,11 +37098,14 @@ __default__$2.__scopeId = "data-v-6df01fae";
|
|
|
37098
37098
|
var script$1 = defineComponent({
|
|
37099
37099
|
name: 'FwPeriodSelector',
|
|
37100
37100
|
emits: [/** Fired on Click */
|
|
37101
|
-
'
|
|
37101
|
+
'update:modelValue'],
|
|
37102
37102
|
components: {
|
|
37103
37103
|
FwButton: script$h
|
|
37104
37104
|
},
|
|
37105
37105
|
props: {
|
|
37106
|
+
modelValue: {
|
|
37107
|
+
type: Number
|
|
37108
|
+
},
|
|
37106
37109
|
/**
|
|
37107
37110
|
* The available periods to be chosen in months.
|
|
37108
37111
|
*/
|
|
@@ -37120,18 +37123,20 @@ var script$1 = defineComponent({
|
|
|
37120
37123
|
}
|
|
37121
37124
|
}
|
|
37122
37125
|
},
|
|
37123
|
-
setup: function setup(
|
|
37124
|
-
var selectedPeriod = ref();
|
|
37126
|
+
setup: function setup(props, ctx) {
|
|
37125
37127
|
var generateButtonLabel = function generateButtonLabel(month) {
|
|
37126
37128
|
return month === 1 ? month.toString() + ' month' : month.toString() + ' months';
|
|
37127
37129
|
};
|
|
37128
|
-
var
|
|
37129
|
-
|
|
37130
|
-
|
|
37131
|
-
|
|
37130
|
+
var selectedPeriod = computed({
|
|
37131
|
+
get: function get() {
|
|
37132
|
+
return props.modelValue;
|
|
37133
|
+
},
|
|
37134
|
+
set: function set(period) {
|
|
37135
|
+
ctx.emit('update:modelValue', period);
|
|
37136
|
+
}
|
|
37137
|
+
});
|
|
37132
37138
|
return {
|
|
37133
37139
|
generateButtonLabel: generateButtonLabel,
|
|
37134
|
-
onClick: onClick,
|
|
37135
37140
|
selectedPeriod: selectedPeriod
|
|
37136
37141
|
};
|
|
37137
37142
|
}
|
|
@@ -37149,7 +37154,7 @@ function render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
37149
37154
|
"class": "hover:!border-button-primary-bg -m-[2px] flex-1",
|
|
37150
37155
|
size: _ctx.size,
|
|
37151
37156
|
onClick: function onClick($event) {
|
|
37152
|
-
return _ctx.
|
|
37157
|
+
return _ctx.selectedPeriod = period;
|
|
37153
37158
|
}
|
|
37154
37159
|
}, {
|
|
37155
37160
|
"default": withCtx(function () {
|
package/index.d.ts
CHANGED
|
@@ -2872,6 +2872,9 @@ declare const __default__$2: vue.DefineComponent<{
|
|
|
2872
2872
|
}, {}>;
|
|
2873
2873
|
|
|
2874
2874
|
declare const _default$2: vue.DefineComponent<{
|
|
2875
|
+
modelValue: {
|
|
2876
|
+
type: PropType<number | undefined>;
|
|
2877
|
+
};
|
|
2875
2878
|
/**
|
|
2876
2879
|
* The available periods to be chosen in months.
|
|
2877
2880
|
*/
|
|
@@ -2888,9 +2891,11 @@ declare const _default$2: vue.DefineComponent<{
|
|
|
2888
2891
|
};
|
|
2889
2892
|
}, {
|
|
2890
2893
|
generateButtonLabel: (month: number) => string;
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2894
|
+
selectedPeriod: vue.WritableComputedRef<number | undefined>;
|
|
2895
|
+
}, unknown, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
2896
|
+
modelValue: {
|
|
2897
|
+
type: PropType<number | undefined>;
|
|
2898
|
+
};
|
|
2894
2899
|
/**
|
|
2895
2900
|
* The available periods to be chosen in months.
|
|
2896
2901
|
*/
|
|
@@ -2906,7 +2911,7 @@ declare const _default$2: vue.DefineComponent<{
|
|
|
2906
2911
|
validator: (value: string) => boolean;
|
|
2907
2912
|
};
|
|
2908
2913
|
}>> & {
|
|
2909
|
-
|
|
2914
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
2910
2915
|
}, {
|
|
2911
2916
|
size: ButtonSize;
|
|
2912
2917
|
}, {}>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { PropType } from 'vue';
|
|
2
2
|
import { ButtonSize } from '../fw-button/index.types';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
modelValue: {
|
|
5
|
+
type: PropType<number | undefined>;
|
|
6
|
+
};
|
|
4
7
|
/**
|
|
5
8
|
* The available periods to be chosen in months.
|
|
6
9
|
*/
|
|
@@ -17,9 +20,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
20
|
};
|
|
18
21
|
}, {
|
|
19
22
|
generateButtonLabel: (month: number) => string;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
+
selectedPeriod: import("vue").WritableComputedRef<number | undefined>;
|
|
24
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
modelValue: {
|
|
26
|
+
type: PropType<number | undefined>;
|
|
27
|
+
};
|
|
23
28
|
/**
|
|
24
29
|
* The available periods to be chosen in months.
|
|
25
30
|
*/
|
|
@@ -35,7 +40,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
40
|
validator: (value: string) => boolean;
|
|
36
41
|
};
|
|
37
42
|
}>> & {
|
|
38
|
-
|
|
43
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
39
44
|
}, {
|
|
40
45
|
size: ButtonSize;
|
|
41
46
|
}, {}>;
|
package/web-components/index.js
CHANGED
|
@@ -48661,11 +48661,14 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
48661
48661
|
var script$1 = defineComponent({
|
|
48662
48662
|
name: 'FwPeriodSelector',
|
|
48663
48663
|
emits: [/** Fired on Click */
|
|
48664
|
-
'
|
|
48664
|
+
'update:modelValue'],
|
|
48665
48665
|
components: {
|
|
48666
48666
|
FwButton: script$h
|
|
48667
48667
|
},
|
|
48668
48668
|
props: {
|
|
48669
|
+
modelValue: {
|
|
48670
|
+
type: Number
|
|
48671
|
+
},
|
|
48669
48672
|
/**
|
|
48670
48673
|
* The available periods to be chosen in months.
|
|
48671
48674
|
*/
|
|
@@ -48683,18 +48686,20 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
48683
48686
|
}
|
|
48684
48687
|
}
|
|
48685
48688
|
},
|
|
48686
|
-
setup: function setup(
|
|
48687
|
-
var selectedPeriod = ref();
|
|
48689
|
+
setup: function setup(props, ctx) {
|
|
48688
48690
|
var generateButtonLabel = function generateButtonLabel(month) {
|
|
48689
48691
|
return month === 1 ? month.toString() + ' month' : month.toString() + ' months';
|
|
48690
48692
|
};
|
|
48691
|
-
var
|
|
48692
|
-
|
|
48693
|
-
|
|
48694
|
-
|
|
48693
|
+
var selectedPeriod = computed({
|
|
48694
|
+
get: function get() {
|
|
48695
|
+
return props.modelValue;
|
|
48696
|
+
},
|
|
48697
|
+
set: function set(period) {
|
|
48698
|
+
ctx.emit('update:modelValue', period);
|
|
48699
|
+
}
|
|
48700
|
+
});
|
|
48695
48701
|
return {
|
|
48696
48702
|
generateButtonLabel: generateButtonLabel,
|
|
48697
|
-
onClick: onClick,
|
|
48698
48703
|
selectedPeriod: selectedPeriod
|
|
48699
48704
|
};
|
|
48700
48705
|
}
|
|
@@ -48712,7 +48717,7 @@ Expected function or array of functions, received type ${typeof value}.`
|
|
|
48712
48717
|
"class": "hover:!border-button-primary-bg -m-[2px] flex-1",
|
|
48713
48718
|
size: _ctx.size,
|
|
48714
48719
|
onClick: function onClick($event) {
|
|
48715
|
-
return _ctx.
|
|
48720
|
+
return _ctx.selectedPeriod = period;
|
|
48716
48721
|
}
|
|
48717
48722
|
}, {
|
|
48718
48723
|
"default": withCtx(function () {
|