web-mojo 2.5.11 → 2.5.12
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/admin.cjs.js +1 -1
- package/dist/admin.es.js +1 -1
- package/dist/auth.cjs.js +1 -1
- package/dist/auth.es.js +1 -1
- package/dist/charts.cjs.js +1 -1
- package/dist/charts.es.js +1 -1
- package/dist/chunks/{ChatView-D2JKsn70.js → ChatView-Boy13xn0.js} +2 -2
- package/dist/chunks/{ChatView-D2JKsn70.js.map → ChatView-Boy13xn0.js.map} +1 -1
- package/dist/chunks/{ChatView-bXNwCBea.js → ChatView-_J50Mw9K.js} +2 -2
- package/dist/chunks/{ChatView-bXNwCBea.js.map → ChatView-_J50Mw9K.js.map} +1 -1
- package/dist/chunks/ListView-BlG1DvdZ.js +2 -0
- package/dist/chunks/ListView-BlG1DvdZ.js.map +1 -0
- package/dist/chunks/ListView-S5pMrBXs.js +2 -0
- package/dist/chunks/ListView-S5pMrBXs.js.map +1 -0
- package/dist/chunks/{Passkeys-Dq8v7Hve.js → Passkeys-CvMXixC8.js} +2 -2
- package/dist/chunks/{Passkeys-Dq8v7Hve.js.map → Passkeys-CvMXixC8.js.map} +1 -1
- package/dist/chunks/{Passkeys-BqQPlxQ-.js → Passkeys-DpH18HEu.js} +2 -2
- package/dist/chunks/{Passkeys-BqQPlxQ-.js.map → Passkeys-DpH18HEu.js.map} +1 -1
- package/dist/chunks/{UserProfileView-CgOPa29h.js → UserProfileView-BFRqUqIE.js} +2 -2
- package/dist/chunks/{UserProfileView-CgOPa29h.js.map → UserProfileView-BFRqUqIE.js.map} +1 -1
- package/dist/chunks/{UserProfileView-CY5rbwOV.js → UserProfileView-BUCgJnCx.js} +2 -2
- package/dist/chunks/{UserProfileView-CY5rbwOV.js.map → UserProfileView-BUCgJnCx.js.map} +1 -1
- package/dist/chunks/{index-Bo1mHdoL.js → index-CWN_9fmw.js} +2 -2
- package/dist/chunks/{index-Bo1mHdoL.js.map → index-CWN_9fmw.js.map} +1 -1
- package/dist/chunks/{index-DlWzTa2P.js → index-DU5qrlJm.js} +2 -2
- package/dist/chunks/{index-DlWzTa2P.js.map → index-DU5qrlJm.js.map} +1 -1
- package/dist/chunks/{version-BMN-tbP5.js → version-BJ_dJxnZ.js} +2 -2
- package/dist/chunks/{version-BMN-tbP5.js.map → version-BJ_dJxnZ.js.map} +1 -1
- package/dist/chunks/{version-rtP1hR6u.js → version-CRy8tr3T.js} +2 -2
- package/dist/chunks/{version-rtP1hR6u.js.map → version-CRy8tr3T.js.map} +1 -1
- package/dist/docit.cjs.js +1 -1
- package/dist/docit.es.js +1 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +1 -1
- package/dist/lightbox.cjs.js +1 -1
- package/dist/lightbox.es.js +1 -1
- package/dist/timeline.cjs.js +1 -1
- package/dist/timeline.es.js +1 -1
- package/dist/user-profile.cjs.js +1 -1
- package/dist/user-profile.es.js +1 -1
- package/dist/web-mojo.lite.iife.js +16 -1
- package/dist/web-mojo.lite.iife.js.map +1 -1
- package/dist/web-mojo.lite.iife.min.js +29 -29
- package/dist/web-mojo.lite.iife.min.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunks/ListView-BR5f9Nzl.js +0 -2
- package/dist/chunks/ListView-BR5f9Nzl.js.map +0 -1
- package/dist/chunks/ListView-BWAUUg-a.js +0 -2
- package/dist/chunks/ListView-BWAUUg-a.js.map +0 -1
package/dist/timeline.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunks/ListView-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./chunks/ListView-S5pMrBXs.js"),e=require("./chunks/User-DLsNoPz6.js");class TimelineViewItem extends t.ListViewItem{constructor(t={}){super({className:"timeline-item",...t}),this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",t.template||(this.template='\n <div class="timeline-marker timeline-marker-{{displayColor}}">\n {{#hasIcon}}\n <i class="bi {{model.icon}}"></i>\n {{/hasIcon}}\n {{^hasIcon}}\n <div class="timeline-dot bg-{{displayColor}}"></div>\n {{/hasIcon}}\n </div>\n \n <div class="timeline-content">\n {{#showDate}}\n <div class="timeline-date text-muted small">\n {{formattedDate}}\n </div>\n {{/showDate}}\n \n <div class="timeline-card">\n {{#model.title}}\n <h6 class="timeline-title mb-1">{{model.title}}</h6>\n {{/model.title}}\n \n {{#model.description}}\n <p class="timeline-description mb-0">{{model.description}}</p>\n {{/model.description}}\n \n {{#model.meta}}\n <div class="timeline-meta mt-2 text-muted small">\n {{model.meta}}\n </div>\n {{/model.meta}}\n </div>\n </div>\n ')}async onInit(){await super.onInit(),this.processItemData()}processItemData(){this.displayColor=this.model?.get?.("color")||this.model?.color||this.theme;const t=!(!this.model?.get?.("icon")&&!this.model?.icon)&&"icon"===this.dotStyle;this.hasIcon=t,this.markerType=t?"icon":this.dotStyle;const e=this.model?.get?.("date")||this.model?.date;this.formattedDate=this.formatDate(e)}formatDate(t){if(!t)return"";switch(this.dateFormat){case"datetime":return e.dataFormatter.pipe(t,"datetime");case"relative":return e.dataFormatter.pipe(t,"timeago");default:return e.dataFormatter.pipe(t,"date")}}async onActionSelect(t,e){t.stopPropagation(),this.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model}),this.listView&&this.listView.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model})}}class TimelineView extends t.ListView{constructor(t={}){super({className:"timeline-view",itemClass:t.itemClass||TimelineViewItem,selectionMode:"none",emptyMessage:t.emptyMessage||"No timeline events to display",template:'\n <div class="timeline-container timeline-{{position}}">\n {{#loading}}\n <div class="timeline-loading text-center py-4">\n <div class="spinner-border spinner-border-sm" role="status">\n <span class="visually-hidden">Loading...</span>\n </div>\n <span class="ms-2 text-muted">Loading timeline...</span>\n </div>\n {{/loading}}\n {{^loading}}\n {{#isEmpty}}\n <div class="timeline-empty text-center text-muted py-4">\n <i class="bi bi-clock-history fs-1 d-block mb-2"></i>\n <p>{{emptyMessage}}</p>\n </div>\n {{/isEmpty}}\n {{^isEmpty}}\n <div class="timeline" data-container="items"></div>\n {{/isEmpty}}\n {{/loading}}\n </div>\n ',...t}),this.position=t.position||"left",this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",this.groupBy=t.groupBy||"none"}_createItemView(t,e){if(this.itemViews.has(t.id))return;const i=new this.itemClass({model:t,index:e,listView:this,template:this.itemTemplate,dateFormat:this.dateFormat,dotStyle:this.dotStyle,showDate:this.showDate,theme:this.theme});return this.itemViews.set(t.id,i),i.on("item:click",this._onItemClick.bind(this)),i}_onItemClick(t){this.emit("item:click",t)}setPosition(t){return"left"!==t&&"center"!==t?(console.warn('Invalid position. Use "left" or "center"'),this):(this.position=t,this.isMounted()&&this.render(),this)}setDateFormat(t){return this.dateFormat=t,this.forEachItem(e=>{e.dateFormat=t,e.processItemData(),e.isMounted()&&e.render()}),this}setDotStyle(t){return this.dotStyle=t,this.forEachItem(e=>{e.dotStyle=t,e.processItemData(),e.isMounted()&&e.render()}),this}toggleDates(t=null){return this.showDate=null!==t?t:!this.showDate,this.forEachItem(t=>{t.showDate=this.showDate,t.isMounted()&&t.render()}),this}}exports.ListView=t.ListView,exports.ListViewItem=t.ListViewItem,exports.Collection=e.Collection,exports.Model=e.Model,exports.View=e.View,exports.TimelineView=TimelineView,exports.TimelineViewItem=TimelineViewItem;
|
|
2
2
|
//# sourceMappingURL=timeline.cjs.js.map
|
package/dist/timeline.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{L as t,a as e}from"./chunks/ListView-
|
|
1
|
+
import{L as t,a as e}from"./chunks/ListView-BlG1DvdZ.js";import{d as i}from"./chunks/User-CoJjrghU.js";import{C as s,M as n,V as o}from"./chunks/User-CoJjrghU.js";class TimelineViewItem extends t{constructor(t={}){super({className:"timeline-item",...t}),this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",t.template||(this.template='\n <div class="timeline-marker timeline-marker-{{displayColor}}">\n {{#hasIcon}}\n <i class="bi {{model.icon}}"></i>\n {{/hasIcon}}\n {{^hasIcon}}\n <div class="timeline-dot bg-{{displayColor}}"></div>\n {{/hasIcon}}\n </div>\n \n <div class="timeline-content">\n {{#showDate}}\n <div class="timeline-date text-muted small">\n {{formattedDate}}\n </div>\n {{/showDate}}\n \n <div class="timeline-card">\n {{#model.title}}\n <h6 class="timeline-title mb-1">{{model.title}}</h6>\n {{/model.title}}\n \n {{#model.description}}\n <p class="timeline-description mb-0">{{model.description}}</p>\n {{/model.description}}\n \n {{#model.meta}}\n <div class="timeline-meta mt-2 text-muted small">\n {{model.meta}}\n </div>\n {{/model.meta}}\n </div>\n </div>\n ')}async onInit(){await super.onInit(),this.processItemData()}processItemData(){this.displayColor=this.model?.get?.("color")||this.model?.color||this.theme;const t=!(!this.model?.get?.("icon")&&!this.model?.icon)&&"icon"===this.dotStyle;this.hasIcon=t,this.markerType=t?"icon":this.dotStyle;const e=this.model?.get?.("date")||this.model?.date;this.formattedDate=this.formatDate(e)}formatDate(t){if(!t)return"";switch(this.dateFormat){case"datetime":return i.pipe(t,"datetime");case"relative":return i.pipe(t,"timeago");default:return i.pipe(t,"date")}}async onActionSelect(t,e){t.stopPropagation(),this.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model}),this.listView&&this.listView.emit("item:click",{item:this,model:this.model,index:this.index,data:this.model?.toJSON?this.model.toJSON():this.model})}}class TimelineView extends e{constructor(t={}){super({className:"timeline-view",itemClass:t.itemClass||TimelineViewItem,selectionMode:"none",emptyMessage:t.emptyMessage||"No timeline events to display",template:'\n <div class="timeline-container timeline-{{position}}">\n {{#loading}}\n <div class="timeline-loading text-center py-4">\n <div class="spinner-border spinner-border-sm" role="status">\n <span class="visually-hidden">Loading...</span>\n </div>\n <span class="ms-2 text-muted">Loading timeline...</span>\n </div>\n {{/loading}}\n {{^loading}}\n {{#isEmpty}}\n <div class="timeline-empty text-center text-muted py-4">\n <i class="bi bi-clock-history fs-1 d-block mb-2"></i>\n <p>{{emptyMessage}}</p>\n </div>\n {{/isEmpty}}\n {{^isEmpty}}\n <div class="timeline" data-container="items"></div>\n {{/isEmpty}}\n {{/loading}}\n </div>\n ',...t}),this.position=t.position||"left",this.dateFormat=t.dateFormat||"date",this.dotStyle=t.dotStyle||"solid",this.showDate=!1!==t.showDate,this.theme=t.theme||"primary",this.groupBy=t.groupBy||"none"}_createItemView(t,e){if(this.itemViews.has(t.id))return;const i=new this.itemClass({model:t,index:e,listView:this,template:this.itemTemplate,dateFormat:this.dateFormat,dotStyle:this.dotStyle,showDate:this.showDate,theme:this.theme});return this.itemViews.set(t.id,i),i.on("item:click",this._onItemClick.bind(this)),i}_onItemClick(t){this.emit("item:click",t)}setPosition(t){return"left"!==t&&"center"!==t?(console.warn('Invalid position. Use "left" or "center"'),this):(this.position=t,this.isMounted()&&this.render(),this)}setDateFormat(t){return this.dateFormat=t,this.forEachItem(e=>{e.dateFormat=t,e.processItemData(),e.isMounted()&&e.render()}),this}setDotStyle(t){return this.dotStyle=t,this.forEachItem(e=>{e.dotStyle=t,e.processItemData(),e.isMounted()&&e.render()}),this}toggleDates(t=null){return this.showDate=null!==t?t:!this.showDate,this.forEachItem(t=>{t.showDate=this.showDate,t.isMounted()&&t.render()}),this}}export{s as Collection,e as ListView,t as ListViewItem,n as Model,TimelineView,TimelineViewItem,o as View};
|
|
2
2
|
//# sourceMappingURL=timeline.es.js.map
|
package/dist/user-profile.cjs.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/UserProfileView-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./chunks/UserProfileView-BFRqUqIE.js"),i=require("./chunks/index-CWN_9fmw.js");exports.PasskeySetupView=e.PasskeySetupView,exports.ProfileApiKeysSection=e.ProfileApiKeysSection,exports.ProfileConnectedSection=e.ProfileConnectedSection,exports.ProfileDevicesSection=e.ProfileDevicesSection,exports.ProfileGroupsSection=e.ProfileGroupsSection,exports.ProfileNotificationsSection=e.ProfileNotificationsSection,exports.ProfileOverviewSection=e.ProfileOverviewSection,exports.ProfilePermissionsSection=e.ProfilePermissionsSection,exports.ProfilePersonalSection=e.ProfilePersonalSection,exports.ProfileSecurityEventsSection=e.ProfileSecurityEventsSection,exports.ProfileSecuritySection=e.ProfileSecuritySection,exports.ProfileSessionsSection=e.ProfileSessionsSection,exports.UserProfileView=e.UserProfileView,exports.ProfileActivitySection=i.ProfileActivitySection;
|
|
2
2
|
//# sourceMappingURL=user-profile.cjs.js.map
|
package/dist/user-profile.es.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{P as e,a as i,b as o,c as s,d as r,e as n,f as t,g as c,h as a,i as f,j as P,k as S,U as l}from"./chunks/UserProfileView-
|
|
1
|
+
import{P as e,a as i,b as o,c as s,d as r,e as n,f as t,g as c,h as a,i as f,j as P,k as S,U as l}from"./chunks/UserProfileView-BUCgJnCx.js";import{ProfileActivitySection as p}from"./chunks/index-DU5qrlJm.js";export{e as PasskeySetupView,p as ProfileActivitySection,i as ProfileApiKeysSection,o as ProfileConnectedSection,s as ProfileDevicesSection,r as ProfileGroupsSection,n as ProfileNotificationsSection,t as ProfileOverviewSection,c as ProfilePermissionsSection,a as ProfilePersonalSection,f as ProfileSecurityEventsSection,P as ProfileSecuritySection,S as ProfileSessionsSection,l as UserProfileView};
|
|
2
2
|
//# sourceMappingURL=user-profile.es.js.map
|
|
@@ -23242,6 +23242,12 @@ var MOJO = (function(exports) {
|
|
|
23242
23242
|
* class name and passed through verbatim.
|
|
23243
23243
|
*/
|
|
23244
23244
|
static ROW_STRIPE_TOKENS = ["danger", "warning", "success", "info", "primary", "secondary"];
|
|
23245
|
+
/**
|
|
23246
|
+
* Track Model classes already warned about a minified `.name` so the
|
|
23247
|
+
* console doesn't spam — one warning per offending class per session.
|
|
23248
|
+
* @private
|
|
23249
|
+
*/
|
|
23250
|
+
static _warnedMinifiedClasses = /* @__PURE__ */ new WeakSet();
|
|
23245
23251
|
constructor(options = {}) {
|
|
23246
23252
|
super({
|
|
23247
23253
|
className: options.className || "list-view",
|
|
@@ -24581,7 +24587,16 @@ var MOJO = (function(exports) {
|
|
|
24581
24587
|
getModelName(model) {
|
|
24582
24588
|
const ModelClass = this.getModelClass(model);
|
|
24583
24589
|
if (!ModelClass) return "Item";
|
|
24584
|
-
|
|
24590
|
+
if (ModelClass.MODEL_NAME) return ModelClass.MODEL_NAME;
|
|
24591
|
+
const rawName = (ModelClass.name || "").replace(/Model$/, "");
|
|
24592
|
+
if (/^[A-Z][A-Za-z0-9]{2,}$/.test(rawName)) return rawName;
|
|
24593
|
+
if (!ListView._warnedMinifiedClasses.has(ModelClass)) {
|
|
24594
|
+
ListView._warnedMinifiedClasses.add(ModelClass);
|
|
24595
|
+
console.warn(
|
|
24596
|
+
`ListView.getModelName: class name '${rawName}' looks minified — set a static MODEL_NAME on the model class for user-facing dialog titles. Falling back to 'Item'.`
|
|
24597
|
+
);
|
|
24598
|
+
}
|
|
24599
|
+
return "Item";
|
|
24585
24600
|
}
|
|
24586
24601
|
getItemViewClass(model) {
|
|
24587
24602
|
if (this.itemView) return this.itemView;
|