ode-explorer 1.4.1-develop-pedago.202403131646 → 1.4.1-develop-b2school.202403141630

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.js CHANGED
@@ -57163,6 +57163,22 @@ class ResizePlugin {
57163
57163
  }
57164
57164
  ResizePlugin.extension = ExtensionType.Application;
57165
57165
  extensions$1.add(ResizePlugin);
57166
+ DisplayObject.prototype.name = null;
57167
+ Container.prototype.getChildByName = function(name, deep) {
57168
+ for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++)
57169
+ if (this.children[i2].name === name)
57170
+ return this.children[i2];
57171
+ if (deep)
57172
+ for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
57173
+ const child = this.children[i2];
57174
+ if (!child.getChildByName)
57175
+ continue;
57176
+ const target = child.getChildByName(name, true);
57177
+ if (target)
57178
+ return target;
57179
+ }
57180
+ return null;
57181
+ };
57166
57182
  const _tempMatrix = new Matrix();
57167
57183
  DisplayObject.prototype._cacheAsBitmap = false;
57168
57184
  DisplayObject.prototype._cacheData = null;
@@ -57293,22 +57309,6 @@ DisplayObject.prototype._destroyCachedDisplayObject = function() {
57293
57309
  DisplayObject.prototype._cacheAsBitmapDestroy = function(options) {
57294
57310
  this.cacheAsBitmap = false, this.destroy(options);
57295
57311
  };
57296
- DisplayObject.prototype.name = null;
57297
- Container.prototype.getChildByName = function(name, deep) {
57298
- for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++)
57299
- if (this.children[i2].name === name)
57300
- return this.children[i2];
57301
- if (deep)
57302
- for (let i2 = 0, j2 = this.children.length; i2 < j2; i2++) {
57303
- const child = this.children[i2];
57304
- if (!child.getChildByName)
57305
- continue;
57306
- const target = child.getChildByName(name, true);
57307
- if (target)
57308
- return target;
57309
- }
57310
- return null;
57311
- };
57312
57312
  DisplayObject.prototype.getGlobalPosition = function(point = new Point(), skipUpdate = false) {
57313
57313
  return this.parent ? this.parent.toGlobal(this.position, point, skipUpdate) : (point.x = this.position.x, point.y = this.position.y), point;
57314
57314
  };
@@ -62184,7 +62184,7 @@ const ActionBar$1 = /* @__PURE__ */ reactExports.forwardRef(({
62184
62184
  } = props, getLoadingIcon = () => {
62185
62185
  let icon;
62186
62186
  return loadingIcon ? icon = loadingIcon : icon = /* @__PURE__ */ jsxRuntimeExports.jsx(SvgLoader$1, { ...restProps, "aria-label": "Loading" }), icon;
62187
- }, classes2 = clsx("loading", {
62187
+ }, classes2 = clsx("loading d-flex align-items-center gap-8", {
62188
62188
  "is-loading": isLoading
62189
62189
  }, className);
62190
62190
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: classes2, role: "status", ref: ref2, children: [
@@ -63085,7 +63085,8 @@ const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
63085
63085
  app,
63086
63086
  size: size2 = "24",
63087
63087
  iconFit = "contain",
63088
- variant = "square"
63088
+ variant = "square",
63089
+ className = ""
63089
63090
  }, ref2) => {
63090
63091
  const {
63091
63092
  isIconUrl,
@@ -63103,14 +63104,19 @@ const Image$1 = /* @__PURE__ */ reactExports.forwardRef(({
63103
63104
  }, iconFits = {
63104
63105
  "icon-contain": isContain,
63105
63106
  "icon-ratio": isRatio
63106
- }, icon = typeof app == "string" ? app : (app == null ? void 0 : app.icon) !== void 0 ? app.icon : "placeholder", displayName = typeof app != "string" && (app == null ? void 0 : app.displayName) !== void 0 ? app.displayName : "", code = app ? getIconCode(app) : "", isIconURL = isIconUrl(icon), appCode = code || "placeholder", classes2 = clsx("app-icon", {
63107
+ }, icon = typeof app == "string" ? app : (app == null ? void 0 : app.icon) !== void 0 ? app.icon : "placeholder", displayName = typeof app != "string" && (app == null ? void 0 : app.displayName) !== void 0 ? app.displayName : "", code = app ? getIconCode(app) : "", isIconURL = isIconUrl(icon), appCode = code || "placeholder";
63108
+ if (isIconURL) {
63109
+ const classes22 = clsx("h-full", className);
63110
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Image$2, { src: icon, alt: displayName, objectFit: "contain", width: size2, height: size2, className: classes22 });
63111
+ }
63112
+ const classes2 = clsx("app-icon", {
63107
63113
  ...iconSizes,
63108
63114
  ...iconVariant,
63109
63115
  ...iconFits,
63110
63116
  [`bg-light-${appCode}`]: appCode && !isContain,
63111
63117
  [`color-app-${appCode}`]: appCode
63112
- });
63113
- return isIconURL ? /* @__PURE__ */ jsxRuntimeExports.jsx(Image$2, { src: icon, alt: displayName, objectFit: "contain", width: size2, height: size2, className: "h-full" }) : /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes2, style: {
63118
+ }, className);
63119
+ return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes2, style: {
63114
63120
  width: size2 + "px",
63115
63121
  height: size2 + "px"
63116
63122
  }, children: /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { ref: ref2, width: size2, height: size2, role: "img", fill: "currentColor", xmlns: "http://www.w3.org/2000/svg", "aria-hidden": "true", children: /* @__PURE__ */ jsxRuntimeExports.jsx("use", { xlinkHref: `${iconPath}/apps.svg#${appCode}` }) }) });
@@ -65814,7 +65820,7 @@ function ShareResourceModal({
65814
65820
  /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip$1, { message: "Vos favoris de partage s’affichent en priorité dans votre liste lorsque vous recherchez un groupe ou une personne, vous pouvez les retrouver dans l’annuaire.", placement: "top", children: /* @__PURE__ */ jsxRuntimeExports.jsx(SvgInfoCircle$1, { className: "c-pointer", height: "18" }) })
65815
65821
  ] }),
65816
65822
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "row", children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: "col-10", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Combobox$1, { value: searchInputValue, placeholder: searchPlaceholder, isLoading: showSearchLoading(), noResult: showSearchNoResults(), options: searchResults, searchMinLength: getSearchMinLength(), onSearchInputChange: handleSearchInputChange, onSearchResultsChange: handleSearchResultsChange }) }) }),
65817
- children
65823
+ typeof children == "function" ? children(resource) : children
65818
65824
  ] }),
65819
65825
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Modal$1.Footer, { children: [
65820
65826
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button$1, { type: "button", color: "tertiary", variant: "ghost", onClick: onCancel, children: t2("explorer.cancel") }),
package/dist/version.txt CHANGED
@@ -1 +1 @@
1
- ode-explorer=1.0-b2school-SNAPSHOT 13/03/2024 16:47:22
1
+ ode-explorer=1.0-b2school-SNAPSHOT 14/03/2024 16:31:02
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ode-explorer",
3
- "version": "1.4.1-develop-pedago.202403131646",
3
+ "version": "1.4.1-develop-b2school.202403141630",
4
4
  "description": "Edifice Explorer",
5
5
  "homepage": "https://github.com/edificeio/explorer#readme",
6
6
  "bugs": {
@@ -36,8 +36,8 @@
36
36
  ]
37
37
  },
38
38
  "dependencies": {
39
- "@edifice-ui/icons": "develop-pedago",
40
- "@edifice-ui/react": "develop-pedago",
39
+ "@edifice-ui/icons": "develop-b2school",
40
+ "@edifice-ui/react": "develop-b2school",
41
41
  "@react-spring/web": "9.7.3",
42
42
  "@tanstack/react-query": "5.8.4",
43
43
  "clsx": "2.1.0",
@@ -65,8 +65,8 @@
65
65
  "@vitejs/plugin-react-swc": "3.5.0",
66
66
  "concurrently": "8.2.2",
67
67
  "csstype": "3.1.3",
68
- "edifice-bootstrap": "develop-pedago",
69
- "edifice-ts-client": "develop-pedago",
68
+ "edifice-bootstrap": "develop-b2school",
69
+ "edifice-ts-client": "develop-b2school",
70
70
  "eslint": "8.56.0",
71
71
  "eslint-config-prettier": "9.1.0",
72
72
  "eslint-plugin-import": "2.29.1",