@limetech/lime-crm-building-blocks 1.126.2 → 1.126.4
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 +14 -0
- package/dist/cjs/{index.esm-C1i_NocP.js → index.esm-BSgM4tyh.js} +17 -17
- package/dist/cjs/{lime-query-validation-DOruuzFE.js → lime-query-validation-DhL0xwur.js} +1 -1
- package/dist/cjs/limebb-browser.cjs.entry.js +1 -1
- package/dist/cjs/limebb-chat-icon-list_3.cjs.entry.js +1 -1
- package/dist/cjs/limebb-chat-list.cjs.entry.js +1 -1
- package/dist/cjs/limebb-component-config.cjs.entry.js +1 -1
- package/dist/cjs/limebb-component-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-composer-toolbar.cjs.entry.js +1 -1
- package/dist/cjs/limebb-currency-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-data-cells.cjs.entry.js +1 -1
- package/dist/cjs/limebb-date-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed-timeline-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-feed.cjs.entry.js +1 -1
- package/dist/cjs/limebb-icon-picker.cjs.entry.js +5 -0
- package/dist/cjs/limebb-info-tile.cjs.entry.js +2 -2
- package/dist/cjs/limebb-kanban-group.cjs.entry.js +1 -1
- package/dist/cjs/limebb-kanban-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-builder.cjs.entry.js +2 -2
- package/dist/cjs/limebb-lime-query-filter-builder_3.cjs.entry.js +2 -2
- package/dist/cjs/limebb-lime-query-filter-comparison_2.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-filter-group_3.cjs.entry.js +1 -1
- package/dist/cjs/limebb-lime-query-response-format-builder.cjs.entry.js +2 -2
- package/dist/cjs/limebb-limeobject-file-viewer.cjs.entry.js +1 -1
- package/dist/cjs/limebb-loader.cjs.entry.js +1 -1
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +1 -1
- package/dist/cjs/limebb-mention.cjs.entry.js +1 -1
- package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-notification-list.cjs.entry.js +1 -1
- package/dist/cjs/limebb-object-chip.cjs.entry.js +3 -3
- package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +1 -1
- package/dist/cjs/limebb-property-selector.cjs.entry.js +2 -2
- package/dist/cjs/limebb-rule-chip-popover.cjs.entry.js +1 -1
- package/dist/cjs/limebb-rule-editor.cjs.entry.js +1 -1
- package/dist/cjs/limebb-rule-gate.cjs.entry.js +13 -4
- package/dist/cjs/limebb-text-editor.cjs.entry.js +11 -6
- package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
- package/dist/cjs/{limetype-BlG0Apxb.js → limetype-DQeJRVNw.js} +1 -1
- package/dist/collection/components/dashboard-widget/dashboard-widget.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +1 -1
- package/dist/collection/components/rule-gate/rule-gate.js +12 -3
- package/dist/collection/components/summary-popover/summary-popover.js +1 -1
- package/dist/collection/components/text-editor/mentions.js +7 -2
- package/dist/collection/components/text-editor/text-editor.js +2 -2
- package/dist/components/index.esm.js +1 -1
- package/dist/components/limebb-icon-picker.js +1 -1
- package/dist/components/limebb-object-chip.js +1 -1
- package/dist/components/limebb-rule-gate.js +1 -1
- package/dist/components/limebb-text-editor.js +1 -1
- package/dist/esm/{index.esm-CMeGYws2.js → index.esm-oW1YVf33.js} +17 -17
- package/dist/esm/{lime-query-validation-DvCLebd2.js → lime-query-validation-C3jEHfxk.js} +1 -1
- package/dist/esm/limebb-browser.entry.js +1 -1
- package/dist/esm/limebb-chat-icon-list_3.entry.js +1 -1
- package/dist/esm/limebb-chat-list.entry.js +1 -1
- package/dist/esm/limebb-component-config.entry.js +1 -1
- package/dist/esm/limebb-component-picker.entry.js +1 -1
- package/dist/esm/limebb-composer-toolbar.entry.js +1 -1
- package/dist/esm/limebb-currency-picker.entry.js +1 -1
- package/dist/esm/limebb-data-cells.entry.js +1 -1
- package/dist/esm/limebb-date-picker.entry.js +1 -1
- package/dist/esm/limebb-feed-timeline-item.entry.js +1 -1
- package/dist/esm/limebb-feed.entry.js +1 -1
- package/dist/esm/limebb-icon-picker.entry.js +5 -0
- package/dist/esm/limebb-info-tile.entry.js +2 -2
- package/dist/esm/limebb-kanban-group.entry.js +1 -1
- package/dist/esm/limebb-kanban-item.entry.js +1 -1
- package/dist/esm/limebb-lime-query-builder.entry.js +2 -2
- package/dist/esm/limebb-lime-query-filter-builder_3.entry.js +2 -2
- package/dist/esm/limebb-lime-query-filter-comparison_2.entry.js +1 -1
- package/dist/esm/limebb-lime-query-filter-group_3.entry.js +1 -1
- package/dist/esm/limebb-lime-query-response-format-builder.entry.js +2 -2
- package/dist/esm/limebb-limeobject-file-viewer.entry.js +1 -1
- package/dist/esm/limebb-loader.entry.js +1 -1
- package/dist/esm/limebb-locale-picker.entry.js +1 -1
- package/dist/esm/limebb-mention.entry.js +1 -1
- package/dist/esm/limebb-notification-item.entry.js +1 -1
- package/dist/esm/limebb-notification-list.entry.js +1 -1
- package/dist/esm/limebb-object-chip.entry.js +3 -3
- package/dist/esm/limebb-percentage-visualizer.entry.js +1 -1
- package/dist/esm/limebb-property-selector.entry.js +2 -2
- package/dist/esm/limebb-rule-chip-popover.entry.js +1 -1
- package/dist/esm/limebb-rule-editor.entry.js +1 -1
- package/dist/esm/limebb-rule-gate.entry.js +13 -4
- package/dist/esm/limebb-text-editor.entry.js +11 -6
- package/dist/esm/limebb-trend-indicator.entry.js +1 -1
- package/dist/esm/{limetype-DvPoeXt-.js → limetype-CBSX93Mo.js} +1 -1
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-b978301b.entry.js → p-01ecd249.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-610dae2e.entry.js → p-0ee533c9.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9f03e766.entry.js → p-148fe32c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-10ddd002.entry.js → p-16d36b76.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ef62c7d8.entry.js → p-25d8a718.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-ea461bb7.entry.js → p-38c2fe60.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-25234f4b.entry.js → p-3e4cc2a1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e468e359.entry.js → p-3fd4e0a1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-30778dac.entry.js → p-4e5f55aa.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-7975c91f.entry.js → p-4f1eca0d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-d026068f.entry.js → p-50e5c571.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-993991af.entry.js → p-5496f907.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-beae8aa1.entry.js → p-56a65792.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-89170cc9.entry.js → p-5b830c09.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-2a05b949.entry.js → p-5c5788de.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6226829d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-d1c61830.entry.js → p-625623b7.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-99054b73.entry.js → p-6af7d0d2.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-99790629.entry.js → p-7759fc0c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-7ace2e41.entry.js → p-7cc615c8.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-92738a30.entry.js → p-82af1ade.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-49b8a9ca.entry.js → p-885592cc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-8c8bbbd4.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-c43dc121.entry.js → p-931ef83d.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-1955495c.entry.js → p-9bc6a1b7.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-CI7dwT4T.js → p-GT4hqR5i.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-CYiNR7pQ.js → p-VjTMZY3E.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-9ccd9d7f.entry.js → p-a06a01fc.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a3439b73.entry.js → p-a9ffe56f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-d33efebb.entry.js → p-b328389c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-a634c792.entry.js → p-bb3f1fa5.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-47799e80.entry.js → p-cf76665c.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-65ea94b4.entry.js → p-e6374017.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-c3a72b03.entry.js → p-e79208ba.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-62b247c1.entry.js → p-faa89d77.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-e1e1e2d1.entry.js → p-fe4811a1.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-D5qhls4G.js → p-ndni-0im.js} +1 -1
- package/dist/types/components/text-editor/mentions.d.ts +3 -1
- package/package.json +5 -5
- package/dist/lime-crm-building-blocks/p-006b6449.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-6093254e.entry.js +0 -1
|
@@ -23,6 +23,9 @@ export class MentionsService {
|
|
|
23
23
|
get viewFactoryRegistry() {
|
|
24
24
|
return this.platform.get(PlatformServiceName.ViewFactoryRegistry);
|
|
25
25
|
}
|
|
26
|
+
get contextRegistry() {
|
|
27
|
+
return this.platform.get(PlatformServiceName.ContextRegistry);
|
|
28
|
+
}
|
|
26
29
|
get translator() {
|
|
27
30
|
var _a;
|
|
28
31
|
return (_a = this.platform) === null || _a === void 0 ? void 0 : _a.get(PlatformServiceName.Translate);
|
|
@@ -33,10 +36,11 @@ export class MentionsService {
|
|
|
33
36
|
get triggerHandler() {
|
|
34
37
|
return this._triggerHandler;
|
|
35
38
|
}
|
|
36
|
-
constructor(platform, context, searchableLimetypes) {
|
|
39
|
+
constructor(platform, context, searchableLimetypes, host) {
|
|
37
40
|
this.platform = platform;
|
|
38
41
|
this.context = context;
|
|
39
42
|
this.searchableLimetypes = searchableLimetypes;
|
|
43
|
+
this.host = host;
|
|
40
44
|
this.groupCounts = {};
|
|
41
45
|
this._triggerCharacter = '@';
|
|
42
46
|
this._triggerHandler = {
|
|
@@ -139,7 +143,8 @@ export class MentionsService {
|
|
|
139
143
|
if (!limeobject) {
|
|
140
144
|
return null;
|
|
141
145
|
}
|
|
142
|
-
const
|
|
146
|
+
const scope = this.contextRegistry.scope({ host: this.host });
|
|
147
|
+
const searchListItem = createSearchItem(limeobject, scope);
|
|
143
148
|
const primaryComponent = this.getGroupCountComponent(limeobject);
|
|
144
149
|
return Object.assign(Object.assign({}, searchListItem), (primaryComponent ? { primaryComponent: primaryComponent } : {}));
|
|
145
150
|
}
|
|
@@ -341,7 +341,7 @@ export class LimeBBTextEditor {
|
|
|
341
341
|
}
|
|
342
342
|
}
|
|
343
343
|
registerMentions() {
|
|
344
|
-
const mentions = new MentionsService(this.platform, this.context, this.searchableLimetypes);
|
|
344
|
+
const mentions = new MentionsService(this.platform, this.context, this.searchableLimetypes, this.host);
|
|
345
345
|
const nodeDefinition = mentions.triggerHandler.nodeDefinition;
|
|
346
346
|
if (nodeDefinition) {
|
|
347
347
|
this.registeredCustomElements.push(nodeDefinition.customElement);
|
|
@@ -391,7 +391,7 @@ export class LimeBBTextEditor {
|
|
|
391
391
|
}
|
|
392
392
|
render() {
|
|
393
393
|
return [
|
|
394
|
-
h("limel-text-editor", { key: '
|
|
394
|
+
h("limel-text-editor", { key: '3ef0538b3df2cfbd3e363868add7dad46559e035', ref: (el) => (this.textEditor = el), tabindex: this.disabled ? -1 : 0, value: this.value, contentType: this.contentType, customElements: this.registeredCustomElements, "aria-disabled": this.disabled, language: this.language, triggers: this.registeredTriggers, onTriggerStart: this.handleTriggerStart, onTriggerStop: this.handleTriggerStop, onTriggerChange: this.handleTriggerChange, onImagePasted: this.handleImagePasted, onMetadataChange: this.handleMetadataChange, ui: this.ui, allowResize: this.allowResize, required: this.required, disabled: this.disabled, readonly: this.readonly, helperText: this.helperText, placeholder: this.placeholder, label: this.label, invalid: this.invalid }),
|
|
395
395
|
this.renderPicker(),
|
|
396
396
|
];
|
|
397
397
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{setErrorHandler as t,getElement as n}from"@stencil/core/internal/client";var r={};function i(t){return t&&["belongsto","hasone","hasmany","hasandbelongstomany"].includes(t.type)}function e(t){return t&&["belongsto","hasone"].includes(t.type)}r.LimeTypeRepository="state.limetypes";var o="context-request";function u(t,n){let r,i={context:n,callback:t=>{r=t}};return t.dispatchEvent(new CustomEvent(o,{bubbles:!0,composed:!0,detail:i})),r}var c="context";function f(t){return t.context?t.context:u(n(t),c)}var s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},s(t,n)};function a(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}function l(t){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&t[n],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,e=n.call(t),o=[];try{for(;!(r=e.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=e.return)&&n.call(e)}finally{if(i)throw i.error}}return o}function v(t,n,r){if(2===arguments.length)for(var i,e=0,o=n.length;e<o;e++)(i||!(e in n))&&(i||=Array.prototype.slice.call(n,0,e),i[e]=n[e]);return t.concat(i||Array.prototype.slice.call(n))}function y(t){return"function"==typeof t}function b(t){var n=t((function(t){Error.call(t),t.stack=Error().stack}));return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var m=b((function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}}));function d(t,n){if(t){var r=t.indexOf(n);0<=r&&t.splice(r,1)}}var p=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,n,r,i,e;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var u=l(o),c=u.next();!c.done;c=u.next())c.value.remove(this)}catch(n){t={error:n}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(y(f))try{f()}catch(t){e=t instanceof m?t.errors:[t]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var a=l(s),b=a.next();!b.done;b=a.next()){var d=b.value;try{j(d)}catch(t){e??=[],t instanceof m?e=v(v([],h(e)),h(t.errors)):e.push(t)}}}catch(t){r={error:t}}finally{try{b&&!b.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}if(e)throw new m(e)}},t.prototype.add=function(n){if(n&&n!==this)if(this.closed)j(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=this._finalizers??[]).push(n)}},t.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},t.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},t.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&d(n,t)},t.prototype.remove=function(n){var r=this._finalizers;r&&d(r,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t;var n}(),g=p.EMPTY;function w(t){return t instanceof p||t&&"closed"in t&&y(t.remove)&&y(t.add)&&y(t.unsubscribe)}function j(t){y(t)?t():t.unsubscribe()}function x(){}function O(t){t()}var R=function(t){function n(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,w(n)&&n.add(r)):r.destination=k,r}return a(n,t),n.create=function(t,n,r){return new S(t,n,r)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(p),E=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){A(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){A(t)}else A(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){A(t)}},t}(),S=function(t){function n(n,r,i){var e,o=t.call(this)||this;return e=y(n)||!n?{next:n??void 0,error:r??void 0,complete:i??void 0}:n,o.destination=new E(e),o}return a(n,t),n}(R);function A(t){!function(t){!function(t,n){var r=[...arguments].slice(2);setTimeout.apply(void 0,v([t,n],h(r)))}((function(){throw t}))}(t)}var k={closed:!0,next:x,error:function(t){throw t},complete:x},C="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(t){return t}var T=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var r=new t;return r.source=this,r.operator=n,r},t.prototype.subscribe=function(t,n,r){var i=this,e=function(t){return t&&t instanceof R||function(t){return t&&y(t.next)&&y(t.error)&&y(t.complete)}(t)&&w(t)}(t)?t:new S(t,n,r);return O((function(){var t=i.operator,n=i.source;e.add(t?t.call(e,n):n?i._subscribe(e):i._trySubscribe(e))})),e},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var r=this;return new(n=$(n))((function(n,i){var e=new S({next:function(n){try{t(n)}catch(t){i(t),e.unsubscribe()}},error:i,complete:n});r.subscribe(e)}))},t.prototype._subscribe=function(t){return this.source?.subscribe(t)},t.prototype[C]=function(){return this},t.prototype.pipe=function(){return function(t){return 0===t.length?P:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}([...arguments])(this)},t.prototype.toPromise=function(t){var n=this;return new(t=$(t))((function(t,r){var i;n.subscribe((function(t){return i=t}),(function(t){return r(t)}),(function(){return t(i)}))}))},t.create=function(n){return new t(n)},t}();function $(t){return t??undefined??Promise}var _=b((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),q=function(t){function n(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return a(n,t),n.prototype.lift=function(t){var n=new F(this,this);return n.operator=t,n},n.prototype._throwIfClosed=function(){if(this.closed)throw new _},n.prototype.next=function(t){var n=this;O((function(){var r,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||=Array.from(n.observers);try{for(var e=l(n.currentObservers),o=e.next();!o.done;o=e.next())o.value.next(t)}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}}}))},n.prototype.error=function(t){var n=this;O((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var r=n.observers;r.length;)r.shift().error(t)}}))},n.prototype.complete=function(){var t=this;O((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var n=this,r=this,i=r.observers;return r.hasError||r.isStopped?g:(this.currentObservers=null,i.push(t),new p((function(){n.currentObservers=null,d(i,t)})))},n.prototype._checkFinalizedStatuses=function(t){var n=this,r=n.isStopped;n.hasError?t.error(n.thrownError):r&&t.complete()},n.prototype.asObservable=function(){var t=new T;return t.source=this,t},n.create=function(t,n){return new F(t,n)},n}(T),F=function(t){function n(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return a(n,t),n.prototype.next=function(t){var n,r;null==(r=(n=this.destination)?.next)||r.call(n,t)},n.prototype.error=function(t){var n,r;null==(r=(n=this.destination)?.error)||r.call(n,t)},n.prototype.complete=function(){var t,n;null==(n=(t=this.destination)?.complete)||n.call(t)},n.prototype._subscribe=function(t){return this.source?.subscribe(t)??g},n}(q),M=function(t){function n(n){var r=t.call(this)||this;return r._value=n,r}return a(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},n.prototype.getValue=function(){var t=this,n=t._value;if(t.hasError)throw t.thrownError;return this._throwIfClosed(),n},n.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},n}(q);function N(t){return t}function U(t,n){return(r,i)=>{let e=function(t,n,r,i){let e=W.get(t);return e||(e=[],W.set(t,e)),e.push({options:r,name:n,optionFactory:i.optionFactory||N,service:{name:i.name,method:i.method||"subscribe"}}),e}(r,i,t,n);1===e.length&&function(t,n){t.connectedCallback=B(t.connectedCallback,n),t.componentWillLoad=function(t,n){return function(...r){return!0===L.get(this)?t?t.apply(this,r):void 0:B(t,n).apply(this,r)}}(t.componentWillLoad,n),t.componentDidUnload=G(t.componentDidUnload),t.disconnectedCallback=G(t.disconnectedCallback)}(r,e)}}var W=new WeakMap,D=new WeakMap,L=new WeakMap;function B(t,r){return function(...i){L.set(this,!0);let e=[];D.set(this,e);let u=new M(f(this));e.push(function(t,r){let i=n(t);return c in i?function(t,n){let r=Object.getOwnPropertyDescriptor(t,c),i=function(t,n){let r=t;for(;r;){let t=Object.getOwnPropertyDescriptor(r,n);if(t)return t;r=Object.getPrototypeOf(r)}}(t,c);return n(i?.get?.call(t)),Object.defineProperty(t,c,{configurable:!0,enumerable:!0,get:()=>i?.get?.call(t),set:r=>{i?.set?.call(t,r),n(r)}}),()=>{r?Object.defineProperty(t,c,r):Reflect.deleteProperty(t,c)}}(i,r):function(t,n,r){let i,e={context:c,subscribe:!0,callback:(t,n)=>{r(t),n&&(i=n)}};return t.dispatchEvent(new CustomEvent(o,{bubbles:!0,composed:!0,detail:e})),()=>i?.()}(i,0,r)}(this,(t=>u.next(t))));for(let t of r)t.options=t.optionFactory(t.options,this),I(t.options)&&(t.options.context=u),z(this,t);if(t)return t.apply(this,i)}}function G(t){return async function(...n){let r;return t&&(r=t.apply(this,n)),function(t){let n=D.get(t);for(let t of n)t();D.set(t,[])}(this),r}}function I(t){return"context"in t}function z(t,r){let i=function(t,r){let i={...r.options};!function(t,n){t.filter&&=t.filter.map((t=>t.bind(n))),t.map&&=t.map.map((t=>t.bind(n)))}(i,t);let e=r.service.name,o=function(t){if(t.platform)return t.platform;let r=u(n(t),"platform");if(!r)throw Error("Platform not available. Set the @Prop() platform value or provide it via ContextRegistry.provide('platform', ...) at boot.");return r}(t);if(!o.has(e))throw Error(`Service ${e} does not exist`);return o.get(e)[r.service.method](function(t,n){return r=>{t[n]=r}}(t,r.name),i)}(t,r);"function"==typeof i&&D.get(t).push(i)}function H(t={}){return U(t,{name:r.LimeTypeRepository})}function J(t={}){let n={name:r.LimeTypeRepository};return t.map=[K,...t.map||[]],t.context=null,U(t,n)}function K(t){let n=f(this);if(n)return t[n.limetype]}function Q(t={}){let n={name:r.LimeObjectRepository};return t.map=[V,...t.map||[]],t.context=null,U(t,n)}function V(t){let n=f(this);if(!n)return;let{limetype:r,id:i}=n;return t[r]?t[r].find((t=>t.id===i)):void 0}function X(t){return n=>{(function(t,n){t.commandId=n})(n,t.id),function(t,n){Object.defineProperty(t,Symbol.hasInstance,{value:t=>function(t){let n,r=[],i=t;for(;n=Y(i);)r=[...r,n],i=Object.getPrototypeOf(i);return[...new Set(r)]}(t).includes(n)})}(n,t.id)}}function Y(t){return"string"==typeof t?t:t&&t.constructor&&t.constructor.commandId?t.constructor.commandId:t&&t.commandId?t.commandId:null}function Z(t,n,r,i){var e,o=arguments.length,u=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,r,i);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(u=(o<3?e(u):o>3?e(n,r,u):e(n,r))||u);return o>3&&u&&Object.defineProperty(n,r,u),u}r.LimeObjectRepository="state.limeobjects",r.CommandBus="commandBus";var tt=class{context;filter;relation};tt=Z([X({id:"limeobject.bulk-create-dialog"})],tt);var nt=class{limetype;limeobject;route=!1;title;subtitle;context;autoAttachRelation;saveCommand};nt=Z([X({id:"limeobject.create-dialog"})],nt);var rt=class{context};rt=Z([X({id:"limeobject.delete-object"})],rt);var it=class{context};it=Z([X({id:"limeobject.object-access"})],it);var et=class{context;limeobject;route=!1;label};et=Z([X({id:"limeobject.save-object"})],et);var ot=function(t){return t.AND="AND",t.OR="OR",t.NOT="!",t.EQUALS="=",t.NOT_EQUALS="!=",t.GREATER=">",t.LESS="<",t.IN="IN",t.BEGINS="=?",t.LIKE="?",t.LESS_OR_EQUAL="<=",t.GREATER_OR_EQUAL=">=",t.ENDS="=$",t}({}),ut={Count:"COUNT"};r.Query="query";var ct={Post:"POST"};r.Http="http",r.EventDispatcher="eventDispatcher",r.Translate="translate",r.Dialog="dialog",r.KeybindingRegistry="keybindingRegistry",r.Navigator="navigator";var ft,st,at=class{path;query;hash;state};function lt(t){return U(t,{name:r.ConfigRepository})}function ht(t={}){return U(t,{name:r.FilterRepository})}function vt(t){let n=window.Lime?.logger?.createLogger;return"function"==typeof n?(void 0===st&&(st=function(t){return t&&(function(t){let n=t.match(/\/([^/]+)-lwc-components\//);return n?n[1]:null}(t)||function(t){let n=t.match(/\/packages\/(?:@[^/]+\/)?([^/]+)/);return n?n[1]:null}(t)||function(t){let n=t.indexOf("+");if(-1===n)return null;let r=t.slice(0,n),i=r.lastIndexOf("/");return-1===i?null:r.slice(i+1)}(t)||function(t){let n=t.match(/\/static\/([^/]+)\//);return n?n[1]:null}(t))||null}(void 0===ft?ft="string"==typeof import.meta.url?import.meta.url:function(){try{let t=Error(".").stack;if(!t)return null;let n=t.split("\n");for(let t of n){let n=t.match(/(https?:\/\/[^)\s:]+)/);if(n)return n[1]}return null}catch{return null}}():ft)),st&&(t=`${st}:${t}`),n(t)):(console.warn(`Logger factory is not configured. Returning console logger for scope "${t}".`),console)}at=Z([X({id:"navigator.navigate"})],at),r.Notification="notifications",r.RouteRegistry="routeRegistry",r.TaskRepository="state.tasks",r.ConfigRepository="state.configs",r.Device="state.device",r.FilterRepository="state.filters",r.UserDataRepository="state.user-data",r.Application="state.application",r.UserPreferencesRepository="userPreferences",r.DateTimeFormatter="datetimeformatter",r.ConditionRegistry="conditionRegistry",r.ContextRegistry="contextRegistry",r.RuleRegistry="ruleRegistry",r.ViewFactoryRegistry="viewFactoryRegistry",r.WebComponentRegistry="webComponentRegistry",r.NotificationRepository="state.notifications",r.PollerFactory="pollerFactory",r.Logger="logger",r.ProblemRepository="problemRepository",r.AIContextRegistry="aiContextRegistry";var yt=null;try{t((function(t,n){yt||=vt("uncaught-error");let r={};n&&(r.element=n.tagName,n.id&&(r.elementId=n.id));let i=t instanceof Error?t.message:String(t),e=t instanceof Error?t:void 0;yt.error(i,e,r)}))}catch{}export{Q as G,X as H,H as L,J as R,e as a,r as b,ct as c,ht as d,i,vt as j,lt as l,ot as n,ut as r}
|
|
1
|
+
import{setErrorHandler as t,getElement as n}from"@stencil/core/internal/client";var r={};function i(t){return t&&["belongsto","hasone","hasmany","hasandbelongstomany"].includes(t.type)}function e(t){return t&&["belongsto","hasone"].includes(t.type)}r.LimeTypeRepository="state.limetypes";var o="context-request";function u(t,n){let r,i={context:n,callback:t=>{r=t}};return t.dispatchEvent(new CustomEvent(o,{bubbles:!0,composed:!0,detail:i})),r}var c="context";function f(t){return t.context?t.context:u(n(t),c)}var s=function(t,n){return s=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])},s(t,n)};function a(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}s(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}function l(t){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&t[n],i=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(t){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,e=n.call(t),o=[];try{for(;!(r=e.next()).done;)o.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=e.return)&&n.call(e)}finally{if(i)throw i.error}}return o}function v(t,n,r){if(2===arguments.length)for(var i,e=0,o=n.length;e<o;e++)(i||!(e in n))&&(i||=Array.prototype.slice.call(n,0,e),i[e]=n[e]);return t.concat(i||Array.prototype.slice.call(n))}function y(t){return"function"==typeof t}function b(t){var n=t((function(t){Error.call(t),t.stack=Error().stack}));return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var m=b((function(t){return function(n){t(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map((function(t,n){return n+1+") "+t.toString()})).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}}));function d(t,n){if(t){var r=t.indexOf(n);0<=r&&t.splice(r,1)}}var p=function(){function t(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var t,n,r,i,e;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var u=l(o),c=u.next();!c.done;c=u.next())c.value.remove(this)}catch(n){t={error:n}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}else o.remove(this);var f=this.initialTeardown;if(y(f))try{f()}catch(t){e=t instanceof m?t.errors:[t]}var s=this._finalizers;if(s){this._finalizers=null;try{for(var a=l(s),b=a.next();!b.done;b=a.next()){var d=b.value;try{j(d)}catch(t){e??=[],t instanceof m?e=v(v([],h(e)),h(t.errors)):e.push(t)}}}catch(t){r={error:t}}finally{try{b&&!b.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}}if(e)throw new m(e)}},t.prototype.add=function(n){if(n&&n!==this)if(this.closed)j(n);else{if(n instanceof t){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=this._finalizers??[]).push(n)}},t.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},t.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},t.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&d(n,t)},t.prototype.remove=function(n){var r=this._finalizers;r&&d(r,n),n instanceof t&&n._removeParent(this)},t.EMPTY=((n=new t).closed=!0,n),t;var n}(),g=p.EMPTY;function w(t){return t instanceof p||t&&"closed"in t&&y(t.remove)&&y(t.add)&&y(t.unsubscribe)}function j(t){y(t)?t():t.unsubscribe()}function x(){}function O(t){t()}var R=function(t){function n(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,w(n)&&n.add(r)):r.destination=k,r}return a(n,t),n.create=function(t,n,r){return new S(t,n,r)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(p),E=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){A(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){A(t)}else A(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){A(t)}},t}(),S=function(t){function n(n,r,i){var e,o=t.call(this)||this;return e=y(n)||!n?{next:n??void 0,error:r??void 0,complete:i??void 0}:n,o.destination=new E(e),o}return a(n,t),n}(R);function A(t){!function(t){!function(t,n){var r=[...arguments].slice(2);setTimeout.apply(void 0,v([t,n],h(r)))}((function(){throw t}))}(t)}var k={closed:!0,next:x,error:function(t){throw t},complete:x},C="function"==typeof Symbol&&Symbol.observable||"@@observable";function P(t){return t}var T=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var r=new t;return r.source=this,r.operator=n,r},t.prototype.subscribe=function(t,n,r){var i=this,e=function(t){return t&&t instanceof R||function(t){return t&&y(t.next)&&y(t.error)&&y(t.complete)}(t)&&w(t)}(t)?t:new S(t,n,r);return O((function(){var t=i.operator,n=i.source;e.add(t?t.call(e,n):n?i._subscribe(e):i._trySubscribe(e))})),e},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var r=this;return new(n=$(n))((function(n,i){var e=new S({next:function(n){try{t(n)}catch(t){i(t),e.unsubscribe()}},error:i,complete:n});r.subscribe(e)}))},t.prototype._subscribe=function(t){return this.source?.subscribe(t)},t.prototype[C]=function(){return this},t.prototype.pipe=function(){return function(t){return 0===t.length?P:1===t.length?t[0]:function(n){return t.reduce((function(t,n){return n(t)}),n)}}([...arguments])(this)},t.prototype.toPromise=function(t){var n=this;return new(t=$(t))((function(t,r){var i;n.subscribe((function(t){return i=t}),(function(t){return r(t)}),(function(){return t(i)}))}))},t.create=function(n){return new t(n)},t}();function $(t){return t??undefined??Promise}var M=b((function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}})),_=function(t){function n(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return a(n,t),n.prototype.lift=function(t){var n=new q(this,this);return n.operator=t,n},n.prototype._throwIfClosed=function(){if(this.closed)throw new M},n.prototype.next=function(t){var n=this;O((function(){var r,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||=Array.from(n.observers);try{for(var e=l(n.currentObservers),o=e.next();!o.done;o=e.next())o.value.next(t)}catch(t){r={error:t}}finally{try{o&&!o.done&&(i=e.return)&&i.call(e)}finally{if(r)throw r.error}}}}))},n.prototype.error=function(t){var n=this;O((function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=t;for(var r=n.observers;r.length;)r.shift().error(t)}}))},n.prototype.complete=function(){var t=this;O((function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var n=t.observers;n.length;)n.shift().complete()}}))},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){return this.observers?.length>0},enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var n=this,r=this,i=r.observers;return r.hasError||r.isStopped?g:(this.currentObservers=null,i.push(t),new p((function(){n.currentObservers=null,d(i,t)})))},n.prototype._checkFinalizedStatuses=function(t){var n=this,r=n.isStopped;n.hasError?t.error(n.thrownError):r&&t.complete()},n.prototype.asObservable=function(){var t=new T;return t.source=this,t},n.create=function(t,n){return new q(t,n)},n}(T),q=function(t){function n(n,r){var i=t.call(this)||this;return i.destination=n,i.source=r,i}return a(n,t),n.prototype.next=function(t){var n,r;null==(r=(n=this.destination)?.next)||r.call(n,t)},n.prototype.error=function(t){var n,r;null==(r=(n=this.destination)?.error)||r.call(n,t)},n.prototype.complete=function(){var t,n;null==(n=(t=this.destination)?.complete)||n.call(t)},n.prototype._subscribe=function(t){return this.source?.subscribe(t)??g},n}(_),F=function(t){function n(n){var r=t.call(this)||this;return r._value=n,r}return a(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return!r.closed&&n.next(this._value),r},n.prototype.getValue=function(){var t=this,n=t._value;if(t.hasError)throw t.thrownError;return this._throwIfClosed(),n},n.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},n}(_);function N(t){return t}function U(t,n){return(r,i)=>{let e=function(t,n,r,i){let e=W.get(t);return e||(e=[],W.set(t,e)),e.push({options:r,name:n,optionFactory:i.optionFactory||N,service:{name:i.name,method:i.method||"subscribe"}}),e}(r,i,t,n);1===e.length&&function(t,n){t.connectedCallback=B(t.connectedCallback,n),t.componentWillLoad=function(t,n){return function(...r){return!0===L.get(this)?t?t.apply(this,r):void 0:B(t,n).apply(this,r)}}(t.componentWillLoad,n),t.componentDidUnload=G(t.componentDidUnload),t.disconnectedCallback=G(t.disconnectedCallback)}(r,e)}}var W=new WeakMap,D=new WeakMap,L=new WeakMap;function B(t,r){return function(...i){L.set(this,!0);let e=[];D.set(this,e);let u=new F(f(this));e.push(function(t,r){let i=n(t);return c in i?function(t,n){let r=Object.getOwnPropertyDescriptor(t,c),i=function(t,n){let r=t;for(;r;){let t=Object.getOwnPropertyDescriptor(r,n);if(t)return t;r=Object.getPrototypeOf(r)}}(t,c);return n(i?.get?.call(t)),Object.defineProperty(t,c,{configurable:!0,enumerable:!0,get:()=>i?.get?.call(t),set:r=>{i?.set?.call(t,r),n(r)}}),()=>{r?Object.defineProperty(t,c,r):Reflect.deleteProperty(t,c)}}(i,r):function(t,n,r){let i,e={context:c,subscribe:!0,callback:(t,n)=>{r(t),n&&(i=n)}};return t.dispatchEvent(new CustomEvent(o,{bubbles:!0,composed:!0,detail:e})),()=>i?.()}(i,0,r)}(this,(t=>u.next(t))));for(let t of r)t.options=t.optionFactory(t.options,this),I(t.options)&&(t.options.context=u),z(this,t);if(t)return t.apply(this,i)}}function G(t){return async function(...n){let r;return t&&(r=t.apply(this,n)),function(t){let n=D.get(t);for(let t of n)t();D.set(t,[])}(this),r}}function I(t){return"context"in t}function z(t,r){let i=function(t,r){let i={...r.options};!function(t,n){t.filter&&=t.filter.map((t=>t.bind(n))),t.map&&=t.map.map((t=>t.bind(n)))}(i,t);let e=r.service.name,o=function(t){if(t.platform)return t.platform;let r=u(n(t),"platform");if(!r)throw Error("Platform not available. Set the @Prop() platform value or provide it via ContextRegistry.provide('platform', ...) at boot.");return r}(t);if(!o.has(e))throw Error(`Service ${e} does not exist`);return o.get(e)[r.service.method](function(t,n){return r=>{t[n]=r}}(t,r.name),i)}(t,r);"function"==typeof i&&D.get(t).push(i)}function H(t={}){return U(t,{name:r.LimeTypeRepository})}function J(t={}){let n={name:r.LimeTypeRepository};return t.map=[K,...t.map||[]],t.context=null,U(t,n)}function K(t){let n=f(this);if(n)return t[n.limetype]}function Q(t={}){let n={name:r.LimeObjectRepository};return t.map=[V,...t.map||[]],t.context=null,U(t,n)}function V(t){let n=f(this);if(!n)return;let{limetype:r,id:i}=n;return t[r]?t[r].find((t=>t.id===i)):void 0}function X(t){return n=>{(function(t,n){t.commandId=n})(n,t.id),function(t,n){Object.defineProperty(t,Symbol.hasInstance,{value:t=>function(t){let n,r=[],i=t;for(;n=Y(i);)r=[...r,n],i=Object.getPrototypeOf(i);return[...new Set(r)]}(t).includes(n)})}(n,t.id)}}function Y(t){return"string"==typeof t?t:t&&t.constructor&&t.constructor.commandId?t.constructor.commandId:t&&t.commandId?t.commandId:null}function Z(t,n,r,i){var e,o=arguments.length,u=o<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,r):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)u=Reflect.decorate(t,n,r,i);else for(var c=t.length-1;c>=0;c--)(e=t[c])&&(u=(o<3?e(u):o>3?e(n,r,u):e(n,r))||u);return o>3&&u&&Object.defineProperty(n,r,u),u}r.LimeObjectRepository="state.limeobjects",r.CommandBus="commandBus";var tt=class{context;filter;relation};tt=Z([X({id:"limeobject.bulk-create-dialog"})],tt);var nt=class{limetype;limeobject;route=!1;title;subtitle;context;autoAttachRelation;saveCommand};nt=Z([X({id:"limeobject.create-dialog"})],nt);var rt=class{context};rt=Z([X({id:"limeobject.delete-object"})],rt);var it=class{context};it=Z([X({id:"limeobject.object-access"})],it);var et=class{context;limeobject;route=!1;label};et=Z([X({id:"limeobject.save-object"})],et);var ot=function(t){return t.AND="AND",t.OR="OR",t.NOT="!",t.EQUALS="=",t.NOT_EQUALS="!=",t.GREATER=">",t.LESS="<",t.IN="IN",t.BEGINS="=?",t.LIKE="?",t.LESS_OR_EQUAL="<=",t.GREATER_OR_EQUAL=">=",t.ENDS="=$",t}({}),ut={Count:"COUNT"};r.Query="query";var ct={Post:"POST"};r.Http="http",r.EventDispatcher="eventDispatcher",r.Translate="translate",r.Dialog="dialog",r.KeybindingRegistry="keybindingRegistry",r.Navigator="navigator";var ft,st,at=class{path;query;hash;state};function lt(t){return U(t,{name:r.ConfigRepository})}function ht(t={}){return U(t,{name:r.FilterRepository})}function vt(t){let n=window.Lime?.logger?.createLogger;return"function"==typeof n?(void 0===st&&(st=function(t){return t&&(function(t){let n=t.match(/\/([^/]+)-lwc-components\//);return n?n[1]:null}(t)||function(t){let n=t.match(/\/packages\/(?:@[^/]+\/)?([^/]+)/);return n?n[1]:null}(t)||function(t){let n=t.indexOf("+");if(-1===n)return null;let r=t.slice(0,n),i=r.lastIndexOf("/");return-1===i?null:r.slice(i+1)}(t)||function(t){let n=t.match(/\/static\/([^/]+)\//);return n?n[1]:null}(t))||null}(void 0===ft?ft="string"==typeof import.meta.url?import.meta.url:function(){try{let t=Error(".").stack;if(!t)return null;let n=t.split("\n");for(let t of n){let n=t.match(/(https?:\/\/[^)\s:]+)/);if(n)return n[1]}return null}catch{return null}}():ft)),st&&(t=`${st}:${t}`),n(t)):(console.warn(`Logger factory is not configured. Returning console logger for scope "${t}".`),console)}at=Z([X({id:"navigator.navigate"})],at),r.Notification="notifications",r.RouteRegistry="routeRegistry",r.TaskRepository="state.tasks",r.ConfigRepository="state.configs",r.Device="state.device",r.FilterRepository="state.filters",r.UserDataRepository="state.user-data",r.Application="state.application",r.UserPreferencesRepository="userPreferences",r.DateTimeFormatter="datetimeformatter",r.ConditionRegistry="conditionRegistry",r.ContextRegistry="contextRegistry",r.RuleRegistry="ruleRegistry",r.ViewFactoryRegistry="viewFactoryRegistry",r.WebComponentRegistry="webComponentRegistry",r.NotificationRepository="state.notifications",r.PollerFactory="pollerFactory",r.Logger="logger",r.ProblemRepository="problemRepository",r.AIContextRegistry="aiContextRegistry";var yt=null;try{t((function(t,n){yt||=vt("uncaught-error");let r={};n&&(r.element=n.tagName,n.id&&(r.elementId=n.id));let i=t instanceof Error?t.message:String(t),e=t instanceof Error?t:void 0;yt.error(i,e,r)}))}catch{}export{Q as G,X as H,H as L,vt as M,J as R,e as a,r as b,ct as c,ht as d,i,lt as l,ot as n,ut as r}
|