@steedos-widgets/fullcalendar 1.0.2 → 1.0.6

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/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2022, Steedos Inc.
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/fullcalendar",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.2/dist/fullcalendar.umd.js",
7
- "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.2/dist/fullcalendar.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.6/dist/fullcalendar.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.6/dist/fullcalendar.umd.css"
8
8
  ],
9
9
  "library": "BuilderFullCalendar"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/fullcalendar"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.2/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.6/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.2/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.2/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.6/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@1.0.6/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -66775,7 +66775,7 @@ var funcToString = funcProto.toString;
66775
66775
  /** Used to infer the `Object` constructor. */
66776
66776
  funcToString.call(Object);
66777
66777
 
66778
- let UI_SCHEMA_CACHE={};("undefined"!=typeof window&&(window.UI_SCHEMA_CACHE||(window.UI_SCHEMA_CACHE=UI_SCHEMA_CACHE),UI_SCHEMA_CACHE=window.UI_SCHEMA_CACHE),(e,t)=>{UI_SCHEMA_CACHE[e]=t;});var __assign=function(){return (__assign=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function createObject(e,t,a){var i=(e=e&&Object.isFrozen(e)?cloneObject(e):e)?Object.create(e,__assign(__assign({},a),{__super:{value:e,writable:!1,enumerable:!1}})):Object.create(Object.prototype,a);return t&&isObject(t)&&Object.keys(t).forEach(function(e){return i[e]=t[e]}),i}function cloneObject(t,e){void 0===e&&(e=!0);var a=t&&t.__super?Object.create(t.__super,{__super:{value:t.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return e&&t&&Object.keys(t).forEach(function(e){return a[e]=t[e]}),a}function isObject(e){var t=typeof e;return e&&"string"!=t&&"number"!=t&&"boolean"!=t&&"function"!=t&&!Array.isArray(e)}
66778
+ (new Date).toISOString().replace(/T.*$/,"");let UI_SCHEMA_CACHE={};("undefined"!=typeof window&&(window.UI_SCHEMA_CACHE||(window.UI_SCHEMA_CACHE=UI_SCHEMA_CACHE),UI_SCHEMA_CACHE=window.UI_SCHEMA_CACHE),(e,t)=>{UI_SCHEMA_CACHE[e]=t;});var __assign=function(){return (__assign=Object.assign||function(e){for(var t,a=1,i=arguments.length;a<i;a++)for(var r in t=arguments[a])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function createObject(e,t,a){var i=(e=e&&Object.isFrozen(e)?cloneObject(e):e)?Object.create(e,__assign(__assign({},a),{__super:{value:e,writable:!1,enumerable:!1}})):Object.create(Object.prototype,a);return t&&isObject(t)&&Object.keys(t).forEach(function(e){return i[e]=t[e]}),i}function cloneObject(t,e){void 0===e&&(e=!0);var a=t&&t.__super?Object.create(t.__super,{__super:{value:t.__super,writable:!1,enumerable:!1}}):Object.create(Object.prototype);return e&&t&&Object.keys(t).forEach(function(e){return a[e]=t[e]}),a}function isObject(e){var t=typeof e;return e&&"string"!=t&&"number"!=t&&"boolean"!=t&&"function"!=t&&!Array.isArray(e)}
66779
66779
 
66780
66780
  var FullCalendar = function (_a) {
66781
66781
  var amisDispatchEvent = _a.dispatchEvent, amisData = _a.data, props = __rest(_a, ["dispatchEvent", "data"]);
@@ -66795,6 +66795,12 @@ var FullCalendar = function (_a) {
66795
66795
  }
66796
66796
  });
66797
66797
  }); };
66798
+ var handleGetEvents = function (fetchInfo, successCallback, failureCallback) {
66799
+ // fix:控件初始 render 的时候,dispatchEvent未生效
66800
+ setTimeout(function () {
66801
+ dispatchEvent('getEvents', { fetchInfo: fetchInfo, successCallback: successCallback, failureCallback: failureCallback });
66802
+ }, 100);
66803
+ };
66798
66804
  var handleSelect = function (event) {
66799
66805
  dispatchEvent('select', event);
66800
66806
  };
@@ -66817,7 +66823,7 @@ var FullCalendar = function (_a) {
66817
66823
  left: 'title',
66818
66824
  center: '',
66819
66825
  right: 'prev,next today dayGridMonth,timeGridWeek,timeGridDay'
66820
- }, locales: _default, locale: initialLocaleCode, editable: true, selectable: true, selectMirror: true, dayMaxEvents: true, initialView: 'timeGridWeek', select: handleSelect, eventClick: handleEventClick, eventsSet: handleEventsSet, eventAdd: handleEventAdd, eventChange: handleEventChange, eventRemove: handleEventRemove }, props)));
66826
+ }, locales: _default, locale: initialLocaleCode, editable: true, selectable: true, selectMirror: true, dayMaxEvents: true, initialView: 'timeGridWeek', events: handleGetEvents, select: handleSelect, eventClick: handleEventClick, eventsSet: handleEventsSet, eventAdd: handleEventAdd, eventChange: handleEventChange, eventRemove: handleEventRemove }, props)));
66821
66827
  };
66822
66828
 
66823
66829
  exports.FullCalendar = FullCalendar;