@mtes-mct/monitor-ui 5.0.0 → 5.1.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 +19 -0
- package/index.js +65 -0
- package/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,22 @@
|
|
|
1
|
+
# [5.0.0](https://github.com/MTES-MCT/monitor-ui/compare/v4.1.0...v5.0.0) (2023-04-11)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
* fix!: handle DST correctly in date-related utils & fields ([377450b](https://github.com/MTES-MCT/monitor-ui/commit/377450bca0f2c90d7cf1331da3e9f8a50042bb33))
|
|
5
|
+
* fix(fields)!: make DatePicker & DateRangePicker onChange value undefined when cleared ([b8a0f09](https://github.com/MTES-MCT/monitor-ui/commit/b8a0f09aae3638bebccced2c8c3a0f39d5caa8ab))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
* **fields:** add isEndDate prop to DatePicker ([418290e](https://github.com/MTES-MCT/monitor-ui/commit/418290e94f8f7eea9a282ac2d610b57761af2c8b))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
### BREAKING CHANGES
|
|
14
|
+
|
|
15
|
+
* `dayjs` export is now named `customDayjs`.
|
|
16
|
+
* rsuite-override.css doesn't include calendar-related CSS anymore.
|
|
17
|
+
* DatePicker & DateRangePicker onChange() value can now
|
|
18
|
+
be undefined.
|
|
19
|
+
|
|
1
20
|
# [4.1.0](https://github.com/MTES-MCT/monitor-ui/compare/v4.0.7...v4.1.0) (2023-04-05)
|
|
2
21
|
|
|
3
22
|
|
package/index.js
CHANGED
|
@@ -20961,6 +20961,54 @@ function requireDayjs_min () {
|
|
|
20961
20961
|
var dayjs_minExports = requireDayjs_min();
|
|
20962
20962
|
var customDayjs = /*@__PURE__*/getDefaultExportFromCjs(dayjs_minExports);
|
|
20963
20963
|
|
|
20964
|
+
var isSameOrAfterExports = {};
|
|
20965
|
+
var isSameOrAfter$1 = {
|
|
20966
|
+
get exports(){ return isSameOrAfterExports; },
|
|
20967
|
+
set exports(v){ isSameOrAfterExports = v; },
|
|
20968
|
+
};
|
|
20969
|
+
|
|
20970
|
+
(function (module, exports) {
|
|
20971
|
+
!function(e,t){module.exports=t();}(commonjsGlobal,(function(){return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)};}}));
|
|
20972
|
+
} (isSameOrAfter$1));
|
|
20973
|
+
|
|
20974
|
+
var isSameOrAfter = isSameOrAfterExports;
|
|
20975
|
+
|
|
20976
|
+
var isSameOrBeforeExports = {};
|
|
20977
|
+
var isSameOrBefore$1 = {
|
|
20978
|
+
get exports(){ return isSameOrBeforeExports; },
|
|
20979
|
+
set exports(v){ isSameOrBeforeExports = v; },
|
|
20980
|
+
};
|
|
20981
|
+
|
|
20982
|
+
(function (module, exports) {
|
|
20983
|
+
!function(e,i){module.exports=i();}(commonjsGlobal,(function(){return function(e,i){i.prototype.isSameOrBefore=function(e,i){return this.isSame(e,i)||this.isBefore(e,i)};}}));
|
|
20984
|
+
} (isSameOrBefore$1));
|
|
20985
|
+
|
|
20986
|
+
var isSameOrBefore = isSameOrBeforeExports;
|
|
20987
|
+
|
|
20988
|
+
var localeDataExports = {};
|
|
20989
|
+
var localeData$1 = {
|
|
20990
|
+
get exports(){ return localeDataExports; },
|
|
20991
|
+
set exports(v){ localeDataExports = v; },
|
|
20992
|
+
};
|
|
20993
|
+
|
|
20994
|
+
(function (module, exports) {
|
|
20995
|
+
!function(n,e){module.exports=e();}(commonjsGlobal,(function(){return function(n,e,t){var r=e.prototype,o=function(n){return n&&(n.indexOf?n:n.s)},u=function(n,e,t,r,u){var i=n.name?n:n.$locale(),a=o(i[e]),s=o(i[t]),f=a||s.map((function(n){return n.slice(0,r)}));if(!u)return f;var d=i.weekStart;return f.map((function(n,e){return f[(e+(d||0))%7]}))},i=function(){return t.Ls[t.locale()]},a=function(n,e){return n.formats[e]||function(n){return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(n,e,t){return e||t.slice(1)}))}(n.formats[e.toUpperCase()])},s=function(){var n=this;return {months:function(e){return e?e.format("MMMM"):u(n,"months")},monthsShort:function(e){return e?e.format("MMM"):u(n,"monthsShort","months",3)},firstDayOfWeek:function(){return n.$locale().weekStart||0},weekdays:function(e){return e?e.format("dddd"):u(n,"weekdays")},weekdaysMin:function(e){return e?e.format("dd"):u(n,"weekdaysMin","weekdays",2)},weekdaysShort:function(e){return e?e.format("ddd"):u(n,"weekdaysShort","weekdays",3)},longDateFormat:function(e){return a(n.$locale(),e)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return s.bind(this)()},t.localeData=function(){var n=i();return {firstDayOfWeek:function(){return n.weekStart||0},weekdays:function(){return t.weekdays()},weekdaysShort:function(){return t.weekdaysShort()},weekdaysMin:function(){return t.weekdaysMin()},months:function(){return t.months()},monthsShort:function(){return t.monthsShort()},longDateFormat:function(e){return a(n,e)},meridiem:n.meridiem,ordinal:n.ordinal}},t.months=function(){return u(i(),"months")},t.monthsShort=function(){return u(i(),"monthsShort","months",3)},t.weekdays=function(n){return u(i(),"weekdays",null,null,n)},t.weekdaysShort=function(n){return u(i(),"weekdaysShort","weekdays",3,n)},t.weekdaysMin=function(n){return u(i(),"weekdaysMin","weekdays",2,n)};}}));
|
|
20996
|
+
} (localeData$1));
|
|
20997
|
+
|
|
20998
|
+
var localeData = localeDataExports;
|
|
20999
|
+
|
|
21000
|
+
var quarterOfYearExports = {};
|
|
21001
|
+
var quarterOfYear$1 = {
|
|
21002
|
+
get exports(){ return quarterOfYearExports; },
|
|
21003
|
+
set exports(v){ quarterOfYearExports = v; },
|
|
21004
|
+
};
|
|
21005
|
+
|
|
21006
|
+
(function (module, exports) {
|
|
21007
|
+
!function(t,n){module.exports=n();}(commonjsGlobal,(function(){var t="month",n="quarter";return function(e,i){var r=i.prototype;r.quarter=function(t){return this.$utils().u(t)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(t-1))};var s=r.add;r.add=function(e,i){return e=Number(e),this.$utils().p(i)===n?this.add(3*e,t):s.bind(this)(e,i)};var u=r.startOf;r.startOf=function(e,i){var r=this.$utils(),s=!!r.u(i)||i;if(r.p(e)===n){var o=this.quarter()-1;return s?this.month(3*o).startOf(t).startOf("day"):this.month(3*o+2).endOf(t).endOf("day")}return u.bind(this)(e,i)};}}));
|
|
21008
|
+
} (quarterOfYear$1));
|
|
21009
|
+
|
|
21010
|
+
var quarterOfYear = quarterOfYearExports;
|
|
21011
|
+
|
|
20964
21012
|
var timezoneExports = {};
|
|
20965
21013
|
var timezone$1 = {
|
|
20966
21014
|
get exports(){ return timezoneExports; },
|
|
@@ -20973,6 +21021,18 @@ var timezone$1 = {
|
|
|
20973
21021
|
|
|
20974
21022
|
var timezone = timezoneExports;
|
|
20975
21023
|
|
|
21024
|
+
var updateLocaleExports = {};
|
|
21025
|
+
var updateLocale$1 = {
|
|
21026
|
+
get exports(){ return updateLocaleExports; },
|
|
21027
|
+
set exports(v){ updateLocaleExports = v; },
|
|
21028
|
+
};
|
|
21029
|
+
|
|
21030
|
+
(function (module, exports) {
|
|
21031
|
+
!function(e,n){module.exports=n();}(commonjsGlobal,(function(){return function(e,n,t){t.updateLocale=function(e,n){var o=t.Ls[e];if(o)return (n?Object.keys(n):[]).forEach((function(e){o[e]=n[e];})),o};}}));
|
|
21032
|
+
} (updateLocale$1));
|
|
21033
|
+
|
|
21034
|
+
var updateLocale = updateLocaleExports;
|
|
21035
|
+
|
|
20976
21036
|
var utcExports = {};
|
|
20977
21037
|
var utc$1 = {
|
|
20978
21038
|
get exports(){ return utcExports; },
|
|
@@ -20995,7 +21055,12 @@ var fr = {
|
|
|
20995
21055
|
!function(e,n){module.exports=n(requireDayjs_min());}(commonjsGlobal,(function(e){function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var t=n(e),i={name:"fr",weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},ordinal:function(e){return ""+e+(1===e?"er":"")}};return t.default.locale(i,null,!0),i}));
|
|
20996
21056
|
} (fr));
|
|
20997
21057
|
|
|
21058
|
+
customDayjs.extend(isSameOrAfter);
|
|
21059
|
+
customDayjs.extend(isSameOrBefore);
|
|
21060
|
+
customDayjs.extend(localeData);
|
|
21061
|
+
customDayjs.extend(quarterOfYear);
|
|
20998
21062
|
customDayjs.extend(timezone);
|
|
21063
|
+
customDayjs.extend(updateLocale);
|
|
20999
21064
|
customDayjs.extend(utc);
|
|
21000
21065
|
customDayjs.locale('fr');
|
|
21001
21066
|
|