@steedos-widgets/fullcalendar-scheduler 6.10.24 → 6.10.25

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.
@@ -9,12 +9,12 @@
9
9
  "http://127.0.0.1:8080/@steedos-widgets/fullcalendar-scheduler/dist/fullcalendar.umd.js",
10
10
  "http://127.0.0.1:8080/@steedos-widgets/fullcalendar-scheduler/dist/fullcalendar.umd.css"
11
11
  ],
12
- "library": "BuilderFullCalendar"
12
+ "library": "BuilderFullCalendarScheduler"
13
13
  }
14
14
  ],
15
15
  "components": [
16
16
  {
17
- "exportName": "BuilderFullCalendarMeta",
17
+ "exportName": "BuilderFullCalendarSchedulerMeta",
18
18
  "npm": {
19
19
  "package": "@steedos-widgets/fullcalendar-scheduler"
20
20
  },
package/dist/assets.json CHANGED
@@ -6,22 +6,22 @@
6
6
  "https://unpkg.com/fullcalendar-scheduler@5.11.4/main.min.js",
7
7
  "https://unpkg.com/fullcalendar-scheduler@5.11.4/locales-all.min.js",
8
8
  "https://unpkg.com/fullcalendar-scheduler@5.11.4/main.min.css",
9
- "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.24/dist/fullcalendar.umd.js",
10
- "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.24/dist/fullcalendar.umd.css"
9
+ "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.25/dist/fullcalendar.umd.js",
10
+ "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.25/dist/fullcalendar.umd.css"
11
11
  ],
12
- "library": "BuilderFullCalendar"
12
+ "library": "BuilderFullCalendarScheduler"
13
13
  }
14
14
  ],
15
15
  "components": [
16
16
  {
17
- "exportName": "BuilderFullCalendarMeta",
17
+ "exportName": "BuilderFullCalendarSchedulerMeta",
18
18
  "npm": {
19
19
  "package": "@steedos-widgets/fullcalendar-scheduler"
20
20
  },
21
- "url": "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.24/dist/meta.js",
21
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.25/dist/meta.js",
22
22
  "urls": {
23
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.24/dist/meta.js",
24
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.24/dist/meta.js"
23
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.25/dist/meta.js",
24
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar-scheduler@6.10.25/dist/meta.js"
25
25
  }
26
26
  }
27
27
  ]
@@ -1,4 +1,5 @@
1
1
  :root {
2
+ --fc-small-font-size: var(--link-fontSize);
2
3
  --fc-button-text-color: #0176d3;
3
4
  --fc-button-bg-color: #fff;
4
5
  --fc-button-border-color: #c9c9c9;
@@ -8,10 +9,10 @@
8
9
  --fc-button-active-border-color: #c9c9c9;
9
10
  }
10
11
 
11
- .steedos-object-listview .fc-media-screen{
12
+ /* .steedos-object-listview .fc-media-screen{
12
13
  --tw-bg-opacity: 1;
13
14
  background-color: rgb(243 244 246 / var(--tw-bg-opacity));
14
- }
15
+ } */
15
16
  .steedos-object-listview .fc-media-screen .fc-view-harness{
16
17
  background: #fff;
17
18
  max-height: calc(100vh - 240px);
@@ -30,8 +31,9 @@
30
31
  border-right-width: 0;
31
32
  }
32
33
  .steedos-object-listview .fc .fc-toolbar.fc-header-toolbar{
33
- margin: var(--gap-md);
34
- margin-top: var(--gap-sm);
34
+ /* margin-left: var(--gap-md);
35
+ margin-top: var(--gap-sm); */
36
+ margin-bottom: var(--gap-md);
35
37
  }
36
38
  .fc-media-screen a:hover{
37
39
  background-color: var(--fc-event-bg-color, #3788d8) !important;
@@ -1,6 +1,6 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
2
  (function (global, factory) {
3
- (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('amis-core')) : typeof define === 'function' && define.amd ? define(['exports', 'react', 'amis-core'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BuilderFullCalendar = {}, global.React, global.AmisCore));
3
+ (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? factory(exports, require('react'), require('amis-core')) : typeof define === 'function' && define.amd ? define(['exports', 'react', 'amis-core'], factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.BuilderFullCalendarScheduler = {}, global.React, global.AmisCore));
4
4
  })(this, function (exports, React, AmisCore) {
5
5
  var global = window;
6
6
  function _interopDefaultLegacy(e) {
@@ -260,6 +260,16 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
260
260
  var handleNoEventsWillUnmount = function handleNoEventsWillUnmount(event) {
261
261
  dispatchEvent('noEventsWillUnmount', event);
262
262
  };
263
+ var handleGetRresources = function handleGetRresources(fetchInfo, successCallback, failureCallback) {
264
+ // fix:控件初始 render 的时候,dispatchEvent未生效
265
+ setTimeout(function () {
266
+ dispatchEvent('getRresources', {
267
+ fetchInfo: fetchInfo,
268
+ successCallback: successCallback,
269
+ failureCallback: failureCallback
270
+ });
271
+ }, 100);
272
+ };
263
273
  // useEffect 在组件挂载后运行
264
274
  React.useEffect(function () {
265
275
  // 检查全局 FullCalendar 对象是否可用
@@ -273,12 +283,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
273
283
  center: '',
274
284
  right: 'prev,next today dayGridMonth,timeGridWeek,timeGridDay,listWeek'
275
285
  },
276
- // 添加一些配置,例如资源列表,否则 resourceTimeline 视图可能不显示
277
- resources: [
278
- // { id: 'a', title: 'Room A' },
279
- // { id: 'b', title: 'Room B' },
280
- // { id: 'c', title: 'Room C' },
281
- ],
286
+ resources: handleGetRresources,
287
+ resourceAreaWidth: "20%",
282
288
  locale: initialLocaleCode,
283
289
  editable: true,
284
290
  selectable: true,
@@ -296,7 +302,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
296
302
  eventWillUnmount: handleEventWillUnmount,
297
303
  noEventsDidMount: handleNoEventsDidMount,
298
304
  noEventsWillUnmount: handleNoEventsWillUnmount,
299
- forceEventDuration: true
305
+ forceEventDuration: true,
306
+ schedulerLicenseKey: 'CC-Attribution-NonCommercial-NoDerivatives'
300
307
  }, props));
301
308
  // 4. 渲染日历
302
309
  calendar.render();
package/dist/meta.js CHANGED
@@ -1,7 +1,7 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
3
3
  typeof define === 'function' && define.amd ? define(factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BuilderFullCalendarMeta = factory());
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.BuilderFullCalendarSchedulerMeta = factory());
5
5
  })(this, (function () { 'use strict';
6
6
 
7
7
  /******************************************************************************
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@steedos-widgets/fullcalendar-scheduler",
3
3
  "private": false,
4
- "version": "6.10.24",
4
+ "version": "6.10.25",
5
5
  "main": "dist/fullcalendar.cjs.js",
6
6
  "module": "dist/fullcalendar.esm.js",
7
7
  "unpkg": "dist/fullcalendar.umd.js",
@@ -47,5 +47,5 @@
47
47
  "rollup-plugin-tslib-resolve-id": "^0.0.0",
48
48
  "rollup-plugin-visualizer": "^5.8.0"
49
49
  },
50
- "gitHead": "5d9649ff34f5b9e3f06129875d8005ca46ab7ab2"
50
+ "gitHead": "0652b002b88b02662de1f64ef6d4bf93ffcf1ca7"
51
51
  }