@limetech/lime-crm-building-blocks 1.95.0 → 1.97.0
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/{_MapCache-2e84a981.js → _MapCache-8b125fbb.js} +0 -26
- package/dist/cjs/{_Uint8Array-1e99726d.js → _Uint8Array-95263550.js} +1 -12
- package/dist/cjs/_baseIsEqual-cb7951b0.js +496 -0
- package/dist/cjs/_defineProperty-40a6ad5d.js +15 -0
- package/dist/cjs/{get-1acf79ce.js → get-932b213e.js} +5 -4
- package/dist/cjs/isEqual-e77cce75.js +37 -0
- package/dist/cjs/isSymbol-5b36aeee.js +30 -0
- package/dist/cjs/lime-crm-building-blocks.cjs.js +1 -1
- package/dist/cjs/lime-query.types-bcb63a22.js +61 -0
- package/dist/cjs/limebb-component-config.cjs.entry.js +3 -2
- package/dist/cjs/limebb-document-item.cjs.entry.js +174 -0
- package/dist/cjs/limebb-document-picker.cjs.entry.js +82 -0
- package/dist/cjs/limebb-feed-item-thumbnail-file-info.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 +1 -1
- package/dist/cjs/limebb-info-tile-format.cjs.entry.js +1 -1
- package/dist/cjs/limebb-info-tile.cjs.entry.js +1 -1
- 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 +382 -150
- package/dist/cjs/limebb-lime-query-filter-and_5.cjs.entry.js +278 -0
- package/dist/cjs/limebb-lime-query-value-input.cjs.entry.js +239 -0
- package/dist/cjs/limebb-limetype-field_2.cjs.entry.js +406 -0
- package/dist/cjs/limebb-live-docs-info.cjs.entry.js +2 -2
- package/dist/cjs/limebb-locale-picker.cjs.entry.js +13 -498
- package/dist/cjs/limebb-mention-group-counter.cjs.entry.js +2 -2
- package/dist/cjs/limebb-navigation-button_2.cjs.entry.js +3 -3
- package/dist/cjs/limebb-notification-item.cjs.entry.js +1 -1
- package/dist/cjs/limebb-percentage-visualizer.cjs.entry.js +2 -2
- package/dist/cjs/limebb-property-selector.cjs.entry.js +234 -0
- package/dist/cjs/limebb-response-format-item.cjs.entry.js +80 -0
- package/dist/cjs/limebb-text-editor.cjs.entry.js +22 -83
- package/dist/cjs/limebb-trend-indicator.cjs.entry.js +1 -1
- package/dist/cjs/limetype-1fe0207f.js +90 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/property-resolution-fb42a46b.js +66 -0
- package/dist/cjs/random-string-aac0a74b.js +24 -0
- package/dist/collection/collection-manifest.json +12 -0
- package/dist/collection/components/document-picker/document-item/document-item.css +64 -0
- package/dist/collection/components/document-picker/document-item/document-item.js +265 -0
- package/dist/collection/components/document-picker/document-item/document-item.types.js +1 -0
- package/dist/collection/components/document-picker/document-picker.css +139 -0
- package/dist/collection/components/document-picker/document-picker.js +304 -0
- package/dist/collection/components/document-picker/document.types.js +1 -0
- package/dist/collection/components/feed/feed-item/feed-timeline-item.js +1 -1
- package/dist/collection/components/feed/feed-item-thumbnail-file-info/feed-item-thumbnail-file-info.js +1 -1
- package/dist/collection/components/feed/feed.js +1 -1
- package/dist/collection/components/icon-picker/icon-picker.js +1 -1
- package/dist/collection/components/info-tile/format/config/info-tile-format.js +1 -1
- package/dist/collection/components/info-tile/info-tile.js +1 -1
- package/dist/collection/components/kanban/kanban-group/kanban-group.js +1 -1
- package/dist/collection/components/kanban/kanban-item/kanban-item.js +1 -1
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.css +121 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-and.js +257 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.css +39 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-comparison.js +246 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.css +104 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-expression.js +220 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.css +107 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-not.js +212 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.css +123 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-filter-or.js +237 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.css +48 -0
- package/dist/collection/components/lime-query-builder/expressions/lime-query-value-input.js +457 -0
- package/dist/collection/components/lime-query-builder/filter-conversion.js +118 -21
- package/dist/collection/components/lime-query-builder/lime-query-builder.css +30 -17
- package/dist/collection/components/lime-query-builder/lime-query-builder.js +233 -28
- package/dist/collection/components/lime-query-builder/limetype-field/limetype-field.js +435 -0
- package/dist/collection/components/lime-query-builder/property-selection-format.js +158 -0
- package/dist/collection/components/lime-query-builder/property-selector/property-selector.css +8 -0
- package/dist/collection/components/lime-query-builder/property-selector/property-selector.js +422 -0
- package/dist/collection/components/lime-query-builder/response-format-editor.css +72 -0
- package/dist/collection/components/lime-query-builder/response-format-editor.js +249 -0
- package/dist/collection/components/lime-query-builder/response-format-item.css +61 -0
- package/dist/collection/components/lime-query-builder/response-format-item.js +208 -0
- package/dist/collection/components/limeobject/file-viewer/live-docs-info.js +2 -2
- package/dist/collection/components/locale-picker/locale-picker.js +1 -1
- package/dist/collection/components/notification-list/notification-item/notification-item.js +1 -1
- package/dist/collection/components/percentage-visualizer/percentage-visualizer.js +2 -2
- package/dist/collection/components/summary-popover/summary-popover.js +3 -3
- package/dist/collection/components/text-editor/mention-group-counter.js +2 -2
- package/dist/collection/components/text-editor/text-editor.js +1 -1
- package/dist/collection/components/trend-indicator/trend-indicator.js +1 -1
- package/dist/collection/util/format-bytes.js +36 -0
- package/dist/components/_MapCache.js +2 -27
- package/dist/components/_Uint8Array.js +2 -12
- package/dist/components/_baseIsEqual.js +494 -0
- package/dist/components/_defineProperty.js +13 -0
- package/dist/components/document-item.js +190 -0
- package/dist/components/feed-item-thumbnail-file-info.js +1 -1
- package/dist/components/feed-timeline-item.js +1 -1
- package/dist/components/get.js +2 -1
- package/dist/components/isEqual.js +35 -0
- package/dist/components/isSymbol.js +28 -0
- package/dist/components/kanban-group.js +1 -1
- package/dist/components/kanban-item.js +1 -1
- package/dist/components/lime-query-filter-and.js +408 -0
- package/dist/components/lime-query-filter-comparison.js +152 -0
- package/dist/components/lime-query-value-input.js +266 -0
- package/dist/components/limebb-document-item.d.ts +11 -0
- package/dist/components/limebb-document-item.js +6 -0
- package/dist/components/limebb-document-picker.d.ts +11 -0
- package/dist/components/limebb-document-picker.js +111 -0
- package/dist/components/limebb-feed.js +1 -1
- package/dist/components/limebb-icon-picker.js +1 -1
- package/dist/components/limebb-info-tile-format.js +1 -1
- package/dist/components/limebb-info-tile.js +1 -1
- package/dist/components/limebb-lime-query-builder.js +441 -149
- package/dist/components/limebb-lime-query-filter-and.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-and.js +6 -0
- package/dist/components/limebb-lime-query-filter-comparison.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-comparison.js +6 -0
- package/dist/components/limebb-lime-query-filter-expression.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-expression.js +6 -0
- package/dist/components/limebb-lime-query-filter-not.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-not.js +6 -0
- package/dist/components/limebb-lime-query-filter-or.d.ts +11 -0
- package/dist/components/limebb-lime-query-filter-or.js +6 -0
- package/dist/components/limebb-lime-query-value-input.d.ts +11 -0
- package/dist/components/limebb-lime-query-value-input.js +6 -0
- package/dist/components/limebb-limetype-field.d.ts +11 -0
- package/dist/components/limebb-limetype-field.js +6 -0
- package/dist/components/limebb-locale-picker.js +8 -493
- package/dist/components/limebb-mention-group-counter.js +2 -2
- package/dist/components/limebb-percentage-visualizer.js +2 -2
- package/dist/components/limebb-property-selector.d.ts +11 -0
- package/dist/components/limebb-property-selector.js +6 -0
- package/dist/components/limebb-response-format-editor.d.ts +11 -0
- package/dist/components/limebb-response-format-editor.js +6 -0
- package/dist/components/limebb-response-format-item.d.ts +11 -0
- package/dist/components/limebb-response-format-item.js +6 -0
- package/dist/components/limebb-text-editor.js +8 -69
- package/dist/components/limebb-trend-indicator.js +1 -1
- package/dist/components/limetype-field.js +184 -0
- package/dist/components/limetype.js +85 -0
- package/dist/components/live-docs-info.js +2 -2
- package/dist/components/notification-item.js +1 -1
- package/dist/components/property-selector.js +317 -0
- package/dist/components/random-string.js +22 -0
- package/dist/components/response-format-editor.js +278 -0
- package/dist/components/response-format-item.js +104 -0
- package/dist/components/summary-popover.js +3 -3
- package/dist/esm/{_MapCache-6484495d.js → _MapCache-af496e9d.js} +2 -27
- package/dist/esm/{_Uint8Array-e5cac922.js → _Uint8Array-d6ebd526.js} +3 -13
- package/dist/esm/_baseIsEqual-28053b81.js +494 -0
- package/dist/esm/_defineProperty-e6a185c3.js +13 -0
- package/dist/esm/{get-f9e0b2e1.js → get-3e42932b.js} +2 -1
- package/dist/esm/isEqual-57d0c223.js +35 -0
- package/dist/esm/isSymbol-1c5f65cc.js +28 -0
- package/dist/esm/lime-crm-building-blocks.js +1 -1
- package/dist/esm/lime-query.types-f72355e1.js +59 -0
- package/dist/esm/limebb-component-config.entry.js +3 -2
- package/dist/esm/limebb-document-item.entry.js +170 -0
- package/dist/esm/limebb-document-picker.entry.js +78 -0
- package/dist/esm/limebb-feed-item-thumbnail-file-info.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 +1 -1
- package/dist/esm/limebb-info-tile-format.entry.js +1 -1
- package/dist/esm/limebb-info-tile.entry.js +1 -1
- 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 +379 -147
- package/dist/esm/limebb-lime-query-filter-and_5.entry.js +270 -0
- package/dist/esm/limebb-lime-query-value-input.entry.js +235 -0
- package/dist/esm/limebb-limetype-field_2.entry.js +401 -0
- package/dist/esm/limebb-live-docs-info.entry.js +2 -2
- package/dist/esm/limebb-locale-picker.entry.js +9 -494
- package/dist/esm/limebb-mention-group-counter.entry.js +2 -2
- package/dist/esm/limebb-navigation-button_2.entry.js +3 -3
- package/dist/esm/limebb-notification-item.entry.js +1 -1
- package/dist/esm/limebb-percentage-visualizer.entry.js +2 -2
- package/dist/esm/limebb-property-selector.entry.js +230 -0
- package/dist/esm/limebb-response-format-item.entry.js +76 -0
- package/dist/esm/limebb-text-editor.entry.js +8 -69
- package/dist/esm/limebb-trend-indicator.entry.js +1 -1
- package/dist/esm/limetype-6e7552a7.js +85 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/property-resolution-fde2375e.js +63 -0
- package/dist/esm/random-string-f6ef6fbf.js +22 -0
- package/dist/lime-crm-building-blocks/lime-crm-building-blocks.esm.js +1 -1
- package/dist/lime-crm-building-blocks/{p-85e11ff7.entry.js → p-00da9b24.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-02c0cc04.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-123190c3.js +1 -0
- package/dist/lime-crm-building-blocks/p-244ee55b.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-35897ec3.js +1 -0
- package/dist/lime-crm-building-blocks/{p-d6a07ea4.entry.js → p-3932077b.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-3b0a15ec.js +1 -0
- package/dist/lime-crm-building-blocks/p-4a82410e.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-a694aae5.entry.js → p-50d3d61a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-5a6d2e7f.js +1 -0
- package/dist/lime-crm-building-blocks/p-60971d64.js +1 -0
- package/dist/lime-crm-building-blocks/{p-a44f543c.entry.js → p-61282e1a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-6c1146ca.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-70a28b93.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-16199127.entry.js → p-79d4668a.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-7e6fb4af.js +1 -0
- package/dist/lime-crm-building-blocks/{p-88cc5b66.entry.js → p-82d33d43.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-7db8652e.entry.js → p-8c4eb49f.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-96beaabc.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-9d25ed5a.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-8dce83ad.entry.js → p-9d9f25da.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-a659d55a.js +1 -0
- package/dist/lime-crm-building-blocks/p-b7c72179.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-baf4e428.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-516210d4.entry.js → p-beb0d164.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-d298b34e.js +1 -0
- package/dist/lime-crm-building-blocks/{p-047c89de.entry.js → p-d89c44ad.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-e0ab1554.js +1 -0
- package/dist/lime-crm-building-blocks/{p-46d2f604.entry.js → p-e35299e0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/{p-8ef39ab8.entry.js → p-e9d23ef7.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-ef8a5266.entry.js +1 -0
- package/dist/lime-crm-building-blocks/{p-abf1c197.entry.js → p-f52125a0.entry.js} +1 -1
- package/dist/lime-crm-building-blocks/p-f99c611d.entry.js +1 -0
- package/dist/lime-crm-building-blocks/p-fbda77a7.js +1 -0
- package/dist/lime-crm-building-blocks/p-fe2b91d9.js +1 -0
- package/dist/lime-crm-building-blocks/{p-d6af09a8.entry.js → p-ff0b244b.entry.js} +1 -1
- package/dist/types/components/document-picker/document-item/document-item.d.ts +46 -0
- package/dist/types/components/document-picker/document-item/document-item.types.d.ts +37 -0
- package/dist/types/components/document-picker/document-picker.d.ts +80 -0
- package/dist/types/components/document-picker/document.types.d.ts +2 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-and.d.ts +56 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-comparison.d.ts +64 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-expression.d.ts +53 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-not.d.ts +54 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-filter-or.d.ts +55 -0
- package/dist/types/components/lime-query-builder/expressions/lime-query-value-input.d.ts +92 -0
- package/dist/types/components/lime-query-builder/filter-conversion.d.ts +18 -0
- package/dist/types/components/lime-query-builder/lime-query-builder.d.ts +30 -8
- package/dist/types/components/lime-query-builder/limetype-field/limetype-field.d.ts +96 -0
- package/dist/types/components/lime-query-builder/property-selection-format.d.ts +23 -0
- package/dist/types/components/lime-query-builder/property-selector/property-selector.d.ts +71 -0
- package/dist/types/components/lime-query-builder/response-format-editor.d.ts +57 -0
- package/dist/types/components/lime-query-builder/response-format-item.d.ts +46 -0
- package/dist/types/components.d.ts +1795 -114
- package/dist/types/util/format-bytes.d.ts +20 -0
- package/package.json +2 -2
- package/dist/lime-crm-building-blocks/p-29346b1a.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-4ccce5cc.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-7ef3bace.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-8044ffbd.js +0 -1
- package/dist/lime-crm-building-blocks/p-92ec9205.entry.js +0 -1
- package/dist/lime-crm-building-blocks/p-bcc23575.js +0 -1
- package/dist/lime-crm-building-blocks/p-c40a3f4b.js +0 -1
|
@@ -76,11 +76,11 @@ const PercentageVisualizer = /*@__PURE__*/ proxyCustomElement(class PercentageVi
|
|
|
76
76
|
render() {
|
|
77
77
|
const normalizedValue = this.getNormalizedValue();
|
|
78
78
|
const zeroPoint = this.getZeroPointPosition();
|
|
79
|
-
return (h(Host, { key: '
|
|
79
|
+
return (h(Host, { key: 'a99a367379f75613f8f37824fae64d5425e13c92', class: this.getContainerClassList(), style: {
|
|
80
80
|
'--limebb-percentage-visualizer-zero-point-position': `${zeroPoint}%`,
|
|
81
81
|
'--limebb-percentage-visualizer-width': `${Math.abs(normalizedValue)}%`,
|
|
82
82
|
'--limebb-percentage-visualizer-rotate': `${normalizedValue >= 0 ? '0deg' : '180deg'}`,
|
|
83
|
-
} }, h("limel-notched-outline", { key: '
|
|
83
|
+
} }, h("limel-notched-outline", { key: '498c23ad0ddd79219de646286f9958a84c2592c9', tabIndex: 0, role: "meter", "aria-valuemin": this.rangeMin, "aria-valuemax": this.rangeMax, "aria-valuenow": this.numValue, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-controls": this.helperTextId }, h("div", { key: 'f8ba78a9b92bb93fc107e04f3001413c7560431b', slot: "content" }, this.renderVisualization())), this.renderHelperLine()));
|
|
84
84
|
}
|
|
85
85
|
renderVisualization() {
|
|
86
86
|
if (this.reducePresence && (this.numValue === 0 || !this.hasValue())) {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface LimebbPropertySelector extends Components.LimebbPropertySelector, HTMLElement {}
|
|
4
|
+
export const LimebbPropertySelector: {
|
|
5
|
+
prototype: LimebbPropertySelector;
|
|
6
|
+
new (): LimebbPropertySelector;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface LimebbResponseFormatEditor extends Components.LimebbResponseFormatEditor, HTMLElement {}
|
|
4
|
+
export const LimebbResponseFormatEditor: {
|
|
5
|
+
prototype: LimebbResponseFormatEditor;
|
|
6
|
+
new (): LimebbResponseFormatEditor;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { R as ResponseFormatEditor, d as defineCustomElement$1 } from './response-format-editor.js';
|
|
2
|
+
|
|
3
|
+
const LimebbResponseFormatEditor = ResponseFormatEditor;
|
|
4
|
+
const defineCustomElement = defineCustomElement$1;
|
|
5
|
+
|
|
6
|
+
export { LimebbResponseFormatEditor, defineCustomElement };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface LimebbResponseFormatItem extends Components.LimebbResponseFormatItem, HTMLElement {}
|
|
4
|
+
export const LimebbResponseFormatItem: {
|
|
5
|
+
prototype: LimebbResponseFormatItem;
|
|
6
|
+
new (): LimebbResponseFormatItem;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { c, W as We, H as He, T as Te } from './index.esm.js';
|
|
3
3
|
import { A as ARROW_DOWN, a as ESCAPE, b as ARROW_UP, E as ENTER, T as TAB } from './keycodes.js';
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
4
|
+
import { b as arrayLikeKeys, k as keys, c as getSymbols, s as stubArray, a as arrayPush, d as baseGetAllKeys, U as Uint8Array, S as Stack, g as getAllKeys } from './_Uint8Array.js';
|
|
5
|
+
import { d as defineProperty } from './_defineProperty.js';
|
|
6
|
+
import { e as eq } from './_MapCache.js';
|
|
6
7
|
import { d as isObject, r as root, S as Symbol, a as isObjectLike, i as isArray } from './_Map.js';
|
|
7
8
|
import { d as isPrototype, i as isArrayLike, o as overArg, g as getTag, h as baseUnary, n as nodeUtil, a as isBuffer } from './_getTag.js';
|
|
9
|
+
import { c as createRandomString } from './random-string.js';
|
|
10
|
+
import { h as hasLabel, a as hasHasManyRelation, b as getRelationProperty } from './limetype.js';
|
|
8
11
|
import { i as isNonNull } from './non-null.js';
|
|
9
12
|
import { d as defineCustomElement$3 } from './empty-state.js';
|
|
10
13
|
import { d as defineCustomElement$2 } from './text-editor-picker.js';
|
|
14
|
+
import { i as isSymbol } from './isSymbol.js';
|
|
11
15
|
|
|
12
16
|
/** Used to match a single whitespace character. */
|
|
13
17
|
var reWhitespace = /\s/;
|
|
@@ -1093,71 +1097,6 @@ function getUpdatedItems(items, highlightedItemIndex) {
|
|
|
1093
1097
|
});
|
|
1094
1098
|
}
|
|
1095
1099
|
|
|
1096
|
-
/* eslint-disable sonarjs/pseudo-random */
|
|
1097
|
-
const createRandomString = () => {
|
|
1098
|
-
var _a;
|
|
1099
|
-
if (!('crypto' in window) ||
|
|
1100
|
-
typeof ((_a = window.crypto) === null || _a === void 0 ? void 0 : _a.randomUUID) !== 'function') {
|
|
1101
|
-
return legacyCreateRandomString();
|
|
1102
|
-
}
|
|
1103
|
-
return 'a_' + crypto.randomUUID(); // ids must start with letters
|
|
1104
|
-
};
|
|
1105
|
-
function legacyCreateRandomString() {
|
|
1106
|
-
const USE_HEX = 36;
|
|
1107
|
-
const SKIP_LEADING_ZERODOT = 2;
|
|
1108
|
-
const ASCII_A = 97;
|
|
1109
|
-
const NUMBER_OF_LETTERS = 26;
|
|
1110
|
-
return (String.fromCodePoint(ASCII_A + Math.floor(Math.random() * NUMBER_OF_LETTERS)) +
|
|
1111
|
-
Math.random()
|
|
1112
|
-
.toString(USE_HEX)
|
|
1113
|
-
.slice(Math.max(0, SKIP_LEADING_ZERODOT)) +
|
|
1114
|
-
Math.random().toString(USE_HEX).slice(Math.max(0, SKIP_LEADING_ZERODOT)));
|
|
1115
|
-
}
|
|
1116
|
-
|
|
1117
|
-
/**
|
|
1118
|
-
* Whether the given object has the given label or not.
|
|
1119
|
-
*
|
|
1120
|
-
* @param object the object to check label for
|
|
1121
|
-
* @param label the label to check for
|
|
1122
|
-
* @returns true if the object has the label
|
|
1123
|
-
*/
|
|
1124
|
-
function hasLabel(object, label) {
|
|
1125
|
-
return object.label === label;
|
|
1126
|
-
}
|
|
1127
|
-
/**
|
|
1128
|
-
* Whether the given property is a hasmany relation or not.
|
|
1129
|
-
*
|
|
1130
|
-
* @param property the property to check
|
|
1131
|
-
* @returns true if the property is a hasmany relation
|
|
1132
|
-
*/
|
|
1133
|
-
function isManyRelation(property) {
|
|
1134
|
-
return De(property) && !Me(property);
|
|
1135
|
-
}
|
|
1136
|
-
/**
|
|
1137
|
-
* Finds a relation property on the given limetype that is related to a
|
|
1138
|
-
* limetype with the given label.
|
|
1139
|
-
*
|
|
1140
|
-
* @param limetype the limetype to search for the relation property
|
|
1141
|
-
* @param label the label of the target limetype to match
|
|
1142
|
-
* @returns the relation property or undefined
|
|
1143
|
-
*/
|
|
1144
|
-
function getRelationProperty(limetype, label) {
|
|
1145
|
-
return Object.values(limetype.properties).find((property) => property &&
|
|
1146
|
-
property.relation &&
|
|
1147
|
-
hasLabel(property.relation.getLimetype(), label));
|
|
1148
|
-
}
|
|
1149
|
-
/**
|
|
1150
|
-
* Whether the limetype has a hasmany relation of a limetype with the given label
|
|
1151
|
-
*
|
|
1152
|
-
* @param limetype the limetype
|
|
1153
|
-
* @param relatedLabel the label of the related limetype
|
|
1154
|
-
* @returns true if the limetype has the hasmany relation
|
|
1155
|
-
*/
|
|
1156
|
-
function hasHasManyRelation(limetype, relatedLabel) {
|
|
1157
|
-
const property = getRelationProperty(limetype, relatedLabel);
|
|
1158
|
-
return !!property && isManyRelation(property);
|
|
1159
|
-
}
|
|
1160
|
-
|
|
1161
1100
|
/**
|
|
1162
1101
|
* Get the limetypes that should be available for mentions
|
|
1163
1102
|
*
|
|
@@ -1835,7 +1774,7 @@ const LimeBBTextEditor = /*@__PURE__*/ proxyCustomElement(class LimeBBTextEditor
|
|
|
1835
1774
|
}
|
|
1836
1775
|
render() {
|
|
1837
1776
|
return [
|
|
1838
|
-
h("limel-text-editor", { key: '
|
|
1777
|
+
h("limel-text-editor", { key: 'de672970cfd1048cc232eeadd527153421f28f36', 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 }),
|
|
1839
1778
|
this.renderPicker(),
|
|
1840
1779
|
];
|
|
1841
1780
|
}
|
|
@@ -37,7 +37,7 @@ const TrendIndicator = /*@__PURE__*/ proxyCustomElement(class TrendIndicator ext
|
|
|
37
37
|
this.numValue = this.parseValue(this.value);
|
|
38
38
|
}
|
|
39
39
|
render() {
|
|
40
|
-
return (h(Host, { key: '
|
|
40
|
+
return (h(Host, { key: 'a0f458a114e5698f40899c44d532643f50bef249', class: this.getContainerClassList() }, h("limel-notched-outline", { key: 'fe9a66d44f3155d6594da5e7e16ce9a33907f800', id: this.tooltipId, label: this.label, labelId: this.labelId, invalid: this.invalid, required: this.required, hasValue: true, hasFloatingLabel: true, "aria-labelledby": this.labelId, "aria-describedby": this.helperTextId, "aria-controls": this.helperTextId }, h("div", { key: 'daff3b1e6ec7098e7353bca3664179fd9c2594c1', slot: "content", tabIndex: 0 }, this.renderVisualization())), this.renderHelperLine(), this.renderTooltip()));
|
|
41
41
|
}
|
|
42
42
|
renderVisualization() {
|
|
43
43
|
if (this.reducePresence && (this.numValue === 0 || !this.hasValue())) {
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { c } from './index.esm.js';
|
|
3
|
+
import { g as getIcon } from './limetype.js';
|
|
4
|
+
import { i as isNonNull } from './non-null.js';
|
|
5
|
+
import { i as isEqual } from './isEqual.js';
|
|
6
|
+
import { i as isArray, a as isObjectLike, b as baseGetTag } from './_Map.js';
|
|
7
|
+
|
|
8
|
+
/** `Object#toString` result references. */
|
|
9
|
+
var stringTag = '[object String]';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Checks if `value` is classified as a `String` primitive or object.
|
|
13
|
+
*
|
|
14
|
+
* @static
|
|
15
|
+
* @since 0.1.0
|
|
16
|
+
* @memberOf _
|
|
17
|
+
* @category Lang
|
|
18
|
+
* @param {*} value The value to check.
|
|
19
|
+
* @returns {boolean} Returns `true` if `value` is a string, else `false`.
|
|
20
|
+
* @example
|
|
21
|
+
*
|
|
22
|
+
* _.isString('abc');
|
|
23
|
+
* // => true
|
|
24
|
+
*
|
|
25
|
+
* _.isString(1);
|
|
26
|
+
* // => false
|
|
27
|
+
*/
|
|
28
|
+
function isString(value) {
|
|
29
|
+
return typeof value == 'string' ||
|
|
30
|
+
(!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
const RELATION_PROPERTY_TYPES = [
|
|
34
|
+
'belongsto',
|
|
35
|
+
'hasone',
|
|
36
|
+
'hasmany',
|
|
37
|
+
'hasandbelongstomany',
|
|
38
|
+
];
|
|
39
|
+
const DEFAULT_ALLOWED_PROPERTY_TYPES = [
|
|
40
|
+
'string',
|
|
41
|
+
'text',
|
|
42
|
+
'phone',
|
|
43
|
+
'integer',
|
|
44
|
+
'decimal',
|
|
45
|
+
'percent',
|
|
46
|
+
'time',
|
|
47
|
+
'date',
|
|
48
|
+
'year',
|
|
49
|
+
'quarter',
|
|
50
|
+
'month',
|
|
51
|
+
'yesno',
|
|
52
|
+
'link',
|
|
53
|
+
'user',
|
|
54
|
+
'xml',
|
|
55
|
+
'option',
|
|
56
|
+
'set',
|
|
57
|
+
'file',
|
|
58
|
+
'system',
|
|
59
|
+
];
|
|
60
|
+
|
|
61
|
+
const allNonSystemPropertyTypes = DEFAULT_ALLOWED_PROPERTY_TYPES.filter((propertyType) => propertyType !== 'system');
|
|
62
|
+
allNonSystemPropertyTypes.push(...RELATION_PROPERTY_TYPES);
|
|
63
|
+
const LimetypeField = /*@__PURE__*/ proxyCustomElement(class LimetypeField extends HTMLElement {
|
|
64
|
+
constructor() {
|
|
65
|
+
super();
|
|
66
|
+
this.__registerHost();
|
|
67
|
+
this.change = createEvent(this, "change", 7);
|
|
68
|
+
/**
|
|
69
|
+
* A list of property fields that should be updated when the selected limetype changes.
|
|
70
|
+
*/
|
|
71
|
+
this.propertyFields = [];
|
|
72
|
+
/**
|
|
73
|
+
* The name of this field. May be used as reference when a property mapping
|
|
74
|
+
* depends on the selected limetype.
|
|
75
|
+
*/
|
|
76
|
+
this.fieldName = 'limetype';
|
|
77
|
+
this.handleChange = (event) => {
|
|
78
|
+
event.stopPropagation();
|
|
79
|
+
let selectedLimetype = '';
|
|
80
|
+
if (event.detail && 'value' in event.detail) {
|
|
81
|
+
selectedLimetype = event.detail.value;
|
|
82
|
+
}
|
|
83
|
+
this.change.emit(selectedLimetype || undefined);
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
componentWillLoad() {
|
|
87
|
+
const language = this.platform
|
|
88
|
+
.get(c.Application)
|
|
89
|
+
.getLanguage();
|
|
90
|
+
this.collator = new Intl.Collator(language, {
|
|
91
|
+
numeric: true,
|
|
92
|
+
sensitivity: 'base',
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
componentShouldUpdate(newValue, oldValue, property) {
|
|
96
|
+
var _a, _b;
|
|
97
|
+
return (property !== 'formInfo' ||
|
|
98
|
+
!isEqual((_a = newValue === null || newValue === void 0 ? void 0 : newValue.schema) === null || _a === void 0 ? void 0 : _a.oneOf, (_b = oldValue === null || oldValue === void 0 ? void 0 : oldValue.schema) === null || _b === void 0 ? void 0 : _b.oneOf));
|
|
99
|
+
}
|
|
100
|
+
render() {
|
|
101
|
+
var _a;
|
|
102
|
+
const options = this.getLimeTypes().map(limeTypeToOption);
|
|
103
|
+
options.sort((a, b) => this.collator.compare(a.text, b.text));
|
|
104
|
+
let selectedOption = options.find((option) => option.value === this.value);
|
|
105
|
+
let invalid = this.invalid;
|
|
106
|
+
if (this.value && !selectedOption) {
|
|
107
|
+
invalid = true;
|
|
108
|
+
options.unshift({
|
|
109
|
+
text: ((_a = this.limeTypeRepository.getLimeType(this.value)) === null || _a === void 0 ? void 0 : _a.localname.singular) || this.value,
|
|
110
|
+
value: this.value,
|
|
111
|
+
});
|
|
112
|
+
selectedOption = options[0];
|
|
113
|
+
}
|
|
114
|
+
const emptyOption = {
|
|
115
|
+
text: '',
|
|
116
|
+
value: '',
|
|
117
|
+
};
|
|
118
|
+
options.unshift(emptyOption);
|
|
119
|
+
return (h("limel-select", { key: '82ce4b92e4ff1285e259f07a35634df722f5baab', label: this.label, options: options, value: selectedOption, required: this.required, helperText: this.helperText, invalid: invalid, disabled: this.disabled || this.readonly, onChange: this.handleChange }));
|
|
120
|
+
}
|
|
121
|
+
componentWillRender() {
|
|
122
|
+
this.updatePropertyFields(this.value || '');
|
|
123
|
+
}
|
|
124
|
+
getLimeTypes() {
|
|
125
|
+
var _a, _b;
|
|
126
|
+
let limetypes = this.limetypes;
|
|
127
|
+
if ((_b = (_a = this.formInfo) === null || _a === void 0 ? void 0 : _a.schema) === null || _b === void 0 ? void 0 : _b.oneOf) {
|
|
128
|
+
limetypes = this.formInfo.schema.oneOf
|
|
129
|
+
.map((choice) => choice.const)
|
|
130
|
+
.filter(isString);
|
|
131
|
+
}
|
|
132
|
+
if (!limetypes) {
|
|
133
|
+
return this.limeTypeRepository.getLimeTypes();
|
|
134
|
+
}
|
|
135
|
+
return limetypes
|
|
136
|
+
.map((limetype) => this.limeTypeRepository.getLimeType(limetype))
|
|
137
|
+
.filter(isNonNull);
|
|
138
|
+
}
|
|
139
|
+
updatePropertyFields(selectedLimetype) {
|
|
140
|
+
for (const field of this.propertyFields) {
|
|
141
|
+
field.limetype = selectedLimetype;
|
|
142
|
+
if (field.allowedPropertyTypes === DEFAULT_ALLOWED_PROPERTY_TYPES) {
|
|
143
|
+
field.allowedPropertyTypes = allNonSystemPropertyTypes;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
get limeTypeRepository() {
|
|
148
|
+
return this.platform.get(c.LimeTypeRepository);
|
|
149
|
+
}
|
|
150
|
+
}, [0, "limebb-limetype-field", {
|
|
151
|
+
"platform": [16],
|
|
152
|
+
"context": [16],
|
|
153
|
+
"label": [513],
|
|
154
|
+
"required": [516],
|
|
155
|
+
"readonly": [516],
|
|
156
|
+
"disabled": [516],
|
|
157
|
+
"value": [513],
|
|
158
|
+
"helperText": [513, "helper-text"],
|
|
159
|
+
"invalid": [4],
|
|
160
|
+
"limetypes": [16],
|
|
161
|
+
"propertyFields": [16],
|
|
162
|
+
"fieldName": [1, "field-name"],
|
|
163
|
+
"formInfo": [16]
|
|
164
|
+
}]);
|
|
165
|
+
const limeTypeToOption = (limetype) => ({
|
|
166
|
+
text: limetype.localname.singular,
|
|
167
|
+
value: limetype.name,
|
|
168
|
+
icon: getIcon(limetype),
|
|
169
|
+
});
|
|
170
|
+
function defineCustomElement() {
|
|
171
|
+
if (typeof customElements === "undefined") {
|
|
172
|
+
return;
|
|
173
|
+
}
|
|
174
|
+
const components = ["limebb-limetype-field"];
|
|
175
|
+
components.forEach(tagName => { switch (tagName) {
|
|
176
|
+
case "limebb-limetype-field":
|
|
177
|
+
if (!customElements.get(tagName)) {
|
|
178
|
+
customElements.define(tagName, LimetypeField);
|
|
179
|
+
}
|
|
180
|
+
break;
|
|
181
|
+
} });
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export { LimetypeField as L, defineCustomElement as d };
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import { D as De, M as Me } from './index.esm.js';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Get the color for a limetype from its UI configuration
|
|
5
|
+
*
|
|
6
|
+
* @param limetype the limetype
|
|
7
|
+
* @returns the color string (CSS variable or RGB)
|
|
8
|
+
*/
|
|
9
|
+
function getColor(limetype) {
|
|
10
|
+
var _a;
|
|
11
|
+
const limetypeWithUI = limetype;
|
|
12
|
+
const color = ((_a = limetypeWithUI === null || limetypeWithUI === void 0 ? void 0 : limetypeWithUI.ui) === null || _a === void 0 ? void 0 : _a.color) || 'rgb(var(--color-gray-default))';
|
|
13
|
+
return getLimeColor(color);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Convert lime color references to CSS variables
|
|
17
|
+
*
|
|
18
|
+
* @param color the color string
|
|
19
|
+
* @returns CSS-ready color string
|
|
20
|
+
*/
|
|
21
|
+
function getLimeColor(color) {
|
|
22
|
+
if (color.startsWith('lime-')) {
|
|
23
|
+
return `var(--${color})`;
|
|
24
|
+
}
|
|
25
|
+
return color;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* Get the icon configuration for a limetype
|
|
29
|
+
*
|
|
30
|
+
* @param limetype the limetype
|
|
31
|
+
* @returns Icon object with name and color
|
|
32
|
+
*/
|
|
33
|
+
function getIcon(limetype) {
|
|
34
|
+
var _a;
|
|
35
|
+
const limetypeWithUI = limetype;
|
|
36
|
+
return {
|
|
37
|
+
name: ((_a = limetypeWithUI === null || limetypeWithUI === void 0 ? void 0 : limetypeWithUI.ui) === null || _a === void 0 ? void 0 : _a.icon) || 'decision',
|
|
38
|
+
color: getColor(limetype),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
/**
|
|
42
|
+
* Whether the given object has the given label or not.
|
|
43
|
+
*
|
|
44
|
+
* @param object the object to check label for
|
|
45
|
+
* @param label the label to check for
|
|
46
|
+
* @returns true if the object has the label
|
|
47
|
+
*/
|
|
48
|
+
function hasLabel(object, label) {
|
|
49
|
+
return object.label === label;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Whether the given property is a hasmany relation or not.
|
|
53
|
+
*
|
|
54
|
+
* @param property the property to check
|
|
55
|
+
* @returns true if the property is a hasmany relation
|
|
56
|
+
*/
|
|
57
|
+
function isManyRelation(property) {
|
|
58
|
+
return De(property) && !Me(property);
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Finds a relation property on the given limetype that is related to a
|
|
62
|
+
* limetype with the given label.
|
|
63
|
+
*
|
|
64
|
+
* @param limetype the limetype to search for the relation property
|
|
65
|
+
* @param label the label of the target limetype to match
|
|
66
|
+
* @returns the relation property or undefined
|
|
67
|
+
*/
|
|
68
|
+
function getRelationProperty(limetype, label) {
|
|
69
|
+
return Object.values(limetype.properties).find((property) => property &&
|
|
70
|
+
property.relation &&
|
|
71
|
+
hasLabel(property.relation.getLimetype(), label));
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Whether the limetype has a hasmany relation of a limetype with the given label
|
|
75
|
+
*
|
|
76
|
+
* @param limetype the limetype
|
|
77
|
+
* @param relatedLabel the label of the related limetype
|
|
78
|
+
* @returns true if the limetype has the hasmany relation
|
|
79
|
+
*/
|
|
80
|
+
function hasHasManyRelation(limetype, relatedLabel) {
|
|
81
|
+
const property = getRelationProperty(limetype, relatedLabel);
|
|
82
|
+
return !!property && isManyRelation(property);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export { hasHasManyRelation as a, getRelationProperty as b, getIcon as g, hasLabel as h };
|
|
@@ -11,8 +11,8 @@ const LiveDocsInfo = /*@__PURE__*/ proxyCustomElement(class LiveDocsInfo extends
|
|
|
11
11
|
}
|
|
12
12
|
render() {
|
|
13
13
|
return [
|
|
14
|
-
h("div", { key: '
|
|
15
|
-
h("p", { key: '
|
|
14
|
+
h("div", { key: '98c48e74c9cade3b2da713618d585dd8f80e3116', class: "header" }, h("limel-icon", { key: 'b8f56066533f64842a25a324c2794914700c2e8a', name: "not_showing_video_frames" }), h("h2", { key: 'c1e8c722d1fc7d22a85f348a66094ffd8c5a5dd3' }, "Viewing this file type requires ", h("em", { key: '8aca798b2cf1bfe81be5142496e693f57efea8b1' }, "Live Docs"))),
|
|
15
|
+
h("p", { key: '3934d0c93f6c4b6524643c2ecadd0f3f0f925b09' }, h("em", { key: '1d3b811bf94ba19644231e77434442f9f1ade8f6' }, "Live Docs"), " not only enables you to view many file formats such as Microsoft Office documents, but it also empowers you to edit them right in the CRM. No need to download anything on your device!", h("a", { key: '023c16b0cfc5b57d750c9a344690fcce51350100', target: "_blank", href: "https://www.lime-technologies.com/en/lime-crm/live-docs/" }, "Learn more")),
|
|
16
16
|
];
|
|
17
17
|
}
|
|
18
18
|
static get style() { return LimebbLiveDocsInfoStyle0; }
|
|
@@ -58,7 +58,7 @@ const NotificationListItem = /*@__PURE__*/ proxyCustomElement(class Notification
|
|
|
58
58
|
}
|
|
59
59
|
render() {
|
|
60
60
|
var _a, _b;
|
|
61
|
-
return (h(Host, { key: '
|
|
61
|
+
return (h(Host, { key: 'e51a5ebe9c955d43f1025a61a12ca870abb66347', id: this.item.id, class: {
|
|
62
62
|
'is-clickable': this.isItemClickable(),
|
|
63
63
|
'is-read': !!((_a = this.item) === null || _a === void 0 ? void 0 : _a.read),
|
|
64
64
|
'is-selected': !!((_b = this.item) === null || _b === void 0 ? void 0 : _b.selected),
|