quasar-ui-sellmate-ui-kit 2.2.13 → 2.2.15

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/dist/index.umd.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * quasar-ui-sellmate-ui-kit v2.2.12
2
+ * quasar-ui-sellmate-ui-kit v2.2.14
3
3
  * (c) 2023 Sellmate Dev Team <dev@sellmate.co.kr>
4
4
  * Released under the MIT License.
5
5
  */
@@ -741,225 +741,224 @@
741
741
  return model;
742
742
  }
743
743
 
744
- var locale$4 = {
745
- ko: {
746
- today: '오늘',
747
- daysShort: ['일', '월', '화', '수', '목', '금', '토'],
748
- months: [
749
- '1월',
750
- '2월',
751
- '3월',
752
- '4월',
753
- '5월',
754
- '6월',
755
- '7월',
756
- '8월',
757
- '9월',
758
- '10월',
759
- '11월',
760
- '12월' ],
761
- monthsShort: [
762
- '1월',
763
- '2월',
764
- '3월',
765
- '4월',
766
- '5월',
767
- '6월',
768
- '7월',
769
- '8월',
770
- '9월',
771
- '10월',
772
- '11월',
773
- '12월' ],
774
- },
775
- ja: {
776
- today: '今日',
777
- daysShort: ['日', '月', '火', '水', '木', '金', '土'],
778
- months: [
779
- '1月',
780
- '2月',
781
- '3月',
782
- '4月',
783
- '5月',
784
- '6月',
785
- '7月',
786
- '8月',
787
- '9月',
788
- '10月',
789
- '11月',
790
- '12月' ],
791
- monthsShort: [
792
- '1月',
793
- '2月',
794
- '3月',
795
- '4月',
796
- '5月',
797
- '6月',
798
- '7月',
799
- '8月',
800
- '9月',
801
- '10月',
802
- '11月',
803
- '12月' ],
804
- },
805
- };
806
-
807
- var script$v = vue.defineComponent({
808
- name: 'SDateRangePicker',
809
- components: {
810
- QInput: quasar.QInput,
811
- QBtn: quasar.QBtn,
812
- QDate: quasar.QDate,
813
- QMenu: quasar.QMenu,
814
- QIcon: quasar.QIcon,
815
- QSeparator: quasar.QSeparator,
816
- },
817
- props: {
818
- isDisable: Boolean,
819
- insideLabel: String,
820
- useInput: Boolean,
821
- rangeDate: {
822
- type: [Number, Object, null],
823
- /**
824
- * 얼마 후인지 제한
825
- * 기본 디폴트 month
826
- * day, month, year
827
- */
828
- default: function () { return 1; },
829
- },
830
- modelValue: {
831
- type: [String, Object],
832
- },
833
- useDelete: {
834
- type: Boolean,
835
- default: false,
836
- },
837
- lang: {
838
- type: String,
839
- default: '',
840
- require: false,
841
- },
842
- // 날짜 제한
843
- dateLimit: {
844
- type: Object,
845
- default: function () { return ({ from: '', to: '' }); },
846
- },
847
- },
744
+ var locale$4 = {
745
+ ko: {
746
+ today: '오늘',
747
+ daysShort: ['일', '월', '화', '수', '목', '금', '토'],
748
+ months: [
749
+ '1월',
750
+ '2월',
751
+ '3월',
752
+ '4월',
753
+ '5월',
754
+ '6월',
755
+ '7월',
756
+ '8월',
757
+ '9월',
758
+ '10월',
759
+ '11월',
760
+ '12월' ],
761
+ monthsShort: [
762
+ '1월',
763
+ '2월',
764
+ '3월',
765
+ '4월',
766
+ '5월',
767
+ '6월',
768
+ '7월',
769
+ '8월',
770
+ '9월',
771
+ '10월',
772
+ '11월',
773
+ '12월' ],
774
+ },
775
+ ja: {
776
+ today: '今日',
777
+ daysShort: ['日', '月', '火', '水', '木', '金', '土'],
778
+ months: [
779
+ '1月',
780
+ '2月',
781
+ '3月',
782
+ '4月',
783
+ '5月',
784
+ '6月',
785
+ '7月',
786
+ '8月',
787
+ '9月',
788
+ '10月',
789
+ '11月',
790
+ '12月' ],
791
+ monthsShort: [
792
+ '1月',
793
+ '2月',
794
+ '3月',
795
+ '4月',
796
+ '5月',
797
+ '6月',
798
+ '7月',
799
+ '8月',
800
+ '9月',
801
+ '10月',
802
+ '11月',
803
+ '12月' ],
804
+ },
805
+ };
806
+
807
+ var script$v = vue.defineComponent({
808
+ name: 'SDateRangePicker',
809
+ components: {
810
+ QInput: quasar.QInput,
811
+ QBtn: quasar.QBtn,
812
+ QDate: quasar.QDate,
813
+ QMenu: quasar.QMenu,
814
+ QIcon: quasar.QIcon,
815
+ QSeparator: quasar.QSeparator,
816
+ },
817
+ props: {
818
+ isDisable: Boolean,
819
+ insideLabel: String,
820
+ useInput: Boolean,
821
+ rangeDate: {
822
+ type: [Number, Object, null],
823
+ /**
824
+ * 얼마 후인지 제한
825
+ * 기본 디폴트 month
826
+ * day, month, year
827
+ */
828
+ default: function () { return 1; },
829
+ },
830
+ modelValue: {
831
+ type: [String, Object],
832
+ },
833
+ useDelete: {
834
+ type: Boolean,
835
+ default: false,
836
+ },
837
+ lang: {
838
+ type: String,
839
+ default: '',
840
+ require: false,
841
+ },
842
+ // 날짜 제한
843
+ dateLimit: {
844
+ type: Object,
845
+ default: function () { return ({ from: '', to: '' }); },
846
+ },
847
+ },
848
848
  setup: function setup(props, ref$1) {
849
849
  var emit = ref$1.emit;
850
-
851
- var calendarOpen = vue.ref(false);
852
- var dateValue = useModelBinder(props);
853
- var inputDate = vue.ref(((dateValue.value.from) + " ~ " + (dateValue.value.to)));
854
- var dateMenuRef = vue.ref(null);
855
-
856
- function resetDate() {
857
- var todayReset = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
858
- dateValue.value.from = quasar.date.formatDate(todayReset, 'YYYY-MM-DD');
859
- dateValue.value.to = quasar.date.formatDate(todayReset, 'YYYY-MM-DD');
860
- }
861
-
862
- function deleteDate() {
863
- if (dateValue.value.from && dateValue.value.to) {
864
- dateValue.value.from = null;
865
- dateValue.value.to = null;
866
- emit('update:modelValue', dateValue.value);
867
- }
868
- }
869
-
870
- vue.watch(
871
- function () { return props.isDisable; },
872
- function (val) {
873
- if (val) {
874
- dateMenuRef.value.hide();
875
- }
876
- }
877
- );
878
-
879
- var startDate = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
880
- var endDate = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
881
-
882
- function getRangeStartDay(from) {
883
- startDate.value = from;
884
- }
885
- function getRangeEndDay(to) {
886
- endDate.value = to;
887
- }
888
-
889
- function optionsStartFn(day) {
890
- if (props.rangeDate === null) { return true; }
891
- var maxFromDate = quasar.date.formatDate(
892
- quasar.date.subtractFromDate(
893
- new Date(dateValue.value.to),
894
- typeof props.rangeDate === 'number'
895
- ? { month: props.rangeDate }
896
- : props.rangeDate
897
- ),
898
- 'YYYY/MM/DD'
899
- );
900
- console.log('maxFromDate', maxFromDate);
901
-
902
- if (props.dateLimit.from) {
903
- maxFromDate = quasar.date.formatDate(
904
- new Date(
905
- Math.max(new Date(maxFromDate), new Date(props.dateLimit.from))
906
- ),
907
- 'YYYY/MM/DD'
908
- );
909
- }
910
-
911
- if (!dateValue.value.to) {
912
- return true;
913
- }
914
-
915
- var dayTo = quasar.date.formatDate(dateValue.value.to, 'YYYY/MM/DD');
916
- return maxFromDate <= day && day <= dayTo;
917
- }
918
-
919
- function optionsEndFn(day) {
920
- var todayForat = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
921
- if (props.rangeDate === null) { return day <= todayForat; }
922
- var dayFrom = quasar.date.formatDate(dateValue.value.from, 'YYYY/MM/DD');
923
- var maxToDate = quasar.date.formatDate(
924
- quasar.date.addToDate(
925
- new Date(dateValue.value.from),
926
- typeof props.rangeDate === 'number'
927
- ? { month: props.rangeDate }
928
- : props.rangeDate
929
- ),
930
- 'YYYY/MM/DD'
931
- );
932
-
933
- if (props.dateLimit.to) {
934
- maxToDate = quasar.date.formatDate(
935
- new Date(
936
- Math.min(new Date(maxToDate), new Date(props.dateLimit.to))
937
- ),
938
- 'YYYY/MM/DD'
939
- );
940
- }
941
- if (!dateValue.value.from) {
942
- return true;
943
- }
944
- return dayFrom <= day && day <= maxToDate;
945
- }
946
-
947
- return {
948
- dateRangeIcon: dateRangeIcon,
949
- locale: locale$4,
950
- calendarOpen: calendarOpen,
951
- dateValue: dateValue,
952
- inputDate: inputDate,
953
- resetDate: resetDate,
954
- getRangeStartDay: getRangeStartDay,
955
- getRangeEndDay: getRangeEndDay,
956
- optionsStartFn: optionsStartFn,
957
- optionsEndFn: optionsEndFn,
958
- closeIcon: closeIcon,
959
- deleteDate: deleteDate,
960
- dateMenuRef: dateMenuRef,
961
- };
962
- },
850
+
851
+ var calendarOpen = vue.ref(false);
852
+ var dateValue = useModelBinder(props);
853
+ var inputDate = vue.ref(((dateValue.value.from) + " ~ " + (dateValue.value.to)));
854
+ var dateMenuRef = vue.ref(null);
855
+
856
+ function resetDate() {
857
+ var todayReset = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
858
+ dateValue.value.from = quasar.date.formatDate(todayReset, 'YYYY-MM-DD');
859
+ dateValue.value.to = quasar.date.formatDate(todayReset, 'YYYY-MM-DD');
860
+ }
861
+
862
+ function deleteDate() {
863
+ if (dateValue.value.from && dateValue.value.to) {
864
+ dateValue.value.from = null;
865
+ dateValue.value.to = null;
866
+ emit('update:modelValue', dateValue.value);
867
+ }
868
+ }
869
+
870
+ vue.watch(
871
+ function () { return props.isDisable; },
872
+ function (val) {
873
+ if (val) {
874
+ dateMenuRef.value.hide();
875
+ }
876
+ }
877
+ );
878
+
879
+ var startDate = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
880
+ var endDate = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
881
+
882
+ function getRangeStartDay(from) {
883
+ startDate.value = from;
884
+ }
885
+ function getRangeEndDay(to) {
886
+ endDate.value = to;
887
+ }
888
+
889
+ function optionsStartFn(day) {
890
+ if (props.rangeDate === null) { return true; }
891
+ var maxFromDate = quasar.date.formatDate(
892
+ quasar.date.subtractFromDate(
893
+ new Date(dateValue.value.to),
894
+ typeof props.rangeDate === 'number'
895
+ ? { month: props.rangeDate }
896
+ : props.rangeDate
897
+ ),
898
+ 'YYYY/MM/DD'
899
+ );
900
+
901
+ if (props.dateLimit.from) {
902
+ maxFromDate = quasar.date.formatDate(
903
+ new Date(
904
+ Math.max(new Date(maxFromDate), new Date(props.dateLimit.from))
905
+ ),
906
+ 'YYYY/MM/DD'
907
+ );
908
+ }
909
+
910
+ if (!dateValue.value.to) {
911
+ return true;
912
+ }
913
+
914
+ var dayTo = quasar.date.formatDate(dateValue.value.to, 'YYYY/MM/DD');
915
+ return maxFromDate <= day && day <= dayTo;
916
+ }
917
+
918
+ function optionsEndFn(day) {
919
+ var todayForat = quasar.date.formatDate(new Date(), 'YYYY/MM/DD');
920
+ if (props.rangeDate === null) { return day <= todayForat; }
921
+ var dayFrom = quasar.date.formatDate(dateValue.value.from, 'YYYY/MM/DD');
922
+ var maxToDate = quasar.date.formatDate(
923
+ quasar.date.addToDate(
924
+ new Date(dateValue.value.from),
925
+ typeof props.rangeDate === 'number'
926
+ ? { month: props.rangeDate }
927
+ : props.rangeDate
928
+ ),
929
+ 'YYYY/MM/DD'
930
+ );
931
+
932
+ if (props.dateLimit.to) {
933
+ maxToDate = quasar.date.formatDate(
934
+ new Date(
935
+ Math.min(new Date(maxToDate), new Date(props.dateLimit.to))
936
+ ),
937
+ 'YYYY/MM/DD'
938
+ );
939
+ }
940
+ if (!dateValue.value.from) {
941
+ return true;
942
+ }
943
+ return dayFrom <= day && day <= maxToDate;
944
+ }
945
+
946
+ return {
947
+ dateRangeIcon: dateRangeIcon,
948
+ locale: locale$4,
949
+ calendarOpen: calendarOpen,
950
+ dateValue: dateValue,
951
+ inputDate: inputDate,
952
+ resetDate: resetDate,
953
+ getRangeStartDay: getRangeStartDay,
954
+ getRangeEndDay: getRangeEndDay,
955
+ optionsStartFn: optionsStartFn,
956
+ optionsEndFn: optionsEndFn,
957
+ closeIcon: closeIcon,
958
+ deleteDate: deleteDate,
959
+ dateMenuRef: dateMenuRef,
960
+ };
961
+ },
963
962
  });
964
963
 
965
964
  var _hoisted_1$j = { class: "date-picker-label" };
@@ -988,9 +987,9 @@
988
987
  return (vue.openBlock(), vue.createBlock(_component_q_input, {
989
988
  dense: "",
990
989
  outlined: "",
991
- class: vue.normalizeClass([{
992
- 'text-Grey_Default bg-Grey_Lighten-5': _ctx.isDisable,
993
- 's-date-range-picker--inside': _ctx.insideLabel,
990
+ class: vue.normalizeClass([{
991
+ 'text-Grey_Default bg-Grey_Lighten-5': _ctx.isDisable,
992
+ 's-date-range-picker--inside': _ctx.insideLabel,
994
993
  }, "q-pa-none s-date-range-picker bg-white"]),
995
994
  readonly: "",
996
995
  modelValue: _ctx.inputDate,
@@ -1991,6 +1990,14 @@
1991
1990
  ]; }),
1992
1991
  _: 2
1993
1992
  }, [
1993
+ vue.renderList(_ctx.$slots, function (_, slotName, index) {
1994
+ return {
1995
+ name: slotName,
1996
+ fn: vue.withCtx(function (data) { return [
1997
+ vue.renderSlot(_ctx.$slots, slotName, vue.mergeProps({ key: index }, data))
1998
+ ]; })
1999
+ }
2000
+ }),
1994
2001
  (_ctx.clearable)
1995
2002
  ? {
1996
2003
  name: "append",
@@ -7187,7 +7194,7 @@
7187
7194
 
7188
7195
  /* eslint-disable no-multiple-empty-lines */
7189
7196
 
7190
- var version = '2.2.12';
7197
+ var version = '2.2.14';
7191
7198
 
7192
7199
  function install(app) {
7193
7200
  app.component('s-breadcrumbs', script$D);